< Summary

Class:DCL.ECSComponents.CameraModeAreaReflection
Assembly:DCL.Components.ProtobufData
File(s):/tmp/workspace/unity-renderer/unity-renderer/Assets/DCLPlugins/ECS7/ProtocolBuffers/Generated/PBFiles/CameraModeArea.cs
Covered lines:0
Uncovered lines:4
Coverable lines:4
Total lines:218
Line coverage:0% (0 of 4)
Covered branches:0
Total branches:0

Metrics

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

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 {
 020      get { return descriptor; }
 21    }
 22    private static pbr::FileDescriptor descriptor;
 23
 24    static CameraModeAreaReflection() {
 025      byte[] descriptorData = global::System.Convert.FromBase64String(
 26          string.Concat(
 27            "ChRDYW1lcmFNb2RlQXJlYS5wcm90bxIQZGVjZW50cmFsYW5kLmVjcxoUY29t",
 28            "bW9uL1ZlY3RvcjMucHJvdG8iVgoQUEJDYW1lcmFNb2RlQXJlYRIWCgRhcmVh",
 29            "GAEgASgLMgguVmVjdG9yMxIqCgRtb2RlGAIgASgOMhwuZGVjZW50cmFsYW5k",
 30            "LmVjcy5DYW1lcmFNb2RlKjAKCkNhbWVyYU1vZGUSEAoMRklSU1RfUEVSU09O",
 31            "EAASEAoMVEhJUkRfUEVSU09OEAFCFKoCEURDTC5FQ1NDb21wb25lbnRzYgZw",
 32            "cm90bzM="));
 033      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          }));
 038    }
 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> {
 52    private static readonly pb::MessageParser<PBCameraModeArea> _parser = new pb::MessageParser<PBCameraModeArea>(() => 
 53    private pb::UnknownFieldSet _unknownFields;
 54    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 55    public static pb::MessageParser<PBCameraModeArea> Parser { get { return _parser; } }
 56
 57    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 58    public static pbr::MessageDescriptor Descriptor {
 59      get { return global::DCL.ECSComponents.CameraModeAreaReflection.Descriptor.MessageTypes[0]; }
 60    }
 61
 62    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 63    pbr::MessageDescriptor pb::IMessage.Descriptor {
 64      get { return Descriptor; }
 65    }
 66
 67    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 68    public PBCameraModeArea() {
 69      OnConstruction();
 70    }
 71
 72    partial void OnConstruction();
 73
 74    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 75    public PBCameraModeArea(PBCameraModeArea other) : this() {
 76      area_ = other.area_ != null ? other.area_.Clone() : null;
 77      mode_ = other.mode_;
 78      _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
 79    }
 80
 81    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 82    public PBCameraModeArea Clone() {
 83      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 {
 91      get { return area_; }
 92      set {
 93        area_ = value;
 94      }
 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 {
 102      get { return mode_; }
 103      set {
 104        mode_ = value;
 105      }
 106    }
 107
 108    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 109    public override bool Equals(object other) {
 110      return Equals(other as PBCameraModeArea);
 111    }
 112
 113    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 114    public bool Equals(PBCameraModeArea other) {
 115      if (ReferenceEquals(other, null)) {
 116        return false;
 117      }
 118      if (ReferenceEquals(other, this)) {
 119        return true;
 120      }
 121      if (!object.Equals(Area, other.Area)) return false;
 122      if (Mode != other.Mode) return false;
 123      return Equals(_unknownFields, other._unknownFields);
 124    }
 125
 126    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 127    public override int GetHashCode() {
 128      int hash = 1;
 129      if (area_ != null) hash ^= Area.GetHashCode();
 130      if (Mode != global::DCL.ECSComponents.CameraMode.FirstPerson) hash ^= Mode.GetHashCode();
 131      if (_unknownFields != null) {
 132        hash ^= _unknownFields.GetHashCode();
 133      }
 134      return hash;
 135    }
 136
 137    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 138    public override string ToString() {
 139      return pb::JsonFormatter.ToDiagnosticString(this);
 140    }
 141
 142    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 143    public void WriteTo(pb::CodedOutputStream output) {
 144      if (area_ != null) {
 145        output.WriteRawTag(10);
 146        output.WriteMessage(Area);
 147      }
 148      if (Mode != global::DCL.ECSComponents.CameraMode.FirstPerson) {
 149        output.WriteRawTag(16);
 150        output.WriteEnum((int) Mode);
 151      }
 152      if (_unknownFields != null) {
 153        _unknownFields.WriteTo(output);
 154      }
 155    }
 156
 157    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 158    public int CalculateSize() {
 159      int size = 0;
 160      if (area_ != null) {
 161        size += 1 + pb::CodedOutputStream.ComputeMessageSize(Area);
 162      }
 163      if (Mode != global::DCL.ECSComponents.CameraMode.FirstPerson) {
 164        size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Mode);
 165      }
 166      if (_unknownFields != null) {
 167        size += _unknownFields.CalculateSize();
 168      }
 169      return size;
 170    }
 171
 172    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 173    public void MergeFrom(PBCameraModeArea other) {
 174      if (other == null) {
 175        return;
 176      }
 177      if (other.area_ != null) {
 178        if (area_ == null) {
 179          Area = new global::Vector3();
 180        }
 181        Area.MergeFrom(other.Area);
 182      }
 183      if (other.Mode != global::DCL.ECSComponents.CameraMode.FirstPerson) {
 184        Mode = other.Mode;
 185      }
 186      _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 187    }
 188
 189    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 190    public void MergeFrom(pb::CodedInputStream input) {
 191      uint tag;
 192      while ((tag = input.ReadTag()) != 0) {
 193        switch(tag) {
 194          default:
 195            _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
 196            break;
 197          case 10: {
 198            if (area_ == null) {
 199              Area = new global::Vector3();
 200            }
 201            input.ReadMessage(Area);
 202            break;
 203          }
 204          case 16: {
 205            Mode = (global::DCL.ECSComponents.CameraMode) input.ReadEnum();
 206            break;
 207          }
 208        }
 209      }
 210    }
 211
 212  }
 213
 214  #endregion
 215
 216}
 217
 218#endregion Designer generated code