< Summary

Class:DCL.ECSComponents.OnPointerUpResultReflection
Assembly:DCL.ECSComponents.ProtobufData
File(s):/tmp/workspace/unity-renderer/unity-renderer/Assets/DCLPlugins/ECS7/ProtocolBuffers/Generated/PBFiles/OnPointerUpResult.cs
Covered lines:0
Uncovered lines:4
Coverable lines:4
Total lines:533
Line coverage:0% (0 of 4)
Covered branches:0
Total branches:0

Metrics

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

File(s)

/tmp/workspace/unity-renderer/unity-renderer/Assets/DCLPlugins/ECS7/ProtocolBuffers/Generated/PBFiles/OnPointerUpResult.cs

#LineLine coverage
 1// <auto-generated>
 2//     Generated by the protocol buffer compiler.  DO NOT EDIT!
 3//     source: OnPointerUpResult.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 OnPointerUpResult.proto</summary>
 15  public static partial class OnPointerUpResultReflection {
 16
 17    #region Descriptor
 18    /// <summary>File descriptor for OnPointerUpResult.proto</summary>
 19    public static pbr::FileDescriptor Descriptor {
 020      get { return descriptor; }
 21    }
 22    private static pbr::FileDescriptor descriptor;
 23
 24    static OnPointerUpResultReflection() {
 025      byte[] descriptorData = global::System.Convert.FromBase64String(
 26          string.Concat(
 27            "ChdPblBvaW50ZXJVcFJlc3VsdC5wcm90bxIQZGVjZW50cmFsYW5kLmVjcxoU",
 28            "Y29tbW9uL1ZlY3RvcjMucHJvdG8aGWNvbW1vbi9BY3Rpb25CdXR0b24ucHJv",
 29            "dG8i1QEKE1BCT25Qb2ludGVyVXBSZXN1bHQSHQoGYnV0dG9uGAIgASgOMg0u",
 30            "QWN0aW9uQnV0dG9uEhAKCG1lc2hOYW1lGAMgASgJEhgKBm9yaWdpbhgEIAEo",
 31            "CzIILlZlY3RvcjMSGwoJZGlyZWN0aW9uGAUgASgLMgguVmVjdG9yMxIXCgVw",
 32            "b2ludBgGIAEoCzIILlZlY3RvcjMSGAoGbm9ybWFsGAcgASgLMgguVmVjdG9y",
 33            "MxIQCghkaXN0YW5jZRgIIAEoAhIRCgl0aW1lc3RhbXAYCSABKAVCFKoCEURD",
 34            "TC5FQ1NDb21wb25lbnRzYgZwcm90bzM="));
 035      descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
 36          new pbr::FileDescriptor[] { global::Vector3Reflection.Descriptor, global::ActionButtonReflection.Descriptor, }
 37          new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] {
 38            new pbr::GeneratedClrTypeInfo(typeof(global::DCL.ECSComponents.PBOnPointerUpResult), global::DCL.ECSComponen
 39          }));
 040    }
 41    #endregion
 42
 43  }
 44  #region Messages
 45  public sealed partial class PBOnPointerUpResult : pb::IMessage<PBOnPointerUpResult>
 46  #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 47      , pb::IBufferMessage
 48  #endif
 49  {
 50    private static readonly pb::MessageParser<PBOnPointerUpResult> _parser = new pb::MessageParser<PBOnPointerUpResult>(
 51    private pb::UnknownFieldSet _unknownFields;
 52    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 53    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 54    public static pb::MessageParser<PBOnPointerUpResult> Parser { get { return _parser; } }
 55
 56    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 57    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 58    public static pbr::MessageDescriptor Descriptor {
 59      get { return global::DCL.ECSComponents.OnPointerUpResultReflection.Descriptor.MessageTypes[0]; }
 60    }
 61
 62    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 63    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 64    pbr::MessageDescriptor pb::IMessage.Descriptor {
 65      get { return Descriptor; }
 66    }
 67
 68    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 69    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 70    public PBOnPointerUpResult() {
 71      OnConstruction();
 72    }
 73
 74    partial void OnConstruction();
 75
 76    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 77    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 78    public PBOnPointerUpResult(PBOnPointerUpResult other) : this() {
 79      button_ = other.button_;
 80      meshName_ = other.meshName_;
 81      origin_ = other.origin_ != null ? other.origin_.Clone() : null;
 82      direction_ = other.direction_ != null ? other.direction_.Clone() : null;
 83      point_ = other.point_ != null ? other.point_.Clone() : null;
 84      normal_ = other.normal_ != null ? other.normal_.Clone() : null;
 85      distance_ = other.distance_;
 86      timestamp_ = other.timestamp_;
 87      _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
 88    }
 89
 90    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 91    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 92    public PBOnPointerUpResult Clone() {
 93      return new PBOnPointerUpResult(this);
 94    }
 95
 96    /// <summary>Field number for the "button" field.</summary>
 97    public const int ButtonFieldNumber = 2;
 98    private global::ActionButton button_ = global::ActionButton.Pointer;
 99    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 100    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 101    public global::ActionButton Button {
 102      get { return button_; }
 103      set {
 104        button_ = value;
 105      }
 106    }
 107
 108    /// <summary>Field number for the "meshName" field.</summary>
 109    public const int MeshNameFieldNumber = 3;
 110    private string meshName_ = "";
 111    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 112    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 113    public string MeshName {
 114      get { return meshName_; }
 115      set {
 116        meshName_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
 117      }
 118    }
 119
 120    /// <summary>Field number for the "origin" field.</summary>
 121    public const int OriginFieldNumber = 4;
 122    private global::Vector3 origin_;
 123    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 124    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 125    public global::Vector3 Origin {
 126      get { return origin_; }
 127      set {
 128        origin_ = value;
 129      }
 130    }
 131
 132    /// <summary>Field number for the "direction" field.</summary>
 133    public const int DirectionFieldNumber = 5;
 134    private global::Vector3 direction_;
 135    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 136    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 137    public global::Vector3 Direction {
 138      get { return direction_; }
 139      set {
 140        direction_ = value;
 141      }
 142    }
 143
 144    /// <summary>Field number for the "point" field.</summary>
 145    public const int PointFieldNumber = 6;
 146    private global::Vector3 point_;
 147    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 148    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 149    public global::Vector3 Point {
 150      get { return point_; }
 151      set {
 152        point_ = value;
 153      }
 154    }
 155
 156    /// <summary>Field number for the "normal" field.</summary>
 157    public const int NormalFieldNumber = 7;
 158    private global::Vector3 normal_;
 159    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 160    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 161    public global::Vector3 Normal {
 162      get { return normal_; }
 163      set {
 164        normal_ = value;
 165      }
 166    }
 167
 168    /// <summary>Field number for the "distance" field.</summary>
 169    public const int DistanceFieldNumber = 8;
 170    private float distance_;
 171    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 172    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 173    public float Distance {
 174      get { return distance_; }
 175      set {
 176        distance_ = value;
 177      }
 178    }
 179
 180    /// <summary>Field number for the "timestamp" field.</summary>
 181    public const int TimestampFieldNumber = 9;
 182    private int timestamp_;
 183    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 184    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 185    public int Timestamp {
 186      get { return timestamp_; }
 187      set {
 188        timestamp_ = value;
 189      }
 190    }
 191
 192    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 193    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 194    public override bool Equals(object other) {
 195      return Equals(other as PBOnPointerUpResult);
 196    }
 197
 198    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 199    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 200    public bool Equals(PBOnPointerUpResult other) {
 201      if (ReferenceEquals(other, null)) {
 202        return false;
 203      }
 204      if (ReferenceEquals(other, this)) {
 205        return true;
 206      }
 207      if (Button != other.Button) return false;
 208      if (MeshName != other.MeshName) return false;
 209      if (!object.Equals(Origin, other.Origin)) return false;
 210      if (!object.Equals(Direction, other.Direction)) return false;
 211      if (!object.Equals(Point, other.Point)) return false;
 212      if (!object.Equals(Normal, other.Normal)) return false;
 213      if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(Distance, other.Distance)) return false;
 214      if (Timestamp != other.Timestamp) return false;
 215      return Equals(_unknownFields, other._unknownFields);
 216    }
 217
 218    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 219    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 220    public override int GetHashCode() {
 221      int hash = 1;
 222      if (Button != global::ActionButton.Pointer) hash ^= Button.GetHashCode();
 223      if (MeshName.Length != 0) hash ^= MeshName.GetHashCode();
 224      if (origin_ != null) hash ^= Origin.GetHashCode();
 225      if (direction_ != null) hash ^= Direction.GetHashCode();
 226      if (point_ != null) hash ^= Point.GetHashCode();
 227      if (normal_ != null) hash ^= Normal.GetHashCode();
 228      if (Distance != 0F) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(Distance);
 229      if (Timestamp != 0) hash ^= Timestamp.GetHashCode();
 230      if (_unknownFields != null) {
 231        hash ^= _unknownFields.GetHashCode();
 232      }
 233      return hash;
 234    }
 235
 236    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 237    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 238    public override string ToString() {
 239      return pb::JsonFormatter.ToDiagnosticString(this);
 240    }
 241
 242    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 243    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 244    public void WriteTo(pb::CodedOutputStream output) {
 245    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 246      output.WriteRawMessage(this);
 247    #else
 248      if (Button != global::ActionButton.Pointer) {
 249        output.WriteRawTag(16);
 250        output.WriteEnum((int) Button);
 251      }
 252      if (MeshName.Length != 0) {
 253        output.WriteRawTag(26);
 254        output.WriteString(MeshName);
 255      }
 256      if (origin_ != null) {
 257        output.WriteRawTag(34);
 258        output.WriteMessage(Origin);
 259      }
 260      if (direction_ != null) {
 261        output.WriteRawTag(42);
 262        output.WriteMessage(Direction);
 263      }
 264      if (point_ != null) {
 265        output.WriteRawTag(50);
 266        output.WriteMessage(Point);
 267      }
 268      if (normal_ != null) {
 269        output.WriteRawTag(58);
 270        output.WriteMessage(Normal);
 271      }
 272      if (Distance != 0F) {
 273        output.WriteRawTag(69);
 274        output.WriteFloat(Distance);
 275      }
 276      if (Timestamp != 0) {
 277        output.WriteRawTag(72);
 278        output.WriteInt32(Timestamp);
 279      }
 280      if (_unknownFields != null) {
 281        _unknownFields.WriteTo(output);
 282      }
 283    #endif
 284    }
 285
 286    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 287    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 288    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 289    void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
 290      if (Button != global::ActionButton.Pointer) {
 291        output.WriteRawTag(16);
 292        output.WriteEnum((int) Button);
 293      }
 294      if (MeshName.Length != 0) {
 295        output.WriteRawTag(26);
 296        output.WriteString(MeshName);
 297      }
 298      if (origin_ != null) {
 299        output.WriteRawTag(34);
 300        output.WriteMessage(Origin);
 301      }
 302      if (direction_ != null) {
 303        output.WriteRawTag(42);
 304        output.WriteMessage(Direction);
 305      }
 306      if (point_ != null) {
 307        output.WriteRawTag(50);
 308        output.WriteMessage(Point);
 309      }
 310      if (normal_ != null) {
 311        output.WriteRawTag(58);
 312        output.WriteMessage(Normal);
 313      }
 314      if (Distance != 0F) {
 315        output.WriteRawTag(69);
 316        output.WriteFloat(Distance);
 317      }
 318      if (Timestamp != 0) {
 319        output.WriteRawTag(72);
 320        output.WriteInt32(Timestamp);
 321      }
 322      if (_unknownFields != null) {
 323        _unknownFields.WriteTo(ref output);
 324      }
 325    }
 326    #endif
 327
 328    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 329    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 330    public int CalculateSize() {
 331      int size = 0;
 332      if (Button != global::ActionButton.Pointer) {
 333        size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Button);
 334      }
 335      if (MeshName.Length != 0) {
 336        size += 1 + pb::CodedOutputStream.ComputeStringSize(MeshName);
 337      }
 338      if (origin_ != null) {
 339        size += 1 + pb::CodedOutputStream.ComputeMessageSize(Origin);
 340      }
 341      if (direction_ != null) {
 342        size += 1 + pb::CodedOutputStream.ComputeMessageSize(Direction);
 343      }
 344      if (point_ != null) {
 345        size += 1 + pb::CodedOutputStream.ComputeMessageSize(Point);
 346      }
 347      if (normal_ != null) {
 348        size += 1 + pb::CodedOutputStream.ComputeMessageSize(Normal);
 349      }
 350      if (Distance != 0F) {
 351        size += 1 + 4;
 352      }
 353      if (Timestamp != 0) {
 354        size += 1 + pb::CodedOutputStream.ComputeInt32Size(Timestamp);
 355      }
 356      if (_unknownFields != null) {
 357        size += _unknownFields.CalculateSize();
 358      }
 359      return size;
 360    }
 361
 362    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 363    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 364    public void MergeFrom(PBOnPointerUpResult other) {
 365      if (other == null) {
 366        return;
 367      }
 368      if (other.Button != global::ActionButton.Pointer) {
 369        Button = other.Button;
 370      }
 371      if (other.MeshName.Length != 0) {
 372        MeshName = other.MeshName;
 373      }
 374      if (other.origin_ != null) {
 375        if (origin_ == null) {
 376          Origin = new global::Vector3();
 377        }
 378        Origin.MergeFrom(other.Origin);
 379      }
 380      if (other.direction_ != null) {
 381        if (direction_ == null) {
 382          Direction = new global::Vector3();
 383        }
 384        Direction.MergeFrom(other.Direction);
 385      }
 386      if (other.point_ != null) {
 387        if (point_ == null) {
 388          Point = new global::Vector3();
 389        }
 390        Point.MergeFrom(other.Point);
 391      }
 392      if (other.normal_ != null) {
 393        if (normal_ == null) {
 394          Normal = new global::Vector3();
 395        }
 396        Normal.MergeFrom(other.Normal);
 397      }
 398      if (other.Distance != 0F) {
 399        Distance = other.Distance;
 400      }
 401      if (other.Timestamp != 0) {
 402        Timestamp = other.Timestamp;
 403      }
 404      _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 405    }
 406
 407    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 408    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 409    public void MergeFrom(pb::CodedInputStream input) {
 410    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 411      input.ReadRawMessage(this);
 412    #else
 413      uint tag;
 414      while ((tag = input.ReadTag()) != 0) {
 415        switch(tag) {
 416          default:
 417            _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
 418            break;
 419          case 16: {
 420            Button = (global::ActionButton) input.ReadEnum();
 421            break;
 422          }
 423          case 26: {
 424            MeshName = input.ReadString();
 425            break;
 426          }
 427          case 34: {
 428            if (origin_ == null) {
 429              Origin = new global::Vector3();
 430            }
 431            input.ReadMessage(Origin);
 432            break;
 433          }
 434          case 42: {
 435            if (direction_ == null) {
 436              Direction = new global::Vector3();
 437            }
 438            input.ReadMessage(Direction);
 439            break;
 440          }
 441          case 50: {
 442            if (point_ == null) {
 443              Point = new global::Vector3();
 444            }
 445            input.ReadMessage(Point);
 446            break;
 447          }
 448          case 58: {
 449            if (normal_ == null) {
 450              Normal = new global::Vector3();
 451            }
 452            input.ReadMessage(Normal);
 453            break;
 454          }
 455          case 69: {
 456            Distance = input.ReadFloat();
 457            break;
 458          }
 459          case 72: {
 460            Timestamp = input.ReadInt32();
 461            break;
 462          }
 463        }
 464      }
 465    #endif
 466    }
 467
 468    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 469    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 470    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 471    void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
 472      uint tag;
 473      while ((tag = input.ReadTag()) != 0) {
 474        switch(tag) {
 475          default:
 476            _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
 477            break;
 478          case 16: {
 479            Button = (global::ActionButton) input.ReadEnum();
 480            break;
 481          }
 482          case 26: {
 483            MeshName = input.ReadString();
 484            break;
 485          }
 486          case 34: {
 487            if (origin_ == null) {
 488              Origin = new global::Vector3();
 489            }
 490            input.ReadMessage(Origin);
 491            break;
 492          }
 493          case 42: {
 494            if (direction_ == null) {
 495              Direction = new global::Vector3();
 496            }
 497            input.ReadMessage(Direction);
 498            break;
 499          }
 500          case 50: {
 501            if (point_ == null) {
 502              Point = new global::Vector3();
 503            }
 504            input.ReadMessage(Point);
 505            break;
 506          }
 507          case 58: {
 508            if (normal_ == null) {
 509              Normal = new global::Vector3();
 510            }
 511            input.ReadMessage(Normal);
 512            break;
 513          }
 514          case 69: {
 515            Distance = input.ReadFloat();
 516            break;
 517          }
 518          case 72: {
 519            Timestamp = input.ReadInt32();
 520            break;
 521          }
 522        }
 523      }
 524    }
 525    #endif
 526
 527  }
 528
 529  #endregion
 530
 531}
 532
 533#endregion Designer generated code