< Summary

Class:DCL.ECSComponents.PBAvatarShape
Assembly:DCL.ECSComponents.ProtobufData
File(s):/tmp/workspace/unity-renderer/unity-renderer/Assets/DCLPlugins/ECS7/ProtocolBuffers/Generated/PBFiles/AvatarShape.cs
Covered lines:106
Uncovered lines:106
Coverable lines:212
Total lines:683
Line coverage:50% (106 of 212)
Covered branches:0
Total branches:0

Metrics

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

File(s)

/tmp/workspace/unity-renderer/unity-renderer/Assets/DCLPlugins/ECS7/ProtocolBuffers/Generated/PBFiles/AvatarShape.cs

#LineLine coverage
 1// <auto-generated>
 2//     Generated by the protocol buffer compiler.  DO NOT EDIT!
 3//     source: AvatarShape.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 AvatarShape.proto</summary>
 15  public static partial class AvatarShapeReflection {
 16
 17    #region Descriptor
 18    /// <summary>File descriptor for AvatarShape.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            "ChFBdmF0YXJTaGFwZS5wcm90bxIQZGVjZW50cmFsYW5kLmVjcxoTY29tbW9u",
 28            "L0NvbG9yMy5wcm90byKvAwoNUEJBdmF0YXJTaGFwZRIKCgJpZBgBIAEoCRIR",
 29            "CgRuYW1lGAIgASgJSACIAQESFwoKYm9keV9zaGFwZRgDIAEoCUgBiAEBEiAK",
 30            "CnNraW5fY29sb3IYBCABKAsyBy5Db2xvcjNIAogBARIgCgpoYWlyX2NvbG9y",
 31            "GAUgASgLMgcuQ29sb3IzSAOIAQESHwoJZXllX2NvbG9yGAYgASgLMgcuQ29s",
 32            "b3IzSASIAQESIgoVZXhwcmVzc2lvbl90cmlnZ2VyX2lkGAcgASgJSAWIAQES",
 33            "KQocZXhwcmVzc2lvbl90cmlnZ2VyX3RpbWVzdGFtcBgIIAEoA0gGiAEBEhQK",
 34            "B3RhbGtpbmcYCSABKAhIB4gBARIRCgl3ZWFyYWJsZXMYCiADKAlCBwoFX25h",
 35            "bWVCDQoLX2JvZHlfc2hhcGVCDQoLX3NraW5fY29sb3JCDQoLX2hhaXJfY29s",
 36            "b3JCDAoKX2V5ZV9jb2xvckIYChZfZXhwcmVzc2lvbl90cmlnZ2VyX2lkQh8K",
 37            "HV9leHByZXNzaW9uX3RyaWdnZXJfdGltZXN0YW1wQgoKCF90YWxraW5nQhSq",
 38            "AhFEQ0wuRUNTQ29tcG9uZW50c2IGcHJvdG8z"));
 39      descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
 40          new pbr::FileDescriptor[] { global::Color3Reflection.Descriptor, },
 41          new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] {
 42            new pbr::GeneratedClrTypeInfo(typeof(global::DCL.ECSComponents.PBAvatarShape), global::DCL.ECSComponents.PBA
 43          }));
 44    }
 45    #endregion
 46
 47  }
 48  #region Messages
 49  public sealed partial class PBAvatarShape : pb::IMessage<PBAvatarShape>
 50  #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 51      , pb::IBufferMessage
 52  #endif
 53  {
 254    private static readonly pb::MessageParser<PBAvatarShape> _parser = new pb::MessageParser<PBAvatarShape>(() => new PB
 55    private pb::UnknownFieldSet _unknownFields;
 56    private int _hasBits0;
 57    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 58    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 059    public static pb::MessageParser<PBAvatarShape> Parser { get { return _parser; } }
 60
 61    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 62    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 63    public static pbr::MessageDescriptor Descriptor {
 064      get { return global::DCL.ECSComponents.AvatarShapeReflection.Descriptor.MessageTypes[0]; }
 65    }
 66
 67    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 68    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 69    pbr::MessageDescriptor pb::IMessage.Descriptor {
 070      get { return Descriptor; }
 71    }
 72
 73    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 74    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 1475    public PBAvatarShape() {
 76      OnConstruction();
 1477    }
 78
 79    partial void OnConstruction();
 80
 81    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 82    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 083    public PBAvatarShape(PBAvatarShape other) : this() {
 084      _hasBits0 = other._hasBits0;
 085      id_ = other.id_;
 086      name_ = other.name_;
 087      bodyShape_ = other.bodyShape_;
 088      skinColor_ = other.skinColor_ != null ? other.skinColor_.Clone() : null;
 089      hairColor_ = other.hairColor_ != null ? other.hairColor_.Clone() : null;
 090      eyeColor_ = other.eyeColor_ != null ? other.eyeColor_.Clone() : null;
 091      expressionTriggerId_ = other.expressionTriggerId_;
 092      expressionTriggerTimestamp_ = other.expressionTriggerTimestamp_;
 093      talking_ = other.talking_;
 094      wearables_ = other.wearables_.Clone();
 095      _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
 096    }
 97
 98    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 99    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 100    public PBAvatarShape Clone() {
 0101      return new PBAvatarShape(this);
 102    }
 103
 104    /// <summary>Field number for the "id" field.</summary>
 105    public const int IdFieldNumber = 1;
 14106    private string id_ = "";
 107    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 108    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 109    public string Id {
 0110      get { return id_; }
 111      set {
 8112        id_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
 8113      }
 114    }
 115
 116    /// <summary>Field number for the "name" field.</summary>
 117    public const int NameFieldNumber = 2;
 118    private string name_;
 119    /// <summary>
 120    /// default = NPC
 121    /// </summary>
 122    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 123    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 124    public string Name {
 0125      get { return name_ ?? ""; }
 126      set {
 8127        name_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
 8128      }
 129    }
 130    /// <summary>Gets whether the "name" field is set</summary>
 131    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 132    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 133    public bool HasName {
 0134      get { return name_ != null; }
 135    }
 136    /// <summary>Clears the value of the "name" field</summary>
 137    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 138    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 139    public void ClearName() {
 0140      name_ = null;
 0141    }
 142
 143    /// <summary>Field number for the "body_shape" field.</summary>
 144    public const int BodyShapeFieldNumber = 3;
 145    private string bodyShape_;
 146    /// <summary>
 147    /// default = urn:decentraland:off-chain:base-avatars:BaseFemale
 148    /// </summary>
 149    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 150    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 151    public string BodyShape {
 0152      get { return bodyShape_ ?? ""; }
 153      set {
 8154        bodyShape_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
 8155      }
 156    }
 157    /// <summary>Gets whether the "body_shape" field is set</summary>
 158    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 159    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 160    public bool HasBodyShape {
 0161      get { return bodyShape_ != null; }
 162    }
 163    /// <summary>Clears the value of the "body_shape" field</summary>
 164    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 165    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 166    public void ClearBodyShape() {
 0167      bodyShape_ = null;
 0168    }
 169
 170    /// <summary>Field number for the "skin_color" field.</summary>
 171    public const int SkinColorFieldNumber = 4;
 172    private global::Color3 skinColor_;
 173    /// <summary>
 174    /// default = Color3(R = 0.6f, G = 0.462f, B = 0.356f)
 175    /// </summary>
 176    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 177    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 178    public global::Color3 SkinColor {
 24179      get { return skinColor_; }
 180      set {
 8181        skinColor_ = value;
 8182      }
 183    }
 184
 185    /// <summary>Field number for the "hair_color" field.</summary>
 186    public const int HairColorFieldNumber = 5;
 187    private global::Color3 hairColor_;
 188    /// <summary>
 189    /// default = Color3(R = 0.283f, G = 0.142f, B = 0f)
 190    /// </summary>
 191    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 192    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 193    public global::Color3 HairColor {
 24194      get { return hairColor_; }
 195      set {
 8196        hairColor_ = value;
 8197      }
 198    }
 199
 200    /// <summary>Field number for the "eye_color" field.</summary>
 201    public const int EyeColorFieldNumber = 6;
 202    private global::Color3 eyeColor_;
 203    /// <summary>
 204    /// default = Color3(R = 0.6f, G = 0.462f, B = 0.356f)
 205    /// </summary>
 206    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 207    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 208    public global::Color3 EyeColor {
 24209      get { return eyeColor_; }
 210      set {
 8211        eyeColor_ = value;
 8212      }
 213    }
 214
 215    /// <summary>Field number for the "expression_trigger_id" field.</summary>
 216    public const int ExpressionTriggerIdFieldNumber = 7;
 217    private string expressionTriggerId_;
 218    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 219    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 220    public string ExpressionTriggerId {
 0221      get { return expressionTriggerId_ ?? ""; }
 222      set {
 8223        expressionTriggerId_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
 8224      }
 225    }
 226    /// <summary>Gets whether the "expression_trigger_id" field is set</summary>
 227    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 228    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 229    public bool HasExpressionTriggerId {
 0230      get { return expressionTriggerId_ != null; }
 231    }
 232    /// <summary>Clears the value of the "expression_trigger_id" field</summary>
 233    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 234    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 235    public void ClearExpressionTriggerId() {
 0236      expressionTriggerId_ = null;
 0237    }
 238
 239    /// <summary>Field number for the "expression_trigger_timestamp" field.</summary>
 240    public const int ExpressionTriggerTimestampFieldNumber = 8;
 241    private long expressionTriggerTimestamp_;
 242    /// <summary>
 243    /// default = timestamp
 244    /// </summary>
 245    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 246    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 247    public long ExpressionTriggerTimestamp {
 14248      get { if ((_hasBits0 & 1) != 0) { return expressionTriggerTimestamp_; } else { return 0L; } }
 249      set {
 9250        _hasBits0 |= 1;
 9251        expressionTriggerTimestamp_ = value;
 9252      }
 253    }
 254    /// <summary>Gets whether the "expression_trigger_timestamp" field is set</summary>
 255    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 256    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 257    public bool HasExpressionTriggerTimestamp {
 0258      get { return (_hasBits0 & 1) != 0; }
 259    }
 260    /// <summary>Clears the value of the "expression_trigger_timestamp" field</summary>
 261    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 262    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 263    public void ClearExpressionTriggerTimestamp() {
 0264      _hasBits0 &= ~1;
 0265    }
 266
 267    /// <summary>Field number for the "talking" field.</summary>
 268    public const int TalkingFieldNumber = 9;
 269    private bool talking_;
 270    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 271    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 272    public bool Talking {
 0273      get { if ((_hasBits0 & 2) != 0) { return talking_; } else { return false; } }
 274      set {
 0275        _hasBits0 |= 2;
 0276        talking_ = value;
 0277      }
 278    }
 279    /// <summary>Gets whether the "talking" field is set</summary>
 280    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 281    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 282    public bool HasTalking {
 0283      get { return (_hasBits0 & 2) != 0; }
 284    }
 285    /// <summary>Clears the value of the "talking" field</summary>
 286    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 287    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 288    public void ClearTalking() {
 0289      _hasBits0 &= ~2;
 0290    }
 291
 292    /// <summary>Field number for the "wearables" field.</summary>
 293    public const int WearablesFieldNumber = 10;
 1294    private static readonly pb::FieldCodec<string> _repeated_wearables_codec
 295        = pb::FieldCodec.ForString(82);
 14296    private readonly pbc::RepeatedField<string> wearables_ = new pbc::RepeatedField<string>();
 297    /// <summary>
 298    ///*
 299    /// default = ["urn:decentraland:off-chain:base-avatars:f_eyes_00",
 300    ///  "urn:decentraland:off-chain:base-avatars:f_eyebrows_00",
 301    ///  "urn:decentraland:off-chain:base-avatars:f_mouth_00"
 302    ///  "urn:decentraland:off-chain:base-avatars:standard_hair",
 303    ///  "urn:decentraland:off-chain:base-avatars:f_simple_yellow_tshirt",
 304    ///  "urn:decentraland:off-chain:base-avatars:f_brown_trousers",
 305    ///  "urn:decentraland:off-chain:base-avatars:bun_shoes"]
 306    /// </summary>
 307    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 308    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 309    public pbc::RepeatedField<string> Wearables {
 88310      get { return wearables_; }
 311    }
 312
 313    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 314    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 315    public override bool Equals(object other) {
 1316      return Equals(other as PBAvatarShape);
 317    }
 318
 319    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 320    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 321    public bool Equals(PBAvatarShape other) {
 1322      if (ReferenceEquals(other, null)) {
 0323        return false;
 324      }
 1325      if (ReferenceEquals(other, this)) {
 1326        return true;
 327      }
 0328      if (Id != other.Id) return false;
 0329      if (Name != other.Name) return false;
 0330      if (BodyShape != other.BodyShape) return false;
 0331      if (!object.Equals(SkinColor, other.SkinColor)) return false;
 0332      if (!object.Equals(HairColor, other.HairColor)) return false;
 0333      if (!object.Equals(EyeColor, other.EyeColor)) return false;
 0334      if (ExpressionTriggerId != other.ExpressionTriggerId) return false;
 0335      if (ExpressionTriggerTimestamp != other.ExpressionTriggerTimestamp) return false;
 0336      if (Talking != other.Talking) return false;
 0337      if(!wearables_.Equals(other.wearables_)) return false;
 0338      return Equals(_unknownFields, other._unknownFields);
 339    }
 340
 341    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 342    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 343    public override int GetHashCode() {
 0344      int hash = 1;
 0345      if (Id.Length != 0) hash ^= Id.GetHashCode();
 0346      if (HasName) hash ^= Name.GetHashCode();
 0347      if (HasBodyShape) hash ^= BodyShape.GetHashCode();
 0348      if (skinColor_ != null) hash ^= SkinColor.GetHashCode();
 0349      if (hairColor_ != null) hash ^= HairColor.GetHashCode();
 0350      if (eyeColor_ != null) hash ^= EyeColor.GetHashCode();
 0351      if (HasExpressionTriggerId) hash ^= ExpressionTriggerId.GetHashCode();
 0352      if (HasExpressionTriggerTimestamp) hash ^= ExpressionTriggerTimestamp.GetHashCode();
 0353      if (HasTalking) hash ^= Talking.GetHashCode();
 0354      hash ^= wearables_.GetHashCode();
 0355      if (_unknownFields != null) {
 0356        hash ^= _unknownFields.GetHashCode();
 357      }
 0358      return hash;
 359    }
 360
 361    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 362    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 363    public override string ToString() {
 0364      return pb::JsonFormatter.ToDiagnosticString(this);
 365    }
 366
 367    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 368    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 369    public void WriteTo(pb::CodedOutputStream output) {
 370    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 371      output.WriteRawMessage(this);
 372    #else
 1373      if (Id.Length != 0) {
 1374        output.WriteRawTag(10);
 1375        output.WriteString(Id);
 376      }
 1377      if (HasName) {
 1378        output.WriteRawTag(18);
 1379        output.WriteString(Name);
 380      }
 1381      if (HasBodyShape) {
 1382        output.WriteRawTag(26);
 1383        output.WriteString(BodyShape);
 384      }
 1385      if (skinColor_ != null) {
 1386        output.WriteRawTag(34);
 1387        output.WriteMessage(SkinColor);
 388      }
 1389      if (hairColor_ != null) {
 1390        output.WriteRawTag(42);
 1391        output.WriteMessage(HairColor);
 392      }
 1393      if (eyeColor_ != null) {
 1394        output.WriteRawTag(50);
 1395        output.WriteMessage(EyeColor);
 396      }
 1397      if (HasExpressionTriggerId) {
 1398        output.WriteRawTag(58);
 1399        output.WriteString(ExpressionTriggerId);
 400      }
 1401      if (HasExpressionTriggerTimestamp) {
 1402        output.WriteRawTag(64);
 1403        output.WriteInt64(ExpressionTriggerTimestamp);
 404      }
 1405      if (HasTalking) {
 0406        output.WriteRawTag(72);
 0407        output.WriteBool(Talking);
 408      }
 1409      wearables_.WriteTo(output, _repeated_wearables_codec);
 1410      if (_unknownFields != null) {
 0411        _unknownFields.WriteTo(output);
 412      }
 413    #endif
 1414    }
 415
 416    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 417    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 418    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 419    void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
 420      if (Id.Length != 0) {
 421        output.WriteRawTag(10);
 422        output.WriteString(Id);
 423      }
 424      if (HasName) {
 425        output.WriteRawTag(18);
 426        output.WriteString(Name);
 427      }
 428      if (HasBodyShape) {
 429        output.WriteRawTag(26);
 430        output.WriteString(BodyShape);
 431      }
 432      if (skinColor_ != null) {
 433        output.WriteRawTag(34);
 434        output.WriteMessage(SkinColor);
 435      }
 436      if (hairColor_ != null) {
 437        output.WriteRawTag(42);
 438        output.WriteMessage(HairColor);
 439      }
 440      if (eyeColor_ != null) {
 441        output.WriteRawTag(50);
 442        output.WriteMessage(EyeColor);
 443      }
 444      if (HasExpressionTriggerId) {
 445        output.WriteRawTag(58);
 446        output.WriteString(ExpressionTriggerId);
 447      }
 448      if (HasExpressionTriggerTimestamp) {
 449        output.WriteRawTag(64);
 450        output.WriteInt64(ExpressionTriggerTimestamp);
 451      }
 452      if (HasTalking) {
 453        output.WriteRawTag(72);
 454        output.WriteBool(Talking);
 455      }
 456      wearables_.WriteTo(ref output, _repeated_wearables_codec);
 457      if (_unknownFields != null) {
 458        _unknownFields.WriteTo(ref output);
 459      }
 460    }
 461    #endif
 462
 463    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 464    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 465    public int CalculateSize() {
 1466      int size = 0;
 1467      if (Id.Length != 0) {
 1468        size += 1 + pb::CodedOutputStream.ComputeStringSize(Id);
 469      }
 1470      if (HasName) {
 1471        size += 1 + pb::CodedOutputStream.ComputeStringSize(Name);
 472      }
 1473      if (HasBodyShape) {
 1474        size += 1 + pb::CodedOutputStream.ComputeStringSize(BodyShape);
 475      }
 1476      if (skinColor_ != null) {
 1477        size += 1 + pb::CodedOutputStream.ComputeMessageSize(SkinColor);
 478      }
 1479      if (hairColor_ != null) {
 1480        size += 1 + pb::CodedOutputStream.ComputeMessageSize(HairColor);
 481      }
 1482      if (eyeColor_ != null) {
 1483        size += 1 + pb::CodedOutputStream.ComputeMessageSize(EyeColor);
 484      }
 1485      if (HasExpressionTriggerId) {
 1486        size += 1 + pb::CodedOutputStream.ComputeStringSize(ExpressionTriggerId);
 487      }
 1488      if (HasExpressionTriggerTimestamp) {
 1489        size += 1 + pb::CodedOutputStream.ComputeInt64Size(ExpressionTriggerTimestamp);
 490      }
 1491      if (HasTalking) {
 0492        size += 1 + 1;
 493      }
 1494      size += wearables_.CalculateSize(_repeated_wearables_codec);
 1495      if (_unknownFields != null) {
 0496        size += _unknownFields.CalculateSize();
 497      }
 1498      return size;
 499    }
 500
 501    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 502    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 503    public void MergeFrom(PBAvatarShape other) {
 0504      if (other == null) {
 0505        return;
 506      }
 0507      if (other.Id.Length != 0) {
 0508        Id = other.Id;
 509      }
 0510      if (other.HasName) {
 0511        Name = other.Name;
 512      }
 0513      if (other.HasBodyShape) {
 0514        BodyShape = other.BodyShape;
 515      }
 0516      if (other.skinColor_ != null) {
 0517        if (skinColor_ == null) {
 0518          SkinColor = new global::Color3();
 519        }
 0520        SkinColor.MergeFrom(other.SkinColor);
 521      }
 0522      if (other.hairColor_ != null) {
 0523        if (hairColor_ == null) {
 0524          HairColor = new global::Color3();
 525        }
 0526        HairColor.MergeFrom(other.HairColor);
 527      }
 0528      if (other.eyeColor_ != null) {
 0529        if (eyeColor_ == null) {
 0530          EyeColor = new global::Color3();
 531        }
 0532        EyeColor.MergeFrom(other.EyeColor);
 533      }
 0534      if (other.HasExpressionTriggerId) {
 0535        ExpressionTriggerId = other.ExpressionTriggerId;
 536      }
 0537      if (other.HasExpressionTriggerTimestamp) {
 0538        ExpressionTriggerTimestamp = other.ExpressionTriggerTimestamp;
 539      }
 0540      if (other.HasTalking) {
 0541        Talking = other.Talking;
 542      }
 0543      wearables_.Add(other.wearables_);
 0544      _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 0545    }
 546
 547    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 548    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 549    public void MergeFrom(pb::CodedInputStream input) {
 550    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 551      input.ReadRawMessage(this);
 552    #else
 553      uint tag;
 10554      while ((tag = input.ReadTag()) != 0) {
 555        switch(tag) {
 556          default:
 0557            _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
 0558            break;
 559          case 10: {
 1560            Id = input.ReadString();
 1561            break;
 562          }
 563          case 18: {
 1564            Name = input.ReadString();
 1565            break;
 566          }
 567          case 26: {
 1568            BodyShape = input.ReadString();
 1569            break;
 570          }
 571          case 34: {
 1572            if (skinColor_ == null) {
 1573              SkinColor = new global::Color3();
 574            }
 1575            input.ReadMessage(SkinColor);
 1576            break;
 577          }
 578          case 42: {
 1579            if (hairColor_ == null) {
 1580              HairColor = new global::Color3();
 581            }
 1582            input.ReadMessage(HairColor);
 1583            break;
 584          }
 585          case 50: {
 1586            if (eyeColor_ == null) {
 1587              EyeColor = new global::Color3();
 588            }
 1589            input.ReadMessage(EyeColor);
 1590            break;
 591          }
 592          case 58: {
 1593            ExpressionTriggerId = input.ReadString();
 1594            break;
 595          }
 596          case 64: {
 1597            ExpressionTriggerTimestamp = input.ReadInt64();
 1598            break;
 599          }
 600          case 72: {
 0601            Talking = input.ReadBool();
 0602            break;
 603          }
 604          case 82: {
 1605            wearables_.AddEntriesFrom(input, _repeated_wearables_codec);
 606            break;
 607          }
 608        }
 609      }
 610    #endif
 1611    }
 612
 613    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 614    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 615    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 616    void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
 617      uint tag;
 618      while ((tag = input.ReadTag()) != 0) {
 619        switch(tag) {
 620          default:
 621            _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
 622            break;
 623          case 10: {
 624            Id = input.ReadString();
 625            break;
 626          }
 627          case 18: {
 628            Name = input.ReadString();
 629            break;
 630          }
 631          case 26: {
 632            BodyShape = input.ReadString();
 633            break;
 634          }
 635          case 34: {
 636            if (skinColor_ == null) {
 637              SkinColor = new global::Color3();
 638            }
 639            input.ReadMessage(SkinColor);
 640            break;
 641          }
 642          case 42: {
 643            if (hairColor_ == null) {
 644              HairColor = new global::Color3();
 645            }
 646            input.ReadMessage(HairColor);
 647            break;
 648          }
 649          case 50: {
 650            if (eyeColor_ == null) {
 651              EyeColor = new global::Color3();
 652            }
 653            input.ReadMessage(EyeColor);
 654            break;
 655          }
 656          case 58: {
 657            ExpressionTriggerId = input.ReadString();
 658            break;
 659          }
 660          case 64: {
 661            ExpressionTriggerTimestamp = input.ReadInt64();
 662            break;
 663          }
 664          case 72: {
 665            Talking = input.ReadBool();
 666            break;
 667          }
 668          case 82: {
 669            wearables_.AddEntriesFrom(ref input, _repeated_wearables_codec);
 670            break;
 671          }
 672        }
 673      }
 674    }
 675    #endif
 676
 677  }
 678
 679  #endregion
 680
 681}
 682
 683#endregion Designer generated code