< Summary

Class:DCL.ECSComponents.PBCameraModeArea
Assembly:DCL.Components.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:218
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            "bW9uL1ZlY3RvcjMucHJvdG8iVgoQUEJDYW1lcmFNb2RlQXJlYRIWCgRhcmVh",
 29            "GAEgASgLMgguVmVjdG9yMxIqCgRtb2RlGAIgASgOMhwuZGVjZW50cmFsYW5k",
 30            "LmVjcy5DYW1lcmFNb2RlKjAKCkNhbWVyYU1vZGUSEAoMRklSU1RfUEVSU09O",
 31            "EAASEAoMVEhJUkRfUEVSU09OEAFCFKoCEURDTC5FQ1NDb21wb25lbnRzYgZw",
 32            "cm90bzM="));
 33      descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
 34          new pbr::FileDescriptor[] { global::Vector3Reflection.Descriptor, },
 35          new pbr::GeneratedClrTypeInfo(new[] {typeof(global::DCL.ECSComponents.CameraMode), }, null, new pbr::Generated
 36            new pbr::GeneratedClrTypeInfo(typeof(global::DCL.ECSComponents.PBCameraModeArea), global::DCL.ECSComponents.
 37          }));
 38    }
 39    #endregion
 40
 41  }
 42  #region Enums
 43  public enum CameraMode {
 44    [pbr::OriginalName("FIRST_PERSON")] FirstPerson = 0,
 45    [pbr::OriginalName("THIRD_PERSON")] ThirdPerson = 1,
 46  }
 47
 48  #endregion
 49
 50  #region Messages
 51  public sealed partial class PBCameraModeArea : pb::IMessage<PBCameraModeArea> {
 252    private static readonly pb::MessageParser<PBCameraModeArea> _parser = new pb::MessageParser<PBCameraModeArea>(() => 
 53    private pb::UnknownFieldSet _unknownFields;
 54    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 055    public static pb::MessageParser<PBCameraModeArea> Parser { get { return _parser; } }
 56
 57    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 58    public static pbr::MessageDescriptor Descriptor {
 059      get { return global::DCL.ECSComponents.CameraModeAreaReflection.Descriptor.MessageTypes[0]; }
 60    }
 61
 62    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 63    pbr::MessageDescriptor pb::IMessage.Descriptor {
 064      get { return Descriptor; }
 65    }
 66
 67    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 668    public PBCameraModeArea() {
 69      OnConstruction();
 670    }
 71
 72    partial void OnConstruction();
 73
 74    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 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    public PBCameraModeArea Clone() {
 083      return new PBCameraModeArea(this);
 84    }
 85
 86    /// <summary>Field number for the "area" field.</summary>
 87    public const int AreaFieldNumber = 1;
 88    private global::Vector3 area_;
 89    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 90    public global::Vector3 Area {
 1891      get { return area_; }
 92      set {
 693        area_ = value;
 694      }
 95    }
 96
 97    /// <summary>Field number for the "mode" field.</summary>
 98    public const int ModeFieldNumber = 2;
 99    private global::DCL.ECSComponents.CameraMode mode_ = global::DCL.ECSComponents.CameraMode.FirstPerson;
 100    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 101    public global::DCL.ECSComponents.CameraMode Mode {
 0102      get { return mode_; }
 103      set {
 6104        mode_ = value;
 6105      }
 106    }
 107
 108    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 109    public override bool Equals(object other) {
 0110      return Equals(other as PBCameraModeArea);
 111    }
 112
 113    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 114    public bool Equals(PBCameraModeArea other) {
 0115      if (ReferenceEquals(other, null)) {
 0116        return false;
 117      }
 0118      if (ReferenceEquals(other, this)) {
 0119        return true;
 120      }
 0121      if (!object.Equals(Area, other.Area)) return false;
 0122      if (Mode != other.Mode) return false;
 0123      return Equals(_unknownFields, other._unknownFields);
 124    }
 125
 126    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 127    public override int GetHashCode() {
 0128      int hash = 1;
 0129      if (area_ != null) hash ^= Area.GetHashCode();
 0130      if (Mode != global::DCL.ECSComponents.CameraMode.FirstPerson) hash ^= Mode.GetHashCode();
 0131      if (_unknownFields != null) {
 0132        hash ^= _unknownFields.GetHashCode();
 133      }
 0134      return hash;
 135    }
 136
 137    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 138    public override string ToString() {
 0139      return pb::JsonFormatter.ToDiagnosticString(this);
 140    }
 141
 142    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 143    public void WriteTo(pb::CodedOutputStream output) {
 1144      if (area_ != null) {
 1145        output.WriteRawTag(10);
 1146        output.WriteMessage(Area);
 147      }
 1148      if (Mode != global::DCL.ECSComponents.CameraMode.FirstPerson) {
 0149        output.WriteRawTag(16);
 0150        output.WriteEnum((int) Mode);
 151      }
 1152      if (_unknownFields != null) {
 0153        _unknownFields.WriteTo(output);
 154      }
 1155    }
 156
 157    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 158    public int CalculateSize() {
 1159      int size = 0;
 1160      if (area_ != null) {
 1161        size += 1 + pb::CodedOutputStream.ComputeMessageSize(Area);
 162      }
 1163      if (Mode != global::DCL.ECSComponents.CameraMode.FirstPerson) {
 0164        size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Mode);
 165      }
 1166      if (_unknownFields != null) {
 0167        size += _unknownFields.CalculateSize();
 168      }
 1169      return size;
 170    }
 171
 172    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 173    public void MergeFrom(PBCameraModeArea other) {
 0174      if (other == null) {
 0175        return;
 176      }
 0177      if (other.area_ != null) {
 0178        if (area_ == null) {
 0179          Area = new global::Vector3();
 180        }
 0181        Area.MergeFrom(other.Area);
 182      }
 0183      if (other.Mode != global::DCL.ECSComponents.CameraMode.FirstPerson) {
 0184        Mode = other.Mode;
 185      }
 0186      _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 0187    }
 188
 189    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 190    public void MergeFrom(pb::CodedInputStream input) {
 191      uint tag;
 2192      while ((tag = input.ReadTag()) != 0) {
 193        switch(tag) {
 194          default:
 0195            _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
 0196            break;
 197          case 10: {
 1198            if (area_ == null) {
 1199              Area = new global::Vector3();
 200            }
 1201            input.ReadMessage(Area);
 1202            break;
 203          }
 204          case 16: {
 0205            Mode = (global::DCL.ECSComponents.CameraMode) input.ReadEnum();
 206            break;
 207          }
 208        }
 209      }
 1210    }
 211
 212  }
 213
 214  #endregion
 215
 216}
 217
 218#endregion Designer generated code