< Summary

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

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity NPath complexity Sequence coverage
PBOnPointerDown()0%2100%
get_Descriptor()0%2100%
PBOnPointerDown(...)0%2100%
Clone()0%2100%
PBOnPointerDown()0%2100%
Equals(...)0%2100%
Equals(...)0%56700%
GetHashCode()0%42600%
ToString()0%2100%
WriteTo(...)0%42600%
CalculateSize()0%42600%
MergeFrom(...)0%42600%
MergeFrom(...)0%56700%

File(s)

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

#LineLine coverage
 1// <auto-generated>
 2//     Generated by the protocol buffer compiler.  DO NOT EDIT!
 3//     source: OnPointerDown.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 OnPointerDown.proto</summary>
 15  public static partial class OnPointerDownReflection {
 16
 17    #region Descriptor
 18    /// <summary>File descriptor for OnPointerDown.proto</summary>
 19    public static pbr::FileDescriptor Descriptor {
 20      get { return descriptor; }
 21    }
 22    private static pbr::FileDescriptor descriptor;
 23
 24    static OnPointerDownReflection() {
 25      byte[] descriptorData = global::System.Convert.FromBase64String(
 26          string.Concat(
 27            "ChNPblBvaW50ZXJEb3duLnByb3RvEhBkZWNlbnRyYWxhbmQuZWNzGhljb21t",
 28            "b24vQWN0aW9uQnV0dG9uLnByb3RvIm0KD1BCT25Qb2ludGVyRG93bhIdCgZi",
 29            "dXR0b24YASABKA4yDS5BY3Rpb25CdXR0b24SEgoKaG92ZXJfdGV4dBgCIAEo",
 30            "CRIQCghkaXN0YW5jZRgDIAEoAhIVCg1zaG93X2ZlZWRiYWNrGAQgASgIQhSq",
 31            "AhFEQ0wuRUNTQ29tcG9uZW50c2IGcHJvdG8z"));
 32      descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
 33          new pbr::FileDescriptor[] { global::ActionButtonReflection.Descriptor, },
 34          new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] {
 35            new pbr::GeneratedClrTypeInfo(typeof(global::DCL.ECSComponents.PBOnPointerDown), global::DCL.ECSComponents.P
 36          }));
 37    }
 38    #endregion
 39
 40  }
 41  #region Messages
 42  public sealed partial class PBOnPointerDown : pb::IMessage<PBOnPointerDown> {
 043    private static readonly pb::MessageParser<PBOnPointerDown> _parser = new pb::MessageParser<PBOnPointerDown>(() => ne
 44    private pb::UnknownFieldSet _unknownFields;
 45    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 046    public static pb::MessageParser<PBOnPointerDown> Parser { get { return _parser; } }
 47
 48    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 49    public static pbr::MessageDescriptor Descriptor {
 050      get { return global::DCL.ECSComponents.OnPointerDownReflection.Descriptor.MessageTypes[0]; }
 51    }
 52
 53    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 54    pbr::MessageDescriptor pb::IMessage.Descriptor {
 055      get { return Descriptor; }
 56    }
 57
 58    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 059    public PBOnPointerDown() {
 60      OnConstruction();
 061    }
 62
 63    partial void OnConstruction();
 64
 65    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 066    public PBOnPointerDown(PBOnPointerDown other) : this() {
 067      button_ = other.button_;
 068      hoverText_ = other.hoverText_;
 069      distance_ = other.distance_;
 070      showFeedback_ = other.showFeedback_;
 071      _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
 072    }
 73
 74    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 75    public PBOnPointerDown Clone() {
 076      return new PBOnPointerDown(this);
 77    }
 78
 79    /// <summary>Field number for the "button" field.</summary>
 80    public const int ButtonFieldNumber = 1;
 81    private global::ActionButton button_ = global::ActionButton.Pointer;
 82    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 83    public global::ActionButton Button {
 084      get { return button_; }
 85      set {
 086        button_ = value;
 087      }
 88    }
 89
 90    /// <summary>Field number for the "hover_text" field.</summary>
 91    public const int HoverTextFieldNumber = 2;
 092    private string hoverText_ = "";
 93    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 94    public string HoverText {
 095      get { return hoverText_; }
 96      set {
 097        hoverText_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
 098      }
 99    }
 100
 101    /// <summary>Field number for the "distance" field.</summary>
 102    public const int DistanceFieldNumber = 3;
 103    private float distance_;
 104    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 105    public float Distance {
 0106      get { return distance_; }
 107      set {
 0108        distance_ = value;
 0109      }
 110    }
 111
 112    /// <summary>Field number for the "show_feedback" field.</summary>
 113    public const int ShowFeedbackFieldNumber = 4;
 114    private bool showFeedback_;
 115    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 116    public bool ShowFeedback {
 0117      get { return showFeedback_; }
 118      set {
 0119        showFeedback_ = value;
 0120      }
 121    }
 122
 123    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 124    public override bool Equals(object other) {
 0125      return Equals(other as PBOnPointerDown);
 126    }
 127
 128    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 129    public bool Equals(PBOnPointerDown other) {
 0130      if (ReferenceEquals(other, null)) {
 0131        return false;
 132      }
 0133      if (ReferenceEquals(other, this)) {
 0134        return true;
 135      }
 0136      if (Button != other.Button) return false;
 0137      if (HoverText != other.HoverText) return false;
 0138      if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(Distance, other.Distance)) return false;
 0139      if (ShowFeedback != other.ShowFeedback) return false;
 0140      return Equals(_unknownFields, other._unknownFields);
 141    }
 142
 143    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 144    public override int GetHashCode() {
 0145      int hash = 1;
 0146      if (Button != global::ActionButton.Pointer) hash ^= Button.GetHashCode();
 0147      if (HoverText.Length != 0) hash ^= HoverText.GetHashCode();
 0148      if (Distance != 0F) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(Distance);
 0149      if (ShowFeedback != false) hash ^= ShowFeedback.GetHashCode();
 0150      if (_unknownFields != null) {
 0151        hash ^= _unknownFields.GetHashCode();
 152      }
 0153      return hash;
 154    }
 155
 156    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 157    public override string ToString() {
 0158      return pb::JsonFormatter.ToDiagnosticString(this);
 159    }
 160
 161    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 162    public void WriteTo(pb::CodedOutputStream output) {
 0163      if (Button != global::ActionButton.Pointer) {
 0164        output.WriteRawTag(8);
 0165        output.WriteEnum((int) Button);
 166      }
 0167      if (HoverText.Length != 0) {
 0168        output.WriteRawTag(18);
 0169        output.WriteString(HoverText);
 170      }
 0171      if (Distance != 0F) {
 0172        output.WriteRawTag(29);
 0173        output.WriteFloat(Distance);
 174      }
 0175      if (ShowFeedback != false) {
 0176        output.WriteRawTag(32);
 0177        output.WriteBool(ShowFeedback);
 178      }
 0179      if (_unknownFields != null) {
 0180        _unknownFields.WriteTo(output);
 181      }
 0182    }
 183
 184    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 185    public int CalculateSize() {
 0186      int size = 0;
 0187      if (Button != global::ActionButton.Pointer) {
 0188        size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Button);
 189      }
 0190      if (HoverText.Length != 0) {
 0191        size += 1 + pb::CodedOutputStream.ComputeStringSize(HoverText);
 192      }
 0193      if (Distance != 0F) {
 0194        size += 1 + 4;
 195      }
 0196      if (ShowFeedback != false) {
 0197        size += 1 + 1;
 198      }
 0199      if (_unknownFields != null) {
 0200        size += _unknownFields.CalculateSize();
 201      }
 0202      return size;
 203    }
 204
 205    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 206    public void MergeFrom(PBOnPointerDown other) {
 0207      if (other == null) {
 0208        return;
 209      }
 0210      if (other.Button != global::ActionButton.Pointer) {
 0211        Button = other.Button;
 212      }
 0213      if (other.HoverText.Length != 0) {
 0214        HoverText = other.HoverText;
 215      }
 0216      if (other.Distance != 0F) {
 0217        Distance = other.Distance;
 218      }
 0219      if (other.ShowFeedback != false) {
 0220        ShowFeedback = other.ShowFeedback;
 221      }
 0222      _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 0223    }
 224
 225    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 226    public void MergeFrom(pb::CodedInputStream input) {
 227      uint tag;
 0228      while ((tag = input.ReadTag()) != 0) {
 229        switch(tag) {
 230          default:
 0231            _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
 0232            break;
 233          case 8: {
 0234            Button = (global::ActionButton) input.ReadEnum();
 0235            break;
 236          }
 237          case 18: {
 0238            HoverText = input.ReadString();
 0239            break;
 240          }
 241          case 29: {
 0242            Distance = input.ReadFloat();
 0243            break;
 244          }
 245          case 32: {
 0246            ShowFeedback = input.ReadBool();
 247            break;
 248          }
 249        }
 250      }
 0251    }
 252
 253  }
 254
 255  #endregion
 256
 257}
 258
 259#endregion Designer generated code