< Summary

Class:DCL.ECSComponents.EntityReflection
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:4
Coverable lines:4
Total lines:351
Line coverage:0% (0 of 4)
Covered branches:0
Total branches:0

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity NPath complexity Sequence coverage
EntityReflection()0%2100%

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 {
 020      get { return descriptor; }
 21    }
 22    private static pbr::FileDescriptor descriptor;
 23
 24    static EntityReflection() {
 025      byte[] descriptorData = global::System.Convert.FromBase64String(
 26          string.Concat(
 27            "CiBkZWNlbnRyYWxhbmQvY29tbW9uL2VudGl0eS5wcm90bxITZGVjZW50cmFs",
 28            "YW5kLmNvbW1vbhopZGVjZW50cmFsYW5kL2NvbW1vbi9jb250ZW50X21hcHBp",
 29            "bmcucHJvdG8igQEKBkVudGl0eRIKCgJpZBgBIAMoCRIQCghwb2ludGVycxgC",
 30            "IAMoCRIQCghtZXRhZGF0YRgDIAEoCRIRCgl0aW1lc3RhbXAYBCABKA0SNAoH",
 31            "Y29udGVudBgFIAMoCzIjLmRlY2VudHJhbGFuZC5jb21tb24uQ29udGVudE1h",
 32            "cHBpbmdCFKoCEURDTC5FQ1NDb21wb25lbnRzYgZwcm90bzM="));
 033      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          }));
 038    }
 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  {
 48    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)]
 52    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 {
 57      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 {
 63      get { return Descriptor; }
 64    }
 65
 66    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 67    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 68    public Entity() {
 69      OnConstruction();
 70    }
 71
 72    partial void OnConstruction();
 73
 74    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 75    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 76    public Entity(Entity other) : this() {
 77      id_ = other.id_.Clone();
 78      pointers_ = other.pointers_.Clone();
 79      metadata_ = other.metadata_;
 80      timestamp_ = other.timestamp_;
 81      content_ = other.content_.Clone();
 82      _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
 83    }
 84
 85    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 86    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 87    public Entity Clone() {
 88      return new Entity(this);
 89    }
 90
 91    /// <summary>Field number for the "id" field.</summary>
 92    public const int IdFieldNumber = 1;
 93    private static readonly pb::FieldCodec<string> _repeated_id_codec
 94        = pb::FieldCodec.ForString(10);
 95    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 {
 99      get { return id_; }
 100    }
 101
 102    /// <summary>Field number for the "pointers" field.</summary>
 103    public const int PointersFieldNumber = 2;
 104    private static readonly pb::FieldCodec<string> _repeated_pointers_codec
 105        = pb::FieldCodec.ForString(18);
 106    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 {
 110      get { return pointers_; }
 111    }
 112
 113    /// <summary>Field number for the "metadata" field.</summary>
 114    public const int MetadataFieldNumber = 3;
 115    private string metadata_ = "";
 116    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 117    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 118    public string Metadata {
 119      get { return metadata_; }
 120      set {
 121        metadata_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
 122      }
 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 {
 131      get { return timestamp_; }
 132      set {
 133        timestamp_ = value;
 134      }
 135    }
 136
 137    /// <summary>Field number for the "content" field.</summary>
 138    public const int ContentFieldNumber = 5;
 139    private static readonly pb::FieldCodec<global::DCL.ECSComponents.ContentMapping> _repeated_content_codec
 140        = pb::FieldCodec.ForMessage(42, global::DCL.ECSComponents.ContentMapping.Parser);
 141    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 {
 145      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) {
 151      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) {
 157      if (ReferenceEquals(other, null)) {
 158        return false;
 159      }
 160      if (ReferenceEquals(other, this)) {
 161        return true;
 162      }
 163      if(!id_.Equals(other.id_)) return false;
 164      if(!pointers_.Equals(other.pointers_)) return false;
 165      if (Metadata != other.Metadata) return false;
 166      if (Timestamp != other.Timestamp) return false;
 167      if(!content_.Equals(other.content_)) return false;
 168      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() {
 174      int hash = 1;
 175      hash ^= id_.GetHashCode();
 176      hash ^= pointers_.GetHashCode();
 177      if (Metadata.Length != 0) hash ^= Metadata.GetHashCode();
 178      if (Timestamp != 0) hash ^= Timestamp.GetHashCode();
 179      hash ^= content_.GetHashCode();
 180      if (_unknownFields != null) {
 181        hash ^= _unknownFields.GetHashCode();
 182      }
 183      return hash;
 184    }
 185
 186    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 187    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 188    public override string ToString() {
 189      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
 198      id_.WriteTo(output, _repeated_id_codec);
 199      pointers_.WriteTo(output, _repeated_pointers_codec);
 200      if (Metadata.Length != 0) {
 201        output.WriteRawTag(26);
 202        output.WriteString(Metadata);
 203      }
 204      if (Timestamp != 0) {
 205        output.WriteRawTag(32);
 206        output.WriteUInt32(Timestamp);
 207      }
 208      content_.WriteTo(output, _repeated_content_codec);
 209      if (_unknownFields != null) {
 210        _unknownFields.WriteTo(output);
 211      }
 212    #endif
 213    }
 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() {
 239      int size = 0;
 240      size += id_.CalculateSize(_repeated_id_codec);
 241      size += pointers_.CalculateSize(_repeated_pointers_codec);
 242      if (Metadata.Length != 0) {
 243        size += 1 + pb::CodedOutputStream.ComputeStringSize(Metadata);
 244      }
 245      if (Timestamp != 0) {
 246        size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Timestamp);
 247      }
 248      size += content_.CalculateSize(_repeated_content_codec);
 249      if (_unknownFields != null) {
 250        size += _unknownFields.CalculateSize();
 251      }
 252      return size;
 253    }
 254
 255    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 256    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 257    public void MergeFrom(Entity other) {
 258      if (other == null) {
 259        return;
 260      }
 261      id_.Add(other.id_);
 262      pointers_.Add(other.pointers_);
 263      if (other.Metadata.Length != 0) {
 264        Metadata = other.Metadata;
 265      }
 266      if (other.Timestamp != 0) {
 267        Timestamp = other.Timestamp;
 268      }
 269      content_.Add(other.content_);
 270      _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 271    }
 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;
 280      while ((tag = input.ReadTag()) != 0) {
 281        switch(tag) {
 282          default:
 283            _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
 284            break;
 285          case 10: {
 286            id_.AddEntriesFrom(input, _repeated_id_codec);
 287            break;
 288          }
 289          case 18: {
 290            pointers_.AddEntriesFrom(input, _repeated_pointers_codec);
 291            break;
 292          }
 293          case 26: {
 294            Metadata = input.ReadString();
 295            break;
 296          }
 297          case 32: {
 298            Timestamp = input.ReadUInt32();
 299            break;
 300          }
 301          case 42: {
 302            content_.AddEntriesFrom(input, _repeated_content_codec);
 303            break;
 304          }
 305        }
 306      }
 307    #endif
 308    }
 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

Methods/Properties

Descriptor()
EntityReflection()