// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: JobSpool.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.Printing {
/// Holder for reflection information generated from JobSpool.proto
public static partial class JobSpoolReflection {
#region Descriptor
/// File descriptor for JobSpool.proto
public static pbr::FileDescriptor Descriptor {
get { return descriptor; }
}
private static pbr::FileDescriptor descriptor;
static JobSpoolReflection() {
byte[] descriptorData = global::System.Convert.FromBase64String(
string.Concat(
"Cg5Kb2JTcG9vbC5wcm90bxISVGFuZ28uUE1SLlByaW50aW5nGhJKb2JTcG9v",
"bFR5cGUucHJvdG8iuAIKCEpvYlNwb29sEjYKDEpvYlNwb29sVHlwZRgBIAEo",
"DjIgLlRhbmdvLlBNUi5QcmludGluZy5Kb2JTcG9vbFR5cGUSDgoGTGVuZ3Ro",
"GAIgASgBEg4KBldlaWdodBgDIAEoARIQCghEaWFtZXRlchgEIAEoARIbChNS",
"b3RhdGlvbnNQZXJQYXNzYWdlGAUgASgBEhkKEVN0YXJ0T2Zmc2V0UHVsc2Vz",
"GAYgASgFEhMKC0JhY2tpbmdSYXRlGAcgASgFEhsKE1NlZ21lbnRPZmZzZXRQ",
"dWxzZXMYCCABKAUSGQoRQm90dG9tQmFja2luZ1JhdGUYCSABKAUSIwobTGlt",
"aXRTd2l0Y2hTdGFydFBvaW50T2Zmc2V0GAogASgFEhgKEEJ0c3JTcG9vbFRl",
"bnNpb24YCyABKAVCHgocY29tLnR3aW5lLnRhbmdvLnBtci5wcmludGluZ2IG",
"cHJvdG8z"));
descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
new pbr::FileDescriptor[] { global::Tango.PMR.Printing.JobSpoolTypeReflection.Descriptor, },
new pbr::GeneratedClrTypeInfo(null, new pbr::GeneratedClrTypeInfo[] {
new pbr::GeneratedClrTypeInfo(typeof(global::Tango.PMR.Printing.JobSpool), global::Tango.PMR.Printing.JobSpool.Parser, new[]{ "JobSpoolType", "Length", "Weight", "Diameter", "RotationsPerPassage", "StartOffsetPulses", "BackingRate", "SegmentOffsetPulses", "BottomBackingRate", "LimitSwitchStartPointOffset", "BtsrSpoolTension" }, null, null, null)
}));
}
#endregion
}
#region Messages
public sealed partial class JobSpool : pb::IMessage {
private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new JobSpool());
[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.Printing.JobSpoolReflection.Descriptor.MessageTypes[0]; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
pbr::MessageDescriptor pb::IMessage.Descriptor {
get { return Descriptor; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public JobSpool() {
OnConstruction();
}
partial void OnConstruction();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public JobSpool(JobSpool other) : this() {
jobSpoolType_ = other.jobSpoolType_;
length_ = other.length_;
weight_ = other.weight_;
diameter_ = other.diameter_;
rotationsPerPassage_ = other.rotationsPerPassage_;
startOffsetPulses_ = other.startOffsetPulses_;
backingRate_ = other.backingRate_;
segmentOffsetPulses_ = other.segmentOffsetPulses_;
bottomBackingRate_ = other.bottomBackingRate_;
limitSwitchStartPointOffset_ = other.limitSwitchStartPointOffset_;
btsrSpoolTension_ = other.btsrSpoolTension_;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public JobSpool Clone() {
return new JobSpool(this);
}
/// Field number for the "JobSpoolType" field.
public const int JobSpoolTypeFieldNumber = 1;
private global::Tango.PMR.Printing.JobSpoolType jobSpoolType_ = 0;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public global::Tango.PMR.Printing.JobSpoolType JobSpoolType {
get { return jobSpoolType_; }
set {
jobSpoolType_ = value;
}
}
/// Field number for the "Length" field.
public const int LengthFieldNumber = 2;
private double length_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public double Length {
get { return length_; }
set {
length_ = value;
}
}
/// Field number for the "Weight" field.
public const int WeightFieldNumber = 3;
private double weight_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public double Weight {
get { return weight_; }
set {
weight_ = value;
}
}
/// Field number for the "Diameter" field.
public const int DiameterFieldNumber = 4;
private double diameter_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public double Diameter {
get { return diameter_; }
set {
diameter_ = value;
}
}
/// Field number for the "RotationsPerPassage" field.
public const int RotationsPerPassageFieldNumber = 5;
private double rotationsPerPassage_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public double RotationsPerPassage {
get { return rotationsPerPassage_; }
set {
rotationsPerPassage_ = value;
}
}
/// Field number for the "StartOffsetPulses" field.
public const int StartOffsetPulsesFieldNumber = 6;
private int startOffsetPulses_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public int StartOffsetPulses {
get { return startOffsetPulses_; }
set {
startOffsetPulses_ = value;
}
}
/// Field number for the "BackingRate" field.
public const int BackingRateFieldNumber = 7;
private int backingRate_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public int BackingRate {
get { return backingRate_; }
set {
backingRate_ = value;
}
}
/// Field number for the "SegmentOffsetPulses" field.
public const int SegmentOffsetPulsesFieldNumber = 8;
private int segmentOffsetPulses_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public int SegmentOffsetPulses {
get { return segmentOffsetPulses_; }
set {
segmentOffsetPulses_ = value;
}
}
/// Field number for the "BottomBackingRate" field.
public const int BottomBackingRateFieldNumber = 9;
private int bottomBackingRate_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public int BottomBackingRate {
get { return bottomBackingRate_; }
set {
bottomBackingRate_ = value;
}
}
/// Field number for the "LimitSwitchStartPointOffset" field.
public const int LimitSwitchStartPointOffsetFieldNumber = 10;
private int limitSwitchStartPointOffset_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public int LimitSwitchStartPointOffset {
get { return limitSwitchStartPointOffset_; }
set {
limitSwitchStartPointOffset_ = value;
}
}
/// Field number for the "BtsrSpoolTension" field.
public const int BtsrSpoolTensionFieldNumber = 11;
private int btsrSpoolTension_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public int BtsrSpoolTension {
get { return btsrSpoolTension_; }
set {
btsrSpoolTension_ = value;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public override bool Equals(object other) {
return Equals(other as JobSpool);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public bool Equals(JobSpool other) {
if (ReferenceEquals(other, null)) {
return false;
}
if (ReferenceEquals(other, this)) {
return true;
}
if (JobSpoolType != other.JobSpoolType) return false;
if (Length != other.Length) return false;
if (Weight != other.Weight) return false;
if (Diameter != other.Diameter) return false;
if (RotationsPerPassage != other.RotationsPerPassage) return false;
if (StartOffsetPulses != other.StartOffsetPulses) return false;
if (BackingRate != other.BackingRate) return false;
if (SegmentOffsetPulses != other.SegmentOffsetPulses) return false;
if (BottomBackingRate != other.BottomBackingRate) return false;
if (LimitSwitchStartPointOffset != other.LimitSwitchStartPointOffset) return false;
if (BtsrSpoolTension != other.BtsrSpoolTension) return false;
return true;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public override int GetHashCode() {
int hash = 1;
if (JobSpoolType != 0) hash ^= JobSpoolType.GetHashCode();
if (Length != 0D) hash ^= Length.GetHashCode();
if (Weight != 0D) hash ^= Weight.GetHashCode();
if (Diameter != 0D) hash ^= Diameter.GetHashCode();
if (RotationsPerPassage != 0D) hash ^= RotationsPerPassage.GetHashCode();
if (StartOffsetPulses != 0) hash ^= StartOffsetPulses.GetHashCode();
if (BackingRate != 0) hash ^= BackingRate.GetHashCode();
if (SegmentOffsetPulses != 0) hash ^= SegmentOffsetPulses.GetHashCode();
if (BottomBackingRate != 0) hash ^= BottomBackingRate.GetHashCode();
if (LimitSwitchStartPointOffset != 0) hash ^= LimitSwitchStartPointOffset.GetHashCode();
if (BtsrSpoolTension != 0) hash ^= BtsrSpoolTension.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 (JobSpoolType != 0) {
output.WriteRawTag(8);
output.WriteEnum((int) JobSpoolType);
}
if (Length != 0D) {
output.WriteRawTag(17);
output.WriteDouble(Length);
}
if (Weight != 0D) {
output.WriteRawTag(25);
output.WriteDouble(Weight);
}
if (Diameter != 0D) {
output.WriteRawTag(33);
output.WriteDouble(Diameter);
}
if (RotationsPerPassage != 0D) {
output.WriteRawTag(41);
output.WriteDouble(RotationsPerPassage);
}
if (StartOffsetPulses != 0) {
output.WriteRawTag(48);
output.WriteInt32(StartOffsetPulses);
}
if (BackingRate != 0) {
output.WriteRawTag(56);
output.WriteInt32(BackingRate);
}
if (SegmentOffsetPulses != 0) {
output.WriteRawTag(64);
output.WriteInt32(SegmentOffsetPulses);
}
if (BottomBackingRate != 0) {
output.WriteRawTag(72);
output.WriteInt32(BottomBackingRate);
}
if (LimitSwitchStartPointOffset != 0) {
output.WriteRawTag(80);
output.WriteInt32(LimitSwitchStartPointOffset);
}
if (BtsrSpoolTension != 0) {
output.WriteRawTag(88);
output.WriteInt32(BtsrSpoolTension);
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public int CalculateSize() {
int size = 0;
if (JobSpoolType != 0) {
size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) JobSpoolType);
}
if (Length != 0D) {
size += 1 + 8;
}
if (Weight != 0D) {
size += 1 + 8;
}
if (Diameter != 0D) {
size += 1 + 8;
}
if (RotationsPerPassage != 0D) {
size += 1 + 8;
}
if (StartOffsetPulses != 0) {
size += 1 + pb::CodedOutputStream.ComputeInt32Size(StartOffsetPulses);
}
if (BackingRate != 0) {
size += 1 + pb::CodedOutputStream.ComputeInt32Size(BackingRate);
}
if (SegmentOffsetPulses != 0) {
size += 1 + pb::CodedOutputStream.ComputeInt32Size(SegmentOffsetPulses);
}
if (BottomBackingRate != 0) {
size += 1 + pb::CodedOutputStream.ComputeInt32Size(BottomBackingRate);
}
if (LimitSwitchStartPointOffset != 0) {
size += 1 + pb::CodedOutputStream.ComputeInt32Size(LimitSwitchStartPointOffset);
}
if (BtsrSpoolTension != 0) {
size += 1 + pb::CodedOutputStream.ComputeInt32Size(BtsrSpoolTension);
}
return size;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void MergeFrom(JobSpool other) {
if (other == null) {
return;
}
if (other.JobSpoolType != 0) {
JobSpoolType = other.JobSpoolType;
}
if (other.Length != 0D) {
Length = other.Length;
}
if (other.Weight != 0D) {
Weight = other.Weight;
}
if (other.Diameter != 0D) {
Diameter = other.Diameter;
}
if (other.RotationsPerPassage != 0D) {
RotationsPerPassage = other.RotationsPerPassage;
}
if (other.StartOffsetPulses != 0) {
StartOffsetPulses = other.StartOffsetPulses;
}
if (other.BackingRate != 0) {
BackingRate = other.BackingRate;
}
if (other.SegmentOffsetPulses != 0) {
SegmentOffsetPulses = other.SegmentOffsetPulses;
}
if (other.BottomBackingRate != 0) {
BottomBackingRate = other.BottomBackingRate;
}
if (other.LimitSwitchStartPointOffset != 0) {
LimitSwitchStartPointOffset = other.LimitSwitchStartPointOffset;
}
if (other.BtsrSpoolTension != 0) {
BtsrSpoolTension = other.BtsrSpoolTension;
}
}
[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: {
jobSpoolType_ = (global::Tango.PMR.Printing.JobSpoolType) input.ReadEnum();
break;
}
case 17: {
Length = input.ReadDouble();
break;
}
case 25: {
Weight = input.ReadDouble();
break;
}
case 33: {
Diameter = input.ReadDouble();
break;
}
case 41: {
RotationsPerPassage = input.ReadDouble();
break;
}
case 48: {
StartOffsetPulses = input.ReadInt32();
break;
}
case 56: {
BackingRate = input.ReadInt32();
break;
}
case 64: {
SegmentOffsetPulses = input.ReadInt32();
break;
}
case 72: {
BottomBackingRate = input.ReadInt32();
break;
}
case 80: {
LimitSwitchStartPointOffset = input.ReadInt32();
break;
}
case 88: {
BtsrSpoolTension = input.ReadInt32();
break;
}
}
}
}
}
#endregion
}
#endregion Designer generated code