// Generated by the protocol buffer compiler. DO NOT EDIT! // source: JobTicket.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 JobTicket.proto public static partial class JobTicketReflection { #region Descriptor /// File descriptor for JobTicket.proto public static pbr::FileDescriptor Descriptor { get { return descriptor; } } private static pbr::FileDescriptor descriptor; static JobTicketReflection() { byte[] descriptorData = global::System.Convert.FromBase64String( string.Concat( "Cg9Kb2JUaWNrZXQucHJvdG8SElRhbmdvLlBNUi5QcmludGluZxoQSm9iU2Vn", "bWVudC5wcm90bxoXUHJvY2Vzc1BhcmFtZXRlcnMucHJvdG8aFkpvYldpbmRp", "bmdNZXRob2QucHJvdG8aDkpvYlNwb29sLnByb3RvGhdKb2JVcGxvYWRTdHJh", "dGVneS5wcm90bxoWVGhyZWFkUGFyYW1ldGVycy5wcm90bxocSGVhZENsZWFu", "aW5nUGFyYW1ldGVycy5wcm90bxoUQnRzclBhcmFtZXRlcnMucHJvdG8itQUK", "CUpvYlRpY2tldBIMCgRHdWlkGAEgASgJEgwKBE5hbWUYAiABKAkSGgoSRW5h", "YmxlSW50ZXJTZWdtZW50GAMgASgIEhoKEkludGVyU2VnbWVudExlbmd0aBgE", "IAEoARIOCgZMZW5ndGgYBSABKAESQAoRUHJvY2Vzc1BhcmFtZXRlcnMYBiAB", "KAsyJS5UYW5nby5QTVIuUHJpbnRpbmcuUHJvY2Vzc1BhcmFtZXRlcnMSOwoN", "V2luZGluZ01ldGhvZBgHIAEoDjIkLlRhbmdvLlBNUi5QcmludGluZy5Kb2JX", "aW5kaW5nTWV0aG9kEisKBVNwb29sGAggASgLMhwuVGFuZ28uUE1SLlByaW50", "aW5nLkpvYlNwb29sEjAKCFNlZ21lbnRzGAkgAygLMh4uVGFuZ28uUE1SLlBy", "aW50aW5nLkpvYlNlZ21lbnQSPQoOVXBsb2FkU3RyYXRlZ3kYCiABKA4yJS5U", "YW5nby5QTVIuUHJpbnRpbmcuSm9iVXBsb2FkU3RyYXRlZ3kSGgoSSm9iRGVz", "Y3JpcHRpb25GaWxlGAsgASgJEhkKEUVuYWJsZUx1YnJpY2F0aW9uGAwgASgI", "EhUKDU51bWJlck9mVW5pdHMYDSABKA0SFQoNU2FtcGxlV2luZGluZxgOIAEo", "CBI+ChBUaHJlYWRQYXJhbWV0ZXJzGA8gASgLMiQuVGFuZ28uUE1SLlByaW50", "aW5nLlRocmVhZFBhcmFtZXRlcnMSSgoWSGVhZENsZWFuaW5nUGFyYW1ldGVy", "cxgQIAEoCzIqLlRhbmdvLlBNUi5QcmludGluZy5IZWFkQ2xlYW5pbmdQYXJh", "bWV0ZXJzEjYKDkJ0c3JQYXJhbWV0ZXJzGBEgASgLMh4uVGFuZ28uUE1SLkJU", "U1IuQnRzclBhcmFtZXRlcnNCHgocY29tLnR3aW5lLnRhbmdvLnBtci5wcmlu", "dGluZ2IGcHJvdG8z")); descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, new pbr::FileDescriptor[] { global::Tango.PMR.Printing.JobSegmentReflection.Descriptor, global::Tango.PMR.Printing.ProcessParametersReflection.Descriptor, global::Tango.PMR.Printing.JobWindingMethodReflection.Descriptor, global::Tango.PMR.Printing.JobSpoolReflection.Descriptor, global::Tango.PMR.Printing.JobUploadStrategyReflection.Descriptor, global::Tango.PMR.Printing.ThreadParametersReflection.Descriptor, global::Tango.PMR.Printing.HeadCleaningParametersReflection.Descriptor, global::Tango.PMR.BTSR.BtsrParametersReflection.Descriptor, }, new pbr::GeneratedClrTypeInfo(null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Tango.PMR.Printing.JobTicket), global::Tango.PMR.Printing.JobTicket.Parser, new[]{ "Guid", "Name", "EnableInterSegment", "InterSegmentLength", "Length", "ProcessParameters", "WindingMethod", "Spool", "Segments", "UploadStrategy", "JobDescriptionFile", "EnableLubrication", "NumberOfUnits", "SampleWinding", "ThreadParameters", "HeadCleaningParameters", "BtsrParameters" }, null, null, null) })); } #endregion } #region Messages public sealed partial class JobTicket : pb::IMessage { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new JobTicket()); [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.JobTicketReflection.Descriptor.MessageTypes[0]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public JobTicket() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public JobTicket(JobTicket other) : this() { guid_ = other.guid_; name_ = other.name_; enableInterSegment_ = other.enableInterSegment_; interSegmentLength_ = other.interSegmentLength_; length_ = other.length_; ProcessParameters = other.processParameters_ != null ? other.ProcessParameters.Clone() : null; windingMethod_ = other.windingMethod_; Spool = other.spool_ != null ? other.Spool.Clone() : null; segments_ = other.segments_.Clone(); uploadStrategy_ = other.uploadStrategy_; jobDescriptionFile_ = other.jobDescriptionFile_; enableLubrication_ = other.enableLubrication_; numberOfUnits_ = other.numberOfUnits_; sampleWinding_ = other.sampleWinding_; ThreadParameters = other.threadParameters_ != null ? other.ThreadParameters.Clone() : null; HeadCleaningParameters = other.headCleaningParameters_ != null ? other.HeadCleaningParameters.Clone() : null; BtsrParameters = other.btsrParameters_ != null ? other.BtsrParameters.Clone() : null; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public JobTicket Clone() { return new JobTicket(this); } /// Field number for the "Guid" field. public const int GuidFieldNumber = 1; private string guid_ = ""; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public string Guid { get { return guid_; } set { guid_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } /// Field number for the "Name" field. public const int NameFieldNumber = 2; private string name_ = ""; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public string Name { get { return name_; } set { name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } /// Field number for the "EnableInterSegment" field. public const int EnableInterSegmentFieldNumber = 3; private bool enableInterSegment_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public bool EnableInterSegment { get { return enableInterSegment_; } set { enableInterSegment_ = value; } } /// Field number for the "InterSegmentLength" field. public const int InterSegmentLengthFieldNumber = 4; private double interSegmentLength_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public double InterSegmentLength { get { return interSegmentLength_; } set { interSegmentLength_ = value; } } /// Field number for the "Length" field. public const int LengthFieldNumber = 5; private double length_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public double Length { get { return length_; } set { length_ = value; } } /// Field number for the "ProcessParameters" field. public const int ProcessParametersFieldNumber = 6; private global::Tango.PMR.Printing.ProcessParameters processParameters_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public global::Tango.PMR.Printing.ProcessParameters ProcessParameters { get { return processParameters_; } set { processParameters_ = value; } } /// Field number for the "WindingMethod" field. public const int WindingMethodFieldNumber = 7; private global::Tango.PMR.Printing.JobWindingMethod windingMethod_ = 0; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public global::Tango.PMR.Printing.JobWindingMethod WindingMethod { get { return windingMethod_; } set { windingMethod_ = value; } } /// Field number for the "Spool" field. public const int SpoolFieldNumber = 8; private global::Tango.PMR.Printing.JobSpool spool_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public global::Tango.PMR.Printing.JobSpool Spool { get { return spool_; } set { spool_ = value; } } /// Field number for the "Segments" field. public const int SegmentsFieldNumber = 9; private static readonly pb::FieldCodec _repeated_segments_codec = pb::FieldCodec.ForMessage(74, global::Tango.PMR.Printing.JobSegment.Parser); private readonly pbc::RepeatedField segments_ = new pbc::RepeatedField(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public pbc::RepeatedField Segments { get { return segments_; } } /// Field number for the "UploadStrategy" field. public const int UploadStrategyFieldNumber = 10; private global::Tango.PMR.Printing.JobUploadStrategy uploadStrategy_ = 0; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public global::Tango.PMR.Printing.JobUploadStrategy UploadStrategy { get { return uploadStrategy_; } set { uploadStrategy_ = value; } } /// Field number for the "JobDescriptionFile" field. public const int JobDescriptionFileFieldNumber = 11; private string jobDescriptionFile_ = ""; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public string JobDescriptionFile { get { return jobDescriptionFile_; } set { jobDescriptionFile_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } /// Field number for the "EnableLubrication" field. public const int EnableLubricationFieldNumber = 12; private bool enableLubrication_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public bool EnableLubrication { get { return enableLubrication_; } set { enableLubrication_ = value; } } /// Field number for the "NumberOfUnits" field. public const int NumberOfUnitsFieldNumber = 13; private uint numberOfUnits_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public uint NumberOfUnits { get { return numberOfUnits_; } set { numberOfUnits_ = value; } } /// Field number for the "SampleWinding" field. public const int SampleWindingFieldNumber = 14; private bool sampleWinding_; /// ///sample winding winds each segment densely on a small part of the spool, end moves one for the next segment /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public bool SampleWinding { get { return sampleWinding_; } set { sampleWinding_ = value; } } /// Field number for the "ThreadParameters" field. public const int ThreadParametersFieldNumber = 15; private global::Tango.PMR.Printing.ThreadParameters threadParameters_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public global::Tango.PMR.Printing.ThreadParameters ThreadParameters { get { return threadParameters_; } set { threadParameters_ = value; } } /// Field number for the "HeadCleaningParameters" field. public const int HeadCleaningParametersFieldNumber = 16; private global::Tango.PMR.Printing.HeadCleaningParameters headCleaningParameters_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public global::Tango.PMR.Printing.HeadCleaningParameters HeadCleaningParameters { get { return headCleaningParameters_; } set { headCleaningParameters_ = value; } } /// Field number for the "BtsrParameters" field. public const int BtsrParametersFieldNumber = 17; private global::Tango.PMR.BTSR.BtsrParameters btsrParameters_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public global::Tango.PMR.BTSR.BtsrParameters BtsrParameters { get { return btsrParameters_; } set { btsrParameters_ = value; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public override bool Equals(object other) { return Equals(other as JobTicket); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public bool Equals(JobTicket other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } if (Guid != other.Guid) return false; if (Name != other.Name) return false; if (EnableInterSegment != other.EnableInterSegment) return false; if (InterSegmentLength != other.InterSegmentLength) return false; if (Length != other.Length) return false; if (!object.Equals(ProcessParameters, other.ProcessParameters)) return false; if (WindingMethod != other.WindingMethod) return false; if (!object.Equals(Spool, other.Spool)) return false; if(!segments_.Equals(other.segments_)) return false; if (UploadStrategy != other.UploadStrategy) return false; if (JobDescriptionFile != other.JobDescriptionFile) return false; if (EnableLubrication != other.EnableLubrication) return false; if (NumberOfUnits != other.NumberOfUnits) return false; if (SampleWinding != other.SampleWinding) return false; if (!object.Equals(ThreadParameters, other.ThreadParameters)) return false; if (!object.Equals(HeadCleaningParameters, other.HeadCleaningParameters)) return false; if (!object.Equals(BtsrParameters, other.BtsrParameters)) return false; return true; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public override int GetHashCode() { int hash = 1; if (Guid.Length != 0) hash ^= Guid.GetHashCode(); if (Name.Length != 0) hash ^= Name.GetHashCode(); if (EnableInterSegment != false) hash ^= EnableInterSegment.GetHashCode(); if (InterSegmentLength != 0D) hash ^= InterSegmentLength.GetHashCode(); if (Length != 0D) hash ^= Length.GetHashCode(); if (processParameters_ != null) hash ^= ProcessParameters.GetHashCode(); if (WindingMethod != 0) hash ^= WindingMethod.GetHashCode(); if (spool_ != null) hash ^= Spool.GetHashCode(); hash ^= segments_.GetHashCode(); if (UploadStrategy != 0) hash ^= UploadStrategy.GetHashCode(); if (JobDescriptionFile.Length != 0) hash ^= JobDescriptionFile.GetHashCode(); if (EnableLubrication != false) hash ^= EnableLubrication.GetHashCode(); if (NumberOfUnits != 0) hash ^= NumberOfUnits.GetHashCode(); if (SampleWinding != false) hash ^= SampleWinding.GetHashCode(); if (threadParameters_ != null) hash ^= ThreadParameters.GetHashCode(); if (headCleaningParameters_ != null) hash ^= HeadCleaningParameters.GetHashCode(); if (btsrParameters_ != null) hash ^= BtsrParameters.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 (Guid.Length != 0) { output.WriteRawTag(10); output.WriteString(Guid); } if (Name.Length != 0) { output.WriteRawTag(18); output.WriteString(Name); } if (EnableInterSegment != false) { output.WriteRawTag(24); output.WriteBool(EnableInterSegment); } if (InterSegmentLength != 0D) { output.WriteRawTag(33); output.WriteDouble(InterSegmentLength); } if (Length != 0D) { output.WriteRawTag(41); output.WriteDouble(Length); } if (processParameters_ != null) { output.WriteRawTag(50); output.WriteMessage(ProcessParameters); } if (WindingMethod != 0) { output.WriteRawTag(56); output.WriteEnum((int) WindingMethod); } if (spool_ != null) { output.WriteRawTag(66); output.WriteMessage(Spool); } segments_.WriteTo(output, _repeated_segments_codec); if (UploadStrategy != 0) { output.WriteRawTag(80); output.WriteEnum((int) UploadStrategy); } if (JobDescriptionFile.Length != 0) { output.WriteRawTag(90); output.WriteString(JobDescriptionFile); } if (EnableLubrication != false) { output.WriteRawTag(96); output.WriteBool(EnableLubrication); } if (NumberOfUnits != 0) { output.WriteRawTag(104); output.WriteUInt32(NumberOfUnits); } if (SampleWinding != false) { output.WriteRawTag(112); output.WriteBool(SampleWinding); } if (threadParameters_ != null) { output.WriteRawTag(122); output.WriteMessage(ThreadParameters); } if (headCleaningParameters_ != null) { output.WriteRawTag(130, 1); output.WriteMessage(HeadCleaningParameters); } if (btsrParameters_ != null) { output.WriteRawTag(138, 1); output.WriteMessage(BtsrParameters); } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public int CalculateSize() { int size = 0; if (Guid.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(Guid); } if (Name.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); } if (EnableInterSegment != false) { size += 1 + 1; } if (InterSegmentLength != 0D) { size += 1 + 8; } if (Length != 0D) { size += 1 + 8; } if (processParameters_ != null) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(ProcessParameters); } if (WindingMethod != 0) { size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) WindingMethod); } if (spool_ != null) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(Spool); } size += segments_.CalculateSize(_repeated_segments_codec); if (UploadStrategy != 0) { size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) UploadStrategy); } if (JobDescriptionFile.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(JobDescriptionFile); } if (EnableLubrication != false) { size += 1 + 1; } if (NumberOfUnits != 0) { size += 1 + pb::CodedOutputStream.ComputeUInt32Size(NumberOfUnits); } if (SampleWinding != false) { size += 1 + 1; } if (threadParameters_ != null) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(ThreadParameters); } if (headCleaningParameters_ != null) { size += 2 + pb::CodedOutputStream.ComputeMessageSize(HeadCleaningParameters); } if (btsrParameters_ != null) { size += 2 + pb::CodedOutputStream.ComputeMessageSize(BtsrParameters); } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public void MergeFrom(JobTicket other) { if (other == null) { return; } if (other.Guid.Length != 0) { Guid = other.Guid; } if (other.Name.Length != 0) { Name = other.Name; } if (other.EnableInterSegment != false) { EnableInterSegment = other.EnableInterSegment; } if (other.InterSegmentLength != 0D) { InterSegmentLength = other.InterSegmentLength; } if (other.Length != 0D) { Length = other.Length; } if (other.processParameters_ != null) { if (processParameters_ == null) { processParameters_ = new global::Tango.PMR.Printing.ProcessParameters(); } ProcessParameters.MergeFrom(other.ProcessParameters); } if (other.WindingMethod != 0) { WindingMethod = other.WindingMethod; } if (other.spool_ != null) { if (spool_ == null) { spool_ = new global::Tango.PMR.Printing.JobSpool(); } Spool.MergeFrom(other.Spool); } segments_.Add(other.segments_); if (other.UploadStrategy != 0) { UploadStrategy = other.UploadStrategy; } if (other.JobDescriptionFile.Length != 0) { JobDescriptionFile = other.JobDescriptionFile; } if (other.EnableLubrication != false) { EnableLubrication = other.EnableLubrication; } if (other.NumberOfUnits != 0) { NumberOfUnits = other.NumberOfUnits; } if (other.SampleWinding != false) { SampleWinding = other.SampleWinding; } if (other.threadParameters_ != null) { if (threadParameters_ == null) { threadParameters_ = new global::Tango.PMR.Printing.ThreadParameters(); } ThreadParameters.MergeFrom(other.ThreadParameters); } if (other.headCleaningParameters_ != null) { if (headCleaningParameters_ == null) { headCleaningParameters_ = new global::Tango.PMR.Printing.HeadCleaningParameters(); } HeadCleaningParameters.MergeFrom(other.HeadCleaningParameters); } if (other.btsrParameters_ != null) { if (btsrParameters_ == null) { btsrParameters_ = new global::Tango.PMR.BTSR.BtsrParameters(); } BtsrParameters.MergeFrom(other.BtsrParameters); } } [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: { Guid = input.ReadString(); break; } case 18: { Name = input.ReadString(); break; } case 24: { EnableInterSegment = input.ReadBool(); break; } case 33: { InterSegmentLength = input.ReadDouble(); break; } case 41: { Length = input.ReadDouble(); break; } case 50: { if (processParameters_ == null) { processParameters_ = new global::Tango.PMR.Printing.ProcessParameters(); } input.ReadMessage(processParameters_); break; } case 56: { windingMethod_ = (global::Tango.PMR.Printing.JobWindingMethod) input.ReadEnum(); break; } case 66: { if (spool_ == null) { spool_ = new global::Tango.PMR.Printing.JobSpool(); } input.ReadMessage(spool_); break; } case 74: { segments_.AddEntriesFrom(input, _repeated_segments_codec); break; } case 80: { uploadStrategy_ = (global::Tango.PMR.Printing.JobUploadStrategy) input.ReadEnum(); break; } case 90: { JobDescriptionFile = input.ReadString(); break; } case 96: { EnableLubrication = input.ReadBool(); break; } case 104: { NumberOfUnits = input.ReadUInt32(); break; } case 112: { SampleWinding = input.ReadBool(); break; } case 122: { if (threadParameters_ == null) { threadParameters_ = new global::Tango.PMR.Printing.ThreadParameters(); } input.ReadMessage(threadParameters_); break; } case 130: { if (headCleaningParameters_ == null) { headCleaningParameters_ = new global::Tango.PMR.Printing.HeadCleaningParameters(); } input.ReadMessage(headCleaningParameters_); break; } case 138: { if (btsrParameters_ == null) { btsrParameters_ = new global::Tango.PMR.BTSR.BtsrParameters(); } input.ReadMessage(btsrParameters_); break; } } } } } #endregion } #endregion Designer generated code