// Generated by the protocol buffer compiler. DO NOT EDIT! // source: HardwareBreakSensor.proto #pragma warning disable 1591, 0612, 3021 #region Designer generated code using pb = global::Google.Protobuf; using pbc = global::Google.Protobuf.Collections; using pbr = global::Google.Protobuf.Reflection; using scg = global::System.Collections.Generic; namespace Tango.PMR.Hardware { /// Holder for reflection information generated from HardwareBreakSensor.proto public static partial class HardwareBreakSensorReflection { #region Descriptor /// File descriptor for HardwareBreakSensor.proto public static pbr::FileDescriptor Descriptor { get { return descriptor; } } private static pbr::FileDescriptor descriptor; static HardwareBreakSensorReflection() { byte[] descriptorData = global::System.Convert.FromBase64String( string.Concat( "ChlIYXJkd2FyZUJyZWFrU2Vuc29yLnByb3RvEhJUYW5nby5QTVIuSGFyZHdh", "cmUaHUhhcmR3YXJlQnJlYWtTZW5zb3JUeXBlLnByb3RvIo8BChNIYXJkd2Fy", "ZUJyZWFrU2Vuc29yEkwKF0hhcmR3YXJlQnJlYWtTZW5zb3JUeXBlGAEgASgO", "MisuVGFuZ28uUE1SLkhhcmR3YXJlLkhhcmR3YXJlQnJlYWtTZW5zb3JUeXBl", "Eg8KB0VuYWJsZWQYAiABKAgSGQoRRGVCb3VuY2VUaW1lTWlsbGkYAyABKAVC", "HgocY29tLnR3aW5lLnRhbmdvLnBtci5oYXJkd2FyZWIGcHJvdG8z")); descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, new pbr::FileDescriptor[] { global::Tango.PMR.Hardware.HardwareBreakSensorTypeReflection.Descriptor, }, new pbr::GeneratedClrTypeInfo(null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Tango.PMR.Hardware.HardwareBreakSensor), global::Tango.PMR.Hardware.HardwareBreakSensor.Parser, new[]{ "HardwareBreakSensorType", "Enabled", "DeBounceTimeMilli" }, null, null, null) })); } #endregion } #region Messages public sealed partial class HardwareBreakSensor : pb::IMessage { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new HardwareBreakSensor()); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public static pbr::MessageDescriptor Descriptor { get { return global::Tango.PMR.Hardware.HardwareBreakSensorReflection.Descriptor.MessageTypes[0]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public HardwareBreakSensor() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public HardwareBreakSensor(HardwareBreakSensor other) : this() { hardwareBreakSensorType_ = other.hardwareBreakSensorType_; enabled_ = other.enabled_; deBounceTimeMilli_ = other.deBounceTimeMilli_; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public HardwareBreakSensor Clone() { return new HardwareBreakSensor(this); } /// Field number for the "HardwareBreakSensorType" field. public const int HardwareBreakSensorTypeFieldNumber = 1; private global::Tango.PMR.Hardware.HardwareBreakSensorType hardwareBreakSensorType_ = 0; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public global::Tango.PMR.Hardware.HardwareBreakSensorType HardwareBreakSensorType { get { return hardwareBreakSensorType_; } set { hardwareBreakSensorType_ = value; } } /// Field number for the "Enabled" field. public const int EnabledFieldNumber = 2; private bool enabled_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public bool Enabled { get { return enabled_; } set { enabled_ = value; } } /// Field number for the "DeBounceTimeMilli" field. public const int DeBounceTimeMilliFieldNumber = 3; private int deBounceTimeMilli_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public int DeBounceTimeMilli { get { return deBounceTimeMilli_; } set { deBounceTimeMilli_ = value; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public override bool Equals(object other) { return Equals(other as HardwareBreakSensor); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public bool Equals(HardwareBreakSensor other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } if (HardwareBreakSensorType != other.HardwareBreakSensorType) return false; if (Enabled != other.Enabled) return false; if (DeBounceTimeMilli != other.DeBounceTimeMilli) return false; return true; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public override int GetHashCode() { int hash = 1; if (HardwareBreakSensorType != 0) hash ^= HardwareBreakSensorType.GetHashCode(); if (Enabled != false) hash ^= Enabled.GetHashCode(); if (DeBounceTimeMilli != 0) hash ^= DeBounceTimeMilli.GetHashCode(); return hash; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public override string ToString() { return pb::JsonFormatter.ToDiagnosticString(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public void WriteTo(pb::CodedOutputStream output) { if (HardwareBreakSensorType != 0) { output.WriteRawTag(8); output.WriteEnum((int) HardwareBreakSensorType); } if (Enabled != false) { output.WriteRawTag(16); output.WriteBool(Enabled); } if (DeBounceTimeMilli != 0) { output.WriteRawTag(24); output.WriteInt32(DeBounceTimeMilli); } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public int CalculateSize() { int size = 0; if (HardwareBreakSensorType != 0) { size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) HardwareBreakSensorType); } if (Enabled != false) { size += 1 + 1; } if (DeBounceTimeMilli != 0) { size += 1 + pb::CodedOutputStream.ComputeInt32Size(DeBounceTimeMilli); } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public void MergeFrom(HardwareBreakSensor other) { if (other == null) { return; } if (other.HardwareBreakSensorType != 0) { HardwareBreakSensorType = other.HardwareBreakSensorType; } if (other.Enabled != false) { Enabled = other.Enabled; } if (other.DeBounceTimeMilli != 0) { DeBounceTimeMilli = other.DeBounceTimeMilli; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public void MergeFrom(pb::CodedInputStream input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: input.SkipLastField(); break; case 8: { hardwareBreakSensorType_ = (global::Tango.PMR.Hardware.HardwareBreakSensorType) input.ReadEnum(); break; } case 16: { Enabled = input.ReadBool(); break; } case 24: { DeBounceTimeMilli = input.ReadInt32(); break; } } } } } #endregion } #endregion Designer generated code