// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: HardwareWinder.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.Hardware {
/// Holder for reflection information generated from HardwareWinder.proto
public static partial class HardwareWinderReflection {
#region Descriptor
/// File descriptor for HardwareWinder.proto
public static pbr::FileDescriptor Descriptor {
get { return descriptor; }
}
private static pbr::FileDescriptor descriptor;
static HardwareWinderReflection() {
byte[] descriptorData = global::System.Convert.FromBase64String(
string.Concat(
"ChRIYXJkd2FyZVdpbmRlci5wcm90bxISVGFuZ28uUE1SLkhhcmR3YXJlGhhI",
"YXJkd2FyZVdpbmRlclR5cGUucHJvdG8icwoOSGFyZHdhcmVXaW5kZXISQgoS",
"SGFyZHdhcmVXaW5kZXJUeXBlGAEgASgOMiYuVGFuZ28uUE1SLkhhcmR3YXJl",
"LkhhcmR3YXJlV2luZGVyVHlwZRIdChVNaWxsaW1ldGVyUGVyUm90YXRpb24Y",
"AiABKAVCHgocY29tLnR3aW5lLnRhbmdvLnBtci5oYXJkd2FyZWIGcHJvdG8z"));
descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
new pbr::FileDescriptor[] { global::Tango.PMR.Hardware.HardwareWinderTypeReflection.Descriptor, },
new pbr::GeneratedClrTypeInfo(null, new pbr::GeneratedClrTypeInfo[] {
new pbr::GeneratedClrTypeInfo(typeof(global::Tango.PMR.Hardware.HardwareWinder), global::Tango.PMR.Hardware.HardwareWinder.Parser, new[]{ "HardwareWinderType", "MillimeterPerRotation" }, null, null, null)
}));
}
#endregion
}
#region Messages
public sealed partial class HardwareWinder : pb::IMessage {
private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new HardwareWinder());
[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.Hardware.HardwareWinderReflection.Descriptor.MessageTypes[0]; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
pbr::MessageDescriptor pb::IMessage.Descriptor {
get { return Descriptor; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public HardwareWinder() {
OnConstruction();
}
partial void OnConstruction();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public HardwareWinder(HardwareWinder other) : this() {
hardwareWinderType_ = other.hardwareWinderType_;
millimeterPerRotation_ = other.millimeterPerRotation_;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public HardwareWinder Clone() {
return new HardwareWinder(this);
}
/// Field number for the "HardwareWinderType" field.
public const int HardwareWinderTypeFieldNumber = 1;
private global::Tango.PMR.Hardware.HardwareWinderType hardwareWinderType_ = 0;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public global::Tango.PMR.Hardware.HardwareWinderType HardwareWinderType {
get { return hardwareWinderType_; }
set {
hardwareWinderType_ = value;
}
}
/// Field number for the "MillimeterPerRotation" field.
public const int MillimeterPerRotationFieldNumber = 2;
private int millimeterPerRotation_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public int MillimeterPerRotation {
get { return millimeterPerRotation_; }
set {
millimeterPerRotation_ = value;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public override bool Equals(object other) {
return Equals(other as HardwareWinder);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public bool Equals(HardwareWinder other) {
if (ReferenceEquals(other, null)) {
return false;
}
if (ReferenceEquals(other, this)) {
return true;
}
if (HardwareWinderType != other.HardwareWinderType) return false;
if (MillimeterPerRotation != other.MillimeterPerRotation) return false;
return true;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public override int GetHashCode() {
int hash = 1;
if (HardwareWinderType != 0) hash ^= HardwareWinderType.GetHashCode();
if (MillimeterPerRotation != 0) hash ^= MillimeterPerRotation.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 (HardwareWinderType != 0) {
output.WriteRawTag(8);
output.WriteEnum((int) HardwareWinderType);
}
if (MillimeterPerRotation != 0) {
output.WriteRawTag(16);
output.WriteInt32(MillimeterPerRotation);
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public int CalculateSize() {
int size = 0;
if (HardwareWinderType != 0) {
size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) HardwareWinderType);
}
if (MillimeterPerRotation != 0) {
size += 1 + pb::CodedOutputStream.ComputeInt32Size(MillimeterPerRotation);
}
return size;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void MergeFrom(HardwareWinder other) {
if (other == null) {
return;
}
if (other.HardwareWinderType != 0) {
HardwareWinderType = other.HardwareWinderType;
}
if (other.MillimeterPerRotation != 0) {
MillimeterPerRotation = other.MillimeterPerRotation;
}
}
[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: {
hardwareWinderType_ = (global::Tango.PMR.Hardware.HardwareWinderType) input.ReadEnum();
break;
}
case 16: {
MillimeterPerRotation = input.ReadInt32();
break;
}
}
}
}
}
#endregion
}
#endregion Designer generated code