// Generated by the protocol buffer compiler. DO NOT EDIT! // source: HardwareDancer.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 HardwareDancer.proto public static partial class HardwareDancerReflection { #region Descriptor /// File descriptor for HardwareDancer.proto public static pbr::FileDescriptor Descriptor { get { return descriptor; } } private static pbr::FileDescriptor descriptor; static HardwareDancerReflection() { byte[] descriptorData = global::System.Convert.FromBase64String( string.Concat( "ChRIYXJkd2FyZURhbmNlci5wcm90bxISVGFuZ28uUE1SLkhhcmR3YXJlGhhI", "YXJkd2FyZURhbmNlclR5cGUucHJvdG8isAIKDkhhcmR3YXJlRGFuY2VyEkIK", "EkhhcmR3YXJlRGFuY2VyVHlwZRgBIAEoDjImLlRhbmdvLlBNUi5IYXJkd2Fy", "ZS5IYXJkd2FyZURhbmNlclR5cGUSDwoHR3JhZHVhbBgCIAEoCBIJCgFLGAMg", "ASgBEgkKAVgYBCABKAESGAoQUHVsc2VQZXJNbVNwcmluZxgFIAEoBRIZChFN", "YXhpbWFsTW92ZW1lbnRNbRgGIAEoBRIRCglaZXJvUG9pbnQYByABKAUSFgoO", "UmVzb2x1dGlvbkJpdHMYCCABKAUSEQoJQXJtTGVuZ3RoGAkgASgFEh4KFkFz", "c2VtYmx5RGlyZWN0aW9uUmlnaHQYCiABKAgSIAoYQWNjZWxlcmF0ZU9uVGVu", "c2lvblJhaXNlGAsgASgIQh4KHGNvbS50d2luZS50YW5nby5wbXIuaGFyZHdh", "cmViBnByb3RvMw==")); descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, new pbr::FileDescriptor[] { global::Tango.PMR.Hardware.HardwareDancerTypeReflection.Descriptor, }, new pbr::GeneratedClrTypeInfo(null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Tango.PMR.Hardware.HardwareDancer), global::Tango.PMR.Hardware.HardwareDancer.Parser, new[]{ "HardwareDancerType", "Gradual", "K", "X", "PulsePerMmSpring", "MaximalMovementMm", "ZeroPoint", "ResolutionBits", "ArmLength", "AssemblyDirectionRight", "AccelerateOnTensionRaise" }, null, null, null) })); } #endregion } #region Messages public sealed partial class HardwareDancer : pb::IMessage { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new HardwareDancer()); [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.HardwareDancerReflection.Descriptor.MessageTypes[0]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public HardwareDancer() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public HardwareDancer(HardwareDancer other) : this() { hardwareDancerType_ = other.hardwareDancerType_; gradual_ = other.gradual_; k_ = other.k_; x_ = other.x_; pulsePerMmSpring_ = other.pulsePerMmSpring_; maximalMovementMm_ = other.maximalMovementMm_; zeroPoint_ = other.zeroPoint_; resolutionBits_ = other.resolutionBits_; armLength_ = other.armLength_; assemblyDirectionRight_ = other.assemblyDirectionRight_; accelerateOnTensionRaise_ = other.accelerateOnTensionRaise_; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public HardwareDancer Clone() { return new HardwareDancer(this); } /// Field number for the "HardwareDancerType" field. public const int HardwareDancerTypeFieldNumber = 1; private global::Tango.PMR.Hardware.HardwareDancerType hardwareDancerType_ = 0; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public global::Tango.PMR.Hardware.HardwareDancerType HardwareDancerType { get { return hardwareDancerType_; } set { hardwareDancerType_ = value; } } /// Field number for the "Gradual" field. public const int GradualFieldNumber = 2; private bool gradual_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public bool Gradual { get { return gradual_; } set { gradual_ = value; } } /// Field number for the "K" field. public const int KFieldNumber = 3; private double k_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public double K { get { return k_; } set { k_ = value; } } /// Field number for the "X" field. public const int XFieldNumber = 4; private double x_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public double X { get { return x_; } set { x_ = value; } } /// Field number for the "PulsePerMmSpring" field. public const int PulsePerMmSpringFieldNumber = 5; private int pulsePerMmSpring_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public int PulsePerMmSpring { get { return pulsePerMmSpring_; } set { pulsePerMmSpring_ = value; } } /// Field number for the "MaximalMovementMm" field. public const int MaximalMovementMmFieldNumber = 6; private int maximalMovementMm_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public int MaximalMovementMm { get { return maximalMovementMm_; } set { maximalMovementMm_ = value; } } /// Field number for the "ZeroPoint" field. public const int ZeroPointFieldNumber = 7; private int zeroPoint_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public int ZeroPoint { get { return zeroPoint_; } set { zeroPoint_ = value; } } /// Field number for the "ResolutionBits" field. public const int ResolutionBitsFieldNumber = 8; private int resolutionBits_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public int ResolutionBits { get { return resolutionBits_; } set { resolutionBits_ = value; } } /// Field number for the "ArmLength" field. public const int ArmLengthFieldNumber = 9; private int armLength_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public int ArmLength { get { return armLength_; } set { armLength_ = value; } } /// Field number for the "AssemblyDirectionRight" field. public const int AssemblyDirectionRightFieldNumber = 10; private bool assemblyDirectionRight_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public bool AssemblyDirectionRight { get { return assemblyDirectionRight_; } set { assemblyDirectionRight_ = value; } } /// Field number for the "AccelerateOnTensionRaise" field. public const int AccelerateOnTensionRaiseFieldNumber = 11; private bool accelerateOnTensionRaise_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public bool AccelerateOnTensionRaise { get { return accelerateOnTensionRaise_; } set { accelerateOnTensionRaise_ = value; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public override bool Equals(object other) { return Equals(other as HardwareDancer); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public bool Equals(HardwareDancer other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } if (HardwareDancerType != other.HardwareDancerType) return false; if (Gradual != other.Gradual) return false; if (K != other.K) return false; if (X != other.X) return false; if (PulsePerMmSpring != other.PulsePerMmSpring) return false; if (MaximalMovementMm != other.MaximalMovementMm) return false; if (ZeroPoint != other.ZeroPoint) return false; if (ResolutionBits != other.ResolutionBits) return false; if (ArmLength != other.ArmLength) return false; if (AssemblyDirectionRight != other.AssemblyDirectionRight) return false; if (AccelerateOnTensionRaise != other.AccelerateOnTensionRaise) return false; return true; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public override int GetHashCode() { int hash = 1; if (HardwareDancerType != 0) hash ^= HardwareDancerType.GetHashCode(); if (Gradual != false) hash ^= Gradual.GetHashCode(); if (K != 0D) hash ^= K.GetHashCode(); if (X != 0D) hash ^= X.GetHashCode(); if (PulsePerMmSpring != 0) hash ^= PulsePerMmSpring.GetHashCode(); if (MaximalMovementMm != 0) hash ^= MaximalMovementMm.GetHashCode(); if (ZeroPoint != 0) hash ^= ZeroPoint.GetHashCode(); if (ResolutionBits != 0) hash ^= ResolutionBits.GetHashCode(); if (ArmLength != 0) hash ^= ArmLength.GetHashCode(); if (AssemblyDirectionRight != false) hash ^= AssemblyDirectionRight.GetHashCode(); if (AccelerateOnTensionRaise != false) hash ^= AccelerateOnTensionRaise.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 (HardwareDancerType != 0) { output.WriteRawTag(8); output.WriteEnum((int) HardwareDancerType); } if (Gradual != false) { output.WriteRawTag(16); output.WriteBool(Gradual); } if (K != 0D) { output.WriteRawTag(25); output.WriteDouble(K); } if (X != 0D) { output.WriteRawTag(33); output.WriteDouble(X); } if (PulsePerMmSpring != 0) { output.WriteRawTag(40); output.WriteInt32(PulsePerMmSpring); } if (MaximalMovementMm != 0) { output.WriteRawTag(48); output.WriteInt32(MaximalMovementMm); } if (ZeroPoint != 0) { output.WriteRawTag(56); output.WriteInt32(ZeroPoint); } if (ResolutionBits != 0) { output.WriteRawTag(64); output.WriteInt32(ResolutionBits); } if (ArmLength != 0) { output.WriteRawTag(72); output.WriteInt32(ArmLength); } if (AssemblyDirectionRight != false) { output.WriteRawTag(80); output.WriteBool(AssemblyDirectionRight); } if (AccelerateOnTensionRaise != false) { output.WriteRawTag(88); output.WriteBool(AccelerateOnTensionRaise); } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public int CalculateSize() { int size = 0; if (HardwareDancerType != 0) { size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) HardwareDancerType); } if (Gradual != false) { size += 1 + 1; } if (K != 0D) { size += 1 + 8; } if (X != 0D) { size += 1 + 8; } if (PulsePerMmSpring != 0) { size += 1 + pb::CodedOutputStream.ComputeInt32Size(PulsePerMmSpring); } if (MaximalMovementMm != 0) { size += 1 + pb::CodedOutputStream.ComputeInt32Size(MaximalMovementMm); } if (ZeroPoint != 0) { size += 1 + pb::CodedOutputStream.ComputeInt32Size(ZeroPoint); } if (ResolutionBits != 0) { size += 1 + pb::CodedOutputStream.ComputeInt32Size(ResolutionBits); } if (ArmLength != 0) { size += 1 + pb::CodedOutputStream.ComputeInt32Size(ArmLength); } if (AssemblyDirectionRight != false) { size += 1 + 1; } if (AccelerateOnTensionRaise != false) { size += 1 + 1; } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public void MergeFrom(HardwareDancer other) { if (other == null) { return; } if (other.HardwareDancerType != 0) { HardwareDancerType = other.HardwareDancerType; } if (other.Gradual != false) { Gradual = other.Gradual; } if (other.K != 0D) { K = other.K; } if (other.X != 0D) { X = other.X; } if (other.PulsePerMmSpring != 0) { PulsePerMmSpring = other.PulsePerMmSpring; } if (other.MaximalMovementMm != 0) { MaximalMovementMm = other.MaximalMovementMm; } if (other.ZeroPoint != 0) { ZeroPoint = other.ZeroPoint; } if (other.ResolutionBits != 0) { ResolutionBits = other.ResolutionBits; } if (other.ArmLength != 0) { ArmLength = other.ArmLength; } if (other.AssemblyDirectionRight != false) { AssemblyDirectionRight = other.AssemblyDirectionRight; } if (other.AccelerateOnTensionRaise != false) { AccelerateOnTensionRaise = other.AccelerateOnTensionRaise; } } [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: { hardwareDancerType_ = (global::Tango.PMR.Hardware.HardwareDancerType) input.ReadEnum(); break; } case 16: { Gradual = input.ReadBool(); break; } case 25: { K = input.ReadDouble(); break; } case 33: { X = input.ReadDouble(); break; } case 40: { PulsePerMmSpring = input.ReadInt32(); break; } case 48: { MaximalMovementMm = input.ReadInt32(); break; } case 56: { ZeroPoint = input.ReadInt32(); break; } case 64: { ResolutionBits = input.ReadInt32(); break; } case 72: { ArmLength = input.ReadInt32(); break; } case 80: { AssemblyDirectionRight = input.ReadBool(); break; } case 88: { AccelerateOnTensionRaise = input.ReadBool(); break; } } } } } #endregion } #endregion Designer generated code