// Generated by the protocol buffer compiler. DO NOT EDIT! // source: JobRequest.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 JobRequest.proto public static partial class JobRequestReflection { #region Descriptor /// File descriptor for JobRequest.proto public static pbr::FileDescriptor Descriptor { get { return descriptor; } } private static pbr::FileDescriptor descriptor; static JobRequestReflection() { byte[] descriptorData = global::System.Convert.FromBase64String( string.Concat( "ChBKb2JSZXF1ZXN0LnByb3RvEhJUYW5nby5QTVIuUHJpbnRpbmcaD0pvYlRp", "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", "FirstUnitStartPosition" }, null, null, null) })); } #endregion } #region Messages public sealed partial class JobRequest : pb::IMessage { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new JobRequest()); [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.JobRequestReflection.Descriptor.MessageTypes[0]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public JobRequest() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public JobRequest(JobRequest other) : this() { JobTicket = other.jobTicket_ != null ? other.JobTicket.Clone() : null; firstUnitStartPosition_ = other.firstUnitStartPosition_; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public JobRequest Clone() { return new JobRequest(this); } /// Field number for the "JobTicket" field. public const int JobTicketFieldNumber = 1; private global::Tango.PMR.Printing.JobTicket jobTicket_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public global::Tango.PMR.Printing.JobTicket JobTicket { get { return jobTicket_; } set { jobTicket_ = value; } } /// Field number for the "FirstUnitStartPosition" field. 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); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public bool Equals(JobRequest other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } if (!object.Equals(JobTicket, other.JobTicket)) return false; if (FirstUnitStartPosition != other.FirstUnitStartPosition) return false; return true; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public override int GetHashCode() { int hash = 1; if (jobTicket_ != null) hash ^= JobTicket.GetHashCode(); if (FirstUnitStartPosition != 0D) hash ^= FirstUnitStartPosition.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 (jobTicket_ != null) { output.WriteRawTag(10); output.WriteMessage(JobTicket); } if (FirstUnitStartPosition != 0D) { output.WriteRawTag(17); output.WriteDouble(FirstUnitStartPosition); } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public int CalculateSize() { int size = 0; if (jobTicket_ != null) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(JobTicket); } if (FirstUnitStartPosition != 0D) { size += 1 + 8; } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public void MergeFrom(JobRequest other) { if (other == null) { return; } if (other.jobTicket_ != null) { if (jobTicket_ == null) { jobTicket_ = new global::Tango.PMR.Printing.JobTicket(); } JobTicket.MergeFrom(other.JobTicket); } if (other.FirstUnitStartPosition != 0D) { FirstUnitStartPosition = other.FirstUnitStartPosition; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public void MergeFrom(pb::CodedInputStream input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: input.SkipLastField(); break; case 10: { if (jobTicket_ == null) { jobTicket_ = new global::Tango.PMR.Printing.JobTicket(); } input.ReadMessage(jobTicket_); break; } case 17: { FirstUnitStartPosition = input.ReadDouble(); break; } } } } } #endregion } #endregion Designer generated code