// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: JobPrepareRequest.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 JobPrepareRequest.proto
public static partial class JobPrepareRequestReflection {
#region Descriptor
/// File descriptor for JobPrepareRequest.proto
public static pbr::FileDescriptor Descriptor {
get { return descriptor; }
}
private static pbr::FileDescriptor descriptor;
static JobPrepareRequestReflection() {
byte[] descriptorData = global::System.Convert.FromBase64String(
string.Concat(
"ChdKb2JQcmVwYXJlUmVxdWVzdC5wcm90bxISVGFuZ28uUE1SLlByaW50aW5n",
"GhdQcm9jZXNzUGFyYW1ldGVycy5wcm90bxoZSm9iUHJlcGFyZURpc3BlbnNl",
"ci5wcm90byKSAQoRSm9iUHJlcGFyZVJlcXVlc3QSQAoRUHJvY2Vzc1BhcmFt",
"ZXRlcnMYASABKAsyJS5UYW5nby5QTVIuUHJpbnRpbmcuUHJvY2Vzc1BhcmFt",
"ZXRlcnMSOwoKRGlzcGVuc2VycxgCIAMoCzInLlRhbmdvLlBNUi5QcmludGlu",
"Zy5Kb2JQcmVwYXJlRGlzcGVuc2VyQh4KHGNvbS50d2luZS50YW5nby5wbXIu",
"cHJpbnRpbmdiBnByb3RvMw=="));
descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
new pbr::FileDescriptor[] { global::Tango.PMR.Printing.ProcessParametersReflection.Descriptor, global::Tango.PMR.Printing.JobPrepareDispenserReflection.Descriptor, },
new pbr::GeneratedClrTypeInfo(null, new pbr::GeneratedClrTypeInfo[] {
new pbr::GeneratedClrTypeInfo(typeof(global::Tango.PMR.Printing.JobPrepareRequest), global::Tango.PMR.Printing.JobPrepareRequest.Parser, new[]{ "ProcessParameters", "Dispensers" }, null, null, null)
}));
}
#endregion
}
#region Messages
public sealed partial class JobPrepareRequest : pb::IMessage {
private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new JobPrepareRequest());
[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.JobPrepareRequestReflection.Descriptor.MessageTypes[0]; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
pbr::MessageDescriptor pb::IMessage.Descriptor {
get { return Descriptor; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public JobPrepareRequest() {
OnConstruction();
}
partial void OnConstruction();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public JobPrepareRequest(JobPrepareRequest other) : this() {
ProcessParameters = other.processParameters_ != null ? other.ProcessParameters.Clone() : null;
dispensers_ = other.dispensers_.Clone();
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public JobPrepareRequest Clone() {
return new JobPrepareRequest(this);
}
/// Field number for the "ProcessParameters" field.
public const int ProcessParametersFieldNumber = 1;
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 "Dispensers" field.
public const int DispensersFieldNumber = 2;
private static readonly pb::FieldCodec _repeated_dispensers_codec
= pb::FieldCodec.ForMessage(18, global::Tango.PMR.Printing.JobPrepareDispenser.Parser);
private readonly pbc::RepeatedField dispensers_ = new pbc::RepeatedField();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public pbc::RepeatedField Dispensers {
get { return dispensers_; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public override bool Equals(object other) {
return Equals(other as JobPrepareRequest);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public bool Equals(JobPrepareRequest other) {
if (ReferenceEquals(other, null)) {
return false;
}
if (ReferenceEquals(other, this)) {
return true;
}
if (!object.Equals(ProcessParameters, other.ProcessParameters)) return false;
if(!dispensers_.Equals(other.dispensers_)) return false;
return true;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public override int GetHashCode() {
int hash = 1;
if (processParameters_ != null) hash ^= ProcessParameters.GetHashCode();
hash ^= dispensers_.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 (processParameters_ != null) {
output.WriteRawTag(10);
output.WriteMessage(ProcessParameters);
}
dispensers_.WriteTo(output, _repeated_dispensers_codec);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public int CalculateSize() {
int size = 0;
if (processParameters_ != null) {
size += 1 + pb::CodedOutputStream.ComputeMessageSize(ProcessParameters);
}
size += dispensers_.CalculateSize(_repeated_dispensers_codec);
return size;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public void MergeFrom(JobPrepareRequest other) {
if (other == null) {
return;
}
if (other.processParameters_ != null) {
if (processParameters_ == null) {
processParameters_ = new global::Tango.PMR.Printing.ProcessParameters();
}
ProcessParameters.MergeFrom(other.ProcessParameters);
}
dispensers_.Add(other.dispensers_);
}
[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 (processParameters_ == null) {
processParameters_ = new global::Tango.PMR.Printing.ProcessParameters();
}
input.ReadMessage(processParameters_);
break;
}
case 18: {
dispensers_.AddEntriesFrom(input, _repeated_dispensers_codec);
break;
}
}
}
}
}
#endregion
}
#endregion Designer generated code