< Summary

Class:DCL.ECSComponents.Entity
Assembly:DCL.ECSComponents.ProtobufData
File(s):/tmp/workspace/unity-renderer/unity-renderer/Assets/DCLPlugins/ECS7/ProtocolBuffers/Generated/Entity.gen.cs
Covered lines:0
Uncovered lines:99
Coverable lines:99
Total lines:351
Line coverage:0% (0 of 99)
Covered branches:0
Total branches:0

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity NPath complexity Sequence coverage
Entity()0%2100%
get_Descriptor()0%2100%
Entity(...)0%2100%
Clone()0%2100%
Entity()0%2100%
Equals(...)0%2100%
Equals(...)0%72800%
GetHashCode()0%20400%
ToString()0%2100%
WriteTo(...)0%20400%
CalculateSize()0%20400%
MergeFrom(...)0%20400%
MergeFrom(...)0%72800%

File(s)

/tmp/workspace/unity-renderer/unity-renderer/Assets/DCLPlugins/ECS7/ProtocolBuffers/Generated/Entity.gen.cs

#LineLine coverage
 1// <auto-generated>
 2//     Generated by the protocol buffer compiler.  DO NOT EDIT!
 3//     source: decentraland/common/entity.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 DCL.ECSComponents {
 13
 14  /// <summary>Holder for reflection information generated from decentraland/common/entity.proto</summary>
 15  public static partial class EntityReflection {
 16
 17    #region Descriptor
 18    /// <summary>File descriptor for decentraland/common/entity.proto</summary>
 19    public static pbr::FileDescriptor Descriptor {
 20      get { return descriptor; }
 21    }
 22    private static pbr::FileDescriptor descriptor;
 23
 24    static EntityReflection() {
 25      byte[] descriptorData = global::System.Convert.FromBase64String(
 26          string.Concat(
 27            "CiBkZWNlbnRyYWxhbmQvY29tbW9uL2VudGl0eS5wcm90bxITZGVjZW50cmFs",
 28            "YW5kLmNvbW1vbhopZGVjZW50cmFsYW5kL2NvbW1vbi9jb250ZW50X21hcHBp",
 29            "bmcucHJvdG8igQEKBkVudGl0eRIKCgJpZBgBIAMoCRIQCghwb2ludGVycxgC",
 30            "IAMoCRIQCghtZXRhZGF0YRgDIAEoCRIRCgl0aW1lc3RhbXAYBCABKA0SNAoH",
 31            "Y29udGVudBgFIAMoCzIjLmRlY2VudHJhbGFuZC5jb21tb24uQ29udGVudE1h",
 32            "cHBpbmdCFKoCEURDTC5FQ1NDb21wb25lbnRzYgZwcm90bzM="));
 33      descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
 34          new pbr::FileDescriptor[] { global::DCL.ECSComponents.ContentMappingReflection.Descriptor, },
 35          new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] {
 36            new pbr::GeneratedClrTypeInfo(typeof(global::DCL.ECSComponents.Entity), global::DCL.ECSComponents.Entity.Par
 37          }));
 38    }
 39    #endregion
 40
 41  }
 42  #region Messages
 43  public sealed partial class Entity : pb::IMessage<Entity>
 44  #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 45      , pb::IBufferMessage
 46  #endif
 47  {
 048    private static readonly pb::MessageParser<Entity> _parser = new pb::MessageParser<Entity>(() => new Entity());
 49    private pb::UnknownFieldSet _unknownFields;
 50    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 51    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 052    public static pb::MessageParser<Entity> Parser { get { return _parser; } }
 53
 54    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 55    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 56    public static pbr::MessageDescriptor Descriptor {
 057      get { return global::DCL.ECSComponents.EntityReflection.Descriptor.MessageTypes[0]; }
 58    }
 59
 60    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 61    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 62    pbr::MessageDescriptor pb::IMessage.Descriptor {
 063      get { return Descriptor; }
 64    }
 65
 66    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 67    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 068    public Entity() {
 69      OnConstruction();
 070    }
 71
 72    partial void OnConstruction();
 73
 74    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 75    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 076    public Entity(Entity other) : this() {
 077      id_ = other.id_.Clone();
 078      pointers_ = other.pointers_.Clone();
 079      metadata_ = other.metadata_;
 080      timestamp_ = other.timestamp_;
 081      content_ = other.content_.Clone();
 082      _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
 083    }
 84
 85    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 86    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 87    public Entity Clone() {
 088      return new Entity(this);
 89    }
 90
 91    /// <summary>Field number for the "id" field.</summary>
 92    public const int IdFieldNumber = 1;
 093    private static readonly pb::FieldCodec<string> _repeated_id_codec
 94        = pb::FieldCodec.ForString(10);
 095    private readonly pbc::RepeatedField<string> id_ = new pbc::RepeatedField<string>();
 96    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 97    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 98    public pbc::RepeatedField<string> Id {
 099      get { return id_; }
 100    }
 101
 102    /// <summary>Field number for the "pointers" field.</summary>
 103    public const int PointersFieldNumber = 2;
 0104    private static readonly pb::FieldCodec<string> _repeated_pointers_codec
 105        = pb::FieldCodec.ForString(18);
 0106    private readonly pbc::RepeatedField<string> pointers_ = new pbc::RepeatedField<string>();
 107    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 108    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 109    public pbc::RepeatedField<string> Pointers {
 0110      get { return pointers_; }
 111    }
 112
 113    /// <summary>Field number for the "metadata" field.</summary>
 114    public const int MetadataFieldNumber = 3;
 0115    private string metadata_ = "";
 116    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 117    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 118    public string Metadata {
 0119      get { return metadata_; }
 120      set {
 0121        metadata_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
 0122      }
 123    }
 124
 125    /// <summary>Field number for the "timestamp" field.</summary>
 126    public const int TimestampFieldNumber = 4;
 127    private uint timestamp_;
 128    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 129    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 130    public uint Timestamp {
 0131      get { return timestamp_; }
 132      set {
 0133        timestamp_ = value;
 0134      }
 135    }
 136
 137    /// <summary>Field number for the "content" field.</summary>
 138    public const int ContentFieldNumber = 5;
 0139    private static readonly pb::FieldCodec<global::DCL.ECSComponents.ContentMapping> _repeated_content_codec
 140        = pb::FieldCodec.ForMessage(42, global::DCL.ECSComponents.ContentMapping.Parser);
 0141    private readonly pbc::RepeatedField<global::DCL.ECSComponents.ContentMapping> content_ = new pbc::RepeatedField<glob
 142    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 143    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 144    public pbc::RepeatedField<global::DCL.ECSComponents.ContentMapping> Content {
 0145      get { return content_; }
 146    }
 147
 148    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 149    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 150    public override bool Equals(object other) {
 0151      return Equals(other as Entity);
 152    }
 153
 154    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 155    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 156    public bool Equals(Entity other) {
 0157      if (ReferenceEquals(other, null)) {
 0158        return false;
 159      }
 0160      if (ReferenceEquals(other, this)) {
 0161        return true;
 162      }
 0163      if(!id_.Equals(other.id_)) return false;
 0164      if(!pointers_.Equals(other.pointers_)) return false;
 0165      if (Metadata != other.Metadata) return false;
 0166      if (Timestamp != other.Timestamp) return false;
 0167      if(!content_.Equals(other.content_)) return false;
 0168      return Equals(_unknownFields, other._unknownFields);
 169    }
 170
 171    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 172    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 173    public override int GetHashCode() {
 0174      int hash = 1;
 0175      hash ^= id_.GetHashCode();
 0176      hash ^= pointers_.GetHashCode();
 0177      if (Metadata.Length != 0) hash ^= Metadata.GetHashCode();
 0178      if (Timestamp != 0) hash ^= Timestamp.GetHashCode();
 0179      hash ^= content_.GetHashCode();
 0180      if (_unknownFields != null) {
 0181        hash ^= _unknownFields.GetHashCode();
 182      }
 0183      return hash;
 184    }
 185
 186    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 187    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 188    public override string ToString() {
 0189      return pb::JsonFormatter.ToDiagnosticString(this);
 190    }
 191
 192    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 193    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 194    public void WriteTo(pb::CodedOutputStream output) {
 195    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 196      output.WriteRawMessage(this);
 197    #else
 0198      id_.WriteTo(output, _repeated_id_codec);
 0199      pointers_.WriteTo(output, _repeated_pointers_codec);
 0200      if (Metadata.Length != 0) {
 0201        output.WriteRawTag(26);
 0202        output.WriteString(Metadata);
 203      }
 0204      if (Timestamp != 0) {
 0205        output.WriteRawTag(32);
 0206        output.WriteUInt32(Timestamp);
 207      }
 0208      content_.WriteTo(output, _repeated_content_codec);
 0209      if (_unknownFields != null) {
 0210        _unknownFields.WriteTo(output);
 211      }
 212    #endif
 0213    }
 214
 215    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 216    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 217    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 218    void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
 219      id_.WriteTo(ref output, _repeated_id_codec);
 220      pointers_.WriteTo(ref output, _repeated_pointers_codec);
 221      if (Metadata.Length != 0) {
 222        output.WriteRawTag(26);
 223        output.WriteString(Metadata);
 224      }
 225      if (Timestamp != 0) {
 226        output.WriteRawTag(32);
 227        output.WriteUInt32(Timestamp);
 228      }
 229      content_.WriteTo(ref output, _repeated_content_codec);
 230      if (_unknownFields != null) {
 231        _unknownFields.WriteTo(ref output);
 232      }
 233    }
 234    #endif
 235
 236    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 237    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 238    public int CalculateSize() {
 0239      int size = 0;
 0240      size += id_.CalculateSize(_repeated_id_codec);
 0241      size += pointers_.CalculateSize(_repeated_pointers_codec);
 0242      if (Metadata.Length != 0) {
 0243        size += 1 + pb::CodedOutputStream.ComputeStringSize(Metadata);
 244      }
 0245      if (Timestamp != 0) {
 0246        size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Timestamp);
 247      }
 0248      size += content_.CalculateSize(_repeated_content_codec);
 0249      if (_unknownFields != null) {
 0250        size += _unknownFields.CalculateSize();
 251      }
 0252      return size;
 253    }
 254
 255    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 256    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 257    public void MergeFrom(Entity other) {
 0258      if (other == null) {
 0259        return;
 260      }
 0261      id_.Add(other.id_);
 0262      pointers_.Add(other.pointers_);
 0263      if (other.Metadata.Length != 0) {
 0264        Metadata = other.Metadata;
 265      }
 0266      if (other.Timestamp != 0) {
 0267        Timestamp = other.Timestamp;
 268      }
 0269      content_.Add(other.content_);
 0270      _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 0271    }
 272
 273    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 274    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 275    public void MergeFrom(pb::CodedInputStream input) {
 276    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 277      input.ReadRawMessage(this);
 278    #else
 279      uint tag;
 0280      while ((tag = input.ReadTag()) != 0) {
 281        switch(tag) {
 282          default:
 0283            _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
 0284            break;
 285          case 10: {
 0286            id_.AddEntriesFrom(input, _repeated_id_codec);
 0287            break;
 288          }
 289          case 18: {
 0290            pointers_.AddEntriesFrom(input, _repeated_pointers_codec);
 0291            break;
 292          }
 293          case 26: {
 0294            Metadata = input.ReadString();
 0295            break;
 296          }
 297          case 32: {
 0298            Timestamp = input.ReadUInt32();
 0299            break;
 300          }
 301          case 42: {
 0302            content_.AddEntriesFrom(input, _repeated_content_codec);
 303            break;
 304          }
 305        }
 306      }
 307    #endif
 0308    }
 309
 310    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 311    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 312    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 313    void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
 314      uint tag;
 315      while ((tag = input.ReadTag()) != 0) {
 316        switch(tag) {
 317          default:
 318            _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
 319            break;
 320          case 10: {
 321            id_.AddEntriesFrom(ref input, _repeated_id_codec);
 322            break;
 323          }
 324          case 18: {
 325            pointers_.AddEntriesFrom(ref input, _repeated_pointers_codec);
 326            break;
 327          }
 328          case 26: {
 329            Metadata = input.ReadString();
 330            break;
 331          }
 332          case 32: {
 333            Timestamp = input.ReadUInt32();
 334            break;
 335          }
 336          case 42: {
 337            content_.AddEntriesFrom(ref input, _repeated_content_codec);
 338            break;
 339          }
 340        }
 341      }
 342    }
 343    #endif
 344
 345  }
 346
 347  #endregion
 348
 349}
 350
 351#endregion Designer generated code