// Generated by the protocol buffer compiler. DO NOT EDIT! // source: hardware_message.proto #ifndef PROTOBUF_hardware_5fmessage_2eproto__INCLUDED #define PROTOBUF_hardware_5fmessage_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 #include "message_base.pb.h" // @@protoc_insertion_point(includes) namespace protobuf_hardware_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[5]; 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 InitDefaultsPositionImpl(); void InitDefaultsPosition(); void InitDefaultsCarrier_statusImpl(); void InitDefaultsCarrier_status(); void InitDefaultsHarware_statu_msgImpl(); void InitDefaultsHarware_statu_msg(); void InitDefaultsExecute_request_msgImpl(); void InitDefaultsExecute_request_msg(); void InitDefaultsExecute_response_msgImpl(); void InitDefaultsExecute_response_msg(); inline void InitDefaults() { InitDefaultsPosition(); InitDefaultsCarrier_status(); InitDefaultsHarware_statu_msg(); InitDefaultsExecute_request_msg(); InitDefaultsExecute_response_msg(); } } // namespace protobuf_hardware_5fmessage_2eproto namespace message { class Carrier_status; class Carrier_statusDefaultTypeInternal; extern Carrier_statusDefaultTypeInternal _Carrier_status_default_instance_; class Execute_request_msg; class Execute_request_msgDefaultTypeInternal; extern Execute_request_msgDefaultTypeInternal _Execute_request_msg_default_instance_; class Execute_response_msg; class Execute_response_msgDefaultTypeInternal; extern Execute_response_msgDefaultTypeInternal _Execute_response_msg_default_instance_; class Harware_statu_msg; class Harware_statu_msgDefaultTypeInternal; extern Harware_statu_msgDefaultTypeInternal _Harware_statu_msg_default_instance_; class Position; class PositionDefaultTypeInternal; extern PositionDefaultTypeInternal _Position_default_instance_; } // namespace message namespace message { enum Hardware_statu { eNormal = 0, eBusy = 1, eMiss = 2, eError = 3 }; bool Hardware_statu_IsValid(int value); const Hardware_statu Hardware_statu_MIN = eNormal; const Hardware_statu Hardware_statu_MAX = eError; const int Hardware_statu_ARRAYSIZE = Hardware_statu_MAX + 1; const ::google::protobuf::EnumDescriptor* Hardware_statu_descriptor(); inline const ::std::string& Hardware_statu_Name(Hardware_statu value) { return ::google::protobuf::internal::NameOfEnum( Hardware_statu_descriptor(), value); } inline bool Hardware_statu_Parse( const ::std::string& name, Hardware_statu* value) { return ::google::protobuf::internal::ParseNamedEnum( Hardware_statu_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 Position : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:message.Position) */ { public: Position(); virtual ~Position(); Position(const Position& from); inline Position& operator=(const Position& from) { CopyFrom(from); return *this; } #if LANG_CXX11 Position(Position&& from) noexcept : Position() { *this = ::std::move(from); } inline Position& operator=(Position&& 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 Position& default_instance(); static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY static inline const Position* internal_default_instance() { return reinterpret_cast( &_Position_default_instance_); } static PROTOBUF_CONSTEXPR int const kIndexInFileMessages = 0; void Swap(Position* other); friend void swap(Position& a, Position& b) { a.Swap(&b); } // implements Message ---------------------------------------------- inline Position* New() const PROTOBUF_FINAL { return New(NULL); } Position* 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 Position& from); void MergeFrom(const Position& 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(Position* 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 float x = 1; bool has_x() const; void clear_x(); static const int kXFieldNumber = 1; float x() const; void set_x(float value); // required float y = 2; bool has_y() const; void clear_y(); static const int kYFieldNumber = 2; float y() const; void set_y(float value); // required float z = 3; bool has_z() const; void clear_z(); static const int kZFieldNumber = 3; float z() const; void set_z(float value); // @@protoc_insertion_point(class_scope:message.Position) private: void set_has_x(); void clear_has_x(); void set_has_y(); void clear_has_y(); void set_has_z(); void clear_has_z(); // helper for ByteSizeLong() size_t RequiredFieldsByteSizeFallback() const; ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; ::google::protobuf::internal::HasBits<1> _has_bits_; mutable int _cached_size_; float x_; float y_; float z_; friend struct ::protobuf_hardware_5fmessage_2eproto::TableStruct; friend void ::protobuf_hardware_5fmessage_2eproto::InitDefaultsPositionImpl(); }; // ------------------------------------------------------------------- class Carrier_status : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:message.Carrier_status) */ { public: Carrier_status(); virtual ~Carrier_status(); Carrier_status(const Carrier_status& from); inline Carrier_status& operator=(const Carrier_status& from) { CopyFrom(from); return *this; } #if LANG_CXX11 Carrier_status(Carrier_status&& from) noexcept : Carrier_status() { *this = ::std::move(from); } inline Carrier_status& operator=(Carrier_status&& 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 Carrier_status& default_instance(); static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY static inline const Carrier_status* internal_default_instance() { return reinterpret_cast( &_Carrier_status_default_instance_); } static PROTOBUF_CONSTEXPR int const kIndexInFileMessages = 1; void Swap(Carrier_status* other); friend void swap(Carrier_status& a, Carrier_status& b) { a.Swap(&b); } // implements Message ---------------------------------------------- inline Carrier_status* New() const PROTOBUF_FINAL { return New(NULL); } Carrier_status* 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 Carrier_status& from); void MergeFrom(const Carrier_status& 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(Carrier_status* 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 ------------------------------------------------------- // optional string error_description = 3; bool has_error_description() const; void clear_error_description(); static const int kErrorDescriptionFieldNumber = 3; const ::std::string& error_description() const; void set_error_description(const ::std::string& value); #if LANG_CXX11 void set_error_description(::std::string&& value); #endif void set_error_description(const char* value); void set_error_description(const char* value, size_t size); ::std::string* mutable_error_description(); ::std::string* release_error_description(); void set_allocated_error_description(::std::string* error_description); // required .message.Position position = 4; bool has_position() const; void clear_position(); static const int kPositionFieldNumber = 4; const ::message::Position& position() const; ::message::Position* release_position(); ::message::Position* mutable_position(); void set_allocated_position(::message::Position* position); // required .message.Hardware_statu statu = 1; bool has_statu() const; void clear_statu(); static const int kStatuFieldNumber = 1; ::message::Hardware_statu statu() const; void set_statu(::message::Hardware_statu value); // optional 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 bool empty = 5; bool has_empty() const; void clear_empty(); static const int kEmptyFieldNumber = 5; bool empty() const; void set_empty(bool value); // @@protoc_insertion_point(class_scope:message.Carrier_status) private: void set_has_statu(); void clear_has_statu(); void set_has_command_id(); void clear_has_command_id(); void set_has_error_description(); void clear_has_error_description(); void set_has_position(); void clear_has_position(); void set_has_empty(); void clear_has_empty(); // 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 error_description_; ::message::Position* position_; int statu_; ::google::protobuf::int32 command_id_; bool empty_; friend struct ::protobuf_hardware_5fmessage_2eproto::TableStruct; friend void ::protobuf_hardware_5fmessage_2eproto::InitDefaultsCarrier_statusImpl(); }; // ------------------------------------------------------------------- class Harware_statu_msg : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:message.Harware_statu_msg) */ { public: Harware_statu_msg(); virtual ~Harware_statu_msg(); Harware_statu_msg(const Harware_statu_msg& from); inline Harware_statu_msg& operator=(const Harware_statu_msg& from) { CopyFrom(from); return *this; } #if LANG_CXX11 Harware_statu_msg(Harware_statu_msg&& from) noexcept : Harware_statu_msg() { *this = ::std::move(from); } inline Harware_statu_msg& operator=(Harware_statu_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 Harware_statu_msg& default_instance(); static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY static inline const Harware_statu_msg* internal_default_instance() { return reinterpret_cast( &_Harware_statu_msg_default_instance_); } static PROTOBUF_CONSTEXPR int const kIndexInFileMessages = 2; void Swap(Harware_statu_msg* other); friend void swap(Harware_statu_msg& a, Harware_statu_msg& b) { a.Swap(&b); } // implements Message ---------------------------------------------- inline Harware_statu_msg* New() const PROTOBUF_FINAL { return New(NULL); } Harware_statu_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 Harware_statu_msg& from); void MergeFrom(const Harware_statu_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(Harware_statu_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 .message.Carrier_status carrier1_statu = 2; bool has_carrier1_statu() const; void clear_carrier1_statu(); static const int kCarrier1StatuFieldNumber = 2; const ::message::Carrier_status& carrier1_statu() const; ::message::Carrier_status* release_carrier1_statu(); ::message::Carrier_status* mutable_carrier1_statu(); void set_allocated_carrier1_statu(::message::Carrier_status* carrier1_statu); // required .message.Carrier_status carrier2_statu = 3; bool has_carrier2_statu() const; void clear_carrier2_statu(); static const int kCarrier2StatuFieldNumber = 3; const ::message::Carrier_status& carrier2_statu() const; ::message::Carrier_status* release_carrier2_statu(); ::message::Carrier_status* mutable_carrier2_statu(); void set_allocated_carrier2_statu(::message::Carrier_status* carrier2_statu); // required .message.Carrier_status carrier3_statu = 4; bool has_carrier3_statu() const; void clear_carrier3_statu(); static const int kCarrier3StatuFieldNumber = 4; const ::message::Carrier_status& carrier3_statu() const; ::message::Carrier_status* release_carrier3_statu(); ::message::Carrier_status* mutable_carrier3_statu(); void set_allocated_carrier3_statu(::message::Carrier_status* carrier3_statu); // 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.Harware_statu_msg) private: void set_has_msg_type(); void clear_has_msg_type(); void set_has_carrier1_statu(); void clear_has_carrier1_statu(); void set_has_carrier2_statu(); void clear_has_carrier2_statu(); void set_has_carrier3_statu(); void clear_has_carrier3_statu(); // helper for ByteSizeLong() size_t RequiredFieldsByteSizeFallback() const; ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; ::google::protobuf::internal::HasBits<1> _has_bits_; mutable int _cached_size_; ::message::Carrier_status* carrier1_statu_; ::message::Carrier_status* carrier2_statu_; ::message::Carrier_status* carrier3_statu_; int msg_type_; friend struct ::protobuf_hardware_5fmessage_2eproto::TableStruct; friend void ::protobuf_hardware_5fmessage_2eproto::InitDefaultsHarware_statu_msgImpl(); }; // ------------------------------------------------------------------- class Execute_request_msg : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:message.Execute_request_msg) */ { public: Execute_request_msg(); virtual ~Execute_request_msg(); Execute_request_msg(const Execute_request_msg& from); inline Execute_request_msg& operator=(const Execute_request_msg& from) { CopyFrom(from); return *this; } #if LANG_CXX11 Execute_request_msg(Execute_request_msg&& from) noexcept : Execute_request_msg() { *this = ::std::move(from); } inline Execute_request_msg& operator=(Execute_request_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 Execute_request_msg& default_instance(); static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY static inline const Execute_request_msg* internal_default_instance() { return reinterpret_cast( &_Execute_request_msg_default_instance_); } static PROTOBUF_CONSTEXPR int const kIndexInFileMessages = 3; void Swap(Execute_request_msg* other); friend void swap(Execute_request_msg& a, Execute_request_msg& b) { a.Swap(&b); } // implements Message ---------------------------------------------- inline Execute_request_msg* New() const PROTOBUF_FINAL { return New(NULL); } Execute_request_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 Execute_request_msg& from); void MergeFrom(const Execute_request_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(Execute_request_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 .message.Base_info msg_info = 1; bool has_msg_info() const; void clear_msg_info(); static const int kMsgInfoFieldNumber = 1; const ::message::Base_info& msg_info() const; ::message::Base_info* release_msg_info(); ::message::Base_info* mutable_msg_info(); void set_allocated_msg_info(::message::Base_info* msg_info); // required .message.Locate_information locate_information = 6; bool has_locate_information() const; void clear_locate_information(); static const int kLocateInformationFieldNumber = 6; const ::message::Locate_information& locate_information() const; ::message::Locate_information* release_locate_information(); ::message::Locate_information* mutable_locate_information(); void set_allocated_locate_information(::message::Locate_information* locate_information); // 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 action_type = 3; bool has_action_type() const; void clear_action_type(); static const int kActionTypeFieldNumber = 3; ::message::Action_type action_type() const; void set_action_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 = 5; bool has_destination() const; void clear_destination(); static const int kDestinationFieldNumber = 5; ::google::protobuf::int32 destination() const; void set_destination(::google::protobuf::int32 value); // @@protoc_insertion_point(class_scope:message.Execute_request_msg) private: void set_has_msg_info(); void clear_has_msg_info(); void set_has_command_id(); void clear_has_command_id(); void set_has_action_type(); void clear_has_action_type(); void set_has_from_id(); void clear_has_from_id(); void set_has_destination(); void clear_has_destination(); void set_has_locate_information(); void clear_has_locate_information(); // helper for ByteSizeLong() size_t RequiredFieldsByteSizeFallback() const; ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; ::google::protobuf::internal::HasBits<1> _has_bits_; mutable int _cached_size_; ::message::Base_info* msg_info_; ::message::Locate_information* locate_information_; ::google::protobuf::int32 command_id_; int action_type_; ::google::protobuf::int32 from_id_; ::google::protobuf::int32 destination_; friend struct ::protobuf_hardware_5fmessage_2eproto::TableStruct; friend void ::protobuf_hardware_5fmessage_2eproto::InitDefaultsExecute_request_msgImpl(); }; // ------------------------------------------------------------------- class Execute_response_msg : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:message.Execute_response_msg) */ { public: Execute_response_msg(); virtual ~Execute_response_msg(); Execute_response_msg(const Execute_response_msg& from); inline Execute_response_msg& operator=(const Execute_response_msg& from) { CopyFrom(from); return *this; } #if LANG_CXX11 Execute_response_msg(Execute_response_msg&& from) noexcept : Execute_response_msg() { *this = ::std::move(from); } inline Execute_response_msg& operator=(Execute_response_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 Execute_response_msg& default_instance(); static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY static inline const Execute_response_msg* internal_default_instance() { return reinterpret_cast( &_Execute_response_msg_default_instance_); } static PROTOBUF_CONSTEXPR int const kIndexInFileMessages = 4; void Swap(Execute_response_msg* other); friend void swap(Execute_response_msg& a, Execute_response_msg& b) { a.Swap(&b); } // implements Message ---------------------------------------------- inline Execute_response_msg* New() const PROTOBUF_FINAL { return New(NULL); } Execute_response_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 Execute_response_msg& from); void MergeFrom(const Execute_response_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(Execute_response_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 ------------------------------------------------------- // optional string error_description = 4; bool has_error_description() const; void clear_error_description(); static const int kErrorDescriptionFieldNumber = 4; const ::std::string& error_description() const; void set_error_description(const ::std::string& value); #if LANG_CXX11 void set_error_description(::std::string&& value); #endif void set_error_description(const char* value); void set_error_description(const char* value, size_t size); ::std::string* mutable_error_description(); ::std::string* release_error_description(); void set_allocated_error_description(::std::string* error_description); // required .message.Base_info msg_info = 1; bool has_msg_info() const; void clear_msg_info(); static const int kMsgInfoFieldNumber = 1; const ::message::Base_info& msg_info() const; ::message::Base_info* release_msg_info(); ::message::Base_info* mutable_msg_info(); void set_allocated_msg_info(::message::Base_info* msg_info); // 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 int32 error_code = 3; bool has_error_code() const; void clear_error_code(); static const int kErrorCodeFieldNumber = 3; ::google::protobuf::int32 error_code() const; void set_error_code(::google::protobuf::int32 value); // @@protoc_insertion_point(class_scope:message.Execute_response_msg) private: void set_has_msg_info(); void clear_has_msg_info(); void set_has_command_id(); void clear_has_command_id(); void set_has_error_code(); void clear_has_error_code(); void set_has_error_description(); void clear_has_error_description(); // 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 error_description_; ::message::Base_info* msg_info_; ::google::protobuf::int32 command_id_; ::google::protobuf::int32 error_code_; friend struct ::protobuf_hardware_5fmessage_2eproto::TableStruct; friend void ::protobuf_hardware_5fmessage_2eproto::InitDefaultsExecute_response_msgImpl(); }; // =================================================================== // =================================================================== #ifdef __GNUC__ #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wstrict-aliasing" #endif // __GNUC__ // Position // required float x = 1; inline bool Position::has_x() const { return (_has_bits_[0] & 0x00000001u) != 0; } inline void Position::set_has_x() { _has_bits_[0] |= 0x00000001u; } inline void Position::clear_has_x() { _has_bits_[0] &= ~0x00000001u; } inline void Position::clear_x() { x_ = 0; clear_has_x(); } inline float Position::x() const { // @@protoc_insertion_point(field_get:message.Position.x) return x_; } inline void Position::set_x(float value) { set_has_x(); x_ = value; // @@protoc_insertion_point(field_set:message.Position.x) } // required float y = 2; inline bool Position::has_y() const { return (_has_bits_[0] & 0x00000002u) != 0; } inline void Position::set_has_y() { _has_bits_[0] |= 0x00000002u; } inline void Position::clear_has_y() { _has_bits_[0] &= ~0x00000002u; } inline void Position::clear_y() { y_ = 0; clear_has_y(); } inline float Position::y() const { // @@protoc_insertion_point(field_get:message.Position.y) return y_; } inline void Position::set_y(float value) { set_has_y(); y_ = value; // @@protoc_insertion_point(field_set:message.Position.y) } // required float z = 3; inline bool Position::has_z() const { return (_has_bits_[0] & 0x00000004u) != 0; } inline void Position::set_has_z() { _has_bits_[0] |= 0x00000004u; } inline void Position::clear_has_z() { _has_bits_[0] &= ~0x00000004u; } inline void Position::clear_z() { z_ = 0; clear_has_z(); } inline float Position::z() const { // @@protoc_insertion_point(field_get:message.Position.z) return z_; } inline void Position::set_z(float value) { set_has_z(); z_ = value; // @@protoc_insertion_point(field_set:message.Position.z) } // ------------------------------------------------------------------- // Carrier_status // required .message.Hardware_statu statu = 1; inline bool Carrier_status::has_statu() const { return (_has_bits_[0] & 0x00000004u) != 0; } inline void Carrier_status::set_has_statu() { _has_bits_[0] |= 0x00000004u; } inline void Carrier_status::clear_has_statu() { _has_bits_[0] &= ~0x00000004u; } inline void Carrier_status::clear_statu() { statu_ = 0; clear_has_statu(); } inline ::message::Hardware_statu Carrier_status::statu() const { // @@protoc_insertion_point(field_get:message.Carrier_status.statu) return static_cast< ::message::Hardware_statu >(statu_); } inline void Carrier_status::set_statu(::message::Hardware_statu value) { assert(::message::Hardware_statu_IsValid(value)); set_has_statu(); statu_ = value; // @@protoc_insertion_point(field_set:message.Carrier_status.statu) } // optional int32 command_id = 2; inline bool Carrier_status::has_command_id() const { return (_has_bits_[0] & 0x00000008u) != 0; } inline void Carrier_status::set_has_command_id() { _has_bits_[0] |= 0x00000008u; } inline void Carrier_status::clear_has_command_id() { _has_bits_[0] &= ~0x00000008u; } inline void Carrier_status::clear_command_id() { command_id_ = 0; clear_has_command_id(); } inline ::google::protobuf::int32 Carrier_status::command_id() const { // @@protoc_insertion_point(field_get:message.Carrier_status.command_id) return command_id_; } inline void Carrier_status::set_command_id(::google::protobuf::int32 value) { set_has_command_id(); command_id_ = value; // @@protoc_insertion_point(field_set:message.Carrier_status.command_id) } // optional string error_description = 3; inline bool Carrier_status::has_error_description() const { return (_has_bits_[0] & 0x00000001u) != 0; } inline void Carrier_status::set_has_error_description() { _has_bits_[0] |= 0x00000001u; } inline void Carrier_status::clear_has_error_description() { _has_bits_[0] &= ~0x00000001u; } inline void Carrier_status::clear_error_description() { error_description_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); clear_has_error_description(); } inline const ::std::string& Carrier_status::error_description() const { // @@protoc_insertion_point(field_get:message.Carrier_status.error_description) return error_description_.GetNoArena(); } inline void Carrier_status::set_error_description(const ::std::string& value) { set_has_error_description(); error_description_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); // @@protoc_insertion_point(field_set:message.Carrier_status.error_description) } #if LANG_CXX11 inline void Carrier_status::set_error_description(::std::string&& value) { set_has_error_description(); error_description_.SetNoArena( &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); // @@protoc_insertion_point(field_set_rvalue:message.Carrier_status.error_description) } #endif inline void Carrier_status::set_error_description(const char* value) { GOOGLE_DCHECK(value != NULL); set_has_error_description(); error_description_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); // @@protoc_insertion_point(field_set_char:message.Carrier_status.error_description) } inline void Carrier_status::set_error_description(const char* value, size_t size) { set_has_error_description(); error_description_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(reinterpret_cast(value), size)); // @@protoc_insertion_point(field_set_pointer:message.Carrier_status.error_description) } inline ::std::string* Carrier_status::mutable_error_description() { set_has_error_description(); // @@protoc_insertion_point(field_mutable:message.Carrier_status.error_description) return error_description_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } inline ::std::string* Carrier_status::release_error_description() { // @@protoc_insertion_point(field_release:message.Carrier_status.error_description) clear_has_error_description(); return error_description_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } inline void Carrier_status::set_allocated_error_description(::std::string* error_description) { if (error_description != NULL) { set_has_error_description(); } else { clear_has_error_description(); } error_description_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), error_description); // @@protoc_insertion_point(field_set_allocated:message.Carrier_status.error_description) } // required .message.Position position = 4; inline bool Carrier_status::has_position() const { return (_has_bits_[0] & 0x00000002u) != 0; } inline void Carrier_status::set_has_position() { _has_bits_[0] |= 0x00000002u; } inline void Carrier_status::clear_has_position() { _has_bits_[0] &= ~0x00000002u; } inline void Carrier_status::clear_position() { if (position_ != NULL) position_->Clear(); clear_has_position(); } inline const ::message::Position& Carrier_status::position() const { const ::message::Position* p = position_; // @@protoc_insertion_point(field_get:message.Carrier_status.position) return p != NULL ? *p : *reinterpret_cast( &::message::_Position_default_instance_); } inline ::message::Position* Carrier_status::release_position() { // @@protoc_insertion_point(field_release:message.Carrier_status.position) clear_has_position(); ::message::Position* temp = position_; position_ = NULL; return temp; } inline ::message::Position* Carrier_status::mutable_position() { set_has_position(); if (position_ == NULL) { position_ = new ::message::Position; } // @@protoc_insertion_point(field_mutable:message.Carrier_status.position) return position_; } inline void Carrier_status::set_allocated_position(::message::Position* position) { ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); if (message_arena == NULL) { delete position_; } if (position) { ::google::protobuf::Arena* submessage_arena = NULL; if (message_arena != submessage_arena) { position = ::google::protobuf::internal::GetOwnedMessage( message_arena, position, submessage_arena); } set_has_position(); } else { clear_has_position(); } position_ = position; // @@protoc_insertion_point(field_set_allocated:message.Carrier_status.position) } // required bool empty = 5; inline bool Carrier_status::has_empty() const { return (_has_bits_[0] & 0x00000010u) != 0; } inline void Carrier_status::set_has_empty() { _has_bits_[0] |= 0x00000010u; } inline void Carrier_status::clear_has_empty() { _has_bits_[0] &= ~0x00000010u; } inline void Carrier_status::clear_empty() { empty_ = false; clear_has_empty(); } inline bool Carrier_status::empty() const { // @@protoc_insertion_point(field_get:message.Carrier_status.empty) return empty_; } inline void Carrier_status::set_empty(bool value) { set_has_empty(); empty_ = value; // @@protoc_insertion_point(field_set:message.Carrier_status.empty) } // ------------------------------------------------------------------- // Harware_statu_msg // required .message.Message_type msg_type = 1; inline bool Harware_statu_msg::has_msg_type() const { return (_has_bits_[0] & 0x00000008u) != 0; } inline void Harware_statu_msg::set_has_msg_type() { _has_bits_[0] |= 0x00000008u; } inline void Harware_statu_msg::clear_has_msg_type() { _has_bits_[0] &= ~0x00000008u; } inline void Harware_statu_msg::clear_msg_type() { msg_type_ = 0; clear_has_msg_type(); } inline ::message::Message_type Harware_statu_msg::msg_type() const { // @@protoc_insertion_point(field_get:message.Harware_statu_msg.msg_type) return static_cast< ::message::Message_type >(msg_type_); } inline void Harware_statu_msg::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.Harware_statu_msg.msg_type) } // required .message.Carrier_status carrier1_statu = 2; inline bool Harware_statu_msg::has_carrier1_statu() const { return (_has_bits_[0] & 0x00000001u) != 0; } inline void Harware_statu_msg::set_has_carrier1_statu() { _has_bits_[0] |= 0x00000001u; } inline void Harware_statu_msg::clear_has_carrier1_statu() { _has_bits_[0] &= ~0x00000001u; } inline void Harware_statu_msg::clear_carrier1_statu() { if (carrier1_statu_ != NULL) carrier1_statu_->Clear(); clear_has_carrier1_statu(); } inline const ::message::Carrier_status& Harware_statu_msg::carrier1_statu() const { const ::message::Carrier_status* p = carrier1_statu_; // @@protoc_insertion_point(field_get:message.Harware_statu_msg.carrier1_statu) return p != NULL ? *p : *reinterpret_cast( &::message::_Carrier_status_default_instance_); } inline ::message::Carrier_status* Harware_statu_msg::release_carrier1_statu() { // @@protoc_insertion_point(field_release:message.Harware_statu_msg.carrier1_statu) clear_has_carrier1_statu(); ::message::Carrier_status* temp = carrier1_statu_; carrier1_statu_ = NULL; return temp; } inline ::message::Carrier_status* Harware_statu_msg::mutable_carrier1_statu() { set_has_carrier1_statu(); if (carrier1_statu_ == NULL) { carrier1_statu_ = new ::message::Carrier_status; } // @@protoc_insertion_point(field_mutable:message.Harware_statu_msg.carrier1_statu) return carrier1_statu_; } inline void Harware_statu_msg::set_allocated_carrier1_statu(::message::Carrier_status* carrier1_statu) { ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); if (message_arena == NULL) { delete carrier1_statu_; } if (carrier1_statu) { ::google::protobuf::Arena* submessage_arena = NULL; if (message_arena != submessage_arena) { carrier1_statu = ::google::protobuf::internal::GetOwnedMessage( message_arena, carrier1_statu, submessage_arena); } set_has_carrier1_statu(); } else { clear_has_carrier1_statu(); } carrier1_statu_ = carrier1_statu; // @@protoc_insertion_point(field_set_allocated:message.Harware_statu_msg.carrier1_statu) } // required .message.Carrier_status carrier2_statu = 3; inline bool Harware_statu_msg::has_carrier2_statu() const { return (_has_bits_[0] & 0x00000002u) != 0; } inline void Harware_statu_msg::set_has_carrier2_statu() { _has_bits_[0] |= 0x00000002u; } inline void Harware_statu_msg::clear_has_carrier2_statu() { _has_bits_[0] &= ~0x00000002u; } inline void Harware_statu_msg::clear_carrier2_statu() { if (carrier2_statu_ != NULL) carrier2_statu_->Clear(); clear_has_carrier2_statu(); } inline const ::message::Carrier_status& Harware_statu_msg::carrier2_statu() const { const ::message::Carrier_status* p = carrier2_statu_; // @@protoc_insertion_point(field_get:message.Harware_statu_msg.carrier2_statu) return p != NULL ? *p : *reinterpret_cast( &::message::_Carrier_status_default_instance_); } inline ::message::Carrier_status* Harware_statu_msg::release_carrier2_statu() { // @@protoc_insertion_point(field_release:message.Harware_statu_msg.carrier2_statu) clear_has_carrier2_statu(); ::message::Carrier_status* temp = carrier2_statu_; carrier2_statu_ = NULL; return temp; } inline ::message::Carrier_status* Harware_statu_msg::mutable_carrier2_statu() { set_has_carrier2_statu(); if (carrier2_statu_ == NULL) { carrier2_statu_ = new ::message::Carrier_status; } // @@protoc_insertion_point(field_mutable:message.Harware_statu_msg.carrier2_statu) return carrier2_statu_; } inline void Harware_statu_msg::set_allocated_carrier2_statu(::message::Carrier_status* carrier2_statu) { ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); if (message_arena == NULL) { delete carrier2_statu_; } if (carrier2_statu) { ::google::protobuf::Arena* submessage_arena = NULL; if (message_arena != submessage_arena) { carrier2_statu = ::google::protobuf::internal::GetOwnedMessage( message_arena, carrier2_statu, submessage_arena); } set_has_carrier2_statu(); } else { clear_has_carrier2_statu(); } carrier2_statu_ = carrier2_statu; // @@protoc_insertion_point(field_set_allocated:message.Harware_statu_msg.carrier2_statu) } // required .message.Carrier_status carrier3_statu = 4; inline bool Harware_statu_msg::has_carrier3_statu() const { return (_has_bits_[0] & 0x00000004u) != 0; } inline void Harware_statu_msg::set_has_carrier3_statu() { _has_bits_[0] |= 0x00000004u; } inline void Harware_statu_msg::clear_has_carrier3_statu() { _has_bits_[0] &= ~0x00000004u; } inline void Harware_statu_msg::clear_carrier3_statu() { if (carrier3_statu_ != NULL) carrier3_statu_->Clear(); clear_has_carrier3_statu(); } inline const ::message::Carrier_status& Harware_statu_msg::carrier3_statu() const { const ::message::Carrier_status* p = carrier3_statu_; // @@protoc_insertion_point(field_get:message.Harware_statu_msg.carrier3_statu) return p != NULL ? *p : *reinterpret_cast( &::message::_Carrier_status_default_instance_); } inline ::message::Carrier_status* Harware_statu_msg::release_carrier3_statu() { // @@protoc_insertion_point(field_release:message.Harware_statu_msg.carrier3_statu) clear_has_carrier3_statu(); ::message::Carrier_status* temp = carrier3_statu_; carrier3_statu_ = NULL; return temp; } inline ::message::Carrier_status* Harware_statu_msg::mutable_carrier3_statu() { set_has_carrier3_statu(); if (carrier3_statu_ == NULL) { carrier3_statu_ = new ::message::Carrier_status; } // @@protoc_insertion_point(field_mutable:message.Harware_statu_msg.carrier3_statu) return carrier3_statu_; } inline void Harware_statu_msg::set_allocated_carrier3_statu(::message::Carrier_status* carrier3_statu) { ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); if (message_arena == NULL) { delete carrier3_statu_; } if (carrier3_statu) { ::google::protobuf::Arena* submessage_arena = NULL; if (message_arena != submessage_arena) { carrier3_statu = ::google::protobuf::internal::GetOwnedMessage( message_arena, carrier3_statu, submessage_arena); } set_has_carrier3_statu(); } else { clear_has_carrier3_statu(); } carrier3_statu_ = carrier3_statu; // @@protoc_insertion_point(field_set_allocated:message.Harware_statu_msg.carrier3_statu) } // ------------------------------------------------------------------- // Execute_request_msg // required .message.Base_info msg_info = 1; inline bool Execute_request_msg::has_msg_info() const { return (_has_bits_[0] & 0x00000001u) != 0; } inline void Execute_request_msg::set_has_msg_info() { _has_bits_[0] |= 0x00000001u; } inline void Execute_request_msg::clear_has_msg_info() { _has_bits_[0] &= ~0x00000001u; } inline const ::message::Base_info& Execute_request_msg::msg_info() const { const ::message::Base_info* p = msg_info_; // @@protoc_insertion_point(field_get:message.Execute_request_msg.msg_info) return p != NULL ? *p : *reinterpret_cast( &::message::_Base_info_default_instance_); } inline ::message::Base_info* Execute_request_msg::release_msg_info() { // @@protoc_insertion_point(field_release:message.Execute_request_msg.msg_info) clear_has_msg_info(); ::message::Base_info* temp = msg_info_; msg_info_ = NULL; return temp; } inline ::message::Base_info* Execute_request_msg::mutable_msg_info() { set_has_msg_info(); if (msg_info_ == NULL) { msg_info_ = new ::message::Base_info; } // @@protoc_insertion_point(field_mutable:message.Execute_request_msg.msg_info) return msg_info_; } inline void Execute_request_msg::set_allocated_msg_info(::message::Base_info* msg_info) { ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); if (message_arena == NULL) { delete reinterpret_cast< ::google::protobuf::MessageLite*>(msg_info_); } if (msg_info) { ::google::protobuf::Arena* submessage_arena = NULL; if (message_arena != submessage_arena) { msg_info = ::google::protobuf::internal::GetOwnedMessage( message_arena, msg_info, submessage_arena); } set_has_msg_info(); } else { clear_has_msg_info(); } msg_info_ = msg_info; // @@protoc_insertion_point(field_set_allocated:message.Execute_request_msg.msg_info) } // required int32 command_id = 2; inline bool Execute_request_msg::has_command_id() const { return (_has_bits_[0] & 0x00000004u) != 0; } inline void Execute_request_msg::set_has_command_id() { _has_bits_[0] |= 0x00000004u; } inline void Execute_request_msg::clear_has_command_id() { _has_bits_[0] &= ~0x00000004u; } inline void Execute_request_msg::clear_command_id() { command_id_ = 0; clear_has_command_id(); } inline ::google::protobuf::int32 Execute_request_msg::command_id() const { // @@protoc_insertion_point(field_get:message.Execute_request_msg.command_id) return command_id_; } inline void Execute_request_msg::set_command_id(::google::protobuf::int32 value) { set_has_command_id(); command_id_ = value; // @@protoc_insertion_point(field_set:message.Execute_request_msg.command_id) } // required .message.Action_type action_type = 3; inline bool Execute_request_msg::has_action_type() const { return (_has_bits_[0] & 0x00000008u) != 0; } inline void Execute_request_msg::set_has_action_type() { _has_bits_[0] |= 0x00000008u; } inline void Execute_request_msg::clear_has_action_type() { _has_bits_[0] &= ~0x00000008u; } inline void Execute_request_msg::clear_action_type() { action_type_ = 0; clear_has_action_type(); } inline ::message::Action_type Execute_request_msg::action_type() const { // @@protoc_insertion_point(field_get:message.Execute_request_msg.action_type) return static_cast< ::message::Action_type >(action_type_); } inline void Execute_request_msg::set_action_type(::message::Action_type value) { assert(::message::Action_type_IsValid(value)); set_has_action_type(); action_type_ = value; // @@protoc_insertion_point(field_set:message.Execute_request_msg.action_type) } // required int32 from_id = 4; inline bool Execute_request_msg::has_from_id() const { return (_has_bits_[0] & 0x00000010u) != 0; } inline void Execute_request_msg::set_has_from_id() { _has_bits_[0] |= 0x00000010u; } inline void Execute_request_msg::clear_has_from_id() { _has_bits_[0] &= ~0x00000010u; } inline void Execute_request_msg::clear_from_id() { from_id_ = 0; clear_has_from_id(); } inline ::google::protobuf::int32 Execute_request_msg::from_id() const { // @@protoc_insertion_point(field_get:message.Execute_request_msg.from_id) return from_id_; } inline void Execute_request_msg::set_from_id(::google::protobuf::int32 value) { set_has_from_id(); from_id_ = value; // @@protoc_insertion_point(field_set:message.Execute_request_msg.from_id) } // required int32 destination = 5; inline bool Execute_request_msg::has_destination() const { return (_has_bits_[0] & 0x00000020u) != 0; } inline void Execute_request_msg::set_has_destination() { _has_bits_[0] |= 0x00000020u; } inline void Execute_request_msg::clear_has_destination() { _has_bits_[0] &= ~0x00000020u; } inline void Execute_request_msg::clear_destination() { destination_ = 0; clear_has_destination(); } inline ::google::protobuf::int32 Execute_request_msg::destination() const { // @@protoc_insertion_point(field_get:message.Execute_request_msg.destination) return destination_; } inline void Execute_request_msg::set_destination(::google::protobuf::int32 value) { set_has_destination(); destination_ = value; // @@protoc_insertion_point(field_set:message.Execute_request_msg.destination) } // required .message.Locate_information locate_information = 6; inline bool Execute_request_msg::has_locate_information() const { return (_has_bits_[0] & 0x00000002u) != 0; } inline void Execute_request_msg::set_has_locate_information() { _has_bits_[0] |= 0x00000002u; } inline void Execute_request_msg::clear_has_locate_information() { _has_bits_[0] &= ~0x00000002u; } inline const ::message::Locate_information& Execute_request_msg::locate_information() const { const ::message::Locate_information* p = locate_information_; // @@protoc_insertion_point(field_get:message.Execute_request_msg.locate_information) return p != NULL ? *p : *reinterpret_cast( &::message::_Locate_information_default_instance_); } inline ::message::Locate_information* Execute_request_msg::release_locate_information() { // @@protoc_insertion_point(field_release:message.Execute_request_msg.locate_information) clear_has_locate_information(); ::message::Locate_information* temp = locate_information_; locate_information_ = NULL; return temp; } inline ::message::Locate_information* Execute_request_msg::mutable_locate_information() { set_has_locate_information(); if (locate_information_ == NULL) { locate_information_ = new ::message::Locate_information; } // @@protoc_insertion_point(field_mutable:message.Execute_request_msg.locate_information) return locate_information_; } inline void Execute_request_msg::set_allocated_locate_information(::message::Locate_information* locate_information) { ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); if (message_arena == NULL) { delete reinterpret_cast< ::google::protobuf::MessageLite*>(locate_information_); } if (locate_information) { ::google::protobuf::Arena* submessage_arena = NULL; if (message_arena != submessage_arena) { locate_information = ::google::protobuf::internal::GetOwnedMessage( message_arena, locate_information, submessage_arena); } set_has_locate_information(); } else { clear_has_locate_information(); } locate_information_ = locate_information; // @@protoc_insertion_point(field_set_allocated:message.Execute_request_msg.locate_information) } // ------------------------------------------------------------------- // Execute_response_msg // required .message.Base_info msg_info = 1; inline bool Execute_response_msg::has_msg_info() const { return (_has_bits_[0] & 0x00000002u) != 0; } inline void Execute_response_msg::set_has_msg_info() { _has_bits_[0] |= 0x00000002u; } inline void Execute_response_msg::clear_has_msg_info() { _has_bits_[0] &= ~0x00000002u; } inline const ::message::Base_info& Execute_response_msg::msg_info() const { const ::message::Base_info* p = msg_info_; // @@protoc_insertion_point(field_get:message.Execute_response_msg.msg_info) return p != NULL ? *p : *reinterpret_cast( &::message::_Base_info_default_instance_); } inline ::message::Base_info* Execute_response_msg::release_msg_info() { // @@protoc_insertion_point(field_release:message.Execute_response_msg.msg_info) clear_has_msg_info(); ::message::Base_info* temp = msg_info_; msg_info_ = NULL; return temp; } inline ::message::Base_info* Execute_response_msg::mutable_msg_info() { set_has_msg_info(); if (msg_info_ == NULL) { msg_info_ = new ::message::Base_info; } // @@protoc_insertion_point(field_mutable:message.Execute_response_msg.msg_info) return msg_info_; } inline void Execute_response_msg::set_allocated_msg_info(::message::Base_info* msg_info) { ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); if (message_arena == NULL) { delete reinterpret_cast< ::google::protobuf::MessageLite*>(msg_info_); } if (msg_info) { ::google::protobuf::Arena* submessage_arena = NULL; if (message_arena != submessage_arena) { msg_info = ::google::protobuf::internal::GetOwnedMessage( message_arena, msg_info, submessage_arena); } set_has_msg_info(); } else { clear_has_msg_info(); } msg_info_ = msg_info; // @@protoc_insertion_point(field_set_allocated:message.Execute_response_msg.msg_info) } // required int32 command_id = 2; inline bool Execute_response_msg::has_command_id() const { return (_has_bits_[0] & 0x00000004u) != 0; } inline void Execute_response_msg::set_has_command_id() { _has_bits_[0] |= 0x00000004u; } inline void Execute_response_msg::clear_has_command_id() { _has_bits_[0] &= ~0x00000004u; } inline void Execute_response_msg::clear_command_id() { command_id_ = 0; clear_has_command_id(); } inline ::google::protobuf::int32 Execute_response_msg::command_id() const { // @@protoc_insertion_point(field_get:message.Execute_response_msg.command_id) return command_id_; } inline void Execute_response_msg::set_command_id(::google::protobuf::int32 value) { set_has_command_id(); command_id_ = value; // @@protoc_insertion_point(field_set:message.Execute_response_msg.command_id) } // required int32 error_code = 3; inline bool Execute_response_msg::has_error_code() const { return (_has_bits_[0] & 0x00000008u) != 0; } inline void Execute_response_msg::set_has_error_code() { _has_bits_[0] |= 0x00000008u; } inline void Execute_response_msg::clear_has_error_code() { _has_bits_[0] &= ~0x00000008u; } inline void Execute_response_msg::clear_error_code() { error_code_ = 0; clear_has_error_code(); } inline ::google::protobuf::int32 Execute_response_msg::error_code() const { // @@protoc_insertion_point(field_get:message.Execute_response_msg.error_code) return error_code_; } inline void Execute_response_msg::set_error_code(::google::protobuf::int32 value) { set_has_error_code(); error_code_ = value; // @@protoc_insertion_point(field_set:message.Execute_response_msg.error_code) } // optional string error_description = 4; inline bool Execute_response_msg::has_error_description() const { return (_has_bits_[0] & 0x00000001u) != 0; } inline void Execute_response_msg::set_has_error_description() { _has_bits_[0] |= 0x00000001u; } inline void Execute_response_msg::clear_has_error_description() { _has_bits_[0] &= ~0x00000001u; } inline void Execute_response_msg::clear_error_description() { error_description_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); clear_has_error_description(); } inline const ::std::string& Execute_response_msg::error_description() const { // @@protoc_insertion_point(field_get:message.Execute_response_msg.error_description) return error_description_.GetNoArena(); } inline void Execute_response_msg::set_error_description(const ::std::string& value) { set_has_error_description(); error_description_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); // @@protoc_insertion_point(field_set:message.Execute_response_msg.error_description) } #if LANG_CXX11 inline void Execute_response_msg::set_error_description(::std::string&& value) { set_has_error_description(); error_description_.SetNoArena( &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); // @@protoc_insertion_point(field_set_rvalue:message.Execute_response_msg.error_description) } #endif inline void Execute_response_msg::set_error_description(const char* value) { GOOGLE_DCHECK(value != NULL); set_has_error_description(); error_description_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); // @@protoc_insertion_point(field_set_char:message.Execute_response_msg.error_description) } inline void Execute_response_msg::set_error_description(const char* value, size_t size) { set_has_error_description(); error_description_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(reinterpret_cast(value), size)); // @@protoc_insertion_point(field_set_pointer:message.Execute_response_msg.error_description) } inline ::std::string* Execute_response_msg::mutable_error_description() { set_has_error_description(); // @@protoc_insertion_point(field_mutable:message.Execute_response_msg.error_description) return error_description_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } inline ::std::string* Execute_response_msg::release_error_description() { // @@protoc_insertion_point(field_release:message.Execute_response_msg.error_description) clear_has_error_description(); return error_description_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } inline void Execute_response_msg::set_allocated_error_description(::std::string* error_description) { if (error_description != NULL) { set_has_error_description(); } else { clear_has_error_description(); } error_description_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), error_description); // @@protoc_insertion_point(field_set_allocated:message.Execute_response_msg.error_description) } #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::Hardware_statu> : ::google::protobuf::internal::true_type {}; template <> inline const EnumDescriptor* GetEnumDescriptor< ::message::Hardware_statu>() { return ::message::Hardware_statu_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_hardware_5fmessage_2eproto__INCLUDED