// Generated by the protocol buffer compiler. DO NOT EDIT! // source: StubMotorStatusResponse.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 StubMotorStatusResponse.proto public static partial class StubMotorStatusResponseReflection { #region Descriptor /// File descriptor for StubMotorStatusResponse.proto public static pbr::FileDescriptor Descriptor { get { return descriptor; } } private static pbr::FileDescriptor descriptor; static StubMotorStatusResponseReflection() { byte[] descriptorData = global::System.Convert.FromBase64String( string.Concat( "Ch1TdHViTW90b3JTdGF0dXNSZXNwb25zZS5wcm90bxIPVGFuZ28uUE1SLlN0", "dWJzIqICChdTdHViTW90b3JTdGF0dXNSZXNwb25zZRIQCghNb3Rvcl9JRBgB", "IAEoDRIPCgdTQ0tfTU9EGAIgASgIEhMKC1NURVBfTE9TU19CGAMgASgIEhMK", "C1NURVBfTE9TU19BGAQgASgIEgsKA09DRBgFIAEoCBINCgVUSF9TRBgGIAEo", "CBIOCgZUSF9XUk4YByABKAgSDAoEVVZMTxgIIAEoCBIRCglXUk9OR19DTUQY", "CSABKAgSEwoLTk9UUEVSRl9DTUQYCiABKAgSEgoKTU9UX1NUQVRVUxgLIAEo", "DRILCgNESVIYDCABKAgSDgoGU1dfRVZOGA0gASgIEgwKBFNXX0YYDiABKAgS", "DAoEQlVTWRgPIAEoCBILCgNIaVoYECABKAhCGwoZY29tLnR3aW5lLnRhbmdv", "LnBtci5zdHVic2IGcHJvdG8z")); descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, new pbr::FileDescriptor[] { }, new pbr::GeneratedClrTypeInfo(null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Tango.PMR.Stubs.StubMotorStatusResponse), global::Tango.PMR.Stubs.StubMotorStatusResponse.Parser, new[]{ "MotorID", "SCKMOD", "STEPLOSSB", "STEPLOSSA", "OCD", "THSD", "THWRN", "UVLO", "WRONGCMD", "NOTPERFCMD", "MOTSTATUS", "DIR", "SWEVN", "SWF", "BUSY", "HiZ" }, null, null, null) })); } #endregion } #region Messages public sealed partial class StubMotorStatusResponse : pb::IMessage { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new StubMotorStatusResponse()); [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.StubMotorStatusResponseReflection.Descriptor.MessageTypes[0]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public StubMotorStatusResponse() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public StubMotorStatusResponse(StubMotorStatusResponse other) : this() { motorID_ = other.motorID_; sCKMOD_ = other.sCKMOD_; sTEPLOSSB_ = other.sTEPLOSSB_; sTEPLOSSA_ = other.sTEPLOSSA_; oCD_ = other.oCD_; tHSD_ = other.tHSD_; tHWRN_ = other.tHWRN_; uVLO_ = other.uVLO_; wRONGCMD_ = other.wRONGCMD_; nOTPERFCMD_ = other.nOTPERFCMD_; mOTSTATUS_ = other.mOTSTATUS_; dIR_ = other.dIR_; sWEVN_ = other.sWEVN_; sWF_ = other.sWF_; bUSY_ = other.bUSY_; hiZ_ = other.hiZ_; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public StubMotorStatusResponse Clone() { return new StubMotorStatusResponse(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 "SCK_MOD" field. public const int SCKMODFieldNumber = 2; private bool sCKMOD_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public bool SCKMOD { get { return sCKMOD_; } set { sCKMOD_ = value; } } /// Field number for the "STEP_LOSS_B" field. public const int STEPLOSSBFieldNumber = 3; private bool sTEPLOSSB_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public bool STEPLOSSB { get { return sTEPLOSSB_; } set { sTEPLOSSB_ = value; } } /// Field number for the "STEP_LOSS_A" field. public const int STEPLOSSAFieldNumber = 4; private bool sTEPLOSSA_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public bool STEPLOSSA { get { return sTEPLOSSA_; } set { sTEPLOSSA_ = value; } } /// Field number for the "OCD" field. public const int OCDFieldNumber = 5; private bool oCD_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public bool OCD { get { return oCD_; } set { oCD_ = value; } } /// Field number for the "TH_SD" field. public const int THSDFieldNumber = 6; private bool tHSD_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public bool THSD { get { return tHSD_; } set { tHSD_ = value; } } /// Field number for the "TH_WRN" field. public const int THWRNFieldNumber = 7; private bool tHWRN_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public bool THWRN { get { return tHWRN_; } set { tHWRN_ = value; } } /// Field number for the "UVLO" field. public const int UVLOFieldNumber = 8; private bool uVLO_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public bool UVLO { get { return uVLO_; } set { uVLO_ = value; } } /// Field number for the "WRONG_CMD" field. public const int WRONGCMDFieldNumber = 9; private bool wRONGCMD_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public bool WRONGCMD { get { return wRONGCMD_; } set { wRONGCMD_ = value; } } /// Field number for the "NOTPERF_CMD" field. public const int NOTPERFCMDFieldNumber = 10; private bool nOTPERFCMD_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public bool NOTPERFCMD { get { return nOTPERFCMD_; } set { nOTPERFCMD_ = value; } } /// Field number for the "MOT_STATUS" field. public const int MOTSTATUSFieldNumber = 11; private uint mOTSTATUS_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public uint MOTSTATUS { get { return mOTSTATUS_; } set { mOTSTATUS_ = value; } } /// Field number for the "DIR" field. public const int DIRFieldNumber = 12; private bool dIR_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public bool DIR { get { return dIR_; } set { dIR_ = value; } } /// Field number for the "SW_EVN" field. public const int SWEVNFieldNumber = 13; private bool sWEVN_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public bool SWEVN { get { return sWEVN_; } set { sWEVN_ = value; } } /// Field number for the "SW_F" field. public const int SWFFieldNumber = 14; private bool sWF_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public bool SWF { get { return sWF_; } set { sWF_ = value; } } /// Field number for the "BUSY" field. public const int BUSYFieldNumber = 15; private bool bUSY_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public bool BUSY { get { return bUSY_; } set { bUSY_ = value; } } /// Field number for the "HiZ" field. public const int HiZFieldNumber = 16; private bool hiZ_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public bool HiZ { get { return hiZ_; } set { hiZ_ = value; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public override bool Equals(object other) { return Equals(other as StubMotorStatusResponse); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public bool Equals(StubMotorStatusResponse other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } if (MotorID != other.MotorID) return false; if (SCKMOD != other.SCKMOD) return false; if (STEPLOSSB != other.STEPLOSSB) return false; if (STEPLOSSA != other.STEPLOSSA) return false; if (OCD != other.OCD) return false; if (THSD != other.THSD) return false; if (THWRN != other.THWRN) return false; if (UVLO != other.UVLO) return false; if (WRONGCMD != other.WRONGCMD) return false; if (NOTPERFCMD != other.NOTPERFCMD) return false; if (MOTSTATUS != other.MOTSTATUS) return false; if (DIR != other.DIR) return false; if (SWEVN != other.SWEVN) return false; if (SWF != other.SWF) return false; if (BUSY != other.BUSY) return false; if (HiZ != other.HiZ) return false; return true; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public override int GetHashCode() { int hash = 1; if (MotorID != 0) hash ^= MotorID.GetHashCode(); if (SCKMOD != false) hash ^= SCKMOD.GetHashCode(); if (STEPLOSSB != false) hash ^= STEPLOSSB.GetHashCode(); if (STEPLOSSA != false) hash ^= STEPLOSSA.GetHashCode(); if (OCD != false) hash ^= OCD.GetHashCode(); if (THSD != false) hash ^= THSD.GetHashCode(); if (THWRN != false) hash ^= THWRN.GetHashCode(); if (UVLO != false) hash ^= UVLO.GetHashCode(); if (WRONGCMD != false) hash ^= WRONGCMD.GetHashCode(); if (NOTPERFCMD != false) hash ^= NOTPERFCMD.GetHashCode(); if (MOTSTATUS != 0) hash ^= MOTSTATUS.GetHashCode(); if (DIR != false) hash ^= DIR.GetHashCode(); if (SWEVN != false) hash ^= SWEVN.GetHashCode(); if (SWF != false) hash ^= SWF.GetHashCode(); if (BUSY != false) hash ^= BUSY.GetHashCode(); if (HiZ != false) hash ^= HiZ.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 (SCKMOD != false) { output.WriteRawTag(16); output.WriteBool(SCKMOD); } if (STEPLOSSB != false) { output.WriteRawTag(24); output.WriteBool(STEPLOSSB); } if (STEPLOSSA != false) { output.WriteRawTag(32); output.WriteBool(STEPLOSSA); } if (OCD != false) { output.WriteRawTag(40); output.WriteBool(OCD); } if (THSD != false) { output.WriteRawTag(48); output.WriteBool(THSD); } if (THWRN != false) { output.WriteRawTag(56); output.WriteBool(THWRN); } if (UVLO != false) { output.WriteRawTag(64); output.WriteBool(UVLO); } if (WRONGCMD != false) { output.WriteRawTag(72); output.WriteBool(WRONGCMD); } if (NOTPERFCMD != false) { output.WriteRawTag(80); output.WriteBool(NOTPERFCMD); } if (MOTSTATUS != 0) { output.WriteRawTag(88); output.WriteUInt32(MOTSTATUS); } if (DIR != false) { output.WriteRawTag(96); output.WriteBool(DIR); } if (SWEVN != false) { output.WriteRawTag(104); output.WriteBool(SWEVN); } if (SWF != false) { output.WriteRawTag(112); output.WriteBool(SWF); } if (BUSY != false) { output.WriteRawTag(120); output.WriteBool(BUSY); } if (HiZ != false) { output.WriteRawTag(128, 1); output.WriteBool(HiZ); } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public int CalculateSize() { int size = 0; if (MotorID != 0) { size += 1 + pb::CodedOutputStream.ComputeUInt32Size(MotorID); } if (SCKMOD != false) { size += 1 + 1; } if (STEPLOSSB != false) { size += 1 + 1; } if (STEPLOSSA != false) { size += 1 + 1; } if (OCD != false) { size += 1 + 1; } if (THSD != false) { size += 1 + 1; } if (THWRN != false) { size += 1 + 1; } if (UVLO != false) { size += 1 + 1; } if (WRONGCMD != false) { size += 1 + 1; } if (NOTPERFCMD != false) { size += 1 + 1; } if (MOTSTATUS != 0) { size += 1 + pb::CodedOutputStream.ComputeUInt32Size(MOTSTATUS); } if (DIR != false) { size += 1 + 1; } if (SWEVN != false) { size += 1 + 1; } if (SWF != false) { size += 1 + 1; } if (BUSY != false) { size += 1 + 1; } if (HiZ != false) { size += 2 + 1; } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public void MergeFrom(StubMotorStatusResponse other) { if (other == null) { return; } if (other.MotorID != 0) { MotorID = other.MotorID; } if (other.SCKMOD != false) { SCKMOD = other.SCKMOD; } if (other.STEPLOSSB != false) { STEPLOSSB = other.STEPLOSSB; } if (other.STEPLOSSA != false) { STEPLOSSA = other.STEPLOSSA; } if (other.OCD != false) { OCD = other.OCD; } if (other.THSD != false) { THSD = other.THSD; } if (other.THWRN != false) { THWRN = other.THWRN; } if (other.UVLO != false) { UVLO = other.UVLO; } if (other.WRONGCMD != false) { WRONGCMD = other.WRONGCMD; } if (other.NOTPERFCMD != false) { NOTPERFCMD = other.NOTPERFCMD; } if (other.MOTSTATUS != 0) { MOTSTATUS = other.MOTSTATUS; } if (other.DIR != false) { DIR = other.DIR; } if (other.SWEVN != false) { SWEVN = other.SWEVN; } if (other.SWF != false) { SWF = other.SWF; } if (other.BUSY != false) { BUSY = other.BUSY; } if (other.HiZ != false) { HiZ = other.HiZ; } } [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: { SCKMOD = input.ReadBool(); break; } case 24: { STEPLOSSB = input.ReadBool(); break; } case 32: { STEPLOSSA = input.ReadBool(); break; } case 40: { OCD = input.ReadBool(); break; } case 48: { THSD = input.ReadBool(); break; } case 56: { THWRN = input.ReadBool(); break; } case 64: { UVLO = input.ReadBool(); break; } case 72: { WRONGCMD = input.ReadBool(); break; } case 80: { NOTPERFCMD = input.ReadBool(); break; } case 88: { MOTSTATUS = input.ReadUInt32(); break; } case 96: { DIR = input.ReadBool(); break; } case 104: { SWEVN = input.ReadBool(); break; } case 112: { SWF = input.ReadBool(); break; } case 120: { BUSY = input.ReadBool(); break; } case 128: { HiZ = input.ReadBool(); break; } } } } } #endregion } #endregion Designer generated code