< 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:0
Uncovered lines:223
Coverable lines:223
Total lines:735
Line coverage:0% (0 of 223)
Covered branches:0
Total branches:0
Covered methods:0
Total methods:45
Method coverage:0% (0 of 45)

Metrics

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

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  /// <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  {
 067    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)]
 072    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 {
 077      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 {
 083      get { return Descriptor; }
 84    }
 85
 86    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 87    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 088    public PBAvatarShape() {
 89      OnConstruction();
 090    }
 91
 92    partial void OnConstruction();
 93
 94    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 95    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 096    public PBAvatarShape(PBAvatarShape other) : this() {
 097      _hasBits0 = other._hasBits0;
 098      id_ = other.id_;
 099      name_ = other.name_;
 0100      bodyShape_ = other.bodyShape_;
 0101      skinColor_ = other.skinColor_ != null ? other.skinColor_.Clone() : null;
 0102      hairColor_ = other.hairColor_ != null ? other.hairColor_.Clone() : null;
 0103      eyeColor_ = other.eyeColor_ != null ? other.eyeColor_.Clone() : null;
 0104      expressionTriggerId_ = other.expressionTriggerId_;
 0105      expressionTriggerTimestamp_ = other.expressionTriggerTimestamp_;
 0106      talking_ = other.talking_;
 0107      wearables_ = other.wearables_.Clone();
 0108      emotes_ = other.emotes_.Clone();
 0109      _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
 0110    }
 111
 112    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 113    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 114    public PBAvatarShape Clone() {
 0115      return new PBAvatarShape(this);
 116    }
 117
 118    /// <summary>Field number for the "id" field.</summary>
 119    public const int IdFieldNumber = 1;
 0120    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 {
 0127      get { return id_; }
 128      set {
 0129        id_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
 0130      }
 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 {
 0142      get { return name_ ?? ""; }
 143      set {
 0144        name_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
 0145      }
 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 {
 0151      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() {
 0157      name_ = null;
 0158    }
 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 {
 0169      get { return bodyShape_ ?? ""; }
 170      set {
 0171        bodyShape_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
 0172      }
 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 {
 0178      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() {
 0184      bodyShape_ = null;
 0185    }
 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 {
 0196      get { return skinColor_; }
 197      set {
 0198        skinColor_ = value;
 0199      }
 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 {
 0211      get { return hairColor_; }
 212      set {
 0213        hairColor_ = value;
 0214      }
 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 {
 0226      get { return eyeColor_; }
 227      set {
 0228        eyeColor_ = value;
 0229      }
 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 {
 0241      get { return expressionTriggerId_ ?? ""; }
 242      set {
 0243        expressionTriggerId_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
 0244      }
 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 {
 0250      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() {
 0256      expressionTriggerId_ = null;
 0257    }
 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 {
 0268      get { if ((_hasBits0 & 1) != 0) { return expressionTriggerTimestamp_; } else { return 0L; } }
 269      set {
 0270        _hasBits0 |= 1;
 0271        expressionTriggerTimestamp_ = value;
 0272      }
 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 {
 0278      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() {
 0284      _hasBits0 &= ~1;
 0285    }
 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 {
 0296      get { if ((_hasBits0 & 2) != 0) { return talking_; } else { return false; } }
 297      set {
 0298        _hasBits0 |= 2;
 0299        talking_ = value;
 0300      }
 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 {
 0306      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() {
 0312      _hasBits0 &= ~2;
 0313    }
 314
 315    /// <summary>Field number for the "wearables" field.</summary>
 316    public const int WearablesFieldNumber = 10;
 0317    private static readonly pb::FieldCodec<string> _repeated_wearables_codec
 318        = pb::FieldCodec.ForString(82);
 0319    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 {
 0334      get { return wearables_; }
 335    }
 336
 337    /// <summary>Field number for the "emotes" field.</summary>
 338    public const int EmotesFieldNumber = 11;
 0339    private static readonly pb::FieldCodec<string> _repeated_emotes_codec
 340        = pb::FieldCodec.ForString(90);
 0341    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 {
 0348      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) {
 0354      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) {
 0360      if (ReferenceEquals(other, null)) {
 0361        return false;
 362      }
 0363      if (ReferenceEquals(other, this)) {
 0364        return true;
 365      }
 0366      if (Id != other.Id) return false;
 0367      if (Name != other.Name) return false;
 0368      if (BodyShape != other.BodyShape) return false;
 0369      if (!object.Equals(SkinColor, other.SkinColor)) return false;
 0370      if (!object.Equals(HairColor, other.HairColor)) return false;
 0371      if (!object.Equals(EyeColor, other.EyeColor)) return false;
 0372      if (ExpressionTriggerId != other.ExpressionTriggerId) return false;
 0373      if (ExpressionTriggerTimestamp != other.ExpressionTriggerTimestamp) return false;
 0374      if (Talking != other.Talking) return false;
 0375      if(!wearables_.Equals(other.wearables_)) return false;
 0376      if(!emotes_.Equals(other.emotes_)) return false;
 0377      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() {
 0383      int hash = 1;
 0384      if (Id.Length != 0) hash ^= Id.GetHashCode();
 0385      if (HasName) hash ^= Name.GetHashCode();
 0386      if (HasBodyShape) hash ^= BodyShape.GetHashCode();
 0387      if (skinColor_ != null) hash ^= SkinColor.GetHashCode();
 0388      if (hairColor_ != null) hash ^= HairColor.GetHashCode();
 0389      if (eyeColor_ != null) hash ^= EyeColor.GetHashCode();
 0390      if (HasExpressionTriggerId) hash ^= ExpressionTriggerId.GetHashCode();
 0391      if (HasExpressionTriggerTimestamp) hash ^= ExpressionTriggerTimestamp.GetHashCode();
 0392      if (HasTalking) hash ^= Talking.GetHashCode();
 0393      hash ^= wearables_.GetHashCode();
 0394      hash ^= emotes_.GetHashCode();
 0395      if (_unknownFields != null) {
 0396        hash ^= _unknownFields.GetHashCode();
 397      }
 0398      return hash;
 399    }
 400
 401    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 402    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 403    public override string ToString() {
 0404      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
 0413      if (Id.Length != 0) {
 0414        output.WriteRawTag(10);
 0415        output.WriteString(Id);
 416      }
 0417      if (HasName) {
 0418        output.WriteRawTag(18);
 0419        output.WriteString(Name);
 420      }
 0421      if (HasBodyShape) {
 0422        output.WriteRawTag(26);
 0423        output.WriteString(BodyShape);
 424      }
 0425      if (skinColor_ != null) {
 0426        output.WriteRawTag(34);
 0427        output.WriteMessage(SkinColor);
 428      }
 0429      if (hairColor_ != null) {
 0430        output.WriteRawTag(42);
 0431        output.WriteMessage(HairColor);
 432      }
 0433      if (eyeColor_ != null) {
 0434        output.WriteRawTag(50);
 0435        output.WriteMessage(EyeColor);
 436      }
 0437      if (HasExpressionTriggerId) {
 0438        output.WriteRawTag(58);
 0439        output.WriteString(ExpressionTriggerId);
 440      }
 0441      if (HasExpressionTriggerTimestamp) {
 0442        output.WriteRawTag(64);
 0443        output.WriteInt64(ExpressionTriggerTimestamp);
 444      }
 0445      if (HasTalking) {
 0446        output.WriteRawTag(72);
 0447        output.WriteBool(Talking);
 448      }
 0449      wearables_.WriteTo(output, _repeated_wearables_codec);
 0450      emotes_.WriteTo(output, _repeated_emotes_codec);
 0451      if (_unknownFields != null) {
 0452        _unknownFields.WriteTo(output);
 453      }
 454    #endif
 0455    }
 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() {
 0508      int size = 0;
 0509      if (Id.Length != 0) {
 0510        size += 1 + pb::CodedOutputStream.ComputeStringSize(Id);
 511      }
 0512      if (HasName) {
 0513        size += 1 + pb::CodedOutputStream.ComputeStringSize(Name);
 514      }
 0515      if (HasBodyShape) {
 0516        size += 1 + pb::CodedOutputStream.ComputeStringSize(BodyShape);
 517      }
 0518      if (skinColor_ != null) {
 0519        size += 1 + pb::CodedOutputStream.ComputeMessageSize(SkinColor);
 520      }
 0521      if (hairColor_ != null) {
 0522        size += 1 + pb::CodedOutputStream.ComputeMessageSize(HairColor);
 523      }
 0524      if (eyeColor_ != null) {
 0525        size += 1 + pb::CodedOutputStream.ComputeMessageSize(EyeColor);
 526      }
 0527      if (HasExpressionTriggerId) {
 0528        size += 1 + pb::CodedOutputStream.ComputeStringSize(ExpressionTriggerId);
 529      }
 0530      if (HasExpressionTriggerTimestamp) {
 0531        size += 1 + pb::CodedOutputStream.ComputeInt64Size(ExpressionTriggerTimestamp);
 532      }
 0533      if (HasTalking) {
 0534        size += 1 + 1;
 535      }
 0536      size += wearables_.CalculateSize(_repeated_wearables_codec);
 0537      size += emotes_.CalculateSize(_repeated_emotes_codec);
 0538      if (_unknownFields != null) {
 0539        size += _unknownFields.CalculateSize();
 540      }
 0541      return size;
 542    }
 543
 544    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 545    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 546    public void MergeFrom(PBAvatarShape other) {
 0547      if (other == null) {
 0548        return;
 549      }
 0550      if (other.Id.Length != 0) {
 0551        Id = other.Id;
 552      }
 0553      if (other.HasName) {
 0554        Name = other.Name;
 555      }
 0556      if (other.HasBodyShape) {
 0557        BodyShape = other.BodyShape;
 558      }
 0559      if (other.skinColor_ != null) {
 0560        if (skinColor_ == null) {
 0561          SkinColor = new global::Decentraland.Common.Color3();
 562        }
 0563        SkinColor.MergeFrom(other.SkinColor);
 564      }
 0565      if (other.hairColor_ != null) {
 0566        if (hairColor_ == null) {
 0567          HairColor = new global::Decentraland.Common.Color3();
 568        }
 0569        HairColor.MergeFrom(other.HairColor);
 570      }
 0571      if (other.eyeColor_ != null) {
 0572        if (eyeColor_ == null) {
 0573          EyeColor = new global::Decentraland.Common.Color3();
 574        }
 0575        EyeColor.MergeFrom(other.EyeColor);
 576      }
 0577      if (other.HasExpressionTriggerId) {
 0578        ExpressionTriggerId = other.ExpressionTriggerId;
 579      }
 0580      if (other.HasExpressionTriggerTimestamp) {
 0581        ExpressionTriggerTimestamp = other.ExpressionTriggerTimestamp;
 582      }
 0583      if (other.HasTalking) {
 0584        Talking = other.Talking;
 585      }
 0586      wearables_.Add(other.wearables_);
 0587      emotes_.Add(other.emotes_);
 0588      _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 0589    }
 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;
 0598      while ((tag = input.ReadTag()) != 0) {
 599        switch(tag) {
 600          default:
 0601            _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
 0602            break;
 603          case 10: {
 0604            Id = input.ReadString();
 0605            break;
 606          }
 607          case 18: {
 0608            Name = input.ReadString();
 0609            break;
 610          }
 611          case 26: {
 0612            BodyShape = input.ReadString();
 0613            break;
 614          }
 615          case 34: {
 0616            if (skinColor_ == null) {
 0617              SkinColor = new global::Decentraland.Common.Color3();
 618            }
 0619            input.ReadMessage(SkinColor);
 0620            break;
 621          }
 622          case 42: {
 0623            if (hairColor_ == null) {
 0624              HairColor = new global::Decentraland.Common.Color3();
 625            }
 0626            input.ReadMessage(HairColor);
 0627            break;
 628          }
 629          case 50: {
 0630            if (eyeColor_ == null) {
 0631              EyeColor = new global::Decentraland.Common.Color3();
 632            }
 0633            input.ReadMessage(EyeColor);
 0634            break;
 635          }
 636          case 58: {
 0637            ExpressionTriggerId = input.ReadString();
 0638            break;
 639          }
 640          case 64: {
 0641            ExpressionTriggerTimestamp = input.ReadInt64();
 0642            break;
 643          }
 644          case 72: {
 0645            Talking = input.ReadBool();
 0646            break;
 647          }
 648          case 82: {
 0649            wearables_.AddEntriesFrom(input, _repeated_wearables_codec);
 0650            break;
 651          }
 652          case 90: {
 0653            emotes_.AddEntriesFrom(input, _repeated_emotes_codec);
 654            break;
 655          }
 656        }
 657      }
 658    #endif
 0659    }
 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