< Summary

Class:DCL.ECSComponents.PBCameraModeArea
Assembly:Decentraland.Protocol.GeneratedCode
File(s):/tmp/workspace/unity-renderer/unity-renderer/Assets/Scripts/MainScripts/DCL/DecentralandProtocol/CameraModeArea.gen.cs
Covered lines:28
Uncovered lines:41
Coverable lines:69
Total lines:284
Line coverage:40.5% (28 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/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 {
 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            "CjJkZWNlbnRyYWxhbmQvc2RrL2NvbXBvbmVudHMvY2FtZXJhX21vZGVfYXJl",
 28            "YS5wcm90bxIbZGVjZW50cmFsYW5kLnNkay5jb21wb25lbnRzGiFkZWNlbnRy",
 29            "YWxhbmQvY29tbW9uL3ZlY3RvcnMucHJvdG8aNGRlY2VudHJhbGFuZC9zZGsv",
 30            "Y29tcG9uZW50cy9jb21tb24vY2FtZXJhX3R5cGUucHJvdG8ifAoQUEJDYW1l",
 31            "cmFNb2RlQXJlYRIqCgRhcmVhGAEgASgLMhwuZGVjZW50cmFsYW5kLmNvbW1v",
 32            "bi5WZWN0b3IzEjwKBG1vZGUYAiABKA4yLi5kZWNlbnRyYWxhbmQuc2RrLmNv",
 33            "bXBvbmVudHMuY29tbW9uLkNhbWVyYVR5cGVCFKoCEURDTC5FQ1NDb21wb25l",
 34            "bnRzYgZwcm90bzM="));
 35      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          }));
 40    }
 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  {
 250    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)]
 154    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 {
 059      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 {
 065      get { return Descriptor; }
 66    }
 67
 68    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 69    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 770    public PBCameraModeArea() {
 71      OnConstruction();
 772    }
 73
 74    partial void OnConstruction();
 75
 76    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 77    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 078    public PBCameraModeArea(PBCameraModeArea other) : this() {
 079      area_ = other.area_ != null ? other.area_.Clone() : null;
 080      mode_ = other.mode_;
 081      _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
 082    }
 83
 84    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 85    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 86    public PBCameraModeArea Clone() {
 087      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 {
 2796      get { return area_; }
 97      set {
 798        area_ = value;
 799      }
 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 {
 12108      get { return mode_; }
 109      set {
 7110        mode_ = value;
 7111      }
 112    }
 113
 114    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 115    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 116    public override bool Equals(object other) {
 0117      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) {
 0123      if (ReferenceEquals(other, null)) {
 0124        return false;
 125      }
 0126      if (ReferenceEquals(other, this)) {
 0127        return true;
 128      }
 0129      if (!object.Equals(Area, other.Area)) return false;
 0130      if (Mode != other.Mode) return false;
 0131      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() {
 0137      int hash = 1;
 0138      if (area_ != null) hash ^= Area.GetHashCode();
 0139      if (Mode != global::DCL.ECSComponents.CameraType.CtFirstPerson) hash ^= Mode.GetHashCode();
 0140      if (_unknownFields != null) {
 0141        hash ^= _unknownFields.GetHashCode();
 142      }
 0143      return hash;
 144    }
 145
 146    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 147    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 148    public override string ToString() {
 0149      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
 1158      if (area_ != null) {
 1159        output.WriteRawTag(10);
 1160        output.WriteMessage(Area);
 161      }
 1162      if (Mode != global::DCL.ECSComponents.CameraType.CtFirstPerson) {
 0163        output.WriteRawTag(16);
 0164        output.WriteEnum((int) Mode);
 165      }
 1166      if (_unknownFields != null) {
 0167        _unknownFields.WriteTo(output);
 168      }
 169    #endif
 1170    }
 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() {
 1193      int size = 0;
 1194      if (area_ != null) {
 1195        size += 1 + pb::CodedOutputStream.ComputeMessageSize(Area);
 196      }
 1197      if (Mode != global::DCL.ECSComponents.CameraType.CtFirstPerson) {
 0198        size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Mode);
 199      }
 1200      if (_unknownFields != null) {
 0201        size += _unknownFields.CalculateSize();
 202      }
 1203      return size;
 204    }
 205
 206    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 207    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 208    public void MergeFrom(PBCameraModeArea other) {
 0209      if (other == null) {
 0210        return;
 211      }
 0212      if (other.area_ != null) {
 0213        if (area_ == null) {
 0214          Area = new global::Decentraland.Common.Vector3();
 215        }
 0216        Area.MergeFrom(other.Area);
 217      }
 0218      if (other.Mode != global::DCL.ECSComponents.CameraType.CtFirstPerson) {
 0219        Mode = other.Mode;
 220      }
 0221      _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 0222    }
 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;
 2231      while ((tag = input.ReadTag()) != 0) {
 232        switch(tag) {
 233          default:
 0234            _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
 0235            break;
 236          case 10: {
 1237            if (area_ == null) {
 1238              Area = new global::Decentraland.Common.Vector3();
 239            }
 1240            input.ReadMessage(Area);
 1241            break;
 242          }
 243          case 16: {
 0244            Mode = (global::DCL.ECSComponents.CameraType) input.ReadEnum();
 245            break;
 246          }
 247        }
 248      }
 249    #endif
 1250    }
 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