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

Methods/Properties

Descriptor()
RaycastReflection()