< 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:6
Uncovered lines:44
Coverable lines:50
Total lines:243
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
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%12300%
CalculateSize()0%12300%
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  /// <summary>
 44  /// The CameraMode component can be used to determine whether the player is using a first-person o
 45  /// third-person view.
 46  /// </summary>
 47  public sealed partial class PBCameraMode : pb::IMessage<PBCameraMode>
 48  #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 49      , pb::IBufferMessage
 50  #endif
 51  {
 152    private static readonly pb::MessageParser<PBCameraMode> _parser = new pb::MessageParser<PBCameraMode>(() => new PBCa
 53    private pb::UnknownFieldSet _unknownFields;
 54    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 55    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 056    public static pb::MessageParser<PBCameraMode> Parser { get { return _parser; } }
 57
 58    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 59    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 60    public static pbr::MessageDescriptor Descriptor {
 061      get { return global::DCL.ECSComponents.CameraModeReflection.Descriptor.MessageTypes[0]; }
 62    }
 63
 64    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 65    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 66    pbr::MessageDescriptor pb::IMessage.Descriptor {
 067      get { return Descriptor; }
 68    }
 69
 70    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 71    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 872    public PBCameraMode() {
 73      OnConstruction();
 874    }
 75
 76    partial void OnConstruction();
 77
 78    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 79    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 080    public PBCameraMode(PBCameraMode other) : this() {
 081      mode_ = other.mode_;
 082      _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
 083    }
 84
 85    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 86    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 87    public PBCameraMode Clone() {
 088      return new PBCameraMode(this);
 89    }
 90
 91    /// <summary>Field number for the "mode" field.</summary>
 92    public const int ModeFieldNumber = 1;
 93    private global::DCL.ECSComponents.CameraType mode_ = global::DCL.ECSComponents.CameraType.CtFirstPerson;
 94    /// <summary>
 95    /// the camera type (1st-person or 3rd-person)
 96    /// </summary>
 97    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 98    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 99    public global::DCL.ECSComponents.CameraType Mode {
 2100      get { return mode_; }
 101      set {
 8102        mode_ = value;
 8103      }
 104    }
 105
 106    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 107    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 108    public override bool Equals(object other) {
 0109      return Equals(other as PBCameraMode);
 110    }
 111
 112    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 113    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 114    public bool Equals(PBCameraMode other) {
 0115      if (ReferenceEquals(other, null)) {
 0116        return false;
 117      }
 0118      if (ReferenceEquals(other, this)) {
 0119        return true;
 120      }
 0121      if (Mode != other.Mode) return false;
 0122      return Equals(_unknownFields, other._unknownFields);
 123    }
 124
 125    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 126    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 127    public override int GetHashCode() {
 0128      int hash = 1;
 0129      if (Mode != global::DCL.ECSComponents.CameraType.CtFirstPerson) hash ^= Mode.GetHashCode();
 0130      if (_unknownFields != null) {
 0131        hash ^= _unknownFields.GetHashCode();
 132      }
 0133      return hash;
 134    }
 135
 136    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 137    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 138    public override string ToString() {
 0139      return pb::JsonFormatter.ToDiagnosticString(this);
 140    }
 141
 142    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 143    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 144    public void WriteTo(pb::CodedOutputStream output) {
 145    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 146      output.WriteRawMessage(this);
 147    #else
 0148      if (Mode != global::DCL.ECSComponents.CameraType.CtFirstPerson) {
 0149        output.WriteRawTag(8);
 0150        output.WriteEnum((int) Mode);
 151      }
 0152      if (_unknownFields != null) {
 0153        _unknownFields.WriteTo(output);
 154      }
 155    #endif
 0156    }
 157
 158    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 159    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 160    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 161    void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
 162      if (Mode != global::DCL.ECSComponents.CameraType.CtFirstPerson) {
 163        output.WriteRawTag(8);
 164        output.WriteEnum((int) Mode);
 165      }
 166      if (_unknownFields != null) {
 167        _unknownFields.WriteTo(ref output);
 168      }
 169    }
 170    #endif
 171
 172    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 173    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 174    public int CalculateSize() {
 0175      int size = 0;
 0176      if (Mode != global::DCL.ECSComponents.CameraType.CtFirstPerson) {
 0177        size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Mode);
 178      }
 0179      if (_unknownFields != null) {
 0180        size += _unknownFields.CalculateSize();
 181      }
 0182      return size;
 183    }
 184
 185    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 186    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 187    public void MergeFrom(PBCameraMode other) {
 0188      if (other == null) {
 0189        return;
 190      }
 0191      if (other.Mode != global::DCL.ECSComponents.CameraType.CtFirstPerson) {
 0192        Mode = other.Mode;
 193      }
 0194      _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 0195    }
 196
 197    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 198    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 199    public void MergeFrom(pb::CodedInputStream input) {
 200    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 201      input.ReadRawMessage(this);
 202    #else
 203      uint tag;
 0204      while ((tag = input.ReadTag()) != 0) {
 205        switch(tag) {
 206          default:
 0207            _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
 0208            break;
 209          case 8: {
 0210            Mode = (global::DCL.ECSComponents.CameraType) input.ReadEnum();
 211            break;
 212          }
 213        }
 214      }
 215    #endif
 0216    }
 217
 218    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 219    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 220    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 221    void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
 222      uint tag;
 223      while ((tag = input.ReadTag()) != 0) {
 224        switch(tag) {
 225          default:
 226            _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
 227            break;
 228          case 8: {
 229            Mode = (global::DCL.ECSComponents.CameraType) input.ReadEnum();
 230            break;
 231          }
 232        }
 233      }
 234    }
 235    #endif
 236
 237  }
 238
 239  #endregion
 240
 241}
 242
 243#endregion Designer generated code