< Summary

Class:DCL.ECSComponents.PBPointerEventsResult
Assembly:DCL.ECSComponents.ProtobufData
File(s):/tmp/workspace/unity-renderer/unity-renderer/Assets/DCLPlugins/ECS7/ProtocolBuffers/Generated/PointerEventsResult.gen.cs
Covered lines:21
Uncovered lines:144
Coverable lines:165
Total lines:618
Line coverage:12.7% (21 of 165)
Covered branches:0
Total branches:0

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity NPath complexity Sequence coverage
PBPointerEventsResult()0%110100%
get_Descriptor()0%2100%
PBPointerEventsResult(...)0%2100%
Clone()0%2100%
PBPointerEventsResult()0%110100%
Equals(...)0%2100%
Equals(...)0%20400%
GetHashCode()0%6200%
ToString()0%2100%
WriteTo(...)0%6200%
CalculateSize()0%6200%
MergeFrom(...)0%6200%
MergeFrom(...)0%12300%
PointerCommand()0%110100%
get_Descriptor()0%2100%
PointerCommand()0%110100%
PointerCommand(...)0%12300%
Clone()0%2100%
ClearAnalog()0%2100%
Equals(...)0%2100%
Equals(...)0%72800%
GetHashCode()0%56700%
ToString()0%2100%
WriteTo(...)0%56700%
CalculateSize()0%56700%
MergeFrom(...)0%72800%
MergeFrom(...)0%90900%

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 {
 20      get { return descriptor; }
 21    }
 22    private static pbr::FileDescriptor descriptor;
 23
 24    static PointerEventsResultReflection() {
 25      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"));
 39      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          }));
 44    }
 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  {
 157    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)]
 061    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 {
 066      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 {
 072      get { return Descriptor; }
 73    }
 74
 75    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 76    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 277    public PBPointerEventsResult() {
 78      OnConstruction();
 279    }
 80
 81    partial void OnConstruction();
 82
 83    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 84    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 085    public PBPointerEventsResult(PBPointerEventsResult other) : this() {
 086      commands_ = other.commands_.Clone();
 087      _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
 088    }
 89
 90    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 91    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 92    public PBPointerEventsResult Clone() {
 093      return new PBPointerEventsResult(this);
 94    }
 95
 96    /// <summary>Field number for the "commands" field.</summary>
 97    public const int CommandsFieldNumber = 1;
 198    private static readonly pb::FieldCodec<global::DCL.ECSComponents.PBPointerEventsResult.Types.PointerCommand> _repeat
 99        = pb::FieldCodec.ForMessage(10, global::DCL.ECSComponents.PBPointerEventsResult.Types.PointerCommand.Parser);
 2100    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 {
 12107      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) {
 0113      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) {
 0119      if (ReferenceEquals(other, null)) {
 0120        return false;
 121      }
 0122      if (ReferenceEquals(other, this)) {
 0123        return true;
 124      }
 0125      if(!commands_.Equals(other.commands_)) return false;
 0126      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() {
 0132      int hash = 1;
 0133      hash ^= commands_.GetHashCode();
 0134      if (_unknownFields != null) {
 0135        hash ^= _unknownFields.GetHashCode();
 136      }
 0137      return hash;
 138    }
 139
 140    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 141    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 142    public override string ToString() {
 0143      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
 0152      commands_.WriteTo(output, _repeated_commands_codec);
 0153      if (_unknownFields != null) {
 0154        _unknownFields.WriteTo(output);
 155      }
 156    #endif
 0157    }
 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() {
 0173      int size = 0;
 0174      size += commands_.CalculateSize(_repeated_commands_codec);
 0175      if (_unknownFields != null) {
 0176        size += _unknownFields.CalculateSize();
 177      }
 0178      return size;
 179    }
 180
 181    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 182    [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 183    public void MergeFrom(PBPointerEventsResult other) {
 0184      if (other == null) {
 0185        return;
 186      }
 0187      commands_.Add(other.commands_);
 0188      _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 0189    }
 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;
 0198      while ((tag = input.ReadTag()) != 0) {
 199        switch(tag) {
 200          default:
 0201            _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
 0202            break;
 203          case 10: {
 0204            commands_.AddEntriesFrom(input, _repeated_commands_codec);
 205            break;
 206          }
 207        }
 208      }
 209    #endif
 0210    }
 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      {
 1244        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)]
 1249        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 {
 0254          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 {
 0260          get { return Descriptor; }
 261        }
 262
 263        [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 264        [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 10265        public PointerCommand() {
 266          OnConstruction();
 10267        }
 268
 269        partial void OnConstruction();
 270
 271        [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 272        [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 0273        public PointerCommand(PointerCommand other) : this() {
 0274          _hasBits0 = other._hasBits0;
 0275          button_ = other.button_;
 0276          hit_ = other.hit_ != null ? other.hit_.Clone() : null;
 0277          state_ = other.state_;
 0278          timestamp_ = other.timestamp_;
 0279          analog_ = other.analog_;
 0280          _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
 0281        }
 282
 283        [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 284        [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 285        public PointerCommand Clone() {
 0286          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 {
 0298          get { return button_; }
 299          set {
 10300            button_ = value;
 10301          }
 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 {
 0310          get { return hit_; }
 311          set {
 10312            hit_ = value;
 10313          }
 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 {
 0322          get { return state_; }
 323          set {
 10324            state_ = value;
 10325          }
 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 {
 0337          get { return timestamp_; }
 338          set {
 10339            timestamp_ = value;
 10340          }
 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 {
 0352          get { if ((_hasBits0 & 1) != 0) { return analog_; } else { return 0F; } }
 353          set {
 10354            _hasBits0 |= 1;
 10355            analog_ = value;
 10356          }
 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 {
 0362          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() {
 0368          _hasBits0 &= ~1;
 0369        }
 370
 371        [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 372        [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 373        public override bool Equals(object other) {
 0374          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) {
 0380          if (ReferenceEquals(other, null)) {
 0381            return false;
 382          }
 0383          if (ReferenceEquals(other, this)) {
 0384            return true;
 385          }
 0386          if (Button != other.Button) return false;
 0387          if (!object.Equals(Hit, other.Hit)) return false;
 0388          if (State != other.State) return false;
 0389          if (Timestamp != other.Timestamp) return false;
 0390          if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(Analog, other.Analog)) return false;
 0391          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() {
 0397          int hash = 1;
 0398          if (Button != global::DCL.ECSComponents.ActionButton.Pointer) hash ^= Button.GetHashCode();
 0399          if (hit_ != null) hash ^= Hit.GetHashCode();
 0400          if (State != global::DCL.ECSComponents.PointerEventType.Up) hash ^= State.GetHashCode();
 0401          if (Timestamp != 0) hash ^= Timestamp.GetHashCode();
 0402          if (HasAnalog) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(Analog);
 0403          if (_unknownFields != null) {
 0404            hash ^= _unknownFields.GetHashCode();
 405          }
 0406          return hash;
 407        }
 408
 409        [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 410        [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 411        public override string ToString() {
 0412          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
 0421          if (Button != global::DCL.ECSComponents.ActionButton.Pointer) {
 0422            output.WriteRawTag(8);
 0423            output.WriteEnum((int) Button);
 424          }
 0425          if (hit_ != null) {
 0426            output.WriteRawTag(18);
 0427            output.WriteMessage(Hit);
 428          }
 0429          if (State != global::DCL.ECSComponents.PointerEventType.Up) {
 0430            output.WriteRawTag(32);
 0431            output.WriteEnum((int) State);
 432          }
 0433          if (Timestamp != 0) {
 0434            output.WriteRawTag(40);
 0435            output.WriteInt32(Timestamp);
 436          }
 0437          if (HasAnalog) {
 0438            output.WriteRawTag(53);
 0439            output.WriteFloat(Analog);
 440          }
 0441          if (_unknownFields != null) {
 0442            _unknownFields.WriteTo(output);
 443          }
 444        #endif
 0445        }
 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() {
 0480          int size = 0;
 0481          if (Button != global::DCL.ECSComponents.ActionButton.Pointer) {
 0482            size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Button);
 483          }
 0484          if (hit_ != null) {
 0485            size += 1 + pb::CodedOutputStream.ComputeMessageSize(Hit);
 486          }
 0487          if (State != global::DCL.ECSComponents.PointerEventType.Up) {
 0488            size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) State);
 489          }
 0490          if (Timestamp != 0) {
 0491            size += 1 + pb::CodedOutputStream.ComputeInt32Size(Timestamp);
 492          }
 0493          if (HasAnalog) {
 0494            size += 1 + 4;
 495          }
 0496          if (_unknownFields != null) {
 0497            size += _unknownFields.CalculateSize();
 498          }
 0499          return size;
 500        }
 501
 502        [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
 503        [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
 504        public void MergeFrom(PointerCommand other) {
 0505          if (other == null) {
 0506            return;
 507          }
 0508          if (other.Button != global::DCL.ECSComponents.ActionButton.Pointer) {
 0509            Button = other.Button;
 510          }
 0511          if (other.hit_ != null) {
 0512            if (hit_ == null) {
 0513              Hit = new global::DCL.ECSComponents.RaycastHit();
 514            }
 0515            Hit.MergeFrom(other.Hit);
 516          }
 0517          if (other.State != global::DCL.ECSComponents.PointerEventType.Up) {
 0518            State = other.State;
 519          }
 0520          if (other.Timestamp != 0) {
 0521            Timestamp = other.Timestamp;
 522          }
 0523          if (other.HasAnalog) {
 0524            Analog = other.Analog;
 525          }
 0526          _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 0527        }
 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;
 0536          while ((tag = input.ReadTag()) != 0) {
 537            switch(tag) {
 538              default:
 0539                _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
 0540                break;
 541              case 8: {
 0542                Button = (global::DCL.ECSComponents.ActionButton) input.ReadEnum();
 0543                break;
 544              }
 545              case 18: {
 0546                if (hit_ == null) {
 0547                  Hit = new global::DCL.ECSComponents.RaycastHit();
 548                }
 0549                input.ReadMessage(Hit);
 0550                break;
 551              }
 552              case 32: {
 0553                State = (global::DCL.ECSComponents.PointerEventType) input.ReadEnum();
 0554                break;
 555              }
 556              case 40: {
 0557                Timestamp = input.ReadInt32();
 0558                break;
 559              }
 560              case 53: {
 0561                Analog = input.ReadFloat();
 562                break;
 563              }
 564            }
 565          }
 566        #endif
 0567        }
 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