// Generated by the protocol buffer compiler. DO NOT EDIT! // source: StubMotorInitRequest.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.Stubs { /// Holder for reflection information generated from StubMotorInitRequest.proto public static partial class StubMotorInitRequestReflection { #region Descriptor /// File descriptor for StubMotorInitRequest.proto public static pbr::FileDescriptor Descriptor { get { return descriptor; } } private static pbr::FileDescriptor descriptor; static StubMotorInitRequestReflection() { byte[] descriptorData = global::System.Convert.FromBase64String( string.Concat( "ChpTdHViTW90b3JJbml0UmVxdWVzdC5wcm90bxIPVGFuZ28uUE1SLlN0dWJz", "IpoDChRTdHViTW90b3JJbml0UmVxdWVzdBIQCghNb3Rvcl9JRBgBIAEoDRIT", "CgtNaWNyb19TdGVwcxgCIAEoDRIXCg9TZXRfTWljcm9fU3RlcHMYAyABKAgS", "CwoDQUNDGAQgASgNEg8KB1NldF9BQ0MYBSABKAgSCwoDREVDGAYgASgNEg8K", "B1NldF9EZWMYByABKAgSEQoJTWF4X1NwZWVkGAggASgNEhUKDVNldF9NYXhf", "U3BlZWQYCSABKAgSGgoSTWluX1NwZWVkX0xTUERfT1BUGAogASgNEh4KFlNl", "dF9NaW5fU3BlZWRfTFNQRF9PUFQYCyABKAgSDgoGQ29uZmlnGAwgASgNEhEK", "CUtWQUxfSE9MRBgNIAEoDRIQCghLVkFMX1JVThgOIAEoDRIQCghLVkFMX0FD", "QxgPIAEoDRIQCghLVkFMX0RFQxgQIAEoDRIOCgZTVF9TTFAYESABKA0SDwoH", "SU5UX1NQRBgSIAEoDRISCgpGTl9TTFBfQUNDGBMgASgNEhIKCkZOX1NMUF9E", "RUMYFCABKA1CGwoZY29tLnR3aW5lLnRhbmdvLnBtci5zdHVic2IGcHJvdG8z")); descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, new pbr::FileDescriptor[] { }, new pbr::GeneratedClrTypeInfo(null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Tango.PMR.Stubs.StubMotorInitRequest), global::Tango.PMR.Stubs.StubMotorInitRequest.Parser, new[]{ "MotorID", "MicroSteps", "SetMicroSteps", "ACC", "SetACC", "DEC", "SetDec", "MaxSpeed", "SetMaxSpeed", "MinSpeedLSPDOPT", "SetMinSpeedLSPDOPT", "Config", "KVALHOLD", "KVALRUN", "KVALACC", "KVALDEC", "STSLP", "INTSPD", "FNSLPACC", "FNSLPDEC" }, null, null, null) })); } #endregion } #region Messages public sealed partial class StubMotorInitRequest : pb::IMessage { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new StubMotorInitRequest()); [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.Stubs.StubMotorInitRequestReflection.Descriptor.MessageTypes[0]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public StubMotorInitRequest() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public StubMotorInitRequest(StubMotorInitRequest other) : this() { motorID_ = other.motorID_; microSteps_ = other.microSteps_; setMicroSteps_ = other.setMicroSteps_; aCC_ = other.aCC_; setACC_ = other.setACC_; dEC_ = other.dEC_; setDec_ = other.setDec_; maxSpeed_ = other.maxSpeed_; setMaxSpeed_ = other.setMaxSpeed_; minSpeedLSPDOPT_ = other.minSpeedLSPDOPT_; setMinSpeedLSPDOPT_ = other.setMinSpeedLSPDOPT_; config_ = other.config_; kVALHOLD_ = other.kVALHOLD_; kVALRUN_ = other.kVALRUN_; kVALACC_ = other.kVALACC_; kVALDEC_ = other.kVALDEC_; sTSLP_ = other.sTSLP_; iNTSPD_ = other.iNTSPD_; fNSLPACC_ = other.fNSLPACC_; fNSLPDEC_ = other.fNSLPDEC_; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public StubMotorInitRequest Clone() { return new StubMotorInitRequest(this); } /// Field number for the "Motor_ID" field. public const int MotorIDFieldNumber = 1; private uint motorID_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public uint MotorID { get { return motorID_; } set { motorID_ = value; } } /// Field number for the "Micro_Steps" field. public const int MicroStepsFieldNumber = 2; private uint microSteps_; /// /// 1/2/4/8/16/32/64/128 /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public uint MicroSteps { get { return microSteps_; } set { microSteps_ = value; } } /// Field number for the "Set_Micro_Steps" field. public const int SetMicroStepsFieldNumber = 3; private bool setMicroSteps_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public bool SetMicroSteps { get { return setMicroSteps_; } set { setMicroSteps_ = value; } } /// Field number for the "ACC" field. public const int ACCFieldNumber = 4; private uint aCC_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public uint ACC { get { return aCC_; } set { aCC_ = value; } } /// Field number for the "Set_ACC" field. public const int SetACCFieldNumber = 5; private bool setACC_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public bool SetACC { get { return setACC_; } set { setACC_ = value; } } /// Field number for the "DEC" field. public const int DECFieldNumber = 6; private uint dEC_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public uint DEC { get { return dEC_; } set { dEC_ = value; } } /// Field number for the "Set_Dec" field. public const int SetDecFieldNumber = 7; private bool setDec_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public bool SetDec { get { return setDec_; } set { setDec_ = value; } } /// Field number for the "Max_Speed" field. public const int MaxSpeedFieldNumber = 8; private uint maxSpeed_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public uint MaxSpeed { get { return maxSpeed_; } set { maxSpeed_ = value; } } /// Field number for the "Set_Max_Speed" field. public const int SetMaxSpeedFieldNumber = 9; private bool setMaxSpeed_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public bool SetMaxSpeed { get { return setMaxSpeed_; } set { setMaxSpeed_ = value; } } /// Field number for the "Min_Speed_LSPD_OPT" field. public const int MinSpeedLSPDOPTFieldNumber = 10; private uint minSpeedLSPDOPT_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public uint MinSpeedLSPDOPT { get { return minSpeedLSPDOPT_; } set { minSpeedLSPDOPT_ = value; } } /// Field number for the "Set_Min_Speed_LSPD_OPT" field. public const int SetMinSpeedLSPDOPTFieldNumber = 11; private bool setMinSpeedLSPDOPT_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public bool SetMinSpeedLSPDOPT { get { return setMinSpeedLSPDOPT_; } set { setMinSpeedLSPDOPT_ = value; } } /// Field number for the "Config" field. public const int ConfigFieldNumber = 12; private uint config_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public uint Config { get { return config_; } set { config_ = value; } } /// Field number for the "KVAL_HOLD" field. public const int KVALHOLDFieldNumber = 13; private uint kVALHOLD_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public uint KVALHOLD { get { return kVALHOLD_; } set { kVALHOLD_ = value; } } /// Field number for the "KVAL_RUN" field. public const int KVALRUNFieldNumber = 14; private uint kVALRUN_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public uint KVALRUN { get { return kVALRUN_; } set { kVALRUN_ = value; } } /// Field number for the "KVAL_ACC" field. public const int KVALACCFieldNumber = 15; private uint kVALACC_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public uint KVALACC { get { return kVALACC_; } set { kVALACC_ = value; } } /// Field number for the "KVAL_DEC" field. public const int KVALDECFieldNumber = 16; private uint kVALDEC_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public uint KVALDEC { get { return kVALDEC_; } set { kVALDEC_ = value; } } /// Field number for the "ST_SLP" field. public const int STSLPFieldNumber = 17; private uint sTSLP_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public uint STSLP { get { return sTSLP_; } set { sTSLP_ = value; } } /// Field number for the "INT_SPD" field. public const int INTSPDFieldNumber = 18; private uint iNTSPD_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public uint INTSPD { get { return iNTSPD_; } set { iNTSPD_ = value; } } /// Field number for the "FN_SLP_ACC" field. public const int FNSLPACCFieldNumber = 19; private uint fNSLPACC_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public uint FNSLPACC { get { return fNSLPACC_; } set { fNSLPACC_ = value; } } /// Field number for the "FN_SLP_DEC" field. public const int FNSLPDECFieldNumber = 20; private uint fNSLPDEC_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public uint FNSLPDEC { get { return fNSLPDEC_; } set { fNSLPDEC_ = value; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public override bool Equals(object other) { return Equals(other as StubMotorInitRequest); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public bool Equals(StubMotorInitRequest other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } if (MotorID != other.MotorID) return false; if (MicroSteps != other.MicroSteps) return false; if (SetMicroSteps != other.SetMicroSteps) return false; if (ACC != other.ACC) return false; if (SetACC != other.SetACC) return false; if (DEC != other.DEC) return false; if (SetDec != other.SetDec) return false; if (MaxSpeed != other.MaxSpeed) return false; if (SetMaxSpeed != other.SetMaxSpeed) return false; if (MinSpeedLSPDOPT != other.MinSpeedLSPDOPT) return false; if (SetMinSpeedLSPDOPT != other.SetMinSpeedLSPDOPT) return false; if (Config != other.Config) return false; if (KVALHOLD != other.KVALHOLD) return false; if (KVALRUN != other.KVALRUN) return false; if (KVALACC != other.KVALACC) return false; if (KVALDEC != other.KVALDEC) return false; if (STSLP != other.STSLP) return false; if (INTSPD != other.INTSPD) return false; if (FNSLPACC != other.FNSLPACC) return false; if (FNSLPDEC != other.FNSLPDEC) return false; return true; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public override int GetHashCode() { int hash = 1; if (MotorID != 0) hash ^= MotorID.GetHashCode(); if (MicroSteps != 0) hash ^= MicroSteps.GetHashCode(); if (SetMicroSteps != false) hash ^= SetMicroSteps.GetHashCode(); if (ACC != 0) hash ^= ACC.GetHashCode(); if (SetACC != false) hash ^= SetACC.GetHashCode(); if (DEC != 0) hash ^= DEC.GetHashCode(); if (SetDec != false) hash ^= SetDec.GetHashCode(); if (MaxSpeed != 0) hash ^= MaxSpeed.GetHashCode(); if (SetMaxSpeed != false) hash ^= SetMaxSpeed.GetHashCode(); if (MinSpeedLSPDOPT != 0) hash ^= MinSpeedLSPDOPT.GetHashCode(); if (SetMinSpeedLSPDOPT != false) hash ^= SetMinSpeedLSPDOPT.GetHashCode(); if (Config != 0) hash ^= Config.GetHashCode(); if (KVALHOLD != 0) hash ^= KVALHOLD.GetHashCode(); if (KVALRUN != 0) hash ^= KVALRUN.GetHashCode(); if (KVALACC != 0) hash ^= KVALACC.GetHashCode(); if (KVALDEC != 0) hash ^= KVALDEC.GetHashCode(); if (STSLP != 0) hash ^= STSLP.GetHashCode(); if (INTSPD != 0) hash ^= INTSPD.GetHashCode(); if (FNSLPACC != 0) hash ^= FNSLPACC.GetHashCode(); if (FNSLPDEC != 0) hash ^= FNSLPDEC.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 (MotorID != 0) { output.WriteRawTag(8); output.WriteUInt32(MotorID); } if (MicroSteps != 0) { output.WriteRawTag(16); output.WriteUInt32(MicroSteps); } if (SetMicroSteps != false) { output.WriteRawTag(24); output.WriteBool(SetMicroSteps); } if (ACC != 0) { output.WriteRawTag(32); output.WriteUInt32(ACC); } if (SetACC != false) { output.WriteRawTag(40); output.WriteBool(SetACC); } if (DEC != 0) { output.WriteRawTag(48); output.WriteUInt32(DEC); } if (SetDec != false) { output.WriteRawTag(56); output.WriteBool(SetDec); } if (MaxSpeed != 0) { output.WriteRawTag(64); output.WriteUInt32(MaxSpeed); } if (SetMaxSpeed != false) { output.WriteRawTag(72); output.WriteBool(SetMaxSpeed); } if (MinSpeedLSPDOPT != 0) { output.WriteRawTag(80); output.WriteUInt32(MinSpeedLSPDOPT); } if (SetMinSpeedLSPDOPT != false) { output.WriteRawTag(88); output.WriteBool(SetMinSpeedLSPDOPT); } if (Config != 0) { output.WriteRawTag(96); output.WriteUInt32(Config); } if (KVALHOLD != 0) { output.WriteRawTag(104); output.WriteUInt32(KVALHOLD); } if (KVALRUN != 0) { output.WriteRawTag(112); output.WriteUInt32(KVALRUN); } if (KVALACC != 0) { output.WriteRawTag(120); output.WriteUInt32(KVALACC); } if (KVALDEC != 0) { output.WriteRawTag(128, 1); output.WriteUInt32(KVALDEC); } if (STSLP != 0) { output.WriteRawTag(136, 1); output.WriteUInt32(STSLP); } if (INTSPD != 0) { output.WriteRawTag(144, 1); output.WriteUInt32(INTSPD); } if (FNSLPACC != 0) { output.WriteRawTag(152, 1); output.WriteUInt32(FNSLPACC); } if (FNSLPDEC != 0) { output.WriteRawTag(160, 1); output.WriteUInt32(FNSLPDEC); } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public int CalculateSize() { int size = 0; if (MotorID != 0) { size += 1 + pb::CodedOutputStream.ComputeUInt32Size(MotorID); } if (MicroSteps != 0) { size += 1 + pb::CodedOutputStream.ComputeUInt32Size(MicroSteps); } if (SetMicroSteps != false) { size += 1 + 1; } if (ACC != 0) { size += 1 + pb::CodedOutputStream.ComputeUInt32Size(ACC); } if (SetACC != false) { size += 1 + 1; } if (DEC != 0) { size += 1 + pb::CodedOutputStream.ComputeUInt32Size(DEC); } if (SetDec != false) { size += 1 + 1; } if (MaxSpeed != 0) { size += 1 + pb::CodedOutputStream.ComputeUInt32Size(MaxSpeed); } if (SetMaxSpeed != false) { size += 1 + 1; } if (MinSpeedLSPDOPT != 0) { size += 1 + pb::CodedOutputStream.ComputeUInt32Size(MinSpeedLSPDOPT); } if (SetMinSpeedLSPDOPT != false) { size += 1 + 1; } if (Config != 0) { size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Config); } if (KVALHOLD != 0) { size += 1 + pb::CodedOutputStream.ComputeUInt32Size(KVALHOLD); } if (KVALRUN != 0) { size += 1 + pb::CodedOutputStream.ComputeUInt32Size(KVALRUN); } if (KVALACC != 0) { size += 1 + pb::CodedOutputStream.ComputeUInt32Size(KVALACC); } if (KVALDEC != 0) { size += 2 + pb::CodedOutputStream.ComputeUInt32Size(KVALDEC); } if (STSLP != 0) { size += 2 + pb::CodedOutputStream.ComputeUInt32Size(STSLP); } if (INTSPD != 0) { size += 2 + pb::CodedOutputStream.ComputeUInt32Size(INTSPD); } if (FNSLPACC != 0) { size += 2 + pb::CodedOutputStream.ComputeUInt32Size(FNSLPACC); } if (FNSLPDEC != 0) { size += 2 + pb::CodedOutputStream.ComputeUInt32Size(FNSLPDEC); } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public void MergeFrom(StubMotorInitRequest other) { if (other == null) { return; } if (other.MotorID != 0) { MotorID = other.MotorID; } if (other.MicroSteps != 0) { MicroSteps = other.MicroSteps; } if (other.SetMicroSteps != false) { SetMicroSteps = other.SetMicroSteps; } if (other.ACC != 0) { ACC = other.ACC; } if (other.SetACC != false) { SetACC = other.SetACC; } if (other.DEC != 0) { DEC = other.DEC; } if (other.SetDec != false) { SetDec = other.SetDec; } if (other.MaxSpeed != 0) { MaxSpeed = other.MaxSpeed; } if (other.SetMaxSpeed != false) { SetMaxSpeed = other.SetMaxSpeed; } if (other.MinSpeedLSPDOPT != 0) { MinSpeedLSPDOPT = other.MinSpeedLSPDOPT; } if (other.SetMinSpeedLSPDOPT != false) { SetMinSpeedLSPDOPT = other.SetMinSpeedLSPDOPT; } if (other.Config != 0) { Config = other.Config; } if (other.KVALHOLD != 0) { KVALHOLD = other.KVALHOLD; } if (other.KVALRUN != 0) { KVALRUN = other.KVALRUN; } if (other.KVALACC != 0) { KVALACC = other.KVALACC; } if (other.KVALDEC != 0) { KVALDEC = other.KVALDEC; } if (other.STSLP != 0) { STSLP = other.STSLP; } if (other.INTSPD != 0) { INTSPD = other.INTSPD; } if (other.FNSLPACC != 0) { FNSLPACC = other.FNSLPACC; } if (other.FNSLPDEC != 0) { FNSLPDEC = other.FNSLPDEC; } } [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: { MotorID = input.ReadUInt32(); break; } case 16: { MicroSteps = input.ReadUInt32(); break; } case 24: { SetMicroSteps = input.ReadBool(); break; } case 32: { ACC = input.ReadUInt32(); break; } case 40: { SetACC = input.ReadBool(); break; } case 48: { DEC = input.ReadUInt32(); break; } case 56: { SetDec = input.ReadBool(); break; } case 64: { MaxSpeed = input.ReadUInt32(); break; } case 72: { SetMaxSpeed = input.ReadBool(); break; } case 80: { MinSpeedLSPDOPT = input.ReadUInt32(); break; } case 88: { SetMinSpeedLSPDOPT = input.ReadBool(); break; } case 96: { Config = input.ReadUInt32(); break; } case 104: { KVALHOLD = input.ReadUInt32(); break; } case 112: { KVALRUN = input.ReadUInt32(); break; } case 120: { KVALACC = input.ReadUInt32(); break; } case 128: { KVALDEC = input.ReadUInt32(); break; } case 136: { STSLP = input.ReadUInt32(); break; } case 144: { INTSPD = input.ReadUInt32(); break; } case 152: { FNSLPACC = input.ReadUInt32(); break; } case 160: { FNSLPDEC = input.ReadUInt32(); break; } } } } } #endregion } #endregion Designer generated code