< Summary

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

Metrics

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

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 {
 020      get { return descriptor; }
 21    }
 22    private static pbr::FileDescriptor descriptor;
 23
 24    static AvatarShapeReflection() {
 025      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"));
 042      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          }));
 047    }
 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  {
 57    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)]
 62    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 {
 67      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 {
 73      get { return Descriptor; }
 74    }
 75
 76    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 77    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 78    public PBAvatarShape() {
 79      OnConstruction();
 80    }
 81
 82    partial void OnConstruction();
 83
 84    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 85    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 86    public PBAvatarShape(PBAvatarShape other) : this() {
 87      _hasBits0 = other._hasBits0;
 88      id_ = other.id_;
 89      name_ = other.name_;
 90      bodyShape_ = other.bodyShape_;
 91      skinColor_ = other.skinColor_ != null ? other.skinColor_.Clone() : null;
 92      hairColor_ = other.hairColor_ != null ? other.hairColor_.Clone() : null;
 93      eyeColor_ = other.eyeColor_ != null ? other.eyeColor_.Clone() : null;
 94      expressionTriggerId_ = other.expressionTriggerId_;
 95      expressionTriggerTimestamp_ = other.expressionTriggerTimestamp_;
 96      talking_ = other.talking_;
 97      wearables_ = other.wearables_.Clone();
 98      emotes_ = other.emotes_.Clone();
 99      _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
 100    }
 101
 102    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 103    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 104    public PBAvatarShape Clone() {
 105      return new PBAvatarShape(this);
 106    }
 107
 108    /// <summary>Field number for the "id" field.</summary>
 109    public const int IdFieldNumber = 1;
 110    private string id_ = "";
 111    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 112    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 113    public string Id {
 114      get { return id_; }
 115      set {
 116        id_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
 117      }
 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 {
 129      get { return name_ ?? ""; }
 130      set {
 131        name_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
 132      }
 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 {
 138      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() {
 144      name_ = null;
 145    }
 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 {
 156      get { return bodyShape_ ?? ""; }
 157      set {
 158        bodyShape_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
 159      }
 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 {
 165      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() {
 171      bodyShape_ = null;
 172    }
 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 {
 183      get { return skinColor_; }
 184      set {
 185        skinColor_ = value;
 186      }
 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 {
 198      get { return hairColor_; }
 199      set {
 200        hairColor_ = value;
 201      }
 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 {
 213      get { return eyeColor_; }
 214      set {
 215        eyeColor_ = value;
 216      }
 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 {
 225      get { return expressionTriggerId_ ?? ""; }
 226      set {
 227        expressionTriggerId_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
 228      }
 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 {
 234      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() {
 240      expressionTriggerId_ = null;
 241    }
 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 {
 252      get { if ((_hasBits0 & 1) != 0) { return expressionTriggerTimestamp_; } else { return 0L; } }
 253      set {
 254        _hasBits0 |= 1;
 255        expressionTriggerTimestamp_ = value;
 256      }
 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 {
 262      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() {
 268      _hasBits0 &= ~1;
 269    }
 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 {
 277      get { if ((_hasBits0 & 2) != 0) { return talking_; } else { return false; } }
 278      set {
 279        _hasBits0 |= 2;
 280        talking_ = value;
 281      }
 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 {
 287      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() {
 293      _hasBits0 &= ~2;
 294    }
 295
 296    /// <summary>Field number for the "wearables" field.</summary>
 297    public const int WearablesFieldNumber = 10;
 298    private static readonly pb::FieldCodec<string> _repeated_wearables_codec
 299        = pb::FieldCodec.ForString(82);
 300    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 {
 314      get { return wearables_; }
 315    }
 316
 317    /// <summary>Field number for the "emotes" field.</summary>
 318    public const int EmotesFieldNumber = 11;
 319    private static readonly pb::FieldCodec<string> _repeated_emotes_codec
 320        = pb::FieldCodec.ForString(90);
 321    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 {
 329      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) {
 335      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) {
 341      if (ReferenceEquals(other, null)) {
 342        return false;
 343      }
 344      if (ReferenceEquals(other, this)) {
 345        return true;
 346      }
 347      if (Id != other.Id) return false;
 348      if (Name != other.Name) return false;
 349      if (BodyShape != other.BodyShape) return false;
 350      if (!object.Equals(SkinColor, other.SkinColor)) return false;
 351      if (!object.Equals(HairColor, other.HairColor)) return false;
 352      if (!object.Equals(EyeColor, other.EyeColor)) return false;
 353      if (ExpressionTriggerId != other.ExpressionTriggerId) return false;
 354      if (ExpressionTriggerTimestamp != other.ExpressionTriggerTimestamp) return false;
 355      if (Talking != other.Talking) return false;
 356      if(!wearables_.Equals(other.wearables_)) return false;
 357      if(!emotes_.Equals(other.emotes_)) return false;
 358      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() {
 364      int hash = 1;
 365      if (Id.Length != 0) hash ^= Id.GetHashCode();
 366      if (HasName) hash ^= Name.GetHashCode();
 367      if (HasBodyShape) hash ^= BodyShape.GetHashCode();
 368      if (skinColor_ != null) hash ^= SkinColor.GetHashCode();
 369      if (hairColor_ != null) hash ^= HairColor.GetHashCode();
 370      if (eyeColor_ != null) hash ^= EyeColor.GetHashCode();
 371      if (HasExpressionTriggerId) hash ^= ExpressionTriggerId.GetHashCode();
 372      if (HasExpressionTriggerTimestamp) hash ^= ExpressionTriggerTimestamp.GetHashCode();
 373      if (HasTalking) hash ^= Talking.GetHashCode();
 374      hash ^= wearables_.GetHashCode();
 375      hash ^= emotes_.GetHashCode();
 376      if (_unknownFields != null) {
 377        hash ^= _unknownFields.GetHashCode();
 378      }
 379      return hash;
 380    }
 381
 382    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 383    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 384    public override string ToString() {
 385      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
 394      if (Id.Length != 0) {
 395        output.WriteRawTag(10);
 396        output.WriteString(Id);
 397      }
 398      if (HasName) {
 399        output.WriteRawTag(18);
 400        output.WriteString(Name);
 401      }
 402      if (HasBodyShape) {
 403        output.WriteRawTag(26);
 404        output.WriteString(BodyShape);
 405      }
 406      if (skinColor_ != null) {
 407        output.WriteRawTag(34);
 408        output.WriteMessage(SkinColor);
 409      }
 410      if (hairColor_ != null) {
 411        output.WriteRawTag(42);
 412        output.WriteMessage(HairColor);
 413      }
 414      if (eyeColor_ != null) {
 415        output.WriteRawTag(50);
 416        output.WriteMessage(EyeColor);
 417      }
 418      if (HasExpressionTriggerId) {
 419        output.WriteRawTag(58);
 420        output.WriteString(ExpressionTriggerId);
 421      }
 422      if (HasExpressionTriggerTimestamp) {
 423        output.WriteRawTag(64);
 424        output.WriteInt64(ExpressionTriggerTimestamp);
 425      }
 426      if (HasTalking) {
 427        output.WriteRawTag(72);
 428        output.WriteBool(Talking);
 429      }
 430      wearables_.WriteTo(output, _repeated_wearables_codec);
 431      emotes_.WriteTo(output, _repeated_emotes_codec);
 432      if (_unknownFields != null) {
 433        _unknownFields.WriteTo(output);
 434      }
 435    #endif
 436    }
 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() {
 489      int size = 0;
 490      if (Id.Length != 0) {
 491        size += 1 + pb::CodedOutputStream.ComputeStringSize(Id);
 492      }
 493      if (HasName) {
 494        size += 1 + pb::CodedOutputStream.ComputeStringSize(Name);
 495      }
 496      if (HasBodyShape) {
 497        size += 1 + pb::CodedOutputStream.ComputeStringSize(BodyShape);
 498      }
 499      if (skinColor_ != null) {
 500        size += 1 + pb::CodedOutputStream.ComputeMessageSize(SkinColor);
 501      }
 502      if (hairColor_ != null) {
 503        size += 1 + pb::CodedOutputStream.ComputeMessageSize(HairColor);
 504      }
 505      if (eyeColor_ != null) {
 506        size += 1 + pb::CodedOutputStream.ComputeMessageSize(EyeColor);
 507      }
 508      if (HasExpressionTriggerId) {
 509        size += 1 + pb::CodedOutputStream.ComputeStringSize(ExpressionTriggerId);
 510      }
 511      if (HasExpressionTriggerTimestamp) {
 512        size += 1 + pb::CodedOutputStream.ComputeInt64Size(ExpressionTriggerTimestamp);
 513      }
 514      if (HasTalking) {
 515        size += 1 + 1;
 516      }
 517      size += wearables_.CalculateSize(_repeated_wearables_codec);
 518      size += emotes_.CalculateSize(_repeated_emotes_codec);
 519      if (_unknownFields != null) {
 520        size += _unknownFields.CalculateSize();
 521      }
 522      return size;
 523    }
 524
 525    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 526    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 527    public void MergeFrom(PBAvatarShape other) {
 528      if (other == null) {
 529        return;
 530      }
 531      if (other.Id.Length != 0) {
 532        Id = other.Id;
 533      }
 534      if (other.HasName) {
 535        Name = other.Name;
 536      }
 537      if (other.HasBodyShape) {
 538        BodyShape = other.BodyShape;
 539      }
 540      if (other.skinColor_ != null) {
 541        if (skinColor_ == null) {
 542          SkinColor = new global::Decentraland.Common.Color3();
 543        }
 544        SkinColor.MergeFrom(other.SkinColor);
 545      }
 546      if (other.hairColor_ != null) {
 547        if (hairColor_ == null) {
 548          HairColor = new global::Decentraland.Common.Color3();
 549        }
 550        HairColor.MergeFrom(other.HairColor);
 551      }
 552      if (other.eyeColor_ != null) {
 553        if (eyeColor_ == null) {
 554          EyeColor = new global::Decentraland.Common.Color3();
 555        }
 556        EyeColor.MergeFrom(other.EyeColor);
 557      }
 558      if (other.HasExpressionTriggerId) {
 559        ExpressionTriggerId = other.ExpressionTriggerId;
 560      }
 561      if (other.HasExpressionTriggerTimestamp) {
 562        ExpressionTriggerTimestamp = other.ExpressionTriggerTimestamp;
 563      }
 564      if (other.HasTalking) {
 565        Talking = other.Talking;
 566      }
 567      wearables_.Add(other.wearables_);
 568      emotes_.Add(other.emotes_);
 569      _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 570    }
 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;
 579      while ((tag = input.ReadTag()) != 0) {
 580        switch(tag) {
 581          default:
 582            _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
 583            break;
 584          case 10: {
 585            Id = input.ReadString();
 586            break;
 587          }
 588          case 18: {
 589            Name = input.ReadString();
 590            break;
 591          }
 592          case 26: {
 593            BodyShape = input.ReadString();
 594            break;
 595          }
 596          case 34: {
 597            if (skinColor_ == null) {
 598              SkinColor = new global::Decentraland.Common.Color3();
 599            }
 600            input.ReadMessage(SkinColor);
 601            break;
 602          }
 603          case 42: {
 604            if (hairColor_ == null) {
 605              HairColor = new global::Decentraland.Common.Color3();
 606            }
 607            input.ReadMessage(HairColor);
 608            break;
 609          }
 610          case 50: {
 611            if (eyeColor_ == null) {
 612              EyeColor = new global::Decentraland.Common.Color3();
 613            }
 614            input.ReadMessage(EyeColor);
 615            break;
 616          }
 617          case 58: {
 618            ExpressionTriggerId = input.ReadString();
 619            break;
 620          }
 621          case 64: {
 622            ExpressionTriggerTimestamp = input.ReadInt64();
 623            break;
 624          }
 625          case 72: {
 626            Talking = input.ReadBool();
 627            break;
 628          }
 629          case 82: {
 630            wearables_.AddEntriesFrom(input, _repeated_wearables_codec);
 631            break;
 632          }
 633          case 90: {
 634            emotes_.AddEntriesFrom(input, _repeated_emotes_codec);
 635            break;
 636          }
 637        }
 638      }
 639    #endif
 640    }
 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