< Summary

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

Metrics

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

File(s)

/tmp/workspace/unity-renderer/unity-renderer/Assets/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 {
 020      get { return descriptor; }
 21    }
 22    private static pbr::FileDescriptor descriptor;
 23
 24    static AvatarShapeReflection() {
 025      byte[] descriptorData = global::System.Convert.FromBase64String(
 26          string.Concat(
 27            "ChFBdmF0YXJTaGFwZS5wcm90bxIQZGVjZW50cmFsYW5kLmVjcxoTY29tbW9u",
 28            "L0NvbG9yMy5wcm90byK7AgoNUEJBdmF0YXJTaGFwZRIKCgJpZBgBIAEoCRIM",
 29            "CgRuYW1lGAIgASgJEhIKCmJvZHlfc2hhcGUYAyABKAkSGwoKc2tpbl9jb2xv",
 30            "chgEIAEoCzIHLkNvbG9yMxIbCgpoYWlyX2NvbG9yGAUgASgLMgcuQ29sb3Iz",
 31            "EhoKCWV5ZV9jb2xvchgGIAEoCzIHLkNvbG9yMxIRCgl3ZWFyYWJsZXMYByAD",
 32            "KAkSHQoVZXhwcmVzc2lvbl90cmlnZ2VyX2lkGAggASgJEiQKHGV4cHJlc3Np",
 33            "b25fdHJpZ2dlcl90aW1lc3RhbXAYCSABKAMSGgoSc3RpY2tlcl90cmlnZ2Vy",
 34            "X2lkGAogASgJEiEKGXN0aWNrZXJfdHJpZ2dlcl90aW1lc3RhbXAYCyABKAMS",
 35            "DwoHdGFsa2luZxgMIAEoCEIUqgIRRENMLkVDU0NvbXBvbmVudHNiBnByb3Rv",
 36            "Mw=="));
 037      descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
 38          new pbr::FileDescriptor[] { global::Color3Reflection.Descriptor, },
 39          new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] {
 40            new pbr::GeneratedClrTypeInfo(typeof(global::DCL.ECSComponents.PBAvatarShape), global::DCL.ECSComponents.PBA
 41          }));
 042    }
 43    #endregion
 44
 45  }
 46  #region Messages
 47  public sealed partial class PBAvatarShape : pb::IMessage<PBAvatarShape> {
 48    private static readonly pb::MessageParser<PBAvatarShape> _parser = new pb::MessageParser<PBAvatarShape>(() => new PB
 49    private pb::UnknownFieldSet _unknownFields;
 50    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 51    public static pb::MessageParser<PBAvatarShape> Parser { get { return _parser; } }
 52
 53    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 54    public static pbr::MessageDescriptor Descriptor {
 55      get { return global::DCL.ECSComponents.AvatarShapeReflection.Descriptor.MessageTypes[0]; }
 56    }
 57
 58    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 59    pbr::MessageDescriptor pb::IMessage.Descriptor {
 60      get { return Descriptor; }
 61    }
 62
 63    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 64    public PBAvatarShape() {
 65      OnConstruction();
 66    }
 67
 68    partial void OnConstruction();
 69
 70    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 71    public PBAvatarShape(PBAvatarShape other) : this() {
 72      id_ = other.id_;
 73      name_ = other.name_;
 74      bodyShape_ = other.bodyShape_;
 75      skinColor_ = other.skinColor_ != null ? other.skinColor_.Clone() : null;
 76      hairColor_ = other.hairColor_ != null ? other.hairColor_.Clone() : null;
 77      eyeColor_ = other.eyeColor_ != null ? other.eyeColor_.Clone() : null;
 78      wearables_ = other.wearables_.Clone();
 79      expressionTriggerId_ = other.expressionTriggerId_;
 80      expressionTriggerTimestamp_ = other.expressionTriggerTimestamp_;
 81      stickerTriggerId_ = other.stickerTriggerId_;
 82      stickerTriggerTimestamp_ = other.stickerTriggerTimestamp_;
 83      talking_ = other.talking_;
 84      _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
 85    }
 86
 87    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 88    public PBAvatarShape Clone() {
 89      return new PBAvatarShape(this);
 90    }
 91
 92    /// <summary>Field number for the "id" field.</summary>
 93    public const int IdFieldNumber = 1;
 94    private string id_ = "";
 95    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 96    public string Id {
 97      get { return id_; }
 98      set {
 99        id_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
 100      }
 101    }
 102
 103    /// <summary>Field number for the "name" field.</summary>
 104    public const int NameFieldNumber = 2;
 105    private string name_ = "";
 106    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 107    public string Name {
 108      get { return name_; }
 109      set {
 110        name_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
 111      }
 112    }
 113
 114    /// <summary>Field number for the "body_shape" field.</summary>
 115    public const int BodyShapeFieldNumber = 3;
 116    private string bodyShape_ = "";
 117    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 118    public string BodyShape {
 119      get { return bodyShape_; }
 120      set {
 121        bodyShape_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
 122      }
 123    }
 124
 125    /// <summary>Field number for the "skin_color" field.</summary>
 126    public const int SkinColorFieldNumber = 4;
 127    private global::Color3 skinColor_;
 128    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 129    public global::Color3 SkinColor {
 130      get { return skinColor_; }
 131      set {
 132        skinColor_ = value;
 133      }
 134    }
 135
 136    /// <summary>Field number for the "hair_color" field.</summary>
 137    public const int HairColorFieldNumber = 5;
 138    private global::Color3 hairColor_;
 139    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 140    public global::Color3 HairColor {
 141      get { return hairColor_; }
 142      set {
 143        hairColor_ = value;
 144      }
 145    }
 146
 147    /// <summary>Field number for the "eye_color" field.</summary>
 148    public const int EyeColorFieldNumber = 6;
 149    private global::Color3 eyeColor_;
 150    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 151    public global::Color3 EyeColor {
 152      get { return eyeColor_; }
 153      set {
 154        eyeColor_ = value;
 155      }
 156    }
 157
 158    /// <summary>Field number for the "wearables" field.</summary>
 159    public const int WearablesFieldNumber = 7;
 160    private static readonly pb::FieldCodec<string> _repeated_wearables_codec
 161        = pb::FieldCodec.ForString(58);
 162    private readonly pbc::RepeatedField<string> wearables_ = new pbc::RepeatedField<string>();
 163    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 164    public pbc::RepeatedField<string> Wearables {
 165      get { return wearables_; }
 166    }
 167
 168    /// <summary>Field number for the "expression_trigger_id" field.</summary>
 169    public const int ExpressionTriggerIdFieldNumber = 8;
 170    private string expressionTriggerId_ = "";
 171    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 172    public string ExpressionTriggerId {
 173      get { return expressionTriggerId_; }
 174      set {
 175        expressionTriggerId_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
 176      }
 177    }
 178
 179    /// <summary>Field number for the "expression_trigger_timestamp" field.</summary>
 180    public const int ExpressionTriggerTimestampFieldNumber = 9;
 181    private long expressionTriggerTimestamp_;
 182    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 183    public long ExpressionTriggerTimestamp {
 184      get { return expressionTriggerTimestamp_; }
 185      set {
 186        expressionTriggerTimestamp_ = value;
 187      }
 188    }
 189
 190    /// <summary>Field number for the "sticker_trigger_id" field.</summary>
 191    public const int StickerTriggerIdFieldNumber = 10;
 192    private string stickerTriggerId_ = "";
 193    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 194    public string StickerTriggerId {
 195      get { return stickerTriggerId_; }
 196      set {
 197        stickerTriggerId_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
 198      }
 199    }
 200
 201    /// <summary>Field number for the "sticker_trigger_timestamp" field.</summary>
 202    public const int StickerTriggerTimestampFieldNumber = 11;
 203    private long stickerTriggerTimestamp_;
 204    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 205    public long StickerTriggerTimestamp {
 206      get { return stickerTriggerTimestamp_; }
 207      set {
 208        stickerTriggerTimestamp_ = value;
 209      }
 210    }
 211
 212    /// <summary>Field number for the "talking" field.</summary>
 213    public const int TalkingFieldNumber = 12;
 214    private bool talking_;
 215    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 216    public bool Talking {
 217      get { return talking_; }
 218      set {
 219        talking_ = value;
 220      }
 221    }
 222
 223    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 224    public override bool Equals(object other) {
 225      return Equals(other as PBAvatarShape);
 226    }
 227
 228    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 229    public bool Equals(PBAvatarShape other) {
 230      if (ReferenceEquals(other, null)) {
 231        return false;
 232      }
 233      if (ReferenceEquals(other, this)) {
 234        return true;
 235      }
 236      if (Id != other.Id) return false;
 237      if (Name != other.Name) return false;
 238      if (BodyShape != other.BodyShape) return false;
 239      if (!object.Equals(SkinColor, other.SkinColor)) return false;
 240      if (!object.Equals(HairColor, other.HairColor)) return false;
 241      if (!object.Equals(EyeColor, other.EyeColor)) return false;
 242      if(!wearables_.Equals(other.wearables_)) return false;
 243      if (ExpressionTriggerId != other.ExpressionTriggerId) return false;
 244      if (ExpressionTriggerTimestamp != other.ExpressionTriggerTimestamp) return false;
 245      if (StickerTriggerId != other.StickerTriggerId) return false;
 246      if (StickerTriggerTimestamp != other.StickerTriggerTimestamp) return false;
 247      if (Talking != other.Talking) return false;
 248      return Equals(_unknownFields, other._unknownFields);
 249    }
 250
 251    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 252    public override int GetHashCode() {
 253      int hash = 1;
 254      if (Id.Length != 0) hash ^= Id.GetHashCode();
 255      if (Name.Length != 0) hash ^= Name.GetHashCode();
 256      if (BodyShape.Length != 0) hash ^= BodyShape.GetHashCode();
 257      if (skinColor_ != null) hash ^= SkinColor.GetHashCode();
 258      if (hairColor_ != null) hash ^= HairColor.GetHashCode();
 259      if (eyeColor_ != null) hash ^= EyeColor.GetHashCode();
 260      hash ^= wearables_.GetHashCode();
 261      if (ExpressionTriggerId.Length != 0) hash ^= ExpressionTriggerId.GetHashCode();
 262      if (ExpressionTriggerTimestamp != 0L) hash ^= ExpressionTriggerTimestamp.GetHashCode();
 263      if (StickerTriggerId.Length != 0) hash ^= StickerTriggerId.GetHashCode();
 264      if (StickerTriggerTimestamp != 0L) hash ^= StickerTriggerTimestamp.GetHashCode();
 265      if (Talking != false) hash ^= Talking.GetHashCode();
 266      if (_unknownFields != null) {
 267        hash ^= _unknownFields.GetHashCode();
 268      }
 269      return hash;
 270    }
 271
 272    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 273    public override string ToString() {
 274      return pb::JsonFormatter.ToDiagnosticString(this);
 275    }
 276
 277    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 278    public void WriteTo(pb::CodedOutputStream output) {
 279      if (Id.Length != 0) {
 280        output.WriteRawTag(10);
 281        output.WriteString(Id);
 282      }
 283      if (Name.Length != 0) {
 284        output.WriteRawTag(18);
 285        output.WriteString(Name);
 286      }
 287      if (BodyShape.Length != 0) {
 288        output.WriteRawTag(26);
 289        output.WriteString(BodyShape);
 290      }
 291      if (skinColor_ != null) {
 292        output.WriteRawTag(34);
 293        output.WriteMessage(SkinColor);
 294      }
 295      if (hairColor_ != null) {
 296        output.WriteRawTag(42);
 297        output.WriteMessage(HairColor);
 298      }
 299      if (eyeColor_ != null) {
 300        output.WriteRawTag(50);
 301        output.WriteMessage(EyeColor);
 302      }
 303      wearables_.WriteTo(output, _repeated_wearables_codec);
 304      if (ExpressionTriggerId.Length != 0) {
 305        output.WriteRawTag(66);
 306        output.WriteString(ExpressionTriggerId);
 307      }
 308      if (ExpressionTriggerTimestamp != 0L) {
 309        output.WriteRawTag(72);
 310        output.WriteInt64(ExpressionTriggerTimestamp);
 311      }
 312      if (StickerTriggerId.Length != 0) {
 313        output.WriteRawTag(82);
 314        output.WriteString(StickerTriggerId);
 315      }
 316      if (StickerTriggerTimestamp != 0L) {
 317        output.WriteRawTag(88);
 318        output.WriteInt64(StickerTriggerTimestamp);
 319      }
 320      if (Talking != false) {
 321        output.WriteRawTag(96);
 322        output.WriteBool(Talking);
 323      }
 324      if (_unknownFields != null) {
 325        _unknownFields.WriteTo(output);
 326      }
 327    }
 328
 329    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 330    public int CalculateSize() {
 331      int size = 0;
 332      if (Id.Length != 0) {
 333        size += 1 + pb::CodedOutputStream.ComputeStringSize(Id);
 334      }
 335      if (Name.Length != 0) {
 336        size += 1 + pb::CodedOutputStream.ComputeStringSize(Name);
 337      }
 338      if (BodyShape.Length != 0) {
 339        size += 1 + pb::CodedOutputStream.ComputeStringSize(BodyShape);
 340      }
 341      if (skinColor_ != null) {
 342        size += 1 + pb::CodedOutputStream.ComputeMessageSize(SkinColor);
 343      }
 344      if (hairColor_ != null) {
 345        size += 1 + pb::CodedOutputStream.ComputeMessageSize(HairColor);
 346      }
 347      if (eyeColor_ != null) {
 348        size += 1 + pb::CodedOutputStream.ComputeMessageSize(EyeColor);
 349      }
 350      size += wearables_.CalculateSize(_repeated_wearables_codec);
 351      if (ExpressionTriggerId.Length != 0) {
 352        size += 1 + pb::CodedOutputStream.ComputeStringSize(ExpressionTriggerId);
 353      }
 354      if (ExpressionTriggerTimestamp != 0L) {
 355        size += 1 + pb::CodedOutputStream.ComputeInt64Size(ExpressionTriggerTimestamp);
 356      }
 357      if (StickerTriggerId.Length != 0) {
 358        size += 1 + pb::CodedOutputStream.ComputeStringSize(StickerTriggerId);
 359      }
 360      if (StickerTriggerTimestamp != 0L) {
 361        size += 1 + pb::CodedOutputStream.ComputeInt64Size(StickerTriggerTimestamp);
 362      }
 363      if (Talking != false) {
 364        size += 1 + 1;
 365      }
 366      if (_unknownFields != null) {
 367        size += _unknownFields.CalculateSize();
 368      }
 369      return size;
 370    }
 371
 372    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 373    public void MergeFrom(PBAvatarShape other) {
 374      if (other == null) {
 375        return;
 376      }
 377      if (other.Id.Length != 0) {
 378        Id = other.Id;
 379      }
 380      if (other.Name.Length != 0) {
 381        Name = other.Name;
 382      }
 383      if (other.BodyShape.Length != 0) {
 384        BodyShape = other.BodyShape;
 385      }
 386      if (other.skinColor_ != null) {
 387        if (skinColor_ == null) {
 388          SkinColor = new global::Color3();
 389        }
 390        SkinColor.MergeFrom(other.SkinColor);
 391      }
 392      if (other.hairColor_ != null) {
 393        if (hairColor_ == null) {
 394          HairColor = new global::Color3();
 395        }
 396        HairColor.MergeFrom(other.HairColor);
 397      }
 398      if (other.eyeColor_ != null) {
 399        if (eyeColor_ == null) {
 400          EyeColor = new global::Color3();
 401        }
 402        EyeColor.MergeFrom(other.EyeColor);
 403      }
 404      wearables_.Add(other.wearables_);
 405      if (other.ExpressionTriggerId.Length != 0) {
 406        ExpressionTriggerId = other.ExpressionTriggerId;
 407      }
 408      if (other.ExpressionTriggerTimestamp != 0L) {
 409        ExpressionTriggerTimestamp = other.ExpressionTriggerTimestamp;
 410      }
 411      if (other.StickerTriggerId.Length != 0) {
 412        StickerTriggerId = other.StickerTriggerId;
 413      }
 414      if (other.StickerTriggerTimestamp != 0L) {
 415        StickerTriggerTimestamp = other.StickerTriggerTimestamp;
 416      }
 417      if (other.Talking != false) {
 418        Talking = other.Talking;
 419      }
 420      _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 421    }
 422
 423    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 424    public void MergeFrom(pb::CodedInputStream input) {
 425      uint tag;
 426      while ((tag = input.ReadTag()) != 0) {
 427        switch(tag) {
 428          default:
 429            _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
 430            break;
 431          case 10: {
 432            Id = input.ReadString();
 433            break;
 434          }
 435          case 18: {
 436            Name = input.ReadString();
 437            break;
 438          }
 439          case 26: {
 440            BodyShape = input.ReadString();
 441            break;
 442          }
 443          case 34: {
 444            if (skinColor_ == null) {
 445              SkinColor = new global::Color3();
 446            }
 447            input.ReadMessage(SkinColor);
 448            break;
 449          }
 450          case 42: {
 451            if (hairColor_ == null) {
 452              HairColor = new global::Color3();
 453            }
 454            input.ReadMessage(HairColor);
 455            break;
 456          }
 457          case 50: {
 458            if (eyeColor_ == null) {
 459              EyeColor = new global::Color3();
 460            }
 461            input.ReadMessage(EyeColor);
 462            break;
 463          }
 464          case 58: {
 465            wearables_.AddEntriesFrom(input, _repeated_wearables_codec);
 466            break;
 467          }
 468          case 66: {
 469            ExpressionTriggerId = input.ReadString();
 470            break;
 471          }
 472          case 72: {
 473            ExpressionTriggerTimestamp = input.ReadInt64();
 474            break;
 475          }
 476          case 82: {
 477            StickerTriggerId = input.ReadString();
 478            break;
 479          }
 480          case 88: {
 481            StickerTriggerTimestamp = input.ReadInt64();
 482            break;
 483          }
 484          case 96: {
 485            Talking = input.ReadBool();
 486            break;
 487          }
 488        }
 489      }
 490    }
 491
 492  }
 493
 494  #endregion
 495
 496}
 497
 498#endregion Designer generated code