< Summary

Class:DCL.ECSComponents.PBGltfContainer
Assembly:DCL.ECSComponents.ProtobufData
File(s):/tmp/workspace/unity-renderer/unity-renderer/Assets/DCLPlugins/ECS7/ProtocolBuffers/Generated/GltfContainer.gen.cs
Covered lines:6
Uncovered lines:45
Coverable lines:51
Total lines:236
Line coverage:11.7% (6 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/DCLPlugins/ECS7/ProtocolBuffers/Generated/GltfContainer.gen.cs

#LineLine coverage
 1// <auto-generated>
 2//     Generated by the protocol buffer compiler.  DO NOT EDIT!
 3//     source: ecs/components/GltfContainer.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 ecs/components/GltfContainer.proto</summary>
 15  public static partial class GltfContainerReflection {
 16
 17    #region Descriptor
 18    /// <summary>File descriptor for ecs/components/GltfContainer.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            "CiJlY3MvY29tcG9uZW50cy9HbHRmQ29udGFpbmVyLnByb3RvEhBkZWNlbnRy",
 28            "YWxhbmQuZWNzIh4KD1BCR2x0ZkNvbnRhaW5lchILCgNzcmMYASABKAlCFKoC",
 29            "EURDTC5FQ1NDb21wb25lbnRzYgZwcm90bzM="));
 30      descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
 31          new pbr::FileDescriptor[] { },
 32          new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] {
 33            new pbr::GeneratedClrTypeInfo(typeof(global::DCL.ECSComponents.PBGltfContainer), global::DCL.ECSComponents.P
 34          }));
 35    }
 36    #endregion
 37
 38  }
 39  #region Messages
 40  public sealed partial class PBGltfContainer : pb::IMessage<PBGltfContainer>
 41  #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 42      , pb::IBufferMessage
 43  #endif
 44  {
 145    private static readonly pb::MessageParser<PBGltfContainer> _parser = new pb::MessageParser<PBGltfContainer>(() => ne
 46    private pb::UnknownFieldSet _unknownFields;
 47    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 48    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 049    public static pb::MessageParser<PBGltfContainer> Parser { get { return _parser; } }
 50
 51    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 52    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 53    public static pbr::MessageDescriptor Descriptor {
 054      get { return global::DCL.ECSComponents.GltfContainerReflection.Descriptor.MessageTypes[0]; }
 55    }
 56
 57    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 58    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 59    pbr::MessageDescriptor pb::IMessage.Descriptor {
 060      get { return Descriptor; }
 61    }
 62
 63    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 64    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 165    public PBGltfContainer() {
 66      OnConstruction();
 167    }
 68
 69    partial void OnConstruction();
 70
 71    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 72    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 073    public PBGltfContainer(PBGltfContainer other) : this() {
 074      src_ = other.src_;
 075      _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
 076    }
 77
 78    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 79    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 80    public PBGltfContainer Clone() {
 081      return new PBGltfContainer(this);
 82    }
 83
 84    /// <summary>Field number for the "src" field.</summary>
 85    public const int SrcFieldNumber = 1;
 186    private string src_ = "";
 87    /// <summary>
 88    /// which file to load
 89    /// </summary>
 90    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 91    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 92    public string Src {
 093      get { return src_; }
 94      set {
 195        src_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
 196      }
 97    }
 98
 99    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 100    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 101    public override bool Equals(object other) {
 0102      return Equals(other as PBGltfContainer);
 103    }
 104
 105    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 106    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 107    public bool Equals(PBGltfContainer other) {
 0108      if (ReferenceEquals(other, null)) {
 0109        return false;
 110      }
 0111      if (ReferenceEquals(other, this)) {
 0112        return true;
 113      }
 0114      if (Src != other.Src) return false;
 0115      return Equals(_unknownFields, other._unknownFields);
 116    }
 117
 118    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 119    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 120    public override int GetHashCode() {
 0121      int hash = 1;
 0122      if (Src.Length != 0) hash ^= Src.GetHashCode();
 0123      if (_unknownFields != null) {
 0124        hash ^= _unknownFields.GetHashCode();
 125      }
 0126      return hash;
 127    }
 128
 129    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 130    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 131    public override string ToString() {
 0132      return pb::JsonFormatter.ToDiagnosticString(this);
 133    }
 134
 135    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 136    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 137    public void WriteTo(pb::CodedOutputStream output) {
 138    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 139      output.WriteRawMessage(this);
 140    #else
 0141      if (Src.Length != 0) {
 0142        output.WriteRawTag(10);
 0143        output.WriteString(Src);
 144      }
 0145      if (_unknownFields != null) {
 0146        _unknownFields.WriteTo(output);
 147      }
 148    #endif
 0149    }
 150
 151    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 152    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 153    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 154    void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
 155      if (Src.Length != 0) {
 156        output.WriteRawTag(10);
 157        output.WriteString(Src);
 158      }
 159      if (_unknownFields != null) {
 160        _unknownFields.WriteTo(ref output);
 161      }
 162    }
 163    #endif
 164
 165    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 166    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 167    public int CalculateSize() {
 0168      int size = 0;
 0169      if (Src.Length != 0) {
 0170        size += 1 + pb::CodedOutputStream.ComputeStringSize(Src);
 171      }
 0172      if (_unknownFields != null) {
 0173        size += _unknownFields.CalculateSize();
 174      }
 0175      return size;
 176    }
 177
 178    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 179    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 180    public void MergeFrom(PBGltfContainer other) {
 0181      if (other == null) {
 0182        return;
 183      }
 0184      if (other.Src.Length != 0) {
 0185        Src = other.Src;
 186      }
 0187      _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 0188    }
 189
 190    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 191    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 192    public void MergeFrom(pb::CodedInputStream input) {
 193    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 194      input.ReadRawMessage(this);
 195    #else
 196      uint tag;
 0197      while ((tag = input.ReadTag()) != 0) {
 198        switch(tag) {
 199          default:
 0200            _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
 0201            break;
 202          case 10: {
 0203            Src = input.ReadString();
 204            break;
 205          }
 206        }
 207      }
 208    #endif
 0209    }
 210
 211    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 212    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 213    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 214    void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
 215      uint tag;
 216      while ((tag = input.ReadTag()) != 0) {
 217        switch(tag) {
 218          default:
 219            _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
 220            break;
 221          case 10: {
 222            Src = input.ReadString();
 223            break;
 224          }
 225        }
 226      }
 227    }
 228    #endif
 229
 230  }
 231
 232  #endregion
 233
 234}
 235
 236#endregion Designer generated code