< Summary

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

Metrics

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

File(s)

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

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