// Generated by the protocol buffer compiler. DO NOT EDIT! // source: DispenserHomingRequest.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.Diagnostics { /// Holder for reflection information generated from DispenserHomingRequest.proto public static partial class DispenserHomingRequestReflection { #region Descriptor /// File descriptor for DispenserHomingRequest.proto public static pbr::FileDescriptor Descriptor { get { return descriptor; } } private static pbr::FileDescriptor descriptor; static DispenserHomingRequestReflection() { byte[] descriptorData = global::System.Convert.FromBase64String( string.Concat( "ChxEaXNwZW5zZXJIb21pbmdSZXF1ZXN0LnByb3RvEhVUYW5nby5QTVIuRGlh", "Z25vc3RpY3MaFE1vdG9yRGlyZWN0aW9uLnByb3RvInAKFkRpc3BlbnNlckhv", "bWluZ1JlcXVlc3QSDQoFSW5kZXgYASABKAUSDQoFU3BlZWQYAiABKAESOAoJ", "RGlyZWN0aW9uGAMgASgOMiUuVGFuZ28uUE1SLkRpYWdub3N0aWNzLk1vdG9y", "RGlyZWN0aW9uQiEKH2NvbS50d2luZS50YW5nby5wbXIuZGlhZ25vc3RpY3Ni", "BnByb3RvMw==")); descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, new pbr::FileDescriptor[] { global::Tango.PMR.Diagnostics.MotorDirectionReflection.Descriptor, }, new pbr::GeneratedClrTypeInfo(null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Tango.PMR.Diagnostics.DispenserHomingRequest), global::Tango.PMR.Diagnostics.DispenserHomingRequest.Parser, new[]{ "Index", "Speed", "Direction" }, null, null, null) })); } #endregion } #region Messages public sealed partial class DispenserHomingRequest : pb::IMessage { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new DispenserHomingRequest()); [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.Diagnostics.DispenserHomingRequestReflection.Descriptor.MessageTypes[0]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public DispenserHomingRequest() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public DispenserHomingRequest(DispenserHomingRequest other) : this() { index_ = other.index_; speed_ = other.speed_; direction_ = other.direction_; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public DispenserHomingRequest Clone() { return new DispenserHomingRequest(this); } /// Field number for the "Index" field. public const int IndexFieldNumber = 1; private int index_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public int Index { get { return index_; } set { index_ = value; } } /// Field number for the "Speed" field. public const int SpeedFieldNumber = 2; private double speed_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public double Speed { get { return speed_; } set { speed_ = value; } } /// Field number for the "Direction" field. public const int DirectionFieldNumber = 3; private global::Tango.PMR.Diagnostics.MotorDirection direction_ = 0; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public global::Tango.PMR.Diagnostics.MotorDirection Direction { get { return direction_; } set { direction_ = value; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public override bool Equals(object other) { return Equals(other as DispenserHomingRequest); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public bool Equals(DispenserHomingRequest other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } if (Index != other.Index) return false; if (Speed != other.Speed) return false; if (Direction != other.Direction) return false; return true; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public override int GetHashCode() { int hash = 1; if (Index != 0) hash ^= Index.GetHashCode(); if (Speed != 0D) hash ^= Speed.GetHashCode(); if (Direction != 0) hash ^= Direction.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 (Index != 0) { output.WriteRawTag(8); output.WriteInt32(Index); } if (Speed != 0D) { output.WriteRawTag(17); output.WriteDouble(Speed); } if (Direction != 0) { output.WriteRawTag(24); output.WriteEnum((int) Direction); } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public int CalculateSize() { int size = 0; if (Index != 0) { size += 1 + pb::CodedOutputStream.ComputeInt32Size(Index); } if (Speed != 0D) { size += 1 + 8; } if (Direction != 0) { size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Direction); } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public void MergeFrom(DispenserHomingRequest other) { if (other == null) { return; } if (other.Index != 0) { Index = other.Index; } if (other.Speed != 0D) { Speed = other.Speed; } if (other.Direction != 0) { Direction = other.Direction; } } [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: { Index = input.ReadInt32(); break; } case 17: { Speed = input.ReadDouble(); break; } case 24: { direction_ = (global::Tango.PMR.Diagnostics.MotorDirection) input.ReadEnum(); break; } } } } } #endregion } #endregion Designer generated code