< Summary

Class:DCL.ECSComponents.RaycastReflection
Assembly:DCL.ECSComponents.ProtobufData
File(s):/tmp/workspace/unity-renderer/unity-renderer/Assets/DCLPlugins/ECS7/ProtocolBuffers/Generated/Raycast.gen.cs
Covered lines:0
Uncovered lines:4
Coverable lines:4
Total lines:414
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/DCLPlugins/ECS7/ProtocolBuffers/Generated/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            "bW9uL3ZlY3RvcnMucHJvdG8i1gEKCVBCUmF5Y2FzdBIRCgl0aW1lc3RhbXAY",
 30            "ASABKAUSLAoGb3JpZ2luGAIgASgLMhwuZGVjZW50cmFsYW5kLmNvbW1vbi5W",
 31            "ZWN0b3IzEi8KCWRpcmVjdGlvbhgDIAEoCzIcLmRlY2VudHJhbGFuZC5jb21t",
 32            "b24uVmVjdG9yMxIUCgxtYXhfZGlzdGFuY2UYBCABKAISQQoKcXVlcnlfdHlw",
 33            "ZRgFIAEoDjItLmRlY2VudHJhbGFuZC5zZGsuY29tcG9uZW50cy5SYXljYXN0",
 34            "UXVlcnlUeXBlKjgKEFJheWNhc3RRdWVyeVR5cGUSEQoNUlFUX0hJVF9GSVJT",
 35            "VBAAEhEKDVJRVF9RVUVSWV9BTEwQAUIUqgIRRENMLkVDU0NvbXBvbmVudHNi",
 36            "BnByb3RvMw=="));
 037      descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
 38          new pbr::FileDescriptor[] { global::DCL.ECSComponents.VectorsReflection.Descriptor, },
 39          new pbr::GeneratedClrTypeInfo(new[] {typeof(global::DCL.ECSComponents.RaycastQueryType), }, null, new pbr::Gen
 40            new pbr::GeneratedClrTypeInfo(typeof(global::DCL.ECSComponents.PBRaycast), global::DCL.ECSComponents.PBRayca
 41          }));
 042    }
 43    #endregion
 44
 45  }
 46  #region Enums
 47  public enum RaycastQueryType {
 48    [pbr::OriginalName("RQT_HIT_FIRST")] RqtHitFirst = 0,
 49    [pbr::OriginalName("RQT_QUERY_ALL")] RqtQueryAll = 1,
 50  }
 51
 52  #endregion
 53
 54  #region Messages
 55  public sealed partial class PBRaycast : pb::IMessage<PBRaycast>
 56  #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 57      , pb::IBufferMessage
 58  #endif
 59  {
 60    private static readonly pb::MessageParser<PBRaycast> _parser = new pb::MessageParser<PBRaycast>(() => new PBRaycast(
 61    private pb::UnknownFieldSet _unknownFields;
 62    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 63    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 64    public static pb::MessageParser<PBRaycast> Parser { get { return _parser; } }
 65
 66    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 67    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 68    public static pbr::MessageDescriptor Descriptor {
 69      get { return global::DCL.ECSComponents.RaycastReflection.Descriptor.MessageTypes[0]; }
 70    }
 71
 72    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 73    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 74    pbr::MessageDescriptor pb::IMessage.Descriptor {
 75      get { return Descriptor; }
 76    }
 77
 78    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 79    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 80    public PBRaycast() {
 81      OnConstruction();
 82    }
 83
 84    partial void OnConstruction();
 85
 86    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 87    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 88    public PBRaycast(PBRaycast other) : this() {
 89      timestamp_ = other.timestamp_;
 90      origin_ = other.origin_ != null ? other.origin_.Clone() : null;
 91      direction_ = other.direction_ != null ? other.direction_.Clone() : null;
 92      maxDistance_ = other.maxDistance_;
 93      queryType_ = other.queryType_;
 94      _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
 95    }
 96
 97    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 98    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 99    public PBRaycast Clone() {
 100      return new PBRaycast(this);
 101    }
 102
 103    /// <summary>Field number for the "timestamp" field.</summary>
 104    public const int TimestampFieldNumber = 1;
 105    private int timestamp_;
 106    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 107    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 108    public int Timestamp {
 109      get { return timestamp_; }
 110      set {
 111        timestamp_ = value;
 112      }
 113    }
 114
 115    /// <summary>Field number for the "origin" field.</summary>
 116    public const int OriginFieldNumber = 2;
 117    private global::DCL.ECSComponents.Vector3 origin_;
 118    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 119    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 120    public global::DCL.ECSComponents.Vector3 Origin {
 121      get { return origin_; }
 122      set {
 123        origin_ = value;
 124      }
 125    }
 126
 127    /// <summary>Field number for the "direction" field.</summary>
 128    public const int DirectionFieldNumber = 3;
 129    private global::DCL.ECSComponents.Vector3 direction_;
 130    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 131    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 132    public global::DCL.ECSComponents.Vector3 Direction {
 133      get { return direction_; }
 134      set {
 135        direction_ = value;
 136      }
 137    }
 138
 139    /// <summary>Field number for the "max_distance" field.</summary>
 140    public const int MaxDistanceFieldNumber = 4;
 141    private float maxDistance_;
 142    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 143    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 144    public float MaxDistance {
 145      get { return maxDistance_; }
 146      set {
 147        maxDistance_ = value;
 148      }
 149    }
 150
 151    /// <summary>Field number for the "query_type" field.</summary>
 152    public const int QueryTypeFieldNumber = 5;
 153    private global::DCL.ECSComponents.RaycastQueryType queryType_ = global::DCL.ECSComponents.RaycastQueryType.RqtHitFir
 154    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 155    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 156    public global::DCL.ECSComponents.RaycastQueryType QueryType {
 157      get { return queryType_; }
 158      set {
 159        queryType_ = value;
 160      }
 161    }
 162
 163    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 164    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 165    public override bool Equals(object other) {
 166      return Equals(other as PBRaycast);
 167    }
 168
 169    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 170    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 171    public bool Equals(PBRaycast other) {
 172      if (ReferenceEquals(other, null)) {
 173        return false;
 174      }
 175      if (ReferenceEquals(other, this)) {
 176        return true;
 177      }
 178      if (Timestamp != other.Timestamp) return false;
 179      if (!object.Equals(Origin, other.Origin)) return false;
 180      if (!object.Equals(Direction, other.Direction)) return false;
 181      if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(MaxDistance, other.MaxDistance)) return f
 182      if (QueryType != other.QueryType) return false;
 183      return Equals(_unknownFields, other._unknownFields);
 184    }
 185
 186    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 187    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 188    public override int GetHashCode() {
 189      int hash = 1;
 190      if (Timestamp != 0) hash ^= Timestamp.GetHashCode();
 191      if (origin_ != null) hash ^= Origin.GetHashCode();
 192      if (direction_ != null) hash ^= Direction.GetHashCode();
 193      if (MaxDistance != 0F) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(MaxDistanc
 194      if (QueryType != global::DCL.ECSComponents.RaycastQueryType.RqtHitFirst) hash ^= QueryType.GetHashCode();
 195      if (_unknownFields != null) {
 196        hash ^= _unknownFields.GetHashCode();
 197      }
 198      return hash;
 199    }
 200
 201    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 202    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 203    public override string ToString() {
 204      return pb::JsonFormatter.ToDiagnosticString(this);
 205    }
 206
 207    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 208    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 209    public void WriteTo(pb::CodedOutputStream output) {
 210    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 211      output.WriteRawMessage(this);
 212    #else
 213      if (Timestamp != 0) {
 214        output.WriteRawTag(8);
 215        output.WriteInt32(Timestamp);
 216      }
 217      if (origin_ != null) {
 218        output.WriteRawTag(18);
 219        output.WriteMessage(Origin);
 220      }
 221      if (direction_ != null) {
 222        output.WriteRawTag(26);
 223        output.WriteMessage(Direction);
 224      }
 225      if (MaxDistance != 0F) {
 226        output.WriteRawTag(37);
 227        output.WriteFloat(MaxDistance);
 228      }
 229      if (QueryType != global::DCL.ECSComponents.RaycastQueryType.RqtHitFirst) {
 230        output.WriteRawTag(40);
 231        output.WriteEnum((int) QueryType);
 232      }
 233      if (_unknownFields != null) {
 234        _unknownFields.WriteTo(output);
 235      }
 236    #endif
 237    }
 238
 239    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 240    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 241    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 242    void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
 243      if (Timestamp != 0) {
 244        output.WriteRawTag(8);
 245        output.WriteInt32(Timestamp);
 246      }
 247      if (origin_ != null) {
 248        output.WriteRawTag(18);
 249        output.WriteMessage(Origin);
 250      }
 251      if (direction_ != null) {
 252        output.WriteRawTag(26);
 253        output.WriteMessage(Direction);
 254      }
 255      if (MaxDistance != 0F) {
 256        output.WriteRawTag(37);
 257        output.WriteFloat(MaxDistance);
 258      }
 259      if (QueryType != global::DCL.ECSComponents.RaycastQueryType.RqtHitFirst) {
 260        output.WriteRawTag(40);
 261        output.WriteEnum((int) QueryType);
 262      }
 263      if (_unknownFields != null) {
 264        _unknownFields.WriteTo(ref output);
 265      }
 266    }
 267    #endif
 268
 269    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 270    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 271    public int CalculateSize() {
 272      int size = 0;
 273      if (Timestamp != 0) {
 274        size += 1 + pb::CodedOutputStream.ComputeInt32Size(Timestamp);
 275      }
 276      if (origin_ != null) {
 277        size += 1 + pb::CodedOutputStream.ComputeMessageSize(Origin);
 278      }
 279      if (direction_ != null) {
 280        size += 1 + pb::CodedOutputStream.ComputeMessageSize(Direction);
 281      }
 282      if (MaxDistance != 0F) {
 283        size += 1 + 4;
 284      }
 285      if (QueryType != global::DCL.ECSComponents.RaycastQueryType.RqtHitFirst) {
 286        size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) QueryType);
 287      }
 288      if (_unknownFields != null) {
 289        size += _unknownFields.CalculateSize();
 290      }
 291      return size;
 292    }
 293
 294    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 295    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 296    public void MergeFrom(PBRaycast other) {
 297      if (other == null) {
 298        return;
 299      }
 300      if (other.Timestamp != 0) {
 301        Timestamp = other.Timestamp;
 302      }
 303      if (other.origin_ != null) {
 304        if (origin_ == null) {
 305          Origin = new global::DCL.ECSComponents.Vector3();
 306        }
 307        Origin.MergeFrom(other.Origin);
 308      }
 309      if (other.direction_ != null) {
 310        if (direction_ == null) {
 311          Direction = new global::DCL.ECSComponents.Vector3();
 312        }
 313        Direction.MergeFrom(other.Direction);
 314      }
 315      if (other.MaxDistance != 0F) {
 316        MaxDistance = other.MaxDistance;
 317      }
 318      if (other.QueryType != global::DCL.ECSComponents.RaycastQueryType.RqtHitFirst) {
 319        QueryType = other.QueryType;
 320      }
 321      _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 322    }
 323
 324    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 325    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 326    public void MergeFrom(pb::CodedInputStream input) {
 327    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 328      input.ReadRawMessage(this);
 329    #else
 330      uint tag;
 331      while ((tag = input.ReadTag()) != 0) {
 332        switch(tag) {
 333          default:
 334            _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
 335            break;
 336          case 8: {
 337            Timestamp = input.ReadInt32();
 338            break;
 339          }
 340          case 18: {
 341            if (origin_ == null) {
 342              Origin = new global::DCL.ECSComponents.Vector3();
 343            }
 344            input.ReadMessage(Origin);
 345            break;
 346          }
 347          case 26: {
 348            if (direction_ == null) {
 349              Direction = new global::DCL.ECSComponents.Vector3();
 350            }
 351            input.ReadMessage(Direction);
 352            break;
 353          }
 354          case 37: {
 355            MaxDistance = input.ReadFloat();
 356            break;
 357          }
 358          case 40: {
 359            QueryType = (global::DCL.ECSComponents.RaycastQueryType) input.ReadEnum();
 360            break;
 361          }
 362        }
 363      }
 364    #endif
 365    }
 366
 367    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 368    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 369    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 370    void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
 371      uint tag;
 372      while ((tag = input.ReadTag()) != 0) {
 373        switch(tag) {
 374          default:
 375            _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
 376            break;
 377          case 8: {
 378            Timestamp = input.ReadInt32();
 379            break;
 380          }
 381          case 18: {
 382            if (origin_ == null) {
 383              Origin = new global::DCL.ECSComponents.Vector3();
 384            }
 385            input.ReadMessage(Origin);
 386            break;
 387          }
 388          case 26: {
 389            if (direction_ == null) {
 390              Direction = new global::DCL.ECSComponents.Vector3();
 391            }
 392            input.ReadMessage(Direction);
 393            break;
 394          }
 395          case 37: {
 396            MaxDistance = input.ReadFloat();
 397            break;
 398          }
 399          case 40: {
 400            QueryType = (global::DCL.ECSComponents.RaycastQueryType) input.ReadEnum();
 401            break;
 402          }
 403        }
 404      }
 405    }
 406    #endif
 407
 408  }
 409
 410  #endregion
 411
 412}
 413
 414#endregion Designer generated code

Methods/Properties

Descriptor()
RaycastReflection()