< Summary

Class:DCL.ECSComponents.PBPointerEvents
Assembly:Decentraland.Protocol.GeneratedCode
File(s):/tmp/workspace/unity-renderer/unity-renderer/Assets/Scripts/MainScripts/DCL/DecentralandProtocol/PointerEvents.gen.cs
Covered lines:96
Uncovered lines:130
Coverable lines:226
Total lines:854
Line coverage:42.4% (96 of 226)
Covered branches:0
Total branches:0

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity NPath complexity Sequence coverage
PBPointerEvents()0%110100%
get_Descriptor()0%2100%
PBPointerEvents(...)0%2100%
Clone()0%2100%
PBPointerEvents()0%110100%
Equals(...)0%2100%
Equals(...)0%20400%
GetHashCode()0%6200%
ToString()0%2100%
WriteTo(...)0%2.062075%
CalculateSize()0%2.032080%
MergeFrom(...)0%6200%
MergeFrom(...)0%3.583060%
Info()0%110100%
get_Descriptor()0%2100%
Info()0%110100%
Info(...)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%6.296080%
CalculateSize()0%6.176083.33%
MergeFrom(...)0%42600%
MergeFrom(...)0%7.997072.73%
Entry()0%110100%
get_Descriptor()0%2100%
Entry()0%110100%
Entry(...)0%12300%
Clone()0%2100%
Equals(...)0%2100%
Equals(...)0%30500%
GetHashCode()0%20400%
ToString()0%2100%
WriteTo(...)0%4.024088.89%
CalculateSize()0%4.034087.5%
MergeFrom(...)0%30500%
MergeFrom(...)0%5.275077.78%

File(s)

/tmp/workspace/unity-renderer/unity-renderer/Assets/Scripts/MainScripts/DCL/DecentralandProtocol/PointerEvents.gen.cs

#LineLine coverage
 1// <auto-generated>
 2//     Generated by the protocol buffer compiler.  DO NOT EDIT!
 3//     source: decentraland/sdk/components/pointer_events.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 decentraland/sdk/components/pointer_events.proto</summar
 15  public static partial class PointerEventsReflection {
 16
 17    #region Descriptor
 18    /// <summary>File descriptor for decentraland/sdk/components/pointer_events.proto</summary>
 19    public static pbr::FileDescriptor Descriptor {
 20      get { return descriptor; }
 21    }
 22    private static pbr::FileDescriptor descriptor;
 23
 24    static PointerEventsReflection() {
 25      byte[] descriptorData = global::System.Convert.FromBase64String(
 26          string.Concat(
 27            "CjBkZWNlbnRyYWxhbmQvc2RrL2NvbXBvbmVudHMvcG9pbnRlcl9ldmVudHMu",
 28            "cHJvdG8SG2RlY2VudHJhbGFuZC5zZGsuY29tcG9uZW50cxo1ZGVjZW50cmFs",
 29            "YW5kL3Nkay9jb21wb25lbnRzL2NvbW1vbi9pbnB1dF9hY3Rpb24ucHJvdG8i",
 30            "zQMKD1BCUG9pbnRlckV2ZW50cxJKCg5wb2ludGVyX2V2ZW50cxgBIAMoCzIy",
 31            "LmRlY2VudHJhbGFuZC5zZGsuY29tcG9uZW50cy5QQlBvaW50ZXJFdmVudHMu",
 32            "RW50cnka2QEKBEluZm8SRAoGYnV0dG9uGAEgASgOMi8uZGVjZW50cmFsYW5k",
 33            "LnNkay5jb21wb25lbnRzLmNvbW1vbi5JbnB1dEFjdGlvbkgAiAEBEhcKCmhv",
 34            "dmVyX3RleHQYAiABKAlIAYgBARIZCgxtYXhfZGlzdGFuY2UYAyABKAJIAogB",
 35            "ARIaCg1zaG93X2ZlZWRiYWNrGAQgASgISAOIAQFCCQoHX2J1dHRvbkINCgtf",
 36            "aG92ZXJfdGV4dEIPCg1fbWF4X2Rpc3RhbmNlQhAKDl9zaG93X2ZlZWRiYWNr",
 37            "GpEBCgVFbnRyeRJBCgpldmVudF90eXBlGAEgASgOMi0uZGVjZW50cmFsYW5k",
 38            "LnNkay5jb21wb25lbnRzLlBvaW50ZXJFdmVudFR5cGUSRQoKZXZlbnRfaW5m",
 39            "bxgCIAEoCzIxLmRlY2VudHJhbGFuZC5zZGsuY29tcG9uZW50cy5QQlBvaW50",
 40            "ZXJFdmVudHMuSW5mbypWChBQb2ludGVyRXZlbnRUeXBlEgoKBlBFVF9VUBAA",
 41            "EgwKCFBFVF9ET1dOEAESEwoPUEVUX0hPVkVSX0VOVEVSEAISEwoPUEVUX0hP",
 42            "VkVSX0xFQVZFEANCFKoCEURDTC5FQ1NDb21wb25lbnRzYgZwcm90bzM="));
 43      descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
 44          new pbr::FileDescriptor[] { global::DCL.ECSComponents.InputActionReflection.Descriptor, },
 45          new pbr::GeneratedClrTypeInfo(new[] {typeof(global::DCL.ECSComponents.PointerEventType), }, null, new pbr::Gen
 46            new pbr::GeneratedClrTypeInfo(typeof(global::DCL.ECSComponents.PBPointerEvents), global::DCL.ECSComponents.P
 47            new pbr::GeneratedClrTypeInfo(typeof(global::DCL.ECSComponents.PBPointerEvents.Types.Entry), global::DCL.ECS
 48          }));
 49    }
 50    #endregion
 51
 52  }
 53  #region Enums
 54  public enum PointerEventType {
 55    [pbr::OriginalName("PET_UP")] PetUp = 0,
 56    [pbr::OriginalName("PET_DOWN")] PetDown = 1,
 57    [pbr::OriginalName("PET_HOVER_ENTER")] PetHoverEnter = 2,
 58    [pbr::OriginalName("PET_HOVER_LEAVE")] PetHoverLeave = 3,
 59  }
 60
 61  #endregion
 62
 63  #region Messages
 64  public sealed partial class PBPointerEvents : pb::IMessage<PBPointerEvents>
 65  #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 66      , pb::IBufferMessage
 67  #endif
 68  {
 169    private static readonly pb::MessageParser<PBPointerEvents> _parser = new pb::MessageParser<PBPointerEvents>(() => ne
 70    private pb::UnknownFieldSet _unknownFields;
 71    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 72    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 073    public static pb::MessageParser<PBPointerEvents> Parser { get { return _parser; } }
 74
 75    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 76    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 77    public static pbr::MessageDescriptor Descriptor {
 078      get { return global::DCL.ECSComponents.PointerEventsReflection.Descriptor.MessageTypes[0]; }
 79    }
 80
 81    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 82    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 83    pbr::MessageDescriptor pb::IMessage.Descriptor {
 084      get { return Descriptor; }
 85    }
 86
 87    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 88    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 1289    public PBPointerEvents() {
 90      OnConstruction();
 1291    }
 92
 93    partial void OnConstruction();
 94
 95    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 96    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 097    public PBPointerEvents(PBPointerEvents other) : this() {
 098      pointerEvents_ = other.pointerEvents_.Clone();
 099      _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
 0100    }
 101
 102    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 103    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 104    public PBPointerEvents Clone() {
 0105      return new PBPointerEvents(this);
 106    }
 107
 108    /// <summary>Field number for the "pointer_events" field.</summary>
 109    public const int PointerEventsFieldNumber = 1;
 1110    private static readonly pb::FieldCodec<global::DCL.ECSComponents.PBPointerEvents.Types.Entry> _repeated_pointerEvent
 111        = pb::FieldCodec.ForMessage(10, global::DCL.ECSComponents.PBPointerEvents.Types.Entry.Parser);
 12112    private readonly pbc::RepeatedField<global::DCL.ECSComponents.PBPointerEvents.Types.Entry> pointerEvents_ = new pbc:
 113    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 114    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 115    public pbc::RepeatedField<global::DCL.ECSComponents.PBPointerEvents.Types.Entry> PointerEvents {
 15116      get { return pointerEvents_; }
 117    }
 118
 119    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 120    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 121    public override bool Equals(object other) {
 0122      return Equals(other as PBPointerEvents);
 123    }
 124
 125    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 126    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 127    public bool Equals(PBPointerEvents other) {
 0128      if (ReferenceEquals(other, null)) {
 0129        return false;
 130      }
 0131      if (ReferenceEquals(other, this)) {
 0132        return true;
 133      }
 0134      if(!pointerEvents_.Equals(other.pointerEvents_)) return false;
 0135      return Equals(_unknownFields, other._unknownFields);
 136    }
 137
 138    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 139    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 140    public override int GetHashCode() {
 0141      int hash = 1;
 0142      hash ^= pointerEvents_.GetHashCode();
 0143      if (_unknownFields != null) {
 0144        hash ^= _unknownFields.GetHashCode();
 145      }
 0146      return hash;
 147    }
 148
 149    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 150    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 151    public override string ToString() {
 0152      return pb::JsonFormatter.ToDiagnosticString(this);
 153    }
 154
 155    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 156    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 157    public void WriteTo(pb::CodedOutputStream output) {
 158    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 159      output.WriteRawMessage(this);
 160    #else
 6161      pointerEvents_.WriteTo(output, _repeated_pointerEvents_codec);
 6162      if (_unknownFields != null) {
 0163        _unknownFields.WriteTo(output);
 164      }
 165    #endif
 6166    }
 167
 168    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 169    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 170    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 171    void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
 172      pointerEvents_.WriteTo(ref output, _repeated_pointerEvents_codec);
 173      if (_unknownFields != null) {
 174        _unknownFields.WriteTo(ref output);
 175      }
 176    }
 177    #endif
 178
 179    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 180    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 181    public int CalculateSize() {
 6182      int size = 0;
 6183      size += pointerEvents_.CalculateSize(_repeated_pointerEvents_codec);
 6184      if (_unknownFields != null) {
 0185        size += _unknownFields.CalculateSize();
 186      }
 6187      return size;
 188    }
 189
 190    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 191    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 192    public void MergeFrom(PBPointerEvents other) {
 0193      if (other == null) {
 0194        return;
 195      }
 0196      pointerEvents_.Add(other.pointerEvents_);
 0197      _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 0198    }
 199
 200    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 201    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 202    public void MergeFrom(pb::CodedInputStream input) {
 203    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 204      input.ReadRawMessage(this);
 205    #else
 206      uint tag;
 12207      while ((tag = input.ReadTag()) != 0) {
 208        switch(tag) {
 209          default:
 0210            _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
 0211            break;
 212          case 10: {
 6213            pointerEvents_.AddEntriesFrom(input, _repeated_pointerEvents_codec);
 214            break;
 215          }
 216        }
 217      }
 218    #endif
 6219    }
 220
 221    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 222    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 223    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 224    void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
 225      uint tag;
 226      while ((tag = input.ReadTag()) != 0) {
 227        switch(tag) {
 228          default:
 229            _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
 230            break;
 231          case 10: {
 232            pointerEvents_.AddEntriesFrom(ref input, _repeated_pointerEvents_codec);
 233            break;
 234          }
 235        }
 236      }
 237    }
 238    #endif
 239
 240    #region Nested types
 241    /// <summary>Container for nested types declared in the PBPointerEvents message type.</summary>
 242    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 243    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 244    public static partial class Types {
 245      public sealed partial class Info : pb::IMessage<Info>
 246      #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 247          , pb::IBufferMessage
 248      #endif
 249      {
 1250        private static readonly pb::MessageParser<Info> _parser = new pb::MessageParser<Info>(() => new Info());
 251        private pb::UnknownFieldSet _unknownFields;
 252        private int _hasBits0;
 253        [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 254        [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 0255        public static pb::MessageParser<Info> Parser { get { return _parser; } }
 256
 257        [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 258        [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 259        public static pbr::MessageDescriptor Descriptor {
 0260          get { return global::DCL.ECSComponents.PBPointerEvents.Descriptor.NestedTypes[0]; }
 261        }
 262
 263        [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 264        [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 265        pbr::MessageDescriptor pb::IMessage.Descriptor {
 0266          get { return Descriptor; }
 267        }
 268
 269        [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 270        [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 16271        public Info() {
 272          OnConstruction();
 16273        }
 274
 275        partial void OnConstruction();
 276
 277        [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 278        [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 0279        public Info(Info other) : this() {
 0280          _hasBits0 = other._hasBits0;
 0281          button_ = other.button_;
 0282          hoverText_ = other.hoverText_;
 0283          maxDistance_ = other.maxDistance_;
 0284          showFeedback_ = other.showFeedback_;
 0285          _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
 0286        }
 287
 288        [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 289        [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 290        public Info Clone() {
 0291          return new Info(this);
 292        }
 293
 294        /// <summary>Field number for the "button" field.</summary>
 295        public const int ButtonFieldNumber = 1;
 296        private global::DCL.ECSComponents.InputAction button_;
 297        /// <summary>
 298        /// default=InputAction.ANY
 299        /// </summary>
 300        [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 301        [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 302        public global::DCL.ECSComponents.InputAction Button {
 92303          get { if ((_hasBits0 & 1) != 0) { return button_; } else { return global::DCL.ECSComponents.InputAction.IaPoin
 304          set {
 16305            _hasBits0 |= 1;
 16306            button_ = value;
 16307          }
 308        }
 309        /// <summary>Gets whether the "button" field is set</summary>
 310        [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 311        [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 312        public bool HasButton {
 46313          get { return (_hasBits0 & 1) != 0; }
 314        }
 315        /// <summary>Clears the value of the "button" field</summary>
 316        [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 317        [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 318        public void ClearButton() {
 0319          _hasBits0 &= ~1;
 0320        }
 321
 322        /// <summary>Field number for the "hover_text" field.</summary>
 323        public const int HoverTextFieldNumber = 2;
 324        private string hoverText_;
 325        /// <summary>
 326        /// default='Interact'
 327        /// </summary>
 328        [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 329        [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 330        public string HoverText {
 37331          get { return hoverText_ ?? ""; }
 332          set {
 16333            hoverText_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
 16334          }
 335        }
 336        /// <summary>Gets whether the "hover_text" field is set</summary>
 337        [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 338        [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 339        public bool HasHoverText {
 37340          get { return hoverText_ != null; }
 341        }
 342        /// <summary>Clears the value of the "hover_text" field</summary>
 343        [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 344        [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 345        public void ClearHoverText() {
 0346          hoverText_ = null;
 0347        }
 348
 349        /// <summary>Field number for the "max_distance" field.</summary>
 350        public const int MaxDistanceFieldNumber = 3;
 351        private float maxDistance_;
 352        /// <summary>
 353        /// default=10
 354        /// </summary>
 355        [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 356        [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 357        public float MaxDistance {
 10358          get { if ((_hasBits0 & 2) != 0) { return maxDistance_; } else { return 0F; } }
 359          set {
 4360            _hasBits0 |= 2;
 4361            maxDistance_ = value;
 4362          }
 363        }
 364        /// <summary>Gets whether the "max_distance" field is set</summary>
 365        [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 366        [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 367        public bool HasMaxDistance {
 43368          get { return (_hasBits0 & 2) != 0; }
 369        }
 370        /// <summary>Clears the value of the "max_distance" field</summary>
 371        [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 372        [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 373        public void ClearMaxDistance() {
 0374          _hasBits0 &= ~2;
 0375        }
 376
 377        /// <summary>Field number for the "show_feedback" field.</summary>
 378        public const int ShowFeedbackFieldNumber = 4;
 379        private bool showFeedback_;
 380        /// <summary>
 381        /// default=true
 382        /// </summary>
 383        [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 384        [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 385        public bool ShowFeedback {
 0386          get { if ((_hasBits0 & 4) != 0) { return showFeedback_; } else { return false; } }
 387          set {
 0388            _hasBits0 |= 4;
 0389            showFeedback_ = value;
 0390          }
 391        }
 392        /// <summary>Gets whether the "show_feedback" field is set</summary>
 393        [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 394        [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 395        public bool HasShowFeedback {
 43396          get { return (_hasBits0 & 4) != 0; }
 397        }
 398        /// <summary>Clears the value of the "show_feedback" field</summary>
 399        [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 400        [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 401        public void ClearShowFeedback() {
 0402          _hasBits0 &= ~4;
 0403        }
 404
 405        [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 406        [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 407        public override bool Equals(object other) {
 0408          return Equals(other as Info);
 409        }
 410
 411        [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 412        [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 413        public bool Equals(Info other) {
 0414          if (ReferenceEquals(other, null)) {
 0415            return false;
 416          }
 0417          if (ReferenceEquals(other, this)) {
 0418            return true;
 419          }
 0420          if (Button != other.Button) return false;
 0421          if (HoverText != other.HoverText) return false;
 0422          if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(MaxDistance, other.MaxDistance)) retu
 0423          if (ShowFeedback != other.ShowFeedback) return false;
 0424          return Equals(_unknownFields, other._unknownFields);
 425        }
 426
 427        [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 428        [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 429        public override int GetHashCode() {
 0430          int hash = 1;
 0431          if (HasButton) hash ^= Button.GetHashCode();
 0432          if (HasHoverText) hash ^= HoverText.GetHashCode();
 0433          if (HasMaxDistance) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(MaxDistan
 0434          if (HasShowFeedback) hash ^= ShowFeedback.GetHashCode();
 0435          if (_unknownFields != null) {
 0436            hash ^= _unknownFields.GetHashCode();
 437          }
 0438          return hash;
 439        }
 440
 441        [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 442        [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 443        public override string ToString() {
 0444          return pb::JsonFormatter.ToDiagnosticString(this);
 445        }
 446
 447        [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 448        [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 449        public void WriteTo(pb::CodedOutputStream output) {
 450        #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 451          output.WriteRawMessage(this);
 452        #else
 8453          if (HasButton) {
 8454            output.WriteRawTag(8);
 8455            output.WriteEnum((int) Button);
 456          }
 8457          if (HasHoverText) {
 8458            output.WriteRawTag(18);
 8459            output.WriteString(HoverText);
 460          }
 8461          if (HasMaxDistance) {
 2462            output.WriteRawTag(29);
 2463            output.WriteFloat(MaxDistance);
 464          }
 8465          if (HasShowFeedback) {
 0466            output.WriteRawTag(32);
 0467            output.WriteBool(ShowFeedback);
 468          }
 8469          if (_unknownFields != null) {
 0470            _unknownFields.WriteTo(output);
 471          }
 472        #endif
 8473        }
 474
 475        #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 476        [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 477        [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 478        void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
 479          if (HasButton) {
 480            output.WriteRawTag(8);
 481            output.WriteEnum((int) Button);
 482          }
 483          if (HasHoverText) {
 484            output.WriteRawTag(18);
 485            output.WriteString(HoverText);
 486          }
 487          if (HasMaxDistance) {
 488            output.WriteRawTag(29);
 489            output.WriteFloat(MaxDistance);
 490          }
 491          if (HasShowFeedback) {
 492            output.WriteRawTag(32);
 493            output.WriteBool(ShowFeedback);
 494          }
 495          if (_unknownFields != null) {
 496            _unknownFields.WriteTo(ref output);
 497          }
 498        }
 499        #endif
 500
 501        [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 502        [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 503        public int CalculateSize() {
 24504          int size = 0;
 24505          if (HasButton) {
 24506            size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Button);
 507          }
 24508          if (HasHoverText) {
 24509            size += 1 + pb::CodedOutputStream.ComputeStringSize(HoverText);
 510          }
 24511          if (HasMaxDistance) {
 6512            size += 1 + 4;
 513          }
 24514          if (HasShowFeedback) {
 0515            size += 1 + 1;
 516          }
 24517          if (_unknownFields != null) {
 0518            size += _unknownFields.CalculateSize();
 519          }
 24520          return size;
 521        }
 522
 523        [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 524        [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 525        public void MergeFrom(Info other) {
 0526          if (other == null) {
 0527            return;
 528          }
 0529          if (other.HasButton) {
 0530            Button = other.Button;
 531          }
 0532          if (other.HasHoverText) {
 0533            HoverText = other.HoverText;
 534          }
 0535          if (other.HasMaxDistance) {
 0536            MaxDistance = other.MaxDistance;
 537          }
 0538          if (other.HasShowFeedback) {
 0539            ShowFeedback = other.ShowFeedback;
 540          }
 0541          _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 0542        }
 543
 544        [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 545        [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 546        public void MergeFrom(pb::CodedInputStream input) {
 547        #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 548          input.ReadRawMessage(this);
 549        #else
 550          uint tag;
 26551          while ((tag = input.ReadTag()) != 0) {
 552            switch(tag) {
 553              default:
 0554                _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
 0555                break;
 556              case 8: {
 8557                Button = (global::DCL.ECSComponents.InputAction) input.ReadEnum();
 8558                break;
 559              }
 560              case 18: {
 8561                HoverText = input.ReadString();
 8562                break;
 563              }
 564              case 29: {
 2565                MaxDistance = input.ReadFloat();
 2566                break;
 567              }
 568              case 32: {
 0569                ShowFeedback = input.ReadBool();
 570                break;
 571              }
 572            }
 573          }
 574        #endif
 8575        }
 576
 577        #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 578        [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 579        [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 580        void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
 581          uint tag;
 582          while ((tag = input.ReadTag()) != 0) {
 583            switch(tag) {
 584              default:
 585                _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
 586                break;
 587              case 8: {
 588                Button = (global::DCL.ECSComponents.InputAction) input.ReadEnum();
 589                break;
 590              }
 591              case 18: {
 592                HoverText = input.ReadString();
 593                break;
 594              }
 595              case 29: {
 596                MaxDistance = input.ReadFloat();
 597                break;
 598              }
 599              case 32: {
 600                ShowFeedback = input.ReadBool();
 601                break;
 602              }
 603            }
 604          }
 605        }
 606        #endif
 607
 608      }
 609
 610      public sealed partial class Entry : pb::IMessage<Entry>
 611      #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 612          , pb::IBufferMessage
 613      #endif
 614      {
 9615        private static readonly pb::MessageParser<Entry> _parser = new pb::MessageParser<Entry>(() => new Entry());
 616        private pb::UnknownFieldSet _unknownFields;
 617        [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 618        [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 1619        public static pb::MessageParser<Entry> Parser { get { return _parser; } }
 620
 621        [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 622        [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 623        public static pbr::MessageDescriptor Descriptor {
 0624          get { return global::DCL.ECSComponents.PBPointerEvents.Descriptor.NestedTypes[1]; }
 625        }
 626
 627        [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 628        [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 629        pbr::MessageDescriptor pb::IMessage.Descriptor {
 0630          get { return Descriptor; }
 631        }
 632
 633        [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 634        [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 16635        public Entry() {
 636          OnConstruction();
 16637        }
 638
 639        partial void OnConstruction();
 640
 641        [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 642        [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 0643        public Entry(Entry other) : this() {
 0644          eventType_ = other.eventType_;
 0645          eventInfo_ = other.eventInfo_ != null ? other.eventInfo_.Clone() : null;
 0646          _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
 0647        }
 648
 649        [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 650        [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 651        public Entry Clone() {
 0652          return new Entry(this);
 653        }
 654
 655        /// <summary>Field number for the "event_type" field.</summary>
 656        public const int EventTypeFieldNumber = 1;
 657        private global::DCL.ECSComponents.PointerEventType eventType_ = global::DCL.ECSComponents.PointerEventType.PetUp
 658        [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 659        [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 660        public global::DCL.ECSComponents.PointerEventType EventType {
 54661          get { return eventType_; }
 662          set {
 13663            eventType_ = value;
 13664          }
 665        }
 666
 667        /// <summary>Field number for the "event_info" field.</summary>
 668        public const int EventInfoFieldNumber = 2;
 669        private global::DCL.ECSComponents.PBPointerEvents.Types.Info eventInfo_;
 670        [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 671        [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 672        public global::DCL.ECSComponents.PBPointerEvents.Types.Info EventInfo {
 73673          get { return eventInfo_; }
 674          set {
 16675            eventInfo_ = value;
 16676          }
 677        }
 678
 679        [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 680        [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 681        public override bool Equals(object other) {
 0682          return Equals(other as Entry);
 683        }
 684
 685        [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 686        [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 687        public bool Equals(Entry other) {
 0688          if (ReferenceEquals(other, null)) {
 0689            return false;
 690          }
 0691          if (ReferenceEquals(other, this)) {
 0692            return true;
 693          }
 0694          if (EventType != other.EventType) return false;
 0695          if (!object.Equals(EventInfo, other.EventInfo)) return false;
 0696          return Equals(_unknownFields, other._unknownFields);
 697        }
 698
 699        [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 700        [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 701        public override int GetHashCode() {
 0702          int hash = 1;
 0703          if (EventType != global::DCL.ECSComponents.PointerEventType.PetUp) hash ^= EventType.GetHashCode();
 0704          if (eventInfo_ != null) hash ^= EventInfo.GetHashCode();
 0705          if (_unknownFields != null) {
 0706            hash ^= _unknownFields.GetHashCode();
 707          }
 0708          return hash;
 709        }
 710
 711        [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 712        [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 713        public override string ToString() {
 0714          return pb::JsonFormatter.ToDiagnosticString(this);
 715        }
 716
 717        [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 718        [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 719        public void WriteTo(pb::CodedOutputStream output) {
 720        #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 721          output.WriteRawMessage(this);
 722        #else
 8723          if (EventType != global::DCL.ECSComponents.PointerEventType.PetUp) {
 5724            output.WriteRawTag(8);
 5725            output.WriteEnum((int) EventType);
 726          }
 8727          if (eventInfo_ != null) {
 8728            output.WriteRawTag(18);
 8729            output.WriteMessage(EventInfo);
 730          }
 8731          if (_unknownFields != null) {
 0732            _unknownFields.WriteTo(output);
 733          }
 734        #endif
 8735        }
 736
 737        #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 738        [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 739        [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 740        void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
 741          if (EventType != global::DCL.ECSComponents.PointerEventType.PetUp) {
 742            output.WriteRawTag(8);
 743            output.WriteEnum((int) EventType);
 744          }
 745          if (eventInfo_ != null) {
 746            output.WriteRawTag(18);
 747            output.WriteMessage(EventInfo);
 748          }
 749          if (_unknownFields != null) {
 750            _unknownFields.WriteTo(ref output);
 751          }
 752        }
 753        #endif
 754
 755        [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 756        [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 757        public int CalculateSize() {
 16758          int size = 0;
 16759          if (EventType != global::DCL.ECSComponents.PointerEventType.PetUp) {
 10760            size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) EventType);
 761          }
 16762          if (eventInfo_ != null) {
 16763            size += 1 + pb::CodedOutputStream.ComputeMessageSize(EventInfo);
 764          }
 16765          if (_unknownFields != null) {
 0766            size += _unknownFields.CalculateSize();
 767          }
 16768          return size;
 769        }
 770
 771        [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 772        [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 773        public void MergeFrom(Entry other) {
 0774          if (other == null) {
 0775            return;
 776          }
 0777          if (other.EventType != global::DCL.ECSComponents.PointerEventType.PetUp) {
 0778            EventType = other.EventType;
 779          }
 0780          if (other.eventInfo_ != null) {
 0781            if (eventInfo_ == null) {
 0782              EventInfo = new global::DCL.ECSComponents.PBPointerEvents.Types.Info();
 783            }
 0784            EventInfo.MergeFrom(other.EventInfo);
 785          }
 0786          _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 0787        }
 788
 789        [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 790        [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 791        public void MergeFrom(pb::CodedInputStream input) {
 792        #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 793          input.ReadRawMessage(this);
 794        #else
 795          uint tag;
 21796          while ((tag = input.ReadTag()) != 0) {
 797            switch(tag) {
 798              default:
 0799                _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
 0800                break;
 801              case 8: {
 5802                EventType = (global::DCL.ECSComponents.PointerEventType) input.ReadEnum();
 5803                break;
 804              }
 805              case 18: {
 8806                if (eventInfo_ == null) {
 8807                  EventInfo = new global::DCL.ECSComponents.PBPointerEvents.Types.Info();
 808                }
 8809                input.ReadMessage(EventInfo);
 810                break;
 811              }
 812            }
 813          }
 814        #endif
 8815        }
 816
 817        #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 818        [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 819        [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 820        void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
 821          uint tag;
 822          while ((tag = input.ReadTag()) != 0) {
 823            switch(tag) {
 824              default:
 825                _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
 826                break;
 827              case 8: {
 828                EventType = (global::DCL.ECSComponents.PointerEventType) input.ReadEnum();
 829                break;
 830              }
 831              case 18: {
 832                if (eventInfo_ == null) {
 833                  EventInfo = new global::DCL.ECSComponents.PBPointerEvents.Types.Info();
 834                }
 835                input.ReadMessage(EventInfo);
 836                break;
 837              }
 838            }
 839          }
 840        }
 841        #endif
 842
 843      }
 844
 845    }
 846    #endregion
 847
 848  }
 849
 850  #endregion
 851
 852}
 853
 854#endregion Designer generated code

Methods/Properties

PBPointerEvents()
Parser()
Descriptor()
get_Descriptor()
PBPointerEvents()
PBPointerEvents(DCL.ECSComponents.PBPointerEvents)
Clone()
PointerEvents()
Equals(System.Object)
Equals(DCL.ECSComponents.PBPointerEvents)
GetHashCode()
ToString()
WriteTo(Google.Protobuf.CodedOutputStream)
CalculateSize()
MergeFrom(DCL.ECSComponents.PBPointerEvents)
MergeFrom(Google.Protobuf.CodedInputStream)
Info()
Parser()
Descriptor()
get_Descriptor()
Info()
Info(DCL.ECSComponents.PBPointerEvents/Types/Info)
Clone()
Button()
Button(DCL.ECSComponents.InputAction)
HasButton()
ClearButton()
HoverText()
HoverText(System.String)
HasHoverText()
ClearHoverText()
MaxDistance()
MaxDistance(System.Single)
HasMaxDistance()
ClearMaxDistance()
ShowFeedback()
ShowFeedback(System.Boolean)
HasShowFeedback()
ClearShowFeedback()
Equals(System.Object)
Equals(DCL.ECSComponents.PBPointerEvents/Types/Info)
GetHashCode()
ToString()
WriteTo(Google.Protobuf.CodedOutputStream)
CalculateSize()
MergeFrom(DCL.ECSComponents.PBPointerEvents/Types/Info)
MergeFrom(Google.Protobuf.CodedInputStream)
Entry()
Parser()
Descriptor()
get_Descriptor()
Entry()
Entry(DCL.ECSComponents.PBPointerEvents/Types/Entry)
Clone()
EventType()
EventType(DCL.ECSComponents.PointerEventType)
EventInfo()
EventInfo(DCL.ECSComponents.PBPointerEvents/Types/Info)
Equals(System.Object)
Equals(DCL.ECSComponents.PBPointerEvents/Types/Entry)
GetHashCode()
ToString()
WriteTo(Google.Protobuf.CodedOutputStream)
CalculateSize()
MergeFrom(DCL.ECSComponents.PBPointerEvents/Types/Entry)
MergeFrom(Google.Protobuf.CodedInputStream)