< 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:7
Uncovered lines:44
Coverable lines:51
Total lines:237
Line coverage:13.7% (7 of 51)
Covered branches:0
Total branches:0

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%
Equals(...)0%2100%
Equals(...)0%20400%
GetHashCode()0%12300%
ToString()0%2100%
WriteTo(...)0%12300%
CalculateSize()0%12300%
MergeFrom(...)0%12300%
MergeFrom(...)0%12300%

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            "cHJvdG8SG2RlY2VudHJhbGFuZC5zZGsuY29tcG9uZW50cyIeCg9QQkdsdGZD",
 29            "b250YWluZXISCwoDc3JjGAEgASgJQhSqAhFEQ0wuRUNTQ29tcG9uZW50c2IG",
 30            "cHJvdG8z"));
 31      descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
 32          new pbr::FileDescriptor[] { },
 33          new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] {
 34            new pbr::GeneratedClrTypeInfo(typeof(global::DCL.ECSComponents.PBGltfContainer), global::DCL.ECSComponents.P
 35          }));
 36    }
 37    #endregion
 38
 39  }
 40  #region Messages
 41  public sealed partial class PBGltfContainer : pb::IMessage<PBGltfContainer>
 42  #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 43      , pb::IBufferMessage
 44  #endif
 45  {
 146    private static readonly pb::MessageParser<PBGltfContainer> _parser = new pb::MessageParser<PBGltfContainer>(() => ne
 47    private pb::UnknownFieldSet _unknownFields;
 48    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 49    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 050    public static pb::MessageParser<PBGltfContainer> Parser { get { return _parser; } }
 51
 52    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 53    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 54    public static pbr::MessageDescriptor Descriptor {
 055      get { return global::DCL.ECSComponents.GltfContainerReflection.Descriptor.MessageTypes[0]; }
 56    }
 57
 58    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 59    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 60    pbr::MessageDescriptor pb::IMessage.Descriptor {
 061      get { return Descriptor; }
 62    }
 63
 64    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 65    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 1266    public PBGltfContainer() {
 67      OnConstruction();
 1268    }
 69
 70    partial void OnConstruction();
 71
 72    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 73    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 074    public PBGltfContainer(PBGltfContainer other) : this() {
 075      src_ = other.src_;
 076      _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
 077    }
 78
 79    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 80    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 81    public PBGltfContainer Clone() {
 082      return new PBGltfContainer(this);
 83    }
 84
 85    /// <summary>Field number for the "src" field.</summary>
 86    public const int SrcFieldNumber = 1;
 1287    private string src_ = "";
 88    /// <summary>
 89    /// which file to load
 90    /// </summary>
 91    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 92    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 93    public string Src {
 4894      get { return src_; }
 95      set {
 1296        src_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
 1297      }
 98    }
 99
 100    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 101    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 102    public override bool Equals(object other) {
 0103      return Equals(other as PBGltfContainer);
 104    }
 105
 106    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 107    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 108    public bool Equals(PBGltfContainer other) {
 0109      if (ReferenceEquals(other, null)) {
 0110        return false;
 111      }
 0112      if (ReferenceEquals(other, this)) {
 0113        return true;
 114      }
 0115      if (Src != other.Src) return false;
 0116      return Equals(_unknownFields, other._unknownFields);
 117    }
 118
 119    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 120    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 121    public override int GetHashCode() {
 0122      int hash = 1;
 0123      if (Src.Length != 0) hash ^= Src.GetHashCode();
 0124      if (_unknownFields != null) {
 0125        hash ^= _unknownFields.GetHashCode();
 126      }
 0127      return hash;
 128    }
 129
 130    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 131    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 132    public override string ToString() {
 0133      return pb::JsonFormatter.ToDiagnosticString(this);
 134    }
 135
 136    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 137    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 138    public void WriteTo(pb::CodedOutputStream output) {
 139    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 140      output.WriteRawMessage(this);
 141    #else
 0142      if (Src.Length != 0) {
 0143        output.WriteRawTag(10);
 0144        output.WriteString(Src);
 145      }
 0146      if (_unknownFields != null) {
 0147        _unknownFields.WriteTo(output);
 148      }
 149    #endif
 0150    }
 151
 152    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 153    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 154    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 155    void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
 156      if (Src.Length != 0) {
 157        output.WriteRawTag(10);
 158        output.WriteString(Src);
 159      }
 160      if (_unknownFields != null) {
 161        _unknownFields.WriteTo(ref output);
 162      }
 163    }
 164    #endif
 165
 166    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 167    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 168    public int CalculateSize() {
 0169      int size = 0;
 0170      if (Src.Length != 0) {
 0171        size += 1 + pb::CodedOutputStream.ComputeStringSize(Src);
 172      }
 0173      if (_unknownFields != null) {
 0174        size += _unknownFields.CalculateSize();
 175      }
 0176      return size;
 177    }
 178
 179    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 180    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 181    public void MergeFrom(PBGltfContainer other) {
 0182      if (other == null) {
 0183        return;
 184      }
 0185      if (other.Src.Length != 0) {
 0186        Src = other.Src;
 187      }
 0188      _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 0189    }
 190
 191    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 192    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 193    public void MergeFrom(pb::CodedInputStream input) {
 194    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 195      input.ReadRawMessage(this);
 196    #else
 197      uint tag;
 0198      while ((tag = input.ReadTag()) != 0) {
 199        switch(tag) {
 200          default:
 0201            _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
 0202            break;
 203          case 10: {
 0204            Src = input.ReadString();
 205            break;
 206          }
 207        }
 208      }
 209    #endif
 0210    }
 211
 212    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 213    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 214    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 215    void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
 216      uint tag;
 217      while ((tag = input.ReadTag()) != 0) {
 218        switch(tag) {
 219          default:
 220            _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
 221            break;
 222          case 10: {
 223            Src = input.ReadString();
 224            break;
 225          }
 226        }
 227      }
 228    }
 229    #endif
 230
 231  }
 232
 233  #endregion
 234
 235}
 236
 237#endregion Designer generated code