< Summary

Class:DCL.ECSComponents.PBCameraModeArea
Assembly:DCL.ECSComponents.ProtobufData
File(s):/tmp/workspace/unity-renderer/unity-renderer/Assets/DCLPlugins/ECS7/ProtocolBuffers/Generated/CameraModeArea.gen.cs
Covered lines:26
Uncovered lines:43
Coverable lines:69
Total lines:283
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/CameraModeArea.gen.cs

#LineLine coverage
 1// <auto-generated>
 2//     Generated by the protocol buffer compiler.  DO NOT EDIT!
 3//     source: ecs/components/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 ecs/components/CameraModeArea.proto</summary>
 15  public static partial class CameraModeAreaReflection {
 16
 17    #region Descriptor
 18    /// <summary>File descriptor for ecs/components/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            "CiNlY3MvY29tcG9uZW50cy9DYW1lcmFNb2RlQXJlYS5wcm90bxIQZGVjZW50",
 28            "cmFsYW5kLmVjcxojZWNzL2NvbXBvbmVudHMvY29tbW9uL1ZlY3RvcjMucHJv",
 29            "dG8aK2Vjcy9jb21wb25lbnRzL2NvbW1vbi9DYW1lcmFNb2RlVmFsdWUucHJv",
 30            "dG8ibAoQUEJDYW1lcmFNb2RlQXJlYRInCgRhcmVhGAEgASgLMhkuZGVjZW50",
 31            "cmFsYW5kLmVjcy5WZWN0b3IzEi8KBG1vZGUYAiABKA4yIS5kZWNlbnRyYWxh",
 32            "bmQuZWNzLkNhbWVyYU1vZGVWYWx1ZUIUqgIRRENMLkVDU0NvbXBvbmVudHNi",
 33            "BnByb3RvMw=="));
 34      descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
 35          new pbr::FileDescriptor[] { global::DCL.ECSComponents.Vector3Reflection.Descriptor, global::DCL.ECSComponents.
 36          new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] {
 37            new pbr::GeneratedClrTypeInfo(typeof(global::DCL.ECSComponents.PBCameraModeArea), global::DCL.ECSComponents.
 38          }));
 39    }
 40    #endregion
 41
 42  }
 43  #region Messages
 44  public sealed partial class PBCameraModeArea : pb::IMessage<PBCameraModeArea>
 45  #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 46      , pb::IBufferMessage
 47  #endif
 48  {
 249    private static readonly pb::MessageParser<PBCameraModeArea> _parser = new pb::MessageParser<PBCameraModeArea>(() => 
 50    private pb::UnknownFieldSet _unknownFields;
 51    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 52    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 053    public static pb::MessageParser<PBCameraModeArea> Parser { get { return _parser; } }
 54
 55    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 56    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 57    public static pbr::MessageDescriptor Descriptor {
 058      get { return global::DCL.ECSComponents.CameraModeAreaReflection.Descriptor.MessageTypes[0]; }
 59    }
 60
 61    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 62    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 63    pbr::MessageDescriptor pb::IMessage.Descriptor {
 064      get { return Descriptor; }
 65    }
 66
 67    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 68    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 669    public PBCameraModeArea() {
 70      OnConstruction();
 671    }
 72
 73    partial void OnConstruction();
 74
 75    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 76    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 077    public PBCameraModeArea(PBCameraModeArea other) : this() {
 078      area_ = other.area_ != null ? other.area_.Clone() : null;
 079      mode_ = other.mode_;
 080      _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
 081    }
 82
 83    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 84    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 85    public PBCameraModeArea Clone() {
 086      return new PBCameraModeArea(this);
 87    }
 88
 89    /// <summary>Field number for the "area" field.</summary>
 90    public const int AreaFieldNumber = 1;
 91    private global::DCL.ECSComponents.Vector3 area_;
 92    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 93    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 94    public global::DCL.ECSComponents.Vector3 Area {
 1895      get { return area_; }
 96      set {
 697        area_ = value;
 698      }
 99    }
 100
 101    /// <summary>Field number for the "mode" field.</summary>
 102    public const int ModeFieldNumber = 2;
 103    private global::DCL.ECSComponents.CameraModeValue mode_ = global::DCL.ECSComponents.CameraModeValue.FirstPerson;
 104    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 105    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 106    public global::DCL.ECSComponents.CameraModeValue Mode {
 0107      get { return mode_; }
 108      set {
 6109        mode_ = value;
 6110      }
 111    }
 112
 113    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 114    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 115    public override bool Equals(object other) {
 0116      return Equals(other as PBCameraModeArea);
 117    }
 118
 119    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 120    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 121    public bool Equals(PBCameraModeArea other) {
 0122      if (ReferenceEquals(other, null)) {
 0123        return false;
 124      }
 0125      if (ReferenceEquals(other, this)) {
 0126        return true;
 127      }
 0128      if (!object.Equals(Area, other.Area)) return false;
 0129      if (Mode != other.Mode) return false;
 0130      return Equals(_unknownFields, other._unknownFields);
 131    }
 132
 133    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 134    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 135    public override int GetHashCode() {
 0136      int hash = 1;
 0137      if (area_ != null) hash ^= Area.GetHashCode();
 0138      if (Mode != global::DCL.ECSComponents.CameraModeValue.FirstPerson) hash ^= Mode.GetHashCode();
 0139      if (_unknownFields != null) {
 0140        hash ^= _unknownFields.GetHashCode();
 141      }
 0142      return hash;
 143    }
 144
 145    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 146    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 147    public override string ToString() {
 0148      return pb::JsonFormatter.ToDiagnosticString(this);
 149    }
 150
 151    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 152    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 153    public void WriteTo(pb::CodedOutputStream output) {
 154    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 155      output.WriteRawMessage(this);
 156    #else
 1157      if (area_ != null) {
 1158        output.WriteRawTag(10);
 1159        output.WriteMessage(Area);
 160      }
 1161      if (Mode != global::DCL.ECSComponents.CameraModeValue.FirstPerson) {
 0162        output.WriteRawTag(16);
 0163        output.WriteEnum((int) Mode);
 164      }
 1165      if (_unknownFields != null) {
 0166        _unknownFields.WriteTo(output);
 167      }
 168    #endif
 1169    }
 170
 171    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 172    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 173    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 174    void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
 175      if (area_ != null) {
 176        output.WriteRawTag(10);
 177        output.WriteMessage(Area);
 178      }
 179      if (Mode != global::DCL.ECSComponents.CameraModeValue.FirstPerson) {
 180        output.WriteRawTag(16);
 181        output.WriteEnum((int) Mode);
 182      }
 183      if (_unknownFields != null) {
 184        _unknownFields.WriteTo(ref output);
 185      }
 186    }
 187    #endif
 188
 189    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 190    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 191    public int CalculateSize() {
 1192      int size = 0;
 1193      if (area_ != null) {
 1194        size += 1 + pb::CodedOutputStream.ComputeMessageSize(Area);
 195      }
 1196      if (Mode != global::DCL.ECSComponents.CameraModeValue.FirstPerson) {
 0197        size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Mode);
 198      }
 1199      if (_unknownFields != null) {
 0200        size += _unknownFields.CalculateSize();
 201      }
 1202      return size;
 203    }
 204
 205    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 206    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 207    public void MergeFrom(PBCameraModeArea other) {
 0208      if (other == null) {
 0209        return;
 210      }
 0211      if (other.area_ != null) {
 0212        if (area_ == null) {
 0213          Area = new global::DCL.ECSComponents.Vector3();
 214        }
 0215        Area.MergeFrom(other.Area);
 216      }
 0217      if (other.Mode != global::DCL.ECSComponents.CameraModeValue.FirstPerson) {
 0218        Mode = other.Mode;
 219      }
 0220      _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 0221    }
 222
 223    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 224    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 225    public void MergeFrom(pb::CodedInputStream input) {
 226    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 227      input.ReadRawMessage(this);
 228    #else
 229      uint tag;
 2230      while ((tag = input.ReadTag()) != 0) {
 231        switch(tag) {
 232          default:
 0233            _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
 0234            break;
 235          case 10: {
 1236            if (area_ == null) {
 1237              Area = new global::DCL.ECSComponents.Vector3();
 238            }
 1239            input.ReadMessage(Area);
 1240            break;
 241          }
 242          case 16: {
 0243            Mode = (global::DCL.ECSComponents.CameraModeValue) input.ReadEnum();
 244            break;
 245          }
 246        }
 247      }
 248    #endif
 1249    }
 250
 251    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 252    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 253    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 254    void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
 255      uint tag;
 256      while ((tag = input.ReadTag()) != 0) {
 257        switch(tag) {
 258          default:
 259            _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
 260            break;
 261          case 10: {
 262            if (area_ == null) {
 263              Area = new global::DCL.ECSComponents.Vector3();
 264            }
 265            input.ReadMessage(Area);
 266            break;
 267          }
 268          case 16: {
 269            Mode = (global::DCL.ECSComponents.CameraModeValue) input.ReadEnum();
 270            break;
 271          }
 272        }
 273      }
 274    }
 275    #endif
 276
 277  }
 278
 279  #endregion
 280
 281}
 282
 283#endregion Designer generated code