< Summary

Class:DCL.ECSComponents.PBCameraMode
Assembly:Decentraland.Protocol.GeneratedCode
File(s):/tmp/workspace/unity-renderer/unity-renderer/Assets/Scripts/MainScripts/DCL/DecentralandProtocol/CameraMode.gen.cs
Covered lines:16
Uncovered lines:34
Coverable lines:50
Total lines:236
Line coverage:32% (16 of 50)
Covered branches:0
Total branches:0

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity NPath complexity Sequence coverage
PBCameraMode()0%110100%
get_Descriptor()0%2100%
PBCameraMode()0%110100%
PBCameraMode(...)0%2100%
Clone()0%2100%
Equals(...)0%2100%
Equals(...)0%20400%
GetHashCode()0%12300%
ToString()0%2100%
WriteTo(...)0%3.043083.33%
CalculateSize()0%3.043083.33%
MergeFrom(...)0%12300%
MergeFrom(...)0%12300%

File(s)

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

#LineLine coverage
 1// <auto-generated>
 2//     Generated by the protocol buffer compiler.  DO NOT EDIT!
 3//     source: decentraland/sdk/components/camera_mode.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/camera_mode.proto</summary>
 15  public static partial class CameraModeReflection {
 16
 17    #region Descriptor
 18    /// <summary>File descriptor for decentraland/sdk/components/camera_mode.proto</summary>
 19    public static pbr::FileDescriptor Descriptor {
 20      get { return descriptor; }
 21    }
 22    private static pbr::FileDescriptor descriptor;
 23
 24    static CameraModeReflection() {
 25      byte[] descriptorData = global::System.Convert.FromBase64String(
 26          string.Concat(
 27            "Ci1kZWNlbnRyYWxhbmQvc2RrL2NvbXBvbmVudHMvY2FtZXJhX21vZGUucHJv",
 28            "dG8SG2RlY2VudHJhbGFuZC5zZGsuY29tcG9uZW50cxo0ZGVjZW50cmFsYW5k",
 29            "L3Nkay9jb21wb25lbnRzL2NvbW1vbi9jYW1lcmFfdHlwZS5wcm90byJMCgxQ",
 30            "QkNhbWVyYU1vZGUSPAoEbW9kZRgBIAEoDjIuLmRlY2VudHJhbGFuZC5zZGsu",
 31            "Y29tcG9uZW50cy5jb21tb24uQ2FtZXJhVHlwZUIUqgIRRENMLkVDU0NvbXBv",
 32            "bmVudHNiBnByb3RvMw=="));
 33      descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
 34          new pbr::FileDescriptor[] { global::DCL.ECSComponents.CameraTypeReflection.Descriptor, },
 35          new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] {
 36            new pbr::GeneratedClrTypeInfo(typeof(global::DCL.ECSComponents.PBCameraMode), global::DCL.ECSComponents.PBCa
 37          }));
 38    }
 39    #endregion
 40
 41  }
 42  #region Messages
 43  public sealed partial class PBCameraMode : pb::IMessage<PBCameraMode>
 44  #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 45      , pb::IBufferMessage
 46  #endif
 47  {
 148    private static readonly pb::MessageParser<PBCameraMode> _parser = new pb::MessageParser<PBCameraMode>(() => new PBCa
 49    private pb::UnknownFieldSet _unknownFields;
 50    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 51    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 052    public static pb::MessageParser<PBCameraMode> Parser { get { return _parser; } }
 53
 54    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 55    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 56    public static pbr::MessageDescriptor Descriptor {
 057      get { return global::DCL.ECSComponents.CameraModeReflection.Descriptor.MessageTypes[0]; }
 58    }
 59
 60    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 61    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 62    pbr::MessageDescriptor pb::IMessage.Descriptor {
 063      get { return Descriptor; }
 64    }
 65
 66    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 67    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 668    public PBCameraMode() {
 69      OnConstruction();
 670    }
 71
 72    partial void OnConstruction();
 73
 74    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 75    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 076    public PBCameraMode(PBCameraMode other) : this() {
 077      mode_ = other.mode_;
 078      _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
 079    }
 80
 81    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 82    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 83    public PBCameraMode Clone() {
 084      return new PBCameraMode(this);
 85    }
 86
 87    /// <summary>Field number for the "mode" field.</summary>
 88    public const int ModeFieldNumber = 1;
 89    private global::DCL.ECSComponents.CameraType mode_ = global::DCL.ECSComponents.CameraType.CtFirstPerson;
 90    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 91    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 92    public global::DCL.ECSComponents.CameraType Mode {
 3893      get { return mode_; }
 94      set {
 2195        mode_ = value;
 2196      }
 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 PBCameraMode);
 103    }
 104
 105    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 106    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 107    public bool Equals(PBCameraMode other) {
 0108      if (ReferenceEquals(other, null)) {
 0109        return false;
 110      }
 0111      if (ReferenceEquals(other, this)) {
 0112        return true;
 113      }
 0114      if (Mode != other.Mode) 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 (Mode != global::DCL.ECSComponents.CameraType.CtFirstPerson) hash ^= Mode.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
 9141      if (Mode != global::DCL.ECSComponents.CameraType.CtFirstPerson) {
 9142        output.WriteRawTag(8);
 9143        output.WriteEnum((int) Mode);
 144      }
 9145      if (_unknownFields != null) {
 0146        _unknownFields.WriteTo(output);
 147      }
 148    #endif
 9149    }
 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 (Mode != global::DCL.ECSComponents.CameraType.CtFirstPerson) {
 156        output.WriteRawTag(8);
 157        output.WriteEnum((int) Mode);
 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() {
 9168      int size = 0;
 9169      if (Mode != global::DCL.ECSComponents.CameraType.CtFirstPerson) {
 9170        size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Mode);
 171      }
 9172      if (_unknownFields != null) {
 0173        size += _unknownFields.CalculateSize();
 174      }
 9175      return size;
 176    }
 177
 178    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 179    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 180    public void MergeFrom(PBCameraMode other) {
 0181      if (other == null) {
 0182        return;
 183      }
 0184      if (other.Mode != global::DCL.ECSComponents.CameraType.CtFirstPerson) {
 0185        Mode = other.Mode;
 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 8: {
 0203            Mode = (global::DCL.ECSComponents.CameraType) input.ReadEnum();
 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 8: {
 222            Mode = (global::DCL.ECSComponents.CameraType) input.ReadEnum();
 223            break;
 224          }
 225        }
 226      }
 227    }
 228    #endif
 229
 230  }
 231
 232  #endregion
 233
 234}
 235
 236#endregion Designer generated code