< Summary

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

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity NPath complexity Sequence coverage
PBOnPointerUpResult()0%2100%
get_Descriptor()0%2100%
PBOnPointerUpResult(...)0%90900%
Clone()0%2100%
PBOnPointerUpResult()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/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> {
 046    private static readonly pb::MessageParser<PBOnPointerUpResult> _parser = new pb::MessageParser<PBOnPointerUpResult>(
 47    private pb::UnknownFieldSet _unknownFields;
 48    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 049    public static pb::MessageParser<PBOnPointerUpResult> Parser { get { return _parser; } }
 50
 51    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 52    public static pbr::MessageDescriptor Descriptor {
 053      get { return global::DCL.ECSComponents.OnPointerUpResultReflection.Descriptor.MessageTypes[0]; }
 54    }
 55
 56    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 57    pbr::MessageDescriptor pb::IMessage.Descriptor {
 058      get { return Descriptor; }
 59    }
 60
 61    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 062    public PBOnPointerUpResult() {
 63      OnConstruction();
 064    }
 65
 66    partial void OnConstruction();
 67
 68    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 069    public PBOnPointerUpResult(PBOnPointerUpResult other) : this() {
 070      button_ = other.button_;
 071      meshName_ = other.meshName_;
 072      origin_ = other.origin_ != null ? other.origin_.Clone() : null;
 073      direction_ = other.direction_ != null ? other.direction_.Clone() : null;
 074      point_ = other.point_ != null ? other.point_.Clone() : null;
 075      normal_ = other.normal_ != null ? other.normal_.Clone() : null;
 076      distance_ = other.distance_;
 077      timestamp_ = other.timestamp_;
 078      _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
 079    }
 80
 81    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 82    public PBOnPointerUpResult Clone() {
 083      return new PBOnPointerUpResult(this);
 84    }
 85
 86    /// <summary>Field number for the "button" field.</summary>
 87    public const int ButtonFieldNumber = 2;
 88    private global::ActionButton button_ = global::ActionButton.Pointer;
 89    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 90    public global::ActionButton Button {
 091      get { return button_; }
 92      set {
 093        button_ = value;
 094      }
 95    }
 96
 97    /// <summary>Field number for the "meshName" field.</summary>
 98    public const int MeshNameFieldNumber = 3;
 099    private string meshName_ = "";
 100    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 101    public string MeshName {
 0102      get { return meshName_; }
 103      set {
 0104        meshName_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
 0105      }
 106    }
 107
 108    /// <summary>Field number for the "origin" field.</summary>
 109    public const int OriginFieldNumber = 4;
 110    private global::Vector3 origin_;
 111    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 112    public global::Vector3 Origin {
 0113      get { return origin_; }
 114      set {
 0115        origin_ = value;
 0116      }
 117    }
 118
 119    /// <summary>Field number for the "direction" field.</summary>
 120    public const int DirectionFieldNumber = 5;
 121    private global::Vector3 direction_;
 122    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 123    public global::Vector3 Direction {
 0124      get { return direction_; }
 125      set {
 0126        direction_ = value;
 0127      }
 128    }
 129
 130    /// <summary>Field number for the "point" field.</summary>
 131    public const int PointFieldNumber = 6;
 132    private global::Vector3 point_;
 133    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 134    public global::Vector3 Point {
 0135      get { return point_; }
 136      set {
 0137        point_ = value;
 0138      }
 139    }
 140
 141    /// <summary>Field number for the "normal" field.</summary>
 142    public const int NormalFieldNumber = 7;
 143    private global::Vector3 normal_;
 144    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 145    public global::Vector3 Normal {
 0146      get { return normal_; }
 147      set {
 0148        normal_ = value;
 0149      }
 150    }
 151
 152    /// <summary>Field number for the "distance" field.</summary>
 153    public const int DistanceFieldNumber = 8;
 154    private float distance_;
 155    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 156    public float Distance {
 0157      get { return distance_; }
 158      set {
 0159        distance_ = value;
 0160      }
 161    }
 162
 163    /// <summary>Field number for the "timestamp" field.</summary>
 164    public const int TimestampFieldNumber = 9;
 165    private int timestamp_;
 166    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 167    public int Timestamp {
 0168      get { return timestamp_; }
 169      set {
 0170        timestamp_ = value;
 0171      }
 172    }
 173
 174    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 175    public override bool Equals(object other) {
 0176      return Equals(other as PBOnPointerUpResult);
 177    }
 178
 179    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 180    public bool Equals(PBOnPointerUpResult other) {
 0181      if (ReferenceEquals(other, null)) {
 0182        return false;
 183      }
 0184      if (ReferenceEquals(other, this)) {
 0185        return true;
 186      }
 0187      if (Button != other.Button) return false;
 0188      if (MeshName != other.MeshName) return false;
 0189      if (!object.Equals(Origin, other.Origin)) return false;
 0190      if (!object.Equals(Direction, other.Direction)) return false;
 0191      if (!object.Equals(Point, other.Point)) return false;
 0192      if (!object.Equals(Normal, other.Normal)) return false;
 0193      if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(Distance, other.Distance)) return false;
 0194      if (Timestamp != other.Timestamp) return false;
 0195      return Equals(_unknownFields, other._unknownFields);
 196    }
 197
 198    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 199    public override int GetHashCode() {
 0200      int hash = 1;
 0201      if (Button != global::ActionButton.Pointer) hash ^= Button.GetHashCode();
 0202      if (MeshName.Length != 0) hash ^= MeshName.GetHashCode();
 0203      if (origin_ != null) hash ^= Origin.GetHashCode();
 0204      if (direction_ != null) hash ^= Direction.GetHashCode();
 0205      if (point_ != null) hash ^= Point.GetHashCode();
 0206      if (normal_ != null) hash ^= Normal.GetHashCode();
 0207      if (Distance != 0F) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(Distance);
 0208      if (Timestamp != 0) hash ^= Timestamp.GetHashCode();
 0209      if (_unknownFields != null) {
 0210        hash ^= _unknownFields.GetHashCode();
 211      }
 0212      return hash;
 213    }
 214
 215    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 216    public override string ToString() {
 0217      return pb::JsonFormatter.ToDiagnosticString(this);
 218    }
 219
 220    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 221    public void WriteTo(pb::CodedOutputStream output) {
 0222      if (Button != global::ActionButton.Pointer) {
 0223        output.WriteRawTag(16);
 0224        output.WriteEnum((int) Button);
 225      }
 0226      if (MeshName.Length != 0) {
 0227        output.WriteRawTag(26);
 0228        output.WriteString(MeshName);
 229      }
 0230      if (origin_ != null) {
 0231        output.WriteRawTag(34);
 0232        output.WriteMessage(Origin);
 233      }
 0234      if (direction_ != null) {
 0235        output.WriteRawTag(42);
 0236        output.WriteMessage(Direction);
 237      }
 0238      if (point_ != null) {
 0239        output.WriteRawTag(50);
 0240        output.WriteMessage(Point);
 241      }
 0242      if (normal_ != null) {
 0243        output.WriteRawTag(58);
 0244        output.WriteMessage(Normal);
 245      }
 0246      if (Distance != 0F) {
 0247        output.WriteRawTag(69);
 0248        output.WriteFloat(Distance);
 249      }
 0250      if (Timestamp != 0) {
 0251        output.WriteRawTag(72);
 0252        output.WriteInt32(Timestamp);
 253      }
 0254      if (_unknownFields != null) {
 0255        _unknownFields.WriteTo(output);
 256      }
 0257    }
 258
 259    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 260    public int CalculateSize() {
 0261      int size = 0;
 0262      if (Button != global::ActionButton.Pointer) {
 0263        size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Button);
 264      }
 0265      if (MeshName.Length != 0) {
 0266        size += 1 + pb::CodedOutputStream.ComputeStringSize(MeshName);
 267      }
 0268      if (origin_ != null) {
 0269        size += 1 + pb::CodedOutputStream.ComputeMessageSize(Origin);
 270      }
 0271      if (direction_ != null) {
 0272        size += 1 + pb::CodedOutputStream.ComputeMessageSize(Direction);
 273      }
 0274      if (point_ != null) {
 0275        size += 1 + pb::CodedOutputStream.ComputeMessageSize(Point);
 276      }
 0277      if (normal_ != null) {
 0278        size += 1 + pb::CodedOutputStream.ComputeMessageSize(Normal);
 279      }
 0280      if (Distance != 0F) {
 0281        size += 1 + 4;
 282      }
 0283      if (Timestamp != 0) {
 0284        size += 1 + pb::CodedOutputStream.ComputeInt32Size(Timestamp);
 285      }
 0286      if (_unknownFields != null) {
 0287        size += _unknownFields.CalculateSize();
 288      }
 0289      return size;
 290    }
 291
 292    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 293    public void MergeFrom(PBOnPointerUpResult other) {
 0294      if (other == null) {
 0295        return;
 296      }
 0297      if (other.Button != global::ActionButton.Pointer) {
 0298        Button = other.Button;
 299      }
 0300      if (other.MeshName.Length != 0) {
 0301        MeshName = other.MeshName;
 302      }
 0303      if (other.origin_ != null) {
 0304        if (origin_ == null) {
 0305          Origin = new global::Vector3();
 306        }
 0307        Origin.MergeFrom(other.Origin);
 308      }
 0309      if (other.direction_ != null) {
 0310        if (direction_ == null) {
 0311          Direction = new global::Vector3();
 312        }
 0313        Direction.MergeFrom(other.Direction);
 314      }
 0315      if (other.point_ != null) {
 0316        if (point_ == null) {
 0317          Point = new global::Vector3();
 318        }
 0319        Point.MergeFrom(other.Point);
 320      }
 0321      if (other.normal_ != null) {
 0322        if (normal_ == null) {
 0323          Normal = new global::Vector3();
 324        }
 0325        Normal.MergeFrom(other.Normal);
 326      }
 0327      if (other.Distance != 0F) {
 0328        Distance = other.Distance;
 329      }
 0330      if (other.Timestamp != 0) {
 0331        Timestamp = other.Timestamp;
 332      }
 0333      _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 0334    }
 335
 336    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 337    public void MergeFrom(pb::CodedInputStream input) {
 338      uint tag;
 0339      while ((tag = input.ReadTag()) != 0) {
 340        switch(tag) {
 341          default:
 0342            _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
 0343            break;
 344          case 16: {
 0345            Button = (global::ActionButton) input.ReadEnum();
 0346            break;
 347          }
 348          case 26: {
 0349            MeshName = input.ReadString();
 0350            break;
 351          }
 352          case 34: {
 0353            if (origin_ == null) {
 0354              Origin = new global::Vector3();
 355            }
 0356            input.ReadMessage(Origin);
 0357            break;
 358          }
 359          case 42: {
 0360            if (direction_ == null) {
 0361              Direction = new global::Vector3();
 362            }
 0363            input.ReadMessage(Direction);
 0364            break;
 365          }
 366          case 50: {
 0367            if (point_ == null) {
 0368              Point = new global::Vector3();
 369            }
 0370            input.ReadMessage(Point);
 0371            break;
 372          }
 373          case 58: {
 0374            if (normal_ == null) {
 0375              Normal = new global::Vector3();
 376            }
 0377            input.ReadMessage(Normal);
 0378            break;
 379          }
 380          case 69: {
 0381            Distance = input.ReadFloat();
 0382            break;
 383          }
 384          case 72: {
 0385            Timestamp = input.ReadInt32();
 386            break;
 387          }
 388        }
 389      }
 0390    }
 391
 392  }
 393
 394  #endregion
 395
 396}
 397
 398#endregion Designer generated code