123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461 |
- // Generated by the protocol buffer compiler. DO NOT EDIT!
- // source: manual_operation_message.proto
- #ifndef PROTOBUF_manual_5foperation_5fmessage_2eproto__INCLUDED
- #define PROTOBUF_manual_5foperation_5fmessage_2eproto__INCLUDED
- #include <string>
- #include <google/protobuf/stubs/common.h>
- #if GOOGLE_PROTOBUF_VERSION < 3005000
- #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 3005000 < 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 <google/protobuf/io/coded_stream.h>
- #include <google/protobuf/arena.h>
- #include <google/protobuf/arenastring.h>
- #include <google/protobuf/generated_message_table_driven.h>
- #include <google/protobuf/generated_message_util.h>
- #include <google/protobuf/metadata.h>
- #include <google/protobuf/message.h>
- #include <google/protobuf/repeated_field.h> // IWYU pragma: export
- #include <google/protobuf/extension_set.h> // IWYU pragma: export
- #include <google/protobuf/generated_enum_reflection.h>
- #include <google/protobuf/unknown_field_set.h>
- #include "message_base.pb.h"
- // @@protoc_insertion_point(includes)
- namespace protobuf_manual_5foperation_5fmessage_2eproto {
- // Internal implementation detail -- do not use these members.
- struct TableStruct {
- static const ::google::protobuf::internal::ParseTableField entries[];
- static const ::google::protobuf::internal::AuxillaryParseTableField aux[];
- static const ::google::protobuf::internal::ParseTable schema[1];
- static const ::google::protobuf::internal::FieldMetadata field_metadata[];
- static const ::google::protobuf::internal::SerializationTable serialization_table[];
- static const ::google::protobuf::uint32 offsets[];
- };
- void AddDescriptors();
- void InitDefaultsManual_operation_msgImpl();
- void InitDefaultsManual_operation_msg();
- inline void InitDefaults() {
- InitDefaultsManual_operation_msg();
- }
- } // namespace protobuf_manual_5foperation_5fmessage_2eproto
- namespace message {
- class Manual_operation_msg;
- class Manual_operation_msgDefaultTypeInternal;
- extern Manual_operation_msgDefaultTypeInternal _Manual_operation_msg_default_instance_;
- } // namespace message
- namespace message {
- enum Step_type {
- eAlloc_step = 0,
- eMeasure_step = 1,
- eCompare_step = 2,
- eDispatch_step = 3,
- eConfirm_step = 4,
- eComplete = 5,
- eBackConfirm_step = 6,
- eBackDispatch_step = 7,
- eBack_compare_step = 8,
- eBackMeasure_step = 9,
- eBackAlloc_step = 10,
- eBackComplete = 11
- };
- bool Step_type_IsValid(int value);
- const Step_type Step_type_MIN = eAlloc_step;
- const Step_type Step_type_MAX = eBackComplete;
- const int Step_type_ARRAYSIZE = Step_type_MAX + 1;
- const ::google::protobuf::EnumDescriptor* Step_type_descriptor();
- inline const ::std::string& Step_type_Name(Step_type value) {
- return ::google::protobuf::internal::NameOfEnum(
- Step_type_descriptor(), value);
- }
- inline bool Step_type_Parse(
- const ::std::string& name, Step_type* value) {
- return ::google::protobuf::internal::ParseNamedEnum<Step_type>(
- Step_type_descriptor(), name, value);
- }
- enum Operation_type {
- eManual_cancel = 1
- };
- bool Operation_type_IsValid(int value);
- const Operation_type Operation_type_MIN = eManual_cancel;
- const Operation_type Operation_type_MAX = eManual_cancel;
- const int Operation_type_ARRAYSIZE = Operation_type_MAX + 1;
- const ::google::protobuf::EnumDescriptor* Operation_type_descriptor();
- inline const ::std::string& Operation_type_Name(Operation_type value) {
- return ::google::protobuf::internal::NameOfEnum(
- Operation_type_descriptor(), value);
- }
- inline bool Operation_type_Parse(
- const ::std::string& name, Operation_type* value) {
- return ::google::protobuf::internal::ParseNamedEnum<Operation_type>(
- Operation_type_descriptor(), name, value);
- }
- // ===================================================================
- class Manual_operation_msg : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:message.Manual_operation_msg) */ {
- public:
- Manual_operation_msg();
- virtual ~Manual_operation_msg();
- Manual_operation_msg(const Manual_operation_msg& from);
- inline Manual_operation_msg& operator=(const Manual_operation_msg& from) {
- CopyFrom(from);
- return *this;
- }
- #if LANG_CXX11
- Manual_operation_msg(Manual_operation_msg&& from) noexcept
- : Manual_operation_msg() {
- *this = ::std::move(from);
- }
- inline Manual_operation_msg& operator=(Manual_operation_msg&& from) noexcept {
- if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
- if (this != &from) InternalSwap(&from);
- } else {
- CopyFrom(from);
- }
- return *this;
- }
- #endif
- inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
- return _internal_metadata_.unknown_fields();
- }
- inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
- return _internal_metadata_.mutable_unknown_fields();
- }
- static const ::google::protobuf::Descriptor* descriptor();
- static const Manual_operation_msg& default_instance();
- static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
- static inline const Manual_operation_msg* internal_default_instance() {
- return reinterpret_cast<const Manual_operation_msg*>(
- &_Manual_operation_msg_default_instance_);
- }
- static PROTOBUF_CONSTEXPR int const kIndexInFileMessages =
- 0;
- void Swap(Manual_operation_msg* other);
- friend void swap(Manual_operation_msg& a, Manual_operation_msg& b) {
- a.Swap(&b);
- }
- // implements Message ----------------------------------------------
- inline Manual_operation_msg* New() const PROTOBUF_FINAL { return New(NULL); }
- Manual_operation_msg* 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 Manual_operation_msg& from);
- void MergeFrom(const Manual_operation_msg& 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(Manual_operation_msg* 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 -------------------------------------------------------
- // required string license = 2;
- bool has_license() const;
- void clear_license();
- static const int kLicenseFieldNumber = 2;
- const ::std::string& license() const;
- void set_license(const ::std::string& value);
- #if LANG_CXX11
- void set_license(::std::string&& value);
- #endif
- void set_license(const char* value);
- void set_license(const char* value, size_t size);
- ::std::string* mutable_license();
- ::std::string* release_license();
- void set_allocated_license(::std::string* license);
- // required .message.Base_info base_info = 1;
- bool has_base_info() const;
- void clear_base_info();
- static const int kBaseInfoFieldNumber = 1;
- const ::message::Base_info& base_info() const;
- ::message::Base_info* release_base_info();
- ::message::Base_info* mutable_base_info();
- void set_allocated_base_info(::message::Base_info* base_info);
- // required .message.Step_type step_type = 3;
- bool has_step_type() const;
- void clear_step_type();
- static const int kStepTypeFieldNumber = 3;
- ::message::Step_type step_type() const;
- void set_step_type(::message::Step_type value);
- // required .message.Operation_type operate_type = 4;
- bool has_operate_type() const;
- void clear_operate_type();
- static const int kOperateTypeFieldNumber = 4;
- ::message::Operation_type operate_type() const;
- void set_operate_type(::message::Operation_type value);
- // @@protoc_insertion_point(class_scope:message.Manual_operation_msg)
- private:
- void set_has_base_info();
- void clear_has_base_info();
- void set_has_license();
- void clear_has_license();
- void set_has_step_type();
- void clear_has_step_type();
- void set_has_operate_type();
- void clear_has_operate_type();
- // helper for ByteSizeLong()
- size_t RequiredFieldsByteSizeFallback() const;
- ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
- ::google::protobuf::internal::HasBits<1> _has_bits_;
- mutable int _cached_size_;
- ::google::protobuf::internal::ArenaStringPtr license_;
- ::message::Base_info* base_info_;
- int step_type_;
- int operate_type_;
- friend struct ::protobuf_manual_5foperation_5fmessage_2eproto::TableStruct;
- friend void ::protobuf_manual_5foperation_5fmessage_2eproto::InitDefaultsManual_operation_msgImpl();
- };
- // ===================================================================
- // ===================================================================
- #ifdef __GNUC__
- #pragma GCC diagnostic push
- #pragma GCC diagnostic ignored "-Wstrict-aliasing"
- #endif // __GNUC__
- // Manual_operation_msg
- // required .message.Base_info base_info = 1;
- inline bool Manual_operation_msg::has_base_info() const {
- return (_has_bits_[0] & 0x00000002u) != 0;
- }
- inline void Manual_operation_msg::set_has_base_info() {
- _has_bits_[0] |= 0x00000002u;
- }
- inline void Manual_operation_msg::clear_has_base_info() {
- _has_bits_[0] &= ~0x00000002u;
- }
- inline const ::message::Base_info& Manual_operation_msg::base_info() const {
- const ::message::Base_info* p = base_info_;
- // @@protoc_insertion_point(field_get:message.Manual_operation_msg.base_info)
- return p != NULL ? *p : *reinterpret_cast<const ::message::Base_info*>(
- &::message::_Base_info_default_instance_);
- }
- inline ::message::Base_info* Manual_operation_msg::release_base_info() {
- // @@protoc_insertion_point(field_release:message.Manual_operation_msg.base_info)
- clear_has_base_info();
- ::message::Base_info* temp = base_info_;
- base_info_ = NULL;
- return temp;
- }
- inline ::message::Base_info* Manual_operation_msg::mutable_base_info() {
- set_has_base_info();
- if (base_info_ == NULL) {
- base_info_ = new ::message::Base_info;
- }
- // @@protoc_insertion_point(field_mutable:message.Manual_operation_msg.base_info)
- return base_info_;
- }
- inline void Manual_operation_msg::set_allocated_base_info(::message::Base_info* base_info) {
- ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
- if (message_arena == NULL) {
- delete reinterpret_cast< ::google::protobuf::MessageLite*>(base_info_);
- }
- if (base_info) {
- ::google::protobuf::Arena* submessage_arena = NULL;
- if (message_arena != submessage_arena) {
- base_info = ::google::protobuf::internal::GetOwnedMessage(
- message_arena, base_info, submessage_arena);
- }
- set_has_base_info();
- } else {
- clear_has_base_info();
- }
- base_info_ = base_info;
- // @@protoc_insertion_point(field_set_allocated:message.Manual_operation_msg.base_info)
- }
- // required string license = 2;
- inline bool Manual_operation_msg::has_license() const {
- return (_has_bits_[0] & 0x00000001u) != 0;
- }
- inline void Manual_operation_msg::set_has_license() {
- _has_bits_[0] |= 0x00000001u;
- }
- inline void Manual_operation_msg::clear_has_license() {
- _has_bits_[0] &= ~0x00000001u;
- }
- inline void Manual_operation_msg::clear_license() {
- license_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
- clear_has_license();
- }
- inline const ::std::string& Manual_operation_msg::license() const {
- // @@protoc_insertion_point(field_get:message.Manual_operation_msg.license)
- return license_.GetNoArena();
- }
- inline void Manual_operation_msg::set_license(const ::std::string& value) {
- set_has_license();
- license_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
- // @@protoc_insertion_point(field_set:message.Manual_operation_msg.license)
- }
- #if LANG_CXX11
- inline void Manual_operation_msg::set_license(::std::string&& value) {
- set_has_license();
- license_.SetNoArena(
- &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
- // @@protoc_insertion_point(field_set_rvalue:message.Manual_operation_msg.license)
- }
- #endif
- inline void Manual_operation_msg::set_license(const char* value) {
- GOOGLE_DCHECK(value != NULL);
- set_has_license();
- license_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
- // @@protoc_insertion_point(field_set_char:message.Manual_operation_msg.license)
- }
- inline void Manual_operation_msg::set_license(const char* value, size_t size) {
- set_has_license();
- license_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
- ::std::string(reinterpret_cast<const char*>(value), size));
- // @@protoc_insertion_point(field_set_pointer:message.Manual_operation_msg.license)
- }
- inline ::std::string* Manual_operation_msg::mutable_license() {
- set_has_license();
- // @@protoc_insertion_point(field_mutable:message.Manual_operation_msg.license)
- return license_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
- }
- inline ::std::string* Manual_operation_msg::release_license() {
- // @@protoc_insertion_point(field_release:message.Manual_operation_msg.license)
- clear_has_license();
- return license_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
- }
- inline void Manual_operation_msg::set_allocated_license(::std::string* license) {
- if (license != NULL) {
- set_has_license();
- } else {
- clear_has_license();
- }
- license_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), license);
- // @@protoc_insertion_point(field_set_allocated:message.Manual_operation_msg.license)
- }
- // required .message.Step_type step_type = 3;
- inline bool Manual_operation_msg::has_step_type() const {
- return (_has_bits_[0] & 0x00000004u) != 0;
- }
- inline void Manual_operation_msg::set_has_step_type() {
- _has_bits_[0] |= 0x00000004u;
- }
- inline void Manual_operation_msg::clear_has_step_type() {
- _has_bits_[0] &= ~0x00000004u;
- }
- inline void Manual_operation_msg::clear_step_type() {
- step_type_ = 0;
- clear_has_step_type();
- }
- inline ::message::Step_type Manual_operation_msg::step_type() const {
- // @@protoc_insertion_point(field_get:message.Manual_operation_msg.step_type)
- return static_cast< ::message::Step_type >(step_type_);
- }
- inline void Manual_operation_msg::set_step_type(::message::Step_type value) {
- assert(::message::Step_type_IsValid(value));
- set_has_step_type();
- step_type_ = value;
- // @@protoc_insertion_point(field_set:message.Manual_operation_msg.step_type)
- }
- // required .message.Operation_type operate_type = 4;
- inline bool Manual_operation_msg::has_operate_type() const {
- return (_has_bits_[0] & 0x00000008u) != 0;
- }
- inline void Manual_operation_msg::set_has_operate_type() {
- _has_bits_[0] |= 0x00000008u;
- }
- inline void Manual_operation_msg::clear_has_operate_type() {
- _has_bits_[0] &= ~0x00000008u;
- }
- inline void Manual_operation_msg::clear_operate_type() {
- operate_type_ = 1;
- clear_has_operate_type();
- }
- inline ::message::Operation_type Manual_operation_msg::operate_type() const {
- // @@protoc_insertion_point(field_get:message.Manual_operation_msg.operate_type)
- return static_cast< ::message::Operation_type >(operate_type_);
- }
- inline void Manual_operation_msg::set_operate_type(::message::Operation_type value) {
- assert(::message::Operation_type_IsValid(value));
- set_has_operate_type();
- operate_type_ = value;
- // @@protoc_insertion_point(field_set:message.Manual_operation_msg.operate_type)
- }
- #ifdef __GNUC__
- #pragma GCC diagnostic pop
- #endif // __GNUC__
- // @@protoc_insertion_point(namespace_scope)
- } // namespace message
- namespace google {
- namespace protobuf {
- template <> struct is_proto_enum< ::message::Step_type> : ::google::protobuf::internal::true_type {};
- template <>
- inline const EnumDescriptor* GetEnumDescriptor< ::message::Step_type>() {
- return ::message::Step_type_descriptor();
- }
- template <> struct is_proto_enum< ::message::Operation_type> : ::google::protobuf::internal::true_type {};
- template <>
- inline const EnumDescriptor* GetEnumDescriptor< ::message::Operation_type>() {
- return ::message::Operation_type_descriptor();
- }
- } // namespace protobuf
- } // namespace google
- // @@protoc_insertion_point(global_scope)
- #endif // PROTOBUF_manual_5foperation_5fmessage_2eproto__INCLUDED
|