< Summary

Class:DCL.ECSComponents.PBRaycast
Assembly:Decentraland.Protocol.GeneratedCode
File(s):/tmp/workspace/unity-renderer/unity-renderer/Assets/Scripts/MainScripts/DCL/DecentralandProtocol/Raycast.gen.cs
Covered lines:15
Uncovered lines:88
Coverable lines:103
Total lines:376
Line coverage:14.5% (15 of 103)
Covered branches:0
Total branches:0

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity NPath complexity Sequence coverage
PBRaycast()0%110100%
get_Descriptor()0%2100%
PBRaycast()0%110100%
PBRaycast(...)0%30500%
Clone()0%2100%
Equals(...)0%2100%
Equals(...)0%56700%
GetHashCode()0%42600%
ToString()0%2100%
WriteTo(...)0%42600%
CalculateSize()0%42600%
MergeFrom(...)0%72800%
MergeFrom(...)0%90900%

File(s)

/tmp/workspace/unity-renderer/unity-renderer/Assets/Scripts/MainScripts/DCL/DecentralandProtocol/Raycast.gen.cs

#LineLine coverage
 1// <auto-generated>
 2//     Generated by the protocol buffer compiler.  DO NOT EDIT!
 3//     source: decentraland/sdk/components/raycast.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/raycast.proto</summary>
 15  public static partial class RaycastReflection {
 16
 17    #region Descriptor
 18    /// <summary>File descriptor for decentraland/sdk/components/raycast.proto</summary>
 19    public static pbr::FileDescriptor Descriptor {
 20      get { return descriptor; }
 21    }
 22    private static pbr::FileDescriptor descriptor;
 23
 24    static RaycastReflection() {
 25      byte[] descriptorData = global::System.Convert.FromBase64String(
 26          string.Concat(
 27            "CilkZWNlbnRyYWxhbmQvc2RrL2NvbXBvbmVudHMvcmF5Y2FzdC5wcm90bxIb",
 28            "ZGVjZW50cmFsYW5kLnNkay5jb21wb25lbnRzGiFkZWNlbnRyYWxhbmQvY29t",
 29            "bW9uL3ZlY3RvcnMucHJvdG8iwwEKCVBCUmF5Y2FzdBIsCgZvcmlnaW4YAiAB",
 30            "KAsyHC5kZWNlbnRyYWxhbmQuY29tbW9uLlZlY3RvcjMSLwoJZGlyZWN0aW9u",
 31            "GAMgASgLMhwuZGVjZW50cmFsYW5kLmNvbW1vbi5WZWN0b3IzEhQKDG1heF9k",
 32            "aXN0YW5jZRgEIAEoAhJBCgpxdWVyeV90eXBlGAUgASgOMi0uZGVjZW50cmFs",
 33            "YW5kLnNkay5jb21wb25lbnRzLlJheWNhc3RRdWVyeVR5cGUqOAoQUmF5Y2Fz",
 34            "dFF1ZXJ5VHlwZRIRCg1SUVRfSElUX0ZJUlNUEAASEQoNUlFUX1FVRVJZX0FM",
 35            "TBABQhSqAhFEQ0wuRUNTQ29tcG9uZW50c2IGcHJvdG8z"));
 36      descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
 37          new pbr::FileDescriptor[] { global::Decentraland.Common.VectorsReflection.Descriptor, },
 38          new pbr::GeneratedClrTypeInfo(new[] {typeof(global::DCL.ECSComponents.RaycastQueryType), }, null, new pbr::Gen
 39            new pbr::GeneratedClrTypeInfo(typeof(global::DCL.ECSComponents.PBRaycast), global::DCL.ECSComponents.PBRayca
 40          }));
 41    }
 42    #endregion
 43
 44  }
 45  #region Enums
 46  public enum RaycastQueryType {
 47    [pbr::OriginalName("RQT_HIT_FIRST")] RqtHitFirst = 0,
 48    [pbr::OriginalName("RQT_QUERY_ALL")] RqtQueryAll = 1,
 49  }
 50
 51  #endregion
 52
 53  #region Messages
 54  public sealed partial class PBRaycast : pb::IMessage<PBRaycast>
 55  #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 56      , pb::IBufferMessage
 57  #endif
 58  {
 159    private static readonly pb::MessageParser<PBRaycast> _parser = new pb::MessageParser<PBRaycast>(() => new PBRaycast(
 60    private pb::UnknownFieldSet _unknownFields;
 61    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 62    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 063    public static pb::MessageParser<PBRaycast> Parser { get { return _parser; } }
 64
 65    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 66    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 67    public static pbr::MessageDescriptor Descriptor {
 068      get { return global::DCL.ECSComponents.RaycastReflection.Descriptor.MessageTypes[0]; }
 69    }
 70
 71    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 72    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 73    pbr::MessageDescriptor pb::IMessage.Descriptor {
 074      get { return Descriptor; }
 75    }
 76
 77    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 78    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 479    public PBRaycast() {
 80      OnConstruction();
 481    }
 82
 83    partial void OnConstruction();
 84
 85    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 86    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 087    public PBRaycast(PBRaycast other) : this() {
 088      origin_ = other.origin_ != null ? other.origin_.Clone() : null;
 089      direction_ = other.direction_ != null ? other.direction_.Clone() : null;
 090      maxDistance_ = other.maxDistance_;
 091      queryType_ = other.queryType_;
 092      _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
 093    }
 94
 95    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 96    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 97    public PBRaycast Clone() {
 098      return new PBRaycast(this);
 99    }
 100
 101    /// <summary>Field number for the "origin" field.</summary>
 102    public const int OriginFieldNumber = 2;
 103    private global::Decentraland.Common.Vector3 origin_;
 104    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 105    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 106    public global::Decentraland.Common.Vector3 Origin {
 30107      get { return origin_; }
 108      set {
 4109        origin_ = value;
 4110      }
 111    }
 112
 113    /// <summary>Field number for the "direction" field.</summary>
 114    public const int DirectionFieldNumber = 3;
 115    private global::Decentraland.Common.Vector3 direction_;
 116    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 117    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 118    public global::Decentraland.Common.Vector3 Direction {
 24119      get { return direction_; }
 120      set {
 4121        direction_ = value;
 4122      }
 123    }
 124
 125    /// <summary>Field number for the "max_distance" field.</summary>
 126    public const int MaxDistanceFieldNumber = 4;
 127    private float maxDistance_;
 128    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 129    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 130    public float MaxDistance {
 6131      get { return maxDistance_; }
 132      set {
 4133        maxDistance_ = value;
 4134      }
 135    }
 136
 137    /// <summary>Field number for the "query_type" field.</summary>
 138    public const int QueryTypeFieldNumber = 5;
 139    private global::DCL.ECSComponents.RaycastQueryType queryType_ = global::DCL.ECSComponents.RaycastQueryType.RqtHitFir
 140    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 141    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 142    public global::DCL.ECSComponents.RaycastQueryType QueryType {
 7143      get { return queryType_; }
 144      set {
 4145        queryType_ = value;
 4146      }
 147    }
 148
 149    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 150    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 151    public override bool Equals(object other) {
 0152      return Equals(other as PBRaycast);
 153    }
 154
 155    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 156    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 157    public bool Equals(PBRaycast other) {
 0158      if (ReferenceEquals(other, null)) {
 0159        return false;
 160      }
 0161      if (ReferenceEquals(other, this)) {
 0162        return true;
 163      }
 0164      if (!object.Equals(Origin, other.Origin)) return false;
 0165      if (!object.Equals(Direction, other.Direction)) return false;
 0166      if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(MaxDistance, other.MaxDistance)) return f
 0167      if (QueryType != other.QueryType) return false;
 0168      return Equals(_unknownFields, other._unknownFields);
 169    }
 170
 171    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 172    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 173    public override int GetHashCode() {
 0174      int hash = 1;
 0175      if (origin_ != null) hash ^= Origin.GetHashCode();
 0176      if (direction_ != null) hash ^= Direction.GetHashCode();
 0177      if (MaxDistance != 0F) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(MaxDistanc
 0178      if (QueryType != global::DCL.ECSComponents.RaycastQueryType.RqtHitFirst) hash ^= QueryType.GetHashCode();
 0179      if (_unknownFields != null) {
 0180        hash ^= _unknownFields.GetHashCode();
 181      }
 0182      return hash;
 183    }
 184
 185    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 186    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 187    public override string ToString() {
 0188      return pb::JsonFormatter.ToDiagnosticString(this);
 189    }
 190
 191    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 192    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 193    public void WriteTo(pb::CodedOutputStream output) {
 194    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 195      output.WriteRawMessage(this);
 196    #else
 0197      if (origin_ != null) {
 0198        output.WriteRawTag(18);
 0199        output.WriteMessage(Origin);
 200      }
 0201      if (direction_ != null) {
 0202        output.WriteRawTag(26);
 0203        output.WriteMessage(Direction);
 204      }
 0205      if (MaxDistance != 0F) {
 0206        output.WriteRawTag(37);
 0207        output.WriteFloat(MaxDistance);
 208      }
 0209      if (QueryType != global::DCL.ECSComponents.RaycastQueryType.RqtHitFirst) {
 0210        output.WriteRawTag(40);
 0211        output.WriteEnum((int) QueryType);
 212      }
 0213      if (_unknownFields != null) {
 0214        _unknownFields.WriteTo(output);
 215      }
 216    #endif
 0217    }
 218
 219    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 220    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 221    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 222    void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
 223      if (origin_ != null) {
 224        output.WriteRawTag(18);
 225        output.WriteMessage(Origin);
 226      }
 227      if (direction_ != null) {
 228        output.WriteRawTag(26);
 229        output.WriteMessage(Direction);
 230      }
 231      if (MaxDistance != 0F) {
 232        output.WriteRawTag(37);
 233        output.WriteFloat(MaxDistance);
 234      }
 235      if (QueryType != global::DCL.ECSComponents.RaycastQueryType.RqtHitFirst) {
 236        output.WriteRawTag(40);
 237        output.WriteEnum((int) QueryType);
 238      }
 239      if (_unknownFields != null) {
 240        _unknownFields.WriteTo(ref output);
 241      }
 242    }
 243    #endif
 244
 245    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 246    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 247    public int CalculateSize() {
 0248      int size = 0;
 0249      if (origin_ != null) {
 0250        size += 1 + pb::CodedOutputStream.ComputeMessageSize(Origin);
 251      }
 0252      if (direction_ != null) {
 0253        size += 1 + pb::CodedOutputStream.ComputeMessageSize(Direction);
 254      }
 0255      if (MaxDistance != 0F) {
 0256        size += 1 + 4;
 257      }
 0258      if (QueryType != global::DCL.ECSComponents.RaycastQueryType.RqtHitFirst) {
 0259        size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) QueryType);
 260      }
 0261      if (_unknownFields != null) {
 0262        size += _unknownFields.CalculateSize();
 263      }
 0264      return size;
 265    }
 266
 267    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 268    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 269    public void MergeFrom(PBRaycast other) {
 0270      if (other == null) {
 0271        return;
 272      }
 0273      if (other.origin_ != null) {
 0274        if (origin_ == null) {
 0275          Origin = new global::Decentraland.Common.Vector3();
 276        }
 0277        Origin.MergeFrom(other.Origin);
 278      }
 0279      if (other.direction_ != null) {
 0280        if (direction_ == null) {
 0281          Direction = new global::Decentraland.Common.Vector3();
 282        }
 0283        Direction.MergeFrom(other.Direction);
 284      }
 0285      if (other.MaxDistance != 0F) {
 0286        MaxDistance = other.MaxDistance;
 287      }
 0288      if (other.QueryType != global::DCL.ECSComponents.RaycastQueryType.RqtHitFirst) {
 0289        QueryType = other.QueryType;
 290      }
 0291      _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 0292    }
 293
 294    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 295    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 296    public void MergeFrom(pb::CodedInputStream input) {
 297    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 298      input.ReadRawMessage(this);
 299    #else
 300      uint tag;
 0301      while ((tag = input.ReadTag()) != 0) {
 302        switch(tag) {
 303          default:
 0304            _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
 0305            break;
 306          case 18: {
 0307            if (origin_ == null) {
 0308              Origin = new global::Decentraland.Common.Vector3();
 309            }
 0310            input.ReadMessage(Origin);
 0311            break;
 312          }
 313          case 26: {
 0314            if (direction_ == null) {
 0315              Direction = new global::Decentraland.Common.Vector3();
 316            }
 0317            input.ReadMessage(Direction);
 0318            break;
 319          }
 320          case 37: {
 0321            MaxDistance = input.ReadFloat();
 0322            break;
 323          }
 324          case 40: {
 0325            QueryType = (global::DCL.ECSComponents.RaycastQueryType) input.ReadEnum();
 326            break;
 327          }
 328        }
 329      }
 330    #endif
 0331    }
 332
 333    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 334    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 335    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 336    void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
 337      uint tag;
 338      while ((tag = input.ReadTag()) != 0) {
 339        switch(tag) {
 340          default:
 341            _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
 342            break;
 343          case 18: {
 344            if (origin_ == null) {
 345              Origin = new global::Decentraland.Common.Vector3();
 346            }
 347            input.ReadMessage(Origin);
 348            break;
 349          }
 350          case 26: {
 351            if (direction_ == null) {
 352              Direction = new global::Decentraland.Common.Vector3();
 353            }
 354            input.ReadMessage(Direction);
 355            break;
 356          }
 357          case 37: {
 358            MaxDistance = input.ReadFloat();
 359            break;
 360          }
 361          case 40: {
 362            QueryType = (global::DCL.ECSComponents.RaycastQueryType) input.ReadEnum();
 363            break;
 364          }
 365        }
 366      }
 367    }
 368    #endif
 369
 370  }
 371
 372  #endregion
 373
 374}
 375
 376#endregion Designer generated code