123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415 |
- // Generated by the protocol buffer compiler. DO NOT EDIT!
- // source: message_base.proto
- #ifndef PROTOBUF_message_5fbase_2eproto__INCLUDED
- #define PROTOBUF_message_5fbase_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>
- // @@protoc_insertion_point(includes)
- namespace protobuf_message_5fbase_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 InitDefaultsCommand_messageImpl();
- void InitDefaultsCommand_message();
- inline void InitDefaults() {
- InitDefaultsCommand_message();
- }
- } // namespace protobuf_message_5fbase_2eproto
- namespace message {
- class Command_message;
- class Command_messageDefaultTypeInternal;
- extern Command_messageDefaultTypeInternal _Command_message_default_instance_;
- } // namespace message
- namespace message {
- enum Message_type {
- COMMAND_MESSAGE = 1,
- SENSING_STATUS_MESSAGE = 17,
- SENSING_REQUEST_MESSAGE = 18,
- SENSING_RESPONSE_MESSAGE = 19,
- HARWARE_STATU_MESSAGE = 33,
- EXECUTE_REQUEST_MESSAGE = 34,
- EXECUTE_RESPONSE_MESSAGE = 35
- };
- bool Message_type_IsValid(int value);
- const Message_type Message_type_MIN = COMMAND_MESSAGE;
- const Message_type Message_type_MAX = EXECUTE_RESPONSE_MESSAGE;
- const int Message_type_ARRAYSIZE = Message_type_MAX + 1;
- const ::google::protobuf::EnumDescriptor* Message_type_descriptor();
- inline const ::std::string& Message_type_Name(Message_type value) {
- return ::google::protobuf::internal::NameOfEnum(
- Message_type_descriptor(), value);
- }
- inline bool Message_type_Parse(
- const ::std::string& name, Message_type* value) {
- return ::google::protobuf::internal::ParseNamedEnum<Message_type>(
- Message_type_descriptor(), name, value);
- }
- enum Action_type {
- ePark = 0,
- ePick = 1
- };
- bool Action_type_IsValid(int value);
- const Action_type Action_type_MIN = ePark;
- const Action_type Action_type_MAX = ePick;
- const int Action_type_ARRAYSIZE = Action_type_MAX + 1;
- const ::google::protobuf::EnumDescriptor* Action_type_descriptor();
- inline const ::std::string& Action_type_Name(Action_type value) {
- return ::google::protobuf::internal::NameOfEnum(
- Action_type_descriptor(), value);
- }
- inline bool Action_type_Parse(
- const ::std::string& name, Action_type* value) {
- return ::google::protobuf::internal::ParseNamedEnum<Action_type>(
- Action_type_descriptor(), name, value);
- }
- // ===================================================================
- class Command_message : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:message.Command_message) */ {
- public:
- Command_message();
- virtual ~Command_message();
- Command_message(const Command_message& from);
- inline Command_message& operator=(const Command_message& from) {
- CopyFrom(from);
- return *this;
- }
- #if LANG_CXX11
- Command_message(Command_message&& from) noexcept
- : Command_message() {
- *this = ::std::move(from);
- }
- inline Command_message& operator=(Command_message&& 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 Command_message& default_instance();
- static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
- static inline const Command_message* internal_default_instance() {
- return reinterpret_cast<const Command_message*>(
- &_Command_message_default_instance_);
- }
- static PROTOBUF_CONSTEXPR int const kIndexInFileMessages =
- 0;
- void Swap(Command_message* other);
- friend void swap(Command_message& a, Command_message& b) {
- a.Swap(&b);
- }
- // implements Message ----------------------------------------------
- inline Command_message* New() const PROTOBUF_FINAL { return New(NULL); }
- Command_message* 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 Command_message& from);
- void MergeFrom(const Command_message& 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(Command_message* 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 int32 command_id = 2;
- bool has_command_id() const;
- void clear_command_id();
- static const int kCommandIdFieldNumber = 2;
- ::google::protobuf::int32 command_id() const;
- void set_command_id(::google::protobuf::int32 value);
- // required .message.Action_type act_type = 3;
- bool has_act_type() const;
- void clear_act_type();
- static const int kActTypeFieldNumber = 3;
- ::message::Action_type act_type() const;
- void set_act_type(::message::Action_type value);
- // required int32 from_id = 4;
- bool has_from_id() const;
- void clear_from_id();
- static const int kFromIdFieldNumber = 4;
- ::google::protobuf::int32 from_id() const;
- void set_from_id(::google::protobuf::int32 value);
- // required int32 destination_id = 5;
- bool has_destination_id() const;
- void clear_destination_id();
- static const int kDestinationIdFieldNumber = 5;
- ::google::protobuf::int32 destination_id() const;
- void set_destination_id(::google::protobuf::int32 value);
- // required .message.Message_type msg_type = 1;
- bool has_msg_type() const;
- void clear_msg_type();
- static const int kMsgTypeFieldNumber = 1;
- ::message::Message_type msg_type() const;
- void set_msg_type(::message::Message_type value);
- // @@protoc_insertion_point(class_scope:message.Command_message)
- private:
- void set_has_msg_type();
- void clear_has_msg_type();
- void set_has_command_id();
- void clear_has_command_id();
- void set_has_act_type();
- void clear_has_act_type();
- void set_has_from_id();
- void clear_has_from_id();
- void set_has_destination_id();
- void clear_has_destination_id();
- // 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::int32 command_id_;
- int act_type_;
- ::google::protobuf::int32 from_id_;
- ::google::protobuf::int32 destination_id_;
- int msg_type_;
- friend struct ::protobuf_message_5fbase_2eproto::TableStruct;
- friend void ::protobuf_message_5fbase_2eproto::InitDefaultsCommand_messageImpl();
- };
- // ===================================================================
- // ===================================================================
- #ifdef __GNUC__
- #pragma GCC diagnostic push
- #pragma GCC diagnostic ignored "-Wstrict-aliasing"
- #endif // __GNUC__
- // Command_message
- // required .message.Message_type msg_type = 1;
- inline bool Command_message::has_msg_type() const {
- return (_has_bits_[0] & 0x00000010u) != 0;
- }
- inline void Command_message::set_has_msg_type() {
- _has_bits_[0] |= 0x00000010u;
- }
- inline void Command_message::clear_has_msg_type() {
- _has_bits_[0] &= ~0x00000010u;
- }
- inline void Command_message::clear_msg_type() {
- msg_type_ = 1;
- clear_has_msg_type();
- }
- inline ::message::Message_type Command_message::msg_type() const {
- // @@protoc_insertion_point(field_get:message.Command_message.msg_type)
- return static_cast< ::message::Message_type >(msg_type_);
- }
- inline void Command_message::set_msg_type(::message::Message_type value) {
- assert(::message::Message_type_IsValid(value));
- set_has_msg_type();
- msg_type_ = value;
- // @@protoc_insertion_point(field_set:message.Command_message.msg_type)
- }
- // required int32 command_id = 2;
- inline bool Command_message::has_command_id() const {
- return (_has_bits_[0] & 0x00000001u) != 0;
- }
- inline void Command_message::set_has_command_id() {
- _has_bits_[0] |= 0x00000001u;
- }
- inline void Command_message::clear_has_command_id() {
- _has_bits_[0] &= ~0x00000001u;
- }
- inline void Command_message::clear_command_id() {
- command_id_ = 0;
- clear_has_command_id();
- }
- inline ::google::protobuf::int32 Command_message::command_id() const {
- // @@protoc_insertion_point(field_get:message.Command_message.command_id)
- return command_id_;
- }
- inline void Command_message::set_command_id(::google::protobuf::int32 value) {
- set_has_command_id();
- command_id_ = value;
- // @@protoc_insertion_point(field_set:message.Command_message.command_id)
- }
- // required .message.Action_type act_type = 3;
- inline bool Command_message::has_act_type() const {
- return (_has_bits_[0] & 0x00000002u) != 0;
- }
- inline void Command_message::set_has_act_type() {
- _has_bits_[0] |= 0x00000002u;
- }
- inline void Command_message::clear_has_act_type() {
- _has_bits_[0] &= ~0x00000002u;
- }
- inline void Command_message::clear_act_type() {
- act_type_ = 0;
- clear_has_act_type();
- }
- inline ::message::Action_type Command_message::act_type() const {
- // @@protoc_insertion_point(field_get:message.Command_message.act_type)
- return static_cast< ::message::Action_type >(act_type_);
- }
- inline void Command_message::set_act_type(::message::Action_type value) {
- assert(::message::Action_type_IsValid(value));
- set_has_act_type();
- act_type_ = value;
- // @@protoc_insertion_point(field_set:message.Command_message.act_type)
- }
- // required int32 from_id = 4;
- inline bool Command_message::has_from_id() const {
- return (_has_bits_[0] & 0x00000004u) != 0;
- }
- inline void Command_message::set_has_from_id() {
- _has_bits_[0] |= 0x00000004u;
- }
- inline void Command_message::clear_has_from_id() {
- _has_bits_[0] &= ~0x00000004u;
- }
- inline void Command_message::clear_from_id() {
- from_id_ = 0;
- clear_has_from_id();
- }
- inline ::google::protobuf::int32 Command_message::from_id() const {
- // @@protoc_insertion_point(field_get:message.Command_message.from_id)
- return from_id_;
- }
- inline void Command_message::set_from_id(::google::protobuf::int32 value) {
- set_has_from_id();
- from_id_ = value;
- // @@protoc_insertion_point(field_set:message.Command_message.from_id)
- }
- // required int32 destination_id = 5;
- inline bool Command_message::has_destination_id() const {
- return (_has_bits_[0] & 0x00000008u) != 0;
- }
- inline void Command_message::set_has_destination_id() {
- _has_bits_[0] |= 0x00000008u;
- }
- inline void Command_message::clear_has_destination_id() {
- _has_bits_[0] &= ~0x00000008u;
- }
- inline void Command_message::clear_destination_id() {
- destination_id_ = 0;
- clear_has_destination_id();
- }
- inline ::google::protobuf::int32 Command_message::destination_id() const {
- // @@protoc_insertion_point(field_get:message.Command_message.destination_id)
- return destination_id_;
- }
- inline void Command_message::set_destination_id(::google::protobuf::int32 value) {
- set_has_destination_id();
- destination_id_ = value;
- // @@protoc_insertion_point(field_set:message.Command_message.destination_id)
- }
- #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::Message_type> : ::google::protobuf::internal::true_type {};
- template <>
- inline const EnumDescriptor* GetEnumDescriptor< ::message::Message_type>() {
- return ::message::Message_type_descriptor();
- }
- template <> struct is_proto_enum< ::message::Action_type> : ::google::protobuf::internal::true_type {};
- template <>
- inline const EnumDescriptor* GetEnumDescriptor< ::message::Action_type>() {
- return ::message::Action_type_descriptor();
- }
- } // namespace protobuf
- } // namespace google
- // @@protoc_insertion_point(global_scope)
- #endif // PROTOBUF_message_5fbase_2eproto__INCLUDED
|