< Summary

Class:DCL.ECSComponents.AvatarBaseReflection
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:4
Coverable lines:4
Total lines:416
Line coverage:0% (0 of 4)
Covered branches:0
Total branches:0
Covered methods:0
Total methods:2
Method coverage:0% (0 of 2)

Metrics

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

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 {
 020      get { return descriptor; }
 21    }
 22    private static pbr::FileDescriptor descriptor;
 23
 24    static AvatarBaseReflection() {
 025      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"));
 035      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          }));
 040    }
 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  {
 53    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)]
 57    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 {
 62      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 {
 68      get { return Descriptor; }
 69    }
 70
 71    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 72    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 73    public PBAvatarBase() {
 74      OnConstruction();
 75    }
 76
 77    partial void OnConstruction();
 78
 79    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 80    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 81    public PBAvatarBase(PBAvatarBase other) : this() {
 82      skinColor_ = other.skinColor_ != null ? other.skinColor_.Clone() : null;
 83      eyesColor_ = other.eyesColor_ != null ? other.eyesColor_.Clone() : null;
 84      hairColor_ = other.hairColor_ != null ? other.hairColor_.Clone() : null;
 85      bodyShapeUrn_ = other.bodyShapeUrn_;
 86      name_ = other.name_;
 87      _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
 88    }
 89
 90    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 91    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 92    public PBAvatarBase Clone() {
 93      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 {
 102      get { return skinColor_; }
 103      set {
 104        skinColor_ = value;
 105      }
 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 {
 114      get { return eyesColor_; }
 115      set {
 116        eyesColor_ = value;
 117      }
 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 {
 126      get { return hairColor_; }
 127      set {
 128        hairColor_ = value;
 129      }
 130    }
 131
 132    /// <summary>Field number for the "body_shape_urn" field.</summary>
 133    public const int BodyShapeUrnFieldNumber = 4;
 134    private string bodyShapeUrn_ = "";
 135    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 136    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 137    public string BodyShapeUrn {
 138      get { return bodyShapeUrn_; }
 139      set {
 140        bodyShapeUrn_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
 141      }
 142    }
 143
 144    /// <summary>Field number for the "name" field.</summary>
 145    public const int NameFieldNumber = 5;
 146    private string name_ = "";
 147    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 148    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 149    public string Name {
 150      get { return name_; }
 151      set {
 152        name_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
 153      }
 154    }
 155
 156    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 157    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 158    public override bool Equals(object other) {
 159      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) {
 165      if (ReferenceEquals(other, null)) {
 166        return false;
 167      }
 168      if (ReferenceEquals(other, this)) {
 169        return true;
 170      }
 171      if (!object.Equals(SkinColor, other.SkinColor)) return false;
 172      if (!object.Equals(EyesColor, other.EyesColor)) return false;
 173      if (!object.Equals(HairColor, other.HairColor)) return false;
 174      if (BodyShapeUrn != other.BodyShapeUrn) return false;
 175      if (Name != other.Name) return false;
 176      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() {
 182      int hash = 1;
 183      if (skinColor_ != null) hash ^= SkinColor.GetHashCode();
 184      if (eyesColor_ != null) hash ^= EyesColor.GetHashCode();
 185      if (hairColor_ != null) hash ^= HairColor.GetHashCode();
 186      if (BodyShapeUrn.Length != 0) hash ^= BodyShapeUrn.GetHashCode();
 187      if (Name.Length != 0) hash ^= Name.GetHashCode();
 188      if (_unknownFields != null) {
 189        hash ^= _unknownFields.GetHashCode();
 190      }
 191      return hash;
 192    }
 193
 194    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 195    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 196    public override string ToString() {
 197      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
 206      if (skinColor_ != null) {
 207        output.WriteRawTag(10);
 208        output.WriteMessage(SkinColor);
 209      }
 210      if (eyesColor_ != null) {
 211        output.WriteRawTag(18);
 212        output.WriteMessage(EyesColor);
 213      }
 214      if (hairColor_ != null) {
 215        output.WriteRawTag(26);
 216        output.WriteMessage(HairColor);
 217      }
 218      if (BodyShapeUrn.Length != 0) {
 219        output.WriteRawTag(34);
 220        output.WriteString(BodyShapeUrn);
 221      }
 222      if (Name.Length != 0) {
 223        output.WriteRawTag(42);
 224        output.WriteString(Name);
 225      }
 226      if (_unknownFields != null) {
 227        _unknownFields.WriteTo(output);
 228      }
 229    #endif
 230    }
 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() {
 265      int size = 0;
 266      if (skinColor_ != null) {
 267        size += 1 + pb::CodedOutputStream.ComputeMessageSize(SkinColor);
 268      }
 269      if (eyesColor_ != null) {
 270        size += 1 + pb::CodedOutputStream.ComputeMessageSize(EyesColor);
 271      }
 272      if (hairColor_ != null) {
 273        size += 1 + pb::CodedOutputStream.ComputeMessageSize(HairColor);
 274      }
 275      if (BodyShapeUrn.Length != 0) {
 276        size += 1 + pb::CodedOutputStream.ComputeStringSize(BodyShapeUrn);
 277      }
 278      if (Name.Length != 0) {
 279        size += 1 + pb::CodedOutputStream.ComputeStringSize(Name);
 280      }
 281      if (_unknownFields != null) {
 282        size += _unknownFields.CalculateSize();
 283      }
 284      return size;
 285    }
 286
 287    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 288    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 289    public void MergeFrom(PBAvatarBase other) {
 290      if (other == null) {
 291        return;
 292      }
 293      if (other.skinColor_ != null) {
 294        if (skinColor_ == null) {
 295          SkinColor = new global::Decentraland.Common.Color3();
 296        }
 297        SkinColor.MergeFrom(other.SkinColor);
 298      }
 299      if (other.eyesColor_ != null) {
 300        if (eyesColor_ == null) {
 301          EyesColor = new global::Decentraland.Common.Color3();
 302        }
 303        EyesColor.MergeFrom(other.EyesColor);
 304      }
 305      if (other.hairColor_ != null) {
 306        if (hairColor_ == null) {
 307          HairColor = new global::Decentraland.Common.Color3();
 308        }
 309        HairColor.MergeFrom(other.HairColor);
 310      }
 311      if (other.BodyShapeUrn.Length != 0) {
 312        BodyShapeUrn = other.BodyShapeUrn;
 313      }
 314      if (other.Name.Length != 0) {
 315        Name = other.Name;
 316      }
 317      _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 318    }
 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;
 327      while ((tag = input.ReadTag()) != 0) {
 328        switch(tag) {
 329          default:
 330            _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
 331            break;
 332          case 10: {
 333            if (skinColor_ == null) {
 334              SkinColor = new global::Decentraland.Common.Color3();
 335            }
 336            input.ReadMessage(SkinColor);
 337            break;
 338          }
 339          case 18: {
 340            if (eyesColor_ == null) {
 341              EyesColor = new global::Decentraland.Common.Color3();
 342            }
 343            input.ReadMessage(EyesColor);
 344            break;
 345          }
 346          case 26: {
 347            if (hairColor_ == null) {
 348              HairColor = new global::Decentraland.Common.Color3();
 349            }
 350            input.ReadMessage(HairColor);
 351            break;
 352          }
 353          case 34: {
 354            BodyShapeUrn = input.ReadString();
 355            break;
 356          }
 357          case 42: {
 358            Name = input.ReadString();
 359            break;
 360          }
 361        }
 362      }
 363    #endif
 364    }
 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