// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: DispenserJoggingRequest.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 DispenserJoggingRequest.proto
public static partial class DispenserJoggingRequestReflection {
#region Descriptor
/// File descriptor for DispenserJoggingRequest.proto
public static pbr::FileDescriptor Descriptor {
get { return descriptor; }
}
private static pbr::FileDescriptor descriptor;
static DispenserJoggingRequestReflection() {
byte[] descriptorData = global::System.Convert.FromBase64String(
string.Concat(
"Ch1EaXNwZW5zZXJKb2dnaW5nUmVxdWVzdC5wcm90bxIVVGFuZ28uUE1SLkRp",
"YWdub3N0aWNzGhRNb3RvckRpcmVjdGlvbi5wcm90byJxChdEaXNwZW5zZXJK",
"b2dnaW5nUmVxdWVzdBI4CglEaXJlY3Rpb24YASABKA4yJS5UYW5nby5QTVIu",
"RGlhZ25vc3RpY3MuTW90b3JEaXJlY3Rpb24SDQoFSW5kZXgYAiABKAUSDQoF",
"U3BlZWQYAyABKAFCIQofY29tLnR3aW5lLnRhbmdvLnBtci5kaWFnbm9zdGlj",
"c2IGcHJvdG8z"));
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.DispenserJoggingRequest), global::Tango.PMR.Diagnostics.DispenserJoggingRequest.Parser, new[]{ "Direction", "Index", "Speed" }, null, null, null)
}));
}
#endregion
}
#region Messages
public sealed partial class DispenserJoggingRequest : pb::IMessage {
private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new DispenserJoggingRequest());
[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.DispenserJoggingRequestReflection.Descriptor.MessageTypes[0]; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
pbr::MessageDescriptor pb::IMessage.Descriptor {
get { return Descriptor; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public DispenserJoggingRequest() {
OnConstruction();
}
partial void OnConstruction();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public DispenserJoggingRequest(DispenserJoggingRequest other) : this() {
direction_ = other.direction_;
index_ = other.index_;
speed_ = other.speed_;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public DispenserJoggingRequest Clone() {
return new DispenserJoggingRequest(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 "Index" field.
public const int IndexFieldNumber = 2;
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 = 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 DispenserJoggingRequest);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public bool Equals(DispenserJoggingRequest other) {
if (ReferenceEquals(other, null)) {
return false;
}
if (ReferenceEquals(other, this)) {
return true;
}
if (Direction != other.Direction) return false;
if (Index != other.Index) 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 (Index != 0) hash ^= Index.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 (Index != 0) {
output.WriteRawTag(16);
output.WriteInt32(Index);
}
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 (Index != 0) {
size += 1 + pb::CodedOutputStream.ComputeInt32Size(Index);
}
if (Speed != 0D) {
size += 1 + 8;
}
return size;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void MergeFrom(DispenserJoggingRequest other) {
if (other == null) {
return;
}
if (other.Direction != 0) {
Direction = other.Direction;
}
if (other.Index != 0) {
Index = other.Index;
}
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: {
Index = input.ReadInt32();
break;
}
case 25: {
Speed = input.ReadDouble();
break;
}
}
}
}
}
#endregion
}
#endregion Designer generated code