// Generated by the protocol buffer compiler. DO NOT EDIT! // source: JobResponse.proto #ifndef PROTOBUF_JobResponse_2eproto__INCLUDED #define PROTOBUF_JobResponse_2eproto__INCLUDED #include #include #if GOOGLE_PROTOBUF_VERSION < 3004000 #error This file was generated by a newer version of protoc which is #error incompatible with your Protocol Buffer headers. Please update #error your headers. #endif #if 3004000 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION #error This file was generated by an older version of protoc which is #error incompatible with your Protocol Buffer headers. Please #error regenerate this file with a newer version of protoc. #endif #include #include #include #include #include #include #include #include // IWYU pragma: export #include // IWYU pragma: export #include #include "JobStatus.pb.h" // @@protoc_insertion_point(includes) namespace Tango { namespace PMR { namespace Printing { class JobResponse; class JobResponseDefaultTypeInternal; extern JobResponseDefaultTypeInternal _JobResponse_default_instance_; } // namespace Printing } // namespace PMR } // namespace Tango namespace Tango { namespace PMR { namespace Printing { namespace protobuf_JobResponse_2eproto { // Internal implementation detail -- do not call these. struct TableStruct { static const ::google::protobuf::internal::ParseTableField entries[]; static const ::google::protobuf::internal::AuxillaryParseTableField aux[]; static const ::google::protobuf::internal::ParseTable schema[]; static const ::google::protobuf::uint32 offsets[]; static const ::google::protobuf::internal::FieldMetadata field_metadata[]; static const ::google::protobuf::internal::SerializationTable serialization_table[]; static void InitDefaultsImpl(); }; void AddDescriptors(); void InitDefaults(); } // namespace protobuf_JobResponse_2eproto // =================================================================== class JobResponse : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:Tango.PMR.Printing.JobResponse) */ { public: JobResponse(); virtual ~JobResponse(); JobResponse(const JobResponse& from); inline JobResponse& operator=(const JobResponse& from) { CopyFrom(from); return *this; } #if LANG_CXX11 JobResponse(JobResponse&& from) noexcept : JobResponse() { *this = ::std::move(from); } inline JobResponse& operator=(JobResponse&& from) noexcept { if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { if (this != &from) InternalSwap(&from); } else { CopyFrom(from); } return *this; } #endif static const ::google::protobuf::Descriptor* descriptor(); static const JobResponse& default_instance(); static inline const JobResponse* internal_default_instance() { return reinterpret_cast( &_JobResponse_default_instance_); } static PROTOBUF_CONSTEXPR int const kIndexInFileMessages = 0; void Swap(JobResponse* other); friend void swap(JobResponse& a, JobResponse& b) { a.Swap(&b); } // implements Message ---------------------------------------------- inline JobResponse* New() const PROTOBUF_FINAL { return New(NULL); } JobResponse* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL; void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; void CopyFrom(const JobResponse& from); void MergeFrom(const JobResponse& from); void Clear() PROTOBUF_FINAL; bool IsInitialized() const PROTOBUF_FINAL; size_t ByteSizeLong() const PROTOBUF_FINAL; bool MergePartialFromCodedStream( ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; void SerializeWithCachedSizes( ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } private: void SharedCtor(); void SharedDtor(); void SetCachedSize(int size) const PROTOBUF_FINAL; void InternalSwap(JobResponse* other); private: inline ::google::protobuf::Arena* GetArenaNoVirtual() const { return NULL; } inline void* MaybeArenaPtr() const { return NULL; } public: ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- // .Tango.PMR.Printing.JobStatus Status = 1; bool has_status() const; void clear_status(); static const int kStatusFieldNumber = 1; const ::Tango::PMR::Printing::JobStatus& status() const; ::Tango::PMR::Printing::JobStatus* mutable_status(); ::Tango::PMR::Printing::JobStatus* release_status(); void set_allocated_status(::Tango::PMR::Printing::JobStatus* status); // bool Canceled = 2; void clear_canceled(); static const int kCanceledFieldNumber = 2; bool canceled() const; void set_canceled(bool value); // @@protoc_insertion_point(class_scope:Tango.PMR.Printing.JobResponse) private: ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; ::Tango::PMR::Printing::JobStatus* status_; bool canceled_; mutable int _cached_size_; friend struct protobuf_JobResponse_2eproto::TableStruct; }; // =================================================================== // =================================================================== #if !PROTOBUF_INLINE_NOT_IN_HEADERS #ifdef __GNUC__ #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wstrict-aliasing" #endif // __GNUC__ // JobResponse // .Tango.PMR.Printing.JobStatus Status = 1; inline bool JobResponse::has_status() const { return this != internal_default_instance() && status_ != NULL; } inline void JobResponse::clear_status() { if (GetArenaNoVirtual() == NULL && status_ != NULL) delete status_; status_ = NULL; } inline const ::Tango::PMR::Printing::JobStatus& JobResponse::status() const { const ::Tango::PMR::Printing::JobStatus* p = status_; // @@protoc_insertion_point(field_get:Tango.PMR.Printing.JobResponse.Status) return p != NULL ? *p : *reinterpret_cast( &::Tango::PMR::Printing::_JobStatus_default_instance_); } inline ::Tango::PMR::Printing::JobStatus* JobResponse::mutable_status() { if (status_ == NULL) { status_ = new ::Tango::PMR::Printing::JobStatus; } // @@protoc_insertion_point(field_mutable:Tango.PMR.Printing.JobResponse.Status) return status_; } inline ::Tango::PMR::Printing::JobStatus* JobResponse::release_status() { // @@protoc_insertion_point(field_release:Tango.PMR.Printing.JobResponse.Status) ::Tango::PMR::Printing::JobStatus* temp = status_; status_ = NULL; return temp; } inline void JobResponse::set_allocated_status(::Tango::PMR::Printing::JobStatus* status) { delete status_; status_ = status; if (status) { } else { } // @@protoc_insertion_point(field_set_allocated:Tango.PMR.Printing.JobResponse.Status) } // bool Canceled = 2; inline void JobResponse::clear_canceled() { canceled_ = false; } inline bool JobResponse::canceled() const { // @@protoc_insertion_point(field_get:Tango.PMR.Printing.JobResponse.Canceled) return canceled_; } inline void JobResponse::set_canceled(bool value) { canceled_ = value; // @@protoc_insertion_point(field_set:Tango.PMR.Printing.JobResponse.Canceled) } #ifdef __GNUC__ #pragma GCC diagnostic pop #endif // __GNUC__ #endif // !PROTOBUF_INLINE_NOT_IN_HEADERS // @@protoc_insertion_point(namespace_scope) } // namespace Printing } // namespace PMR } // namespace Tango // @@protoc_insertion_point(global_scope) #endif // PROTOBUF_JobResponse_2eproto__INCLUDED