< Summary

Class:DCL.ECSComponents.PBAvatarEquippedData
Assembly:Decentraland.Protocol.GeneratedCode
File(s):/tmp/workspace/unity-renderer/unity-renderer/Assets/Scripts/MainScripts/DCL/DecentralandProtocol/AvatarEquippedData.gen.cs
Covered lines:0
Uncovered lines:57
Coverable lines:57
Total lines:255
Line coverage:0% (0 of 57)
Covered branches:0
Total branches:0
Covered methods:0
Total methods:17
Method coverage:0% (0 of 17)

Metrics

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

File(s)

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

#LineLine coverage
 1// <auto-generated>
 2//     Generated by the protocol buffer compiler.  DO NOT EDIT!
 3//     source: decentraland/sdk/components/avatar_equipped_data.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/sdk/components/avatar_equipped_data.proto</
 15  public static partial class AvatarEquippedDataReflection {
 16
 17    #region Descriptor
 18    /// <summary>File descriptor for decentraland/sdk/components/avatar_equipped_data.proto</summary>
 19    public static pbr::FileDescriptor Descriptor {
 20      get { return descriptor; }
 21    }
 22    private static pbr::FileDescriptor descriptor;
 23
 24    static AvatarEquippedDataReflection() {
 25      byte[] descriptorData = global::System.Convert.FromBase64String(
 26          string.Concat(
 27            "CjZkZWNlbnRyYWxhbmQvc2RrL2NvbXBvbmVudHMvYXZhdGFyX2VxdWlwcGVk",
 28            "X2RhdGEucHJvdG8SG2RlY2VudHJhbGFuZC5zZGsuY29tcG9uZW50cyJBChRQ",
 29            "QkF2YXRhckVxdWlwcGVkRGF0YRIVCg13ZWFyYWJsZV91cm5zGAEgAygJEhIK",
 30            "CmVtb3RlX3VybnMYAiADKAlCFKoCEURDTC5FQ1NDb21wb25lbnRzYgZwcm90",
 31            "bzM="));
 32      descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
 33          new pbr::FileDescriptor[] { },
 34          new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] {
 35            new pbr::GeneratedClrTypeInfo(typeof(global::DCL.ECSComponents.PBAvatarEquippedData), global::DCL.ECSCompone
 36          }));
 37    }
 38    #endregion
 39
 40  }
 41  #region Messages
 42  /// <summary>
 43  /// AvatarEquipData is used to read the information about the avatar's owneables.
 44  /// this component is written by the engine using the communications transports'
 45  /// data.
 46  /// </summary>
 47  public sealed partial class PBAvatarEquippedData : pb::IMessage<PBAvatarEquippedData>
 48  #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 49      , pb::IBufferMessage
 50  #endif
 51  {
 052    private static readonly pb::MessageParser<PBAvatarEquippedData> _parser = new pb::MessageParser<PBAvatarEquippedData
 53    private pb::UnknownFieldSet _unknownFields;
 54    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 55    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 056    public static pb::MessageParser<PBAvatarEquippedData> Parser { get { return _parser; } }
 57
 58    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 59    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 60    public static pbr::MessageDescriptor Descriptor {
 061      get { return global::DCL.ECSComponents.AvatarEquippedDataReflection.Descriptor.MessageTypes[0]; }
 62    }
 63
 64    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 65    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 66    pbr::MessageDescriptor pb::IMessage.Descriptor {
 067      get { return Descriptor; }
 68    }
 69
 70    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 71    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 072    public PBAvatarEquippedData() {
 73      OnConstruction();
 074    }
 75
 76    partial void OnConstruction();
 77
 78    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 79    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 080    public PBAvatarEquippedData(PBAvatarEquippedData other) : this() {
 081      wearableUrns_ = other.wearableUrns_.Clone();
 082      emoteUrns_ = other.emoteUrns_.Clone();
 083      _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
 084    }
 85
 86    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 87    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 88    public PBAvatarEquippedData Clone() {
 089      return new PBAvatarEquippedData(this);
 90    }
 91
 92    /// <summary>Field number for the "wearable_urns" field.</summary>
 93    public const int WearableUrnsFieldNumber = 1;
 094    private static readonly pb::FieldCodec<string> _repeated_wearableUrns_codec
 95        = pb::FieldCodec.ForString(10);
 096    private readonly pbc::RepeatedField<string> wearableUrns_ = new pbc::RepeatedField<string>();
 97    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 98    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 99    public pbc::RepeatedField<string> WearableUrns {
 0100      get { return wearableUrns_; }
 101    }
 102
 103    /// <summary>Field number for the "emote_urns" field.</summary>
 104    public const int EmoteUrnsFieldNumber = 2;
 0105    private static readonly pb::FieldCodec<string> _repeated_emoteUrns_codec
 106        = pb::FieldCodec.ForString(18);
 0107    private readonly pbc::RepeatedField<string> emoteUrns_ = new pbc::RepeatedField<string>();
 108    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 109    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 110    public pbc::RepeatedField<string> EmoteUrns {
 0111      get { return emoteUrns_; }
 112    }
 113
 114    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 115    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 116    public override bool Equals(object other) {
 0117      return Equals(other as PBAvatarEquippedData);
 118    }
 119
 120    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 121    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 122    public bool Equals(PBAvatarEquippedData other) {
 0123      if (ReferenceEquals(other, null)) {
 0124        return false;
 125      }
 0126      if (ReferenceEquals(other, this)) {
 0127        return true;
 128      }
 0129      if(!wearableUrns_.Equals(other.wearableUrns_)) return false;
 0130      if(!emoteUrns_.Equals(other.emoteUrns_)) return false;
 0131      return Equals(_unknownFields, other._unknownFields);
 132    }
 133
 134    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 135    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 136    public override int GetHashCode() {
 0137      int hash = 1;
 0138      hash ^= wearableUrns_.GetHashCode();
 0139      hash ^= emoteUrns_.GetHashCode();
 0140      if (_unknownFields != null) {
 0141        hash ^= _unknownFields.GetHashCode();
 142      }
 0143      return hash;
 144    }
 145
 146    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 147    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 148    public override string ToString() {
 0149      return pb::JsonFormatter.ToDiagnosticString(this);
 150    }
 151
 152    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 153    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 154    public void WriteTo(pb::CodedOutputStream output) {
 155    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 156      output.WriteRawMessage(this);
 157    #else
 0158      wearableUrns_.WriteTo(output, _repeated_wearableUrns_codec);
 0159      emoteUrns_.WriteTo(output, _repeated_emoteUrns_codec);
 0160      if (_unknownFields != null) {
 0161        _unknownFields.WriteTo(output);
 162      }
 163    #endif
 0164    }
 165
 166    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 167    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 168    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 169    void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
 170      wearableUrns_.WriteTo(ref output, _repeated_wearableUrns_codec);
 171      emoteUrns_.WriteTo(ref output, _repeated_emoteUrns_codec);
 172      if (_unknownFields != null) {
 173        _unknownFields.WriteTo(ref output);
 174      }
 175    }
 176    #endif
 177
 178    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 179    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 180    public int CalculateSize() {
 0181      int size = 0;
 0182      size += wearableUrns_.CalculateSize(_repeated_wearableUrns_codec);
 0183      size += emoteUrns_.CalculateSize(_repeated_emoteUrns_codec);
 0184      if (_unknownFields != null) {
 0185        size += _unknownFields.CalculateSize();
 186      }
 0187      return size;
 188    }
 189
 190    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 191    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 192    public void MergeFrom(PBAvatarEquippedData other) {
 0193      if (other == null) {
 0194        return;
 195      }
 0196      wearableUrns_.Add(other.wearableUrns_);
 0197      emoteUrns_.Add(other.emoteUrns_);
 0198      _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 0199    }
 200
 201    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 202    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 203    public void MergeFrom(pb::CodedInputStream input) {
 204    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 205      input.ReadRawMessage(this);
 206    #else
 207      uint tag;
 0208      while ((tag = input.ReadTag()) != 0) {
 209        switch(tag) {
 210          default:
 0211            _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
 0212            break;
 213          case 10: {
 0214            wearableUrns_.AddEntriesFrom(input, _repeated_wearableUrns_codec);
 0215            break;
 216          }
 217          case 18: {
 0218            emoteUrns_.AddEntriesFrom(input, _repeated_emoteUrns_codec);
 219            break;
 220          }
 221        }
 222      }
 223    #endif
 0224    }
 225
 226    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 227    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 228    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 229    void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
 230      uint tag;
 231      while ((tag = input.ReadTag()) != 0) {
 232        switch(tag) {
 233          default:
 234            _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
 235            break;
 236          case 10: {
 237            wearableUrns_.AddEntriesFrom(ref input, _repeated_wearableUrns_codec);
 238            break;
 239          }
 240          case 18: {
 241            emoteUrns_.AddEntriesFrom(ref input, _repeated_emoteUrns_codec);
 242            break;
 243          }
 244        }
 245      }
 246    }
 247    #endif
 248
 249  }
 250
 251  #endregion
 252
 253}
 254
 255#endregion Designer generated code