aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/Tango.PMR/Printing/JobRequest.cs
diff options
context:
space:
mode:
Diffstat (limited to 'Software/Visual_Studio/Tango.PMR/Printing/JobRequest.cs')
-rw-r--r--Software/Visual_Studio/Tango.PMR/Printing/JobRequest.cs37
1 files changed, 33 insertions, 4 deletions
diff --git a/Software/Visual_Studio/Tango.PMR/Printing/JobRequest.cs b/Software/Visual_Studio/Tango.PMR/Printing/JobRequest.cs
index 4f29c71c6..7395544ad 100644
--- a/Software/Visual_Studio/Tango.PMR/Printing/JobRequest.cs
+++ b/Software/Visual_Studio/Tango.PMR/Printing/JobRequest.cs
@@ -23,13 +23,14 @@ namespace Tango.PMR.Printing {
byte[] descriptorData = global::System.Convert.FromBase64String(
string.Concat(
"ChBKb2JSZXF1ZXN0LnByb3RvEhJUYW5nby5QTVIuUHJpbnRpbmcaD0pvYlRp",
- "Y2tldC5wcm90byI+CgpKb2JSZXF1ZXN0EjAKCUpvYlRpY2tldBgBIAEoCzId",
- "LlRhbmdvLlBNUi5QcmludGluZy5Kb2JUaWNrZXRCHgocY29tLnR3aW5lLnRh",
- "bmdvLnBtci5wcmludGluZ2IGcHJvdG8z"));
+ "Y2tldC5wcm90byJeCgpKb2JSZXF1ZXN0EjAKCUpvYlRpY2tldBgBIAEoCzId",
+ "LlRhbmdvLlBNUi5QcmludGluZy5Kb2JUaWNrZXQSHgoWRmlyc3RVbml0U3Rh",
+ "cnRQb3NpdGlvbhgCIAEoAUIeChxjb20udHdpbmUudGFuZ28ucG1yLnByaW50",
+ "aW5nYgZwcm90bzM="));
descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
new pbr::FileDescriptor[] { global::Tango.PMR.Printing.JobTicketReflection.Descriptor, },
new pbr::GeneratedClrTypeInfo(null, new pbr::GeneratedClrTypeInfo[] {
- new pbr::GeneratedClrTypeInfo(typeof(global::Tango.PMR.Printing.JobRequest), global::Tango.PMR.Printing.JobRequest.Parser, new[]{ "JobTicket" }, null, null, null)
+ new pbr::GeneratedClrTypeInfo(typeof(global::Tango.PMR.Printing.JobRequest), global::Tango.PMR.Printing.JobRequest.Parser, new[]{ "JobTicket", "FirstUnitStartPosition" }, null, null, null)
}));
}
#endregion
@@ -61,6 +62,7 @@ namespace Tango.PMR.Printing {
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public JobRequest(JobRequest other) : this() {
JobTicket = other.jobTicket_ != null ? other.JobTicket.Clone() : null;
+ firstUnitStartPosition_ = other.firstUnitStartPosition_;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
@@ -79,6 +81,17 @@ namespace Tango.PMR.Printing {
}
}
+ /// <summary>Field number for the "FirstUnitStartPosition" field.</summary>
+ public const int FirstUnitStartPositionFieldNumber = 2;
+ private double firstUnitStartPosition_;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ public double FirstUnitStartPosition {
+ get { return firstUnitStartPosition_; }
+ set {
+ firstUnitStartPosition_ = value;
+ }
+ }
+
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public override bool Equals(object other) {
return Equals(other as JobRequest);
@@ -93,6 +106,7 @@ namespace Tango.PMR.Printing {
return true;
}
if (!object.Equals(JobTicket, other.JobTicket)) return false;
+ if (FirstUnitStartPosition != other.FirstUnitStartPosition) return false;
return true;
}
@@ -100,6 +114,7 @@ namespace Tango.PMR.Printing {
public override int GetHashCode() {
int hash = 1;
if (jobTicket_ != null) hash ^= JobTicket.GetHashCode();
+ if (FirstUnitStartPosition != 0D) hash ^= FirstUnitStartPosition.GetHashCode();
return hash;
}
@@ -114,6 +129,10 @@ namespace Tango.PMR.Printing {
output.WriteRawTag(10);
output.WriteMessage(JobTicket);
}
+ if (FirstUnitStartPosition != 0D) {
+ output.WriteRawTag(17);
+ output.WriteDouble(FirstUnitStartPosition);
+ }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
@@ -122,6 +141,9 @@ namespace Tango.PMR.Printing {
if (jobTicket_ != null) {
size += 1 + pb::CodedOutputStream.ComputeMessageSize(JobTicket);
}
+ if (FirstUnitStartPosition != 0D) {
+ size += 1 + 8;
+ }
return size;
}
@@ -136,6 +158,9 @@ namespace Tango.PMR.Printing {
}
JobTicket.MergeFrom(other.JobTicket);
}
+ if (other.FirstUnitStartPosition != 0D) {
+ FirstUnitStartPosition = other.FirstUnitStartPosition;
+ }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
@@ -153,6 +178,10 @@ namespace Tango.PMR.Printing {
input.ReadMessage(jobTicket_);
break;
}
+ case 17: {
+ FirstUnitStartPosition = input.ReadDouble();
+ break;
+ }
}
}
}