< Summary

Class:DCL.ECSComponents.UserDataReflection
Assembly:DCL.ECSComponents.ProtobufData
File(s):/tmp/workspace/unity-renderer/unity-renderer/Assets/DCLPlugins/ECS7/ProtocolBuffers/Generated/UserData.gen.cs
Covered lines:0
Uncovered lines:4
Coverable lines:4
Total lines:1048
Line coverage:0% (0 of 4)
Covered branches:0
Total branches:0

Metrics

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

File(s)

/tmp/workspace/unity-renderer/unity-renderer/Assets/DCLPlugins/ECS7/ProtocolBuffers/Generated/UserData.gen.cs

#LineLine coverage
 1// <auto-generated>
 2//     Generated by the protocol buffer compiler.  DO NOT EDIT!
 3//     source: decentraland/common/sdk/user_data.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/common/sdk/user_data.proto</summary>
 15  public static partial class UserDataReflection {
 16
 17    #region Descriptor
 18    /// <summary>File descriptor for decentraland/common/sdk/user_data.proto</summary>
 19    public static pbr::FileDescriptor Descriptor {
 020      get { return descriptor; }
 21    }
 22    private static pbr::FileDescriptor descriptor;
 23
 24    static UserDataReflection() {
 025      byte[] descriptorData = global::System.Convert.FromBase64String(
 26          string.Concat(
 27            "CidkZWNlbnRyYWxhbmQvY29tbW9uL3Nkay91c2VyX2RhdGEucHJvdG8SF2Rl",
 28            "Y2VudHJhbGFuZC5jb21tb24uc2RrIioKCVNuYXBzaG90cxIPCgdmYWNlMjU2",
 29            "GAEgASgJEgwKBGJvZHkYAiABKAkirAEKEUF2YXRhckZvclVzZXJEYXRhEhIK",
 30            "CmJvZHlfc2hhcGUYASABKAkSEgoKc2tpbl9jb2xvchgCIAEoCRISCgpoYWly",
 31            "X2NvbG9yGAMgASgJEhEKCWV5ZV9jb2xvchgEIAEoCRIRCgl3ZWFyYWJsZXMY",
 32            "BSADKAkSNQoJc25hcHNob3RzGAYgASgLMiIuZGVjZW50cmFsYW5kLmNvbW1v",
 33            "bi5zZGsuU25hcHNob3RzIsIBCghVc2VyRGF0YRIUCgxkaXNwbGF5X25hbWUY",
 34            "ASABKAkSFwoKcHVibGljX2tleRgCIAEoCUgAiAEBEhoKEmhhc19jb25uZWN0",
 35            "ZWRfd2ViMxgDIAEoCBIPCgd1c2VyX2lkGAQgASgJEg8KB3ZlcnNpb24YBSAB",
 36            "KAUSOgoGYXZhdGFyGAYgASgLMiouZGVjZW50cmFsYW5kLmNvbW1vbi5zZGsu",
 37            "QXZhdGFyRm9yVXNlckRhdGFCDQoLX3B1YmxpY19rZXlCFKoCEURDTC5FQ1ND",
 38            "b21wb25lbnRzYgZwcm90bzM="));
 039      descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
 40          new pbr::FileDescriptor[] { },
 41          new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] {
 42            new pbr::GeneratedClrTypeInfo(typeof(global::DCL.ECSComponents.Snapshots), global::DCL.ECSComponents.Snapsho
 43            new pbr::GeneratedClrTypeInfo(typeof(global::DCL.ECSComponents.AvatarForUserData), global::DCL.ECSComponents
 44            new pbr::GeneratedClrTypeInfo(typeof(global::DCL.ECSComponents.UserData), global::DCL.ECSComponents.UserData
 45          }));
 046    }
 47    #endregion
 48
 49  }
 50  #region Messages
 51  public sealed partial class Snapshots : pb::IMessage<Snapshots>
 52  #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 53      , pb::IBufferMessage
 54  #endif
 55  {
 56    private static readonly pb::MessageParser<Snapshots> _parser = new pb::MessageParser<Snapshots>(() => new Snapshots(
 57    private pb::UnknownFieldSet _unknownFields;
 58    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 59    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 60    public static pb::MessageParser<Snapshots> Parser { get { return _parser; } }
 61
 62    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 63    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 64    public static pbr::MessageDescriptor Descriptor {
 65      get { return global::DCL.ECSComponents.UserDataReflection.Descriptor.MessageTypes[0]; }
 66    }
 67
 68    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 69    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 70    pbr::MessageDescriptor pb::IMessage.Descriptor {
 71      get { return Descriptor; }
 72    }
 73
 74    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 75    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 76    public Snapshots() {
 77      OnConstruction();
 78    }
 79
 80    partial void OnConstruction();
 81
 82    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 83    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 84    public Snapshots(Snapshots other) : this() {
 85      face256_ = other.face256_;
 86      body_ = other.body_;
 87      _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
 88    }
 89
 90    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 91    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 92    public Snapshots Clone() {
 93      return new Snapshots(this);
 94    }
 95
 96    /// <summary>Field number for the "face256" field.</summary>
 97    public const int Face256FieldNumber = 1;
 98    private string face256_ = "";
 99    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 100    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 101    public string Face256 {
 102      get { return face256_; }
 103      set {
 104        face256_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
 105      }
 106    }
 107
 108    /// <summary>Field number for the "body" field.</summary>
 109    public const int BodyFieldNumber = 2;
 110    private string body_ = "";
 111    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 112    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 113    public string Body {
 114      get { return body_; }
 115      set {
 116        body_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
 117      }
 118    }
 119
 120    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 121    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 122    public override bool Equals(object other) {
 123      return Equals(other as Snapshots);
 124    }
 125
 126    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 127    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 128    public bool Equals(Snapshots other) {
 129      if (ReferenceEquals(other, null)) {
 130        return false;
 131      }
 132      if (ReferenceEquals(other, this)) {
 133        return true;
 134      }
 135      if (Face256 != other.Face256) return false;
 136      if (Body != other.Body) return false;
 137      return Equals(_unknownFields, other._unknownFields);
 138    }
 139
 140    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 141    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 142    public override int GetHashCode() {
 143      int hash = 1;
 144      if (Face256.Length != 0) hash ^= Face256.GetHashCode();
 145      if (Body.Length != 0) hash ^= Body.GetHashCode();
 146      if (_unknownFields != null) {
 147        hash ^= _unknownFields.GetHashCode();
 148      }
 149      return hash;
 150    }
 151
 152    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 153    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 154    public override string ToString() {
 155      return pb::JsonFormatter.ToDiagnosticString(this);
 156    }
 157
 158    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 159    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 160    public void WriteTo(pb::CodedOutputStream output) {
 161    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 162      output.WriteRawMessage(this);
 163    #else
 164      if (Face256.Length != 0) {
 165        output.WriteRawTag(10);
 166        output.WriteString(Face256);
 167      }
 168      if (Body.Length != 0) {
 169        output.WriteRawTag(18);
 170        output.WriteString(Body);
 171      }
 172      if (_unknownFields != null) {
 173        _unknownFields.WriteTo(output);
 174      }
 175    #endif
 176    }
 177
 178    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 179    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 180    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 181    void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
 182      if (Face256.Length != 0) {
 183        output.WriteRawTag(10);
 184        output.WriteString(Face256);
 185      }
 186      if (Body.Length != 0) {
 187        output.WriteRawTag(18);
 188        output.WriteString(Body);
 189      }
 190      if (_unknownFields != null) {
 191        _unknownFields.WriteTo(ref output);
 192      }
 193    }
 194    #endif
 195
 196    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 197    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 198    public int CalculateSize() {
 199      int size = 0;
 200      if (Face256.Length != 0) {
 201        size += 1 + pb::CodedOutputStream.ComputeStringSize(Face256);
 202      }
 203      if (Body.Length != 0) {
 204        size += 1 + pb::CodedOutputStream.ComputeStringSize(Body);
 205      }
 206      if (_unknownFields != null) {
 207        size += _unknownFields.CalculateSize();
 208      }
 209      return size;
 210    }
 211
 212    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 213    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 214    public void MergeFrom(Snapshots other) {
 215      if (other == null) {
 216        return;
 217      }
 218      if (other.Face256.Length != 0) {
 219        Face256 = other.Face256;
 220      }
 221      if (other.Body.Length != 0) {
 222        Body = other.Body;
 223      }
 224      _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 225    }
 226
 227    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 228    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 229    public void MergeFrom(pb::CodedInputStream input) {
 230    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 231      input.ReadRawMessage(this);
 232    #else
 233      uint tag;
 234      while ((tag = input.ReadTag()) != 0) {
 235        switch(tag) {
 236          default:
 237            _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
 238            break;
 239          case 10: {
 240            Face256 = input.ReadString();
 241            break;
 242          }
 243          case 18: {
 244            Body = input.ReadString();
 245            break;
 246          }
 247        }
 248      }
 249    #endif
 250    }
 251
 252    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 253    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 254    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 255    void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
 256      uint tag;
 257      while ((tag = input.ReadTag()) != 0) {
 258        switch(tag) {
 259          default:
 260            _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
 261            break;
 262          case 10: {
 263            Face256 = input.ReadString();
 264            break;
 265          }
 266          case 18: {
 267            Body = input.ReadString();
 268            break;
 269          }
 270        }
 271      }
 272    }
 273    #endif
 274
 275  }
 276
 277  public sealed partial class AvatarForUserData : pb::IMessage<AvatarForUserData>
 278  #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 279      , pb::IBufferMessage
 280  #endif
 281  {
 282    private static readonly pb::MessageParser<AvatarForUserData> _parser = new pb::MessageParser<AvatarForUserData>(() =
 283    private pb::UnknownFieldSet _unknownFields;
 284    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 285    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 286    public static pb::MessageParser<AvatarForUserData> Parser { get { return _parser; } }
 287
 288    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 289    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 290    public static pbr::MessageDescriptor Descriptor {
 291      get { return global::DCL.ECSComponents.UserDataReflection.Descriptor.MessageTypes[1]; }
 292    }
 293
 294    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 295    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 296    pbr::MessageDescriptor pb::IMessage.Descriptor {
 297      get { return Descriptor; }
 298    }
 299
 300    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 301    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 302    public AvatarForUserData() {
 303      OnConstruction();
 304    }
 305
 306    partial void OnConstruction();
 307
 308    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 309    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 310    public AvatarForUserData(AvatarForUserData other) : this() {
 311      bodyShape_ = other.bodyShape_;
 312      skinColor_ = other.skinColor_;
 313      hairColor_ = other.hairColor_;
 314      eyeColor_ = other.eyeColor_;
 315      wearables_ = other.wearables_.Clone();
 316      snapshots_ = other.snapshots_ != null ? other.snapshots_.Clone() : null;
 317      _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
 318    }
 319
 320    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 321    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 322    public AvatarForUserData Clone() {
 323      return new AvatarForUserData(this);
 324    }
 325
 326    /// <summary>Field number for the "body_shape" field.</summary>
 327    public const int BodyShapeFieldNumber = 1;
 328    private string bodyShape_ = "";
 329    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 330    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 331    public string BodyShape {
 332      get { return bodyShape_; }
 333      set {
 334        bodyShape_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
 335      }
 336    }
 337
 338    /// <summary>Field number for the "skin_color" field.</summary>
 339    public const int SkinColorFieldNumber = 2;
 340    private string skinColor_ = "";
 341    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 342    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 343    public string SkinColor {
 344      get { return skinColor_; }
 345      set {
 346        skinColor_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
 347      }
 348    }
 349
 350    /// <summary>Field number for the "hair_color" field.</summary>
 351    public const int HairColorFieldNumber = 3;
 352    private string hairColor_ = "";
 353    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 354    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 355    public string HairColor {
 356      get { return hairColor_; }
 357      set {
 358        hairColor_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
 359      }
 360    }
 361
 362    /// <summary>Field number for the "eye_color" field.</summary>
 363    public const int EyeColorFieldNumber = 4;
 364    private string eyeColor_ = "";
 365    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 366    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 367    public string EyeColor {
 368      get { return eyeColor_; }
 369      set {
 370        eyeColor_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
 371      }
 372    }
 373
 374    /// <summary>Field number for the "wearables" field.</summary>
 375    public const int WearablesFieldNumber = 5;
 376    private static readonly pb::FieldCodec<string> _repeated_wearables_codec
 377        = pb::FieldCodec.ForString(42);
 378    private readonly pbc::RepeatedField<string> wearables_ = new pbc::RepeatedField<string>();
 379    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 380    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 381    public pbc::RepeatedField<string> Wearables {
 382      get { return wearables_; }
 383    }
 384
 385    /// <summary>Field number for the "snapshots" field.</summary>
 386    public const int SnapshotsFieldNumber = 6;
 387    private global::DCL.ECSComponents.Snapshots snapshots_;
 388    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 389    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 390    public global::DCL.ECSComponents.Snapshots Snapshots {
 391      get { return snapshots_; }
 392      set {
 393        snapshots_ = value;
 394      }
 395    }
 396
 397    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 398    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 399    public override bool Equals(object other) {
 400      return Equals(other as AvatarForUserData);
 401    }
 402
 403    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 404    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 405    public bool Equals(AvatarForUserData other) {
 406      if (ReferenceEquals(other, null)) {
 407        return false;
 408      }
 409      if (ReferenceEquals(other, this)) {
 410        return true;
 411      }
 412      if (BodyShape != other.BodyShape) return false;
 413      if (SkinColor != other.SkinColor) return false;
 414      if (HairColor != other.HairColor) return false;
 415      if (EyeColor != other.EyeColor) return false;
 416      if(!wearables_.Equals(other.wearables_)) return false;
 417      if (!object.Equals(Snapshots, other.Snapshots)) return false;
 418      return Equals(_unknownFields, other._unknownFields);
 419    }
 420
 421    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 422    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 423    public override int GetHashCode() {
 424      int hash = 1;
 425      if (BodyShape.Length != 0) hash ^= BodyShape.GetHashCode();
 426      if (SkinColor.Length != 0) hash ^= SkinColor.GetHashCode();
 427      if (HairColor.Length != 0) hash ^= HairColor.GetHashCode();
 428      if (EyeColor.Length != 0) hash ^= EyeColor.GetHashCode();
 429      hash ^= wearables_.GetHashCode();
 430      if (snapshots_ != null) hash ^= Snapshots.GetHashCode();
 431      if (_unknownFields != null) {
 432        hash ^= _unknownFields.GetHashCode();
 433      }
 434      return hash;
 435    }
 436
 437    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 438    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 439    public override string ToString() {
 440      return pb::JsonFormatter.ToDiagnosticString(this);
 441    }
 442
 443    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 444    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 445    public void WriteTo(pb::CodedOutputStream output) {
 446    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 447      output.WriteRawMessage(this);
 448    #else
 449      if (BodyShape.Length != 0) {
 450        output.WriteRawTag(10);
 451        output.WriteString(BodyShape);
 452      }
 453      if (SkinColor.Length != 0) {
 454        output.WriteRawTag(18);
 455        output.WriteString(SkinColor);
 456      }
 457      if (HairColor.Length != 0) {
 458        output.WriteRawTag(26);
 459        output.WriteString(HairColor);
 460      }
 461      if (EyeColor.Length != 0) {
 462        output.WriteRawTag(34);
 463        output.WriteString(EyeColor);
 464      }
 465      wearables_.WriteTo(output, _repeated_wearables_codec);
 466      if (snapshots_ != null) {
 467        output.WriteRawTag(50);
 468        output.WriteMessage(Snapshots);
 469      }
 470      if (_unknownFields != null) {
 471        _unknownFields.WriteTo(output);
 472      }
 473    #endif
 474    }
 475
 476    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 477    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 478    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 479    void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
 480      if (BodyShape.Length != 0) {
 481        output.WriteRawTag(10);
 482        output.WriteString(BodyShape);
 483      }
 484      if (SkinColor.Length != 0) {
 485        output.WriteRawTag(18);
 486        output.WriteString(SkinColor);
 487      }
 488      if (HairColor.Length != 0) {
 489        output.WriteRawTag(26);
 490        output.WriteString(HairColor);
 491      }
 492      if (EyeColor.Length != 0) {
 493        output.WriteRawTag(34);
 494        output.WriteString(EyeColor);
 495      }
 496      wearables_.WriteTo(ref output, _repeated_wearables_codec);
 497      if (snapshots_ != null) {
 498        output.WriteRawTag(50);
 499        output.WriteMessage(Snapshots);
 500      }
 501      if (_unknownFields != null) {
 502        _unknownFields.WriteTo(ref output);
 503      }
 504    }
 505    #endif
 506
 507    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 508    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 509    public int CalculateSize() {
 510      int size = 0;
 511      if (BodyShape.Length != 0) {
 512        size += 1 + pb::CodedOutputStream.ComputeStringSize(BodyShape);
 513      }
 514      if (SkinColor.Length != 0) {
 515        size += 1 + pb::CodedOutputStream.ComputeStringSize(SkinColor);
 516      }
 517      if (HairColor.Length != 0) {
 518        size += 1 + pb::CodedOutputStream.ComputeStringSize(HairColor);
 519      }
 520      if (EyeColor.Length != 0) {
 521        size += 1 + pb::CodedOutputStream.ComputeStringSize(EyeColor);
 522      }
 523      size += wearables_.CalculateSize(_repeated_wearables_codec);
 524      if (snapshots_ != null) {
 525        size += 1 + pb::CodedOutputStream.ComputeMessageSize(Snapshots);
 526      }
 527      if (_unknownFields != null) {
 528        size += _unknownFields.CalculateSize();
 529      }
 530      return size;
 531    }
 532
 533    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 534    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 535    public void MergeFrom(AvatarForUserData other) {
 536      if (other == null) {
 537        return;
 538      }
 539      if (other.BodyShape.Length != 0) {
 540        BodyShape = other.BodyShape;
 541      }
 542      if (other.SkinColor.Length != 0) {
 543        SkinColor = other.SkinColor;
 544      }
 545      if (other.HairColor.Length != 0) {
 546        HairColor = other.HairColor;
 547      }
 548      if (other.EyeColor.Length != 0) {
 549        EyeColor = other.EyeColor;
 550      }
 551      wearables_.Add(other.wearables_);
 552      if (other.snapshots_ != null) {
 553        if (snapshots_ == null) {
 554          Snapshots = new global::DCL.ECSComponents.Snapshots();
 555        }
 556        Snapshots.MergeFrom(other.Snapshots);
 557      }
 558      _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 559    }
 560
 561    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 562    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 563    public void MergeFrom(pb::CodedInputStream input) {
 564    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 565      input.ReadRawMessage(this);
 566    #else
 567      uint tag;
 568      while ((tag = input.ReadTag()) != 0) {
 569        switch(tag) {
 570          default:
 571            _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
 572            break;
 573          case 10: {
 574            BodyShape = input.ReadString();
 575            break;
 576          }
 577          case 18: {
 578            SkinColor = input.ReadString();
 579            break;
 580          }
 581          case 26: {
 582            HairColor = input.ReadString();
 583            break;
 584          }
 585          case 34: {
 586            EyeColor = input.ReadString();
 587            break;
 588          }
 589          case 42: {
 590            wearables_.AddEntriesFrom(input, _repeated_wearables_codec);
 591            break;
 592          }
 593          case 50: {
 594            if (snapshots_ == null) {
 595              Snapshots = new global::DCL.ECSComponents.Snapshots();
 596            }
 597            input.ReadMessage(Snapshots);
 598            break;
 599          }
 600        }
 601      }
 602    #endif
 603    }
 604
 605    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 606    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 607    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 608    void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
 609      uint tag;
 610      while ((tag = input.ReadTag()) != 0) {
 611        switch(tag) {
 612          default:
 613            _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
 614            break;
 615          case 10: {
 616            BodyShape = input.ReadString();
 617            break;
 618          }
 619          case 18: {
 620            SkinColor = input.ReadString();
 621            break;
 622          }
 623          case 26: {
 624            HairColor = input.ReadString();
 625            break;
 626          }
 627          case 34: {
 628            EyeColor = input.ReadString();
 629            break;
 630          }
 631          case 42: {
 632            wearables_.AddEntriesFrom(ref input, _repeated_wearables_codec);
 633            break;
 634          }
 635          case 50: {
 636            if (snapshots_ == null) {
 637              Snapshots = new global::DCL.ECSComponents.Snapshots();
 638            }
 639            input.ReadMessage(Snapshots);
 640            break;
 641          }
 642        }
 643      }
 644    }
 645    #endif
 646
 647  }
 648
 649  public sealed partial class UserData : pb::IMessage<UserData>
 650  #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 651      , pb::IBufferMessage
 652  #endif
 653  {
 654    private static readonly pb::MessageParser<UserData> _parser = new pb::MessageParser<UserData>(() => new UserData());
 655    private pb::UnknownFieldSet _unknownFields;
 656    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 657    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 658    public static pb::MessageParser<UserData> Parser { get { return _parser; } }
 659
 660    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 661    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 662    public static pbr::MessageDescriptor Descriptor {
 663      get { return global::DCL.ECSComponents.UserDataReflection.Descriptor.MessageTypes[2]; }
 664    }
 665
 666    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 667    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 668    pbr::MessageDescriptor pb::IMessage.Descriptor {
 669      get { return Descriptor; }
 670    }
 671
 672    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 673    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 674    public UserData() {
 675      OnConstruction();
 676    }
 677
 678    partial void OnConstruction();
 679
 680    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 681    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 682    public UserData(UserData other) : this() {
 683      displayName_ = other.displayName_;
 684      publicKey_ = other.publicKey_;
 685      hasConnectedWeb3_ = other.hasConnectedWeb3_;
 686      userId_ = other.userId_;
 687      version_ = other.version_;
 688      avatar_ = other.avatar_ != null ? other.avatar_.Clone() : null;
 689      _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
 690    }
 691
 692    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 693    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 694    public UserData Clone() {
 695      return new UserData(this);
 696    }
 697
 698    /// <summary>Field number for the "display_name" field.</summary>
 699    public const int DisplayNameFieldNumber = 1;
 700    private string displayName_ = "";
 701    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 702    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 703    public string DisplayName {
 704      get { return displayName_; }
 705      set {
 706        displayName_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
 707      }
 708    }
 709
 710    /// <summary>Field number for the "public_key" field.</summary>
 711    public const int PublicKeyFieldNumber = 2;
 712    private string publicKey_;
 713    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 714    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 715    public string PublicKey {
 716      get { return publicKey_ ?? ""; }
 717      set {
 718        publicKey_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
 719      }
 720    }
 721    /// <summary>Gets whether the "public_key" field is set</summary>
 722    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 723    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 724    public bool HasPublicKey {
 725      get { return publicKey_ != null; }
 726    }
 727    /// <summary>Clears the value of the "public_key" field</summary>
 728    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 729    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 730    public void ClearPublicKey() {
 731      publicKey_ = null;
 732    }
 733
 734    /// <summary>Field number for the "has_connected_web3" field.</summary>
 735    public const int HasConnectedWeb3FieldNumber = 3;
 736    private bool hasConnectedWeb3_;
 737    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 738    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 739    public bool HasConnectedWeb3 {
 740      get { return hasConnectedWeb3_; }
 741      set {
 742        hasConnectedWeb3_ = value;
 743      }
 744    }
 745
 746    /// <summary>Field number for the "user_id" field.</summary>
 747    public const int UserIdFieldNumber = 4;
 748    private string userId_ = "";
 749    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 750    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 751    public string UserId {
 752      get { return userId_; }
 753      set {
 754        userId_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
 755      }
 756    }
 757
 758    /// <summary>Field number for the "version" field.</summary>
 759    public const int VersionFieldNumber = 5;
 760    private int version_;
 761    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 762    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 763    public int Version {
 764      get { return version_; }
 765      set {
 766        version_ = value;
 767      }
 768    }
 769
 770    /// <summary>Field number for the "avatar" field.</summary>
 771    public const int AvatarFieldNumber = 6;
 772    private global::DCL.ECSComponents.AvatarForUserData avatar_;
 773    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 774    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 775    public global::DCL.ECSComponents.AvatarForUserData Avatar {
 776      get { return avatar_; }
 777      set {
 778        avatar_ = value;
 779      }
 780    }
 781
 782    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 783    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 784    public override bool Equals(object other) {
 785      return Equals(other as UserData);
 786    }
 787
 788    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 789    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 790    public bool Equals(UserData other) {
 791      if (ReferenceEquals(other, null)) {
 792        return false;
 793      }
 794      if (ReferenceEquals(other, this)) {
 795        return true;
 796      }
 797      if (DisplayName != other.DisplayName) return false;
 798      if (PublicKey != other.PublicKey) return false;
 799      if (HasConnectedWeb3 != other.HasConnectedWeb3) return false;
 800      if (UserId != other.UserId) return false;
 801      if (Version != other.Version) return false;
 802      if (!object.Equals(Avatar, other.Avatar)) return false;
 803      return Equals(_unknownFields, other._unknownFields);
 804    }
 805
 806    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 807    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 808    public override int GetHashCode() {
 809      int hash = 1;
 810      if (DisplayName.Length != 0) hash ^= DisplayName.GetHashCode();
 811      if (HasPublicKey) hash ^= PublicKey.GetHashCode();
 812      if (HasConnectedWeb3 != false) hash ^= HasConnectedWeb3.GetHashCode();
 813      if (UserId.Length != 0) hash ^= UserId.GetHashCode();
 814      if (Version != 0) hash ^= Version.GetHashCode();
 815      if (avatar_ != null) hash ^= Avatar.GetHashCode();
 816      if (_unknownFields != null) {
 817        hash ^= _unknownFields.GetHashCode();
 818      }
 819      return hash;
 820    }
 821
 822    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 823    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 824    public override string ToString() {
 825      return pb::JsonFormatter.ToDiagnosticString(this);
 826    }
 827
 828    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 829    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 830    public void WriteTo(pb::CodedOutputStream output) {
 831    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 832      output.WriteRawMessage(this);
 833    #else
 834      if (DisplayName.Length != 0) {
 835        output.WriteRawTag(10);
 836        output.WriteString(DisplayName);
 837      }
 838      if (HasPublicKey) {
 839        output.WriteRawTag(18);
 840        output.WriteString(PublicKey);
 841      }
 842      if (HasConnectedWeb3 != false) {
 843        output.WriteRawTag(24);
 844        output.WriteBool(HasConnectedWeb3);
 845      }
 846      if (UserId.Length != 0) {
 847        output.WriteRawTag(34);
 848        output.WriteString(UserId);
 849      }
 850      if (Version != 0) {
 851        output.WriteRawTag(40);
 852        output.WriteInt32(Version);
 853      }
 854      if (avatar_ != null) {
 855        output.WriteRawTag(50);
 856        output.WriteMessage(Avatar);
 857      }
 858      if (_unknownFields != null) {
 859        _unknownFields.WriteTo(output);
 860      }
 861    #endif
 862    }
 863
 864    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 865    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 866    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 867    void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
 868      if (DisplayName.Length != 0) {
 869        output.WriteRawTag(10);
 870        output.WriteString(DisplayName);
 871      }
 872      if (HasPublicKey) {
 873        output.WriteRawTag(18);
 874        output.WriteString(PublicKey);
 875      }
 876      if (HasConnectedWeb3 != false) {
 877        output.WriteRawTag(24);
 878        output.WriteBool(HasConnectedWeb3);
 879      }
 880      if (UserId.Length != 0) {
 881        output.WriteRawTag(34);
 882        output.WriteString(UserId);
 883      }
 884      if (Version != 0) {
 885        output.WriteRawTag(40);
 886        output.WriteInt32(Version);
 887      }
 888      if (avatar_ != null) {
 889        output.WriteRawTag(50);
 890        output.WriteMessage(Avatar);
 891      }
 892      if (_unknownFields != null) {
 893        _unknownFields.WriteTo(ref output);
 894      }
 895    }
 896    #endif
 897
 898    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 899    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 900    public int CalculateSize() {
 901      int size = 0;
 902      if (DisplayName.Length != 0) {
 903        size += 1 + pb::CodedOutputStream.ComputeStringSize(DisplayName);
 904      }
 905      if (HasPublicKey) {
 906        size += 1 + pb::CodedOutputStream.ComputeStringSize(PublicKey);
 907      }
 908      if (HasConnectedWeb3 != false) {
 909        size += 1 + 1;
 910      }
 911      if (UserId.Length != 0) {
 912        size += 1 + pb::CodedOutputStream.ComputeStringSize(UserId);
 913      }
 914      if (Version != 0) {
 915        size += 1 + pb::CodedOutputStream.ComputeInt32Size(Version);
 916      }
 917      if (avatar_ != null) {
 918        size += 1 + pb::CodedOutputStream.ComputeMessageSize(Avatar);
 919      }
 920      if (_unknownFields != null) {
 921        size += _unknownFields.CalculateSize();
 922      }
 923      return size;
 924    }
 925
 926    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 927    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 928    public void MergeFrom(UserData other) {
 929      if (other == null) {
 930        return;
 931      }
 932      if (other.DisplayName.Length != 0) {
 933        DisplayName = other.DisplayName;
 934      }
 935      if (other.HasPublicKey) {
 936        PublicKey = other.PublicKey;
 937      }
 938      if (other.HasConnectedWeb3 != false) {
 939        HasConnectedWeb3 = other.HasConnectedWeb3;
 940      }
 941      if (other.UserId.Length != 0) {
 942        UserId = other.UserId;
 943      }
 944      if (other.Version != 0) {
 945        Version = other.Version;
 946      }
 947      if (other.avatar_ != null) {
 948        if (avatar_ == null) {
 949          Avatar = new global::DCL.ECSComponents.AvatarForUserData();
 950        }
 951        Avatar.MergeFrom(other.Avatar);
 952      }
 953      _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 954    }
 955
 956    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 957    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 958    public void MergeFrom(pb::CodedInputStream input) {
 959    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 960      input.ReadRawMessage(this);
 961    #else
 962      uint tag;
 963      while ((tag = input.ReadTag()) != 0) {
 964        switch(tag) {
 965          default:
 966            _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
 967            break;
 968          case 10: {
 969            DisplayName = input.ReadString();
 970            break;
 971          }
 972          case 18: {
 973            PublicKey = input.ReadString();
 974            break;
 975          }
 976          case 24: {
 977            HasConnectedWeb3 = input.ReadBool();
 978            break;
 979          }
 980          case 34: {
 981            UserId = input.ReadString();
 982            break;
 983          }
 984          case 40: {
 985            Version = input.ReadInt32();
 986            break;
 987          }
 988          case 50: {
 989            if (avatar_ == null) {
 990              Avatar = new global::DCL.ECSComponents.AvatarForUserData();
 991            }
 992            input.ReadMessage(Avatar);
 993            break;
 994          }
 995        }
 996      }
 997    #endif
 998    }
 999
 1000    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 1001    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 1002    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 1003    void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
 1004      uint tag;
 1005      while ((tag = input.ReadTag()) != 0) {
 1006        switch(tag) {
 1007          default:
 1008            _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
 1009            break;
 1010          case 10: {
 1011            DisplayName = input.ReadString();
 1012            break;
 1013          }
 1014          case 18: {
 1015            PublicKey = input.ReadString();
 1016            break;
 1017          }
 1018          case 24: {
 1019            HasConnectedWeb3 = input.ReadBool();
 1020            break;
 1021          }
 1022          case 34: {
 1023            UserId = input.ReadString();
 1024            break;
 1025          }
 1026          case 40: {
 1027            Version = input.ReadInt32();
 1028            break;
 1029          }
 1030          case 50: {
 1031            if (avatar_ == null) {
 1032              Avatar = new global::DCL.ECSComponents.AvatarForUserData();
 1033            }
 1034            input.ReadMessage(Avatar);
 1035            break;
 1036          }
 1037        }
 1038      }
 1039    }
 1040    #endif
 1041
 1042  }
 1043
 1044  #endregion
 1045
 1046}
 1047
 1048#endregion Designer generated code

Methods/Properties

Descriptor()
UserDataReflection()