< Summary

Class:DCL.ECSComponents.PBCameraMode
Assembly:DCL.ECSComponents.ProtobufData
File(s):/tmp/workspace/unity-renderer/unity-renderer/Assets/DCLPlugins/ECS7/ProtocolBuffers/Generated/CameraMode.gen.cs
Covered lines:3
Uncovered lines:47
Coverable lines:50
Total lines:235
Line coverage:6% (3 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%12300%
CalculateSize()0%12300%
MergeFrom(...)0%12300%
MergeFrom(...)0%12300%

File(s)

/tmp/workspace/unity-renderer/unity-renderer/Assets/DCLPlugins/ECS7/ProtocolBuffers/Generated/CameraMode.gen.cs

#LineLine coverage
 1// <auto-generated>
 2//     Generated by the protocol buffer compiler.  DO NOT EDIT!
 3//     source: ecs/components/CameraMode.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/CameraMode.proto</summary>
 15  public static partial class CameraModeReflection {
 16
 17    #region Descriptor
 18    /// <summary>File descriptor for ecs/components/CameraMode.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            "Ch9lY3MvY29tcG9uZW50cy9DYW1lcmFNb2RlLnByb3RvEhBkZWNlbnRyYWxh",
 28            "bmQuZWNzGitlY3MvY29tcG9uZW50cy9jb21tb24vQ2FtZXJhTW9kZVZhbHVl",
 29            "LnByb3RvIj8KDFBCQ2FtZXJhTW9kZRIvCgRtb2RlGAEgASgOMiEuZGVjZW50",
 30            "cmFsYW5kLmVjcy5DYW1lcmFNb2RlVmFsdWVCFKoCEURDTC5FQ1NDb21wb25l",
 31            "bnRzYgZwcm90bzM="));
 32      descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
 33          new pbr::FileDescriptor[] { global::DCL.ECSComponents.CameraModeValueReflection.Descriptor, },
 34          new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] {
 35            new pbr::GeneratedClrTypeInfo(typeof(global::DCL.ECSComponents.PBCameraMode), global::DCL.ECSComponents.PBCa
 36          }));
 37    }
 38    #endregion
 39
 40  }
 41  #region Messages
 42  public sealed partial class PBCameraMode : pb::IMessage<PBCameraMode>
 43  #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 44      , pb::IBufferMessage
 45  #endif
 46  {
 147    private static readonly pb::MessageParser<PBCameraMode> _parser = new pb::MessageParser<PBCameraMode>(() => new PBCa
 48    private pb::UnknownFieldSet _unknownFields;
 49    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 50    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 051    public static pb::MessageParser<PBCameraMode> Parser { get { return _parser; } }
 52
 53    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 54    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 55    public static pbr::MessageDescriptor Descriptor {
 056      get { return global::DCL.ECSComponents.CameraModeReflection.Descriptor.MessageTypes[0]; }
 57    }
 58
 59    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 60    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 61    pbr::MessageDescriptor pb::IMessage.Descriptor {
 062      get { return Descriptor; }
 63    }
 64
 65    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 66    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 167    public PBCameraMode() {
 68      OnConstruction();
 169    }
 70
 71    partial void OnConstruction();
 72
 73    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 74    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 075    public PBCameraMode(PBCameraMode other) : this() {
 076      mode_ = other.mode_;
 077      _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
 078    }
 79
 80    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 81    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 82    public PBCameraMode Clone() {
 083      return new PBCameraMode(this);
 84    }
 85
 86    /// <summary>Field number for the "mode" field.</summary>
 87    public const int ModeFieldNumber = 1;
 88    private global::DCL.ECSComponents.CameraModeValue mode_ = global::DCL.ECSComponents.CameraModeValue.FirstPerson;
 89    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 90    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 91    public global::DCL.ECSComponents.CameraModeValue Mode {
 092      get { return mode_; }
 93      set {
 094        mode_ = value;
 095      }
 96    }
 97
 98    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 99    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 100    public override bool Equals(object other) {
 0101      return Equals(other as PBCameraMode);
 102    }
 103
 104    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 105    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 106    public bool Equals(PBCameraMode other) {
 0107      if (ReferenceEquals(other, null)) {
 0108        return false;
 109      }
 0110      if (ReferenceEquals(other, this)) {
 0111        return true;
 112      }
 0113      if (Mode != other.Mode) return false;
 0114      return Equals(_unknownFields, other._unknownFields);
 115    }
 116
 117    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 118    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 119    public override int GetHashCode() {
 0120      int hash = 1;
 0121      if (Mode != global::DCL.ECSComponents.CameraModeValue.FirstPerson) hash ^= Mode.GetHashCode();
 0122      if (_unknownFields != null) {
 0123        hash ^= _unknownFields.GetHashCode();
 124      }
 0125      return hash;
 126    }
 127
 128    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 129    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 130    public override string ToString() {
 0131      return pb::JsonFormatter.ToDiagnosticString(this);
 132    }
 133
 134    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 135    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 136    public void WriteTo(pb::CodedOutputStream output) {
 137    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 138      output.WriteRawMessage(this);
 139    #else
 0140      if (Mode != global::DCL.ECSComponents.CameraModeValue.FirstPerson) {
 0141        output.WriteRawTag(8);
 0142        output.WriteEnum((int) Mode);
 143      }
 0144      if (_unknownFields != null) {
 0145        _unknownFields.WriteTo(output);
 146      }
 147    #endif
 0148    }
 149
 150    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 151    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 152    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 153    void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
 154      if (Mode != global::DCL.ECSComponents.CameraModeValue.FirstPerson) {
 155        output.WriteRawTag(8);
 156        output.WriteEnum((int) Mode);
 157      }
 158      if (_unknownFields != null) {
 159        _unknownFields.WriteTo(ref output);
 160      }
 161    }
 162    #endif
 163
 164    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 165    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 166    public int CalculateSize() {
 0167      int size = 0;
 0168      if (Mode != global::DCL.ECSComponents.CameraModeValue.FirstPerson) {
 0169        size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Mode);
 170      }
 0171      if (_unknownFields != null) {
 0172        size += _unknownFields.CalculateSize();
 173      }
 0174      return size;
 175    }
 176
 177    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 178    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 179    public void MergeFrom(PBCameraMode other) {
 0180      if (other == null) {
 0181        return;
 182      }
 0183      if (other.Mode != global::DCL.ECSComponents.CameraModeValue.FirstPerson) {
 0184        Mode = other.Mode;
 185      }
 0186      _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 0187    }
 188
 189    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 190    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 191    public void MergeFrom(pb::CodedInputStream input) {
 192    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 193      input.ReadRawMessage(this);
 194    #else
 195      uint tag;
 0196      while ((tag = input.ReadTag()) != 0) {
 197        switch(tag) {
 198          default:
 0199            _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
 0200            break;
 201          case 8: {
 0202            Mode = (global::DCL.ECSComponents.CameraModeValue) input.ReadEnum();
 203            break;
 204          }
 205        }
 206      }
 207    #endif
 0208    }
 209
 210    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 211    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 212    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 213    void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
 214      uint tag;
 215      while ((tag = input.ReadTag()) != 0) {
 216        switch(tag) {
 217          default:
 218            _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
 219            break;
 220          case 8: {
 221            Mode = (global::DCL.ECSComponents.CameraModeValue) input.ReadEnum();
 222            break;
 223          }
 224        }
 225      }
 226    }
 227    #endif
 228
 229  }
 230
 231  #endregion
 232
 233}
 234
 235#endregion Designer generated code