< Summary

Class:DCL.ECSComponents.PBOnPointerDownResult
Assembly:DCL.ECSComponents.ProtobufData
File(s):/tmp/workspace/unity-renderer/unity-renderer/Assets/DCLPlugins/ECS7/ProtocolBuffers/Generated/OnPointerDownResult.gen.cs
Covered lines:0
Uncovered lines:172
Coverable lines:172
Total lines:536
Line coverage:0% (0 of 172)
Covered branches:0
Total branches:0

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity NPath complexity Sequence coverage
PBOnPointerDownResult()0%2100%
get_Descriptor()0%2100%
PBOnPointerDownResult(...)0%90900%
Clone()0%2100%
PBOnPointerDownResult()0%2100%
Equals(...)0%2100%
Equals(...)0%1321100%
GetHashCode()0%1101000%
ToString()0%2100%
WriteTo(...)0%1101000%
CalculateSize()0%1101000%
MergeFrom(...)0%2101400%
MergeFrom(...)0%3061700%

File(s)

/tmp/workspace/unity-renderer/unity-renderer/Assets/DCLPlugins/ECS7/ProtocolBuffers/Generated/OnPointerDownResult.gen.cs

#LineLine coverage
 1// <auto-generated>
 2//     Generated by the protocol buffer compiler.  DO NOT EDIT!
 3//     source: ecs/components/OnPointerDownResult.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/OnPointerDownResult.proto</summary>
 15  public static partial class OnPointerDownResultReflection {
 16
 17    #region Descriptor
 18    /// <summary>File descriptor for ecs/components/OnPointerDownResult.proto</summary>
 19    public static pbr::FileDescriptor Descriptor {
 20      get { return descriptor; }
 21    }
 22    private static pbr::FileDescriptor descriptor;
 23
 24    static OnPointerDownResultReflection() {
 25      byte[] descriptorData = global::System.Convert.FromBase64String(
 26          string.Concat(
 27            "CihlY3MvY29tcG9uZW50cy9PblBvaW50ZXJEb3duUmVzdWx0LnByb3RvEhBk",
 28            "ZWNlbnRyYWxhbmQuZWNzGiNlY3MvY29tcG9uZW50cy9jb21tb24vVmVjdG9y",
 29            "My5wcm90bxooZWNzL2NvbXBvbmVudHMvY29tbW9uL0FjdGlvbkJ1dHRvbi5w",
 30            "cm90byKsAgoVUEJPblBvaW50ZXJEb3duUmVzdWx0Ei4KBmJ1dHRvbhgCIAEo",
 31            "DjIeLmRlY2VudHJhbGFuZC5lY3MuQWN0aW9uQnV0dG9uEhAKCG1lc2hOYW1l",
 32            "GAMgASgJEikKBm9yaWdpbhgEIAEoCzIZLmRlY2VudHJhbGFuZC5lY3MuVmVj",
 33            "dG9yMxIsCglkaXJlY3Rpb24YBSABKAsyGS5kZWNlbnRyYWxhbmQuZWNzLlZl",
 34            "Y3RvcjMSKAoFcG9pbnQYBiABKAsyGS5kZWNlbnRyYWxhbmQuZWNzLlZlY3Rv",
 35            "cjMSKQoGbm9ybWFsGAcgASgLMhkuZGVjZW50cmFsYW5kLmVjcy5WZWN0b3Iz",
 36            "EhAKCGRpc3RhbmNlGAggASgCEhEKCXRpbWVzdGFtcBgJIAEoBUIUqgIRRENM",
 37            "LkVDU0NvbXBvbmVudHNiBnByb3RvMw=="));
 38      descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
 39          new pbr::FileDescriptor[] { global::DCL.ECSComponents.Vector3Reflection.Descriptor, global::DCL.ECSComponents.
 40          new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] {
 41            new pbr::GeneratedClrTypeInfo(typeof(global::DCL.ECSComponents.PBOnPointerDownResult), global::DCL.ECSCompon
 42          }));
 43    }
 44    #endregion
 45
 46  }
 47  #region Messages
 48  public sealed partial class PBOnPointerDownResult : pb::IMessage<PBOnPointerDownResult>
 49  #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 50      , pb::IBufferMessage
 51  #endif
 52  {
 053    private static readonly pb::MessageParser<PBOnPointerDownResult> _parser = new pb::MessageParser<PBOnPointerDownResu
 54    private pb::UnknownFieldSet _unknownFields;
 55    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 56    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 057    public static pb::MessageParser<PBOnPointerDownResult> Parser { get { return _parser; } }
 58
 59    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 60    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 61    public static pbr::MessageDescriptor Descriptor {
 062      get { return global::DCL.ECSComponents.OnPointerDownResultReflection.Descriptor.MessageTypes[0]; }
 63    }
 64
 65    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 66    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 67    pbr::MessageDescriptor pb::IMessage.Descriptor {
 068      get { return Descriptor; }
 69    }
 70
 71    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 72    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 073    public PBOnPointerDownResult() {
 74      OnConstruction();
 075    }
 76
 77    partial void OnConstruction();
 78
 79    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 80    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 081    public PBOnPointerDownResult(PBOnPointerDownResult other) : this() {
 082      button_ = other.button_;
 083      meshName_ = other.meshName_;
 084      origin_ = other.origin_ != null ? other.origin_.Clone() : null;
 085      direction_ = other.direction_ != null ? other.direction_.Clone() : null;
 086      point_ = other.point_ != null ? other.point_.Clone() : null;
 087      normal_ = other.normal_ != null ? other.normal_.Clone() : null;
 088      distance_ = other.distance_;
 089      timestamp_ = other.timestamp_;
 090      _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
 091    }
 92
 93    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 94    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 95    public PBOnPointerDownResult Clone() {
 096      return new PBOnPointerDownResult(this);
 97    }
 98
 99    /// <summary>Field number for the "button" field.</summary>
 100    public const int ButtonFieldNumber = 2;
 101    private global::DCL.ECSComponents.ActionButton button_ = global::DCL.ECSComponents.ActionButton.Pointer;
 102    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 103    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 104    public global::DCL.ECSComponents.ActionButton Button {
 0105      get { return button_; }
 106      set {
 0107        button_ = value;
 0108      }
 109    }
 110
 111    /// <summary>Field number for the "meshName" field.</summary>
 112    public const int MeshNameFieldNumber = 3;
 0113    private string meshName_ = "";
 114    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 115    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 116    public string MeshName {
 0117      get { return meshName_; }
 118      set {
 0119        meshName_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
 0120      }
 121    }
 122
 123    /// <summary>Field number for the "origin" field.</summary>
 124    public const int OriginFieldNumber = 4;
 125    private global::DCL.ECSComponents.Vector3 origin_;
 126    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 127    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 128    public global::DCL.ECSComponents.Vector3 Origin {
 0129      get { return origin_; }
 130      set {
 0131        origin_ = value;
 0132      }
 133    }
 134
 135    /// <summary>Field number for the "direction" field.</summary>
 136    public const int DirectionFieldNumber = 5;
 137    private global::DCL.ECSComponents.Vector3 direction_;
 138    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 139    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 140    public global::DCL.ECSComponents.Vector3 Direction {
 0141      get { return direction_; }
 142      set {
 0143        direction_ = value;
 0144      }
 145    }
 146
 147    /// <summary>Field number for the "point" field.</summary>
 148    public const int PointFieldNumber = 6;
 149    private global::DCL.ECSComponents.Vector3 point_;
 150    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 151    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 152    public global::DCL.ECSComponents.Vector3 Point {
 0153      get { return point_; }
 154      set {
 0155        point_ = value;
 0156      }
 157    }
 158
 159    /// <summary>Field number for the "normal" field.</summary>
 160    public const int NormalFieldNumber = 7;
 161    private global::DCL.ECSComponents.Vector3 normal_;
 162    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 163    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 164    public global::DCL.ECSComponents.Vector3 Normal {
 0165      get { return normal_; }
 166      set {
 0167        normal_ = value;
 0168      }
 169    }
 170
 171    /// <summary>Field number for the "distance" field.</summary>
 172    public const int DistanceFieldNumber = 8;
 173    private float distance_;
 174    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 175    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 176    public float Distance {
 0177      get { return distance_; }
 178      set {
 0179        distance_ = value;
 0180      }
 181    }
 182
 183    /// <summary>Field number for the "timestamp" field.</summary>
 184    public const int TimestampFieldNumber = 9;
 185    private int timestamp_;
 186    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 187    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 188    public int Timestamp {
 0189      get { return timestamp_; }
 190      set {
 0191        timestamp_ = value;
 0192      }
 193    }
 194
 195    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 196    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 197    public override bool Equals(object other) {
 0198      return Equals(other as PBOnPointerDownResult);
 199    }
 200
 201    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 202    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 203    public bool Equals(PBOnPointerDownResult other) {
 0204      if (ReferenceEquals(other, null)) {
 0205        return false;
 206      }
 0207      if (ReferenceEquals(other, this)) {
 0208        return true;
 209      }
 0210      if (Button != other.Button) return false;
 0211      if (MeshName != other.MeshName) return false;
 0212      if (!object.Equals(Origin, other.Origin)) return false;
 0213      if (!object.Equals(Direction, other.Direction)) return false;
 0214      if (!object.Equals(Point, other.Point)) return false;
 0215      if (!object.Equals(Normal, other.Normal)) return false;
 0216      if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(Distance, other.Distance)) return false;
 0217      if (Timestamp != other.Timestamp) return false;
 0218      return Equals(_unknownFields, other._unknownFields);
 219    }
 220
 221    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 222    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 223    public override int GetHashCode() {
 0224      int hash = 1;
 0225      if (Button != global::DCL.ECSComponents.ActionButton.Pointer) hash ^= Button.GetHashCode();
 0226      if (MeshName.Length != 0) hash ^= MeshName.GetHashCode();
 0227      if (origin_ != null) hash ^= Origin.GetHashCode();
 0228      if (direction_ != null) hash ^= Direction.GetHashCode();
 0229      if (point_ != null) hash ^= Point.GetHashCode();
 0230      if (normal_ != null) hash ^= Normal.GetHashCode();
 0231      if (Distance != 0F) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(Distance);
 0232      if (Timestamp != 0) hash ^= Timestamp.GetHashCode();
 0233      if (_unknownFields != null) {
 0234        hash ^= _unknownFields.GetHashCode();
 235      }
 0236      return hash;
 237    }
 238
 239    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 240    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 241    public override string ToString() {
 0242      return pb::JsonFormatter.ToDiagnosticString(this);
 243    }
 244
 245    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 246    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 247    public void WriteTo(pb::CodedOutputStream output) {
 248    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 249      output.WriteRawMessage(this);
 250    #else
 0251      if (Button != global::DCL.ECSComponents.ActionButton.Pointer) {
 0252        output.WriteRawTag(16);
 0253        output.WriteEnum((int) Button);
 254      }
 0255      if (MeshName.Length != 0) {
 0256        output.WriteRawTag(26);
 0257        output.WriteString(MeshName);
 258      }
 0259      if (origin_ != null) {
 0260        output.WriteRawTag(34);
 0261        output.WriteMessage(Origin);
 262      }
 0263      if (direction_ != null) {
 0264        output.WriteRawTag(42);
 0265        output.WriteMessage(Direction);
 266      }
 0267      if (point_ != null) {
 0268        output.WriteRawTag(50);
 0269        output.WriteMessage(Point);
 270      }
 0271      if (normal_ != null) {
 0272        output.WriteRawTag(58);
 0273        output.WriteMessage(Normal);
 274      }
 0275      if (Distance != 0F) {
 0276        output.WriteRawTag(69);
 0277        output.WriteFloat(Distance);
 278      }
 0279      if (Timestamp != 0) {
 0280        output.WriteRawTag(72);
 0281        output.WriteInt32(Timestamp);
 282      }
 0283      if (_unknownFields != null) {
 0284        _unknownFields.WriteTo(output);
 285      }
 286    #endif
 0287    }
 288
 289    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 290    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 291    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 292    void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
 293      if (Button != global::DCL.ECSComponents.ActionButton.Pointer) {
 294        output.WriteRawTag(16);
 295        output.WriteEnum((int) Button);
 296      }
 297      if (MeshName.Length != 0) {
 298        output.WriteRawTag(26);
 299        output.WriteString(MeshName);
 300      }
 301      if (origin_ != null) {
 302        output.WriteRawTag(34);
 303        output.WriteMessage(Origin);
 304      }
 305      if (direction_ != null) {
 306        output.WriteRawTag(42);
 307        output.WriteMessage(Direction);
 308      }
 309      if (point_ != null) {
 310        output.WriteRawTag(50);
 311        output.WriteMessage(Point);
 312      }
 313      if (normal_ != null) {
 314        output.WriteRawTag(58);
 315        output.WriteMessage(Normal);
 316      }
 317      if (Distance != 0F) {
 318        output.WriteRawTag(69);
 319        output.WriteFloat(Distance);
 320      }
 321      if (Timestamp != 0) {
 322        output.WriteRawTag(72);
 323        output.WriteInt32(Timestamp);
 324      }
 325      if (_unknownFields != null) {
 326        _unknownFields.WriteTo(ref output);
 327      }
 328    }
 329    #endif
 330
 331    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 332    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 333    public int CalculateSize() {
 0334      int size = 0;
 0335      if (Button != global::DCL.ECSComponents.ActionButton.Pointer) {
 0336        size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Button);
 337      }
 0338      if (MeshName.Length != 0) {
 0339        size += 1 + pb::CodedOutputStream.ComputeStringSize(MeshName);
 340      }
 0341      if (origin_ != null) {
 0342        size += 1 + pb::CodedOutputStream.ComputeMessageSize(Origin);
 343      }
 0344      if (direction_ != null) {
 0345        size += 1 + pb::CodedOutputStream.ComputeMessageSize(Direction);
 346      }
 0347      if (point_ != null) {
 0348        size += 1 + pb::CodedOutputStream.ComputeMessageSize(Point);
 349      }
 0350      if (normal_ != null) {
 0351        size += 1 + pb::CodedOutputStream.ComputeMessageSize(Normal);
 352      }
 0353      if (Distance != 0F) {
 0354        size += 1 + 4;
 355      }
 0356      if (Timestamp != 0) {
 0357        size += 1 + pb::CodedOutputStream.ComputeInt32Size(Timestamp);
 358      }
 0359      if (_unknownFields != null) {
 0360        size += _unknownFields.CalculateSize();
 361      }
 0362      return size;
 363    }
 364
 365    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 366    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 367    public void MergeFrom(PBOnPointerDownResult other) {
 0368      if (other == null) {
 0369        return;
 370      }
 0371      if (other.Button != global::DCL.ECSComponents.ActionButton.Pointer) {
 0372        Button = other.Button;
 373      }
 0374      if (other.MeshName.Length != 0) {
 0375        MeshName = other.MeshName;
 376      }
 0377      if (other.origin_ != null) {
 0378        if (origin_ == null) {
 0379          Origin = new global::DCL.ECSComponents.Vector3();
 380        }
 0381        Origin.MergeFrom(other.Origin);
 382      }
 0383      if (other.direction_ != null) {
 0384        if (direction_ == null) {
 0385          Direction = new global::DCL.ECSComponents.Vector3();
 386        }
 0387        Direction.MergeFrom(other.Direction);
 388      }
 0389      if (other.point_ != null) {
 0390        if (point_ == null) {
 0391          Point = new global::DCL.ECSComponents.Vector3();
 392        }
 0393        Point.MergeFrom(other.Point);
 394      }
 0395      if (other.normal_ != null) {
 0396        if (normal_ == null) {
 0397          Normal = new global::DCL.ECSComponents.Vector3();
 398        }
 0399        Normal.MergeFrom(other.Normal);
 400      }
 0401      if (other.Distance != 0F) {
 0402        Distance = other.Distance;
 403      }
 0404      if (other.Timestamp != 0) {
 0405        Timestamp = other.Timestamp;
 406      }
 0407      _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 0408    }
 409
 410    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 411    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 412    public void MergeFrom(pb::CodedInputStream input) {
 413    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 414      input.ReadRawMessage(this);
 415    #else
 416      uint tag;
 0417      while ((tag = input.ReadTag()) != 0) {
 418        switch(tag) {
 419          default:
 0420            _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
 0421            break;
 422          case 16: {
 0423            Button = (global::DCL.ECSComponents.ActionButton) input.ReadEnum();
 0424            break;
 425          }
 426          case 26: {
 0427            MeshName = input.ReadString();
 0428            break;
 429          }
 430          case 34: {
 0431            if (origin_ == null) {
 0432              Origin = new global::DCL.ECSComponents.Vector3();
 433            }
 0434            input.ReadMessage(Origin);
 0435            break;
 436          }
 437          case 42: {
 0438            if (direction_ == null) {
 0439              Direction = new global::DCL.ECSComponents.Vector3();
 440            }
 0441            input.ReadMessage(Direction);
 0442            break;
 443          }
 444          case 50: {
 0445            if (point_ == null) {
 0446              Point = new global::DCL.ECSComponents.Vector3();
 447            }
 0448            input.ReadMessage(Point);
 0449            break;
 450          }
 451          case 58: {
 0452            if (normal_ == null) {
 0453              Normal = new global::DCL.ECSComponents.Vector3();
 454            }
 0455            input.ReadMessage(Normal);
 0456            break;
 457          }
 458          case 69: {
 0459            Distance = input.ReadFloat();
 0460            break;
 461          }
 462          case 72: {
 0463            Timestamp = input.ReadInt32();
 464            break;
 465          }
 466        }
 467      }
 468    #endif
 0469    }
 470
 471    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 472    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 473    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 474    void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
 475      uint tag;
 476      while ((tag = input.ReadTag()) != 0) {
 477        switch(tag) {
 478          default:
 479            _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
 480            break;
 481          case 16: {
 482            Button = (global::DCL.ECSComponents.ActionButton) input.ReadEnum();
 483            break;
 484          }
 485          case 26: {
 486            MeshName = input.ReadString();
 487            break;
 488          }
 489          case 34: {
 490            if (origin_ == null) {
 491              Origin = new global::DCL.ECSComponents.Vector3();
 492            }
 493            input.ReadMessage(Origin);
 494            break;
 495          }
 496          case 42: {
 497            if (direction_ == null) {
 498              Direction = new global::DCL.ECSComponents.Vector3();
 499            }
 500            input.ReadMessage(Direction);
 501            break;
 502          }
 503          case 50: {
 504            if (point_ == null) {
 505              Point = new global::DCL.ECSComponents.Vector3();
 506            }
 507            input.ReadMessage(Point);
 508            break;
 509          }
 510          case 58: {
 511            if (normal_ == null) {
 512              Normal = new global::DCL.ECSComponents.Vector3();
 513            }
 514            input.ReadMessage(Normal);
 515            break;
 516          }
 517          case 69: {
 518            Distance = input.ReadFloat();
 519            break;
 520          }
 521          case 72: {
 522            Timestamp = input.ReadInt32();
 523            break;
 524          }
 525        }
 526      }
 527    }
 528    #endif
 529
 530  }
 531
 532  #endregion
 533
 534}
 535
 536#endregion Designer generated code