< Summary

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

Metrics

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

File(s)

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

#LineLine coverage
 1// <auto-generated>
 2//     Generated by the protocol buffer compiler.  DO NOT EDIT!
 3//     source: ecs/components/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 ecs/components/OnPointerDown.proto</summary>
 15  public static partial class OnPointerDownReflection {
 16
 17    #region Descriptor
 18    /// <summary>File descriptor for ecs/components/OnPointerDown.proto</summary>
 19    public static pbr::FileDescriptor Descriptor {
 020      get { return descriptor; }
 21    }
 22    private static pbr::FileDescriptor descriptor;
 23
 24    static OnPointerDownReflection() {
 025      byte[] descriptorData = global::System.Convert.FromBase64String(
 26          string.Concat(
 27            "CiJlY3MvY29tcG9uZW50cy9PblBvaW50ZXJEb3duLnByb3RvEhBkZWNlbnRy",
 28            "YWxhbmQuZWNzGihlY3MvY29tcG9uZW50cy9jb21tb24vQWN0aW9uQnV0dG9u",
 29            "LnByb3RvItMBCg9QQk9uUG9pbnRlckRvd24SMwoGYnV0dG9uGAEgASgOMh4u",
 30            "ZGVjZW50cmFsYW5kLmVjcy5BY3Rpb25CdXR0b25IAIgBARIXCgpob3Zlcl90",
 31            "ZXh0GAIgASgJSAGIAQESGQoMbWF4X2Rpc3RhbmNlGAMgASgCSAKIAQESGgoN",
 32            "c2hvd19mZWVkYmFjaxgEIAEoCEgDiAEBQgkKB19idXR0b25CDQoLX2hvdmVy",
 33            "X3RleHRCDwoNX21heF9kaXN0YW5jZUIQCg5fc2hvd19mZWVkYmFja0IUqgIR",
 34            "RENMLkVDU0NvbXBvbmVudHNiBnByb3RvMw=="));
 035      descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
 36          new pbr::FileDescriptor[] { global::DCL.ECSComponents.ActionButtonReflection.Descriptor, },
 37          new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] {
 38            new pbr::GeneratedClrTypeInfo(typeof(global::DCL.ECSComponents.PBOnPointerDown), global::DCL.ECSComponents.P
 39          }));
 040    }
 41    #endregion
 42
 43  }
 44  #region Messages
 45  public sealed partial class PBOnPointerDown : pb::IMessage<PBOnPointerDown>
 46  #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 47      , pb::IBufferMessage
 48  #endif
 49  {
 50    private static readonly pb::MessageParser<PBOnPointerDown> _parser = new pb::MessageParser<PBOnPointerDown>(() => ne
 51    private pb::UnknownFieldSet _unknownFields;
 52    private int _hasBits0;
 53    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 54    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 55    public static pb::MessageParser<PBOnPointerDown> Parser { get { return _parser; } }
 56
 57    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 58    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 59    public static pbr::MessageDescriptor Descriptor {
 60      get { return global::DCL.ECSComponents.OnPointerDownReflection.Descriptor.MessageTypes[0]; }
 61    }
 62
 63    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 64    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 65    pbr::MessageDescriptor pb::IMessage.Descriptor {
 66      get { return Descriptor; }
 67    }
 68
 69    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 70    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 71    public PBOnPointerDown() {
 72      OnConstruction();
 73    }
 74
 75    partial void OnConstruction();
 76
 77    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 78    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 79    public PBOnPointerDown(PBOnPointerDown other) : this() {
 80      _hasBits0 = other._hasBits0;
 81      button_ = other.button_;
 82      hoverText_ = other.hoverText_;
 83      maxDistance_ = other.maxDistance_;
 84      showFeedback_ = other.showFeedback_;
 85      _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
 86    }
 87
 88    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 89    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 90    public PBOnPointerDown Clone() {
 91      return new PBOnPointerDown(this);
 92    }
 93
 94    /// <summary>Field number for the "button" field.</summary>
 95    public const int ButtonFieldNumber = 1;
 96    private global::DCL.ECSComponents.ActionButton button_;
 97    /// <summary>
 98    /// default=ActionButton.ANY
 99    /// </summary>
 100    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 101    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 102    public global::DCL.ECSComponents.ActionButton Button {
 103      get { if ((_hasBits0 & 1) != 0) { return button_; } else { return global::DCL.ECSComponents.ActionButton.Pointer; 
 104      set {
 105        _hasBits0 |= 1;
 106        button_ = value;
 107      }
 108    }
 109    /// <summary>Gets whether the "button" field is set</summary>
 110    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 111    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 112    public bool HasButton {
 113      get { return (_hasBits0 & 1) != 0; }
 114    }
 115    /// <summary>Clears the value of the "button" field</summary>
 116    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 117    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 118    public void ClearButton() {
 119      _hasBits0 &= ~1;
 120    }
 121
 122    /// <summary>Field number for the "hover_text" field.</summary>
 123    public const int HoverTextFieldNumber = 2;
 124    private string hoverText_;
 125    /// <summary>
 126    /// default='Interact'
 127    /// </summary>
 128    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 129    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 130    public string HoverText {
 131      get { return hoverText_ ?? ""; }
 132      set {
 133        hoverText_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
 134      }
 135    }
 136    /// <summary>Gets whether the "hover_text" field is set</summary>
 137    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 138    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 139    public bool HasHoverText {
 140      get { return hoverText_ != null; }
 141    }
 142    /// <summary>Clears the value of the "hover_text" field</summary>
 143    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 144    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 145    public void ClearHoverText() {
 146      hoverText_ = null;
 147    }
 148
 149    /// <summary>Field number for the "max_distance" field.</summary>
 150    public const int MaxDistanceFieldNumber = 3;
 151    private float maxDistance_;
 152    /// <summary>
 153    /// default=10
 154    /// </summary>
 155    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 156    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 157    public float MaxDistance {
 158      get { if ((_hasBits0 & 2) != 0) { return maxDistance_; } else { return 0F; } }
 159      set {
 160        _hasBits0 |= 2;
 161        maxDistance_ = value;
 162      }
 163    }
 164    /// <summary>Gets whether the "max_distance" field is set</summary>
 165    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 166    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 167    public bool HasMaxDistance {
 168      get { return (_hasBits0 & 2) != 0; }
 169    }
 170    /// <summary>Clears the value of the "max_distance" field</summary>
 171    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 172    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 173    public void ClearMaxDistance() {
 174      _hasBits0 &= ~2;
 175    }
 176
 177    /// <summary>Field number for the "show_feedback" field.</summary>
 178    public const int ShowFeedbackFieldNumber = 4;
 179    private bool showFeedback_;
 180    /// <summary>
 181    /// default=true
 182    /// </summary>
 183    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 184    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 185    public bool ShowFeedback {
 186      get { if ((_hasBits0 & 4) != 0) { return showFeedback_; } else { return false; } }
 187      set {
 188        _hasBits0 |= 4;
 189        showFeedback_ = value;
 190      }
 191    }
 192    /// <summary>Gets whether the "show_feedback" field is set</summary>
 193    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 194    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 195    public bool HasShowFeedback {
 196      get { return (_hasBits0 & 4) != 0; }
 197    }
 198    /// <summary>Clears the value of the "show_feedback" field</summary>
 199    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 200    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 201    public void ClearShowFeedback() {
 202      _hasBits0 &= ~4;
 203    }
 204
 205    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 206    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 207    public override bool Equals(object other) {
 208      return Equals(other as PBOnPointerDown);
 209    }
 210
 211    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 212    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 213    public bool Equals(PBOnPointerDown other) {
 214      if (ReferenceEquals(other, null)) {
 215        return false;
 216      }
 217      if (ReferenceEquals(other, this)) {
 218        return true;
 219      }
 220      if (Button != other.Button) return false;
 221      if (HoverText != other.HoverText) return false;
 222      if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(MaxDistance, other.MaxDistance)) return f
 223      if (ShowFeedback != other.ShowFeedback) return false;
 224      return Equals(_unknownFields, other._unknownFields);
 225    }
 226
 227    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 228    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 229    public override int GetHashCode() {
 230      int hash = 1;
 231      if (HasButton) hash ^= Button.GetHashCode();
 232      if (HasHoverText) hash ^= HoverText.GetHashCode();
 233      if (HasMaxDistance) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(MaxDistance);
 234      if (HasShowFeedback) hash ^= ShowFeedback.GetHashCode();
 235      if (_unknownFields != null) {
 236        hash ^= _unknownFields.GetHashCode();
 237      }
 238      return hash;
 239    }
 240
 241    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 242    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 243    public override string ToString() {
 244      return pb::JsonFormatter.ToDiagnosticString(this);
 245    }
 246
 247    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 248    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 249    public void WriteTo(pb::CodedOutputStream output) {
 250    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 251      output.WriteRawMessage(this);
 252    #else
 253      if (HasButton) {
 254        output.WriteRawTag(8);
 255        output.WriteEnum((int) Button);
 256      }
 257      if (HasHoverText) {
 258        output.WriteRawTag(18);
 259        output.WriteString(HoverText);
 260      }
 261      if (HasMaxDistance) {
 262        output.WriteRawTag(29);
 263        output.WriteFloat(MaxDistance);
 264      }
 265      if (HasShowFeedback) {
 266        output.WriteRawTag(32);
 267        output.WriteBool(ShowFeedback);
 268      }
 269      if (_unknownFields != null) {
 270        _unknownFields.WriteTo(output);
 271      }
 272    #endif
 273    }
 274
 275    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 276    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 277    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 278    void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
 279      if (HasButton) {
 280        output.WriteRawTag(8);
 281        output.WriteEnum((int) Button);
 282      }
 283      if (HasHoverText) {
 284        output.WriteRawTag(18);
 285        output.WriteString(HoverText);
 286      }
 287      if (HasMaxDistance) {
 288        output.WriteRawTag(29);
 289        output.WriteFloat(MaxDistance);
 290      }
 291      if (HasShowFeedback) {
 292        output.WriteRawTag(32);
 293        output.WriteBool(ShowFeedback);
 294      }
 295      if (_unknownFields != null) {
 296        _unknownFields.WriteTo(ref output);
 297      }
 298    }
 299    #endif
 300
 301    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 302    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 303    public int CalculateSize() {
 304      int size = 0;
 305      if (HasButton) {
 306        size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Button);
 307      }
 308      if (HasHoverText) {
 309        size += 1 + pb::CodedOutputStream.ComputeStringSize(HoverText);
 310      }
 311      if (HasMaxDistance) {
 312        size += 1 + 4;
 313      }
 314      if (HasShowFeedback) {
 315        size += 1 + 1;
 316      }
 317      if (_unknownFields != null) {
 318        size += _unknownFields.CalculateSize();
 319      }
 320      return size;
 321    }
 322
 323    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 324    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 325    public void MergeFrom(PBOnPointerDown other) {
 326      if (other == null) {
 327        return;
 328      }
 329      if (other.HasButton) {
 330        Button = other.Button;
 331      }
 332      if (other.HasHoverText) {
 333        HoverText = other.HoverText;
 334      }
 335      if (other.HasMaxDistance) {
 336        MaxDistance = other.MaxDistance;
 337      }
 338      if (other.HasShowFeedback) {
 339        ShowFeedback = other.ShowFeedback;
 340      }
 341      _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 342    }
 343
 344    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 345    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 346    public void MergeFrom(pb::CodedInputStream input) {
 347    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 348      input.ReadRawMessage(this);
 349    #else
 350      uint tag;
 351      while ((tag = input.ReadTag()) != 0) {
 352        switch(tag) {
 353          default:
 354            _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
 355            break;
 356          case 8: {
 357            Button = (global::DCL.ECSComponents.ActionButton) input.ReadEnum();
 358            break;
 359          }
 360          case 18: {
 361            HoverText = input.ReadString();
 362            break;
 363          }
 364          case 29: {
 365            MaxDistance = input.ReadFloat();
 366            break;
 367          }
 368          case 32: {
 369            ShowFeedback = input.ReadBool();
 370            break;
 371          }
 372        }
 373      }
 374    #endif
 375    }
 376
 377    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 378    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 379    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 380    void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
 381      uint tag;
 382      while ((tag = input.ReadTag()) != 0) {
 383        switch(tag) {
 384          default:
 385            _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
 386            break;
 387          case 8: {
 388            Button = (global::DCL.ECSComponents.ActionButton) input.ReadEnum();
 389            break;
 390          }
 391          case 18: {
 392            HoverText = input.ReadString();
 393            break;
 394          }
 395          case 29: {
 396            MaxDistance = input.ReadFloat();
 397            break;
 398          }
 399          case 32: {
 400            ShowFeedback = input.ReadBool();
 401            break;
 402          }
 403        }
 404      }
 405    }
 406    #endif
 407
 408  }
 409
 410  #endregion
 411
 412}
 413
 414#endregion Designer generated code