< Summary

Class:DCL.ECSComponents.PBGltfContainer
Assembly:Decentraland.Protocol.GeneratedCode
File(s):/tmp/workspace/unity-renderer/unity-renderer/Assets/Scripts/MainScripts/DCL/DecentralandProtocol/GltfContainer.gen.cs
Covered lines:35
Uncovered lines:55
Coverable lines:90
Total lines:354
Line coverage:38.8% (35 of 90)
Covered branches:0
Total branches:0
Covered methods:13
Total methods:25
Method coverage:52% (13 of 25)

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity NPath complexity Sequence coverage
PBGltfContainer()0%110100%
get_Descriptor()0%2100%
PBGltfContainer(...)0%2100%
Clone()0%2100%
PBGltfContainer()0%110100%
ClearVisibleMeshesCollisionMask()0%2100%
ClearInvisibleMeshesCollisionMask()0%2100%
Equals(...)0%2100%
Equals(...)0%42600%
GetHashCode()0%30500%
ToString()0%2100%
WriteTo(...)0%6.815058.33%
CalculateSize()0%5.685070%
MergeFrom(...)0%30500%
MergeFrom(...)0%9.295044.44%

File(s)

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

#LineLine coverage
 1// <auto-generated>
 2//     Generated by the protocol buffer compiler.  DO NOT EDIT!
 3//     source: decentraland/sdk/components/gltf_container.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/gltf_container.proto</summar
 15  public static partial class GltfContainerReflection {
 16
 17    #region Descriptor
 18    /// <summary>File descriptor for decentraland/sdk/components/gltf_container.proto</summary>
 19    public static pbr::FileDescriptor Descriptor {
 20      get { return descriptor; }
 21    }
 22    private static pbr::FileDescriptor descriptor;
 23
 24    static GltfContainerReflection() {
 25      byte[] descriptorData = global::System.Convert.FromBase64String(
 26          string.Concat(
 27            "CjBkZWNlbnRyYWxhbmQvc2RrL2NvbXBvbmVudHMvZ2x0Zl9jb250YWluZXIu",
 28            "cHJvdG8SG2RlY2VudHJhbGFuZC5zZGsuY29tcG9uZW50cyLKAQoPUEJHbHRm",
 29            "Q29udGFpbmVyEgsKA3NyYxgBIAEoCRIqCh12aXNpYmxlX21lc2hlc19jb2xs",
 30            "aXNpb25fbWFzaxgEIAEoDUgAiAEBEiwKH2ludmlzaWJsZV9tZXNoZXNfY29s",
 31            "bGlzaW9uX21hc2sYBSABKA1IAYgBAUIgCh5fdmlzaWJsZV9tZXNoZXNfY29s",
 32            "bGlzaW9uX21hc2tCIgogX2ludmlzaWJsZV9tZXNoZXNfY29sbGlzaW9uX21h",
 33            "c2tKBAgCEANKBAgDEARCFKoCEURDTC5FQ1NDb21wb25lbnRzYgZwcm90bzM="));
 34      descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
 35          new pbr::FileDescriptor[] { },
 36          new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] {
 37            new pbr::GeneratedClrTypeInfo(typeof(global::DCL.ECSComponents.PBGltfContainer), global::DCL.ECSComponents.P
 38          }));
 39    }
 40    #endregion
 41
 42  }
 43  #region Messages
 44  /// <summary>
 45  /// GltfContainer loads a GLTF file (and any additional files packaged inside) attached to an Entity.
 46  ///
 47  /// This allows the use of custom models, materials, collision boundaries and shapes that can't be
 48  /// achieved using MeshRenderer, MeshCollider and other standard components.
 49  /// </summary>
 50  public sealed partial class PBGltfContainer : pb::IMessage<PBGltfContainer>
 51  #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 52      , pb::IBufferMessage
 53  #endif
 54  {
 155    private static readonly pb::MessageParser<PBGltfContainer> _parser = new pb::MessageParser<PBGltfContainer>(() => ne
 56    private pb::UnknownFieldSet _unknownFields;
 57    private int _hasBits0;
 58    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 59    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 060    public static pb::MessageParser<PBGltfContainer> Parser { get { return _parser; } }
 61
 62    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 63    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 64    public static pbr::MessageDescriptor Descriptor {
 065      get { return global::DCL.ECSComponents.GltfContainerReflection.Descriptor.MessageTypes[0]; }
 66    }
 67
 68    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 69    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 70    pbr::MessageDescriptor pb::IMessage.Descriptor {
 071      get { return Descriptor; }
 72    }
 73
 74    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 75    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 5476    public PBGltfContainer() {
 77      OnConstruction();
 5478    }
 79
 80    partial void OnConstruction();
 81
 82    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 83    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 084    public PBGltfContainer(PBGltfContainer other) : this() {
 085      _hasBits0 = other._hasBits0;
 086      src_ = other.src_;
 087      visibleMeshesCollisionMask_ = other.visibleMeshesCollisionMask_;
 088      invisibleMeshesCollisionMask_ = other.invisibleMeshesCollisionMask_;
 089      _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
 090    }
 91
 92    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 93    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 94    public PBGltfContainer Clone() {
 095      return new PBGltfContainer(this);
 96    }
 97
 98    /// <summary>Field number for the "src" field.</summary>
 99    public const int SrcFieldNumber = 1;
 54100    private string src_ = "";
 101    /// <summary>
 102    /// the GLTF file path as listed in the scene's manifest.
 103    /// </summary>
 104    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 105    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 106    public string Src {
 177107      get { return src_; }
 108      set {
 53109        src_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
 53110      }
 111    }
 112
 113    /// <summary>Field number for the "visible_meshes_collision_mask" field.</summary>
 114    public const int VisibleMeshesCollisionMaskFieldNumber = 4;
 115    private uint visibleMeshesCollisionMask_;
 116    /// <summary>
 117    /// default: 0
 118    /// </summary>
 119    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 120    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 121    public uint VisibleMeshesCollisionMask {
 408122      get { if ((_hasBits0 & 1) != 0) { return visibleMeshesCollisionMask_; } else { return 0; } }
 123      set {
 28124        _hasBits0 |= 1;
 28125        visibleMeshesCollisionMask_ = value;
 28126      }
 127    }
 128    /// <summary>Gets whether the "visible_meshes_collision_mask" field is set</summary>
 129    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 130    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 131    public bool HasVisibleMeshesCollisionMask {
 8132      get { return (_hasBits0 & 1) != 0; }
 133    }
 134    /// <summary>Clears the value of the "visible_meshes_collision_mask" field</summary>
 135    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 136    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 137    public void ClearVisibleMeshesCollisionMask() {
 0138      _hasBits0 &= ~1;
 0139    }
 140
 141    /// <summary>Field number for the "invisible_meshes_collision_mask" field.</summary>
 142    public const int InvisibleMeshesCollisionMaskFieldNumber = 5;
 143    private uint invisibleMeshesCollisionMask_;
 144    /// <summary>
 145    /// default: CL_POINTER | CL_PHYSICS
 146    /// </summary>
 147    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 148    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 149    public uint InvisibleMeshesCollisionMask {
 176150      get { if ((_hasBits0 & 2) != 0) { return invisibleMeshesCollisionMask_; } else { return 0; } }
 151      set {
 28152        _hasBits0 |= 2;
 28153        invisibleMeshesCollisionMask_ = value;
 28154      }
 155    }
 156    /// <summary>Gets whether the "invisible_meshes_collision_mask" field is set</summary>
 157    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 158    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 159    public bool HasInvisibleMeshesCollisionMask {
 152160      get { return (_hasBits0 & 2) != 0; }
 161    }
 162    /// <summary>Clears the value of the "invisible_meshes_collision_mask" field</summary>
 163    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 164    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 165    public void ClearInvisibleMeshesCollisionMask() {
 0166      _hasBits0 &= ~2;
 0167    }
 168
 169    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 170    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 171    public override bool Equals(object other) {
 0172      return Equals(other as PBGltfContainer);
 173    }
 174
 175    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 176    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 177    public bool Equals(PBGltfContainer other) {
 0178      if (ReferenceEquals(other, null)) {
 0179        return false;
 180      }
 0181      if (ReferenceEquals(other, this)) {
 0182        return true;
 183      }
 0184      if (Src != other.Src) return false;
 0185      if (VisibleMeshesCollisionMask != other.VisibleMeshesCollisionMask) return false;
 0186      if (InvisibleMeshesCollisionMask != other.InvisibleMeshesCollisionMask) return false;
 0187      return Equals(_unknownFields, other._unknownFields);
 188    }
 189
 190    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 191    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 192    public override int GetHashCode() {
 0193      int hash = 1;
 0194      if (Src.Length != 0) hash ^= Src.GetHashCode();
 0195      if (HasVisibleMeshesCollisionMask) hash ^= VisibleMeshesCollisionMask.GetHashCode();
 0196      if (HasInvisibleMeshesCollisionMask) hash ^= InvisibleMeshesCollisionMask.GetHashCode();
 0197      if (_unknownFields != null) {
 0198        hash ^= _unknownFields.GetHashCode();
 199      }
 0200      return hash;
 201    }
 202
 203    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 204    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 205    public override string ToString() {
 0206      return pb::JsonFormatter.ToDiagnosticString(this);
 207    }
 208
 209    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 210    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 211    public void WriteTo(pb::CodedOutputStream output) {
 212    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 213      output.WriteRawMessage(this);
 214    #else
 4215      if (Src.Length != 0) {
 4216        output.WriteRawTag(10);
 4217        output.WriteString(Src);
 218      }
 4219      if (HasVisibleMeshesCollisionMask) {
 0220        output.WriteRawTag(32);
 0221        output.WriteUInt32(VisibleMeshesCollisionMask);
 222      }
 4223      if (HasInvisibleMeshesCollisionMask) {
 0224        output.WriteRawTag(40);
 0225        output.WriteUInt32(InvisibleMeshesCollisionMask);
 226      }
 4227      if (_unknownFields != null) {
 0228        _unknownFields.WriteTo(output);
 229      }
 230    #endif
 4231    }
 232
 233    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 234    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 235    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 236    void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
 237      if (Src.Length != 0) {
 238        output.WriteRawTag(10);
 239        output.WriteString(Src);
 240      }
 241      if (HasVisibleMeshesCollisionMask) {
 242        output.WriteRawTag(32);
 243        output.WriteUInt32(VisibleMeshesCollisionMask);
 244      }
 245      if (HasInvisibleMeshesCollisionMask) {
 246        output.WriteRawTag(40);
 247        output.WriteUInt32(InvisibleMeshesCollisionMask);
 248      }
 249      if (_unknownFields != null) {
 250        _unknownFields.WriteTo(ref output);
 251      }
 252    }
 253    #endif
 254
 255    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 256    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 257    public int CalculateSize() {
 4258      int size = 0;
 4259      if (Src.Length != 0) {
 4260        size += 1 + pb::CodedOutputStream.ComputeStringSize(Src);
 261      }
 4262      if (HasVisibleMeshesCollisionMask) {
 0263        size += 1 + pb::CodedOutputStream.ComputeUInt32Size(VisibleMeshesCollisionMask);
 264      }
 4265      if (HasInvisibleMeshesCollisionMask) {
 0266        size += 1 + pb::CodedOutputStream.ComputeUInt32Size(InvisibleMeshesCollisionMask);
 267      }
 4268      if (_unknownFields != null) {
 0269        size += _unknownFields.CalculateSize();
 270      }
 4271      return size;
 272    }
 273
 274    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 275    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 276    public void MergeFrom(PBGltfContainer other) {
 0277      if (other == null) {
 0278        return;
 279      }
 0280      if (other.Src.Length != 0) {
 0281        Src = other.Src;
 282      }
 0283      if (other.HasVisibleMeshesCollisionMask) {
 0284        VisibleMeshesCollisionMask = other.VisibleMeshesCollisionMask;
 285      }
 0286      if (other.HasInvisibleMeshesCollisionMask) {
 0287        InvisibleMeshesCollisionMask = other.InvisibleMeshesCollisionMask;
 288      }
 0289      _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 0290    }
 291
 292    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 293    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 294    public void MergeFrom(pb::CodedInputStream input) {
 295    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 296      input.ReadRawMessage(this);
 297    #else
 298      uint tag;
 8299      while ((tag = input.ReadTag()) != 0) {
 300        switch(tag) {
 301          default:
 0302            _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
 0303            break;
 304          case 10: {
 4305            Src = input.ReadString();
 4306            break;
 307          }
 308          case 32: {
 0309            VisibleMeshesCollisionMask = input.ReadUInt32();
 0310            break;
 311          }
 312          case 40: {
 0313            InvisibleMeshesCollisionMask = input.ReadUInt32();
 314            break;
 315          }
 316        }
 317      }
 318    #endif
 4319    }
 320
 321    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 322    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 323    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 324    void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
 325      uint tag;
 326      while ((tag = input.ReadTag()) != 0) {
 327        switch(tag) {
 328          default:
 329            _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
 330            break;
 331          case 10: {
 332            Src = input.ReadString();
 333            break;
 334          }
 335          case 32: {
 336            VisibleMeshesCollisionMask = input.ReadUInt32();
 337            break;
 338          }
 339          case 40: {
 340            InvisibleMeshesCollisionMask = input.ReadUInt32();
 341            break;
 342          }
 343        }
 344      }
 345    }
 346    #endif
 347
 348  }
 349
 350  #endregion
 351
 352}
 353
 354#endregion Designer generated code