< Summary

Class:DCL.ECSComponents.PBNFTShape
Assembly:DCL.Components.ProtobufData
File(s):/tmp/workspace/unity-renderer/unity-renderer/Assets/DCLPlugins/ECS7/ProtocolBuffers/Generated/PBFiles/NFTShape.cs
Covered lines:56
Uncovered lines:90
Coverable lines:146
Total lines:350
Line coverage:38.3% (56 of 146)
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%
Equals(...)0%2100%
Equals(...)0%1101000%
GetHashCode()0%90900%
ToString()0%2100%
WriteTo(...)0%11.019070.83%
CalculateSize()0%9.899077.78%
MergeFrom(...)0%1101000%
MergeFrom(...)0%22.7512057.89%

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 {
 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            "Cg5ORlRTaGFwZS5wcm90bxIQZGVjZW50cmFsYW5kLmVjcxoTY29tbW9uL0Nv",
 28            "bG9yMy5wcm90byKYAQoKUEJORlRTaGFwZRIXCg93aXRoX2NvbGxpc2lvbnMY",
 29            "ASABKAgSGgoSaXNfcG9pbnRlcl9ibG9ja2VyGAIgASgIEg8KB3Zpc2libGUY",
 30            "AyABKAgSCwoDc3JjGAQgASgJEhAKCGFzc2V0X2lkGAUgASgJEg0KBXN0eWxl",
 31            "GAYgASgFEhYKBWNvbG9yGAcgASgLMgcuQ29sb3IzQhSqAhFEQ0wuRUNTQ29t",
 32            "cG9uZW50c2IGcHJvdG8z"));
 33      descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
 34          new pbr::FileDescriptor[] { global::Color3Reflection.Descriptor, },
 35          new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] {
 36            new pbr::GeneratedClrTypeInfo(typeof(global::DCL.ECSComponents.PBNFTShape), global::DCL.ECSComponents.PBNFTS
 37          }));
 38    }
 39    #endregion
 40
 41  }
 42  #region Messages
 43  public sealed partial class PBNFTShape : pb::IMessage<PBNFTShape> {
 444    private static readonly pb::MessageParser<PBNFTShape> _parser = new pb::MessageParser<PBNFTShape>(() => new PBNFTSha
 45    private pb::UnknownFieldSet _unknownFields;
 46    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 047    public static pb::MessageParser<PBNFTShape> Parser { get { return _parser; } }
 48
 49    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 50    public static pbr::MessageDescriptor Descriptor {
 051      get { return global::DCL.ECSComponents.NFTShapeReflection.Descriptor.MessageTypes[0]; }
 52    }
 53
 54    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 55    pbr::MessageDescriptor pb::IMessage.Descriptor {
 056      get { return Descriptor; }
 57    }
 58
 59    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 1560    public PBNFTShape() {
 61      OnConstruction();
 1562    }
 63
 64    partial void OnConstruction();
 65
 66    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 067    public PBNFTShape(PBNFTShape other) : this() {
 068      withCollisions_ = other.withCollisions_;
 069      isPointerBlocker_ = other.isPointerBlocker_;
 070      visible_ = other.visible_;
 071      src_ = other.src_;
 072      assetId_ = other.assetId_;
 073      style_ = other.style_;
 074      color_ = other.color_ != null ? other.color_.Clone() : null;
 075      _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
 076    }
 77
 78    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 79    public PBNFTShape Clone() {
 080      return new PBNFTShape(this);
 81    }
 82
 83    /// <summary>Field number for the "with_collisions" field.</summary>
 84    public const int WithCollisionsFieldNumber = 1;
 85    private bool withCollisions_;
 86    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 87    public bool WithCollisions {
 088      get { return withCollisions_; }
 89      set {
 190        withCollisions_ = value;
 191      }
 92    }
 93
 94    /// <summary>Field number for the "is_pointer_blocker" field.</summary>
 95    public const int IsPointerBlockerFieldNumber = 2;
 96    private bool isPointerBlocker_;
 97    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 98    public bool IsPointerBlocker {
 099      get { return isPointerBlocker_; }
 100      set {
 0101        isPointerBlocker_ = value;
 0102      }
 103    }
 104
 105    /// <summary>Field number for the "visible" field.</summary>
 106    public const int VisibleFieldNumber = 3;
 107    private bool visible_;
 108    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 109    public bool Visible {
 0110      get { return visible_; }
 111      set {
 1112        visible_ = value;
 1113      }
 114    }
 115
 116    /// <summary>Field number for the "src" field.</summary>
 117    public const int SrcFieldNumber = 4;
 15118    private string src_ = "";
 119    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 120    public string Src {
 0121      get { return src_; }
 122      set {
 8123        src_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
 8124      }
 125    }
 126
 127    /// <summary>Field number for the "asset_id" field.</summary>
 128    public const int AssetIdFieldNumber = 5;
 15129    private string assetId_ = "";
 130    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 131    public string AssetId {
 0132      get { return assetId_; }
 133      set {
 0134        assetId_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
 0135      }
 136    }
 137
 138    /// <summary>Field number for the "style" field.</summary>
 139    public const int StyleFieldNumber = 6;
 140    private int style_;
 141    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 142    public int Style {
 0143      get { return style_; }
 144      set {
 0145        style_ = value;
 0146      }
 147    }
 148
 149    /// <summary>Field number for the "color" field.</summary>
 150    public const int ColorFieldNumber = 7;
 151    private global::Color3 color_;
 152    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 153    public global::Color3 Color {
 24154      get { return color_; }
 155      set {
 8156        color_ = value;
 8157      }
 158    }
 159
 160    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 161    public override bool Equals(object other) {
 0162      return Equals(other as PBNFTShape);
 163    }
 164
 165    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 166    public bool Equals(PBNFTShape other) {
 0167      if (ReferenceEquals(other, null)) {
 0168        return false;
 169      }
 0170      if (ReferenceEquals(other, this)) {
 0171        return true;
 172      }
 0173      if (WithCollisions != other.WithCollisions) return false;
 0174      if (IsPointerBlocker != other.IsPointerBlocker) return false;
 0175      if (Visible != other.Visible) return false;
 0176      if (Src != other.Src) return false;
 0177      if (AssetId != other.AssetId) return false;
 0178      if (Style != other.Style) return false;
 0179      if (!object.Equals(Color, other.Color)) return false;
 0180      return Equals(_unknownFields, other._unknownFields);
 181    }
 182
 183    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 184    public override int GetHashCode() {
 0185      int hash = 1;
 0186      if (WithCollisions != false) hash ^= WithCollisions.GetHashCode();
 0187      if (IsPointerBlocker != false) hash ^= IsPointerBlocker.GetHashCode();
 0188      if (Visible != false) hash ^= Visible.GetHashCode();
 0189      if (Src.Length != 0) hash ^= Src.GetHashCode();
 0190      if (AssetId.Length != 0) hash ^= AssetId.GetHashCode();
 0191      if (Style != 0) hash ^= Style.GetHashCode();
 0192      if (color_ != null) hash ^= Color.GetHashCode();
 0193      if (_unknownFields != null) {
 0194        hash ^= _unknownFields.GetHashCode();
 195      }
 0196      return hash;
 197    }
 198
 199    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 200    public override string ToString() {
 0201      return pb::JsonFormatter.ToDiagnosticString(this);
 202    }
 203
 204    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 205    public void WriteTo(pb::CodedOutputStream output) {
 4206      if (WithCollisions != false) {
 1207        output.WriteRawTag(8);
 1208        output.WriteBool(WithCollisions);
 209      }
 4210      if (IsPointerBlocker != false) {
 1211        output.WriteRawTag(16);
 1212        output.WriteBool(IsPointerBlocker);
 213      }
 4214      if (Visible != false) {
 0215        output.WriteRawTag(24);
 0216        output.WriteBool(Visible);
 217      }
 4218      if (Src.Length != 0) {
 3219        output.WriteRawTag(34);
 3220        output.WriteString(Src);
 221      }
 4222      if (AssetId.Length != 0) {
 0223        output.WriteRawTag(42);
 0224        output.WriteString(AssetId);
 225      }
 4226      if (Style != 0) {
 0227        output.WriteRawTag(48);
 0228        output.WriteInt32(Style);
 229      }
 4230      if (color_ != null) {
 3231        output.WriteRawTag(58);
 3232        output.WriteMessage(Color);
 233      }
 4234      if (_unknownFields != null) {
 0235        _unknownFields.WriteTo(output);
 236      }
 4237    }
 238
 239    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 240    public int CalculateSize() {
 3241      int size = 0;
 3242      if (WithCollisions != false) {
 1243        size += 1 + 1;
 244      }
 3245      if (IsPointerBlocker != false) {
 1246        size += 1 + 1;
 247      }
 3248      if (Visible != false) {
 0249        size += 1 + 1;
 250      }
 3251      if (Src.Length != 0) {
 3252        size += 1 + pb::CodedOutputStream.ComputeStringSize(Src);
 253      }
 3254      if (AssetId.Length != 0) {
 0255        size += 1 + pb::CodedOutputStream.ComputeStringSize(AssetId);
 256      }
 3257      if (Style != 0) {
 0258        size += 1 + pb::CodedOutputStream.ComputeInt32Size(Style);
 259      }
 3260      if (color_ != null) {
 3261        size += 1 + pb::CodedOutputStream.ComputeMessageSize(Color);
 262      }
 3263      if (_unknownFields != null) {
 0264        size += _unknownFields.CalculateSize();
 265      }
 3266      return size;
 267    }
 268
 269    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 270    public void MergeFrom(PBNFTShape other) {
 0271      if (other == null) {
 0272        return;
 273      }
 0274      if (other.WithCollisions != false) {
 0275        WithCollisions = other.WithCollisions;
 276      }
 0277      if (other.IsPointerBlocker != false) {
 0278        IsPointerBlocker = other.IsPointerBlocker;
 279      }
 0280      if (other.Visible != false) {
 0281        Visible = other.Visible;
 282      }
 0283      if (other.Src.Length != 0) {
 0284        Src = other.Src;
 285      }
 0286      if (other.AssetId.Length != 0) {
 0287        AssetId = other.AssetId;
 288      }
 0289      if (other.Style != 0) {
 0290        Style = other.Style;
 291      }
 0292      if (other.color_ != null) {
 0293        if (color_ == null) {
 0294          Color = new global::Color3();
 295        }
 0296        Color.MergeFrom(other.Color);
 297      }
 0298      _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 0299    }
 300
 301    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 302    public void MergeFrom(pb::CodedInputStream input) {
 303      uint tag;
 11304      while ((tag = input.ReadTag()) != 0) {
 305        switch(tag) {
 306          default:
 0307            _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
 0308            break;
 309          case 8: {
 1310            WithCollisions = input.ReadBool();
 1311            break;
 312          }
 313          case 16: {
 1314            IsPointerBlocker = input.ReadBool();
 1315            break;
 316          }
 317          case 24: {
 0318            Visible = input.ReadBool();
 0319            break;
 320          }
 321          case 34: {
 3322            Src = input.ReadString();
 3323            break;
 324          }
 325          case 42: {
 0326            AssetId = input.ReadString();
 0327            break;
 328          }
 329          case 48: {
 0330            Style = input.ReadInt32();
 0331            break;
 332          }
 333          case 58: {
 3334            if (color_ == null) {
 3335              Color = new global::Color3();
 336            }
 3337            input.ReadMessage(Color);
 338            break;
 339          }
 340        }
 341      }
 3342    }
 343
 344  }
 345
 346  #endregion
 347
 348}
 349
 350#endregion Designer generated code