< Summary

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

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity NPath complexity Sequence coverage
PBOnPointerUp()0%2100%
get_Descriptor()0%2100%
PBOnPointerUp()0%2100%
PBOnPointerUp(...)0%2100%
Clone()0%2100%
ClearButton()0%2100%
ClearHoverText()0%2100%
ClearMaxDistance()0%2100%
ClearShowFeedback()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/OnPointerUp.gen.cs

#LineLine coverage
 1// <auto-generated>
 2//     Generated by the protocol buffer compiler.  DO NOT EDIT!
 3//     source: ecs/components/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 ecs/components/OnPointerUp.proto</summary>
 15  public static partial class OnPointerUpReflection {
 16
 17    #region Descriptor
 18    /// <summary>File descriptor for ecs/components/OnPointerUp.proto</summary>
 19    public static pbr::FileDescriptor Descriptor {
 20      get { return descriptor; }
 21    }
 22    private static pbr::FileDescriptor descriptor;
 23
 24    static OnPointerUpReflection() {
 25      byte[] descriptorData = global::System.Convert.FromBase64String(
 26          string.Concat(
 27            "CiBlY3MvY29tcG9uZW50cy9PblBvaW50ZXJVcC5wcm90bxIQZGVjZW50cmFs",
 28            "YW5kLmVjcxooZWNzL2NvbXBvbmVudHMvY29tbW9uL0FjdGlvbkJ1dHRvbi5w",
 29            "cm90byLRAQoNUEJPblBvaW50ZXJVcBIzCgZidXR0b24YASABKA4yHi5kZWNl",
 30            "bnRyYWxhbmQuZWNzLkFjdGlvbkJ1dHRvbkgAiAEBEhcKCmhvdmVyX3RleHQY",
 31            "AiABKAlIAYgBARIZCgxtYXhfZGlzdGFuY2UYAyABKAJIAogBARIaCg1zaG93",
 32            "X2ZlZWRiYWNrGAQgASgISAOIAQFCCQoHX2J1dHRvbkINCgtfaG92ZXJfdGV4",
 33            "dEIPCg1fbWF4X2Rpc3RhbmNlQhAKDl9zaG93X2ZlZWRiYWNrQhSqAhFEQ0wu",
 34            "RUNTQ29tcG9uZW50c2IGcHJvdG8z"));
 35      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.PBOnPointerUp), global::DCL.ECSComponents.PBO
 39          }));
 40    }
 41    #endregion
 42
 43  }
 44  #region Messages
 45  public sealed partial class PBOnPointerUp : pb::IMessage<PBOnPointerUp>
 46  #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 47      , pb::IBufferMessage
 48  #endif
 49  {
 050    private static readonly pb::MessageParser<PBOnPointerUp> _parser = new pb::MessageParser<PBOnPointerUp>(() => new PB
 51    private pb::UnknownFieldSet _unknownFields;
 52    private int _hasBits0;
 53    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 54    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 055    public static pb::MessageParser<PBOnPointerUp> Parser { get { return _parser; } }
 56
 57    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 58    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 59    public static pbr::MessageDescriptor Descriptor {
 060      get { return global::DCL.ECSComponents.OnPointerUpReflection.Descriptor.MessageTypes[0]; }
 61    }
 62
 63    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 64    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 65    pbr::MessageDescriptor pb::IMessage.Descriptor {
 066      get { return Descriptor; }
 67    }
 68
 69    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 70    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 071    public PBOnPointerUp() {
 72      OnConstruction();
 073    }
 74
 75    partial void OnConstruction();
 76
 77    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 78    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 079    public PBOnPointerUp(PBOnPointerUp other) : this() {
 080      _hasBits0 = other._hasBits0;
 081      button_ = other.button_;
 082      hoverText_ = other.hoverText_;
 083      maxDistance_ = other.maxDistance_;
 084      showFeedback_ = other.showFeedback_;
 085      _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
 086    }
 87
 88    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 89    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 90    public PBOnPointerUp Clone() {
 091      return new PBOnPointerUp(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 {
 0103      get { if ((_hasBits0 & 1) != 0) { return button_; } else { return global::DCL.ECSComponents.ActionButton.Pointer; 
 104      set {
 0105        _hasBits0 |= 1;
 0106        button_ = value;
 0107      }
 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 {
 0113      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() {
 0119      _hasBits0 &= ~1;
 0120    }
 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 {
 0131      get { return hoverText_ ?? ""; }
 132      set {
 0133        hoverText_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
 0134      }
 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 {
 0140      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() {
 0146      hoverText_ = null;
 0147    }
 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 {
 0158      get { if ((_hasBits0 & 2) != 0) { return maxDistance_; } else { return 0F; } }
 159      set {
 0160        _hasBits0 |= 2;
 0161        maxDistance_ = value;
 0162      }
 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 {
 0168      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() {
 0174      _hasBits0 &= ~2;
 0175    }
 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 {
 0186      get { if ((_hasBits0 & 4) != 0) { return showFeedback_; } else { return false; } }
 187      set {
 0188        _hasBits0 |= 4;
 0189        showFeedback_ = value;
 0190      }
 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 {
 0196      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() {
 0202      _hasBits0 &= ~4;
 0203    }
 204
 205    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 206    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 207    public override bool Equals(object other) {
 0208      return Equals(other as PBOnPointerUp);
 209    }
 210
 211    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 212    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 213    public bool Equals(PBOnPointerUp other) {
 0214      if (ReferenceEquals(other, null)) {
 0215        return false;
 216      }
 0217      if (ReferenceEquals(other, this)) {
 0218        return true;
 219      }
 0220      if (Button != other.Button) return false;
 0221      if (HoverText != other.HoverText) return false;
 0222      if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(MaxDistance, other.MaxDistance)) return f
 0223      if (ShowFeedback != other.ShowFeedback) return false;
 0224      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() {
 0230      int hash = 1;
 0231      if (HasButton) hash ^= Button.GetHashCode();
 0232      if (HasHoverText) hash ^= HoverText.GetHashCode();
 0233      if (HasMaxDistance) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(MaxDistance);
 0234      if (HasShowFeedback) hash ^= ShowFeedback.GetHashCode();
 0235      if (_unknownFields != null) {
 0236        hash ^= _unknownFields.GetHashCode();
 237      }
 0238      return hash;
 239    }
 240
 241    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 242    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 243    public override string ToString() {
 0244      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
 0253      if (HasButton) {
 0254        output.WriteRawTag(8);
 0255        output.WriteEnum((int) Button);
 256      }
 0257      if (HasHoverText) {
 0258        output.WriteRawTag(18);
 0259        output.WriteString(HoverText);
 260      }
 0261      if (HasMaxDistance) {
 0262        output.WriteRawTag(29);
 0263        output.WriteFloat(MaxDistance);
 264      }
 0265      if (HasShowFeedback) {
 0266        output.WriteRawTag(32);
 0267        output.WriteBool(ShowFeedback);
 268      }
 0269      if (_unknownFields != null) {
 0270        _unknownFields.WriteTo(output);
 271      }
 272    #endif
 0273    }
 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() {
 0304      int size = 0;
 0305      if (HasButton) {
 0306        size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Button);
 307      }
 0308      if (HasHoverText) {
 0309        size += 1 + pb::CodedOutputStream.ComputeStringSize(HoverText);
 310      }
 0311      if (HasMaxDistance) {
 0312        size += 1 + 4;
 313      }
 0314      if (HasShowFeedback) {
 0315        size += 1 + 1;
 316      }
 0317      if (_unknownFields != null) {
 0318        size += _unknownFields.CalculateSize();
 319      }
 0320      return size;
 321    }
 322
 323    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 324    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 325    public void MergeFrom(PBOnPointerUp other) {
 0326      if (other == null) {
 0327        return;
 328      }
 0329      if (other.HasButton) {
 0330        Button = other.Button;
 331      }
 0332      if (other.HasHoverText) {
 0333        HoverText = other.HoverText;
 334      }
 0335      if (other.HasMaxDistance) {
 0336        MaxDistance = other.MaxDistance;
 337      }
 0338      if (other.HasShowFeedback) {
 0339        ShowFeedback = other.ShowFeedback;
 340      }
 0341      _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 0342    }
 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;
 0351      while ((tag = input.ReadTag()) != 0) {
 352        switch(tag) {
 353          default:
 0354            _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
 0355            break;
 356          case 8: {
 0357            Button = (global::DCL.ECSComponents.ActionButton) input.ReadEnum();
 0358            break;
 359          }
 360          case 18: {
 0361            HoverText = input.ReadString();
 0362            break;
 363          }
 364          case 29: {
 0365            MaxDistance = input.ReadFloat();
 0366            break;
 367          }
 368          case 32: {
 0369            ShowFeedback = input.ReadBool();
 370            break;
 371          }
 372        }
 373      }
 374    #endif
 0375    }
 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