< Summary

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

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity NPath complexity Sequence coverage
PBOnPointerUpResult()0%110100%
get_Descriptor()0%2100%
PBOnPointerUpResult(...)0%90900%
Clone()0%2100%
PBOnPointerUpResult()0%110100%
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/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 {
 20      get { return descriptor; }
 21    }
 22    private static pbr::FileDescriptor descriptor;
 23
 24    static OnPointerUpResultReflection() {
 25      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="));
 35      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          }));
 40    }
 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  {
 150    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)]
 054    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 {
 059      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 {
 065      get { return Descriptor; }
 66    }
 67
 68    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 69    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 170    public PBOnPointerUpResult() {
 71      OnConstruction();
 172    }
 73
 74    partial void OnConstruction();
 75
 76    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 77    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 078    public PBOnPointerUpResult(PBOnPointerUpResult other) : this() {
 079      button_ = other.button_;
 080      meshName_ = other.meshName_;
 081      origin_ = other.origin_ != null ? other.origin_.Clone() : null;
 082      direction_ = other.direction_ != null ? other.direction_.Clone() : null;
 083      point_ = other.point_ != null ? other.point_.Clone() : null;
 084      normal_ = other.normal_ != null ? other.normal_.Clone() : null;
 085      distance_ = other.distance_;
 086      timestamp_ = other.timestamp_;
 087      _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
 088    }
 89
 90    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 91    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 92    public PBOnPointerUpResult Clone() {
 093      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 {
 0102      get { return button_; }
 103      set {
 1104        button_ = value;
 1105      }
 106    }
 107
 108    /// <summary>Field number for the "meshName" field.</summary>
 109    public const int MeshNameFieldNumber = 3;
 1110    private string meshName_ = "";
 111    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 112    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 113    public string MeshName {
 0114      get { return meshName_; }
 115      set {
 1116        meshName_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
 1117      }
 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 {
 0126      get { return origin_; }
 127      set {
 1128        origin_ = value;
 1129      }
 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 {
 0138      get { return direction_; }
 139      set {
 1140        direction_ = value;
 1141      }
 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 {
 0150      get { return point_; }
 151      set {
 1152        point_ = value;
 1153      }
 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 {
 0162      get { return normal_; }
 163      set {
 1164        normal_ = value;
 1165      }
 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 {
 0174      get { return distance_; }
 175      set {
 1176        distance_ = value;
 1177      }
 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 {
 0186      get { return timestamp_; }
 187      set {
 0188        timestamp_ = value;
 0189      }
 190    }
 191
 192    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 193    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 194    public override bool Equals(object other) {
 0195      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) {
 0201      if (ReferenceEquals(other, null)) {
 0202        return false;
 203      }
 0204      if (ReferenceEquals(other, this)) {
 0205        return true;
 206      }
 0207      if (Button != other.Button) return false;
 0208      if (MeshName != other.MeshName) return false;
 0209      if (!object.Equals(Origin, other.Origin)) return false;
 0210      if (!object.Equals(Direction, other.Direction)) return false;
 0211      if (!object.Equals(Point, other.Point)) return false;
 0212      if (!object.Equals(Normal, other.Normal)) return false;
 0213      if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(Distance, other.Distance)) return false;
 0214      if (Timestamp != other.Timestamp) return false;
 0215      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() {
 0221      int hash = 1;
 0222      if (Button != global::ActionButton.Pointer) hash ^= Button.GetHashCode();
 0223      if (MeshName.Length != 0) hash ^= MeshName.GetHashCode();
 0224      if (origin_ != null) hash ^= Origin.GetHashCode();
 0225      if (direction_ != null) hash ^= Direction.GetHashCode();
 0226      if (point_ != null) hash ^= Point.GetHashCode();
 0227      if (normal_ != null) hash ^= Normal.GetHashCode();
 0228      if (Distance != 0F) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(Distance);
 0229      if (Timestamp != 0) hash ^= Timestamp.GetHashCode();
 0230      if (_unknownFields != null) {
 0231        hash ^= _unknownFields.GetHashCode();
 232      }
 0233      return hash;
 234    }
 235
 236    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 237    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 238    public override string ToString() {
 0239      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
 0248      if (Button != global::ActionButton.Pointer) {
 0249        output.WriteRawTag(16);
 0250        output.WriteEnum((int) Button);
 251      }
 0252      if (MeshName.Length != 0) {
 0253        output.WriteRawTag(26);
 0254        output.WriteString(MeshName);
 255      }
 0256      if (origin_ != null) {
 0257        output.WriteRawTag(34);
 0258        output.WriteMessage(Origin);
 259      }
 0260      if (direction_ != null) {
 0261        output.WriteRawTag(42);
 0262        output.WriteMessage(Direction);
 263      }
 0264      if (point_ != null) {
 0265        output.WriteRawTag(50);
 0266        output.WriteMessage(Point);
 267      }
 0268      if (normal_ != null) {
 0269        output.WriteRawTag(58);
 0270        output.WriteMessage(Normal);
 271      }
 0272      if (Distance != 0F) {
 0273        output.WriteRawTag(69);
 0274        output.WriteFloat(Distance);
 275      }
 0276      if (Timestamp != 0) {
 0277        output.WriteRawTag(72);
 0278        output.WriteInt32(Timestamp);
 279      }
 0280      if (_unknownFields != null) {
 0281        _unknownFields.WriteTo(output);
 282      }
 283    #endif
 0284    }
 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() {
 0331      int size = 0;
 0332      if (Button != global::ActionButton.Pointer) {
 0333        size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Button);
 334      }
 0335      if (MeshName.Length != 0) {
 0336        size += 1 + pb::CodedOutputStream.ComputeStringSize(MeshName);
 337      }
 0338      if (origin_ != null) {
 0339        size += 1 + pb::CodedOutputStream.ComputeMessageSize(Origin);
 340      }
 0341      if (direction_ != null) {
 0342        size += 1 + pb::CodedOutputStream.ComputeMessageSize(Direction);
 343      }
 0344      if (point_ != null) {
 0345        size += 1 + pb::CodedOutputStream.ComputeMessageSize(Point);
 346      }
 0347      if (normal_ != null) {
 0348        size += 1 + pb::CodedOutputStream.ComputeMessageSize(Normal);
 349      }
 0350      if (Distance != 0F) {
 0351        size += 1 + 4;
 352      }
 0353      if (Timestamp != 0) {
 0354        size += 1 + pb::CodedOutputStream.ComputeInt32Size(Timestamp);
 355      }
 0356      if (_unknownFields != null) {
 0357        size += _unknownFields.CalculateSize();
 358      }
 0359      return size;
 360    }
 361
 362    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 363    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 364    public void MergeFrom(PBOnPointerUpResult other) {
 0365      if (other == null) {
 0366        return;
 367      }
 0368      if (other.Button != global::ActionButton.Pointer) {
 0369        Button = other.Button;
 370      }
 0371      if (other.MeshName.Length != 0) {
 0372        MeshName = other.MeshName;
 373      }
 0374      if (other.origin_ != null) {
 0375        if (origin_ == null) {
 0376          Origin = new global::Vector3();
 377        }
 0378        Origin.MergeFrom(other.Origin);
 379      }
 0380      if (other.direction_ != null) {
 0381        if (direction_ == null) {
 0382          Direction = new global::Vector3();
 383        }
 0384        Direction.MergeFrom(other.Direction);
 385      }
 0386      if (other.point_ != null) {
 0387        if (point_ == null) {
 0388          Point = new global::Vector3();
 389        }
 0390        Point.MergeFrom(other.Point);
 391      }
 0392      if (other.normal_ != null) {
 0393        if (normal_ == null) {
 0394          Normal = new global::Vector3();
 395        }
 0396        Normal.MergeFrom(other.Normal);
 397      }
 0398      if (other.Distance != 0F) {
 0399        Distance = other.Distance;
 400      }
 0401      if (other.Timestamp != 0) {
 0402        Timestamp = other.Timestamp;
 403      }
 0404      _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 0405    }
 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;
 0414      while ((tag = input.ReadTag()) != 0) {
 415        switch(tag) {
 416          default:
 0417            _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
 0418            break;
 419          case 16: {
 0420            Button = (global::ActionButton) input.ReadEnum();
 0421            break;
 422          }
 423          case 26: {
 0424            MeshName = input.ReadString();
 0425            break;
 426          }
 427          case 34: {
 0428            if (origin_ == null) {
 0429              Origin = new global::Vector3();
 430            }
 0431            input.ReadMessage(Origin);
 0432            break;
 433          }
 434          case 42: {
 0435            if (direction_ == null) {
 0436              Direction = new global::Vector3();
 437            }
 0438            input.ReadMessage(Direction);
 0439            break;
 440          }
 441          case 50: {
 0442            if (point_ == null) {
 0443              Point = new global::Vector3();
 444            }
 0445            input.ReadMessage(Point);
 0446            break;
 447          }
 448          case 58: {
 0449            if (normal_ == null) {
 0450              Normal = new global::Vector3();
 451            }
 0452            input.ReadMessage(Normal);
 0453            break;
 454          }
 455          case 69: {
 0456            Distance = input.ReadFloat();
 0457            break;
 458          }
 459          case 72: {
 0460            Timestamp = input.ReadInt32();
 461            break;
 462          }
 463        }
 464      }
 465    #endif
 0466    }
 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