< Summary

Class:Decentraland.Renderer.RendererServices.Payload
Assembly:Decentraland.Protocol.GeneratedCode
File(s):/tmp/workspace/unity-renderer/unity-renderer/Assets/Scripts/MainScripts/DCL/DecentralandProtocol/Transport.gen.cs
Covered lines:23
Uncovered lines:28
Coverable lines:51
Total lines:237
Line coverage:45% (23 of 51)
Covered branches:0
Total branches:0

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity NPath complexity Sequence coverage
Payload()0%110100%
get_Descriptor()0%110100%
Payload(...)0%2100%
Clone()0%2100%
Payload()0%110100%
Equals(...)0%2100%
Equals(...)0%20400%
GetHashCode()0%12300%
ToString()0%2100%
WriteTo(...)0%3.043083.33%
CalculateSize()0%3.043083.33%
MergeFrom(...)0%12300%
MergeFrom(...)0%3.583060%

File(s)

/tmp/workspace/unity-renderer/unity-renderer/Assets/Scripts/MainScripts/DCL/DecentralandProtocol/Transport.gen.cs

#LineLine coverage
 1// <auto-generated>
 2//     Generated by the protocol buffer compiler.  DO NOT EDIT!
 3//     source: decentraland/renderer/renderer_services/transport.proto
 4// </auto-generated>
 5#pragma warning disable 1591, 0612, 3021
 6#region Designer generated code
 7
 8using pb = global::Google.Protobuf;
 9using pbc = global::Google.Protobuf.Collections;
 10using pbr = global::Google.Protobuf.Reflection;
 11using scg = global::System.Collections.Generic;
 12namespace Decentraland.Renderer.RendererServices {
 13
 14  /// <summary>Holder for reflection information generated from decentraland/renderer/renderer_services/transport.proto<
 15  public static partial class TransportReflection {
 16
 17    #region Descriptor
 18    /// <summary>File descriptor for decentraland/renderer/renderer_services/transport.proto</summary>
 19    public static pbr::FileDescriptor Descriptor {
 20      get { return descriptor; }
 21    }
 22    private static pbr::FileDescriptor descriptor;
 23
 24    static TransportReflection() {
 25      byte[] descriptorData = global::System.Convert.FromBase64String(
 26          string.Concat(
 27            "CjdkZWNlbnRyYWxhbmQvcmVuZGVyZXIvcmVuZGVyZXJfc2VydmljZXMvdHJh",
 28            "bnNwb3J0LnByb3RvEidkZWNlbnRyYWxhbmQucmVuZGVyZXIucmVuZGVyZXJf",
 29            "c2VydmljZXMiGgoHUGF5bG9hZBIPCgdwYXlsb2FkGAEgASgMMpMBChBUcmFu",
 30            "c3BvcnRTZXJ2aWNlEn8KE09wZW5UcmFuc3BvcnRTdHJlYW0SMC5kZWNlbnRy",
 31            "YWxhbmQucmVuZGVyZXIucmVuZGVyZXJfc2VydmljZXMuUGF5bG9hZBowLmRl",
 32            "Y2VudHJhbGFuZC5yZW5kZXJlci5yZW5kZXJlcl9zZXJ2aWNlcy5QYXlsb2Fk",
 33            "IgAoATABYgZwcm90bzM="));
 34      descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
 35          new pbr::FileDescriptor[] { },
 36          new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] {
 37            new pbr::GeneratedClrTypeInfo(typeof(global::Decentraland.Renderer.RendererServices.Payload), global::Decent
 38          }));
 39    }
 40    #endregion
 41
 42  }
 43  #region Messages
 44  public sealed partial class Payload : pb::IMessage<Payload>
 45  #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 46      , pb::IBufferMessage
 47  #endif
 48  {
 849    private static readonly pb::MessageParser<Payload> _parser = new pb::MessageParser<Payload>(() => new Payload());
 50    private pb::UnknownFieldSet _unknownFields;
 51    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 52    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 453    public static pb::MessageParser<Payload> Parser { get { return _parser; } }
 54
 55    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 56    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 57    public static pbr::MessageDescriptor Descriptor {
 458      get { return global::Decentraland.Renderer.RendererServices.TransportReflection.Descriptor.MessageTypes[0]; }
 59    }
 60
 61    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 62    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 63    pbr::MessageDescriptor pb::IMessage.Descriptor {
 464      get { return Descriptor; }
 65    }
 66
 67    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 68    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 1869    public Payload() {
 70      OnConstruction();
 1871    }
 72
 73    partial void OnConstruction();
 74
 75    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 76    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 077    public Payload(Payload other) : this() {
 078      payload_ = other.payload_;
 079      _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
 080    }
 81
 82    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 83    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 84    public Payload Clone() {
 085      return new Payload(this);
 86    }
 87
 88    /// <summary>Field number for the "payload" field.</summary>
 89    public const int Payload_FieldNumber = 1;
 1890    private pb::ByteString payload_ = pb::ByteString.Empty;
 91    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 92    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 93    public pb::ByteString Payload_ {
 3494      get { return payload_; }
 95      set {
 1496        payload_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
 1497      }
 98    }
 99
 100    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 101    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 102    public override bool Equals(object other) {
 0103      return Equals(other as Payload);
 104    }
 105
 106    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 107    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 108    public bool Equals(Payload other) {
 0109      if (ReferenceEquals(other, null)) {
 0110        return false;
 111      }
 0112      if (ReferenceEquals(other, this)) {
 0113        return true;
 114      }
 0115      if (Payload_ != other.Payload_) return false;
 0116      return Equals(_unknownFields, other._unknownFields);
 117    }
 118
 119    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 120    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 121    public override int GetHashCode() {
 0122      int hash = 1;
 0123      if (Payload_.Length != 0) hash ^= Payload_.GetHashCode();
 0124      if (_unknownFields != null) {
 0125        hash ^= _unknownFields.GetHashCode();
 126      }
 0127      return hash;
 128    }
 129
 130    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 131    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 132    public override string ToString() {
 0133      return pb::JsonFormatter.ToDiagnosticString(this);
 134    }
 135
 136    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 137    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 138    public void WriteTo(pb::CodedOutputStream output) {
 139    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 140      output.WriteRawMessage(this);
 141    #else
 7142      if (Payload_.Length != 0) {
 7143        output.WriteRawTag(10);
 7144        output.WriteBytes(Payload_);
 145      }
 7146      if (_unknownFields != null) {
 0147        _unknownFields.WriteTo(output);
 148      }
 149    #endif
 7150    }
 151
 152    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 153    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 154    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 155    void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
 156      if (Payload_.Length != 0) {
 157        output.WriteRawTag(10);
 158        output.WriteBytes(Payload_);
 159      }
 160      if (_unknownFields != null) {
 161        _unknownFields.WriteTo(ref output);
 162      }
 163    }
 164    #endif
 165
 166    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 167    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 168    public int CalculateSize() {
 7169      int size = 0;
 7170      if (Payload_.Length != 0) {
 7171        size += 1 + pb::CodedOutputStream.ComputeBytesSize(Payload_);
 172      }
 7173      if (_unknownFields != null) {
 0174        size += _unknownFields.CalculateSize();
 175      }
 7176      return size;
 177    }
 178
 179    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 180    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 181    public void MergeFrom(Payload other) {
 0182      if (other == null) {
 0183        return;
 184      }
 0185      if (other.Payload_.Length != 0) {
 0186        Payload_ = other.Payload_;
 187      }
 0188      _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 0189    }
 190
 191    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 192    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 193    public void MergeFrom(pb::CodedInputStream input) {
 194    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 195      input.ReadRawMessage(this);
 196    #else
 197      uint tag;
 14198      while ((tag = input.ReadTag()) != 0) {
 199        switch(tag) {
 200          default:
 0201            _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
 0202            break;
 203          case 10: {
 7204            Payload_ = input.ReadBytes();
 205            break;
 206          }
 207        }
 208      }
 209    #endif
 7210    }
 211
 212    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 213    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 214    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 215    void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
 216      uint tag;
 217      while ((tag = input.ReadTag()) != 0) {
 218        switch(tag) {
 219          default:
 220            _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
 221            break;
 222          case 10: {
 223            Payload_ = input.ReadBytes();
 224            break;
 225          }
 226        }
 227      }
 228    }
 229    #endif
 230
 231  }
 232
 233  #endregion
 234
 235}
 236
 237#endregion Designer generated code