< Summary

Class:DCL.ECSComponents.PBGLTFShape
Assembly:DCL.ECSComponents.ProtobufData
File(s):/tmp/workspace/unity-renderer/unity-renderer/Assets/DCLPlugins/ECS7/ProtocolBuffers/Generated/PBFiles/GLTFShape.cs
Covered lines:47
Uncovered lines:62
Coverable lines:109
Total lines:397
Line coverage:43.1% (47 of 109)
Covered branches:0
Total branches:0

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity NPath complexity Sequence coverage
PBGLTFShape()0%110100%
get_Descriptor()0%2100%
PBGLTFShape(...)0%2100%
Clone()0%2100%
ClearWithCollisions()0%2100%
ClearIsPointerBlocker()0%2100%
ClearVisible()0%2100%
PBGLTFShape()0%110100%
Equals(...)0%110100%
Equals(...)0%29.37023.08%
GetHashCode()0%8.66058.33%
ToString()0%2100%
WriteTo(...)0%6.016093.33%
CalculateSize()0%42600%
MergeFrom(...)0%42600%
MergeFrom(...)0%7.297081.82%

File(s)

/tmp/workspace/unity-renderer/unity-renderer/Assets/DCLPlugins/ECS7/ProtocolBuffers/Generated/PBFiles/GLTFShape.cs

#LineLine coverage
 1// <auto-generated>
 2//     Generated by the protocol buffer compiler.  DO NOT EDIT!
 3//     source: GLTFShape.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 GLTFShape.proto</summary>
 15  public static partial class GLTFShapeReflection {
 16
 17    #region Descriptor
 18    /// <summary>File descriptor for GLTFShape.proto</summary>
 19    public static pbr::FileDescriptor Descriptor {
 20      get { return descriptor; }
 21    }
 22    private static pbr::FileDescriptor descriptor;
 23
 24    static GLTFShapeReflection() {
 25      byte[] descriptorData = global::System.Convert.FromBase64String(
 26          string.Concat(
 27            "Cg9HTFRGU2hhcGUucHJvdG8SEGRlY2VudHJhbGFuZC5lY3MipgEKC1BCR0xU",
 28            "RlNoYXBlEhwKD3dpdGhfY29sbGlzaW9ucxgBIAEoCEgAiAEBEh8KEmlzX3Bv",
 29            "aW50ZXJfYmxvY2tlchgCIAEoCEgBiAEBEhQKB3Zpc2libGUYAyABKAhIAogB",
 30            "ARILCgNzcmMYBCABKAlCEgoQX3dpdGhfY29sbGlzaW9uc0IVChNfaXNfcG9p",
 31            "bnRlcl9ibG9ja2VyQgoKCF92aXNpYmxlQhSqAhFEQ0wuRUNTQ29tcG9uZW50",
 32            "c2IGcHJvdG8z"));
 33      descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
 34          new pbr::FileDescriptor[] { },
 35          new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] {
 36            new pbr::GeneratedClrTypeInfo(typeof(global::DCL.ECSComponents.PBGLTFShape), global::DCL.ECSComponents.PBGLT
 37          }));
 38    }
 39    #endregion
 40
 41  }
 42  #region Messages
 43  public sealed partial class PBGLTFShape : pb::IMessage<PBGLTFShape>
 44  #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 45      , pb::IBufferMessage
 46  #endif
 47  {
 448    private static readonly pb::MessageParser<PBGLTFShape> _parser = new pb::MessageParser<PBGLTFShape>(() => new PBGLTF
 49    private pb::UnknownFieldSet _unknownFields;
 50    private int _hasBits0;
 51    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 52    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 053    public static pb::MessageParser<PBGLTFShape> Parser { get { return _parser; } }
 54
 55    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 56    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 57    public static pbr::MessageDescriptor Descriptor {
 058      get { return global::DCL.ECSComponents.GLTFShapeReflection.Descriptor.MessageTypes[0]; }
 59    }
 60
 61    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 62    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 63    pbr::MessageDescriptor pb::IMessage.Descriptor {
 064      get { return Descriptor; }
 65    }
 66
 67    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 68    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 169    public PBGLTFShape() {
 70      OnConstruction();
 171    }
 72
 73    partial void OnConstruction();
 74
 75    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 76    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 077    public PBGLTFShape(PBGLTFShape other) : this() {
 078      _hasBits0 = other._hasBits0;
 079      withCollisions_ = other.withCollisions_;
 080      isPointerBlocker_ = other.isPointerBlocker_;
 081      visible_ = other.visible_;
 082      src_ = other.src_;
 083      _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
 084    }
 85
 86    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 87    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 88    public PBGLTFShape Clone() {
 089      return new PBGLTFShape(this);
 90    }
 91
 92    /// <summary>Field number for the "with_collisions" field.</summary>
 93    public const int WithCollisionsFieldNumber = 1;
 94    private bool withCollisions_;
 95    /// <summary>
 96    /// @deprecated use MeshCollider instead https://github.com/decentraland/sdk/issues/366
 97    /// </summary>
 98    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 99    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 100    public bool WithCollisions {
 0101      get { if ((_hasBits0 & 1) != 0) { return withCollisions_; } else { return false; } }
 102      set {
 6103        _hasBits0 |= 1;
 6104        withCollisions_ = value;
 6105      }
 106    }
 107    /// <summary>Gets whether the "with_collisions" field is set</summary>
 108    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 109    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 110    public bool HasWithCollisions {
 0111      get { return (_hasBits0 & 1) != 0; }
 112    }
 113    /// <summary>Clears the value of the "with_collisions" field</summary>
 114    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 115    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 116    public void ClearWithCollisions() {
 0117      _hasBits0 &= ~1;
 0118    }
 119
 120    /// <summary>Field number for the "is_pointer_blocker" field.</summary>
 121    public const int IsPointerBlockerFieldNumber = 2;
 122    private bool isPointerBlocker_;
 123    /// <summary>
 124    /// @deprecated use MeshCollider instead https://github.com/decentraland/sdk/issues/366
 125    /// </summary>
 126    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 127    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 128    public bool IsPointerBlocker {
 0129      get { if ((_hasBits0 & 2) != 0) { return isPointerBlocker_; } else { return false; } }
 130      set {
 6131        _hasBits0 |= 2;
 6132        isPointerBlocker_ = value;
 6133      }
 134    }
 135    /// <summary>Gets whether the "is_pointer_blocker" field is set</summary>
 136    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 137    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 138    public bool HasIsPointerBlocker {
 0139      get { return (_hasBits0 & 2) != 0; }
 140    }
 141    /// <summary>Clears the value of the "is_pointer_blocker" field</summary>
 142    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 143    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 144    public void ClearIsPointerBlocker() {
 0145      _hasBits0 &= ~2;
 0146    }
 147
 148    /// <summary>Field number for the "visible" field.</summary>
 149    public const int VisibleFieldNumber = 3;
 150    private bool visible_;
 151    /// <summary>
 152    /// @deprecated use HiddenComponent instead https://github.com/decentraland/sdk/issues/353
 153    /// </summary>
 154    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 155    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 156    public bool Visible {
 0157      get { if ((_hasBits0 & 4) != 0) { return visible_; } else { return false; } }
 158      set {
 6159        _hasBits0 |= 4;
 6160        visible_ = value;
 6161      }
 162    }
 163    /// <summary>Gets whether the "visible" field is set</summary>
 164    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 165    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 166    public bool HasVisible {
 0167      get { return (_hasBits0 & 4) != 0; }
 168    }
 169    /// <summary>Clears the value of the "visible" field</summary>
 170    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 171    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 172    public void ClearVisible() {
 0173      _hasBits0 &= ~4;
 0174    }
 175
 176    /// <summary>Field number for the "src" field.</summary>
 177    public const int SrcFieldNumber = 4;
 1178    private string src_ = "";
 179    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 180    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 181    public string Src {
 0182      get { return src_; }
 183      set {
 0184        src_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
 0185      }
 186    }
 187
 188    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 189    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 190    public override bool Equals(object other) {
 12191      return Equals(other as PBGLTFShape);
 192    }
 193
 194    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 195    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 196    public bool Equals(PBGLTFShape other) {
 12197      if (ReferenceEquals(other, null)) {
 0198        return false;
 199      }
 12200      if (ReferenceEquals(other, this)) {
 12201        return true;
 202      }
 0203      if (WithCollisions != other.WithCollisions) return false;
 0204      if (IsPointerBlocker != other.IsPointerBlocker) return false;
 0205      if (Visible != other.Visible) return false;
 0206      if (Src != other.Src) return false;
 0207      return Equals(_unknownFields, other._unknownFields);
 208    }
 209
 210    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 211    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 212    public override int GetHashCode() {
 16213      int hash = 1;
 16214      if (HasWithCollisions) hash ^= WithCollisions.GetHashCode();
 16215      if (HasIsPointerBlocker) hash ^= IsPointerBlocker.GetHashCode();
 16216      if (HasVisible) hash ^= Visible.GetHashCode();
 16217      if (Src.Length != 0) hash ^= Src.GetHashCode();
 16218      if (_unknownFields != null) {
 0219        hash ^= _unknownFields.GetHashCode();
 220      }
 16221      return hash;
 222    }
 223
 224    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 225    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 226    public override string ToString() {
 0227      return pb::JsonFormatter.ToDiagnosticString(this);
 228    }
 229
 230    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 231    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 232    public void WriteTo(pb::CodedOutputStream output) {
 233    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 234      output.WriteRawMessage(this);
 235    #else
 4236      if (HasWithCollisions) {
 3237        output.WriteRawTag(8);
 3238        output.WriteBool(WithCollisions);
 239      }
 4240      if (HasIsPointerBlocker) {
 3241        output.WriteRawTag(16);
 3242        output.WriteBool(IsPointerBlocker);
 243      }
 4244      if (HasVisible) {
 3245        output.WriteRawTag(24);
 3246        output.WriteBool(Visible);
 247      }
 4248      if (Src.Length != 0) {
 3249        output.WriteRawTag(34);
 3250        output.WriteString(Src);
 251      }
 4252      if (_unknownFields != null) {
 0253        _unknownFields.WriteTo(output);
 254      }
 255    #endif
 4256    }
 257
 258    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 259    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 260    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 261    void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
 262      if (HasWithCollisions) {
 263        output.WriteRawTag(8);
 264        output.WriteBool(WithCollisions);
 265      }
 266      if (HasIsPointerBlocker) {
 267        output.WriteRawTag(16);
 268        output.WriteBool(IsPointerBlocker);
 269      }
 270      if (HasVisible) {
 271        output.WriteRawTag(24);
 272        output.WriteBool(Visible);
 273      }
 274      if (Src.Length != 0) {
 275        output.WriteRawTag(34);
 276        output.WriteString(Src);
 277      }
 278      if (_unknownFields != null) {
 279        _unknownFields.WriteTo(ref output);
 280      }
 281    }
 282    #endif
 283
 284    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 285    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 286    public int CalculateSize() {
 0287      int size = 0;
 0288      if (HasWithCollisions) {
 0289        size += 1 + 1;
 290      }
 0291      if (HasIsPointerBlocker) {
 0292        size += 1 + 1;
 293      }
 0294      if (HasVisible) {
 0295        size += 1 + 1;
 296      }
 0297      if (Src.Length != 0) {
 0298        size += 1 + pb::CodedOutputStream.ComputeStringSize(Src);
 299      }
 0300      if (_unknownFields != null) {
 0301        size += _unknownFields.CalculateSize();
 302      }
 0303      return size;
 304    }
 305
 306    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 307    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 308    public void MergeFrom(PBGLTFShape other) {
 0309      if (other == null) {
 0310        return;
 311      }
 0312      if (other.HasWithCollisions) {
 0313        WithCollisions = other.WithCollisions;
 314      }
 0315      if (other.HasIsPointerBlocker) {
 0316        IsPointerBlocker = other.IsPointerBlocker;
 317      }
 0318      if (other.HasVisible) {
 0319        Visible = other.Visible;
 320      }
 0321      if (other.Src.Length != 0) {
 0322        Src = other.Src;
 323      }
 0324      _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 0325    }
 326
 327    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 328    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 329    public void MergeFrom(pb::CodedInputStream input) {
 330    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 331      input.ReadRawMessage(this);
 332    #else
 333      uint tag;
 15334      while ((tag = input.ReadTag()) != 0) {
 335        switch(tag) {
 336          default:
 0337            _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
 0338            break;
 339          case 8: {
 3340            WithCollisions = input.ReadBool();
 3341            break;
 342          }
 343          case 16: {
 3344            IsPointerBlocker = input.ReadBool();
 3345            break;
 346          }
 347          case 24: {
 3348            Visible = input.ReadBool();
 3349            break;
 350          }
 351          case 34: {
 3352            Src = input.ReadString();
 353            break;
 354          }
 355        }
 356      }
 357    #endif
 3358    }
 359
 360    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 361    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 362    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 363    void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
 364      uint tag;
 365      while ((tag = input.ReadTag()) != 0) {
 366        switch(tag) {
 367          default:
 368            _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
 369            break;
 370          case 8: {
 371            WithCollisions = input.ReadBool();
 372            break;
 373          }
 374          case 16: {
 375            IsPointerBlocker = input.ReadBool();
 376            break;
 377          }
 378          case 24: {
 379            Visible = input.ReadBool();
 380            break;
 381          }
 382          case 34: {
 383            Src = input.ReadString();
 384            break;
 385          }
 386        }
 387      }
 388    }
 389    #endif
 390
 391  }
 392
 393  #endregion
 394
 395}
 396
 397#endregion Designer generated code