< Summary

Class:DCL.ECSComponents.RaycastHit
Assembly:Decentraland.Protocol.GeneratedCode
File(s):/tmp/workspace/unity-renderer/unity-renderer/Assets/Scripts/MainScripts/DCL/DecentralandProtocol/RaycastResult.gen.cs
Covered lines:24
Uncovered lines:140
Coverable lines:164
Total lines:841
Line coverage:14.6% (24 of 164)
Covered branches:0
Total branches:0

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity NPath complexity Sequence coverage
RaycastHit()0%110100%
get_Descriptor()0%2100%
RaycastHit()0%110100%
RaycastHit(...)0%90900%
Clone()0%2100%
ClearMeshName()0%2100%
ClearEntityId()0%2100%
Equals(...)0%2100%
Equals(...)0%1101000%
GetHashCode()0%90900%
ToString()0%2100%
WriteTo(...)0%90900%
CalculateSize()0%90900%
MergeFrom(...)0%1821300%
MergeFrom(...)0%2401500%

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  {
 58    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)]
 62    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 {
 67      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 {
 73      get { return Descriptor; }
 74    }
 75
 76    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 77    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 78    public PBRaycastResult() {
 79      OnConstruction();
 80    }
 81
 82    partial void OnConstruction();
 83
 84    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 85    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 86    public PBRaycastResult(PBRaycastResult other) : this() {
 87      timestamp_ = other.timestamp_;
 88      origin_ = other.origin_ != null ? other.origin_.Clone() : null;
 89      direction_ = other.direction_ != null ? other.direction_.Clone() : null;
 90      hits_ = other.hits_.Clone();
 91      _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
 92    }
 93
 94    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 95    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 96    public PBRaycastResult Clone() {
 97      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 {
 106      get { return timestamp_; }
 107      set {
 108        timestamp_ = value;
 109      }
 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 {
 118      get { return origin_; }
 119      set {
 120        origin_ = value;
 121      }
 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 {
 130      get { return direction_; }
 131      set {
 132        direction_ = value;
 133      }
 134    }
 135
 136    /// <summary>Field number for the "hits" field.</summary>
 137    public const int HitsFieldNumber = 4;
 138    private static readonly pb::FieldCodec<global::DCL.ECSComponents.RaycastHit> _repeated_hits_codec
 139        = pb::FieldCodec.ForMessage(34, global::DCL.ECSComponents.RaycastHit.Parser);
 140    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 {
 144      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) {
 150      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) {
 156      if (ReferenceEquals(other, null)) {
 157        return false;
 158      }
 159      if (ReferenceEquals(other, this)) {
 160        return true;
 161      }
 162      if (Timestamp != other.Timestamp) return false;
 163      if (!object.Equals(Origin, other.Origin)) return false;
 164      if (!object.Equals(Direction, other.Direction)) return false;
 165      if(!hits_.Equals(other.hits_)) return false;
 166      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() {
 172      int hash = 1;
 173      if (Timestamp != 0) hash ^= Timestamp.GetHashCode();
 174      if (origin_ != null) hash ^= Origin.GetHashCode();
 175      if (direction_ != null) hash ^= Direction.GetHashCode();
 176      hash ^= hits_.GetHashCode();
 177      if (_unknownFields != null) {
 178        hash ^= _unknownFields.GetHashCode();
 179      }
 180      return hash;
 181    }
 182
 183    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 184    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 185    public override string ToString() {
 186      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
 195      if (Timestamp != 0) {
 196        output.WriteRawTag(8);
 197        output.WriteInt32(Timestamp);
 198      }
 199      if (origin_ != null) {
 200        output.WriteRawTag(18);
 201        output.WriteMessage(Origin);
 202      }
 203      if (direction_ != null) {
 204        output.WriteRawTag(26);
 205        output.WriteMessage(Direction);
 206      }
 207      hits_.WriteTo(output, _repeated_hits_codec);
 208      if (_unknownFields != null) {
 209        _unknownFields.WriteTo(output);
 210      }
 211    #endif
 212    }
 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() {
 240      int size = 0;
 241      if (Timestamp != 0) {
 242        size += 1 + pb::CodedOutputStream.ComputeInt32Size(Timestamp);
 243      }
 244      if (origin_ != null) {
 245        size += 1 + pb::CodedOutputStream.ComputeMessageSize(Origin);
 246      }
 247      if (direction_ != null) {
 248        size += 1 + pb::CodedOutputStream.ComputeMessageSize(Direction);
 249      }
 250      size += hits_.CalculateSize(_repeated_hits_codec);
 251      if (_unknownFields != null) {
 252        size += _unknownFields.CalculateSize();
 253      }
 254      return size;
 255    }
 256
 257    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 258    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 259    public void MergeFrom(PBRaycastResult other) {
 260      if (other == null) {
 261        return;
 262      }
 263      if (other.Timestamp != 0) {
 264        Timestamp = other.Timestamp;
 265      }
 266      if (other.origin_ != null) {
 267        if (origin_ == null) {
 268          Origin = new global::Decentraland.Common.Vector3();
 269        }
 270        Origin.MergeFrom(other.Origin);
 271      }
 272      if (other.direction_ != null) {
 273        if (direction_ == null) {
 274          Direction = new global::Decentraland.Common.Vector3();
 275        }
 276        Direction.MergeFrom(other.Direction);
 277      }
 278      hits_.Add(other.hits_);
 279      _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 280    }
 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;
 289      while ((tag = input.ReadTag()) != 0) {
 290        switch(tag) {
 291          default:
 292            _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
 293            break;
 294          case 8: {
 295            Timestamp = input.ReadInt32();
 296            break;
 297          }
 298          case 18: {
 299            if (origin_ == null) {
 300              Origin = new global::Decentraland.Common.Vector3();
 301            }
 302            input.ReadMessage(Origin);
 303            break;
 304          }
 305          case 26: {
 306            if (direction_ == null) {
 307              Direction = new global::Decentraland.Common.Vector3();
 308            }
 309            input.ReadMessage(Direction);
 310            break;
 311          }
 312          case 34: {
 313            hits_.AddEntriesFrom(input, _repeated_hits_codec);
 314            break;
 315          }
 316        }
 317      }
 318    #endif
 319    }
 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  {
 1368    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)]
 1373    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 {
 0378      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 {
 0384      get { return Descriptor; }
 385    }
 386
 387    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 388    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 48389    public RaycastHit() {
 390      OnConstruction();
 48391    }
 392
 393    partial void OnConstruction();
 394
 395    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 396    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 0397    public RaycastHit(RaycastHit other) : this() {
 0398      _hasBits0 = other._hasBits0;
 0399      position_ = other.position_ != null ? other.position_.Clone() : null;
 0400      origin_ = other.origin_ != null ? other.origin_.Clone() : null;
 0401      direction_ = other.direction_ != null ? other.direction_.Clone() : null;
 0402      normalHit_ = other.normalHit_ != null ? other.normalHit_.Clone() : null;
 0403      length_ = other.length_;
 0404      meshName_ = other.meshName_;
 0405      entityId_ = other.entityId_;
 0406      _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
 0407    }
 408
 409    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 410    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 411    public RaycastHit Clone() {
 0412      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 {
 20421      get { return position_; }
 422      set {
 48423        position_ = value;
 48424      }
 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 {
 2433      get { return origin_; }
 434      set {
 48435        origin_ = value;
 48436      }
 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 {
 0445      get { return direction_; }
 446      set {
 42447        direction_ = value;
 42448      }
 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 {
 18457      get { return normalHit_; }
 458      set {
 48459        normalHit_ = value;
 48460      }
 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 {
 0469      get { return length_; }
 470      set {
 48471        length_ = value;
 48472      }
 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 {
 0481      get { return meshName_ ?? ""; }
 482      set {
 6483        meshName_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
 6484      }
 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 {
 0490      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() {
 0496      meshName_ = null;
 0497    }
 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 {
 22505      get { if ((_hasBits0 & 1) != 0) { return entityId_; } else { return 0L; } }
 506      set {
 43507        _hasBits0 |= 1;
 43508        entityId_ = value;
 43509      }
 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 {
 1515      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() {
 0521      _hasBits0 &= ~1;
 0522    }
 523
 524    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 525    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 526    public override bool Equals(object other) {
 0527      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) {
 0533      if (ReferenceEquals(other, null)) {
 0534        return false;
 535      }
 0536      if (ReferenceEquals(other, this)) {
 0537        return true;
 538      }
 0539      if (!object.Equals(Position, other.Position)) return false;
 0540      if (!object.Equals(Origin, other.Origin)) return false;
 0541      if (!object.Equals(Direction, other.Direction)) return false;
 0542      if (!object.Equals(NormalHit, other.NormalHit)) return false;
 0543      if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(Length, other.Length)) return false;
 0544      if (MeshName != other.MeshName) return false;
 0545      if (EntityId != other.EntityId) return false;
 0546      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() {
 0552      int hash = 1;
 0553      if (position_ != null) hash ^= Position.GetHashCode();
 0554      if (origin_ != null) hash ^= Origin.GetHashCode();
 0555      if (direction_ != null) hash ^= Direction.GetHashCode();
 0556      if (normalHit_ != null) hash ^= NormalHit.GetHashCode();
 0557      if (Length != 0F) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(Length);
 0558      if (HasMeshName) hash ^= MeshName.GetHashCode();
 0559      if (HasEntityId) hash ^= EntityId.GetHashCode();
 0560      if (_unknownFields != null) {
 0561        hash ^= _unknownFields.GetHashCode();
 562      }
 0563      return hash;
 564    }
 565
 566    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 567    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 568    public override string ToString() {
 0569      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
 0578      if (position_ != null) {
 0579        output.WriteRawTag(10);
 0580        output.WriteMessage(Position);
 581      }
 0582      if (origin_ != null) {
 0583        output.WriteRawTag(18);
 0584        output.WriteMessage(Origin);
 585      }
 0586      if (direction_ != null) {
 0587        output.WriteRawTag(26);
 0588        output.WriteMessage(Direction);
 589      }
 0590      if (normalHit_ != null) {
 0591        output.WriteRawTag(34);
 0592        output.WriteMessage(NormalHit);
 593      }
 0594      if (Length != 0F) {
 0595        output.WriteRawTag(45);
 0596        output.WriteFloat(Length);
 597      }
 0598      if (HasMeshName) {
 0599        output.WriteRawTag(50);
 0600        output.WriteString(MeshName);
 601      }
 0602      if (HasEntityId) {
 0603        output.WriteRawTag(56);
 0604        output.WriteInt64(EntityId);
 605      }
 0606      if (_unknownFields != null) {
 0607        _unknownFields.WriteTo(output);
 608      }
 609    #endif
 0610    }
 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() {
 0653      int size = 0;
 0654      if (position_ != null) {
 0655        size += 1 + pb::CodedOutputStream.ComputeMessageSize(Position);
 656      }
 0657      if (origin_ != null) {
 0658        size += 1 + pb::CodedOutputStream.ComputeMessageSize(Origin);
 659      }
 0660      if (direction_ != null) {
 0661        size += 1 + pb::CodedOutputStream.ComputeMessageSize(Direction);
 662      }
 0663      if (normalHit_ != null) {
 0664        size += 1 + pb::CodedOutputStream.ComputeMessageSize(NormalHit);
 665      }
 0666      if (Length != 0F) {
 0667        size += 1 + 4;
 668      }
 0669      if (HasMeshName) {
 0670        size += 1 + pb::CodedOutputStream.ComputeStringSize(MeshName);
 671      }
 0672      if (HasEntityId) {
 0673        size += 1 + pb::CodedOutputStream.ComputeInt64Size(EntityId);
 674      }
 0675      if (_unknownFields != null) {
 0676        size += _unknownFields.CalculateSize();
 677      }
 0678      return size;
 679    }
 680
 681    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 682    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 683    public void MergeFrom(RaycastHit other) {
 0684      if (other == null) {
 0685        return;
 686      }
 0687      if (other.position_ != null) {
 0688        if (position_ == null) {
 0689          Position = new global::Decentraland.Common.Vector3();
 690        }
 0691        Position.MergeFrom(other.Position);
 692      }
 0693      if (other.origin_ != null) {
 0694        if (origin_ == null) {
 0695          Origin = new global::Decentraland.Common.Vector3();
 696        }
 0697        Origin.MergeFrom(other.Origin);
 698      }
 0699      if (other.direction_ != null) {
 0700        if (direction_ == null) {
 0701          Direction = new global::Decentraland.Common.Vector3();
 702        }
 0703        Direction.MergeFrom(other.Direction);
 704      }
 0705      if (other.normalHit_ != null) {
 0706        if (normalHit_ == null) {
 0707          NormalHit = new global::Decentraland.Common.Vector3();
 708        }
 0709        NormalHit.MergeFrom(other.NormalHit);
 710      }
 0711      if (other.Length != 0F) {
 0712        Length = other.Length;
 713      }
 0714      if (other.HasMeshName) {
 0715        MeshName = other.MeshName;
 716      }
 0717      if (other.HasEntityId) {
 0718        EntityId = other.EntityId;
 719      }
 0720      _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 0721    }
 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;
 0730      while ((tag = input.ReadTag()) != 0) {
 731        switch(tag) {
 732          default:
 0733            _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
 0734            break;
 735          case 10: {
 0736            if (position_ == null) {
 0737              Position = new global::Decentraland.Common.Vector3();
 738            }
 0739            input.ReadMessage(Position);
 0740            break;
 741          }
 742          case 18: {
 0743            if (origin_ == null) {
 0744              Origin = new global::Decentraland.Common.Vector3();
 745            }
 0746            input.ReadMessage(Origin);
 0747            break;
 748          }
 749          case 26: {
 0750            if (direction_ == null) {
 0751              Direction = new global::Decentraland.Common.Vector3();
 752            }
 0753            input.ReadMessage(Direction);
 0754            break;
 755          }
 756          case 34: {
 0757            if (normalHit_ == null) {
 0758              NormalHit = new global::Decentraland.Common.Vector3();
 759            }
 0760            input.ReadMessage(NormalHit);
 0761            break;
 762          }
 763          case 45: {
 0764            Length = input.ReadFloat();
 0765            break;
 766          }
 767          case 50: {
 0768            MeshName = input.ReadString();
 0769            break;
 770          }
 771          case 56: {
 0772            EntityId = input.ReadInt64();
 773            break;
 774          }
 775        }
 776      }
 777    #endif
 0778    }
 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