// Generated by the protocol buffer compiler. DO NOT EDIT! // source: JobStatus.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 JobStatus.proto public static partial class JobStatusReflection { #region Descriptor /// File descriptor for JobStatus.proto public static pbr::FileDescriptor Descriptor { get { return descriptor; } } private static pbr::FileDescriptor descriptor; static JobStatusReflection() { byte[] descriptorData = global::System.Convert.FromBase64String( string.Concat( "Cg9Kb2JTdGF0dXMucHJvdG8SElRhbmdvLlBNUi5QcmludGluZyJLCglKb2JT", "dGF0dXMSDwoHTWVzc2FnZRgBIAEoCRIQCghQcm9ncmVzcxgCIAEoARIbChND", "dXJyZW50U2VnbWVudEluZGV4GAMgASgFQh4KHGNvbS50d2luZS50YW5nby5w", "bXIucHJpbnRpbmdiBnByb3RvMw==")); descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, new pbr::FileDescriptor[] { }, new pbr::GeneratedClrTypeInfo(null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Tango.PMR.Printing.JobStatus), global::Tango.PMR.Printing.JobStatus.Parser, new[]{ "Message", "Progress", "CurrentSegmentIndex" }, null, null, null) })); } #endregion } #region Messages public sealed partial class JobStatus : pb::IMessage { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new JobStatus()); [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.JobStatusReflection.Descriptor.MessageTypes[0]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public JobStatus() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public JobStatus(JobStatus other) : this() { message_ = other.message_; progress_ = other.progress_; currentSegmentIndex_ = other.currentSegmentIndex_; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public JobStatus Clone() { return new JobStatus(this); } /// Field number for the "Message" field. public const int MessageFieldNumber = 1; private string message_ = ""; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public string Message { get { return message_; } set { message_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } /// Field number for the "Progress" field. public const int ProgressFieldNumber = 2; private double progress_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public double Progress { get { return progress_; } set { progress_ = value; } } /// Field number for the "CurrentSegmentIndex" field. public const int CurrentSegmentIndexFieldNumber = 3; private int currentSegmentIndex_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public int CurrentSegmentIndex { get { return currentSegmentIndex_; } set { currentSegmentIndex_ = value; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public override bool Equals(object other) { return Equals(other as JobStatus); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public bool Equals(JobStatus other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } if (Message != other.Message) return false; if (Progress != other.Progress) return false; if (CurrentSegmentIndex != other.CurrentSegmentIndex) return false; return true; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public override int GetHashCode() { int hash = 1; if (Message.Length != 0) hash ^= Message.GetHashCode(); if (Progress != 0D) hash ^= Progress.GetHashCode(); if (CurrentSegmentIndex != 0) hash ^= CurrentSegmentIndex.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 (Message.Length != 0) { output.WriteRawTag(10); output.WriteString(Message); } if (Progress != 0D) { output.WriteRawTag(17); output.WriteDouble(Progress); } if (CurrentSegmentIndex != 0) { output.WriteRawTag(24); output.WriteInt32(CurrentSegmentIndex); } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public int CalculateSize() { int size = 0; if (Message.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(Message); } if (Progress != 0D) { size += 1 + 8; } if (CurrentSegmentIndex != 0) { size += 1 + pb::CodedOutputStream.ComputeInt32Size(CurrentSegmentIndex); } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public void MergeFrom(JobStatus other) { if (other == null) { return; } if (other.Message.Length != 0) { Message = other.Message; } if (other.Progress != 0D) { Progress = other.Progress; } if (other.CurrentSegmentIndex != 0) { CurrentSegmentIndex = other.CurrentSegmentIndex; } } [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: { Message = input.ReadString(); break; } case 17: { Progress = input.ReadDouble(); break; } case 24: { CurrentSegmentIndex = input.ReadInt32(); break; } } } } } #endregion } #endregion Designer generated code