// Generated by the protocol buffer compiler. DO NOT EDIT! // source: StubMotorStopResponse.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 StubMotorStopResponse.proto public static partial class StubMotorStopResponseReflection { #region Descriptor /// File descriptor for StubMotorStopResponse.proto public static pbr::FileDescriptor Descriptor { get { return descriptor; } } private static pbr::FileDescriptor descriptor; static StubMotorStopResponseReflection() { byte[] descriptorData = global::System.Convert.FromBase64String( string.Concat( "ChtTdHViTW90b3JTdG9wUmVzcG9uc2UucHJvdG8SD1RhbmdvLlBNUi5TdHVi", "cyJYChVTdHViTW90b3JTdG9wUmVzcG9uc2USEAoITW90b3JfSUQYASABKA0S", "EgoKTW90X1N0YXR1cxgCIAEoDRILCgNIaVoYAyABKAgSDAoEQlVTWRgEIAEo", "CEIbChljb20udHdpbmUudGFuZ28ucG1yLnN0dWJzYgZwcm90bzM=")); descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, new pbr::FileDescriptor[] { }, new pbr::GeneratedClrTypeInfo(null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Tango.PMR.Stubs.StubMotorStopResponse), global::Tango.PMR.Stubs.StubMotorStopResponse.Parser, new[]{ "MotorID", "MotStatus", "HiZ", "BUSY" }, null, null, null) })); } #endregion } #region Messages public sealed partial class StubMotorStopResponse : pb::IMessage { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new StubMotorStopResponse()); [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.StubMotorStopResponseReflection.Descriptor.MessageTypes[0]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public StubMotorStopResponse() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public StubMotorStopResponse(StubMotorStopResponse other) : this() { motorID_ = other.motorID_; motStatus_ = other.motStatus_; hiZ_ = other.hiZ_; bUSY_ = other.bUSY_; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public StubMotorStopResponse Clone() { return new StubMotorStopResponse(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 "Mot_Status" field. public const int MotStatusFieldNumber = 2; private uint motStatus_; /// /// Stopped / Acceleration / Deceleration / Constant speed /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public uint MotStatus { get { return motStatus_; } set { motStatus_ = value; } } /// Field number for the "HiZ" field. public const int HiZFieldNumber = 3; private bool hiZ_; /// /// 1 - high impedance state. /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public bool HiZ { get { return hiZ_; } set { hiZ_ = value; } } /// Field number for the "BUSY" field. public const int BUSYFieldNumber = 4; private bool bUSY_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public bool BUSY { get { return bUSY_; } set { bUSY_ = value; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public override bool Equals(object other) { return Equals(other as StubMotorStopResponse); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public bool Equals(StubMotorStopResponse other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } if (MotorID != other.MotorID) return false; if (MotStatus != other.MotStatus) return false; if (HiZ != other.HiZ) return false; if (BUSY != other.BUSY) return false; return true; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public override int GetHashCode() { int hash = 1; if (MotorID != 0) hash ^= MotorID.GetHashCode(); if (MotStatus != 0) hash ^= MotStatus.GetHashCode(); if (HiZ != false) hash ^= HiZ.GetHashCode(); if (BUSY != false) hash ^= BUSY.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 (MotStatus != 0) { output.WriteRawTag(16); output.WriteUInt32(MotStatus); } if (HiZ != false) { output.WriteRawTag(24); output.WriteBool(HiZ); } if (BUSY != false) { output.WriteRawTag(32); output.WriteBool(BUSY); } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public int CalculateSize() { int size = 0; if (MotorID != 0) { size += 1 + pb::CodedOutputStream.ComputeUInt32Size(MotorID); } if (MotStatus != 0) { size += 1 + pb::CodedOutputStream.ComputeUInt32Size(MotStatus); } if (HiZ != false) { size += 1 + 1; } if (BUSY != false) { size += 1 + 1; } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public void MergeFrom(StubMotorStopResponse other) { if (other == null) { return; } if (other.MotorID != 0) { MotorID = other.MotorID; } if (other.MotStatus != 0) { MotStatus = other.MotStatus; } if (other.HiZ != false) { HiZ = other.HiZ; } if (other.BUSY != false) { BUSY = other.BUSY; } } [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: { MotStatus = input.ReadUInt32(); break; } case 24: { HiZ = input.ReadBool(); break; } case 32: { BUSY = input.ReadBool(); break; } } } } } #endregion } #endregion Designer generated code