// 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 #include #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 #include #include #include #include #include #include #include // IWYU pragma: export #include // IWYU pragma: export #include #include // @@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 { eCommand_msg = 1, eLocate_status_msg = 17, eLocate_request_msg = 18, eLocate_response_msg = 19, eHarware_statu_msg = 33, eExecute_request_msg = 34, eExecute_response_msg = 35 }; bool Message_type_IsValid(int value); const Message_type Message_type_MIN = eCommand_msg; const Message_type Message_type_MAX = eExecute_response_msg; 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_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_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( &_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