< Summary

Class:DCL.ECSComponents.NftShapeReflection
Assembly:Decentraland.Protocol.GeneratedCode
File(s):/tmp/workspace/unity-renderer/unity-renderer/Assets/Scripts/MainScripts/DCL/DecentralandProtocol/NftShape.gen.cs
Covered lines:0
Uncovered lines:4
Coverable lines:4
Total lines:381
Line coverage:0% (0 of 4)
Covered branches:0
Total branches:0

Metrics

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

File(s)

/tmp/workspace/unity-renderer/unity-renderer/Assets/Scripts/MainScripts/DCL/DecentralandProtocol/NftShape.gen.cs

#LineLine coverage
 1// <auto-generated>
 2//     Generated by the protocol buffer compiler.  DO NOT EDIT!
 3//     source: decentraland/sdk/components/nft_shape.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/sdk/components/nft_shape.proto</summary>
 15  public static partial class NftShapeReflection {
 16
 17    #region Descriptor
 18    /// <summary>File descriptor for decentraland/sdk/components/nft_shape.proto</summary>
 19    public static pbr::FileDescriptor Descriptor {
 020      get { return descriptor; }
 21    }
 22    private static pbr::FileDescriptor descriptor;
 23
 24    static NftShapeReflection() {
 025      byte[] descriptorData = global::System.Convert.FromBase64String(
 26          string.Concat(
 27            "CitkZWNlbnRyYWxhbmQvc2RrL2NvbXBvbmVudHMvbmZ0X3NoYXBlLnByb3Rv",
 28            "EhtkZWNlbnRyYWxhbmQuc2RrLmNvbXBvbmVudHMaIGRlY2VudHJhbGFuZC9j",
 29            "b21tb24vY29sb3JzLnByb3RvIp0BCgpQQk5mdFNoYXBlEgsKA3NyYxgBIAEo",
 30            "CRI9CgVzdHlsZRgCIAEoDjIpLmRlY2VudHJhbGFuZC5zZGsuY29tcG9uZW50",
 31            "cy5OZnRGcmFtZVR5cGVIAIgBARIvCgVjb2xvchgDIAEoCzIbLmRlY2VudHJh",
 32            "bGFuZC5jb21tb24uQ29sb3IzSAGIAQFCCAoGX3N0eWxlQggKBl9jb2xvcirY",
 33            "AwoMTmZ0RnJhbWVUeXBlEg8KC05GVF9DTEFTU0lDEAASGAoUTkZUX0JBUk9R",
 34            "VUVfT1JOQU1FTlQQARIYChRORlRfRElBTU9ORF9PUk5BTUVOVBACEhQKEE5G",
 35            "VF9NSU5JTUFMX1dJREUQAxIUChBORlRfTUlOSU1BTF9HUkVZEAQSDgoKTkZU",
 36            "X0JMT0NLWRAFEhIKDk5GVF9HT0xEX0VER0VTEAYSEwoPTkZUX0dPTERfQ0FS",
 37            "VkVEEAcSEQoNTkZUX0dPTERfV0lERRAIEhQKEE5GVF9HT0xEX1JPVU5ERUQQ",
 38            "CRIUChBORlRfTUVUQUxfTUVESVVNEAoSEgoOTkZUX01FVEFMX1dJREUQCxIS",
 39            "Cg5ORlRfTUVUQUxfU0xJTRAMEhUKEU5GVF9NRVRBTF9ST1VOREVEEA0SDAoI",
 40            "TkZUX1BJTlMQDhIVChFORlRfTUlOSU1BTF9CTEFDSxAPEhUKEU5GVF9NSU5J",
 41            "TUFMX1dISVRFEBASDAoITkZUX1RBUEUQERIRCg1ORlRfV09PRF9TTElNEBIS",
 42            "EQoNTkZUX1dPT0RfV0lERRATEhIKDk5GVF9XT09EX1RXSUdTEBQSDgoKTkZU",
 43            "X0NBTlZBUxAVEgwKCE5GVF9OT05FEBZCFKoCEURDTC5FQ1NDb21wb25lbnRz",
 44            "YgZwcm90bzM="));
 045      descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
 46          new pbr::FileDescriptor[] { global::Decentraland.Common.ColorsReflection.Descriptor, },
 47          new pbr::GeneratedClrTypeInfo(new[] {typeof(global::DCL.ECSComponents.NftFrameType), }, null, new pbr::Generat
 48            new pbr::GeneratedClrTypeInfo(typeof(global::DCL.ECSComponents.PBNftShape), global::DCL.ECSComponents.PBNftS
 49          }));
 050    }
 51    #endregion
 52
 53  }
 54  #region Enums
 55  public enum NftFrameType {
 56    [pbr::OriginalName("NFT_CLASSIC")] NftClassic = 0,
 57    [pbr::OriginalName("NFT_BAROQUE_ORNAMENT")] NftBaroqueOrnament = 1,
 58    [pbr::OriginalName("NFT_DIAMOND_ORNAMENT")] NftDiamondOrnament = 2,
 59    [pbr::OriginalName("NFT_MINIMAL_WIDE")] NftMinimalWide = 3,
 60    [pbr::OriginalName("NFT_MINIMAL_GREY")] NftMinimalGrey = 4,
 61    [pbr::OriginalName("NFT_BLOCKY")] NftBlocky = 5,
 62    [pbr::OriginalName("NFT_GOLD_EDGES")] NftGoldEdges = 6,
 63    [pbr::OriginalName("NFT_GOLD_CARVED")] NftGoldCarved = 7,
 64    [pbr::OriginalName("NFT_GOLD_WIDE")] NftGoldWide = 8,
 65    [pbr::OriginalName("NFT_GOLD_ROUNDED")] NftGoldRounded = 9,
 66    [pbr::OriginalName("NFT_METAL_MEDIUM")] NftMetalMedium = 10,
 67    [pbr::OriginalName("NFT_METAL_WIDE")] NftMetalWide = 11,
 68    [pbr::OriginalName("NFT_METAL_SLIM")] NftMetalSlim = 12,
 69    [pbr::OriginalName("NFT_METAL_ROUNDED")] NftMetalRounded = 13,
 70    [pbr::OriginalName("NFT_PINS")] NftPins = 14,
 71    [pbr::OriginalName("NFT_MINIMAL_BLACK")] NftMinimalBlack = 15,
 72    [pbr::OriginalName("NFT_MINIMAL_WHITE")] NftMinimalWhite = 16,
 73    [pbr::OriginalName("NFT_TAPE")] NftTape = 17,
 74    [pbr::OriginalName("NFT_WOOD_SLIM")] NftWoodSlim = 18,
 75    [pbr::OriginalName("NFT_WOOD_WIDE")] NftWoodWide = 19,
 76    [pbr::OriginalName("NFT_WOOD_TWIGS")] NftWoodTwigs = 20,
 77    [pbr::OriginalName("NFT_CANVAS")] NftCanvas = 21,
 78    [pbr::OriginalName("NFT_NONE")] NftNone = 22,
 79  }
 80
 81  #endregion
 82
 83  #region Messages
 84  public sealed partial class PBNftShape : pb::IMessage<PBNftShape>
 85  #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 86      , pb::IBufferMessage
 87  #endif
 88  {
 89    private static readonly pb::MessageParser<PBNftShape> _parser = new pb::MessageParser<PBNftShape>(() => new PBNftSha
 90    private pb::UnknownFieldSet _unknownFields;
 91    private int _hasBits0;
 92    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 93    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 94    public static pb::MessageParser<PBNftShape> Parser { get { return _parser; } }
 95
 96    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 97    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 98    public static pbr::MessageDescriptor Descriptor {
 99      get { return global::DCL.ECSComponents.NftShapeReflection.Descriptor.MessageTypes[0]; }
 100    }
 101
 102    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 103    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 104    pbr::MessageDescriptor pb::IMessage.Descriptor {
 105      get { return Descriptor; }
 106    }
 107
 108    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 109    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 110    public PBNftShape() {
 111      OnConstruction();
 112    }
 113
 114    partial void OnConstruction();
 115
 116    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 117    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 118    public PBNftShape(PBNftShape other) : this() {
 119      _hasBits0 = other._hasBits0;
 120      src_ = other.src_;
 121      style_ = other.style_;
 122      color_ = other.color_ != null ? other.color_.Clone() : null;
 123      _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
 124    }
 125
 126    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 127    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 128    public PBNftShape Clone() {
 129      return new PBNftShape(this);
 130    }
 131
 132    /// <summary>Field number for the "src" field.</summary>
 133    public const int SrcFieldNumber = 1;
 134    private string src_ = "";
 135    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 136    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 137    public string Src {
 138      get { return src_; }
 139      set {
 140        src_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
 141      }
 142    }
 143
 144    /// <summary>Field number for the "style" field.</summary>
 145    public const int StyleFieldNumber = 2;
 146    private global::DCL.ECSComponents.NftFrameType style_;
 147    /// <summary>
 148    /// default = PictureFrameStyle.Classic
 149    /// </summary>
 150    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 151    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 152    public global::DCL.ECSComponents.NftFrameType Style {
 153      get { if ((_hasBits0 & 1) != 0) { return style_; } else { return global::DCL.ECSComponents.NftFrameType.NftClassic
 154      set {
 155        _hasBits0 |= 1;
 156        style_ = value;
 157      }
 158    }
 159    /// <summary>Gets whether the "style" field is set</summary>
 160    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 161    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 162    public bool HasStyle {
 163      get { return (_hasBits0 & 1) != 0; }
 164    }
 165    /// <summary>Clears the value of the "style" field</summary>
 166    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 167    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 168    public void ClearStyle() {
 169      _hasBits0 &= ~1;
 170    }
 171
 172    /// <summary>Field number for the "color" field.</summary>
 173    public const int ColorFieldNumber = 3;
 174    private global::Decentraland.Common.Color3 color_;
 175    /// <summary>
 176    /// default = decentraland.common.Color3(0.6404918, 0.611472, 0.8584906)
 177    /// </summary>
 178    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 179    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 180    public global::Decentraland.Common.Color3 Color {
 181      get { return color_; }
 182      set {
 183        color_ = value;
 184      }
 185    }
 186
 187    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 188    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 189    public override bool Equals(object other) {
 190      return Equals(other as PBNftShape);
 191    }
 192
 193    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 194    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 195    public bool Equals(PBNftShape other) {
 196      if (ReferenceEquals(other, null)) {
 197        return false;
 198      }
 199      if (ReferenceEquals(other, this)) {
 200        return true;
 201      }
 202      if (Src != other.Src) return false;
 203      if (Style != other.Style) return false;
 204      if (!object.Equals(Color, other.Color)) return false;
 205      return Equals(_unknownFields, other._unknownFields);
 206    }
 207
 208    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 209    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 210    public override int GetHashCode() {
 211      int hash = 1;
 212      if (Src.Length != 0) hash ^= Src.GetHashCode();
 213      if (HasStyle) hash ^= Style.GetHashCode();
 214      if (color_ != null) hash ^= Color.GetHashCode();
 215      if (_unknownFields != null) {
 216        hash ^= _unknownFields.GetHashCode();
 217      }
 218      return hash;
 219    }
 220
 221    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 222    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 223    public override string ToString() {
 224      return pb::JsonFormatter.ToDiagnosticString(this);
 225    }
 226
 227    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 228    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 229    public void WriteTo(pb::CodedOutputStream output) {
 230    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 231      output.WriteRawMessage(this);
 232    #else
 233      if (Src.Length != 0) {
 234        output.WriteRawTag(10);
 235        output.WriteString(Src);
 236      }
 237      if (HasStyle) {
 238        output.WriteRawTag(16);
 239        output.WriteEnum((int) Style);
 240      }
 241      if (color_ != null) {
 242        output.WriteRawTag(26);
 243        output.WriteMessage(Color);
 244      }
 245      if (_unknownFields != null) {
 246        _unknownFields.WriteTo(output);
 247      }
 248    #endif
 249    }
 250
 251    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 252    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 253    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 254    void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
 255      if (Src.Length != 0) {
 256        output.WriteRawTag(10);
 257        output.WriteString(Src);
 258      }
 259      if (HasStyle) {
 260        output.WriteRawTag(16);
 261        output.WriteEnum((int) Style);
 262      }
 263      if (color_ != null) {
 264        output.WriteRawTag(26);
 265        output.WriteMessage(Color);
 266      }
 267      if (_unknownFields != null) {
 268        _unknownFields.WriteTo(ref output);
 269      }
 270    }
 271    #endif
 272
 273    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 274    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 275    public int CalculateSize() {
 276      int size = 0;
 277      if (Src.Length != 0) {
 278        size += 1 + pb::CodedOutputStream.ComputeStringSize(Src);
 279      }
 280      if (HasStyle) {
 281        size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Style);
 282      }
 283      if (color_ != null) {
 284        size += 1 + pb::CodedOutputStream.ComputeMessageSize(Color);
 285      }
 286      if (_unknownFields != null) {
 287        size += _unknownFields.CalculateSize();
 288      }
 289      return size;
 290    }
 291
 292    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 293    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 294    public void MergeFrom(PBNftShape other) {
 295      if (other == null) {
 296        return;
 297      }
 298      if (other.Src.Length != 0) {
 299        Src = other.Src;
 300      }
 301      if (other.HasStyle) {
 302        Style = other.Style;
 303      }
 304      if (other.color_ != null) {
 305        if (color_ == null) {
 306          Color = new global::Decentraland.Common.Color3();
 307        }
 308        Color.MergeFrom(other.Color);
 309      }
 310      _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 311    }
 312
 313    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 314    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 315    public void MergeFrom(pb::CodedInputStream input) {
 316    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 317      input.ReadRawMessage(this);
 318    #else
 319      uint tag;
 320      while ((tag = input.ReadTag()) != 0) {
 321        switch(tag) {
 322          default:
 323            _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
 324            break;
 325          case 10: {
 326            Src = input.ReadString();
 327            break;
 328          }
 329          case 16: {
 330            Style = (global::DCL.ECSComponents.NftFrameType) input.ReadEnum();
 331            break;
 332          }
 333          case 26: {
 334            if (color_ == null) {
 335              Color = new global::Decentraland.Common.Color3();
 336            }
 337            input.ReadMessage(Color);
 338            break;
 339          }
 340        }
 341      }
 342    #endif
 343    }
 344
 345    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 346    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 347    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 348    void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
 349      uint tag;
 350      while ((tag = input.ReadTag()) != 0) {
 351        switch(tag) {
 352          default:
 353            _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
 354            break;
 355          case 10: {
 356            Src = input.ReadString();
 357            break;
 358          }
 359          case 16: {
 360            Style = (global::DCL.ECSComponents.NftFrameType) input.ReadEnum();
 361            break;
 362          }
 363          case 26: {
 364            if (color_ == null) {
 365              Color = new global::Decentraland.Common.Color3();
 366            }
 367            input.ReadMessage(Color);
 368            break;
 369          }
 370        }
 371      }
 372    }
 373    #endif
 374
 375  }
 376
 377  #endregion
 378
 379}
 380
 381#endregion Designer generated code

Methods/Properties

Descriptor()
NftShapeReflection()