// Generated by the protocol buffer compiler. DO NOT EDIT! // source: MotorJoggingRequest.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 MotorJoggingRequest.proto public static partial class MotorJoggingRequestReflection { #region Descriptor /// File descriptor for MotorJoggingRequest.proto public static pbr::FileDescriptor Descriptor { get { return descriptor; } } private static pbr::FileDescriptor descriptor; static MotorJoggingRequestReflection() { byte[] descriptorData = global::System.Convert.FromBase64String( string.Concat( "ChlNb3RvckpvZ2dpbmdSZXF1ZXN0LnByb3RvEhVUYW5nby5QTVIuRGlhZ25v", "c3RpY3MaFE1vdG9yRGlyZWN0aW9uLnByb3RvGhdIYXJkd2FyZU1vdG9yVHlw", "ZS5wcm90byKYAQoTTW90b3JKb2dnaW5nUmVxdWVzdBI4CglEaXJlY3Rpb24Y", "ASABKA4yJS5UYW5nby5QTVIuRGlhZ25vc3RpY3MuTW90b3JEaXJlY3Rpb24S", "OAoJTW90b3JUeXBlGAIgASgOMiUuVGFuZ28uUE1SLkhhcmR3YXJlLkhhcmR3", "YXJlTW90b3JUeXBlEg0KBVNwZWVkGAMgASgBQiEKH2NvbS50d2luZS50YW5n", "by5wbXIuZGlhZ25vc3RpY3NiBnByb3RvMw==")); descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, new pbr::FileDescriptor[] { global::Tango.PMR.Diagnostics.MotorDirectionReflection.Descriptor, global::Tango.PMR.Hardware.HardwareMotorTypeReflection.Descriptor, }, new pbr::GeneratedClrTypeInfo(null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Tango.PMR.Diagnostics.MotorJoggingRequest), global::Tango.PMR.Diagnostics.MotorJoggingRequest.Parser, new[]{ "Direction", "MotorType", "Speed" }, null, null, null) })); } #endregion } #region Messages public sealed partial class MotorJoggingRequest : pb::IMessage { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new MotorJoggingRequest()); [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.MotorJoggingRequestReflection.Descriptor.MessageTypes[0]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public MotorJoggingRequest() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public MotorJoggingRequest(MotorJoggingRequest other) : this() { direction_ = other.direction_; motorType_ = other.motorType_; speed_ = other.speed_; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public MotorJoggingRequest Clone() { return new MotorJoggingRequest(this); } /// Field number for the "Direction" field. public const int DirectionFieldNumber = 1; 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; } } /// Field number for the "MotorType" field. public const int MotorTypeFieldNumber = 2; private global::Tango.PMR.Hardware.HardwareMotorType motorType_ = 0; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public global::Tango.PMR.Hardware.HardwareMotorType MotorType { get { return motorType_; } set { motorType_ = value; } } /// Field number for the "Speed" field. public const int SpeedFieldNumber = 3; private double speed_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public double Speed { get { return speed_; } set { speed_ = value; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public override bool Equals(object other) { return Equals(other as MotorJoggingRequest); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public bool Equals(MotorJoggingRequest other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } if (Direction != other.Direction) return false; if (MotorType != other.MotorType) return false; if (Speed != other.Speed) return false; return true; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public override int GetHashCode() { int hash = 1; if (Direction != 0) hash ^= Direction.GetHashCode(); if (MotorType != 0) hash ^= MotorType.GetHashCode(); if (Speed != 0D) hash ^= Speed.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 (Direction != 0) { output.WriteRawTag(8); output.WriteEnum((int) Direction); } if (MotorType != 0) { output.WriteRawTag(16); output.WriteEnum((int) MotorType); } if (Speed != 0D) { output.WriteRawTag(25); output.WriteDouble(Speed); } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public int CalculateSize() { int size = 0; if (Direction != 0) { size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Direction); } if (MotorType != 0) { size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) MotorType); } if (Speed != 0D) { size += 1 + 8; } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public void MergeFrom(MotorJoggingRequest other) { if (other == null) { return; } if (other.Direction != 0) { Direction = other.Direction; } if (other.MotorType != 0) { MotorType = other.MotorType; } if (other.Speed != 0D) { Speed = other.Speed; } } [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: { direction_ = (global::Tango.PMR.Diagnostics.MotorDirection) input.ReadEnum(); break; } case 16: { motorType_ = (global::Tango.PMR.Hardware.HardwareMotorType) input.ReadEnum(); break; } case 25: { Speed = input.ReadDouble(); break; } } } } } #endregion } #endregion Designer generated code