< Summary

Class:DCL.ECSComponents.PBCameraModeArea
Assembly:DCL.ECSComponents.ProtobufData
File(s):/tmp/workspace/unity-renderer/unity-renderer/Assets/DCLPlugins/ECS7/ProtocolBuffers/Generated/PBFiles/CameraModeArea.cs
Covered lines:26
Uncovered lines:43
Coverable lines:69
Total lines:281
Line coverage:37.6% (26 of 69)
Covered branches:0
Total branches:0

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity NPath complexity Sequence coverage
PBCameraModeArea()0%110100%
get_Descriptor()0%2100%
PBCameraModeArea()0%110100%
PBCameraModeArea(...)0%12300%
Clone()0%2100%
Equals(...)0%2100%
Equals(...)0%30500%
GetHashCode()0%20400%
ToString()0%2100%
WriteTo(...)0%4.594066.67%
CalculateSize()0%4.254075%
MergeFrom(...)0%30500%
MergeFrom(...)0%5.935066.67%

File(s)

/tmp/workspace/unity-renderer/unity-renderer/Assets/DCLPlugins/ECS7/ProtocolBuffers/Generated/PBFiles/CameraModeArea.cs

#LineLine coverage
 1// <auto-generated>
 2//     Generated by the protocol buffer compiler.  DO NOT EDIT!
 3//     source: CameraModeArea.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 CameraModeArea.proto</summary>
 15  public static partial class CameraModeAreaReflection {
 16
 17    #region Descriptor
 18    /// <summary>File descriptor for CameraModeArea.proto</summary>
 19    public static pbr::FileDescriptor Descriptor {
 20      get { return descriptor; }
 21    }
 22    private static pbr::FileDescriptor descriptor;
 23
 24    static CameraModeAreaReflection() {
 25      byte[] descriptorData = global::System.Convert.FromBase64String(
 26          string.Concat(
 27            "ChRDYW1lcmFNb2RlQXJlYS5wcm90bxIQZGVjZW50cmFsYW5kLmVjcxoUY29t",
 28            "bW9uL1ZlY3RvcjMucHJvdG8aHGNvbW1vbi9DYW1lcmFNb2RlVmFsdWUucHJv",
 29            "dG8iSgoQUEJDYW1lcmFNb2RlQXJlYRIWCgRhcmVhGAEgASgLMgguVmVjdG9y",
 30            "MxIeCgRtb2RlGAIgASgOMhAuQ2FtZXJhTW9kZVZhbHVlQhSqAhFEQ0wuRUNT",
 31            "Q29tcG9uZW50c2IGcHJvdG8z"));
 32      descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
 33          new pbr::FileDescriptor[] { global::Vector3Reflection.Descriptor, global::CameraModeValueReflection.Descriptor
 34          new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] {
 35            new pbr::GeneratedClrTypeInfo(typeof(global::DCL.ECSComponents.PBCameraModeArea), global::DCL.ECSComponents.
 36          }));
 37    }
 38    #endregion
 39
 40  }
 41  #region Messages
 42  public sealed partial class PBCameraModeArea : pb::IMessage<PBCameraModeArea>
 43  #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 44      , pb::IBufferMessage
 45  #endif
 46  {
 247    private static readonly pb::MessageParser<PBCameraModeArea> _parser = new pb::MessageParser<PBCameraModeArea>(() => 
 48    private pb::UnknownFieldSet _unknownFields;
 49    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 50    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 051    public static pb::MessageParser<PBCameraModeArea> 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.CameraModeAreaReflection.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)]
 667    public PBCameraModeArea() {
 68      OnConstruction();
 669    }
 70
 71    partial void OnConstruction();
 72
 73    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 74    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 075    public PBCameraModeArea(PBCameraModeArea other) : this() {
 076      area_ = other.area_ != null ? other.area_.Clone() : null;
 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 PBCameraModeArea Clone() {
 084      return new PBCameraModeArea(this);
 85    }
 86
 87    /// <summary>Field number for the "area" field.</summary>
 88    public const int AreaFieldNumber = 1;
 89    private global::Vector3 area_;
 90    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 91    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 92    public global::Vector3 Area {
 1893      get { return area_; }
 94      set {
 695        area_ = value;
 696      }
 97    }
 98
 99    /// <summary>Field number for the "mode" field.</summary>
 100    public const int ModeFieldNumber = 2;
 101    private global::CameraModeValue mode_ = global::CameraModeValue.FirstPerson;
 102    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 103    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 104    public global::CameraModeValue Mode {
 0105      get { return mode_; }
 106      set {
 6107        mode_ = value;
 6108      }
 109    }
 110
 111    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 112    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 113    public override bool Equals(object other) {
 0114      return Equals(other as PBCameraModeArea);
 115    }
 116
 117    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 118    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 119    public bool Equals(PBCameraModeArea other) {
 0120      if (ReferenceEquals(other, null)) {
 0121        return false;
 122      }
 0123      if (ReferenceEquals(other, this)) {
 0124        return true;
 125      }
 0126      if (!object.Equals(Area, other.Area)) return false;
 0127      if (Mode != other.Mode) return false;
 0128      return Equals(_unknownFields, other._unknownFields);
 129    }
 130
 131    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 132    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 133    public override int GetHashCode() {
 0134      int hash = 1;
 0135      if (area_ != null) hash ^= Area.GetHashCode();
 0136      if (Mode != global::CameraModeValue.FirstPerson) hash ^= Mode.GetHashCode();
 0137      if (_unknownFields != null) {
 0138        hash ^= _unknownFields.GetHashCode();
 139      }
 0140      return hash;
 141    }
 142
 143    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 144    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 145    public override string ToString() {
 0146      return pb::JsonFormatter.ToDiagnosticString(this);
 147    }
 148
 149    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 150    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 151    public void WriteTo(pb::CodedOutputStream output) {
 152    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 153      output.WriteRawMessage(this);
 154    #else
 1155      if (area_ != null) {
 1156        output.WriteRawTag(10);
 1157        output.WriteMessage(Area);
 158      }
 1159      if (Mode != global::CameraModeValue.FirstPerson) {
 0160        output.WriteRawTag(16);
 0161        output.WriteEnum((int) Mode);
 162      }
 1163      if (_unknownFields != null) {
 0164        _unknownFields.WriteTo(output);
 165      }
 166    #endif
 1167    }
 168
 169    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 170    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 171    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 172    void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
 173      if (area_ != null) {
 174        output.WriteRawTag(10);
 175        output.WriteMessage(Area);
 176      }
 177      if (Mode != global::CameraModeValue.FirstPerson) {
 178        output.WriteRawTag(16);
 179        output.WriteEnum((int) Mode);
 180      }
 181      if (_unknownFields != null) {
 182        _unknownFields.WriteTo(ref output);
 183      }
 184    }
 185    #endif
 186
 187    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 188    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 189    public int CalculateSize() {
 1190      int size = 0;
 1191      if (area_ != null) {
 1192        size += 1 + pb::CodedOutputStream.ComputeMessageSize(Area);
 193      }
 1194      if (Mode != global::CameraModeValue.FirstPerson) {
 0195        size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Mode);
 196      }
 1197      if (_unknownFields != null) {
 0198        size += _unknownFields.CalculateSize();
 199      }
 1200      return size;
 201    }
 202
 203    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 204    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 205    public void MergeFrom(PBCameraModeArea other) {
 0206      if (other == null) {
 0207        return;
 208      }
 0209      if (other.area_ != null) {
 0210        if (area_ == null) {
 0211          Area = new global::Vector3();
 212        }
 0213        Area.MergeFrom(other.Area);
 214      }
 0215      if (other.Mode != global::CameraModeValue.FirstPerson) {
 0216        Mode = other.Mode;
 217      }
 0218      _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 0219    }
 220
 221    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 222    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 223    public void MergeFrom(pb::CodedInputStream input) {
 224    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 225      input.ReadRawMessage(this);
 226    #else
 227      uint tag;
 2228      while ((tag = input.ReadTag()) != 0) {
 229        switch(tag) {
 230          default:
 0231            _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
 0232            break;
 233          case 10: {
 1234            if (area_ == null) {
 1235              Area = new global::Vector3();
 236            }
 1237            input.ReadMessage(Area);
 1238            break;
 239          }
 240          case 16: {
 0241            Mode = (global::CameraModeValue) input.ReadEnum();
 242            break;
 243          }
 244        }
 245      }
 246    #endif
 1247    }
 248
 249    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 250    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 251    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 252    void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
 253      uint tag;
 254      while ((tag = input.ReadTag()) != 0) {
 255        switch(tag) {
 256          default:
 257            _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
 258            break;
 259          case 10: {
 260            if (area_ == null) {
 261              Area = new global::Vector3();
 262            }
 263            input.ReadMessage(Area);
 264            break;
 265          }
 266          case 16: {
 267            Mode = (global::CameraModeValue) input.ReadEnum();
 268            break;
 269          }
 270        }
 271      }
 272    }
 273    #endif
 274
 275  }
 276
 277  #endregion
 278
 279}
 280
 281#endregion Designer generated code