< 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:735
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
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  /// <summary>
 53  /// The AvatarShape component contains the information required to draw and animate avatar, acting as
 54  /// a simplified GLTF container for this specific case.
 55  ///
 56  /// All fields (except ID) are optional have reasonable default values. In the case of `wearables`,
 57  /// each slot on the Avatar's body that is not explicitly included in the list has its own default.
 58  ///
 59  /// Note that, while AvatarShape can be attached to any Entity, it's only actually used in the global
 60  /// Avatar Scene. Other requirements are usually better served by GLTFs.
 61  /// </summary>
 62  public sealed partial class PBAvatarShape : pb::IMessage<PBAvatarShape>
 63  #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 64      , pb::IBufferMessage
 65  #endif
 66  {
 67    private static readonly pb::MessageParser<PBAvatarShape> _parser = new pb::MessageParser<PBAvatarShape>(() => new PB
 68    private pb::UnknownFieldSet _unknownFields;
 69    private int _hasBits0;
 70    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 71    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 72    public static pb::MessageParser<PBAvatarShape> Parser { get { return _parser; } }
 73
 74    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 75    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 76    public static pbr::MessageDescriptor Descriptor {
 77      get { return global::DCL.ECSComponents.AvatarShapeReflection.Descriptor.MessageTypes[0]; }
 78    }
 79
 80    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 81    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 82    pbr::MessageDescriptor pb::IMessage.Descriptor {
 83      get { return Descriptor; }
 84    }
 85
 86    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 87    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 88    public PBAvatarShape() {
 89      OnConstruction();
 90    }
 91
 92    partial void OnConstruction();
 93
 94    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 95    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 96    public PBAvatarShape(PBAvatarShape other) : this() {
 97      _hasBits0 = other._hasBits0;
 98      id_ = other.id_;
 99      name_ = other.name_;
 100      bodyShape_ = other.bodyShape_;
 101      skinColor_ = other.skinColor_ != null ? other.skinColor_.Clone() : null;
 102      hairColor_ = other.hairColor_ != null ? other.hairColor_.Clone() : null;
 103      eyeColor_ = other.eyeColor_ != null ? other.eyeColor_.Clone() : null;
 104      expressionTriggerId_ = other.expressionTriggerId_;
 105      expressionTriggerTimestamp_ = other.expressionTriggerTimestamp_;
 106      talking_ = other.talking_;
 107      wearables_ = other.wearables_.Clone();
 108      emotes_ = other.emotes_.Clone();
 109      _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
 110    }
 111
 112    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 113    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 114    public PBAvatarShape Clone() {
 115      return new PBAvatarShape(this);
 116    }
 117
 118    /// <summary>Field number for the "id" field.</summary>
 119    public const int IdFieldNumber = 1;
 120    private string id_ = "";
 121    /// <summary>
 122    /// the user ID
 123    /// </summary>
 124    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 125    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 126    public string Id {
 127      get { return id_; }
 128      set {
 129        id_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
 130      }
 131    }
 132
 133    /// <summary>Field number for the "name" field.</summary>
 134    public const int NameFieldNumber = 2;
 135    private string name_;
 136    /// <summary>
 137    /// visible name (default: "NPC")
 138    /// </summary>
 139    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 140    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 141    public string Name {
 142      get { return name_ ?? ""; }
 143      set {
 144        name_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
 145      }
 146    }
 147    /// <summary>Gets whether the "name" field is set</summary>
 148    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 149    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 150    public bool HasName {
 151      get { return name_ != null; }
 152    }
 153    /// <summary>Clears the value of the "name" field</summary>
 154    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 155    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 156    public void ClearName() {
 157      name_ = null;
 158    }
 159
 160    /// <summary>Field number for the "body_shape" field.</summary>
 161    public const int BodyShapeFieldNumber = 3;
 162    private string bodyShape_;
 163    /// <summary>
 164    /// shape URN (default "urn:decentraland:off-chain:base-avatars:BaseFemale")
 165    /// </summary>
 166    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 167    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 168    public string BodyShape {
 169      get { return bodyShape_ ?? ""; }
 170      set {
 171        bodyShape_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
 172      }
 173    }
 174    /// <summary>Gets whether the "body_shape" field is set</summary>
 175    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 176    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 177    public bool HasBodyShape {
 178      get { return bodyShape_ != null; }
 179    }
 180    /// <summary>Clears the value of the "body_shape" field</summary>
 181    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 182    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 183    public void ClearBodyShape() {
 184      bodyShape_ = null;
 185    }
 186
 187    /// <summary>Field number for the "skin_color" field.</summary>
 188    public const int SkinColorFieldNumber = 4;
 189    private global::Decentraland.Common.Color3 skinColor_;
 190    /// <summary>
 191    /// RGB (default [0.6, 0.462, 0.356])
 192    /// </summary>
 193    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 194    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 195    public global::Decentraland.Common.Color3 SkinColor {
 196      get { return skinColor_; }
 197      set {
 198        skinColor_ = value;
 199      }
 200    }
 201
 202    /// <summary>Field number for the "hair_color" field.</summary>
 203    public const int HairColorFieldNumber = 5;
 204    private global::Decentraland.Common.Color3 hairColor_;
 205    /// <summary>
 206    /// RGB (default [0.283, 0.142, 0])
 207    /// </summary>
 208    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 209    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 210    public global::Decentraland.Common.Color3 HairColor {
 211      get { return hairColor_; }
 212      set {
 213        hairColor_ = value;
 214      }
 215    }
 216
 217    /// <summary>Field number for the "eye_color" field.</summary>
 218    public const int EyeColorFieldNumber = 6;
 219    private global::Decentraland.Common.Color3 eyeColor_;
 220    /// <summary>
 221    /// RGB (default [0.6, 0.462, 0.356])
 222    /// </summary>
 223    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 224    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 225    public global::Decentraland.Common.Color3 EyeColor {
 226      get { return eyeColor_; }
 227      set {
 228        eyeColor_ = value;
 229      }
 230    }
 231
 232    /// <summary>Field number for the "expression_trigger_id" field.</summary>
 233    public const int ExpressionTriggerIdFieldNumber = 7;
 234    private string expressionTriggerId_;
 235    /// <summary>
 236    /// current emote animations
 237    /// </summary>
 238    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 239    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 240    public string ExpressionTriggerId {
 241      get { return expressionTriggerId_ ?? ""; }
 242      set {
 243        expressionTriggerId_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
 244      }
 245    }
 246    /// <summary>Gets whether the "expression_trigger_id" field is set</summary>
 247    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 248    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 249    public bool HasExpressionTriggerId {
 250      get { return expressionTriggerId_ != null; }
 251    }
 252    /// <summary>Clears the value of the "expression_trigger_id" field</summary>
 253    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 254    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 255    public void ClearExpressionTriggerId() {
 256      expressionTriggerId_ = null;
 257    }
 258
 259    /// <summary>Field number for the "expression_trigger_timestamp" field.</summary>
 260    public const int ExpressionTriggerTimestampFieldNumber = 8;
 261    private long expressionTriggerTimestamp_;
 262    /// <summary>
 263    /// start of emote animations (in the same order)
 264    /// </summary>
 265    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 266    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 267    public long ExpressionTriggerTimestamp {
 268      get { if ((_hasBits0 & 1) != 0) { return expressionTriggerTimestamp_; } else { return 0L; } }
 269      set {
 270        _hasBits0 |= 1;
 271        expressionTriggerTimestamp_ = value;
 272      }
 273    }
 274    /// <summary>Gets whether the "expression_trigger_timestamp" field is set</summary>
 275    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 276    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 277    public bool HasExpressionTriggerTimestamp {
 278      get { return (_hasBits0 & 1) != 0; }
 279    }
 280    /// <summary>Clears the value of the "expression_trigger_timestamp" field</summary>
 281    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 282    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 283    public void ClearExpressionTriggerTimestamp() {
 284      _hasBits0 &= ~1;
 285    }
 286
 287    /// <summary>Field number for the "talking" field.</summary>
 288    public const int TalkingFieldNumber = 9;
 289    private bool talking_;
 290    /// <summary>
 291    /// whether to display the floating voice chat icon
 292    /// </summary>
 293    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 294    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 295    public bool Talking {
 296      get { if ((_hasBits0 & 2) != 0) { return talking_; } else { return false; } }
 297      set {
 298        _hasBits0 |= 2;
 299        talking_ = value;
 300      }
 301    }
 302    /// <summary>Gets whether the "talking" field is set</summary>
 303    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 304    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 305    public bool HasTalking {
 306      get { return (_hasBits0 & 2) != 0; }
 307    }
 308    /// <summary>Clears the value of the "talking" field</summary>
 309    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 310    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 311    public void ClearTalking() {
 312      _hasBits0 &= ~2;
 313    }
 314
 315    /// <summary>Field number for the "wearables" field.</summary>
 316    public const int WearablesFieldNumber = 10;
 317    private static readonly pb::FieldCodec<string> _repeated_wearables_codec
 318        = pb::FieldCodec.ForString(82);
 319    private readonly pbc::RepeatedField<string> wearables_ = new pbc::RepeatedField<string>();
 320    /// <summary>
 321    /// Wearable URNs, one for each body slot.
 322    ///   Default values for each unspecified slot:
 323    ///     Eyes    : "urn:decentraland:off-chain:base-avatars:f_eyes_00",
 324    ///     Eyebrows: "urn:decentraland:off-chain:base-avatars:f_eyebrows_00",
 325    ///     Mouth   : "urn:decentraland:off-chain:base-avatars:f_mouth_00"
 326    ///     Hair    : "urn:decentraland:off-chain:base-avatars:standard_hair",
 327    ///     Shirt   : "urn:decentraland:off-chain:base-avatars:f_simple_yellow_tshirt",
 328    ///     Trousers: "urn:decentraland:off-chain:base-avatars:f_brown_trousers",
 329    ///     Shoes   : "urn:decentraland:off-chain:base-avatars:bun_shoes"]
 330    /// </summary>
 331    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 332    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 333    public pbc::RepeatedField<string> Wearables {
 334      get { return wearables_; }
 335    }
 336
 337    /// <summary>Field number for the "emotes" field.</summary>
 338    public const int EmotesFieldNumber = 11;
 339    private static readonly pb::FieldCodec<string> _repeated_emotes_codec
 340        = pb::FieldCodec.ForString(90);
 341    private readonly pbc::RepeatedField<string> emotes_ = new pbc::RepeatedField<string>();
 342    /// <summary>
 343    /// available emotes (default empty)
 344    /// </summary>
 345    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 346    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 347    public pbc::RepeatedField<string> Emotes {
 348      get { return emotes_; }
 349    }
 350
 351    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 352    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 353    public override bool Equals(object other) {
 354      return Equals(other as PBAvatarShape);
 355    }
 356
 357    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 358    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 359    public bool Equals(PBAvatarShape other) {
 360      if (ReferenceEquals(other, null)) {
 361        return false;
 362      }
 363      if (ReferenceEquals(other, this)) {
 364        return true;
 365      }
 366      if (Id != other.Id) return false;
 367      if (Name != other.Name) return false;
 368      if (BodyShape != other.BodyShape) return false;
 369      if (!object.Equals(SkinColor, other.SkinColor)) return false;
 370      if (!object.Equals(HairColor, other.HairColor)) return false;
 371      if (!object.Equals(EyeColor, other.EyeColor)) return false;
 372      if (ExpressionTriggerId != other.ExpressionTriggerId) return false;
 373      if (ExpressionTriggerTimestamp != other.ExpressionTriggerTimestamp) return false;
 374      if (Talking != other.Talking) return false;
 375      if(!wearables_.Equals(other.wearables_)) return false;
 376      if(!emotes_.Equals(other.emotes_)) return false;
 377      return Equals(_unknownFields, other._unknownFields);
 378    }
 379
 380    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 381    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 382    public override int GetHashCode() {
 383      int hash = 1;
 384      if (Id.Length != 0) hash ^= Id.GetHashCode();
 385      if (HasName) hash ^= Name.GetHashCode();
 386      if (HasBodyShape) hash ^= BodyShape.GetHashCode();
 387      if (skinColor_ != null) hash ^= SkinColor.GetHashCode();
 388      if (hairColor_ != null) hash ^= HairColor.GetHashCode();
 389      if (eyeColor_ != null) hash ^= EyeColor.GetHashCode();
 390      if (HasExpressionTriggerId) hash ^= ExpressionTriggerId.GetHashCode();
 391      if (HasExpressionTriggerTimestamp) hash ^= ExpressionTriggerTimestamp.GetHashCode();
 392      if (HasTalking) hash ^= Talking.GetHashCode();
 393      hash ^= wearables_.GetHashCode();
 394      hash ^= emotes_.GetHashCode();
 395      if (_unknownFields != null) {
 396        hash ^= _unknownFields.GetHashCode();
 397      }
 398      return hash;
 399    }
 400
 401    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 402    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 403    public override string ToString() {
 404      return pb::JsonFormatter.ToDiagnosticString(this);
 405    }
 406
 407    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 408    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 409    public void WriteTo(pb::CodedOutputStream output) {
 410    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 411      output.WriteRawMessage(this);
 412    #else
 413      if (Id.Length != 0) {
 414        output.WriteRawTag(10);
 415        output.WriteString(Id);
 416      }
 417      if (HasName) {
 418        output.WriteRawTag(18);
 419        output.WriteString(Name);
 420      }
 421      if (HasBodyShape) {
 422        output.WriteRawTag(26);
 423        output.WriteString(BodyShape);
 424      }
 425      if (skinColor_ != null) {
 426        output.WriteRawTag(34);
 427        output.WriteMessage(SkinColor);
 428      }
 429      if (hairColor_ != null) {
 430        output.WriteRawTag(42);
 431        output.WriteMessage(HairColor);
 432      }
 433      if (eyeColor_ != null) {
 434        output.WriteRawTag(50);
 435        output.WriteMessage(EyeColor);
 436      }
 437      if (HasExpressionTriggerId) {
 438        output.WriteRawTag(58);
 439        output.WriteString(ExpressionTriggerId);
 440      }
 441      if (HasExpressionTriggerTimestamp) {
 442        output.WriteRawTag(64);
 443        output.WriteInt64(ExpressionTriggerTimestamp);
 444      }
 445      if (HasTalking) {
 446        output.WriteRawTag(72);
 447        output.WriteBool(Talking);
 448      }
 449      wearables_.WriteTo(output, _repeated_wearables_codec);
 450      emotes_.WriteTo(output, _repeated_emotes_codec);
 451      if (_unknownFields != null) {
 452        _unknownFields.WriteTo(output);
 453      }
 454    #endif
 455    }
 456
 457    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 458    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 459    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 460    void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
 461      if (Id.Length != 0) {
 462        output.WriteRawTag(10);
 463        output.WriteString(Id);
 464      }
 465      if (HasName) {
 466        output.WriteRawTag(18);
 467        output.WriteString(Name);
 468      }
 469      if (HasBodyShape) {
 470        output.WriteRawTag(26);
 471        output.WriteString(BodyShape);
 472      }
 473      if (skinColor_ != null) {
 474        output.WriteRawTag(34);
 475        output.WriteMessage(SkinColor);
 476      }
 477      if (hairColor_ != null) {
 478        output.WriteRawTag(42);
 479        output.WriteMessage(HairColor);
 480      }
 481      if (eyeColor_ != null) {
 482        output.WriteRawTag(50);
 483        output.WriteMessage(EyeColor);
 484      }
 485      if (HasExpressionTriggerId) {
 486        output.WriteRawTag(58);
 487        output.WriteString(ExpressionTriggerId);
 488      }
 489      if (HasExpressionTriggerTimestamp) {
 490        output.WriteRawTag(64);
 491        output.WriteInt64(ExpressionTriggerTimestamp);
 492      }
 493      if (HasTalking) {
 494        output.WriteRawTag(72);
 495        output.WriteBool(Talking);
 496      }
 497      wearables_.WriteTo(ref output, _repeated_wearables_codec);
 498      emotes_.WriteTo(ref output, _repeated_emotes_codec);
 499      if (_unknownFields != null) {
 500        _unknownFields.WriteTo(ref output);
 501      }
 502    }
 503    #endif
 504
 505    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 506    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 507    public int CalculateSize() {
 508      int size = 0;
 509      if (Id.Length != 0) {
 510        size += 1 + pb::CodedOutputStream.ComputeStringSize(Id);
 511      }
 512      if (HasName) {
 513        size += 1 + pb::CodedOutputStream.ComputeStringSize(Name);
 514      }
 515      if (HasBodyShape) {
 516        size += 1 + pb::CodedOutputStream.ComputeStringSize(BodyShape);
 517      }
 518      if (skinColor_ != null) {
 519        size += 1 + pb::CodedOutputStream.ComputeMessageSize(SkinColor);
 520      }
 521      if (hairColor_ != null) {
 522        size += 1 + pb::CodedOutputStream.ComputeMessageSize(HairColor);
 523      }
 524      if (eyeColor_ != null) {
 525        size += 1 + pb::CodedOutputStream.ComputeMessageSize(EyeColor);
 526      }
 527      if (HasExpressionTriggerId) {
 528        size += 1 + pb::CodedOutputStream.ComputeStringSize(ExpressionTriggerId);
 529      }
 530      if (HasExpressionTriggerTimestamp) {
 531        size += 1 + pb::CodedOutputStream.ComputeInt64Size(ExpressionTriggerTimestamp);
 532      }
 533      if (HasTalking) {
 534        size += 1 + 1;
 535      }
 536      size += wearables_.CalculateSize(_repeated_wearables_codec);
 537      size += emotes_.CalculateSize(_repeated_emotes_codec);
 538      if (_unknownFields != null) {
 539        size += _unknownFields.CalculateSize();
 540      }
 541      return size;
 542    }
 543
 544    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 545    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 546    public void MergeFrom(PBAvatarShape other) {
 547      if (other == null) {
 548        return;
 549      }
 550      if (other.Id.Length != 0) {
 551        Id = other.Id;
 552      }
 553      if (other.HasName) {
 554        Name = other.Name;
 555      }
 556      if (other.HasBodyShape) {
 557        BodyShape = other.BodyShape;
 558      }
 559      if (other.skinColor_ != null) {
 560        if (skinColor_ == null) {
 561          SkinColor = new global::Decentraland.Common.Color3();
 562        }
 563        SkinColor.MergeFrom(other.SkinColor);
 564      }
 565      if (other.hairColor_ != null) {
 566        if (hairColor_ == null) {
 567          HairColor = new global::Decentraland.Common.Color3();
 568        }
 569        HairColor.MergeFrom(other.HairColor);
 570      }
 571      if (other.eyeColor_ != null) {
 572        if (eyeColor_ == null) {
 573          EyeColor = new global::Decentraland.Common.Color3();
 574        }
 575        EyeColor.MergeFrom(other.EyeColor);
 576      }
 577      if (other.HasExpressionTriggerId) {
 578        ExpressionTriggerId = other.ExpressionTriggerId;
 579      }
 580      if (other.HasExpressionTriggerTimestamp) {
 581        ExpressionTriggerTimestamp = other.ExpressionTriggerTimestamp;
 582      }
 583      if (other.HasTalking) {
 584        Talking = other.Talking;
 585      }
 586      wearables_.Add(other.wearables_);
 587      emotes_.Add(other.emotes_);
 588      _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 589    }
 590
 591    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 592    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 593    public void MergeFrom(pb::CodedInputStream input) {
 594    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 595      input.ReadRawMessage(this);
 596    #else
 597      uint tag;
 598      while ((tag = input.ReadTag()) != 0) {
 599        switch(tag) {
 600          default:
 601            _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
 602            break;
 603          case 10: {
 604            Id = input.ReadString();
 605            break;
 606          }
 607          case 18: {
 608            Name = input.ReadString();
 609            break;
 610          }
 611          case 26: {
 612            BodyShape = input.ReadString();
 613            break;
 614          }
 615          case 34: {
 616            if (skinColor_ == null) {
 617              SkinColor = new global::Decentraland.Common.Color3();
 618            }
 619            input.ReadMessage(SkinColor);
 620            break;
 621          }
 622          case 42: {
 623            if (hairColor_ == null) {
 624              HairColor = new global::Decentraland.Common.Color3();
 625            }
 626            input.ReadMessage(HairColor);
 627            break;
 628          }
 629          case 50: {
 630            if (eyeColor_ == null) {
 631              EyeColor = new global::Decentraland.Common.Color3();
 632            }
 633            input.ReadMessage(EyeColor);
 634            break;
 635          }
 636          case 58: {
 637            ExpressionTriggerId = input.ReadString();
 638            break;
 639          }
 640          case 64: {
 641            ExpressionTriggerTimestamp = input.ReadInt64();
 642            break;
 643          }
 644          case 72: {
 645            Talking = input.ReadBool();
 646            break;
 647          }
 648          case 82: {
 649            wearables_.AddEntriesFrom(input, _repeated_wearables_codec);
 650            break;
 651          }
 652          case 90: {
 653            emotes_.AddEntriesFrom(input, _repeated_emotes_codec);
 654            break;
 655          }
 656        }
 657      }
 658    #endif
 659    }
 660
 661    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 662    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 663    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 664    void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
 665      uint tag;
 666      while ((tag = input.ReadTag()) != 0) {
 667        switch(tag) {
 668          default:
 669            _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
 670            break;
 671          case 10: {
 672            Id = input.ReadString();
 673            break;
 674          }
 675          case 18: {
 676            Name = input.ReadString();
 677            break;
 678          }
 679          case 26: {
 680            BodyShape = input.ReadString();
 681            break;
 682          }
 683          case 34: {
 684            if (skinColor_ == null) {
 685              SkinColor = new global::Decentraland.Common.Color3();
 686            }
 687            input.ReadMessage(SkinColor);
 688            break;
 689          }
 690          case 42: {
 691            if (hairColor_ == null) {
 692              HairColor = new global::Decentraland.Common.Color3();
 693            }
 694            input.ReadMessage(HairColor);
 695            break;
 696          }
 697          case 50: {
 698            if (eyeColor_ == null) {
 699              EyeColor = new global::Decentraland.Common.Color3();
 700            }
 701            input.ReadMessage(EyeColor);
 702            break;
 703          }
 704          case 58: {
 705            ExpressionTriggerId = input.ReadString();
 706            break;
 707          }
 708          case 64: {
 709            ExpressionTriggerTimestamp = input.ReadInt64();
 710            break;
 711          }
 712          case 72: {
 713            Talking = input.ReadBool();
 714            break;
 715          }
 716          case 82: {
 717            wearables_.AddEntriesFrom(ref input, _repeated_wearables_codec);
 718            break;
 719          }
 720          case 90: {
 721            emotes_.AddEntriesFrom(ref input, _repeated_emotes_codec);
 722            break;
 723          }
 724        }
 725      }
 726    }
 727    #endif
 728
 729  }
 730
 731  #endregion
 732
 733}
 734
 735#endregion Designer generated code