< Summary

Class:DCL.ECSComponents.CameraModeReflection
Assembly:DCL.ECSComponents.ProtobufData
File(s):/tmp/workspace/unity-renderer/unity-renderer/Assets/DCLPlugins/ECS7/ProtocolBuffers/Generated/CameraMode.gen.cs
Covered lines:0
Uncovered lines:4
Coverable lines:4
Total lines:235
Line coverage:0% (0 of 4)
Covered branches:0
Total branches:0

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity NPath complexity Sequence coverage
CameraModeReflection()0%2100%

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 {
 020      get { return descriptor; }
 21    }
 22    private static pbr::FileDescriptor descriptor;
 23
 24    static CameraModeReflection() {
 025      byte[] descriptorData = global::System.Convert.FromBase64String(
 26          string.Concat(
 27            "Ch9lY3MvY29tcG9uZW50cy9DYW1lcmFNb2RlLnByb3RvEhBkZWNlbnRyYWxh",
 28            "bmQuZWNzGitlY3MvY29tcG9uZW50cy9jb21tb24vQ2FtZXJhTW9kZVZhbHVl",
 29            "LnByb3RvIj8KDFBCQ2FtZXJhTW9kZRIvCgRtb2RlGAEgASgOMiEuZGVjZW50",
 30            "cmFsYW5kLmVjcy5DYW1lcmFNb2RlVmFsdWVCFKoCEURDTC5FQ1NDb21wb25l",
 31            "bnRzYgZwcm90bzM="));
 032      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          }));
 037    }
 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  {
 47    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)]
 51    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 {
 56      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 {
 62      get { return Descriptor; }
 63    }
 64
 65    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 66    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 67    public PBCameraMode() {
 68      OnConstruction();
 69    }
 70
 71    partial void OnConstruction();
 72
 73    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 74    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 75    public PBCameraMode(PBCameraMode other) : this() {
 76      mode_ = other.mode_;
 77      _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
 78    }
 79
 80    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 81    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 82    public PBCameraMode Clone() {
 83      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 {
 92      get { return mode_; }
 93      set {
 94        mode_ = value;
 95      }
 96    }
 97
 98    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 99    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 100    public override bool Equals(object other) {
 101      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) {
 107      if (ReferenceEquals(other, null)) {
 108        return false;
 109      }
 110      if (ReferenceEquals(other, this)) {
 111        return true;
 112      }
 113      if (Mode != other.Mode) return false;
 114      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() {
 120      int hash = 1;
 121      if (Mode != global::DCL.ECSComponents.CameraModeValue.FirstPerson) hash ^= Mode.GetHashCode();
 122      if (_unknownFields != null) {
 123        hash ^= _unknownFields.GetHashCode();
 124      }
 125      return hash;
 126    }
 127
 128    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 129    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 130    public override string ToString() {
 131      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
 140      if (Mode != global::DCL.ECSComponents.CameraModeValue.FirstPerson) {
 141        output.WriteRawTag(8);
 142        output.WriteEnum((int) Mode);
 143      }
 144      if (_unknownFields != null) {
 145        _unknownFields.WriteTo(output);
 146      }
 147    #endif
 148    }
 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() {
 167      int size = 0;
 168      if (Mode != global::DCL.ECSComponents.CameraModeValue.FirstPerson) {
 169        size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Mode);
 170      }
 171      if (_unknownFields != null) {
 172        size += _unknownFields.CalculateSize();
 173      }
 174      return size;
 175    }
 176
 177    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 178    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 179    public void MergeFrom(PBCameraMode other) {
 180      if (other == null) {
 181        return;
 182      }
 183      if (other.Mode != global::DCL.ECSComponents.CameraModeValue.FirstPerson) {
 184        Mode = other.Mode;
 185      }
 186      _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 187    }
 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;
 196      while ((tag = input.ReadTag()) != 0) {
 197        switch(tag) {
 198          default:
 199            _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
 200            break;
 201          case 8: {
 202            Mode = (global::DCL.ECSComponents.CameraModeValue) input.ReadEnum();
 203            break;
 204          }
 205        }
 206      }
 207    #endif
 208    }
 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