< Summary

Class:DCL.ECSComponents.PBNFTShape
Assembly:DCL.ECSComponents.ProtobufData
File(s):/tmp/workspace/unity-renderer/unity-renderer/Assets/DCLPlugins/ECS7/ProtocolBuffers/Generated/NFTShape.gen.cs
Covered lines:7
Uncovered lines:83
Coverable lines:90
Total lines:383
Line coverage:7.7% (7 of 90)
Covered branches:0
Total branches:0

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity NPath complexity Sequence coverage
PBNFTShape()0%110100%
get_Descriptor()0%2100%
PBNFTShape(...)0%12300%
Clone()0%2100%
PBNFTShape()0%110100%
ClearStyle()0%2100%
Equals(...)0%2100%
Equals(...)0%42600%
GetHashCode()0%30500%
ToString()0%2100%
WriteTo(...)0%30500%
CalculateSize()0%30500%
MergeFrom(...)0%42600%
MergeFrom(...)0%42600%

File(s)

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

#LineLine coverage
 1// <auto-generated>
 2//     Generated by the protocol buffer compiler.  DO NOT EDIT!
 3//     source: ecs/components/NFTShape.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 ecs/components/NFTShape.proto</summary>
 15  public static partial class NFTShapeReflection {
 16
 17    #region Descriptor
 18    /// <summary>File descriptor for ecs/components/NFTShape.proto</summary>
 19    public static pbr::FileDescriptor Descriptor {
 20      get { return descriptor; }
 21    }
 22    private static pbr::FileDescriptor descriptor;
 23
 24    static NFTShapeReflection() {
 25      byte[] descriptorData = global::System.Convert.FromBase64String(
 26          string.Concat(
 27            "Ch1lY3MvY29tcG9uZW50cy9ORlRTaGFwZS5wcm90bxIQZGVjZW50cmFsYW5k",
 28            "LmVjcxoiZWNzL2NvbXBvbmVudHMvY29tbW9uL0NvbG9yMy5wcm90byKjBAoK",
 29            "UEJORlRTaGFwZRILCgNzcmMYASABKAkSQgoFc3R5bGUYAiABKA4yLi5kZWNl",
 30            "bnRyYWxhbmQuZWNzLlBCTkZUU2hhcGUuUGljdHVyZUZyYW1lU3R5bGVIAIgB",
 31            "ARIsCgVjb2xvchgDIAEoCzIYLmRlY2VudHJhbGFuZC5lY3MuQ29sb3IzSAGI",
 32            "AQEigQMKEVBpY3R1cmVGcmFtZVN0eWxlEgsKB0NsYXNzaWMQABIUChBCYXJv",
 33            "cXVlX09ybmFtZW50EAESFAoQRGlhbW9uZF9Pcm5hbWVudBACEhAKDE1pbmlt",
 34            "YWxfV2lkZRADEhAKDE1pbmltYWxfR3JleRAEEgoKBkJsb2NreRAFEg4KCkdv",
 35            "bGRfRWRnZXMQBhIPCgtHb2xkX0NhcnZlZBAHEg0KCUdvbGRfV2lkZRAIEhAK",
 36            "DEdvbGRfUm91bmRlZBAJEhAKDE1ldGFsX01lZGl1bRAKEg4KCk1ldGFsX1dp",
 37            "ZGUQCxIOCgpNZXRhbF9TbGltEAwSEQoNTWV0YWxfUm91bmRlZBANEggKBFBp",
 38            "bnMQDhIRCg1NaW5pbWFsX0JsYWNrEA8SEQoNTWluaW1hbF9XaGl0ZRAQEggK",
 39            "BFRhcGUQERINCglXb29kX1NsaW0QEhINCglXb29kX1dpZGUQExIOCgpXb29k",
 40            "X1R3aWdzEBQSCgoGQ2FudmFzEBUSCAoETm9uZRAWQggKBl9zdHlsZUIICgZf",
 41            "Y29sb3JCFKoCEURDTC5FQ1NDb21wb25lbnRzYgZwcm90bzM="));
 42      descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
 43          new pbr::FileDescriptor[] { global::DCL.ECSComponents.Color3Reflection.Descriptor, },
 44          new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] {
 45            new pbr::GeneratedClrTypeInfo(typeof(global::DCL.ECSComponents.PBNFTShape), global::DCL.ECSComponents.PBNFTS
 46          }));
 47    }
 48    #endregion
 49
 50  }
 51  #region Messages
 52  public sealed partial class PBNFTShape : pb::IMessage<PBNFTShape>
 53  #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 54      , pb::IBufferMessage
 55  #endif
 56  {
 157    private static readonly pb::MessageParser<PBNFTShape> _parser = new pb::MessageParser<PBNFTShape>(() => new PBNFTSha
 58    private pb::UnknownFieldSet _unknownFields;
 59    private int _hasBits0;
 60    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 61    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 062    public static pb::MessageParser<PBNFTShape> Parser { get { return _parser; } }
 63
 64    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 65    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 66    public static pbr::MessageDescriptor Descriptor {
 067      get { return global::DCL.ECSComponents.NFTShapeReflection.Descriptor.MessageTypes[0]; }
 68    }
 69
 70    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 71    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 72    pbr::MessageDescriptor pb::IMessage.Descriptor {
 073      get { return Descriptor; }
 74    }
 75
 76    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 77    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 178    public PBNFTShape() {
 79      OnConstruction();
 180    }
 81
 82    partial void OnConstruction();
 83
 84    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 85    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 086    public PBNFTShape(PBNFTShape other) : this() {
 087      _hasBits0 = other._hasBits0;
 088      src_ = other.src_;
 089      style_ = other.style_;
 090      color_ = other.color_ != null ? other.color_.Clone() : null;
 091      _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
 092    }
 93
 94    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 95    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 96    public PBNFTShape Clone() {
 097      return new PBNFTShape(this);
 98    }
 99
 100    /// <summary>Field number for the "src" field.</summary>
 101    public const int SrcFieldNumber = 1;
 1102    private string src_ = "";
 103    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 104    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 105    public string Src {
 0106      get { return src_; }
 107      set {
 0108        src_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
 0109      }
 110    }
 111
 112    /// <summary>Field number for the "style" field.</summary>
 113    public const int StyleFieldNumber = 2;
 114    private global::DCL.ECSComponents.PBNFTShape.Types.PictureFrameStyle style_;
 115    /// <summary>
 116    /// default = PictureFrameStyle.Classic
 117    /// </summary>
 118    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 119    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 120    public global::DCL.ECSComponents.PBNFTShape.Types.PictureFrameStyle Style {
 0121      get { if ((_hasBits0 & 1) != 0) { return style_; } else { return global::DCL.ECSComponents.PBNFTShape.Types.Pictur
 122      set {
 2123        _hasBits0 |= 1;
 2124        style_ = value;
 2125      }
 126    }
 127    /// <summary>Gets whether the "style" field is set</summary>
 128    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 129    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 130    public bool HasStyle {
 0131      get { return (_hasBits0 & 1) != 0; }
 132    }
 133    /// <summary>Clears the value of the "style" field</summary>
 134    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 135    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 136    public void ClearStyle() {
 0137      _hasBits0 &= ~1;
 0138    }
 139
 140    /// <summary>Field number for the "color" field.</summary>
 141    public const int ColorFieldNumber = 3;
 142    private global::DCL.ECSComponents.Color3 color_;
 143    /// <summary>
 144    /// default = Color3(0.6404918, 0.611472, 0.8584906)
 145    /// </summary>
 146    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 147    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 148    public global::DCL.ECSComponents.Color3 Color {
 0149      get { return color_; }
 150      set {
 0151        color_ = value;
 0152      }
 153    }
 154
 155    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 156    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 157    public override bool Equals(object other) {
 0158      return Equals(other as PBNFTShape);
 159    }
 160
 161    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 162    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 163    public bool Equals(PBNFTShape other) {
 0164      if (ReferenceEquals(other, null)) {
 0165        return false;
 166      }
 0167      if (ReferenceEquals(other, this)) {
 0168        return true;
 169      }
 0170      if (Src != other.Src) return false;
 0171      if (Style != other.Style) return false;
 0172      if (!object.Equals(Color, other.Color)) return false;
 0173      return Equals(_unknownFields, other._unknownFields);
 174    }
 175
 176    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 177    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 178    public override int GetHashCode() {
 0179      int hash = 1;
 0180      if (Src.Length != 0) hash ^= Src.GetHashCode();
 0181      if (HasStyle) hash ^= Style.GetHashCode();
 0182      if (color_ != null) hash ^= Color.GetHashCode();
 0183      if (_unknownFields != null) {
 0184        hash ^= _unknownFields.GetHashCode();
 185      }
 0186      return hash;
 187    }
 188
 189    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 190    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 191    public override string ToString() {
 0192      return pb::JsonFormatter.ToDiagnosticString(this);
 193    }
 194
 195    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 196    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 197    public void WriteTo(pb::CodedOutputStream output) {
 198    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 199      output.WriteRawMessage(this);
 200    #else
 0201      if (Src.Length != 0) {
 0202        output.WriteRawTag(10);
 0203        output.WriteString(Src);
 204      }
 0205      if (HasStyle) {
 0206        output.WriteRawTag(16);
 0207        output.WriteEnum((int) Style);
 208      }
 0209      if (color_ != null) {
 0210        output.WriteRawTag(26);
 0211        output.WriteMessage(Color);
 212      }
 0213      if (_unknownFields != null) {
 0214        _unknownFields.WriteTo(output);
 215      }
 216    #endif
 0217    }
 218
 219    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 220    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 221    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 222    void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
 223      if (Src.Length != 0) {
 224        output.WriteRawTag(10);
 225        output.WriteString(Src);
 226      }
 227      if (HasStyle) {
 228        output.WriteRawTag(16);
 229        output.WriteEnum((int) Style);
 230      }
 231      if (color_ != null) {
 232        output.WriteRawTag(26);
 233        output.WriteMessage(Color);
 234      }
 235      if (_unknownFields != null) {
 236        _unknownFields.WriteTo(ref output);
 237      }
 238    }
 239    #endif
 240
 241    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 242    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 243    public int CalculateSize() {
 0244      int size = 0;
 0245      if (Src.Length != 0) {
 0246        size += 1 + pb::CodedOutputStream.ComputeStringSize(Src);
 247      }
 0248      if (HasStyle) {
 0249        size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Style);
 250      }
 0251      if (color_ != null) {
 0252        size += 1 + pb::CodedOutputStream.ComputeMessageSize(Color);
 253      }
 0254      if (_unknownFields != null) {
 0255        size += _unknownFields.CalculateSize();
 256      }
 0257      return size;
 258    }
 259
 260    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 261    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 262    public void MergeFrom(PBNFTShape other) {
 0263      if (other == null) {
 0264        return;
 265      }
 0266      if (other.Src.Length != 0) {
 0267        Src = other.Src;
 268      }
 0269      if (other.HasStyle) {
 0270        Style = other.Style;
 271      }
 0272      if (other.color_ != null) {
 0273        if (color_ == null) {
 0274          Color = new global::DCL.ECSComponents.Color3();
 275        }
 0276        Color.MergeFrom(other.Color);
 277      }
 0278      _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 0279    }
 280
 281    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 282    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 283    public void MergeFrom(pb::CodedInputStream input) {
 284    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 285      input.ReadRawMessage(this);
 286    #else
 287      uint tag;
 0288      while ((tag = input.ReadTag()) != 0) {
 289        switch(tag) {
 290          default:
 0291            _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
 0292            break;
 293          case 10: {
 0294            Src = input.ReadString();
 0295            break;
 296          }
 297          case 16: {
 0298            Style = (global::DCL.ECSComponents.PBNFTShape.Types.PictureFrameStyle) input.ReadEnum();
 0299            break;
 300          }
 301          case 26: {
 0302            if (color_ == null) {
 0303              Color = new global::DCL.ECSComponents.Color3();
 304            }
 0305            input.ReadMessage(Color);
 306            break;
 307          }
 308        }
 309      }
 310    #endif
 0311    }
 312
 313    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 314    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 315    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 316    void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
 317      uint tag;
 318      while ((tag = input.ReadTag()) != 0) {
 319        switch(tag) {
 320          default:
 321            _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
 322            break;
 323          case 10: {
 324            Src = input.ReadString();
 325            break;
 326          }
 327          case 16: {
 328            Style = (global::DCL.ECSComponents.PBNFTShape.Types.PictureFrameStyle) input.ReadEnum();
 329            break;
 330          }
 331          case 26: {
 332            if (color_ == null) {
 333              Color = new global::DCL.ECSComponents.Color3();
 334            }
 335            input.ReadMessage(Color);
 336            break;
 337          }
 338        }
 339      }
 340    }
 341    #endif
 342
 343    #region Nested types
 344    /// <summary>Container for nested types declared in the PBNFTShape message type.</summary>
 345    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 346    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 347    public static partial class Types {
 348      public enum PictureFrameStyle {
 349        [pbr::OriginalName("Classic")] Classic = 0,
 350        [pbr::OriginalName("Baroque_Ornament")] BaroqueOrnament = 1,
 351        [pbr::OriginalName("Diamond_Ornament")] DiamondOrnament = 2,
 352        [pbr::OriginalName("Minimal_Wide")] MinimalWide = 3,
 353        [pbr::OriginalName("Minimal_Grey")] MinimalGrey = 4,
 354        [pbr::OriginalName("Blocky")] Blocky = 5,
 355        [pbr::OriginalName("Gold_Edges")] GoldEdges = 6,
 356        [pbr::OriginalName("Gold_Carved")] GoldCarved = 7,
 357        [pbr::OriginalName("Gold_Wide")] GoldWide = 8,
 358        [pbr::OriginalName("Gold_Rounded")] GoldRounded = 9,
 359        [pbr::OriginalName("Metal_Medium")] MetalMedium = 10,
 360        [pbr::OriginalName("Metal_Wide")] MetalWide = 11,
 361        [pbr::OriginalName("Metal_Slim")] MetalSlim = 12,
 362        [pbr::OriginalName("Metal_Rounded")] MetalRounded = 13,
 363        [pbr::OriginalName("Pins")] Pins = 14,
 364        [pbr::OriginalName("Minimal_Black")] MinimalBlack = 15,
 365        [pbr::OriginalName("Minimal_White")] MinimalWhite = 16,
 366        [pbr::OriginalName("Tape")] Tape = 17,
 367        [pbr::OriginalName("Wood_Slim")] WoodSlim = 18,
 368        [pbr::OriginalName("Wood_Wide")] WoodWide = 19,
 369        [pbr::OriginalName("Wood_Twigs")] WoodTwigs = 20,
 370        [pbr::OriginalName("Canvas")] Canvas = 21,
 371        [pbr::OriginalName("None")] None = 22,
 372      }
 373
 374    }
 375    #endregion
 376
 377  }
 378
 379  #endregion
 380
 381}
 382
 383#endregion Designer generated code