< Summary

Class:DCL.ECSComponents.PBAvatarShape
Assembly:Decentraland.Protocol.GeneratedCode
File(s):/tmp/workspace/unity-renderer/unity-renderer/Assets/Scripts/MainScripts/DCL/DecentralandProtocol/AvatarShape.gen.cs
Covered lines:122
Uncovered lines:101
Coverable lines:223
Total lines:716
Line coverage:54.7% (122 of 223)
Covered branches:0
Total branches:0

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity NPath complexity Sequence coverage
PBAvatarShape()0%110100%
get_Descriptor()0%2100%
PBAvatarShape(...)0%56700%
Clone()0%2100%
PBAvatarShape()0%110100%
ClearName()0%2100%
ClearBodyShape()0%2100%
ClearExpressionTriggerId()0%2100%
ClearExpressionTriggerTimestamp()0%2100%
ClearTalking()0%2100%
Equals(...)0%110100%
Equals(...)0%151.6614011.11%
GetHashCode()0%1321100%
ToString()0%2100%
WriteTo(...)0%11.111090.62%
CalculateSize()0%11.0711091.67%
MergeFrom(...)0%2101400%
MergeFrom(...)0%20.5119083.87%

File(s)

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

#LineLine coverage
 1// <auto-generated>
 2//     Generated by the protocol buffer compiler.  DO NOT EDIT!
 3//     source: decentraland/sdk/components/avatar_shape.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_shape.proto</summary>
 15  public static partial class AvatarShapeReflection {
 16
 17    #region Descriptor
 18    /// <summary>File descriptor for decentraland/sdk/components/avatar_shape.proto</summary>
 19    public static pbr::FileDescriptor Descriptor {
 20      get { return descriptor; }
 21    }
 22    private static pbr::FileDescriptor descriptor;
 23
 24    static AvatarShapeReflection() {
 25      byte[] descriptorData = global::System.Convert.FromBase64String(
 26          string.Concat(
 27            "Ci5kZWNlbnRyYWxhbmQvc2RrL2NvbXBvbmVudHMvYXZhdGFyX3NoYXBlLnBy",
 28            "b3RvEhtkZWNlbnRyYWxhbmQuc2RrLmNvbXBvbmVudHMaIGRlY2VudHJhbGFu",
 29            "ZC9jb21tb24vY29sb3JzLnByb3RvIvsDCg1QQkF2YXRhclNoYXBlEgoKAmlk",
 30            "GAEgASgJEhEKBG5hbWUYAiABKAlIAIgBARIXCgpib2R5X3NoYXBlGAMgASgJ",
 31            "SAGIAQESNAoKc2tpbl9jb2xvchgEIAEoCzIbLmRlY2VudHJhbGFuZC5jb21t",
 32            "b24uQ29sb3IzSAKIAQESNAoKaGFpcl9jb2xvchgFIAEoCzIbLmRlY2VudHJh",
 33            "bGFuZC5jb21tb24uQ29sb3IzSAOIAQESMwoJZXllX2NvbG9yGAYgASgLMhsu",
 34            "ZGVjZW50cmFsYW5kLmNvbW1vbi5Db2xvcjNIBIgBARIiChVleHByZXNzaW9u",
 35            "X3RyaWdnZXJfaWQYByABKAlIBYgBARIpChxleHByZXNzaW9uX3RyaWdnZXJf",
 36            "dGltZXN0YW1wGAggASgDSAaIAQESFAoHdGFsa2luZxgJIAEoCEgHiAEBEhEK",
 37            "CXdlYXJhYmxlcxgKIAMoCRIOCgZlbW90ZXMYCyADKAlCBwoFX25hbWVCDQoL",
 38            "X2JvZHlfc2hhcGVCDQoLX3NraW5fY29sb3JCDQoLX2hhaXJfY29sb3JCDAoK",
 39            "X2V5ZV9jb2xvckIYChZfZXhwcmVzc2lvbl90cmlnZ2VyX2lkQh8KHV9leHBy",
 40            "ZXNzaW9uX3RyaWdnZXJfdGltZXN0YW1wQgoKCF90YWxraW5nQhSqAhFEQ0wu",
 41            "RUNTQ29tcG9uZW50c2IGcHJvdG8z"));
 42      descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
 43          new pbr::FileDescriptor[] { global::Decentraland.Common.ColorsReflection.Descriptor, },
 44          new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] {
 45            new pbr::GeneratedClrTypeInfo(typeof(global::DCL.ECSComponents.PBAvatarShape), global::DCL.ECSComponents.PBA
 46          }));
 47    }
 48    #endregion
 49
 50  }
 51  #region Messages
 52  public sealed partial class PBAvatarShape : pb::IMessage<PBAvatarShape>
 53  #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 54      , pb::IBufferMessage
 55  #endif
 56  {
 257    private static readonly pb::MessageParser<PBAvatarShape> _parser = new pb::MessageParser<PBAvatarShape>(() => new PB
 58    private pb::UnknownFieldSet _unknownFields;
 59    private int _hasBits0;
 60    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 61    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 162    public static pb::MessageParser<PBAvatarShape> Parser { get { return _parser; } }
 63
 64    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 65    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 66    public static pbr::MessageDescriptor Descriptor {
 067      get { return global::DCL.ECSComponents.AvatarShapeReflection.Descriptor.MessageTypes[0]; }
 68    }
 69
 70    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 71    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 72    pbr::MessageDescriptor pb::IMessage.Descriptor {
 073      get { return Descriptor; }
 74    }
 75
 76    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 77    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 1478    public PBAvatarShape() {
 79      OnConstruction();
 1480    }
 81
 82    partial void OnConstruction();
 83
 84    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 85    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 086    public PBAvatarShape(PBAvatarShape other) : this() {
 087      _hasBits0 = other._hasBits0;
 088      id_ = other.id_;
 089      name_ = other.name_;
 090      bodyShape_ = other.bodyShape_;
 091      skinColor_ = other.skinColor_ != null ? other.skinColor_.Clone() : null;
 092      hairColor_ = other.hairColor_ != null ? other.hairColor_.Clone() : null;
 093      eyeColor_ = other.eyeColor_ != null ? other.eyeColor_.Clone() : null;
 094      expressionTriggerId_ = other.expressionTriggerId_;
 095      expressionTriggerTimestamp_ = other.expressionTriggerTimestamp_;
 096      talking_ = other.talking_;
 097      wearables_ = other.wearables_.Clone();
 098      emotes_ = other.emotes_.Clone();
 099      _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
 0100    }
 101
 102    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 103    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 104    public PBAvatarShape Clone() {
 0105      return new PBAvatarShape(this);
 106    }
 107
 108    /// <summary>Field number for the "id" field.</summary>
 109    public const int IdFieldNumber = 1;
 14110    private string id_ = "";
 111    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 112    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 113    public string Id {
 26114      get { return id_; }
 115      set {
 9116        id_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
 9117      }
 118    }
 119
 120    /// <summary>Field number for the "name" field.</summary>
 121    public const int NameFieldNumber = 2;
 122    private string name_;
 123    /// <summary>
 124    /// default = NPC
 125    /// </summary>
 126    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 127    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 128    public string Name {
 37129      get { return name_ ?? ""; }
 130      set {
 9131        name_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
 9132      }
 133    }
 134    /// <summary>Gets whether the "name" field is set</summary>
 135    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 136    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 137    public bool HasName {
 34138      get { return name_ != null; }
 139    }
 140    /// <summary>Clears the value of the "name" field</summary>
 141    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 142    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 143    public void ClearName() {
 0144      name_ = null;
 0145    }
 146
 147    /// <summary>Field number for the "body_shape" field.</summary>
 148    public const int BodyShapeFieldNumber = 3;
 149    private string bodyShape_;
 150    /// <summary>
 151    /// default = urn:decentraland:off-chain:base-avatars:BaseFemale
 152    /// </summary>
 153    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 154    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 155    public string BodyShape {
 16156      get { return bodyShape_ ?? ""; }
 157      set {
 9158        bodyShape_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
 9159      }
 160    }
 161    /// <summary>Gets whether the "body_shape" field is set</summary>
 162    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 163    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 164    public bool HasBodyShape {
 18165      get { return bodyShape_ != null; }
 166    }
 167    /// <summary>Clears the value of the "body_shape" field</summary>
 168    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 169    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 170    public void ClearBodyShape() {
 0171      bodyShape_ = null;
 0172    }
 173
 174    /// <summary>Field number for the "skin_color" field.</summary>
 175    public const int SkinColorFieldNumber = 4;
 176    private global::Decentraland.Common.Color3 skinColor_;
 177    /// <summary>
 178    /// default = decentraland.common.Color3(R = 0.6f, G = 0.462f, B = 0.356f)
 179    /// </summary>
 180    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 181    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 182    public global::Decentraland.Common.Color3 SkinColor {
 41183      get { return skinColor_; }
 184      set {
 9185        skinColor_ = value;
 9186      }
 187    }
 188
 189    /// <summary>Field number for the "hair_color" field.</summary>
 190    public const int HairColorFieldNumber = 5;
 191    private global::Decentraland.Common.Color3 hairColor_;
 192    /// <summary>
 193    /// default = decentraland.common.Color3(R = 0.283f, G = 0.142f, B = 0f)
 194    /// </summary>
 195    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 196    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 197    public global::Decentraland.Common.Color3 HairColor {
 33198      get { return hairColor_; }
 199      set {
 9200        hairColor_ = value;
 9201      }
 202    }
 203
 204    /// <summary>Field number for the "eye_color" field.</summary>
 205    public const int EyeColorFieldNumber = 6;
 206    private global::Decentraland.Common.Color3 eyeColor_;
 207    /// <summary>
 208    /// default = decentraland.common.Color3(R = 0.6f, G = 0.462f, B = 0.356f)
 209    /// </summary>
 210    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 211    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 212    public global::Decentraland.Common.Color3 EyeColor {
 33213      get { return eyeColor_; }
 214      set {
 9215        eyeColor_ = value;
 9216      }
 217    }
 218
 219    /// <summary>Field number for the "expression_trigger_id" field.</summary>
 220    public const int ExpressionTriggerIdFieldNumber = 7;
 221    private string expressionTriggerId_;
 222    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 223    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 224    public string ExpressionTriggerId {
 9225      get { return expressionTriggerId_ ?? ""; }
 226      set {
 9227        expressionTriggerId_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
 9228      }
 229    }
 230    /// <summary>Gets whether the "expression_trigger_id" field is set</summary>
 231    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 232    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 233    public bool HasExpressionTriggerId {
 6234      get { return expressionTriggerId_ != null; }
 235    }
 236    /// <summary>Clears the value of the "expression_trigger_id" field</summary>
 237    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 238    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 239    public void ClearExpressionTriggerId() {
 0240      expressionTriggerId_ = null;
 0241    }
 242
 243    /// <summary>Field number for the "expression_trigger_timestamp" field.</summary>
 244    public const int ExpressionTriggerTimestampFieldNumber = 8;
 245    private long expressionTriggerTimestamp_;
 246    /// <summary>
 247    /// default = timestamp
 248    /// </summary>
 249    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 250    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 251    public long ExpressionTriggerTimestamp {
 14252      get { if ((_hasBits0 & 1) != 0) { return expressionTriggerTimestamp_; } else { return 0L; } }
 253      set {
 9254        _hasBits0 |= 1;
 9255        expressionTriggerTimestamp_ = value;
 9256      }
 257    }
 258    /// <summary>Gets whether the "expression_trigger_timestamp" field is set</summary>
 259    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 260    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 261    public bool HasExpressionTriggerTimestamp {
 6262      get { return (_hasBits0 & 1) != 0; }
 263    }
 264    /// <summary>Clears the value of the "expression_trigger_timestamp" field</summary>
 265    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 266    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 267    public void ClearExpressionTriggerTimestamp() {
 0268      _hasBits0 &= ~1;
 0269    }
 270
 271    /// <summary>Field number for the "talking" field.</summary>
 272    public const int TalkingFieldNumber = 9;
 273    private bool talking_;
 274    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 275    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 276    public bool Talking {
 22277      get { if ((_hasBits0 & 2) != 0) { return talking_; } else { return false; } }
 278      set {
 0279        _hasBits0 |= 2;
 0280        talking_ = value;
 0281      }
 282    }
 283    /// <summary>Gets whether the "talking" field is set</summary>
 284    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 285    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 286    public bool HasTalking {
 2287      get { return (_hasBits0 & 2) != 0; }
 288    }
 289    /// <summary>Clears the value of the "talking" field</summary>
 290    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 291    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 292    public void ClearTalking() {
 0293      _hasBits0 &= ~2;
 0294    }
 295
 296    /// <summary>Field number for the "wearables" field.</summary>
 297    public const int WearablesFieldNumber = 10;
 1298    private static readonly pb::FieldCodec<string> _repeated_wearables_codec
 299        = pb::FieldCodec.ForString(82);
 14300    private readonly pbc::RepeatedField<string> wearables_ = new pbc::RepeatedField<string>();
 301    /// <summary>
 302    ///*
 303    /// default = ["urn:decentraland:off-chain:base-avatars:f_eyes_00",
 304    ///  "urn:decentraland:off-chain:base-avatars:f_eyebrows_00",
 305    ///  "urn:decentraland:off-chain:base-avatars:f_mouth_00"
 306    ///  "urn:decentraland:off-chain:base-avatars:standard_hair",
 307    ///  "urn:decentraland:off-chain:base-avatars:f_simple_yellow_tshirt",
 308    ///  "urn:decentraland:off-chain:base-avatars:f_brown_trousers",
 309    ///  "urn:decentraland:off-chain:base-avatars:bun_shoes"]
 310    /// </summary>
 311    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 312    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 313    public pbc::RepeatedField<string> Wearables {
 110314      get { return wearables_; }
 315    }
 316
 317    /// <summary>Field number for the "emotes" field.</summary>
 318    public const int EmotesFieldNumber = 11;
 1319    private static readonly pb::FieldCodec<string> _repeated_emotes_codec
 320        = pb::FieldCodec.ForString(90);
 14321    private readonly pbc::RepeatedField<string> emotes_ = new pbc::RepeatedField<string>();
 322    /// <summary>
 323    ///*
 324    /// default = []
 325    /// </summary>
 326    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 327    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 328    public pbc::RepeatedField<string> Emotes {
 0329      get { return emotes_; }
 330    }
 331
 332    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 333    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 334    public override bool Equals(object other) {
 1335      return Equals(other as PBAvatarShape);
 336    }
 337
 338    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 339    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 340    public bool Equals(PBAvatarShape other) {
 1341      if (ReferenceEquals(other, null)) {
 0342        return false;
 343      }
 1344      if (ReferenceEquals(other, this)) {
 1345        return true;
 346      }
 0347      if (Id != other.Id) return false;
 0348      if (Name != other.Name) return false;
 0349      if (BodyShape != other.BodyShape) return false;
 0350      if (!object.Equals(SkinColor, other.SkinColor)) return false;
 0351      if (!object.Equals(HairColor, other.HairColor)) return false;
 0352      if (!object.Equals(EyeColor, other.EyeColor)) return false;
 0353      if (ExpressionTriggerId != other.ExpressionTriggerId) return false;
 0354      if (ExpressionTriggerTimestamp != other.ExpressionTriggerTimestamp) return false;
 0355      if (Talking != other.Talking) return false;
 0356      if(!wearables_.Equals(other.wearables_)) return false;
 0357      if(!emotes_.Equals(other.emotes_)) return false;
 0358      return Equals(_unknownFields, other._unknownFields);
 359    }
 360
 361    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 362    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 363    public override int GetHashCode() {
 0364      int hash = 1;
 0365      if (Id.Length != 0) hash ^= Id.GetHashCode();
 0366      if (HasName) hash ^= Name.GetHashCode();
 0367      if (HasBodyShape) hash ^= BodyShape.GetHashCode();
 0368      if (skinColor_ != null) hash ^= SkinColor.GetHashCode();
 0369      if (hairColor_ != null) hash ^= HairColor.GetHashCode();
 0370      if (eyeColor_ != null) hash ^= EyeColor.GetHashCode();
 0371      if (HasExpressionTriggerId) hash ^= ExpressionTriggerId.GetHashCode();
 0372      if (HasExpressionTriggerTimestamp) hash ^= ExpressionTriggerTimestamp.GetHashCode();
 0373      if (HasTalking) hash ^= Talking.GetHashCode();
 0374      hash ^= wearables_.GetHashCode();
 0375      hash ^= emotes_.GetHashCode();
 0376      if (_unknownFields != null) {
 0377        hash ^= _unknownFields.GetHashCode();
 378      }
 0379      return hash;
 380    }
 381
 382    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 383    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 384    public override string ToString() {
 0385      return pb::JsonFormatter.ToDiagnosticString(this);
 386    }
 387
 388    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 389    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 390    public void WriteTo(pb::CodedOutputStream output) {
 391    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 392      output.WriteRawMessage(this);
 393    #else
 1394      if (Id.Length != 0) {
 1395        output.WriteRawTag(10);
 1396        output.WriteString(Id);
 397      }
 1398      if (HasName) {
 1399        output.WriteRawTag(18);
 1400        output.WriteString(Name);
 401      }
 1402      if (HasBodyShape) {
 1403        output.WriteRawTag(26);
 1404        output.WriteString(BodyShape);
 405      }
 1406      if (skinColor_ != null) {
 1407        output.WriteRawTag(34);
 1408        output.WriteMessage(SkinColor);
 409      }
 1410      if (hairColor_ != null) {
 1411        output.WriteRawTag(42);
 1412        output.WriteMessage(HairColor);
 413      }
 1414      if (eyeColor_ != null) {
 1415        output.WriteRawTag(50);
 1416        output.WriteMessage(EyeColor);
 417      }
 1418      if (HasExpressionTriggerId) {
 1419        output.WriteRawTag(58);
 1420        output.WriteString(ExpressionTriggerId);
 421      }
 1422      if (HasExpressionTriggerTimestamp) {
 1423        output.WriteRawTag(64);
 1424        output.WriteInt64(ExpressionTriggerTimestamp);
 425      }
 1426      if (HasTalking) {
 0427        output.WriteRawTag(72);
 0428        output.WriteBool(Talking);
 429      }
 1430      wearables_.WriteTo(output, _repeated_wearables_codec);
 1431      emotes_.WriteTo(output, _repeated_emotes_codec);
 1432      if (_unknownFields != null) {
 0433        _unknownFields.WriteTo(output);
 434      }
 435    #endif
 1436    }
 437
 438    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 439    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 440    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 441    void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
 442      if (Id.Length != 0) {
 443        output.WriteRawTag(10);
 444        output.WriteString(Id);
 445      }
 446      if (HasName) {
 447        output.WriteRawTag(18);
 448        output.WriteString(Name);
 449      }
 450      if (HasBodyShape) {
 451        output.WriteRawTag(26);
 452        output.WriteString(BodyShape);
 453      }
 454      if (skinColor_ != null) {
 455        output.WriteRawTag(34);
 456        output.WriteMessage(SkinColor);
 457      }
 458      if (hairColor_ != null) {
 459        output.WriteRawTag(42);
 460        output.WriteMessage(HairColor);
 461      }
 462      if (eyeColor_ != null) {
 463        output.WriteRawTag(50);
 464        output.WriteMessage(EyeColor);
 465      }
 466      if (HasExpressionTriggerId) {
 467        output.WriteRawTag(58);
 468        output.WriteString(ExpressionTriggerId);
 469      }
 470      if (HasExpressionTriggerTimestamp) {
 471        output.WriteRawTag(64);
 472        output.WriteInt64(ExpressionTriggerTimestamp);
 473      }
 474      if (HasTalking) {
 475        output.WriteRawTag(72);
 476        output.WriteBool(Talking);
 477      }
 478      wearables_.WriteTo(ref output, _repeated_wearables_codec);
 479      emotes_.WriteTo(ref output, _repeated_emotes_codec);
 480      if (_unknownFields != null) {
 481        _unknownFields.WriteTo(ref output);
 482      }
 483    }
 484    #endif
 485
 486    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 487    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 488    public int CalculateSize() {
 1489      int size = 0;
 1490      if (Id.Length != 0) {
 1491        size += 1 + pb::CodedOutputStream.ComputeStringSize(Id);
 492      }
 1493      if (HasName) {
 1494        size += 1 + pb::CodedOutputStream.ComputeStringSize(Name);
 495      }
 1496      if (HasBodyShape) {
 1497        size += 1 + pb::CodedOutputStream.ComputeStringSize(BodyShape);
 498      }
 1499      if (skinColor_ != null) {
 1500        size += 1 + pb::CodedOutputStream.ComputeMessageSize(SkinColor);
 501      }
 1502      if (hairColor_ != null) {
 1503        size += 1 + pb::CodedOutputStream.ComputeMessageSize(HairColor);
 504      }
 1505      if (eyeColor_ != null) {
 1506        size += 1 + pb::CodedOutputStream.ComputeMessageSize(EyeColor);
 507      }
 1508      if (HasExpressionTriggerId) {
 1509        size += 1 + pb::CodedOutputStream.ComputeStringSize(ExpressionTriggerId);
 510      }
 1511      if (HasExpressionTriggerTimestamp) {
 1512        size += 1 + pb::CodedOutputStream.ComputeInt64Size(ExpressionTriggerTimestamp);
 513      }
 1514      if (HasTalking) {
 0515        size += 1 + 1;
 516      }
 1517      size += wearables_.CalculateSize(_repeated_wearables_codec);
 1518      size += emotes_.CalculateSize(_repeated_emotes_codec);
 1519      if (_unknownFields != null) {
 0520        size += _unknownFields.CalculateSize();
 521      }
 1522      return size;
 523    }
 524
 525    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 526    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 527    public void MergeFrom(PBAvatarShape other) {
 0528      if (other == null) {
 0529        return;
 530      }
 0531      if (other.Id.Length != 0) {
 0532        Id = other.Id;
 533      }
 0534      if (other.HasName) {
 0535        Name = other.Name;
 536      }
 0537      if (other.HasBodyShape) {
 0538        BodyShape = other.BodyShape;
 539      }
 0540      if (other.skinColor_ != null) {
 0541        if (skinColor_ == null) {
 0542          SkinColor = new global::Decentraland.Common.Color3();
 543        }
 0544        SkinColor.MergeFrom(other.SkinColor);
 545      }
 0546      if (other.hairColor_ != null) {
 0547        if (hairColor_ == null) {
 0548          HairColor = new global::Decentraland.Common.Color3();
 549        }
 0550        HairColor.MergeFrom(other.HairColor);
 551      }
 0552      if (other.eyeColor_ != null) {
 0553        if (eyeColor_ == null) {
 0554          EyeColor = new global::Decentraland.Common.Color3();
 555        }
 0556        EyeColor.MergeFrom(other.EyeColor);
 557      }
 0558      if (other.HasExpressionTriggerId) {
 0559        ExpressionTriggerId = other.ExpressionTriggerId;
 560      }
 0561      if (other.HasExpressionTriggerTimestamp) {
 0562        ExpressionTriggerTimestamp = other.ExpressionTriggerTimestamp;
 563      }
 0564      if (other.HasTalking) {
 0565        Talking = other.Talking;
 566      }
 0567      wearables_.Add(other.wearables_);
 0568      emotes_.Add(other.emotes_);
 0569      _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 0570    }
 571
 572    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 573    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 574    public void MergeFrom(pb::CodedInputStream input) {
 575    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 576      input.ReadRawMessage(this);
 577    #else
 578      uint tag;
 10579      while ((tag = input.ReadTag()) != 0) {
 580        switch(tag) {
 581          default:
 0582            _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
 0583            break;
 584          case 10: {
 1585            Id = input.ReadString();
 1586            break;
 587          }
 588          case 18: {
 1589            Name = input.ReadString();
 1590            break;
 591          }
 592          case 26: {
 1593            BodyShape = input.ReadString();
 1594            break;
 595          }
 596          case 34: {
 1597            if (skinColor_ == null) {
 1598              SkinColor = new global::Decentraland.Common.Color3();
 599            }
 1600            input.ReadMessage(SkinColor);
 1601            break;
 602          }
 603          case 42: {
 1604            if (hairColor_ == null) {
 1605              HairColor = new global::Decentraland.Common.Color3();
 606            }
 1607            input.ReadMessage(HairColor);
 1608            break;
 609          }
 610          case 50: {
 1611            if (eyeColor_ == null) {
 1612              EyeColor = new global::Decentraland.Common.Color3();
 613            }
 1614            input.ReadMessage(EyeColor);
 1615            break;
 616          }
 617          case 58: {
 1618            ExpressionTriggerId = input.ReadString();
 1619            break;
 620          }
 621          case 64: {
 1622            ExpressionTriggerTimestamp = input.ReadInt64();
 1623            break;
 624          }
 625          case 72: {
 0626            Talking = input.ReadBool();
 0627            break;
 628          }
 629          case 82: {
 1630            wearables_.AddEntriesFrom(input, _repeated_wearables_codec);
 1631            break;
 632          }
 633          case 90: {
 0634            emotes_.AddEntriesFrom(input, _repeated_emotes_codec);
 635            break;
 636          }
 637        }
 638      }
 639    #endif
 1640    }
 641
 642    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 643    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 644    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 645    void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
 646      uint tag;
 647      while ((tag = input.ReadTag()) != 0) {
 648        switch(tag) {
 649          default:
 650            _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
 651            break;
 652          case 10: {
 653            Id = input.ReadString();
 654            break;
 655          }
 656          case 18: {
 657            Name = input.ReadString();
 658            break;
 659          }
 660          case 26: {
 661            BodyShape = input.ReadString();
 662            break;
 663          }
 664          case 34: {
 665            if (skinColor_ == null) {
 666              SkinColor = new global::Decentraland.Common.Color3();
 667            }
 668            input.ReadMessage(SkinColor);
 669            break;
 670          }
 671          case 42: {
 672            if (hairColor_ == null) {
 673              HairColor = new global::Decentraland.Common.Color3();
 674            }
 675            input.ReadMessage(HairColor);
 676            break;
 677          }
 678          case 50: {
 679            if (eyeColor_ == null) {
 680              EyeColor = new global::Decentraland.Common.Color3();
 681            }
 682            input.ReadMessage(EyeColor);
 683            break;
 684          }
 685          case 58: {
 686            ExpressionTriggerId = input.ReadString();
 687            break;
 688          }
 689          case 64: {
 690            ExpressionTriggerTimestamp = input.ReadInt64();
 691            break;
 692          }
 693          case 72: {
 694            Talking = input.ReadBool();
 695            break;
 696          }
 697          case 82: {
 698            wearables_.AddEntriesFrom(ref input, _repeated_wearables_codec);
 699            break;
 700          }
 701          case 90: {
 702            emotes_.AddEntriesFrom(ref input, _repeated_emotes_codec);
 703            break;
 704          }
 705        }
 706      }
 707    }
 708    #endif
 709
 710  }
 711
 712  #endregion
 713
 714}
 715
 716#endregion Designer generated code