< Summary

Class:DCL.ECSComponents.PBGltfContainerLoadingState
Assembly:Decentraland.Protocol.GeneratedCode
File(s):/tmp/workspace/unity-renderer/unity-renderer/Assets/Scripts/MainScripts/DCL/DecentralandProtocol/GltfContainerLoadingState.gen.cs
Covered lines:6
Uncovered lines:44
Coverable lines:50
Total lines:241
Line coverage:12% (6 of 50)
Covered branches:0
Total branches:0
Covered methods:4
Total methods:17
Method coverage:23.5% (4 of 17)

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity NPath complexity Sequence coverage
PBGltfContainerLoadingState()0%110100%
get_Descriptor()0%2100%
PBGltfContainerLoadingState()0%110100%
PBGltfContainerLoadingState(...)0%2100%
Clone()0%2100%
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/GltfContainerLoadingState.gen.cs

#LineLine coverage
 1// <auto-generated>
 2//     Generated by the protocol buffer compiler.  DO NOT EDIT!
 3//     source: decentraland/sdk/components/gltf_container_loading_state.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_loading_state
 15  public static partial class GltfContainerLoadingStateReflection {
 16
 17    #region Descriptor
 18    /// <summary>File descriptor for decentraland/sdk/components/gltf_container_loading_state.proto</summary>
 19    public static pbr::FileDescriptor Descriptor {
 20      get { return descriptor; }
 21    }
 22    private static pbr::FileDescriptor descriptor;
 23
 24    static GltfContainerLoadingStateReflection() {
 25      byte[] descriptorData = global::System.Convert.FromBase64String(
 26          string.Concat(
 27            "Cj5kZWNlbnRyYWxhbmQvc2RrL2NvbXBvbmVudHMvZ2x0Zl9jb250YWluZXJf",
 28            "bG9hZGluZ19zdGF0ZS5wcm90bxIbZGVjZW50cmFsYW5kLnNkay5jb21wb25l",
 29            "bnRzGjZkZWNlbnRyYWxhbmQvc2RrL2NvbXBvbmVudHMvY29tbW9uL2xvYWRp",
 30            "bmdfc3RhdGUucHJvdG8iZgobUEJHbHRmQ29udGFpbmVyTG9hZGluZ1N0YXRl",
 31            "EkcKDWN1cnJlbnRfc3RhdGUYASABKA4yMC5kZWNlbnRyYWxhbmQuc2RrLmNv",
 32            "bXBvbmVudHMuY29tbW9uLkxvYWRpbmdTdGF0ZUIUqgIRRENMLkVDU0NvbXBv",
 33            "bmVudHNiBnByb3RvMw=="));
 34      descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
 35          new pbr::FileDescriptor[] { global::DCL.ECSComponents.LoadingStateReflection.Descriptor, },
 36          new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] {
 37            new pbr::GeneratedClrTypeInfo(typeof(global::DCL.ECSComponents.PBGltfContainerLoadingState), global::DCL.ECS
 38          }));
 39    }
 40    #endregion
 41
 42  }
 43  #region Messages
 44  /// <summary>
 45  /// GltfContainerLoadingState is set by the engine and provides information about
 46  /// the current state of the GltfContainer of an entity.
 47  /// </summary>
 48  public sealed partial class PBGltfContainerLoadingState : pb::IMessage<PBGltfContainerLoadingState>
 49  #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 50      , pb::IBufferMessage
 51  #endif
 52  {
 153    private static readonly pb::MessageParser<PBGltfContainerLoadingState> _parser = new pb::MessageParser<PBGltfContain
 54    private pb::UnknownFieldSet _unknownFields;
 55    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 56    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 057    public static pb::MessageParser<PBGltfContainerLoadingState> Parser { get { return _parser; } }
 58
 59    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 60    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 61    public static pbr::MessageDescriptor Descriptor {
 062      get { return global::DCL.ECSComponents.GltfContainerLoadingStateReflection.Descriptor.MessageTypes[0]; }
 63    }
 64
 65    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 66    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 67    pbr::MessageDescriptor pb::IMessage.Descriptor {
 068      get { return Descriptor; }
 69    }
 70
 71    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 72    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 573    public PBGltfContainerLoadingState() {
 74      OnConstruction();
 575    }
 76
 77    partial void OnConstruction();
 78
 79    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 80    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 081    public PBGltfContainerLoadingState(PBGltfContainerLoadingState other) : this() {
 082      currentState_ = other.currentState_;
 083      _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
 084    }
 85
 86    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 87    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 88    public PBGltfContainerLoadingState Clone() {
 089      return new PBGltfContainerLoadingState(this);
 90    }
 91
 92    /// <summary>Field number for the "current_state" field.</summary>
 93    public const int CurrentStateFieldNumber = 1;
 94    private global::DCL.ECSComponents.LoadingState currentState_ = global::DCL.ECSComponents.LoadingState.Unknown;
 95    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 96    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 97    public global::DCL.ECSComponents.LoadingState CurrentState {
 598      get { return currentState_; }
 99      set {
 5100        currentState_ = value;
 5101      }
 102    }
 103
 104    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 105    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 106    public override bool Equals(object other) {
 0107      return Equals(other as PBGltfContainerLoadingState);
 108    }
 109
 110    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 111    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 112    public bool Equals(PBGltfContainerLoadingState other) {
 0113      if (ReferenceEquals(other, null)) {
 0114        return false;
 115      }
 0116      if (ReferenceEquals(other, this)) {
 0117        return true;
 118      }
 0119      if (CurrentState != other.CurrentState) return false;
 0120      return Equals(_unknownFields, other._unknownFields);
 121    }
 122
 123    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 124    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 125    public override int GetHashCode() {
 0126      int hash = 1;
 0127      if (CurrentState != global::DCL.ECSComponents.LoadingState.Unknown) hash ^= CurrentState.GetHashCode();
 0128      if (_unknownFields != null) {
 0129        hash ^= _unknownFields.GetHashCode();
 130      }
 0131      return hash;
 132    }
 133
 134    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 135    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 136    public override string ToString() {
 0137      return pb::JsonFormatter.ToDiagnosticString(this);
 138    }
 139
 140    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 141    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 142    public void WriteTo(pb::CodedOutputStream output) {
 143    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 144      output.WriteRawMessage(this);
 145    #else
 0146      if (CurrentState != global::DCL.ECSComponents.LoadingState.Unknown) {
 0147        output.WriteRawTag(8);
 0148        output.WriteEnum((int) CurrentState);
 149      }
 0150      if (_unknownFields != null) {
 0151        _unknownFields.WriteTo(output);
 152      }
 153    #endif
 0154    }
 155
 156    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 157    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 158    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 159    void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
 160      if (CurrentState != global::DCL.ECSComponents.LoadingState.Unknown) {
 161        output.WriteRawTag(8);
 162        output.WriteEnum((int) CurrentState);
 163      }
 164      if (_unknownFields != null) {
 165        _unknownFields.WriteTo(ref output);
 166      }
 167    }
 168    #endif
 169
 170    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 171    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 172    public int CalculateSize() {
 0173      int size = 0;
 0174      if (CurrentState != global::DCL.ECSComponents.LoadingState.Unknown) {
 0175        size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) CurrentState);
 176      }
 0177      if (_unknownFields != null) {
 0178        size += _unknownFields.CalculateSize();
 179      }
 0180      return size;
 181    }
 182
 183    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 184    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 185    public void MergeFrom(PBGltfContainerLoadingState other) {
 0186      if (other == null) {
 0187        return;
 188      }
 0189      if (other.CurrentState != global::DCL.ECSComponents.LoadingState.Unknown) {
 0190        CurrentState = other.CurrentState;
 191      }
 0192      _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 0193    }
 194
 195    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 196    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 197    public void MergeFrom(pb::CodedInputStream input) {
 198    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 199      input.ReadRawMessage(this);
 200    #else
 201      uint tag;
 0202      while ((tag = input.ReadTag()) != 0) {
 203        switch(tag) {
 204          default:
 0205            _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
 0206            break;
 207          case 8: {
 0208            CurrentState = (global::DCL.ECSComponents.LoadingState) input.ReadEnum();
 209            break;
 210          }
 211        }
 212      }
 213    #endif
 0214    }
 215
 216    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 217    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 218    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 219    void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
 220      uint tag;
 221      while ((tag = input.ReadTag()) != 0) {
 222        switch(tag) {
 223          default:
 224            _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
 225            break;
 226          case 8: {
 227            CurrentState = (global::DCL.ECSComponents.LoadingState) input.ReadEnum();
 228            break;
 229          }
 230        }
 231      }
 232    }
 233    #endif
 234
 235  }
 236
 237  #endregion
 238
 239}
 240
 241#endregion Designer generated code