< Summary

Class:DCL.ECSComponents.CameraModeAreaReflection
Assembly:Decentraland.Protocol.GeneratedCode
File(s):/tmp/workspace/unity-renderer/unity-renderer/Assets/Scripts/MainScripts/DCL/DecentralandProtocol/CameraModeArea.gen.cs
Covered lines:0
Uncovered lines:4
Coverable lines:4
Total lines:284
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/Scripts/MainScripts/DCL/DecentralandProtocol/CameraModeArea.gen.cs

#LineLine coverage
 1// <auto-generated>
 2//     Generated by the protocol buffer compiler.  DO NOT EDIT!
 3//     source: decentraland/sdk/components/camera_mode_area.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 decentraland/sdk/components/camera_mode_area.proto</summ
 15  public static partial class CameraModeAreaReflection {
 16
 17    #region Descriptor
 18    /// <summary>File descriptor for decentraland/sdk/components/camera_mode_area.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            "CjJkZWNlbnRyYWxhbmQvc2RrL2NvbXBvbmVudHMvY2FtZXJhX21vZGVfYXJl",
 28            "YS5wcm90bxIbZGVjZW50cmFsYW5kLnNkay5jb21wb25lbnRzGiFkZWNlbnRy",
 29            "YWxhbmQvY29tbW9uL3ZlY3RvcnMucHJvdG8aNGRlY2VudHJhbGFuZC9zZGsv",
 30            "Y29tcG9uZW50cy9jb21tb24vY2FtZXJhX3R5cGUucHJvdG8ifAoQUEJDYW1l",
 31            "cmFNb2RlQXJlYRIqCgRhcmVhGAEgASgLMhwuZGVjZW50cmFsYW5kLmNvbW1v",
 32            "bi5WZWN0b3IzEjwKBG1vZGUYAiABKA4yLi5kZWNlbnRyYWxhbmQuc2RrLmNv",
 33            "bXBvbmVudHMuY29tbW9uLkNhbWVyYVR5cGVCFKoCEURDTC5FQ1NDb21wb25l",
 34            "bnRzYgZwcm90bzM="));
 035      descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
 36          new pbr::FileDescriptor[] { global::Decentraland.Common.VectorsReflection.Descriptor, global::DCL.ECSComponent
 37          new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] {
 38            new pbr::GeneratedClrTypeInfo(typeof(global::DCL.ECSComponents.PBCameraModeArea), global::DCL.ECSComponents.
 39          }));
 040    }
 41    #endregion
 42
 43  }
 44  #region Messages
 45  public sealed partial class PBCameraModeArea : pb::IMessage<PBCameraModeArea>
 46  #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 47      , pb::IBufferMessage
 48  #endif
 49  {
 50    private static readonly pb::MessageParser<PBCameraModeArea> _parser = new pb::MessageParser<PBCameraModeArea>(() => 
 51    private pb::UnknownFieldSet _unknownFields;
 52    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 53    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 54    public static pb::MessageParser<PBCameraModeArea> Parser { get { return _parser; } }
 55
 56    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 57    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 58    public static pbr::MessageDescriptor Descriptor {
 59      get { return global::DCL.ECSComponents.CameraModeAreaReflection.Descriptor.MessageTypes[0]; }
 60    }
 61
 62    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 63    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 64    pbr::MessageDescriptor pb::IMessage.Descriptor {
 65      get { return Descriptor; }
 66    }
 67
 68    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 69    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 70    public PBCameraModeArea() {
 71      OnConstruction();
 72    }
 73
 74    partial void OnConstruction();
 75
 76    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 77    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 78    public PBCameraModeArea(PBCameraModeArea other) : this() {
 79      area_ = other.area_ != null ? other.area_.Clone() : null;
 80      mode_ = other.mode_;
 81      _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
 82    }
 83
 84    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 85    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 86    public PBCameraModeArea Clone() {
 87      return new PBCameraModeArea(this);
 88    }
 89
 90    /// <summary>Field number for the "area" field.</summary>
 91    public const int AreaFieldNumber = 1;
 92    private global::Decentraland.Common.Vector3 area_;
 93    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 94    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 95    public global::Decentraland.Common.Vector3 Area {
 96      get { return area_; }
 97      set {
 98        area_ = value;
 99      }
 100    }
 101
 102    /// <summary>Field number for the "mode" field.</summary>
 103    public const int ModeFieldNumber = 2;
 104    private global::DCL.ECSComponents.CameraType mode_ = global::DCL.ECSComponents.CameraType.CtFirstPerson;
 105    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 106    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 107    public global::DCL.ECSComponents.CameraType Mode {
 108      get { return mode_; }
 109      set {
 110        mode_ = value;
 111      }
 112    }
 113
 114    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 115    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 116    public override bool Equals(object other) {
 117      return Equals(other as PBCameraModeArea);
 118    }
 119
 120    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 121    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 122    public bool Equals(PBCameraModeArea other) {
 123      if (ReferenceEquals(other, null)) {
 124        return false;
 125      }
 126      if (ReferenceEquals(other, this)) {
 127        return true;
 128      }
 129      if (!object.Equals(Area, other.Area)) return false;
 130      if (Mode != other.Mode) return false;
 131      return Equals(_unknownFields, other._unknownFields);
 132    }
 133
 134    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 135    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 136    public override int GetHashCode() {
 137      int hash = 1;
 138      if (area_ != null) hash ^= Area.GetHashCode();
 139      if (Mode != global::DCL.ECSComponents.CameraType.CtFirstPerson) hash ^= Mode.GetHashCode();
 140      if (_unknownFields != null) {
 141        hash ^= _unknownFields.GetHashCode();
 142      }
 143      return hash;
 144    }
 145
 146    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 147    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 148    public override string ToString() {
 149      return pb::JsonFormatter.ToDiagnosticString(this);
 150    }
 151
 152    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 153    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 154    public void WriteTo(pb::CodedOutputStream output) {
 155    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 156      output.WriteRawMessage(this);
 157    #else
 158      if (area_ != null) {
 159        output.WriteRawTag(10);
 160        output.WriteMessage(Area);
 161      }
 162      if (Mode != global::DCL.ECSComponents.CameraType.CtFirstPerson) {
 163        output.WriteRawTag(16);
 164        output.WriteEnum((int) Mode);
 165      }
 166      if (_unknownFields != null) {
 167        _unknownFields.WriteTo(output);
 168      }
 169    #endif
 170    }
 171
 172    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 173    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 174    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 175    void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
 176      if (area_ != null) {
 177        output.WriteRawTag(10);
 178        output.WriteMessage(Area);
 179      }
 180      if (Mode != global::DCL.ECSComponents.CameraType.CtFirstPerson) {
 181        output.WriteRawTag(16);
 182        output.WriteEnum((int) Mode);
 183      }
 184      if (_unknownFields != null) {
 185        _unknownFields.WriteTo(ref output);
 186      }
 187    }
 188    #endif
 189
 190    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 191    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 192    public int CalculateSize() {
 193      int size = 0;
 194      if (area_ != null) {
 195        size += 1 + pb::CodedOutputStream.ComputeMessageSize(Area);
 196      }
 197      if (Mode != global::DCL.ECSComponents.CameraType.CtFirstPerson) {
 198        size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Mode);
 199      }
 200      if (_unknownFields != null) {
 201        size += _unknownFields.CalculateSize();
 202      }
 203      return size;
 204    }
 205
 206    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 207    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 208    public void MergeFrom(PBCameraModeArea other) {
 209      if (other == null) {
 210        return;
 211      }
 212      if (other.area_ != null) {
 213        if (area_ == null) {
 214          Area = new global::Decentraland.Common.Vector3();
 215        }
 216        Area.MergeFrom(other.Area);
 217      }
 218      if (other.Mode != global::DCL.ECSComponents.CameraType.CtFirstPerson) {
 219        Mode = other.Mode;
 220      }
 221      _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 222    }
 223
 224    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 225    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 226    public void MergeFrom(pb::CodedInputStream input) {
 227    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 228      input.ReadRawMessage(this);
 229    #else
 230      uint tag;
 231      while ((tag = input.ReadTag()) != 0) {
 232        switch(tag) {
 233          default:
 234            _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
 235            break;
 236          case 10: {
 237            if (area_ == null) {
 238              Area = new global::Decentraland.Common.Vector3();
 239            }
 240            input.ReadMessage(Area);
 241            break;
 242          }
 243          case 16: {
 244            Mode = (global::DCL.ECSComponents.CameraType) input.ReadEnum();
 245            break;
 246          }
 247        }
 248      }
 249    #endif
 250    }
 251
 252    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 253    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 254    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 255    void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
 256      uint tag;
 257      while ((tag = input.ReadTag()) != 0) {
 258        switch(tag) {
 259          default:
 260            _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
 261            break;
 262          case 10: {
 263            if (area_ == null) {
 264              Area = new global::Decentraland.Common.Vector3();
 265            }
 266            input.ReadMessage(Area);
 267            break;
 268          }
 269          case 16: {
 270            Mode = (global::DCL.ECSComponents.CameraType) input.ReadEnum();
 271            break;
 272          }
 273        }
 274      }
 275    }
 276    #endif
 277
 278  }
 279
 280  #endregion
 281
 282}
 283
 284#endregion Designer generated code