< Summary

Class:DCL.ECSComponents.PointerEventsResultReflection
Assembly:DCL.ECSComponents.ProtobufData
File(s):/tmp/workspace/unity-renderer/unity-renderer/Assets/DCLPlugins/ECS7/ProtocolBuffers/Generated/PointerEventsResult.gen.cs
Covered lines:0
Uncovered lines:4
Coverable lines:4
Total lines:618
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/DCLPlugins/ECS7/ProtocolBuffers/Generated/PointerEventsResult.gen.cs

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