< Summary

Class:DCL.ECSComponents.PBAvatarShape
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:228
Coverable lines:228
Total lines:498
Line coverage:0% (0 of 228)
Covered branches:0
Total branches:0

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%
Equals(...)0%2100%
Equals(...)0%2401500%
GetHashCode()0%1821300%
ToString()0%2100%
WriteTo(...)0%1821300%
CalculateSize()0%1821300%
MergeFrom(...)0%2721600%
MergeFrom(...)0%4202000%

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            "L0NvbG9yMy5wcm90byK7AgoNUEJBdmF0YXJTaGFwZRIKCgJpZBgBIAEoCRIM",
 29            "CgRuYW1lGAIgASgJEhIKCmJvZHlfc2hhcGUYAyABKAkSGwoKc2tpbl9jb2xv",
 30            "chgEIAEoCzIHLkNvbG9yMxIbCgpoYWlyX2NvbG9yGAUgASgLMgcuQ29sb3Iz",
 31            "EhoKCWV5ZV9jb2xvchgGIAEoCzIHLkNvbG9yMxIRCgl3ZWFyYWJsZXMYByAD",
 32            "KAkSHQoVZXhwcmVzc2lvbl90cmlnZ2VyX2lkGAggASgJEiQKHGV4cHJlc3Np",
 33            "b25fdHJpZ2dlcl90aW1lc3RhbXAYCSABKAMSGgoSc3RpY2tlcl90cmlnZ2Vy",
 34            "X2lkGAogASgJEiEKGXN0aWNrZXJfdHJpZ2dlcl90aW1lc3RhbXAYCyABKAMS",
 35            "DwoHdGFsa2luZxgMIAEoCEIUqgIRRENMLkVDU0NvbXBvbmVudHNiBnByb3Rv",
 36            "Mw=="));
 37      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          }));
 42    }
 43    #endregion
 44
 45  }
 46  #region Messages
 47  public sealed partial class PBAvatarShape : pb::IMessage<PBAvatarShape> {
 048    private static readonly pb::MessageParser<PBAvatarShape> _parser = new pb::MessageParser<PBAvatarShape>(() => new PB
 49    private pb::UnknownFieldSet _unknownFields;
 50    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 051    public static pb::MessageParser<PBAvatarShape> Parser { get { return _parser; } }
 52
 53    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 54    public static pbr::MessageDescriptor Descriptor {
 055      get { return global::DCL.ECSComponents.AvatarShapeReflection.Descriptor.MessageTypes[0]; }
 56    }
 57
 58    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 59    pbr::MessageDescriptor pb::IMessage.Descriptor {
 060      get { return Descriptor; }
 61    }
 62
 63    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 064    public PBAvatarShape() {
 65      OnConstruction();
 066    }
 67
 68    partial void OnConstruction();
 69
 70    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 071    public PBAvatarShape(PBAvatarShape other) : this() {
 072      id_ = other.id_;
 073      name_ = other.name_;
 074      bodyShape_ = other.bodyShape_;
 075      skinColor_ = other.skinColor_ != null ? other.skinColor_.Clone() : null;
 076      hairColor_ = other.hairColor_ != null ? other.hairColor_.Clone() : null;
 077      eyeColor_ = other.eyeColor_ != null ? other.eyeColor_.Clone() : null;
 078      wearables_ = other.wearables_.Clone();
 079      expressionTriggerId_ = other.expressionTriggerId_;
 080      expressionTriggerTimestamp_ = other.expressionTriggerTimestamp_;
 081      stickerTriggerId_ = other.stickerTriggerId_;
 082      stickerTriggerTimestamp_ = other.stickerTriggerTimestamp_;
 083      talking_ = other.talking_;
 084      _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
 085    }
 86
 87    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 88    public PBAvatarShape Clone() {
 089      return new PBAvatarShape(this);
 90    }
 91
 92    /// <summary>Field number for the "id" field.</summary>
 93    public const int IdFieldNumber = 1;
 094    private string id_ = "";
 95    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 96    public string Id {
 097      get { return id_; }
 98      set {
 099        id_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
 0100      }
 101    }
 102
 103    /// <summary>Field number for the "name" field.</summary>
 104    public const int NameFieldNumber = 2;
 0105    private string name_ = "";
 106    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 107    public string Name {
 0108      get { return name_; }
 109      set {
 0110        name_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
 0111      }
 112    }
 113
 114    /// <summary>Field number for the "body_shape" field.</summary>
 115    public const int BodyShapeFieldNumber = 3;
 0116    private string bodyShape_ = "";
 117    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 118    public string BodyShape {
 0119      get { return bodyShape_; }
 120      set {
 0121        bodyShape_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
 0122      }
 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 {
 0130      get { return skinColor_; }
 131      set {
 0132        skinColor_ = value;
 0133      }
 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 {
 0141      get { return hairColor_; }
 142      set {
 0143        hairColor_ = value;
 0144      }
 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 {
 0152      get { return eyeColor_; }
 153      set {
 0154        eyeColor_ = value;
 0155      }
 156    }
 157
 158    /// <summary>Field number for the "wearables" field.</summary>
 159    public const int WearablesFieldNumber = 7;
 0160    private static readonly pb::FieldCodec<string> _repeated_wearables_codec
 161        = pb::FieldCodec.ForString(58);
 0162    private readonly pbc::RepeatedField<string> wearables_ = new pbc::RepeatedField<string>();
 163    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 164    public pbc::RepeatedField<string> Wearables {
 0165      get { return wearables_; }
 166    }
 167
 168    /// <summary>Field number for the "expression_trigger_id" field.</summary>
 169    public const int ExpressionTriggerIdFieldNumber = 8;
 0170    private string expressionTriggerId_ = "";
 171    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 172    public string ExpressionTriggerId {
 0173      get { return expressionTriggerId_; }
 174      set {
 0175        expressionTriggerId_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
 0176      }
 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 {
 0184      get { return expressionTriggerTimestamp_; }
 185      set {
 0186        expressionTriggerTimestamp_ = value;
 0187      }
 188    }
 189
 190    /// <summary>Field number for the "sticker_trigger_id" field.</summary>
 191    public const int StickerTriggerIdFieldNumber = 10;
 0192    private string stickerTriggerId_ = "";
 193    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 194    public string StickerTriggerId {
 0195      get { return stickerTriggerId_; }
 196      set {
 0197        stickerTriggerId_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
 0198      }
 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 {
 0206      get { return stickerTriggerTimestamp_; }
 207      set {
 0208        stickerTriggerTimestamp_ = value;
 0209      }
 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 {
 0217      get { return talking_; }
 218      set {
 0219        talking_ = value;
 0220      }
 221    }
 222
 223    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 224    public override bool Equals(object other) {
 0225      return Equals(other as PBAvatarShape);
 226    }
 227
 228    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 229    public bool Equals(PBAvatarShape other) {
 0230      if (ReferenceEquals(other, null)) {
 0231        return false;
 232      }
 0233      if (ReferenceEquals(other, this)) {
 0234        return true;
 235      }
 0236      if (Id != other.Id) return false;
 0237      if (Name != other.Name) return false;
 0238      if (BodyShape != other.BodyShape) return false;
 0239      if (!object.Equals(SkinColor, other.SkinColor)) return false;
 0240      if (!object.Equals(HairColor, other.HairColor)) return false;
 0241      if (!object.Equals(EyeColor, other.EyeColor)) return false;
 0242      if(!wearables_.Equals(other.wearables_)) return false;
 0243      if (ExpressionTriggerId != other.ExpressionTriggerId) return false;
 0244      if (ExpressionTriggerTimestamp != other.ExpressionTriggerTimestamp) return false;
 0245      if (StickerTriggerId != other.StickerTriggerId) return false;
 0246      if (StickerTriggerTimestamp != other.StickerTriggerTimestamp) return false;
 0247      if (Talking != other.Talking) return false;
 0248      return Equals(_unknownFields, other._unknownFields);
 249    }
 250
 251    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 252    public override int GetHashCode() {
 0253      int hash = 1;
 0254      if (Id.Length != 0) hash ^= Id.GetHashCode();
 0255      if (Name.Length != 0) hash ^= Name.GetHashCode();
 0256      if (BodyShape.Length != 0) hash ^= BodyShape.GetHashCode();
 0257      if (skinColor_ != null) hash ^= SkinColor.GetHashCode();
 0258      if (hairColor_ != null) hash ^= HairColor.GetHashCode();
 0259      if (eyeColor_ != null) hash ^= EyeColor.GetHashCode();
 0260      hash ^= wearables_.GetHashCode();
 0261      if (ExpressionTriggerId.Length != 0) hash ^= ExpressionTriggerId.GetHashCode();
 0262      if (ExpressionTriggerTimestamp != 0L) hash ^= ExpressionTriggerTimestamp.GetHashCode();
 0263      if (StickerTriggerId.Length != 0) hash ^= StickerTriggerId.GetHashCode();
 0264      if (StickerTriggerTimestamp != 0L) hash ^= StickerTriggerTimestamp.GetHashCode();
 0265      if (Talking != false) hash ^= Talking.GetHashCode();
 0266      if (_unknownFields != null) {
 0267        hash ^= _unknownFields.GetHashCode();
 268      }
 0269      return hash;
 270    }
 271
 272    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 273    public override string ToString() {
 0274      return pb::JsonFormatter.ToDiagnosticString(this);
 275    }
 276
 277    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 278    public void WriteTo(pb::CodedOutputStream output) {
 0279      if (Id.Length != 0) {
 0280        output.WriteRawTag(10);
 0281        output.WriteString(Id);
 282      }
 0283      if (Name.Length != 0) {
 0284        output.WriteRawTag(18);
 0285        output.WriteString(Name);
 286      }
 0287      if (BodyShape.Length != 0) {
 0288        output.WriteRawTag(26);
 0289        output.WriteString(BodyShape);
 290      }
 0291      if (skinColor_ != null) {
 0292        output.WriteRawTag(34);
 0293        output.WriteMessage(SkinColor);
 294      }
 0295      if (hairColor_ != null) {
 0296        output.WriteRawTag(42);
 0297        output.WriteMessage(HairColor);
 298      }
 0299      if (eyeColor_ != null) {
 0300        output.WriteRawTag(50);
 0301        output.WriteMessage(EyeColor);
 302      }
 0303      wearables_.WriteTo(output, _repeated_wearables_codec);
 0304      if (ExpressionTriggerId.Length != 0) {
 0305        output.WriteRawTag(66);
 0306        output.WriteString(ExpressionTriggerId);
 307      }
 0308      if (ExpressionTriggerTimestamp != 0L) {
 0309        output.WriteRawTag(72);
 0310        output.WriteInt64(ExpressionTriggerTimestamp);
 311      }
 0312      if (StickerTriggerId.Length != 0) {
 0313        output.WriteRawTag(82);
 0314        output.WriteString(StickerTriggerId);
 315      }
 0316      if (StickerTriggerTimestamp != 0L) {
 0317        output.WriteRawTag(88);
 0318        output.WriteInt64(StickerTriggerTimestamp);
 319      }
 0320      if (Talking != false) {
 0321        output.WriteRawTag(96);
 0322        output.WriteBool(Talking);
 323      }
 0324      if (_unknownFields != null) {
 0325        _unknownFields.WriteTo(output);
 326      }
 0327    }
 328
 329    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 330    public int CalculateSize() {
 0331      int size = 0;
 0332      if (Id.Length != 0) {
 0333        size += 1 + pb::CodedOutputStream.ComputeStringSize(Id);
 334      }
 0335      if (Name.Length != 0) {
 0336        size += 1 + pb::CodedOutputStream.ComputeStringSize(Name);
 337      }
 0338      if (BodyShape.Length != 0) {
 0339        size += 1 + pb::CodedOutputStream.ComputeStringSize(BodyShape);
 340      }
 0341      if (skinColor_ != null) {
 0342        size += 1 + pb::CodedOutputStream.ComputeMessageSize(SkinColor);
 343      }
 0344      if (hairColor_ != null) {
 0345        size += 1 + pb::CodedOutputStream.ComputeMessageSize(HairColor);
 346      }
 0347      if (eyeColor_ != null) {
 0348        size += 1 + pb::CodedOutputStream.ComputeMessageSize(EyeColor);
 349      }
 0350      size += wearables_.CalculateSize(_repeated_wearables_codec);
 0351      if (ExpressionTriggerId.Length != 0) {
 0352        size += 1 + pb::CodedOutputStream.ComputeStringSize(ExpressionTriggerId);
 353      }
 0354      if (ExpressionTriggerTimestamp != 0L) {
 0355        size += 1 + pb::CodedOutputStream.ComputeInt64Size(ExpressionTriggerTimestamp);
 356      }
 0357      if (StickerTriggerId.Length != 0) {
 0358        size += 1 + pb::CodedOutputStream.ComputeStringSize(StickerTriggerId);
 359      }
 0360      if (StickerTriggerTimestamp != 0L) {
 0361        size += 1 + pb::CodedOutputStream.ComputeInt64Size(StickerTriggerTimestamp);
 362      }
 0363      if (Talking != false) {
 0364        size += 1 + 1;
 365      }
 0366      if (_unknownFields != null) {
 0367        size += _unknownFields.CalculateSize();
 368      }
 0369      return size;
 370    }
 371
 372    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 373    public void MergeFrom(PBAvatarShape other) {
 0374      if (other == null) {
 0375        return;
 376      }
 0377      if (other.Id.Length != 0) {
 0378        Id = other.Id;
 379      }
 0380      if (other.Name.Length != 0) {
 0381        Name = other.Name;
 382      }
 0383      if (other.BodyShape.Length != 0) {
 0384        BodyShape = other.BodyShape;
 385      }
 0386      if (other.skinColor_ != null) {
 0387        if (skinColor_ == null) {
 0388          SkinColor = new global::Color3();
 389        }
 0390        SkinColor.MergeFrom(other.SkinColor);
 391      }
 0392      if (other.hairColor_ != null) {
 0393        if (hairColor_ == null) {
 0394          HairColor = new global::Color3();
 395        }
 0396        HairColor.MergeFrom(other.HairColor);
 397      }
 0398      if (other.eyeColor_ != null) {
 0399        if (eyeColor_ == null) {
 0400          EyeColor = new global::Color3();
 401        }
 0402        EyeColor.MergeFrom(other.EyeColor);
 403      }
 0404      wearables_.Add(other.wearables_);
 0405      if (other.ExpressionTriggerId.Length != 0) {
 0406        ExpressionTriggerId = other.ExpressionTriggerId;
 407      }
 0408      if (other.ExpressionTriggerTimestamp != 0L) {
 0409        ExpressionTriggerTimestamp = other.ExpressionTriggerTimestamp;
 410      }
 0411      if (other.StickerTriggerId.Length != 0) {
 0412        StickerTriggerId = other.StickerTriggerId;
 413      }
 0414      if (other.StickerTriggerTimestamp != 0L) {
 0415        StickerTriggerTimestamp = other.StickerTriggerTimestamp;
 416      }
 0417      if (other.Talking != false) {
 0418        Talking = other.Talking;
 419      }
 0420      _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 0421    }
 422
 423    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 424    public void MergeFrom(pb::CodedInputStream input) {
 425      uint tag;
 0426      while ((tag = input.ReadTag()) != 0) {
 427        switch(tag) {
 428          default:
 0429            _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
 0430            break;
 431          case 10: {
 0432            Id = input.ReadString();
 0433            break;
 434          }
 435          case 18: {
 0436            Name = input.ReadString();
 0437            break;
 438          }
 439          case 26: {
 0440            BodyShape = input.ReadString();
 0441            break;
 442          }
 443          case 34: {
 0444            if (skinColor_ == null) {
 0445              SkinColor = new global::Color3();
 446            }
 0447            input.ReadMessage(SkinColor);
 0448            break;
 449          }
 450          case 42: {
 0451            if (hairColor_ == null) {
 0452              HairColor = new global::Color3();
 453            }
 0454            input.ReadMessage(HairColor);
 0455            break;
 456          }
 457          case 50: {
 0458            if (eyeColor_ == null) {
 0459              EyeColor = new global::Color3();
 460            }
 0461            input.ReadMessage(EyeColor);
 0462            break;
 463          }
 464          case 58: {
 0465            wearables_.AddEntriesFrom(input, _repeated_wearables_codec);
 0466            break;
 467          }
 468          case 66: {
 0469            ExpressionTriggerId = input.ReadString();
 0470            break;
 471          }
 472          case 72: {
 0473            ExpressionTriggerTimestamp = input.ReadInt64();
 0474            break;
 475          }
 476          case 82: {
 0477            StickerTriggerId = input.ReadString();
 0478            break;
 479          }
 480          case 88: {
 0481            StickerTriggerTimestamp = input.ReadInt64();
 0482            break;
 483          }
 484          case 96: {
 0485            Talking = input.ReadBool();
 486            break;
 487          }
 488        }
 489      }
 0490    }
 491
 492  }
 493
 494  #endregion
 495
 496}
 497
 498#endregion Designer generated code