< Summary

Class:DCL.ECSComponents.NFTShapeReflection
Assembly:DCL.ECSComponents.ProtobufData
File(s):/tmp/workspace/unity-renderer/unity-renderer/Assets/DCLPlugins/ECS7/ProtocolBuffers/Generated/PBFiles/NFTShape.cs
Covered lines:0
Uncovered lines:4
Coverable lines:4
Total lines:544
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/DCLPlugins/ECS7/ProtocolBuffers/Generated/PBFiles/NFTShape.cs

#LineLine coverage
 1// <auto-generated>
 2//     Generated by the protocol buffer compiler.  DO NOT EDIT!
 3//     source: 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 NFTShape.proto</summary>
 15  public static partial class NFTShapeReflection {
 16
 17    #region Descriptor
 18    /// <summary>File descriptor for NFTShape.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            "Cg5ORlRTaGFwZS5wcm90bxIQZGVjZW50cmFsYW5kLmVjcxoTY29tbW9uL0Nv",
 28            "bG9yMy5wcm90byKOAgoKUEJORlRTaGFwZRIcCg93aXRoX2NvbGxpc2lvbnMY",
 29            "ASABKAhIAIgBARIfChJpc19wb2ludGVyX2Jsb2NrZXIYAiABKAhIAYgBARIU",
 30            "Cgd2aXNpYmxlGAMgASgISAKIAQESCwoDc3JjGAQgASgJEhUKCGFzc2V0X2lk",
 31            "GAUgASgJSAOIAQESEgoFc3R5bGUYBiABKAVIBIgBARIbCgVjb2xvchgHIAEo",
 32            "CzIHLkNvbG9yM0gFiAEBQhIKEF93aXRoX2NvbGxpc2lvbnNCFQoTX2lzX3Bv",
 33            "aW50ZXJfYmxvY2tlckIKCghfdmlzaWJsZUILCglfYXNzZXRfaWRCCAoGX3N0",
 34            "eWxlQggKBl9jb2xvckIUqgIRRENMLkVDU0NvbXBvbmVudHNiBnByb3RvMw=="));
 035      descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
 36          new pbr::FileDescriptor[] { global::Color3Reflection.Descriptor, },
 37          new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] {
 38            new pbr::GeneratedClrTypeInfo(typeof(global::DCL.ECSComponents.PBNFTShape), global::DCL.ECSComponents.PBNFTS
 39          }));
 040    }
 41    #endregion
 42
 43  }
 44  #region Messages
 45  public sealed partial class PBNFTShape : pb::IMessage<PBNFTShape>
 46  #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 47      , pb::IBufferMessage
 48  #endif
 49  {
 50    private static readonly pb::MessageParser<PBNFTShape> _parser = new pb::MessageParser<PBNFTShape>(() => new PBNFTSha
 51    private pb::UnknownFieldSet _unknownFields;
 52    private int _hasBits0;
 53    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 54    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 55    public static pb::MessageParser<PBNFTShape> Parser { get { return _parser; } }
 56
 57    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 58    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 59    public static pbr::MessageDescriptor Descriptor {
 60      get { return global::DCL.ECSComponents.NFTShapeReflection.Descriptor.MessageTypes[0]; }
 61    }
 62
 63    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 64    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 65    pbr::MessageDescriptor pb::IMessage.Descriptor {
 66      get { return Descriptor; }
 67    }
 68
 69    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 70    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 71    public PBNFTShape() {
 72      OnConstruction();
 73    }
 74
 75    partial void OnConstruction();
 76
 77    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 78    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 79    public PBNFTShape(PBNFTShape other) : this() {
 80      _hasBits0 = other._hasBits0;
 81      withCollisions_ = other.withCollisions_;
 82      isPointerBlocker_ = other.isPointerBlocker_;
 83      visible_ = other.visible_;
 84      src_ = other.src_;
 85      assetId_ = other.assetId_;
 86      style_ = other.style_;
 87      color_ = other.color_ != null ? other.color_.Clone() : null;
 88      _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
 89    }
 90
 91    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 92    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 93    public PBNFTShape Clone() {
 94      return new PBNFTShape(this);
 95    }
 96
 97    /// <summary>Field number for the "with_collisions" field.</summary>
 98    public const int WithCollisionsFieldNumber = 1;
 99    private bool withCollisions_;
 100    /// <summary>
 101    /// @deprecated use MeshCollider instead https://github.com/decentraland/sdk/issues/366
 102    /// </summary>
 103    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 104    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 105    public bool WithCollisions {
 106      get { if ((_hasBits0 & 1) != 0) { return withCollisions_; } else { return false; } }
 107      set {
 108        _hasBits0 |= 1;
 109        withCollisions_ = value;
 110      }
 111    }
 112    /// <summary>Gets whether the "with_collisions" field is set</summary>
 113    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 114    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 115    public bool HasWithCollisions {
 116      get { return (_hasBits0 & 1) != 0; }
 117    }
 118    /// <summary>Clears the value of the "with_collisions" field</summary>
 119    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 120    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 121    public void ClearWithCollisions() {
 122      _hasBits0 &= ~1;
 123    }
 124
 125    /// <summary>Field number for the "is_pointer_blocker" field.</summary>
 126    public const int IsPointerBlockerFieldNumber = 2;
 127    private bool isPointerBlocker_;
 128    /// <summary>
 129    /// @deprecated use MeshCollider instead https://github.com/decentraland/sdk/issues/366
 130    /// </summary>
 131    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 132    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 133    public bool IsPointerBlocker {
 134      get { if ((_hasBits0 & 2) != 0) { return isPointerBlocker_; } else { return false; } }
 135      set {
 136        _hasBits0 |= 2;
 137        isPointerBlocker_ = value;
 138      }
 139    }
 140    /// <summary>Gets whether the "is_pointer_blocker" field is set</summary>
 141    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 142    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 143    public bool HasIsPointerBlocker {
 144      get { return (_hasBits0 & 2) != 0; }
 145    }
 146    /// <summary>Clears the value of the "is_pointer_blocker" field</summary>
 147    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 148    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 149    public void ClearIsPointerBlocker() {
 150      _hasBits0 &= ~2;
 151    }
 152
 153    /// <summary>Field number for the "visible" field.</summary>
 154    public const int VisibleFieldNumber = 3;
 155    private bool visible_;
 156    /// <summary>
 157    /// @deprecated use HiddenComponent instead https://github.com/decentraland/sdk/issues/353
 158    /// </summary>
 159    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 160    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 161    public bool Visible {
 162      get { if ((_hasBits0 & 4) != 0) { return visible_; } else { return false; } }
 163      set {
 164        _hasBits0 |= 4;
 165        visible_ = value;
 166      }
 167    }
 168    /// <summary>Gets whether the "visible" field is set</summary>
 169    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 170    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 171    public bool HasVisible {
 172      get { return (_hasBits0 & 4) != 0; }
 173    }
 174    /// <summary>Clears the value of the "visible" field</summary>
 175    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 176    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 177    public void ClearVisible() {
 178      _hasBits0 &= ~4;
 179    }
 180
 181    /// <summary>Field number for the "src" field.</summary>
 182    public const int SrcFieldNumber = 4;
 183    private string src_ = "";
 184    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 185    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 186    public string Src {
 187      get { return src_; }
 188      set {
 189        src_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
 190      }
 191    }
 192
 193    /// <summary>Field number for the "asset_id" field.</summary>
 194    public const int AssetIdFieldNumber = 5;
 195    private string assetId_;
 196    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 197    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 198    public string AssetId {
 199      get { return assetId_ ?? ""; }
 200      set {
 201        assetId_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
 202      }
 203    }
 204    /// <summary>Gets whether the "asset_id" field is set</summary>
 205    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 206    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 207    public bool HasAssetId {
 208      get { return assetId_ != null; }
 209    }
 210    /// <summary>Clears the value of the "asset_id" field</summary>
 211    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 212    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 213    public void ClearAssetId() {
 214      assetId_ = null;
 215    }
 216
 217    /// <summary>Field number for the "style" field.</summary>
 218    public const int StyleFieldNumber = 6;
 219    private int style_;
 220    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 221    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 222    public int Style {
 223      get { if ((_hasBits0 & 8) != 0) { return style_; } else { return 0; } }
 224      set {
 225        _hasBits0 |= 8;
 226        style_ = value;
 227      }
 228    }
 229    /// <summary>Gets whether the "style" field is set</summary>
 230    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 231    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 232    public bool HasStyle {
 233      get { return (_hasBits0 & 8) != 0; }
 234    }
 235    /// <summary>Clears the value of the "style" field</summary>
 236    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 237    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 238    public void ClearStyle() {
 239      _hasBits0 &= ~8;
 240    }
 241
 242    /// <summary>Field number for the "color" field.</summary>
 243    public const int ColorFieldNumber = 7;
 244    private global::Color3 color_;
 245    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 246    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 247    public global::Color3 Color {
 248      get { return color_; }
 249      set {
 250        color_ = value;
 251      }
 252    }
 253
 254    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 255    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 256    public override bool Equals(object other) {
 257      return Equals(other as PBNFTShape);
 258    }
 259
 260    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 261    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 262    public bool Equals(PBNFTShape other) {
 263      if (ReferenceEquals(other, null)) {
 264        return false;
 265      }
 266      if (ReferenceEquals(other, this)) {
 267        return true;
 268      }
 269      if (WithCollisions != other.WithCollisions) return false;
 270      if (IsPointerBlocker != other.IsPointerBlocker) return false;
 271      if (Visible != other.Visible) return false;
 272      if (Src != other.Src) return false;
 273      if (AssetId != other.AssetId) return false;
 274      if (Style != other.Style) return false;
 275      if (!object.Equals(Color, other.Color)) return false;
 276      return Equals(_unknownFields, other._unknownFields);
 277    }
 278
 279    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 280    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 281    public override int GetHashCode() {
 282      int hash = 1;
 283      if (HasWithCollisions) hash ^= WithCollisions.GetHashCode();
 284      if (HasIsPointerBlocker) hash ^= IsPointerBlocker.GetHashCode();
 285      if (HasVisible) hash ^= Visible.GetHashCode();
 286      if (Src.Length != 0) hash ^= Src.GetHashCode();
 287      if (HasAssetId) hash ^= AssetId.GetHashCode();
 288      if (HasStyle) hash ^= Style.GetHashCode();
 289      if (color_ != null) hash ^= Color.GetHashCode();
 290      if (_unknownFields != null) {
 291        hash ^= _unknownFields.GetHashCode();
 292      }
 293      return hash;
 294    }
 295
 296    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 297    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 298    public override string ToString() {
 299      return pb::JsonFormatter.ToDiagnosticString(this);
 300    }
 301
 302    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 303    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 304    public void WriteTo(pb::CodedOutputStream output) {
 305    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 306      output.WriteRawMessage(this);
 307    #else
 308      if (HasWithCollisions) {
 309        output.WriteRawTag(8);
 310        output.WriteBool(WithCollisions);
 311      }
 312      if (HasIsPointerBlocker) {
 313        output.WriteRawTag(16);
 314        output.WriteBool(IsPointerBlocker);
 315      }
 316      if (HasVisible) {
 317        output.WriteRawTag(24);
 318        output.WriteBool(Visible);
 319      }
 320      if (Src.Length != 0) {
 321        output.WriteRawTag(34);
 322        output.WriteString(Src);
 323      }
 324      if (HasAssetId) {
 325        output.WriteRawTag(42);
 326        output.WriteString(AssetId);
 327      }
 328      if (HasStyle) {
 329        output.WriteRawTag(48);
 330        output.WriteInt32(Style);
 331      }
 332      if (color_ != null) {
 333        output.WriteRawTag(58);
 334        output.WriteMessage(Color);
 335      }
 336      if (_unknownFields != null) {
 337        _unknownFields.WriteTo(output);
 338      }
 339    #endif
 340    }
 341
 342    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 343    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 344    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 345    void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
 346      if (HasWithCollisions) {
 347        output.WriteRawTag(8);
 348        output.WriteBool(WithCollisions);
 349      }
 350      if (HasIsPointerBlocker) {
 351        output.WriteRawTag(16);
 352        output.WriteBool(IsPointerBlocker);
 353      }
 354      if (HasVisible) {
 355        output.WriteRawTag(24);
 356        output.WriteBool(Visible);
 357      }
 358      if (Src.Length != 0) {
 359        output.WriteRawTag(34);
 360        output.WriteString(Src);
 361      }
 362      if (HasAssetId) {
 363        output.WriteRawTag(42);
 364        output.WriteString(AssetId);
 365      }
 366      if (HasStyle) {
 367        output.WriteRawTag(48);
 368        output.WriteInt32(Style);
 369      }
 370      if (color_ != null) {
 371        output.WriteRawTag(58);
 372        output.WriteMessage(Color);
 373      }
 374      if (_unknownFields != null) {
 375        _unknownFields.WriteTo(ref output);
 376      }
 377    }
 378    #endif
 379
 380    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 381    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 382    public int CalculateSize() {
 383      int size = 0;
 384      if (HasWithCollisions) {
 385        size += 1 + 1;
 386      }
 387      if (HasIsPointerBlocker) {
 388        size += 1 + 1;
 389      }
 390      if (HasVisible) {
 391        size += 1 + 1;
 392      }
 393      if (Src.Length != 0) {
 394        size += 1 + pb::CodedOutputStream.ComputeStringSize(Src);
 395      }
 396      if (HasAssetId) {
 397        size += 1 + pb::CodedOutputStream.ComputeStringSize(AssetId);
 398      }
 399      if (HasStyle) {
 400        size += 1 + pb::CodedOutputStream.ComputeInt32Size(Style);
 401      }
 402      if (color_ != null) {
 403        size += 1 + pb::CodedOutputStream.ComputeMessageSize(Color);
 404      }
 405      if (_unknownFields != null) {
 406        size += _unknownFields.CalculateSize();
 407      }
 408      return size;
 409    }
 410
 411    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 412    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 413    public void MergeFrom(PBNFTShape other) {
 414      if (other == null) {
 415        return;
 416      }
 417      if (other.HasWithCollisions) {
 418        WithCollisions = other.WithCollisions;
 419      }
 420      if (other.HasIsPointerBlocker) {
 421        IsPointerBlocker = other.IsPointerBlocker;
 422      }
 423      if (other.HasVisible) {
 424        Visible = other.Visible;
 425      }
 426      if (other.Src.Length != 0) {
 427        Src = other.Src;
 428      }
 429      if (other.HasAssetId) {
 430        AssetId = other.AssetId;
 431      }
 432      if (other.HasStyle) {
 433        Style = other.Style;
 434      }
 435      if (other.color_ != null) {
 436        if (color_ == null) {
 437          Color = new global::Color3();
 438        }
 439        Color.MergeFrom(other.Color);
 440      }
 441      _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 442    }
 443
 444    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 445    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 446    public void MergeFrom(pb::CodedInputStream input) {
 447    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 448      input.ReadRawMessage(this);
 449    #else
 450      uint tag;
 451      while ((tag = input.ReadTag()) != 0) {
 452        switch(tag) {
 453          default:
 454            _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
 455            break;
 456          case 8: {
 457            WithCollisions = input.ReadBool();
 458            break;
 459          }
 460          case 16: {
 461            IsPointerBlocker = input.ReadBool();
 462            break;
 463          }
 464          case 24: {
 465            Visible = input.ReadBool();
 466            break;
 467          }
 468          case 34: {
 469            Src = input.ReadString();
 470            break;
 471          }
 472          case 42: {
 473            AssetId = input.ReadString();
 474            break;
 475          }
 476          case 48: {
 477            Style = input.ReadInt32();
 478            break;
 479          }
 480          case 58: {
 481            if (color_ == null) {
 482              Color = new global::Color3();
 483            }
 484            input.ReadMessage(Color);
 485            break;
 486          }
 487        }
 488      }
 489    #endif
 490    }
 491
 492    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 493    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 494    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 495    void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
 496      uint tag;
 497      while ((tag = input.ReadTag()) != 0) {
 498        switch(tag) {
 499          default:
 500            _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
 501            break;
 502          case 8: {
 503            WithCollisions = input.ReadBool();
 504            break;
 505          }
 506          case 16: {
 507            IsPointerBlocker = input.ReadBool();
 508            break;
 509          }
 510          case 24: {
 511            Visible = input.ReadBool();
 512            break;
 513          }
 514          case 34: {
 515            Src = input.ReadString();
 516            break;
 517          }
 518          case 42: {
 519            AssetId = input.ReadString();
 520            break;
 521          }
 522          case 48: {
 523            Style = input.ReadInt32();
 524            break;
 525          }
 526          case 58: {
 527            if (color_ == null) {
 528              Color = new global::Color3();
 529            }
 530            input.ReadMessage(Color);
 531            break;
 532          }
 533        }
 534      }
 535    }
 536    #endif
 537
 538  }
 539
 540  #endregion
 541
 542}
 543
 544#endregion Designer generated code

Methods/Properties

Descriptor()
NFTShapeReflection()