< Summary

Class:DCL.ECSComponents.PBRaycastResult
Assembly:Decentraland.Protocol.GeneratedCode
File(s):/tmp/workspace/unity-renderer/unity-renderer/Assets/Scripts/MainScripts/DCL/DecentralandProtocol/RaycastResult.gen.cs
Covered lines:13
Uncovered lines:86
Coverable lines:99
Total lines:841
Line coverage:13.1% (13 of 99)
Covered branches:0
Total branches:0

Metrics

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

File(s)

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

#LineLine coverage
 1// <auto-generated>
 2//     Generated by the protocol buffer compiler.  DO NOT EDIT!
 3//     source: decentraland/sdk/components/raycast_result.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_result.proto</summar
 15  public static partial class RaycastResultReflection {
 16
 17    #region Descriptor
 18    /// <summary>File descriptor for decentraland/sdk/components/raycast_result.proto</summary>
 19    public static pbr::FileDescriptor Descriptor {
 20      get { return descriptor; }
 21    }
 22    private static pbr::FileDescriptor descriptor;
 23
 24    static RaycastResultReflection() {
 25      byte[] descriptorData = global::System.Convert.FromBase64String(
 26          string.Concat(
 27            "CjBkZWNlbnRyYWxhbmQvc2RrL2NvbXBvbmVudHMvcmF5Y2FzdF9yZXN1bHQu",
 28            "cHJvdG8SG2RlY2VudHJhbGFuZC5zZGsuY29tcG9uZW50cxohZGVjZW50cmFs",
 29            "YW5kL2NvbW1vbi92ZWN0b3JzLnByb3RvIroBCg9QQlJheWNhc3RSZXN1bHQS",
 30            "EQoJdGltZXN0YW1wGAEgASgFEiwKBm9yaWdpbhgCIAEoCzIcLmRlY2VudHJh",
 31            "bGFuZC5jb21tb24uVmVjdG9yMxIvCglkaXJlY3Rpb24YAyABKAsyHC5kZWNl",
 32            "bnRyYWxhbmQuY29tbW9uLlZlY3RvcjMSNQoEaGl0cxgEIAMoCzInLmRlY2Vu",
 33            "dHJhbGFuZC5zZGsuY29tcG9uZW50cy5SYXljYXN0SGl0IqkCCgpSYXljYXN0",
 34            "SGl0Ei4KCHBvc2l0aW9uGAEgASgLMhwuZGVjZW50cmFsYW5kLmNvbW1vbi5W",
 35            "ZWN0b3IzEiwKBm9yaWdpbhgCIAEoCzIcLmRlY2VudHJhbGFuZC5jb21tb24u",
 36            "VmVjdG9yMxIvCglkaXJlY3Rpb24YAyABKAsyHC5kZWNlbnRyYWxhbmQuY29t",
 37            "bW9uLlZlY3RvcjMSMAoKbm9ybWFsX2hpdBgEIAEoCzIcLmRlY2VudHJhbGFu",
 38            "ZC5jb21tb24uVmVjdG9yMxIOCgZsZW5ndGgYBSABKAISFgoJbWVzaF9uYW1l",
 39            "GAYgASgJSACIAQESFgoJZW50aXR5X2lkGAcgASgDSAGIAQFCDAoKX21lc2hf",
 40            "bmFtZUIMCgpfZW50aXR5X2lkQhSqAhFEQ0wuRUNTQ29tcG9uZW50c2IGcHJv",
 41            "dG8z"));
 42      descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
 43          new pbr::FileDescriptor[] { global::Decentraland.Common.VectorsReflection.Descriptor, },
 44          new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] {
 45            new pbr::GeneratedClrTypeInfo(typeof(global::DCL.ECSComponents.PBRaycastResult), global::DCL.ECSComponents.P
 46            new pbr::GeneratedClrTypeInfo(typeof(global::DCL.ECSComponents.RaycastHit), global::DCL.ECSComponents.Raycas
 47          }));
 48    }
 49    #endregion
 50
 51  }
 52  #region Messages
 53  public sealed partial class PBRaycastResult : pb::IMessage<PBRaycastResult>
 54  #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 55      , pb::IBufferMessage
 56  #endif
 57  {
 158    private static readonly pb::MessageParser<PBRaycastResult> _parser = new pb::MessageParser<PBRaycastResult>(() => ne
 59    private pb::UnknownFieldSet _unknownFields;
 60    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 61    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 062    public static pb::MessageParser<PBRaycastResult> Parser { get { return _parser; } }
 63
 64    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 65    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 66    public static pbr::MessageDescriptor Descriptor {
 067      get { return global::DCL.ECSComponents.RaycastResultReflection.Descriptor.MessageTypes[0]; }
 68    }
 69
 70    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 71    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 72    pbr::MessageDescriptor pb::IMessage.Descriptor {
 073      get { return Descriptor; }
 74    }
 75
 76    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 77    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 678    public PBRaycastResult() {
 79      OnConstruction();
 680    }
 81
 82    partial void OnConstruction();
 83
 84    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 85    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 086    public PBRaycastResult(PBRaycastResult other) : this() {
 087      timestamp_ = other.timestamp_;
 088      origin_ = other.origin_ != null ? other.origin_.Clone() : null;
 089      direction_ = other.direction_ != null ? other.direction_.Clone() : null;
 090      hits_ = other.hits_.Clone();
 091      _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
 092    }
 93
 94    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 95    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 96    public PBRaycastResult Clone() {
 097      return new PBRaycastResult(this);
 98    }
 99
 100    /// <summary>Field number for the "timestamp" field.</summary>
 101    public const int TimestampFieldNumber = 1;
 102    private int timestamp_;
 103    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 104    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 105    public int Timestamp {
 4106      get { return timestamp_; }
 107      set {
 6108        timestamp_ = value;
 6109      }
 110    }
 111
 112    /// <summary>Field number for the "origin" field.</summary>
 113    public const int OriginFieldNumber = 2;
 114    private global::Decentraland.Common.Vector3 origin_;
 115    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 116    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 117    public global::Decentraland.Common.Vector3 Origin {
 0118      get { return origin_; }
 119      set {
 6120        origin_ = value;
 6121      }
 122    }
 123
 124    /// <summary>Field number for the "direction" field.</summary>
 125    public const int DirectionFieldNumber = 3;
 126    private global::Decentraland.Common.Vector3 direction_;
 127    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 128    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 129    public global::Decentraland.Common.Vector3 Direction {
 0130      get { return direction_; }
 131      set {
 6132        direction_ = value;
 6133      }
 134    }
 135
 136    /// <summary>Field number for the "hits" field.</summary>
 137    public const int HitsFieldNumber = 4;
 1138    private static readonly pb::FieldCodec<global::DCL.ECSComponents.RaycastHit> _repeated_hits_codec
 139        = pb::FieldCodec.ForMessage(34, global::DCL.ECSComponents.RaycastHit.Parser);
 6140    private readonly pbc::RepeatedField<global::DCL.ECSComponents.RaycastHit> hits_ = new pbc::RepeatedField<global::DCL
 141    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 142    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 143    public pbc::RepeatedField<global::DCL.ECSComponents.RaycastHit> Hits {
 13144      get { return hits_; }
 145    }
 146
 147    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 148    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 149    public override bool Equals(object other) {
 0150      return Equals(other as PBRaycastResult);
 151    }
 152
 153    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 154    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 155    public bool Equals(PBRaycastResult other) {
 0156      if (ReferenceEquals(other, null)) {
 0157        return false;
 158      }
 0159      if (ReferenceEquals(other, this)) {
 0160        return true;
 161      }
 0162      if (Timestamp != other.Timestamp) return false;
 0163      if (!object.Equals(Origin, other.Origin)) return false;
 0164      if (!object.Equals(Direction, other.Direction)) return false;
 0165      if(!hits_.Equals(other.hits_)) return false;
 0166      return Equals(_unknownFields, other._unknownFields);
 167    }
 168
 169    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 170    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 171    public override int GetHashCode() {
 0172      int hash = 1;
 0173      if (Timestamp != 0) hash ^= Timestamp.GetHashCode();
 0174      if (origin_ != null) hash ^= Origin.GetHashCode();
 0175      if (direction_ != null) hash ^= Direction.GetHashCode();
 0176      hash ^= hits_.GetHashCode();
 0177      if (_unknownFields != null) {
 0178        hash ^= _unknownFields.GetHashCode();
 179      }
 0180      return hash;
 181    }
 182
 183    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 184    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 185    public override string ToString() {
 0186      return pb::JsonFormatter.ToDiagnosticString(this);
 187    }
 188
 189    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 190    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 191    public void WriteTo(pb::CodedOutputStream output) {
 192    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 193      output.WriteRawMessage(this);
 194    #else
 0195      if (Timestamp != 0) {
 0196        output.WriteRawTag(8);
 0197        output.WriteInt32(Timestamp);
 198      }
 0199      if (origin_ != null) {
 0200        output.WriteRawTag(18);
 0201        output.WriteMessage(Origin);
 202      }
 0203      if (direction_ != null) {
 0204        output.WriteRawTag(26);
 0205        output.WriteMessage(Direction);
 206      }
 0207      hits_.WriteTo(output, _repeated_hits_codec);
 0208      if (_unknownFields != null) {
 0209        _unknownFields.WriteTo(output);
 210      }
 211    #endif
 0212    }
 213
 214    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 215    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 216    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 217    void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
 218      if (Timestamp != 0) {
 219        output.WriteRawTag(8);
 220        output.WriteInt32(Timestamp);
 221      }
 222      if (origin_ != null) {
 223        output.WriteRawTag(18);
 224        output.WriteMessage(Origin);
 225      }
 226      if (direction_ != null) {
 227        output.WriteRawTag(26);
 228        output.WriteMessage(Direction);
 229      }
 230      hits_.WriteTo(ref output, _repeated_hits_codec);
 231      if (_unknownFields != null) {
 232        _unknownFields.WriteTo(ref output);
 233      }
 234    }
 235    #endif
 236
 237    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 238    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 239    public int CalculateSize() {
 0240      int size = 0;
 0241      if (Timestamp != 0) {
 0242        size += 1 + pb::CodedOutputStream.ComputeInt32Size(Timestamp);
 243      }
 0244      if (origin_ != null) {
 0245        size += 1 + pb::CodedOutputStream.ComputeMessageSize(Origin);
 246      }
 0247      if (direction_ != null) {
 0248        size += 1 + pb::CodedOutputStream.ComputeMessageSize(Direction);
 249      }
 0250      size += hits_.CalculateSize(_repeated_hits_codec);
 0251      if (_unknownFields != null) {
 0252        size += _unknownFields.CalculateSize();
 253      }
 0254      return size;
 255    }
 256
 257    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 258    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 259    public void MergeFrom(PBRaycastResult other) {
 0260      if (other == null) {
 0261        return;
 262      }
 0263      if (other.Timestamp != 0) {
 0264        Timestamp = other.Timestamp;
 265      }
 0266      if (other.origin_ != null) {
 0267        if (origin_ == null) {
 0268          Origin = new global::Decentraland.Common.Vector3();
 269        }
 0270        Origin.MergeFrom(other.Origin);
 271      }
 0272      if (other.direction_ != null) {
 0273        if (direction_ == null) {
 0274          Direction = new global::Decentraland.Common.Vector3();
 275        }
 0276        Direction.MergeFrom(other.Direction);
 277      }
 0278      hits_.Add(other.hits_);
 0279      _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 0280    }
 281
 282    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 283    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 284    public void MergeFrom(pb::CodedInputStream input) {
 285    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 286      input.ReadRawMessage(this);
 287    #else
 288      uint tag;
 0289      while ((tag = input.ReadTag()) != 0) {
 290        switch(tag) {
 291          default:
 0292            _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
 0293            break;
 294          case 8: {
 0295            Timestamp = input.ReadInt32();
 0296            break;
 297          }
 298          case 18: {
 0299            if (origin_ == null) {
 0300              Origin = new global::Decentraland.Common.Vector3();
 301            }
 0302            input.ReadMessage(Origin);
 0303            break;
 304          }
 305          case 26: {
 0306            if (direction_ == null) {
 0307              Direction = new global::Decentraland.Common.Vector3();
 308            }
 0309            input.ReadMessage(Direction);
 0310            break;
 311          }
 312          case 34: {
 0313            hits_.AddEntriesFrom(input, _repeated_hits_codec);
 314            break;
 315          }
 316        }
 317      }
 318    #endif
 0319    }
 320
 321    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 322    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 323    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 324    void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
 325      uint tag;
 326      while ((tag = input.ReadTag()) != 0) {
 327        switch(tag) {
 328          default:
 329            _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
 330            break;
 331          case 8: {
 332            Timestamp = input.ReadInt32();
 333            break;
 334          }
 335          case 18: {
 336            if (origin_ == null) {
 337              Origin = new global::Decentraland.Common.Vector3();
 338            }
 339            input.ReadMessage(Origin);
 340            break;
 341          }
 342          case 26: {
 343            if (direction_ == null) {
 344              Direction = new global::Decentraland.Common.Vector3();
 345            }
 346            input.ReadMessage(Direction);
 347            break;
 348          }
 349          case 34: {
 350            hits_.AddEntriesFrom(ref input, _repeated_hits_codec);
 351            break;
 352          }
 353        }
 354      }
 355    }
 356    #endif
 357
 358  }
 359
 360  /// <summary>
 361  /// Position will be relative to the scene
 362  /// </summary>
 363  public sealed partial class RaycastHit : pb::IMessage<RaycastHit>
 364  #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 365      , pb::IBufferMessage
 366  #endif
 367  {
 368    private static readonly pb::MessageParser<RaycastHit> _parser = new pb::MessageParser<RaycastHit>(() => new RaycastH
 369    private pb::UnknownFieldSet _unknownFields;
 370    private int _hasBits0;
 371    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 372    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 373    public static pb::MessageParser<RaycastHit> Parser { get { return _parser; } }
 374
 375    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 376    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 377    public static pbr::MessageDescriptor Descriptor {
 378      get { return global::DCL.ECSComponents.RaycastResultReflection.Descriptor.MessageTypes[1]; }
 379    }
 380
 381    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 382    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 383    pbr::MessageDescriptor pb::IMessage.Descriptor {
 384      get { return Descriptor; }
 385    }
 386
 387    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 388    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 389    public RaycastHit() {
 390      OnConstruction();
 391    }
 392
 393    partial void OnConstruction();
 394
 395    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 396    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 397    public RaycastHit(RaycastHit other) : this() {
 398      _hasBits0 = other._hasBits0;
 399      position_ = other.position_ != null ? other.position_.Clone() : null;
 400      origin_ = other.origin_ != null ? other.origin_.Clone() : null;
 401      direction_ = other.direction_ != null ? other.direction_.Clone() : null;
 402      normalHit_ = other.normalHit_ != null ? other.normalHit_.Clone() : null;
 403      length_ = other.length_;
 404      meshName_ = other.meshName_;
 405      entityId_ = other.entityId_;
 406      _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
 407    }
 408
 409    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 410    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 411    public RaycastHit Clone() {
 412      return new RaycastHit(this);
 413    }
 414
 415    /// <summary>Field number for the "position" field.</summary>
 416    public const int PositionFieldNumber = 1;
 417    private global::Decentraland.Common.Vector3 position_;
 418    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 419    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 420    public global::Decentraland.Common.Vector3 Position {
 421      get { return position_; }
 422      set {
 423        position_ = value;
 424      }
 425    }
 426
 427    /// <summary>Field number for the "origin" field.</summary>
 428    public const int OriginFieldNumber = 2;
 429    private global::Decentraland.Common.Vector3 origin_;
 430    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 431    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 432    public global::Decentraland.Common.Vector3 Origin {
 433      get { return origin_; }
 434      set {
 435        origin_ = value;
 436      }
 437    }
 438
 439    /// <summary>Field number for the "direction" field.</summary>
 440    public const int DirectionFieldNumber = 3;
 441    private global::Decentraland.Common.Vector3 direction_;
 442    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 443    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 444    public global::Decentraland.Common.Vector3 Direction {
 445      get { return direction_; }
 446      set {
 447        direction_ = value;
 448      }
 449    }
 450
 451    /// <summary>Field number for the "normal_hit" field.</summary>
 452    public const int NormalHitFieldNumber = 4;
 453    private global::Decentraland.Common.Vector3 normalHit_;
 454    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 455    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 456    public global::Decentraland.Common.Vector3 NormalHit {
 457      get { return normalHit_; }
 458      set {
 459        normalHit_ = value;
 460      }
 461    }
 462
 463    /// <summary>Field number for the "length" field.</summary>
 464    public const int LengthFieldNumber = 5;
 465    private float length_;
 466    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 467    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 468    public float Length {
 469      get { return length_; }
 470      set {
 471        length_ = value;
 472      }
 473    }
 474
 475    /// <summary>Field number for the "mesh_name" field.</summary>
 476    public const int MeshNameFieldNumber = 6;
 477    private string meshName_;
 478    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 479    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 480    public string MeshName {
 481      get { return meshName_ ?? ""; }
 482      set {
 483        meshName_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
 484      }
 485    }
 486    /// <summary>Gets whether the "mesh_name" field is set</summary>
 487    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 488    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 489    public bool HasMeshName {
 490      get { return meshName_ != null; }
 491    }
 492    /// <summary>Clears the value of the "mesh_name" field</summary>
 493    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 494    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 495    public void ClearMeshName() {
 496      meshName_ = null;
 497    }
 498
 499    /// <summary>Field number for the "entity_id" field.</summary>
 500    public const int EntityIdFieldNumber = 7;
 501    private long entityId_;
 502    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 503    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 504    public long EntityId {
 505      get { if ((_hasBits0 & 1) != 0) { return entityId_; } else { return 0L; } }
 506      set {
 507        _hasBits0 |= 1;
 508        entityId_ = value;
 509      }
 510    }
 511    /// <summary>Gets whether the "entity_id" field is set</summary>
 512    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 513    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 514    public bool HasEntityId {
 515      get { return (_hasBits0 & 1) != 0; }
 516    }
 517    /// <summary>Clears the value of the "entity_id" field</summary>
 518    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 519    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 520    public void ClearEntityId() {
 521      _hasBits0 &= ~1;
 522    }
 523
 524    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 525    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 526    public override bool Equals(object other) {
 527      return Equals(other as RaycastHit);
 528    }
 529
 530    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 531    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 532    public bool Equals(RaycastHit other) {
 533      if (ReferenceEquals(other, null)) {
 534        return false;
 535      }
 536      if (ReferenceEquals(other, this)) {
 537        return true;
 538      }
 539      if (!object.Equals(Position, other.Position)) return false;
 540      if (!object.Equals(Origin, other.Origin)) return false;
 541      if (!object.Equals(Direction, other.Direction)) return false;
 542      if (!object.Equals(NormalHit, other.NormalHit)) return false;
 543      if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(Length, other.Length)) return false;
 544      if (MeshName != other.MeshName) return false;
 545      if (EntityId != other.EntityId) return false;
 546      return Equals(_unknownFields, other._unknownFields);
 547    }
 548
 549    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 550    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 551    public override int GetHashCode() {
 552      int hash = 1;
 553      if (position_ != null) hash ^= Position.GetHashCode();
 554      if (origin_ != null) hash ^= Origin.GetHashCode();
 555      if (direction_ != null) hash ^= Direction.GetHashCode();
 556      if (normalHit_ != null) hash ^= NormalHit.GetHashCode();
 557      if (Length != 0F) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(Length);
 558      if (HasMeshName) hash ^= MeshName.GetHashCode();
 559      if (HasEntityId) hash ^= EntityId.GetHashCode();
 560      if (_unknownFields != null) {
 561        hash ^= _unknownFields.GetHashCode();
 562      }
 563      return hash;
 564    }
 565
 566    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 567    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 568    public override string ToString() {
 569      return pb::JsonFormatter.ToDiagnosticString(this);
 570    }
 571
 572    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 573    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 574    public void WriteTo(pb::CodedOutputStream output) {
 575    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 576      output.WriteRawMessage(this);
 577    #else
 578      if (position_ != null) {
 579        output.WriteRawTag(10);
 580        output.WriteMessage(Position);
 581      }
 582      if (origin_ != null) {
 583        output.WriteRawTag(18);
 584        output.WriteMessage(Origin);
 585      }
 586      if (direction_ != null) {
 587        output.WriteRawTag(26);
 588        output.WriteMessage(Direction);
 589      }
 590      if (normalHit_ != null) {
 591        output.WriteRawTag(34);
 592        output.WriteMessage(NormalHit);
 593      }
 594      if (Length != 0F) {
 595        output.WriteRawTag(45);
 596        output.WriteFloat(Length);
 597      }
 598      if (HasMeshName) {
 599        output.WriteRawTag(50);
 600        output.WriteString(MeshName);
 601      }
 602      if (HasEntityId) {
 603        output.WriteRawTag(56);
 604        output.WriteInt64(EntityId);
 605      }
 606      if (_unknownFields != null) {
 607        _unknownFields.WriteTo(output);
 608      }
 609    #endif
 610    }
 611
 612    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 613    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 614    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 615    void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
 616      if (position_ != null) {
 617        output.WriteRawTag(10);
 618        output.WriteMessage(Position);
 619      }
 620      if (origin_ != null) {
 621        output.WriteRawTag(18);
 622        output.WriteMessage(Origin);
 623      }
 624      if (direction_ != null) {
 625        output.WriteRawTag(26);
 626        output.WriteMessage(Direction);
 627      }
 628      if (normalHit_ != null) {
 629        output.WriteRawTag(34);
 630        output.WriteMessage(NormalHit);
 631      }
 632      if (Length != 0F) {
 633        output.WriteRawTag(45);
 634        output.WriteFloat(Length);
 635      }
 636      if (HasMeshName) {
 637        output.WriteRawTag(50);
 638        output.WriteString(MeshName);
 639      }
 640      if (HasEntityId) {
 641        output.WriteRawTag(56);
 642        output.WriteInt64(EntityId);
 643      }
 644      if (_unknownFields != null) {
 645        _unknownFields.WriteTo(ref output);
 646      }
 647    }
 648    #endif
 649
 650    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 651    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 652    public int CalculateSize() {
 653      int size = 0;
 654      if (position_ != null) {
 655        size += 1 + pb::CodedOutputStream.ComputeMessageSize(Position);
 656      }
 657      if (origin_ != null) {
 658        size += 1 + pb::CodedOutputStream.ComputeMessageSize(Origin);
 659      }
 660      if (direction_ != null) {
 661        size += 1 + pb::CodedOutputStream.ComputeMessageSize(Direction);
 662      }
 663      if (normalHit_ != null) {
 664        size += 1 + pb::CodedOutputStream.ComputeMessageSize(NormalHit);
 665      }
 666      if (Length != 0F) {
 667        size += 1 + 4;
 668      }
 669      if (HasMeshName) {
 670        size += 1 + pb::CodedOutputStream.ComputeStringSize(MeshName);
 671      }
 672      if (HasEntityId) {
 673        size += 1 + pb::CodedOutputStream.ComputeInt64Size(EntityId);
 674      }
 675      if (_unknownFields != null) {
 676        size += _unknownFields.CalculateSize();
 677      }
 678      return size;
 679    }
 680
 681    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 682    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 683    public void MergeFrom(RaycastHit other) {
 684      if (other == null) {
 685        return;
 686      }
 687      if (other.position_ != null) {
 688        if (position_ == null) {
 689          Position = new global::Decentraland.Common.Vector3();
 690        }
 691        Position.MergeFrom(other.Position);
 692      }
 693      if (other.origin_ != null) {
 694        if (origin_ == null) {
 695          Origin = new global::Decentraland.Common.Vector3();
 696        }
 697        Origin.MergeFrom(other.Origin);
 698      }
 699      if (other.direction_ != null) {
 700        if (direction_ == null) {
 701          Direction = new global::Decentraland.Common.Vector3();
 702        }
 703        Direction.MergeFrom(other.Direction);
 704      }
 705      if (other.normalHit_ != null) {
 706        if (normalHit_ == null) {
 707          NormalHit = new global::Decentraland.Common.Vector3();
 708        }
 709        NormalHit.MergeFrom(other.NormalHit);
 710      }
 711      if (other.Length != 0F) {
 712        Length = other.Length;
 713      }
 714      if (other.HasMeshName) {
 715        MeshName = other.MeshName;
 716      }
 717      if (other.HasEntityId) {
 718        EntityId = other.EntityId;
 719      }
 720      _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 721    }
 722
 723    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 724    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 725    public void MergeFrom(pb::CodedInputStream input) {
 726    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 727      input.ReadRawMessage(this);
 728    #else
 729      uint tag;
 730      while ((tag = input.ReadTag()) != 0) {
 731        switch(tag) {
 732          default:
 733            _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
 734            break;
 735          case 10: {
 736            if (position_ == null) {
 737              Position = new global::Decentraland.Common.Vector3();
 738            }
 739            input.ReadMessage(Position);
 740            break;
 741          }
 742          case 18: {
 743            if (origin_ == null) {
 744              Origin = new global::Decentraland.Common.Vector3();
 745            }
 746            input.ReadMessage(Origin);
 747            break;
 748          }
 749          case 26: {
 750            if (direction_ == null) {
 751              Direction = new global::Decentraland.Common.Vector3();
 752            }
 753            input.ReadMessage(Direction);
 754            break;
 755          }
 756          case 34: {
 757            if (normalHit_ == null) {
 758              NormalHit = new global::Decentraland.Common.Vector3();
 759            }
 760            input.ReadMessage(NormalHit);
 761            break;
 762          }
 763          case 45: {
 764            Length = input.ReadFloat();
 765            break;
 766          }
 767          case 50: {
 768            MeshName = input.ReadString();
 769            break;
 770          }
 771          case 56: {
 772            EntityId = input.ReadInt64();
 773            break;
 774          }
 775        }
 776      }
 777    #endif
 778    }
 779
 780    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 781    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 782    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 783    void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
 784      uint tag;
 785      while ((tag = input.ReadTag()) != 0) {
 786        switch(tag) {
 787          default:
 788            _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
 789            break;
 790          case 10: {
 791            if (position_ == null) {
 792              Position = new global::Decentraland.Common.Vector3();
 793            }
 794            input.ReadMessage(Position);
 795            break;
 796          }
 797          case 18: {
 798            if (origin_ == null) {
 799              Origin = new global::Decentraland.Common.Vector3();
 800            }
 801            input.ReadMessage(Origin);
 802            break;
 803          }
 804          case 26: {
 805            if (direction_ == null) {
 806              Direction = new global::Decentraland.Common.Vector3();
 807            }
 808            input.ReadMessage(Direction);
 809            break;
 810          }
 811          case 34: {
 812            if (normalHit_ == null) {
 813              NormalHit = new global::Decentraland.Common.Vector3();
 814            }
 815            input.ReadMessage(NormalHit);
 816            break;
 817          }
 818          case 45: {
 819            Length = input.ReadFloat();
 820            break;
 821          }
 822          case 50: {
 823            MeshName = input.ReadString();
 824            break;
 825          }
 826          case 56: {
 827            EntityId = input.ReadInt64();
 828            break;
 829          }
 830        }
 831      }
 832    }
 833    #endif
 834
 835  }
 836
 837  #endregion
 838
 839}
 840
 841#endregion Designer generated code