// Generated by the protocol buffer compiler. DO NOT EDIT! // source: JobTicket.proto #define INTERNAL_SUPPRESS_PROTOBUF_FIELD_DEPRECATION #include "JobTicket.pb.h" #include #include #include #include #include #include #include #include #include #include // @@protoc_insertion_point(includes) namespace Tango { namespace PMR { namespace Printing { class JobTicketDefaultTypeInternal { public: ::google::protobuf::internal::ExplicitlyConstructed _instance; } _JobTicket_default_instance_; namespace protobuf_JobTicket_2eproto { namespace { ::google::protobuf::Metadata file_level_metadata[1]; } // namespace PROTOBUF_CONSTEXPR_VAR ::google::protobuf::internal::ParseTableField const TableStruct::entries[] GOOGLE_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = { {0, 0, 0, ::google::protobuf::internal::kInvalidMask, 0, 0}, }; PROTOBUF_CONSTEXPR_VAR ::google::protobuf::internal::AuxillaryParseTableField const TableStruct::aux[] GOOGLE_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = { ::google::protobuf::internal::AuxillaryParseTableField(), }; PROTOBUF_CONSTEXPR_VAR ::google::protobuf::internal::ParseTable const TableStruct::schema[] GOOGLE_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = { { NULL, NULL, 0, -1, -1, -1, -1, NULL, false }, }; const ::google::protobuf::uint32 TableStruct::offsets[] GOOGLE_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = { ~0u, // no _has_bits_ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(JobTicket, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(JobTicket, name_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(JobTicket, enableintersegment_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(JobTicket, intersegmentlength_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(JobTicket, length_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(JobTicket, processparameters_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(JobTicket, windingmethod_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(JobTicket, spool_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(JobTicket, segments_), }; static const ::google::protobuf::internal::MigrationSchema schemas[] GOOGLE_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = { { 0, -1, sizeof(JobTicket)}, }; static ::google::protobuf::Message const * const file_default_instances[] = { reinterpret_cast(&_JobTicket_default_instance_), }; namespace { void protobuf_AssignDescriptors() { AddDescriptors(); ::google::protobuf::MessageFactory* factory = NULL; AssignDescriptors( "JobTicket.proto", schemas, file_default_instances, TableStruct::offsets, factory, file_level_metadata, NULL, NULL); } void protobuf_AssignDescriptorsOnce() { static GOOGLE_PROTOBUF_DECLARE_ONCE(once); ::google::protobuf::GoogleOnceInit(&once, &protobuf_AssignDescriptors); } void protobuf_RegisterTypes(const ::std::string&) GOOGLE_ATTRIBUTE_COLD; void protobuf_RegisterTypes(const ::std::string&) { protobuf_AssignDescriptorsOnce(); ::google::protobuf::internal::RegisterAllTypes(file_level_metadata, 1); } } // namespace void TableStruct::InitDefaultsImpl() { GOOGLE_PROTOBUF_VERIFY_VERSION; ::google::protobuf::internal::InitProtobufDefaults(); ::Tango::PMR::Printing::protobuf_JobSegment_2eproto::InitDefaults(); ::Tango::PMR::Printing::protobuf_ProcessParameters_2eproto::InitDefaults(); ::Tango::PMR::Printing::protobuf_JobWindingMethod_2eproto::InitDefaults(); ::Tango::PMR::Printing::protobuf_JobSpool_2eproto::InitDefaults(); _JobTicket_default_instance_._instance.DefaultConstruct(); ::google::protobuf::internal::OnShutdownDestroyMessage( &_JobTicket_default_instance_);_JobTicket_default_instance_._instance.get_mutable()->processparameters_ = const_cast< ::Tango::PMR::Printing::ProcessParameters*>( ::Tango::PMR::Printing::ProcessParameters::internal_default_instance()); _JobTicket_default_instance_._instance.get_mutable()->spool_ = const_cast< ::Tango::PMR::Printing::JobSpool*>( ::Tango::PMR::Printing::JobSpool::internal_default_instance()); } void InitDefaults() { static GOOGLE_PROTOBUF_DECLARE_ONCE(once); ::google::protobuf::GoogleOnceInit(&once, &TableStruct::InitDefaultsImpl); } namespace { void AddDescriptorsImpl() { InitDefaults(); static const char descriptor[] GOOGLE_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = { "\n\017JobTicket.proto\022\022Tango.PMR.Printing\032\020J" "obSegment.proto\032\027ProcessParameters.proto" "\032\026JobWindingMethod.proto\032\016JobSpool.proto" "\"\277\002\n\tJobTicket\022\014\n\004Name\030\001 \001(\t\022\032\n\022EnableIn" "terSegment\030\002 \001(\010\022\032\n\022InterSegmentLength\030\003" " \001(\001\022\016\n\006Length\030\004 \001(\001\022@\n\021ProcessParameter" "s\030\005 \001(\0132%.Tango.PMR.Printing.ProcessPara" "meters\022;\n\rWindingMethod\030\006 \001(\0162$.Tango.PM" "R.Printing.JobWindingMethod\022+\n\005Spool\030\007 \001" "(\0132\034.Tango.PMR.Printing.JobSpool\0220\n\010Segm" "ents\030\010 \003(\0132\036.Tango.PMR.Printing.JobSegme" "ntB\036\n\034com.twine.tango.pmr.printingb\006prot" "o3" }; ::google::protobuf::DescriptorPool::InternalAddGeneratedFile( descriptor, 482); ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile( "JobTicket.proto", &protobuf_RegisterTypes); ::Tango::PMR::Printing::protobuf_JobSegment_2eproto::AddDescriptors(); ::Tango::PMR::Printing::protobuf_ProcessParameters_2eproto::AddDescriptors(); ::Tango::PMR::Printing::protobuf_JobWindingMethod_2eproto::AddDescriptors(); ::Tango::PMR::Printing::protobuf_JobSpool_2eproto::AddDescriptors(); } } // anonymous namespace void AddDescriptors() { static GOOGLE_PROTOBUF_DECLARE_ONCE(once); ::google::protobuf::GoogleOnceInit(&once, &AddDescriptorsImpl); } // Force AddDescriptors() to be called at dynamic initialization time. struct StaticDescriptorInitializer { StaticDescriptorInitializer() { AddDescriptors(); } } static_descriptor_initializer; } // namespace protobuf_JobTicket_2eproto // =================================================================== #if !defined(_MSC_VER) || _MSC_VER >= 1900 const int JobTicket::kNameFieldNumber; const int JobTicket::kEnableInterSegmentFieldNumber; const int JobTicket::kInterSegmentLengthFieldNumber; const int JobTicket::kLengthFieldNumber; const int JobTicket::kProcessParametersFieldNumber; const int JobTicket::kWindingMethodFieldNumber; const int JobTicket::kSpoolFieldNumber; const int JobTicket::kSegmentsFieldNumber; #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 JobTicket::JobTicket() : ::google::protobuf::Message(), _internal_metadata_(NULL) { if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { protobuf_JobTicket_2eproto::InitDefaults(); } SharedCtor(); // @@protoc_insertion_point(constructor:Tango.PMR.Printing.JobTicket) } JobTicket::JobTicket(const JobTicket& from) : ::google::protobuf::Message(), _internal_metadata_(NULL), segments_(from.segments_), _cached_size_(0) { _internal_metadata_.MergeFrom(from._internal_metadata_); name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); if (from.name().size() > 0) { name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.name_); } if (from.has_processparameters()) { processparameters_ = new ::Tango::PMR::Printing::ProcessParameters(*from.processparameters_); } else { processparameters_ = NULL; } if (from.has_spool()) { spool_ = new ::Tango::PMR::Printing::JobSpool(*from.spool_); } else { spool_ = NULL; } ::memcpy(&intersegmentlength_, &from.intersegmentlength_, static_cast(reinterpret_cast(&windingmethod_) - reinterpret_cast(&intersegmentlength_)) + sizeof(windingmethod_)); // @@protoc_insertion_point(copy_constructor:Tango.PMR.Printing.JobTicket) } void JobTicket::SharedCtor() { name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); ::memset(&processparameters_, 0, static_cast( reinterpret_cast(&windingmethod_) - reinterpret_cast(&processparameters_)) + sizeof(windingmethod_)); _cached_size_ = 0; } JobTicket::~JobTicket() { // @@protoc_insertion_point(destructor:Tango.PMR.Printing.JobTicket) SharedDtor(); } void JobTicket::SharedDtor() { name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); if (this != internal_default_instance()) delete processparameters_; if (this != internal_default_instance()) delete spool_; } void JobTicket::SetCachedSize(int size) const { GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); _cached_size_ = size; GOOGLE_SAFE_CONCURRENT_WRITES_END(); } const ::google::protobuf::Descriptor* JobTicket::descriptor() { protobuf_JobTicket_2eproto::protobuf_AssignDescriptorsOnce(); return protobuf_JobTicket_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; } const JobTicket& JobTicket::default_instance() { protobuf_JobTicket_2eproto::InitDefaults(); return *internal_default_instance(); } JobTicket* JobTicket::New(::google::protobuf::Arena* arena) const { JobTicket* n = new JobTicket; if (arena != NULL) { arena->Own(n); } return n; } void JobTicket::Clear() { // @@protoc_insertion_point(message_clear_start:Tango.PMR.Printing.JobTicket) ::google::protobuf::uint32 cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; segments_.Clear(); name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); if (GetArenaNoVirtual() == NULL && processparameters_ != NULL) { delete processparameters_; } processparameters_ = NULL; if (GetArenaNoVirtual() == NULL && spool_ != NULL) { delete spool_; } spool_ = NULL; ::memset(&intersegmentlength_, 0, static_cast( reinterpret_cast(&windingmethod_) - reinterpret_cast(&intersegmentlength_)) + sizeof(windingmethod_)); _internal_metadata_.Clear(); } bool JobTicket::MergePartialFromCodedStream( ::google::protobuf::io::CodedInputStream* input) { #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure ::google::protobuf::uint32 tag; // @@protoc_insertion_point(parse_start:Tango.PMR.Printing.JobTicket) for (;;) { ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); tag = p.first; if (!p.second) goto handle_unusual; switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { // string Name = 1; case 1: { if (static_cast< ::google::protobuf::uint8>(tag) == static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { DO_(::google::protobuf::internal::WireFormatLite::ReadString( input, this->mutable_name())); DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( this->name().data(), static_cast(this->name().length()), ::google::protobuf::internal::WireFormatLite::PARSE, "Tango.PMR.Printing.JobTicket.Name")); } else { goto handle_unusual; } break; } // bool EnableInterSegment = 2; case 2: { if (static_cast< ::google::protobuf::uint8>(tag) == static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) { DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( input, &enableintersegment_))); } else { goto handle_unusual; } break; } // double InterSegmentLength = 3; case 3: { if (static_cast< ::google::protobuf::uint8>(tag) == static_cast< ::google::protobuf::uint8>(25u /* 25 & 0xFF */)) { DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>( input, &intersegmentlength_))); } else { goto handle_unusual; } break; } // double Length = 4; case 4: { if (static_cast< ::google::protobuf::uint8>(tag) == static_cast< ::google::protobuf::uint8>(33u /* 33 & 0xFF */)) { DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>( input, &length_))); } else { goto handle_unusual; } break; } // .Tango.PMR.Printing.ProcessParameters ProcessParameters = 5; case 5: { if (static_cast< ::google::protobuf::uint8>(tag) == static_cast< ::google::protobuf::uint8>(42u /* 42 & 0xFF */)) { DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( input, mutable_processparameters())); } else { goto handle_unusual; } break; } // .Tango.PMR.Printing.JobWindingMethod WindingMethod = 6; case 6: { if (static_cast< ::google::protobuf::uint8>(tag) == static_cast< ::google::protobuf::uint8>(48u /* 48 & 0xFF */)) { int value; DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( input, &value))); set_windingmethod(static_cast< ::Tango::PMR::Printing::JobWindingMethod >(value)); } else { goto handle_unusual; } break; } // .Tango.PMR.Printing.JobSpool Spool = 7; case 7: { if (static_cast< ::google::protobuf::uint8>(tag) == static_cast< ::google::protobuf::uint8>(58u /* 58 & 0xFF */)) { DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( input, mutable_spool())); } else { goto handle_unusual; } break; } // repeated .Tango.PMR.Printing.JobSegment Segments = 8; case 8: { if (static_cast< ::google::protobuf::uint8>(tag) == static_cast< ::google::protobuf::uint8>(66u /* 66 & 0xFF */)) { DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( input, add_segments())); } else { goto handle_unusual; } break; } default: { handle_unusual: if (tag == 0) { goto success; } DO_(::google::protobuf::internal::WireFormat::SkipField( input, tag, _internal_metadata_.mutable_unknown_fields())); break; } } } success: // @@protoc_insertion_point(parse_success:Tango.PMR.Printing.JobTicket) return true; failure: // @@protoc_insertion_point(parse_failure:Tango.PMR.Printing.JobTicket) return false; #undef DO_ } void JobTicket::SerializeWithCachedSizes( ::google::protobuf::io::CodedOutputStream* output) const { // @@protoc_insertion_point(serialize_start:Tango.PMR.Printing.JobTicket) ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; // string Name = 1; if (this->name().size() > 0) { ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( this->name().data(), static_cast(this->name().length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "Tango.PMR.Printing.JobTicket.Name"); ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( 1, this->name(), output); } // bool EnableInterSegment = 2; if (this->enableintersegment() != 0) { ::google::protobuf::internal::WireFormatLite::WriteBool(2, this->enableintersegment(), output); } // double InterSegmentLength = 3; if (this->intersegmentlength() != 0) { ::google::protobuf::internal::WireFormatLite::WriteDouble(3, this->intersegmentlength(), output); } // double Length = 4; if (this->length() != 0) { ::google::protobuf::internal::WireFormatLite::WriteDouble(4, this->length(), output); } // .Tango.PMR.Printing.ProcessParameters ProcessParameters = 5; if (this->has_processparameters()) { ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( 5, *this->processparameters_, output); } // .Tango.PMR.Printing.JobWindingMethod WindingMethod = 6; if (this->windingmethod() != 0) { ::google::protobuf::internal::WireFormatLite::WriteEnum( 6, this->windingmethod(), output); } // .Tango.PMR.Printing.JobSpool Spool = 7; if (this->has_spool()) { ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( 7, *this->spool_, output); } // repeated .Tango.PMR.Printing.JobSegment Segments = 8; for (unsigned int i = 0, n = static_cast(this->segments_size()); i < n; i++) { ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( 8, this->segments(static_cast(i)), output); } if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { ::google::protobuf::internal::WireFormat::SerializeUnknownFields( (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output); } // @@protoc_insertion_point(serialize_end:Tango.PMR.Printing.JobTicket) } ::google::protobuf::uint8* JobTicket::InternalSerializeWithCachedSizesToArray( bool deterministic, ::google::protobuf::uint8* target) const { (void)deterministic; // Unused // @@protoc_insertion_point(serialize_to_array_start:Tango.PMR.Printing.JobTicket) ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; // string Name = 1; if (this->name().size() > 0) { ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( this->name().data(), static_cast(this->name().length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "Tango.PMR.Printing.JobTicket.Name"); target = ::google::protobuf::internal::WireFormatLite::WriteStringToArray( 1, this->name(), target); } // bool EnableInterSegment = 2; if (this->enableintersegment() != 0) { target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(2, this->enableintersegment(), target); } // double InterSegmentLength = 3; if (this->intersegmentlength() != 0) { target = ::google::protobuf::internal::WireFormatLite::WriteDoubleToArray(3, this->intersegmentlength(), target); } // double Length = 4; if (this->length() != 0) { target = ::google::protobuf::internal::WireFormatLite::WriteDoubleToArray(4, this->length(), target); } // .Tango.PMR.Printing.ProcessParameters ProcessParameters = 5; if (this->has_processparameters()) { target = ::google::protobuf::internal::WireFormatLite:: InternalWriteMessageNoVirtualToArray( 5, *this->processparameters_, deterministic, target); } // .Tango.PMR.Printing.JobWindingMethod WindingMethod = 6; if (this->windingmethod() != 0) { target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( 6, this->windingmethod(), target); } // .Tango.PMR.Printing.JobSpool Spool = 7; if (this->has_spool()) { target = ::google::protobuf::internal::WireFormatLite:: InternalWriteMessageNoVirtualToArray( 7, *this->spool_, deterministic, target); } // repeated .Tango.PMR.Printing.JobSegment Segments = 8; for (unsigned int i = 0, n = static_cast(this->segments_size()); i < n; i++) { target = ::google::protobuf::internal::WireFormatLite:: InternalWriteMessageNoVirtualToArray( 8, this->segments(static_cast(i)), deterministic, target); } if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target); } // @@protoc_insertion_point(serialize_to_array_end:Tango.PMR.Printing.JobTicket) return target; } size_t JobTicket::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:Tango.PMR.Printing.JobTicket) size_t total_size = 0; if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { total_size += ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance())); } // repeated .Tango.PMR.Printing.JobSegment Segments = 8; { unsigned int count = static_cast(this->segments_size()); total_size += 1UL * count; for (unsigned int i = 0; i < count; i++) { total_size += ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( this->segments(static_cast(i))); } } // string Name = 1; if (this->name().size() > 0) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( this->name()); } // .Tango.PMR.Printing.ProcessParameters ProcessParameters = 5; if (this->has_processparameters()) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( *this->processparameters_); } // .Tango.PMR.Printing.JobSpool Spool = 7; if (this->has_spool()) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( *this->spool_); } // double InterSegmentLength = 3; if (this->intersegmentlength() != 0) { total_size += 1 + 8; } // double Length = 4; if (this->length() != 0) { total_size += 1 + 8; } // bool EnableInterSegment = 2; if (this->enableintersegment() != 0) { total_size += 1 + 1; } // .Tango.PMR.Printing.JobWindingMethod WindingMethod = 6; if (this->windingmethod() != 0) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::EnumSize(this->windingmethod()); } int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); _cached_size_ = cached_size; GOOGLE_SAFE_CONCURRENT_WRITES_END(); return total_size; } void JobTicket::MergeFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_merge_from_start:Tango.PMR.Printing.JobTicket) GOOGLE_DCHECK_NE(&from, this); const JobTicket* source = ::google::protobuf::internal::DynamicCastToGenerated( &from); if (source == NULL) { // @@protoc_insertion_point(generalized_merge_from_cast_fail:Tango.PMR.Printing.JobTicket) ::google::protobuf::internal::ReflectionOps::Merge(from, this); } else { // @@protoc_insertion_point(generalized_merge_from_cast_success:Tango.PMR.Printing.JobTicket) MergeFrom(*source); } } void JobTicket::MergeFrom(const JobTicket& from) { // @@protoc_insertion_point(class_specific_merge_from_start:Tango.PMR.Printing.JobTicket) GOOGLE_DCHECK_NE(&from, this); _internal_metadata_.MergeFrom(from._internal_metadata_); ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; segments_.MergeFrom(from.segments_); if (from.name().size() > 0) { name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.name_); } if (from.has_processparameters()) { mutable_processparameters()->::Tango::PMR::Printing::ProcessParameters::MergeFrom(from.processparameters()); } if (from.has_spool()) { mutable_spool()->::Tango::PMR::Printing::JobSpool::MergeFrom(from.spool()); } if (from.intersegmentlength() != 0) { set_intersegmentlength(from.intersegmentlength()); } if (from.length() != 0) { set_length(from.length()); } if (from.enableintersegment() != 0) { set_enableintersegment(from.enableintersegment()); } if (from.windingmethod() != 0) { set_windingmethod(from.windingmethod()); } } void JobTicket::CopyFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_copy_from_start:Tango.PMR.Printing.JobTicket) if (&from == this) return; Clear(); MergeFrom(from); } void JobTicket::CopyFrom(const JobTicket& from) { // @@protoc_insertion_point(class_specific_copy_from_start:Tango.PMR.Printing.JobTicket) if (&from == this) return; Clear(); MergeFrom(from); } bool JobTicket::IsInitialized() const { return true; } void JobTicket::Swap(JobTicket* other) { if (other == this) return; InternalSwap(other); } void JobTicket::InternalSwap(JobTicket* other) { using std::swap; segments_.InternalSwap(&other->segments_); name_.Swap(&other->name_); swap(processparameters_, other->processparameters_); swap(spool_, other->spool_); swap(intersegmentlength_, other->intersegmentlength_); swap(length_, other->length_); swap(enableintersegment_, other->enableintersegment_); swap(windingmethod_, other->windingmethod_); _internal_metadata_.Swap(&other->_internal_metadata_); swap(_cached_size_, other->_cached_size_); } ::google::protobuf::Metadata JobTicket::GetMetadata() const { protobuf_JobTicket_2eproto::protobuf_AssignDescriptorsOnce(); return protobuf_JobTicket_2eproto::file_level_metadata[kIndexInFileMessages]; } #if PROTOBUF_INLINE_NOT_IN_HEADERS // JobTicket // string Name = 1; void JobTicket::clear_name() { name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } const ::std::string& JobTicket::name() const { // @@protoc_insertion_point(field_get:Tango.PMR.Printing.JobTicket.Name) return name_.GetNoArena(); } void JobTicket::set_name(const ::std::string& value) { name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); // @@protoc_insertion_point(field_set:Tango.PMR.Printing.JobTicket.Name) } #if LANG_CXX11 void JobTicket::set_name(::std::string&& value) { name_.SetNoArena( &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); // @@protoc_insertion_point(field_set_rvalue:Tango.PMR.Printing.JobTicket.Name) } #endif void JobTicket::set_name(const char* value) { GOOGLE_DCHECK(value != NULL); name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); // @@protoc_insertion_point(field_set_char:Tango.PMR.Printing.JobTicket.Name) } void JobTicket::set_name(const char* value, size_t size) { name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(reinterpret_cast(value), size)); // @@protoc_insertion_point(field_set_pointer:Tango.PMR.Printing.JobTicket.Name) } ::std::string* JobTicket::mutable_name() { // @@protoc_insertion_point(field_mutable:Tango.PMR.Printing.JobTicket.Name) return name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } ::std::string* JobTicket::release_name() { // @@protoc_insertion_point(field_release:Tango.PMR.Printing.JobTicket.Name) return name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } void JobTicket::set_allocated_name(::std::string* name) { if (name != NULL) { } else { } name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), name); // @@protoc_insertion_point(field_set_allocated:Tango.PMR.Printing.JobTicket.Name) } // bool EnableInterSegment = 2; void JobTicket::clear_enableintersegment() { enableintersegment_ = false; } bool JobTicket::enableintersegment() const { // @@protoc_insertion_point(field_get:Tango.PMR.Printing.JobTicket.EnableInterSegment) return enableintersegment_; } void JobTicket::set_enableintersegment(bool value) { enableintersegment_ = value; // @@protoc_insertion_point(field_set:Tango.PMR.Printing.JobTicket.EnableInterSegment) } // double InterSegmentLength = 3; void JobTicket::clear_intersegmentlength() { intersegmentlength_ = 0; } double JobTicket::intersegmentlength() const { // @@protoc_insertion_point(field_get:Tango.PMR.Printing.JobTicket.InterSegmentLength) return intersegmentlength_; } void JobTicket::set_intersegmentlength(double value) { intersegmentlength_ = value; // @@protoc_insertion_point(field_set:Tango.PMR.Printing.JobTicket.InterSegmentLength) } // double Length = 4; void JobTicket::clear_length() { length_ = 0; } double JobTicket::length() const { // @@protoc_insertion_point(field_get:Tango.PMR.Printing.JobTicket.Length) return length_; } void JobTicket::set_length(double value) { length_ = value; // @@protoc_insertion_point(field_set:Tango.PMR.Printing.JobTicket.Length) } // .Tango.PMR.Printing.ProcessParameters ProcessParameters = 5; bool JobTicket::has_processparameters() const { return this != internal_default_instance() && processparameters_ != NULL; } void JobTicket::clear_processparameters() { if (GetArenaNoVirtual() == NULL && processparameters_ != NULL) delete processparameters_; processparameters_ = NULL; } const ::Tango::PMR::Printing::ProcessParameters& JobTicket::processparameters() const { const ::Tango::PMR::Printing::ProcessParameters* p = processparameters_; // @@protoc_insertion_point(field_get:Tango.PMR.Printing.JobTicket.ProcessParameters) return p != NULL ? *p : *reinterpret_cast( &::Tango::PMR::Printing::_ProcessParameters_default_instance_); } ::Tango::PMR::Printing::ProcessParameters* JobTicket::mutable_processparameters() { if (processparameters_ == NULL) { processparameters_ = new ::Tango::PMR::Printing::ProcessParameters; } // @@protoc_insertion_point(field_mutable:Tango.PMR.Printing.JobTicket.ProcessParameters) return processparameters_; } ::Tango::PMR::Printing::ProcessParameters* JobTicket::release_processparameters() { // @@protoc_insertion_point(field_release:Tango.PMR.Printing.JobTicket.ProcessParameters) ::Tango::PMR::Printing::ProcessParameters* temp = processparameters_; processparameters_ = NULL; return temp; } void JobTicket::set_allocated_processparameters(::Tango::PMR::Printing::ProcessParameters* processparameters) { delete processparameters_; processparameters_ = processparameters; if (processparameters) { } else { } // @@protoc_insertion_point(field_set_allocated:Tango.PMR.Printing.JobTicket.ProcessParameters) } // .Tango.PMR.Printing.JobWindingMethod WindingMethod = 6; void JobTicket::clear_windingmethod() { windingmethod_ = 0; } ::Tango::PMR::Printing::JobWindingMethod JobTicket::windingmethod() const { // @@protoc_insertion_point(field_get:Tango.PMR.Printing.JobTicket.WindingMethod) return static_cast< ::Tango::PMR::Printing::JobWindingMethod >(windingmethod_); } void JobTicket::set_windingmethod(::Tango::PMR::Printing::JobWindingMethod value) { windingmethod_ = value; // @@protoc_insertion_point(field_set:Tango.PMR.Printing.JobTicket.WindingMethod) } // .Tango.PMR.Printing.JobSpool Spool = 7; bool JobTicket::has_spool() const { return this != internal_default_instance() && spool_ != NULL; } void JobTicket::clear_spool() { if (GetArenaNoVirtual() == NULL && spool_ != NULL) delete spool_; spool_ = NULL; } const ::Tango::PMR::Printing::JobSpool& JobTicket::spool() const { const ::Tango::PMR::Printing::JobSpool* p = spool_; // @@protoc_insertion_point(field_get:Tango.PMR.Printing.JobTicket.Spool) return p != NULL ? *p : *reinterpret_cast( &::Tango::PMR::Printing::_JobSpool_default_instance_); } ::Tango::PMR::Printing::JobSpool* JobTicket::mutable_spool() { if (spool_ == NULL) { spool_ = new ::Tango::PMR::Printing::JobSpool; } // @@protoc_insertion_point(field_mutable:Tango.PMR.Printing.JobTicket.Spool) return spool_; } ::Tango::PMR::Printing::JobSpool* JobTicket::release_spool() { // @@protoc_insertion_point(field_release:Tango.PMR.Printing.JobTicket.Spool) ::Tango::PMR::Printing::JobSpool* temp = spool_; spool_ = NULL; return temp; } void JobTicket::set_allocated_spool(::Tango::PMR::Printing::JobSpool* spool) { delete spool_; spool_ = spool; if (spool) { } else { } // @@protoc_insertion_point(field_set_allocated:Tango.PMR.Printing.JobTicket.Spool) } // repeated .Tango.PMR.Printing.JobSegment Segments = 8; int JobTicket::segments_size() const { return segments_.size(); } void JobTicket::clear_segments() { segments_.Clear(); } const ::Tango::PMR::Printing::JobSegment& JobTicket::segments(int index) const { // @@protoc_insertion_point(field_get:Tango.PMR.Printing.JobTicket.Segments) return segments_.Get(index); } ::Tango::PMR::Printing::JobSegment* JobTicket::mutable_segments(int index) { // @@protoc_insertion_point(field_mutable:Tango.PMR.Printing.JobTicket.Segments) return segments_.Mutable(index); } ::Tango::PMR::Printing::JobSegment* JobTicket::add_segments() { // @@protoc_insertion_point(field_add:Tango.PMR.Printing.JobTicket.Segments) return segments_.Add(); } ::google::protobuf::RepeatedPtrField< ::Tango::PMR::Printing::JobSegment >* JobTicket::mutable_segments() { // @@protoc_insertion_point(field_mutable_list:Tango.PMR.Printing.JobTicket.Segments) return &segments_; } const ::google::protobuf::RepeatedPtrField< ::Tango::PMR::Printing::JobSegment >& JobTicket::segments() const { // @@protoc_insertion_point(field_list:Tango.PMR.Printing.JobTicket.Segments) return segments_; } #endif // PROTOBUF_INLINE_NOT_IN_HEADERS // @@protoc_insertion_point(namespace_scope) } // namespace Printing } // namespace PMR } // namespace Tango // @@protoc_insertion_point(global_scope)