< Summary

Class:DCL.ECSComponents.PointerEventsResultReflection
Assembly:Decentraland.Protocol.GeneratedCode
File(s):/tmp/workspace/unity-renderer/unity-renderer/Assets/Scripts/MainScripts/DCL/DecentralandProtocol/PointerEventsResult.gen.cs
Covered lines:0
Uncovered lines:4
Coverable lines:4
Total lines:621
Line coverage:0% (0 of 4)
Covered branches:0
Total branches:0

Metrics

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

File(s)

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

#LineLine coverage
 1// <auto-generated>
 2//     Generated by the protocol buffer compiler.  DO NOT EDIT!
 3//     source: decentraland/sdk/components/pointer_events_result.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_result.proto<
 15  public static partial class PointerEventsResultReflection {
 16
 17    #region Descriptor
 18    /// <summary>File descriptor for decentraland/sdk/components/pointer_events_result.proto</summary>
 19    public static pbr::FileDescriptor Descriptor {
 020      get { return descriptor; }
 21    }
 22    private static pbr::FileDescriptor descriptor;
 23
 24    static PointerEventsResultReflection() {
 025      byte[] descriptorData = global::System.Convert.FromBase64String(
 26          string.Concat(
 27            "CjdkZWNlbnRyYWxhbmQvc2RrL2NvbXBvbmVudHMvcG9pbnRlcl9ldmVudHNf",
 28            "cmVzdWx0LnByb3RvEhtkZWNlbnRyYWxhbmQuc2RrLmNvbXBvbmVudHMaNWRl",
 29            "Y2VudHJhbGFuZC9zZGsvY29tcG9uZW50cy9jb21tb24vaW5wdXRfYWN0aW9u",
 30            "LnByb3RvGjBkZWNlbnRyYWxhbmQvc2RrL2NvbXBvbmVudHMvcG9pbnRlcl9l",
 31            "dmVudHMucHJvdG8aMGRlY2VudHJhbGFuZC9zZGsvY29tcG9uZW50cy9yYXlj",
 32            "YXN0X3Jlc3VsdC5wcm90byLnAgoVUEJQb2ludGVyRXZlbnRzUmVzdWx0ElMK",
 33            "CGNvbW1hbmRzGAEgAygLMkEuZGVjZW50cmFsYW5kLnNkay5jb21wb25lbnRz",
 34            "LlBCUG9pbnRlckV2ZW50c1Jlc3VsdC5Qb2ludGVyQ29tbWFuZBr4AQoOUG9p",
 35            "bnRlckNvbW1hbmQSPwoGYnV0dG9uGAEgASgOMi8uZGVjZW50cmFsYW5kLnNk",
 36            "ay5jb21wb25lbnRzLmNvbW1vbi5JbnB1dEFjdGlvbhI0CgNoaXQYAiABKAsy",
 37            "Jy5kZWNlbnRyYWxhbmQuc2RrLmNvbXBvbmVudHMuUmF5Y2FzdEhpdBI8CgVz",
 38            "dGF0ZRgEIAEoDjItLmRlY2VudHJhbGFuZC5zZGsuY29tcG9uZW50cy5Qb2lu",
 39            "dGVyRXZlbnRUeXBlEhEKCXRpbWVzdGFtcBgFIAEoBRITCgZhbmFsb2cYBiAB",
 40            "KAJIAIgBAUIJCgdfYW5hbG9nQhSqAhFEQ0wuRUNTQ29tcG9uZW50c2IGcHJv",
 41            "dG8z"));
 042      descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
 43          new pbr::FileDescriptor[] { global::DCL.ECSComponents.InputActionReflection.Descriptor, global::DCL.ECSCompone
 44          new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] {
 45            new pbr::GeneratedClrTypeInfo(typeof(global::DCL.ECSComponents.PBPointerEventsResult), global::DCL.ECSCompon
 46          }));
 047    }
 48    #endregion
 49
 50  }
 51  #region Messages
 52  /// <summary>
 53  /// the renderer will set this component to the root entity once per frame with all the events
 54  /// </summary>
 55  public sealed partial class PBPointerEventsResult : pb::IMessage<PBPointerEventsResult>
 56  #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 57      , pb::IBufferMessage
 58  #endif
 59  {
 60    private static readonly pb::MessageParser<PBPointerEventsResult> _parser = new pb::MessageParser<PBPointerEventsResu
 61    private pb::UnknownFieldSet _unknownFields;
 62    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 63    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 64    public static pb::MessageParser<PBPointerEventsResult> Parser { get { return _parser; } }
 65
 66    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 67    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 68    public static pbr::MessageDescriptor Descriptor {
 69      get { return global::DCL.ECSComponents.PointerEventsResultReflection.Descriptor.MessageTypes[0]; }
 70    }
 71
 72    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 73    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 74    pbr::MessageDescriptor pb::IMessage.Descriptor {
 75      get { return Descriptor; }
 76    }
 77
 78    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 79    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 80    public PBPointerEventsResult() {
 81      OnConstruction();
 82    }
 83
 84    partial void OnConstruction();
 85
 86    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 87    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 88    public PBPointerEventsResult(PBPointerEventsResult other) : this() {
 89      commands_ = other.commands_.Clone();
 90      _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
 91    }
 92
 93    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 94    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 95    public PBPointerEventsResult Clone() {
 96      return new PBPointerEventsResult(this);
 97    }
 98
 99    /// <summary>Field number for the "commands" field.</summary>
 100    public const int CommandsFieldNumber = 1;
 101    private static readonly pb::FieldCodec<global::DCL.ECSComponents.PBPointerEventsResult.Types.PointerCommand> _repeat
 102        = pb::FieldCodec.ForMessage(10, global::DCL.ECSComponents.PBPointerEventsResult.Types.PointerCommand.Parser);
 103    private readonly pbc::RepeatedField<global::DCL.ECSComponents.PBPointerEventsResult.Types.PointerCommand> commands_ 
 104    /// <summary>
 105    /// a list of the last N pointer commands (from the engine)
 106    /// </summary>
 107    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 108    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 109    public pbc::RepeatedField<global::DCL.ECSComponents.PBPointerEventsResult.Types.PointerCommand> Commands {
 110      get { return commands_; }
 111    }
 112
 113    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 114    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 115    public override bool Equals(object other) {
 116      return Equals(other as PBPointerEventsResult);
 117    }
 118
 119    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 120    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 121    public bool Equals(PBPointerEventsResult other) {
 122      if (ReferenceEquals(other, null)) {
 123        return false;
 124      }
 125      if (ReferenceEquals(other, this)) {
 126        return true;
 127      }
 128      if(!commands_.Equals(other.commands_)) return false;
 129      return Equals(_unknownFields, other._unknownFields);
 130    }
 131
 132    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 133    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 134    public override int GetHashCode() {
 135      int hash = 1;
 136      hash ^= commands_.GetHashCode();
 137      if (_unknownFields != null) {
 138        hash ^= _unknownFields.GetHashCode();
 139      }
 140      return hash;
 141    }
 142
 143    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 144    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 145    public override string ToString() {
 146      return pb::JsonFormatter.ToDiagnosticString(this);
 147    }
 148
 149    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 150    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 151    public void WriteTo(pb::CodedOutputStream output) {
 152    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 153      output.WriteRawMessage(this);
 154    #else
 155      commands_.WriteTo(output, _repeated_commands_codec);
 156      if (_unknownFields != null) {
 157        _unknownFields.WriteTo(output);
 158      }
 159    #endif
 160    }
 161
 162    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 163    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 164    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 165    void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
 166      commands_.WriteTo(ref output, _repeated_commands_codec);
 167      if (_unknownFields != null) {
 168        _unknownFields.WriteTo(ref output);
 169      }
 170    }
 171    #endif
 172
 173    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 174    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 175    public int CalculateSize() {
 176      int size = 0;
 177      size += commands_.CalculateSize(_repeated_commands_codec);
 178      if (_unknownFields != null) {
 179        size += _unknownFields.CalculateSize();
 180      }
 181      return size;
 182    }
 183
 184    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 185    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 186    public void MergeFrom(PBPointerEventsResult other) {
 187      if (other == null) {
 188        return;
 189      }
 190      commands_.Add(other.commands_);
 191      _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 192    }
 193
 194    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 195    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 196    public void MergeFrom(pb::CodedInputStream input) {
 197    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 198      input.ReadRawMessage(this);
 199    #else
 200      uint tag;
 201      while ((tag = input.ReadTag()) != 0) {
 202        switch(tag) {
 203          default:
 204            _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
 205            break;
 206          case 10: {
 207            commands_.AddEntriesFrom(input, _repeated_commands_codec);
 208            break;
 209          }
 210        }
 211      }
 212    #endif
 213    }
 214
 215    #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 216    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 217    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 218    void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
 219      uint tag;
 220      while ((tag = input.ReadTag()) != 0) {
 221        switch(tag) {
 222          default:
 223            _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
 224            break;
 225          case 10: {
 226            commands_.AddEntriesFrom(ref input, _repeated_commands_codec);
 227            break;
 228          }
 229        }
 230      }
 231    }
 232    #endif
 233
 234    #region Nested types
 235    /// <summary>Container for nested types declared in the PBPointerEventsResult message type.</summary>
 236    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 237    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 238    public static partial class Types {
 239      /// <summary>
 240      /// this message represents a pointer event, used both for UP and DOWN actions
 241      /// </summary>
 242      public sealed partial class PointerCommand : pb::IMessage<PointerCommand>
 243      #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 244          , pb::IBufferMessage
 245      #endif
 246      {
 247        private static readonly pb::MessageParser<PointerCommand> _parser = new pb::MessageParser<PointerCommand>(() => 
 248        private pb::UnknownFieldSet _unknownFields;
 249        private int _hasBits0;
 250        [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 251        [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 252        public static pb::MessageParser<PointerCommand> Parser { get { return _parser; } }
 253
 254        [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 255        [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 256        public static pbr::MessageDescriptor Descriptor {
 257          get { return global::DCL.ECSComponents.PBPointerEventsResult.Descriptor.NestedTypes[0]; }
 258        }
 259
 260        [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 261        [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 262        pbr::MessageDescriptor pb::IMessage.Descriptor {
 263          get { return Descriptor; }
 264        }
 265
 266        [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 267        [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 268        public PointerCommand() {
 269          OnConstruction();
 270        }
 271
 272        partial void OnConstruction();
 273
 274        [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 275        [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 276        public PointerCommand(PointerCommand other) : this() {
 277          _hasBits0 = other._hasBits0;
 278          button_ = other.button_;
 279          hit_ = other.hit_ != null ? other.hit_.Clone() : null;
 280          state_ = other.state_;
 281          timestamp_ = other.timestamp_;
 282          analog_ = other.analog_;
 283          _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
 284        }
 285
 286        [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 287        [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 288        public PointerCommand Clone() {
 289          return new PointerCommand(this);
 290        }
 291
 292        /// <summary>Field number for the "button" field.</summary>
 293        public const int ButtonFieldNumber = 1;
 294        private global::DCL.ECSComponents.InputAction button_ = global::DCL.ECSComponents.InputAction.IaPointer;
 295        /// <summary>
 296        /// identifier of the input
 297        /// </summary>
 298        [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 299        [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 300        public global::DCL.ECSComponents.InputAction Button {
 301          get { return button_; }
 302          set {
 303            button_ = value;
 304          }
 305        }
 306
 307        /// <summary>Field number for the "hit" field.</summary>
 308        public const int HitFieldNumber = 2;
 309        private global::DCL.ECSComponents.RaycastHit hit_;
 310        [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 311        [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 312        public global::DCL.ECSComponents.RaycastHit Hit {
 313          get { return hit_; }
 314          set {
 315            hit_ = value;
 316          }
 317        }
 318
 319        /// <summary>Field number for the "state" field.</summary>
 320        public const int StateFieldNumber = 4;
 321        private global::DCL.ECSComponents.PointerEventType state_ = global::DCL.ECSComponents.PointerEventType.PetUp;
 322        [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 323        [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 324        public global::DCL.ECSComponents.PointerEventType State {
 325          get { return state_; }
 326          set {
 327            state_ = value;
 328          }
 329        }
 330
 331        /// <summary>Field number for the "timestamp" field.</summary>
 332        public const int TimestampFieldNumber = 5;
 333        private int timestamp_;
 334        /// <summary>
 335        /// could be a Lamport timestamp
 336        /// </summary>
 337        [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 338        [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 339        public int Timestamp {
 340          get { return timestamp_; }
 341          set {
 342            timestamp_ = value;
 343          }
 344        }
 345
 346        /// <summary>Field number for the "analog" field.</summary>
 347        public const int AnalogFieldNumber = 6;
 348        private float analog_;
 349        /// <summary>
 350        /// if the input is analog then we store it here
 351        /// </summary>
 352        [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 353        [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 354        public float Analog {
 355          get { if ((_hasBits0 & 1) != 0) { return analog_; } else { return 0F; } }
 356          set {
 357            _hasBits0 |= 1;
 358            analog_ = value;
 359          }
 360        }
 361        /// <summary>Gets whether the "analog" field is set</summary>
 362        [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 363        [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 364        public bool HasAnalog {
 365          get { return (_hasBits0 & 1) != 0; }
 366        }
 367        /// <summary>Clears the value of the "analog" field</summary>
 368        [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 369        [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 370        public void ClearAnalog() {
 371          _hasBits0 &= ~1;
 372        }
 373
 374        [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 375        [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 376        public override bool Equals(object other) {
 377          return Equals(other as PointerCommand);
 378        }
 379
 380        [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 381        [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 382        public bool Equals(PointerCommand other) {
 383          if (ReferenceEquals(other, null)) {
 384            return false;
 385          }
 386          if (ReferenceEquals(other, this)) {
 387            return true;
 388          }
 389          if (Button != other.Button) return false;
 390          if (!object.Equals(Hit, other.Hit)) return false;
 391          if (State != other.State) return false;
 392          if (Timestamp != other.Timestamp) return false;
 393          if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(Analog, other.Analog)) return false;
 394          return Equals(_unknownFields, other._unknownFields);
 395        }
 396
 397        [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 398        [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 399        public override int GetHashCode() {
 400          int hash = 1;
 401          if (Button != global::DCL.ECSComponents.InputAction.IaPointer) hash ^= Button.GetHashCode();
 402          if (hit_ != null) hash ^= Hit.GetHashCode();
 403          if (State != global::DCL.ECSComponents.PointerEventType.PetUp) hash ^= State.GetHashCode();
 404          if (Timestamp != 0) hash ^= Timestamp.GetHashCode();
 405          if (HasAnalog) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(Analog);
 406          if (_unknownFields != null) {
 407            hash ^= _unknownFields.GetHashCode();
 408          }
 409          return hash;
 410        }
 411
 412        [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 413        [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 414        public override string ToString() {
 415          return pb::JsonFormatter.ToDiagnosticString(this);
 416        }
 417
 418        [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 419        [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 420        public void WriteTo(pb::CodedOutputStream output) {
 421        #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 422          output.WriteRawMessage(this);
 423        #else
 424          if (Button != global::DCL.ECSComponents.InputAction.IaPointer) {
 425            output.WriteRawTag(8);
 426            output.WriteEnum((int) Button);
 427          }
 428          if (hit_ != null) {
 429            output.WriteRawTag(18);
 430            output.WriteMessage(Hit);
 431          }
 432          if (State != global::DCL.ECSComponents.PointerEventType.PetUp) {
 433            output.WriteRawTag(32);
 434            output.WriteEnum((int) State);
 435          }
 436          if (Timestamp != 0) {
 437            output.WriteRawTag(40);
 438            output.WriteInt32(Timestamp);
 439          }
 440          if (HasAnalog) {
 441            output.WriteRawTag(53);
 442            output.WriteFloat(Analog);
 443          }
 444          if (_unknownFields != null) {
 445            _unknownFields.WriteTo(output);
 446          }
 447        #endif
 448        }
 449
 450        #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 451        [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 452        [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 453        void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
 454          if (Button != global::DCL.ECSComponents.InputAction.IaPointer) {
 455            output.WriteRawTag(8);
 456            output.WriteEnum((int) Button);
 457          }
 458          if (hit_ != null) {
 459            output.WriteRawTag(18);
 460            output.WriteMessage(Hit);
 461          }
 462          if (State != global::DCL.ECSComponents.PointerEventType.PetUp) {
 463            output.WriteRawTag(32);
 464            output.WriteEnum((int) State);
 465          }
 466          if (Timestamp != 0) {
 467            output.WriteRawTag(40);
 468            output.WriteInt32(Timestamp);
 469          }
 470          if (HasAnalog) {
 471            output.WriteRawTag(53);
 472            output.WriteFloat(Analog);
 473          }
 474          if (_unknownFields != null) {
 475            _unknownFields.WriteTo(ref output);
 476          }
 477        }
 478        #endif
 479
 480        [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 481        [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 482        public int CalculateSize() {
 483          int size = 0;
 484          if (Button != global::DCL.ECSComponents.InputAction.IaPointer) {
 485            size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Button);
 486          }
 487          if (hit_ != null) {
 488            size += 1 + pb::CodedOutputStream.ComputeMessageSize(Hit);
 489          }
 490          if (State != global::DCL.ECSComponents.PointerEventType.PetUp) {
 491            size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) State);
 492          }
 493          if (Timestamp != 0) {
 494            size += 1 + pb::CodedOutputStream.ComputeInt32Size(Timestamp);
 495          }
 496          if (HasAnalog) {
 497            size += 1 + 4;
 498          }
 499          if (_unknownFields != null) {
 500            size += _unknownFields.CalculateSize();
 501          }
 502          return size;
 503        }
 504
 505        [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 506        [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 507        public void MergeFrom(PointerCommand other) {
 508          if (other == null) {
 509            return;
 510          }
 511          if (other.Button != global::DCL.ECSComponents.InputAction.IaPointer) {
 512            Button = other.Button;
 513          }
 514          if (other.hit_ != null) {
 515            if (hit_ == null) {
 516              Hit = new global::DCL.ECSComponents.RaycastHit();
 517            }
 518            Hit.MergeFrom(other.Hit);
 519          }
 520          if (other.State != global::DCL.ECSComponents.PointerEventType.PetUp) {
 521            State = other.State;
 522          }
 523          if (other.Timestamp != 0) {
 524            Timestamp = other.Timestamp;
 525          }
 526          if (other.HasAnalog) {
 527            Analog = other.Analog;
 528          }
 529          _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 530        }
 531
 532        [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 533        [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 534        public void MergeFrom(pb::CodedInputStream input) {
 535        #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 536          input.ReadRawMessage(this);
 537        #else
 538          uint tag;
 539          while ((tag = input.ReadTag()) != 0) {
 540            switch(tag) {
 541              default:
 542                _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
 543                break;
 544              case 8: {
 545                Button = (global::DCL.ECSComponents.InputAction) input.ReadEnum();
 546                break;
 547              }
 548              case 18: {
 549                if (hit_ == null) {
 550                  Hit = new global::DCL.ECSComponents.RaycastHit();
 551                }
 552                input.ReadMessage(Hit);
 553                break;
 554              }
 555              case 32: {
 556                State = (global::DCL.ECSComponents.PointerEventType) input.ReadEnum();
 557                break;
 558              }
 559              case 40: {
 560                Timestamp = input.ReadInt32();
 561                break;
 562              }
 563              case 53: {
 564                Analog = input.ReadFloat();
 565                break;
 566              }
 567            }
 568          }
 569        #endif
 570        }
 571
 572        #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
 573        [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 574        [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 575        void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
 576          uint tag;
 577          while ((tag = input.ReadTag()) != 0) {
 578            switch(tag) {
 579              default:
 580                _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
 581                break;
 582              case 8: {
 583                Button = (global::DCL.ECSComponents.InputAction) input.ReadEnum();
 584                break;
 585              }
 586              case 18: {
 587                if (hit_ == null) {
 588                  Hit = new global::DCL.ECSComponents.RaycastHit();
 589                }
 590                input.ReadMessage(Hit);
 591                break;
 592              }
 593              case 32: {
 594                State = (global::DCL.ECSComponents.PointerEventType) input.ReadEnum();
 595                break;
 596              }
 597              case 40: {
 598                Timestamp = input.ReadInt32();
 599                break;
 600              }
 601              case 53: {
 602                Analog = input.ReadFloat();
 603                break;
 604              }
 605            }
 606          }
 607        }
 608        #endif
 609
 610      }
 611
 612    }
 613    #endregion
 614
 615  }
 616
 617  #endregion
 618
 619}
 620
 621#endregion Designer generated code