// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: MotorHomingRequest.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 MotorHomingRequest.proto
public static partial class MotorHomingRequestReflection {
#region Descriptor
/// File descriptor for MotorHomingRequest.proto
public static pbr::FileDescriptor Descriptor {
get { return descriptor; }
}
private static pbr::FileDescriptor descriptor;
static MotorHomingRequestReflection() {
byte[] descriptorData = global::System.Convert.FromBase64String(
string.Concat(
"ChhNb3RvckhvbWluZ1JlcXVlc3QucHJvdG8SFVRhbmdvLlBNUi5EaWFnbm9z",
"dGljcxoXSGFyZHdhcmVNb3RvclR5cGUucHJvdG8aFE1vdG9yRGlyZWN0aW9u",
"LnByb3RvIpcBChJNb3RvckhvbWluZ1JlcXVlc3QSOAoJTW90b3JUeXBlGAEg",
"ASgOMiUuVGFuZ28uUE1SLkhhcmR3YXJlLkhhcmR3YXJlTW90b3JUeXBlEg0K",
"BVNwZWVkGAIgASgBEjgKCURpcmVjdGlvbhgDIAEoDjIlLlRhbmdvLlBNUi5E",
"aWFnbm9zdGljcy5Nb3RvckRpcmVjdGlvbkIhCh9jb20udHdpbmUudGFuZ28u",
"cG1yLmRpYWdub3N0aWNzYgZwcm90bzM="));
descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
new pbr::FileDescriptor[] { global::Tango.PMR.Hardware.HardwareMotorTypeReflection.Descriptor, global::Tango.PMR.Diagnostics.MotorDirectionReflection.Descriptor, },
new pbr::GeneratedClrTypeInfo(null, new pbr::GeneratedClrTypeInfo[] {
new pbr::GeneratedClrTypeInfo(typeof(global::Tango.PMR.Diagnostics.MotorHomingRequest), global::Tango.PMR.Diagnostics.MotorHomingRequest.Parser, new[]{ "MotorType", "Speed", "Direction" }, null, null, null)
}));
}
#endregion
}
#region Messages
public sealed partial class MotorHomingRequest : pb::IMessage {
private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new MotorHomingRequest());
[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.MotorHomingRequestReflection.Descriptor.MessageTypes[0]; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
pbr::MessageDescriptor pb::IMessage.Descriptor {
get { return Descriptor; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public MotorHomingRequest() {
OnConstruction();
}
partial void OnConstruction();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public MotorHomingRequest(MotorHomingRequest other) : this() {
motorType_ = other.motorType_;
speed_ = other.speed_;
direction_ = other.direction_;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public MotorHomingRequest Clone() {
return new MotorHomingRequest(this);
}
/// Field number for the "MotorType" field.
public const int MotorTypeFieldNumber = 1;
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 = 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 MotorHomingRequest);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public bool Equals(MotorHomingRequest other) {
if (ReferenceEquals(other, null)) {
return false;
}
if (ReferenceEquals(other, this)) {
return true;
}
if (MotorType != other.MotorType) 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 (MotorType != 0) hash ^= MotorType.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 (MotorType != 0) {
output.WriteRawTag(8);
output.WriteEnum((int) MotorType);
}
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 (MotorType != 0) {
size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) MotorType);
}
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(MotorHomingRequest other) {
if (other == null) {
return;
}
if (other.MotorType != 0) {
MotorType = other.MotorType;
}
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: {
motorType_ = (global::Tango.PMR.Hardware.HardwareMotorType) input.ReadEnum();
break;
}
case 17: {
Speed = input.ReadDouble();
break;
}
case 24: {
direction_ = (global::Tango.PMR.Diagnostics.MotorDirection) input.ReadEnum();
break;
}
}
}
}
}
#endregion
}
#endregion Designer generated code