< Summary

Class:DCL.ECSComponents.PBRaycast
Assembly:DCL.ECSComponents.ProtobufData
File(s):/tmp/workspace/unity-renderer/unity-renderer/Assets/DCLPlugins/ECS7/ProtocolBuffers/Generated/Raycast.gen.cs
Covered lines:13
Uncovered lines:105
Coverable lines:118
Total lines:414
Line coverage:11% (13 of 118)
Covered branches:0
Total branches:0

Metrics

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

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 {
 20      get { return descriptor; }
 21    }
 22    private static pbr::FileDescriptor descriptor;
 23
 24    static RaycastReflection() {
 25      byte[] descriptorData = global::System.Convert.FromBase64String(
 26          string.Concat(
 27            "CilkZWNlbnRyYWxhbmQvc2RrL2NvbXBvbmVudHMvcmF5Y2FzdC5wcm90bxIb",
 28            "ZGVjZW50cmFsYW5kLnNkay5jb21wb25lbnRzGiFkZWNlbnRyYWxhbmQvY29t",
 29            "bW9uL3ZlY3RvcnMucHJvdG8i1gEKCVBCUmF5Y2FzdBIRCgl0aW1lc3RhbXAY",
 30            "ASABKAUSLAoGb3JpZ2luGAIgASgLMhwuZGVjZW50cmFsYW5kLmNvbW1vbi5W",
 31            "ZWN0b3IzEi8KCWRpcmVjdGlvbhgDIAEoCzIcLmRlY2VudHJhbGFuZC5jb21t",
 32            "b24uVmVjdG9yMxIUCgxtYXhfZGlzdGFuY2UYBCABKAISQQoKcXVlcnlfdHlw",
 33            "ZRgFIAEoDjItLmRlY2VudHJhbGFuZC5zZGsuY29tcG9uZW50cy5SYXljYXN0",
 34            "UXVlcnlUeXBlKjgKEFJheWNhc3RRdWVyeVR5cGUSEQoNUlFUX0hJVF9GSVJT",
 35            "VBAAEhEKDVJRVF9RVUVSWV9BTEwQAUIUqgIRRENMLkVDU0NvbXBvbmVudHNi",
 36            "BnByb3RvMw=="));
 37      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          }));
 42    }
 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  {
 160    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)]
 064    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 {
 069      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 {
 075      get { return Descriptor; }
 76    }
 77
 78    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 79    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 180    public PBRaycast() {
 81      OnConstruction();
 182    }
 83
 84    partial void OnConstruction();
 85
 86    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 87    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 088    public PBRaycast(PBRaycast other) : this() {
 089      timestamp_ = other.timestamp_;
 090      origin_ = other.origin_ != null ? other.origin_.Clone() : null;
 091      direction_ = other.direction_ != null ? other.direction_.Clone() : null;
 092      maxDistance_ = other.maxDistance_;
 093      queryType_ = other.queryType_;
 094      _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
 095    }
 96
 97    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 98    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 99    public PBRaycast Clone() {
 0100      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 {
 0109      get { return timestamp_; }
 110      set {
 1111        timestamp_ = value;
 1112      }
 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 {
 0121      get { return origin_; }
 122      set {
 1123        origin_ = value;
 1124      }
 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 {
 0133      get { return direction_; }
 134      set {
 1135        direction_ = value;
 1136      }
 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 {
 0145      get { return maxDistance_; }
 146      set {
 1147        maxDistance_ = value;
 1148      }
 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 {
 0157      get { return queryType_; }
 158      set {
 1159        queryType_ = value;
 1160      }
 161    }
 162
 163    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 164    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 165    public override bool Equals(object other) {
 0166      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) {
 0172      if (ReferenceEquals(other, null)) {
 0173        return false;
 174      }
 0175      if (ReferenceEquals(other, this)) {
 0176        return true;
 177      }
 0178      if (Timestamp != other.Timestamp) return false;
 0179      if (!object.Equals(Origin, other.Origin)) return false;
 0180      if (!object.Equals(Direction, other.Direction)) return false;
 0181      if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(MaxDistance, other.MaxDistance)) return f
 0182      if (QueryType != other.QueryType) return false;
 0183      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() {
 0189      int hash = 1;
 0190      if (Timestamp != 0) hash ^= Timestamp.GetHashCode();
 0191      if (origin_ != null) hash ^= Origin.GetHashCode();
 0192      if (direction_ != null) hash ^= Direction.GetHashCode();
 0193      if (MaxDistance != 0F) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(MaxDistanc
 0194      if (QueryType != global::DCL.ECSComponents.RaycastQueryType.RqtHitFirst) hash ^= QueryType.GetHashCode();
 0195      if (_unknownFields != null) {
 0196        hash ^= _unknownFields.GetHashCode();
 197      }
 0198      return hash;
 199    }
 200
 201    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 202    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 203    public override string ToString() {
 0204      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
 0213      if (Timestamp != 0) {
 0214        output.WriteRawTag(8);
 0215        output.WriteInt32(Timestamp);
 216      }
 0217      if (origin_ != null) {
 0218        output.WriteRawTag(18);
 0219        output.WriteMessage(Origin);
 220      }
 0221      if (direction_ != null) {
 0222        output.WriteRawTag(26);
 0223        output.WriteMessage(Direction);
 224      }
 0225      if (MaxDistance != 0F) {
 0226        output.WriteRawTag(37);
 0227        output.WriteFloat(MaxDistance);
 228      }
 0229      if (QueryType != global::DCL.ECSComponents.RaycastQueryType.RqtHitFirst) {
 0230        output.WriteRawTag(40);
 0231        output.WriteEnum((int) QueryType);
 232      }
 0233      if (_unknownFields != null) {
 0234        _unknownFields.WriteTo(output);
 235      }
 236    #endif
 0237    }
 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() {
 0272      int size = 0;
 0273      if (Timestamp != 0) {
 0274        size += 1 + pb::CodedOutputStream.ComputeInt32Size(Timestamp);
 275      }
 0276      if (origin_ != null) {
 0277        size += 1 + pb::CodedOutputStream.ComputeMessageSize(Origin);
 278      }
 0279      if (direction_ != null) {
 0280        size += 1 + pb::CodedOutputStream.ComputeMessageSize(Direction);
 281      }
 0282      if (MaxDistance != 0F) {
 0283        size += 1 + 4;
 284      }
 0285      if (QueryType != global::DCL.ECSComponents.RaycastQueryType.RqtHitFirst) {
 0286        size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) QueryType);
 287      }
 0288      if (_unknownFields != null) {
 0289        size += _unknownFields.CalculateSize();
 290      }
 0291      return size;
 292    }
 293
 294    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 295    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 296    public void MergeFrom(PBRaycast other) {
 0297      if (other == null) {
 0298        return;
 299      }
 0300      if (other.Timestamp != 0) {
 0301        Timestamp = other.Timestamp;
 302      }
 0303      if (other.origin_ != null) {
 0304        if (origin_ == null) {
 0305          Origin = new global::DCL.ECSComponents.Vector3();
 306        }
 0307        Origin.MergeFrom(other.Origin);
 308      }
 0309      if (other.direction_ != null) {
 0310        if (direction_ == null) {
 0311          Direction = new global::DCL.ECSComponents.Vector3();
 312        }
 0313        Direction.MergeFrom(other.Direction);
 314      }
 0315      if (other.MaxDistance != 0F) {
 0316        MaxDistance = other.MaxDistance;
 317      }
 0318      if (other.QueryType != global::DCL.ECSComponents.RaycastQueryType.RqtHitFirst) {
 0319        QueryType = other.QueryType;
 320      }
 0321      _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 0322    }
 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;
 0331      while ((tag = input.ReadTag()) != 0) {
 332        switch(tag) {
 333          default:
 0334            _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
 0335            break;
 336          case 8: {
 0337            Timestamp = input.ReadInt32();
 0338            break;
 339          }
 340          case 18: {
 0341            if (origin_ == null) {
 0342              Origin = new global::DCL.ECSComponents.Vector3();
 343            }
 0344            input.ReadMessage(Origin);
 0345            break;
 346          }
 347          case 26: {
 0348            if (direction_ == null) {
 0349              Direction = new global::DCL.ECSComponents.Vector3();
 350            }
 0351            input.ReadMessage(Direction);
 0352            break;
 353          }
 354          case 37: {
 0355            MaxDistance = input.ReadFloat();
 0356            break;
 357          }
 358          case 40: {
 0359            QueryType = (global::DCL.ECSComponents.RaycastQueryType) input.ReadEnum();
 360            break;
 361          }
 362        }
 363      }
 364    #endif
 0365    }
 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