< Summary

Class:DCL.ECSComponents.PBAvatarBase
Assembly:Decentraland.Protocol.GeneratedCode
File(s):/tmp/workspace/unity-renderer/unity-renderer/Assets/Scripts/MainScripts/DCL/DecentralandProtocol/AvatarBase.gen.cs
Covered lines:0
Uncovered lines:124
Coverable lines:124
Total lines:416
Line coverage:0% (0 of 124)
Covered branches:0
Total branches:0
Covered methods:0
Total methods:25
Method coverage:0% (0 of 25)

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity NPath complexity Sequence coverage
PBAvatarBase()0%2100%
get_Descriptor()0%2100%
PBAvatarBase(...)0%56700%
Clone()0%2100%
PBAvatarBase()0%2100%
Equals(...)0%2100%
Equals(...)0%72800%
GetHashCode()0%56700%
ToString()0%2100%
WriteTo(...)0%56700%
CalculateSize()0%56700%
MergeFrom(...)0%1101000%
MergeFrom(...)0%1321100%

File(s)

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

#LineLine coverage
 1// <auto-generated>
 2//     Generated by the protocol buffer compiler.  DO NOT EDIT!
 3//     source: decentraland/sdk/components/avatar_base.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_base.proto</summary>
 15  public static partial class AvatarBaseReflection {
 16
 17    #region Descriptor
 18    /// <summary>File descriptor for decentraland/sdk/components/avatar_base.proto</summary>
 19    public static pbr::FileDescriptor Descriptor {
 20      get { return descriptor; }
 21    }
 22    private static pbr::FileDescriptor descriptor;
 23
 24    static AvatarBaseReflection() {
 25      byte[] descriptorData = global::System.Convert.FromBase64String(
 26          string.Concat(
 27            "Ci1kZWNlbnRyYWxhbmQvc2RrL2NvbXBvbmVudHMvYXZhdGFyX2Jhc2UucHJv",
 28            "dG8SG2RlY2VudHJhbGFuZC5zZGsuY29tcG9uZW50cxogZGVjZW50cmFsYW5k",
 29            "L2NvbW1vbi9jb2xvcnMucHJvdG8ixwEKDFBCQXZhdGFyQmFzZRIvCgpza2lu",
 30            "X2NvbG9yGAEgASgLMhsuZGVjZW50cmFsYW5kLmNvbW1vbi5Db2xvcjMSLwoK",
 31            "ZXllc19jb2xvchgCIAEoCzIbLmRlY2VudHJhbGFuZC5jb21tb24uQ29sb3Iz",
 32            "Ei8KCmhhaXJfY29sb3IYAyABKAsyGy5kZWNlbnRyYWxhbmQuY29tbW9uLkNv",
 33            "bG9yMxIWCg5ib2R5X3NoYXBlX3VybhgEIAEoCRIMCgRuYW1lGAUgASgJQhSq",
 34            "AhFEQ0wuRUNTQ29tcG9uZW50c2IGcHJvdG8z"));
 35      descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
 36          new pbr::FileDescriptor[] { global::Decentraland.Common.ColorsReflection.Descriptor, },
 37          new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] {
 38            new pbr::GeneratedClrTypeInfo(typeof(global::DCL.ECSComponents.PBAvatarBase), global::DCL.ECSComponents.PBAv
 39          }));
 40    }
 41    #endregion
 42
 43  }
 44  #region Messages
 45  /// <summary>
 46  /// AvatarBase sets all modifiers over the avatar's apparence.
 47  /// </summary>
 48  public sealed partial class PBAvatarBase : pb::IMessage<PBAvatarBase>
 49  #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 50      , pb::IBufferMessage
 51  #endif
 52  {
 053    private static readonly pb::MessageParser<PBAvatarBase> _parser = new pb::MessageParser<PBAvatarBase>(() => new PBAv
 54    private pb::UnknownFieldSet _unknownFields;
 55    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 56    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 057    public static pb::MessageParser<PBAvatarBase> Parser { get { return _parser; } }
 58
 59    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 60    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 61    public static pbr::MessageDescriptor Descriptor {
 062      get { return global::DCL.ECSComponents.AvatarBaseReflection.Descriptor.MessageTypes[0]; }
 63    }
 64
 65    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 66    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 67    pbr::MessageDescriptor pb::IMessage.Descriptor {
 068      get { return Descriptor; }
 69    }
 70
 71    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 72    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 073    public PBAvatarBase() {
 74      OnConstruction();
 075    }
 76
 77    partial void OnConstruction();
 78
 79    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 80    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 081    public PBAvatarBase(PBAvatarBase other) : this() {
 082      skinColor_ = other.skinColor_ != null ? other.skinColor_.Clone() : null;
 083      eyesColor_ = other.eyesColor_ != null ? other.eyesColor_.Clone() : null;
 084      hairColor_ = other.hairColor_ != null ? other.hairColor_.Clone() : null;
 085      bodyShapeUrn_ = other.bodyShapeUrn_;
 086      name_ = other.name_;
 087      _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
 088    }
 89
 90    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 91    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 92    public PBAvatarBase Clone() {
 093      return new PBAvatarBase(this);
 94    }
 95
 96    /// <summary>Field number for the "skin_color" field.</summary>
 97    public const int SkinColorFieldNumber = 1;
 98    private global::Decentraland.Common.Color3 skinColor_;
 99    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 100    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 101    public global::Decentraland.Common.Color3 SkinColor {
 0102      get { return skinColor_; }
 103      set {
 0104        skinColor_ = value;
 0105      }
 106    }
 107
 108    /// <summary>Field number for the "eyes_color" field.</summary>
 109    public const int EyesColorFieldNumber = 2;
 110    private global::Decentraland.Common.Color3 eyesColor_;
 111    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 112    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 113    public global::Decentraland.Common.Color3 EyesColor {
 0114      get { return eyesColor_; }
 115      set {
 0116        eyesColor_ = value;
 0117      }
 118    }
 119
 120    /// <summary>Field number for the "hair_color" field.</summary>
 121    public const int HairColorFieldNumber = 3;
 122    private global::Decentraland.Common.Color3 hairColor_;
 123    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 124    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 125    public global::Decentraland.Common.Color3 HairColor {
 0126      get { return hairColor_; }
 127      set {
 0128        hairColor_ = value;
 0129      }
 130    }
 131
 132    /// <summary>Field number for the "body_shape_urn" field.</summary>
 133    public const int BodyShapeUrnFieldNumber = 4;
 0134    private string bodyShapeUrn_ = "";
 135    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 136    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 137    public string BodyShapeUrn {
 0138      get { return bodyShapeUrn_; }
 139      set {
 0140        bodyShapeUrn_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
 0141      }
 142    }
 143
 144    /// <summary>Field number for the "name" field.</summary>
 145    public const int NameFieldNumber = 5;
 0146    private string name_ = "";
 147    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 148    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 149    public string Name {
 0150      get { return name_; }
 151      set {
 0152        name_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
 0153      }
 154    }
 155
 156    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 157    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 158    public override bool Equals(object other) {
 0159      return Equals(other as PBAvatarBase);
 160    }
 161
 162    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 163    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 164    public bool Equals(PBAvatarBase other) {
 0165      if (ReferenceEquals(other, null)) {
 0166        return false;
 167      }
 0168      if (ReferenceEquals(other, this)) {
 0169        return true;
 170      }
 0171      if (!object.Equals(SkinColor, other.SkinColor)) return false;
 0172      if (!object.Equals(EyesColor, other.EyesColor)) return false;
 0173      if (!object.Equals(HairColor, other.HairColor)) return false;
 0174      if (BodyShapeUrn != other.BodyShapeUrn) return false;
 0175      if (Name != other.Name) return false;
 0176      return Equals(_unknownFields, other._unknownFields);
 177    }
 178
 179    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 180    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 181    public override int GetHashCode() {
 0182      int hash = 1;
 0183      if (skinColor_ != null) hash ^= SkinColor.GetHashCode();
 0184      if (eyesColor_ != null) hash ^= EyesColor.GetHashCode();
 0185      if (hairColor_ != null) hash ^= HairColor.GetHashCode();
 0186      if (BodyShapeUrn.Length != 0) hash ^= BodyShapeUrn.GetHashCode();
 0187      if (Name.Length != 0) hash ^= Name.GetHashCode();
 0188      if (_unknownFields != null) {
 0189        hash ^= _unknownFields.GetHashCode();
 190      }
 0191      return hash;
 192    }
 193
 194    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 195    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 196    public override string ToString() {
 0197      return pb::JsonFormatter.ToDiagnosticString(this);
 198    }
 199
 200    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 201    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 202    public void WriteTo(pb::CodedOutputStream output) {
 203    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 204      output.WriteRawMessage(this);
 205    #else
 0206      if (skinColor_ != null) {
 0207        output.WriteRawTag(10);
 0208        output.WriteMessage(SkinColor);
 209      }
 0210      if (eyesColor_ != null) {
 0211        output.WriteRawTag(18);
 0212        output.WriteMessage(EyesColor);
 213      }
 0214      if (hairColor_ != null) {
 0215        output.WriteRawTag(26);
 0216        output.WriteMessage(HairColor);
 217      }
 0218      if (BodyShapeUrn.Length != 0) {
 0219        output.WriteRawTag(34);
 0220        output.WriteString(BodyShapeUrn);
 221      }
 0222      if (Name.Length != 0) {
 0223        output.WriteRawTag(42);
 0224        output.WriteString(Name);
 225      }
 0226      if (_unknownFields != null) {
 0227        _unknownFields.WriteTo(output);
 228      }
 229    #endif
 0230    }
 231
 232    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 233    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 234    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 235    void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
 236      if (skinColor_ != null) {
 237        output.WriteRawTag(10);
 238        output.WriteMessage(SkinColor);
 239      }
 240      if (eyesColor_ != null) {
 241        output.WriteRawTag(18);
 242        output.WriteMessage(EyesColor);
 243      }
 244      if (hairColor_ != null) {
 245        output.WriteRawTag(26);
 246        output.WriteMessage(HairColor);
 247      }
 248      if (BodyShapeUrn.Length != 0) {
 249        output.WriteRawTag(34);
 250        output.WriteString(BodyShapeUrn);
 251      }
 252      if (Name.Length != 0) {
 253        output.WriteRawTag(42);
 254        output.WriteString(Name);
 255      }
 256      if (_unknownFields != null) {
 257        _unknownFields.WriteTo(ref output);
 258      }
 259    }
 260    #endif
 261
 262    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 263    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 264    public int CalculateSize() {
 0265      int size = 0;
 0266      if (skinColor_ != null) {
 0267        size += 1 + pb::CodedOutputStream.ComputeMessageSize(SkinColor);
 268      }
 0269      if (eyesColor_ != null) {
 0270        size += 1 + pb::CodedOutputStream.ComputeMessageSize(EyesColor);
 271      }
 0272      if (hairColor_ != null) {
 0273        size += 1 + pb::CodedOutputStream.ComputeMessageSize(HairColor);
 274      }
 0275      if (BodyShapeUrn.Length != 0) {
 0276        size += 1 + pb::CodedOutputStream.ComputeStringSize(BodyShapeUrn);
 277      }
 0278      if (Name.Length != 0) {
 0279        size += 1 + pb::CodedOutputStream.ComputeStringSize(Name);
 280      }
 0281      if (_unknownFields != null) {
 0282        size += _unknownFields.CalculateSize();
 283      }
 0284      return size;
 285    }
 286
 287    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 288    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 289    public void MergeFrom(PBAvatarBase other) {
 0290      if (other == null) {
 0291        return;
 292      }
 0293      if (other.skinColor_ != null) {
 0294        if (skinColor_ == null) {
 0295          SkinColor = new global::Decentraland.Common.Color3();
 296        }
 0297        SkinColor.MergeFrom(other.SkinColor);
 298      }
 0299      if (other.eyesColor_ != null) {
 0300        if (eyesColor_ == null) {
 0301          EyesColor = new global::Decentraland.Common.Color3();
 302        }
 0303        EyesColor.MergeFrom(other.EyesColor);
 304      }
 0305      if (other.hairColor_ != null) {
 0306        if (hairColor_ == null) {
 0307          HairColor = new global::Decentraland.Common.Color3();
 308        }
 0309        HairColor.MergeFrom(other.HairColor);
 310      }
 0311      if (other.BodyShapeUrn.Length != 0) {
 0312        BodyShapeUrn = other.BodyShapeUrn;
 313      }
 0314      if (other.Name.Length != 0) {
 0315        Name = other.Name;
 316      }
 0317      _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 0318    }
 319
 320    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 321    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 322    public void MergeFrom(pb::CodedInputStream input) {
 323    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 324      input.ReadRawMessage(this);
 325    #else
 326      uint tag;
 0327      while ((tag = input.ReadTag()) != 0) {
 328        switch(tag) {
 329          default:
 0330            _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
 0331            break;
 332          case 10: {
 0333            if (skinColor_ == null) {
 0334              SkinColor = new global::Decentraland.Common.Color3();
 335            }
 0336            input.ReadMessage(SkinColor);
 0337            break;
 338          }
 339          case 18: {
 0340            if (eyesColor_ == null) {
 0341              EyesColor = new global::Decentraland.Common.Color3();
 342            }
 0343            input.ReadMessage(EyesColor);
 0344            break;
 345          }
 346          case 26: {
 0347            if (hairColor_ == null) {
 0348              HairColor = new global::Decentraland.Common.Color3();
 349            }
 0350            input.ReadMessage(HairColor);
 0351            break;
 352          }
 353          case 34: {
 0354            BodyShapeUrn = input.ReadString();
 0355            break;
 356          }
 357          case 42: {
 0358            Name = input.ReadString();
 359            break;
 360          }
 361        }
 362      }
 363    #endif
 0364    }
 365
 366    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 367    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 368    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 369    void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
 370      uint tag;
 371      while ((tag = input.ReadTag()) != 0) {
 372        switch(tag) {
 373          default:
 374            _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
 375            break;
 376          case 10: {
 377            if (skinColor_ == null) {
 378              SkinColor = new global::Decentraland.Common.Color3();
 379            }
 380            input.ReadMessage(SkinColor);
 381            break;
 382          }
 383          case 18: {
 384            if (eyesColor_ == null) {
 385              EyesColor = new global::Decentraland.Common.Color3();
 386            }
 387            input.ReadMessage(EyesColor);
 388            break;
 389          }
 390          case 26: {
 391            if (hairColor_ == null) {
 392              HairColor = new global::Decentraland.Common.Color3();
 393            }
 394            input.ReadMessage(HairColor);
 395            break;
 396          }
 397          case 34: {
 398            BodyShapeUrn = input.ReadString();
 399            break;
 400          }
 401          case 42: {
 402            Name = input.ReadString();
 403            break;
 404          }
 405        }
 406      }
 407    }
 408    #endif
 409
 410  }
 411
 412  #endregion
 413
 414}
 415
 416#endregion Designer generated code