< Summary

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

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity NPath complexity Sequence coverage
RaycastReflection()0%2100%

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 {
 020      get { return descriptor; }
 21    }
 22    private static pbr::FileDescriptor descriptor;
 23
 24    static RaycastReflection() {
 025      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"));
 036      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          }));
 041    }
 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  {
 59    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)]
 63    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 {
 68      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 {
 74      get { return Descriptor; }
 75    }
 76
 77    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 78    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 79    public PBRaycast() {
 80      OnConstruction();
 81    }
 82
 83    partial void OnConstruction();
 84
 85    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 86    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 87    public PBRaycast(PBRaycast other) : this() {
 88      origin_ = other.origin_ != null ? other.origin_.Clone() : null;
 89      direction_ = other.direction_ != null ? other.direction_.Clone() : null;
 90      maxDistance_ = other.maxDistance_;
 91      queryType_ = other.queryType_;
 92      _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
 93    }
 94
 95    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 96    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 97    public PBRaycast Clone() {
 98      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 {
 107      get { return origin_; }
 108      set {
 109        origin_ = value;
 110      }
 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 {
 119      get { return direction_; }
 120      set {
 121        direction_ = value;
 122      }
 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 {
 131      get { return maxDistance_; }
 132      set {
 133        maxDistance_ = value;
 134      }
 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 {
 143      get { return queryType_; }
 144      set {
 145        queryType_ = value;
 146      }
 147    }
 148
 149    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 150    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 151    public override bool Equals(object other) {
 152      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) {
 158      if (ReferenceEquals(other, null)) {
 159        return false;
 160      }
 161      if (ReferenceEquals(other, this)) {
 162        return true;
 163      }
 164      if (!object.Equals(Origin, other.Origin)) return false;
 165      if (!object.Equals(Direction, other.Direction)) return false;
 166      if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(MaxDistance, other.MaxDistance)) return f
 167      if (QueryType != other.QueryType) return false;
 168      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() {
 174      int hash = 1;
 175      if (origin_ != null) hash ^= Origin.GetHashCode();
 176      if (direction_ != null) hash ^= Direction.GetHashCode();
 177      if (MaxDistance != 0F) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(MaxDistanc
 178      if (QueryType != global::DCL.ECSComponents.RaycastQueryType.RqtHitFirst) hash ^= QueryType.GetHashCode();
 179      if (_unknownFields != null) {
 180        hash ^= _unknownFields.GetHashCode();
 181      }
 182      return hash;
 183    }
 184
 185    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 186    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 187    public override string ToString() {
 188      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
 197      if (origin_ != null) {
 198        output.WriteRawTag(18);
 199        output.WriteMessage(Origin);
 200      }
 201      if (direction_ != null) {
 202        output.WriteRawTag(26);
 203        output.WriteMessage(Direction);
 204      }
 205      if (MaxDistance != 0F) {
 206        output.WriteRawTag(37);
 207        output.WriteFloat(MaxDistance);
 208      }
 209      if (QueryType != global::DCL.ECSComponents.RaycastQueryType.RqtHitFirst) {
 210        output.WriteRawTag(40);
 211        output.WriteEnum((int) QueryType);
 212      }
 213      if (_unknownFields != null) {
 214        _unknownFields.WriteTo(output);
 215      }
 216    #endif
 217    }
 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() {
 248      int size = 0;
 249      if (origin_ != null) {
 250        size += 1 + pb::CodedOutputStream.ComputeMessageSize(Origin);
 251      }
 252      if (direction_ != null) {
 253        size += 1 + pb::CodedOutputStream.ComputeMessageSize(Direction);
 254      }
 255      if (MaxDistance != 0F) {
 256        size += 1 + 4;
 257      }
 258      if (QueryType != global::DCL.ECSComponents.RaycastQueryType.RqtHitFirst) {
 259        size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) QueryType);
 260      }
 261      if (_unknownFields != null) {
 262        size += _unknownFields.CalculateSize();
 263      }
 264      return size;
 265    }
 266
 267    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 268    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 269    public void MergeFrom(PBRaycast other) {
 270      if (other == null) {
 271        return;
 272      }
 273      if (other.origin_ != null) {
 274        if (origin_ == null) {
 275          Origin = new global::Decentraland.Common.Vector3();
 276        }
 277        Origin.MergeFrom(other.Origin);
 278      }
 279      if (other.direction_ != null) {
 280        if (direction_ == null) {
 281          Direction = new global::Decentraland.Common.Vector3();
 282        }
 283        Direction.MergeFrom(other.Direction);
 284      }
 285      if (other.MaxDistance != 0F) {
 286        MaxDistance = other.MaxDistance;
 287      }
 288      if (other.QueryType != global::DCL.ECSComponents.RaycastQueryType.RqtHitFirst) {
 289        QueryType = other.QueryType;
 290      }
 291      _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 292    }
 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;
 301      while ((tag = input.ReadTag()) != 0) {
 302        switch(tag) {
 303          default:
 304            _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
 305            break;
 306          case 18: {
 307            if (origin_ == null) {
 308              Origin = new global::Decentraland.Common.Vector3();
 309            }
 310            input.ReadMessage(Origin);
 311            break;
 312          }
 313          case 26: {
 314            if (direction_ == null) {
 315              Direction = new global::Decentraland.Common.Vector3();
 316            }
 317            input.ReadMessage(Direction);
 318            break;
 319          }
 320          case 37: {
 321            MaxDistance = input.ReadFloat();
 322            break;
 323          }
 324          case 40: {
 325            QueryType = (global::DCL.ECSComponents.RaycastQueryType) input.ReadEnum();
 326            break;
 327          }
 328        }
 329      }
 330    #endif
 331    }
 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

Methods/Properties

Descriptor()
RaycastReflection()