// 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); } // =================================================================== 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_destination = 3; bool has_error_destination() const; void clear_error_destination(); static const int kErrorDestinationFieldNumber = 3; const ::std::string& error_destination() const; void set_error_destination(const ::std::string& value); #if LANG_CXX11 void set_error_destination(::std::string&& value); #endif void set_error_destination(const char* value); void set_error_destination(const char* value, size_t size); ::std::string* mutable_error_destination(); ::std::string* release_error_destination(); void set_allocated_error_destination(::std::string* error_destination); // optional .message.Command_message cmd_msg = 2; bool has_cmd_msg() const; void clear_cmd_msg(); static const int kCmdMsgFieldNumber = 2; const ::message::Command_message& cmd_msg() const; ::message::Command_message* release_cmd_msg(); ::message::Command_message* mutable_cmd_msg(); void set_allocated_cmd_msg(::message::Command_message* cmd_msg); // optional .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); // 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_cmd_msg(); void clear_has_cmd_msg(); void set_has_error_destination(); void clear_has_error_destination(); 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_destination_; ::message::Command_message* cmd_msg_; ::message::Position* position_; int statu_; 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.Command_message cmd_msg = 2; bool has_cmd_msg() const; void clear_cmd_msg(); static const int kCmdMsgFieldNumber = 2; const ::message::Command_message& cmd_msg() const; ::message::Command_message* release_cmd_msg(); ::message::Command_message* mutable_cmd_msg(); void set_allocated_cmd_msg(::message::Command_message* cmd_msg); // 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); // optional int32 time_out = 3 [default = 200000]; bool has_time_out() const; void clear_time_out(); static const int kTimeOutFieldNumber = 3; ::google::protobuf::int32 time_out() const; void set_time_out(::google::protobuf::int32 value); // @@protoc_insertion_point(class_scope:message.Execute_request_msg) private: void set_has_msg_type(); void clear_has_msg_type(); void set_has_cmd_msg(); void clear_has_cmd_msg(); void set_has_time_out(); void clear_has_time_out(); // 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::Command_message* cmd_msg_; int msg_type_; ::google::protobuf::int32 time_out_; 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.Command_message cmd_msg = 2; bool has_cmd_msg() const; void clear_cmd_msg(); static const int kCmdMsgFieldNumber = 2; const ::message::Command_message& cmd_msg() const; ::message::Command_message* release_cmd_msg(); ::message::Command_message* mutable_cmd_msg(); void set_allocated_cmd_msg(::message::Command_message* cmd_msg); // 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); // 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.Execute_response_msg) private: void set_has_msg_type(); void clear_has_msg_type(); void set_has_cmd_msg(); void clear_has_cmd_msg(); 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::Command_message* cmd_msg_; ::google::protobuf::int32 error_code_; int msg_type_; 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] & 0x00000008u) != 0; } inline void Carrier_status::set_has_statu() { _has_bits_[0] |= 0x00000008u; } inline void Carrier_status::clear_has_statu() { _has_bits_[0] &= ~0x00000008u; } 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 .message.Command_message cmd_msg = 2; inline bool Carrier_status::has_cmd_msg() const { return (_has_bits_[0] & 0x00000002u) != 0; } inline void Carrier_status::set_has_cmd_msg() { _has_bits_[0] |= 0x00000002u; } inline void Carrier_status::clear_has_cmd_msg() { _has_bits_[0] &= ~0x00000002u; } inline const ::message::Command_message& Carrier_status::cmd_msg() const { const ::message::Command_message* p = cmd_msg_; // @@protoc_insertion_point(field_get:message.Carrier_status.cmd_msg) return p != NULL ? *p : *reinterpret_cast( &::message::_Command_message_default_instance_); } inline ::message::Command_message* Carrier_status::release_cmd_msg() { // @@protoc_insertion_point(field_release:message.Carrier_status.cmd_msg) clear_has_cmd_msg(); ::message::Command_message* temp = cmd_msg_; cmd_msg_ = NULL; return temp; } inline ::message::Command_message* Carrier_status::mutable_cmd_msg() { set_has_cmd_msg(); if (cmd_msg_ == NULL) { cmd_msg_ = new ::message::Command_message; } // @@protoc_insertion_point(field_mutable:message.Carrier_status.cmd_msg) return cmd_msg_; } inline void Carrier_status::set_allocated_cmd_msg(::message::Command_message* cmd_msg) { ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); if (message_arena == NULL) { delete reinterpret_cast< ::google::protobuf::MessageLite*>(cmd_msg_); } if (cmd_msg) { ::google::protobuf::Arena* submessage_arena = NULL; if (message_arena != submessage_arena) { cmd_msg = ::google::protobuf::internal::GetOwnedMessage( message_arena, cmd_msg, submessage_arena); } set_has_cmd_msg(); } else { clear_has_cmd_msg(); } cmd_msg_ = cmd_msg; // @@protoc_insertion_point(field_set_allocated:message.Carrier_status.cmd_msg) } // optional string error_destination = 3; inline bool Carrier_status::has_error_destination() const { return (_has_bits_[0] & 0x00000001u) != 0; } inline void Carrier_status::set_has_error_destination() { _has_bits_[0] |= 0x00000001u; } inline void Carrier_status::clear_has_error_destination() { _has_bits_[0] &= ~0x00000001u; } inline void Carrier_status::clear_error_destination() { error_destination_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); clear_has_error_destination(); } inline const ::std::string& Carrier_status::error_destination() const { // @@protoc_insertion_point(field_get:message.Carrier_status.error_destination) return error_destination_.GetNoArena(); } inline void Carrier_status::set_error_destination(const ::std::string& value) { set_has_error_destination(); error_destination_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); // @@protoc_insertion_point(field_set:message.Carrier_status.error_destination) } #if LANG_CXX11 inline void Carrier_status::set_error_destination(::std::string&& value) { set_has_error_destination(); error_destination_.SetNoArena( &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); // @@protoc_insertion_point(field_set_rvalue:message.Carrier_status.error_destination) } #endif inline void Carrier_status::set_error_destination(const char* value) { GOOGLE_DCHECK(value != NULL); set_has_error_destination(); error_destination_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); // @@protoc_insertion_point(field_set_char:message.Carrier_status.error_destination) } inline void Carrier_status::set_error_destination(const char* value, size_t size) { set_has_error_destination(); error_destination_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(reinterpret_cast(value), size)); // @@protoc_insertion_point(field_set_pointer:message.Carrier_status.error_destination) } inline ::std::string* Carrier_status::mutable_error_destination() { set_has_error_destination(); // @@protoc_insertion_point(field_mutable:message.Carrier_status.error_destination) return error_destination_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } inline ::std::string* Carrier_status::release_error_destination() { // @@protoc_insertion_point(field_release:message.Carrier_status.error_destination) clear_has_error_destination(); return error_destination_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } inline void Carrier_status::set_allocated_error_destination(::std::string* error_destination) { if (error_destination != NULL) { set_has_error_destination(); } else { clear_has_error_destination(); } error_destination_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), error_destination); // @@protoc_insertion_point(field_set_allocated:message.Carrier_status.error_destination) } // optional .message.Position position = 4; inline bool Carrier_status::has_position() const { return (_has_bits_[0] & 0x00000004u) != 0; } inline void Carrier_status::set_has_position() { _has_bits_[0] |= 0x00000004u; } inline void Carrier_status::clear_has_position() { _has_bits_[0] &= ~0x00000004u; } 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_ = 1; 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.Message_type msg_type = 1; inline bool Execute_request_msg::has_msg_type() const { return (_has_bits_[0] & 0x00000002u) != 0; } inline void Execute_request_msg::set_has_msg_type() { _has_bits_[0] |= 0x00000002u; } inline void Execute_request_msg::clear_has_msg_type() { _has_bits_[0] &= ~0x00000002u; } inline void Execute_request_msg::clear_msg_type() { msg_type_ = 1; clear_has_msg_type(); } inline ::message::Message_type Execute_request_msg::msg_type() const { // @@protoc_insertion_point(field_get:message.Execute_request_msg.msg_type) return static_cast< ::message::Message_type >(msg_type_); } inline void Execute_request_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.Execute_request_msg.msg_type) } // required .message.Command_message cmd_msg = 2; inline bool Execute_request_msg::has_cmd_msg() const { return (_has_bits_[0] & 0x00000001u) != 0; } inline void Execute_request_msg::set_has_cmd_msg() { _has_bits_[0] |= 0x00000001u; } inline void Execute_request_msg::clear_has_cmd_msg() { _has_bits_[0] &= ~0x00000001u; } inline const ::message::Command_message& Execute_request_msg::cmd_msg() const { const ::message::Command_message* p = cmd_msg_; // @@protoc_insertion_point(field_get:message.Execute_request_msg.cmd_msg) return p != NULL ? *p : *reinterpret_cast( &::message::_Command_message_default_instance_); } inline ::message::Command_message* Execute_request_msg::release_cmd_msg() { // @@protoc_insertion_point(field_release:message.Execute_request_msg.cmd_msg) clear_has_cmd_msg(); ::message::Command_message* temp = cmd_msg_; cmd_msg_ = NULL; return temp; } inline ::message::Command_message* Execute_request_msg::mutable_cmd_msg() { set_has_cmd_msg(); if (cmd_msg_ == NULL) { cmd_msg_ = new ::message::Command_message; } // @@protoc_insertion_point(field_mutable:message.Execute_request_msg.cmd_msg) return cmd_msg_; } inline void Execute_request_msg::set_allocated_cmd_msg(::message::Command_message* cmd_msg) { ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); if (message_arena == NULL) { delete reinterpret_cast< ::google::protobuf::MessageLite*>(cmd_msg_); } if (cmd_msg) { ::google::protobuf::Arena* submessage_arena = NULL; if (message_arena != submessage_arena) { cmd_msg = ::google::protobuf::internal::GetOwnedMessage( message_arena, cmd_msg, submessage_arena); } set_has_cmd_msg(); } else { clear_has_cmd_msg(); } cmd_msg_ = cmd_msg; // @@protoc_insertion_point(field_set_allocated:message.Execute_request_msg.cmd_msg) } // optional int32 time_out = 3 [default = 200000]; inline bool Execute_request_msg::has_time_out() const { return (_has_bits_[0] & 0x00000004u) != 0; } inline void Execute_request_msg::set_has_time_out() { _has_bits_[0] |= 0x00000004u; } inline void Execute_request_msg::clear_has_time_out() { _has_bits_[0] &= ~0x00000004u; } inline void Execute_request_msg::clear_time_out() { time_out_ = 200000; clear_has_time_out(); } inline ::google::protobuf::int32 Execute_request_msg::time_out() const { // @@protoc_insertion_point(field_get:message.Execute_request_msg.time_out) return time_out_; } inline void Execute_request_msg::set_time_out(::google::protobuf::int32 value) { set_has_time_out(); time_out_ = value; // @@protoc_insertion_point(field_set:message.Execute_request_msg.time_out) } // ------------------------------------------------------------------- // Execute_response_msg // required .message.Message_type msg_type = 1; inline bool Execute_response_msg::has_msg_type() const { return (_has_bits_[0] & 0x00000008u) != 0; } inline void Execute_response_msg::set_has_msg_type() { _has_bits_[0] |= 0x00000008u; } inline void Execute_response_msg::clear_has_msg_type() { _has_bits_[0] &= ~0x00000008u; } inline void Execute_response_msg::clear_msg_type() { msg_type_ = 1; clear_has_msg_type(); } inline ::message::Message_type Execute_response_msg::msg_type() const { // @@protoc_insertion_point(field_get:message.Execute_response_msg.msg_type) return static_cast< ::message::Message_type >(msg_type_); } inline void Execute_response_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.Execute_response_msg.msg_type) } // required .message.Command_message cmd_msg = 2; inline bool Execute_response_msg::has_cmd_msg() const { return (_has_bits_[0] & 0x00000002u) != 0; } inline void Execute_response_msg::set_has_cmd_msg() { _has_bits_[0] |= 0x00000002u; } inline void Execute_response_msg::clear_has_cmd_msg() { _has_bits_[0] &= ~0x00000002u; } inline const ::message::Command_message& Execute_response_msg::cmd_msg() const { const ::message::Command_message* p = cmd_msg_; // @@protoc_insertion_point(field_get:message.Execute_response_msg.cmd_msg) return p != NULL ? *p : *reinterpret_cast( &::message::_Command_message_default_instance_); } inline ::message::Command_message* Execute_response_msg::release_cmd_msg() { // @@protoc_insertion_point(field_release:message.Execute_response_msg.cmd_msg) clear_has_cmd_msg(); ::message::Command_message* temp = cmd_msg_; cmd_msg_ = NULL; return temp; } inline ::message::Command_message* Execute_response_msg::mutable_cmd_msg() { set_has_cmd_msg(); if (cmd_msg_ == NULL) { cmd_msg_ = new ::message::Command_message; } // @@protoc_insertion_point(field_mutable:message.Execute_response_msg.cmd_msg) return cmd_msg_; } inline void Execute_response_msg::set_allocated_cmd_msg(::message::Command_message* cmd_msg) { ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); if (message_arena == NULL) { delete reinterpret_cast< ::google::protobuf::MessageLite*>(cmd_msg_); } if (cmd_msg) { ::google::protobuf::Arena* submessage_arena = NULL; if (message_arena != submessage_arena) { cmd_msg = ::google::protobuf::internal::GetOwnedMessage( message_arena, cmd_msg, submessage_arena); } set_has_cmd_msg(); } else { clear_has_cmd_msg(); } cmd_msg_ = cmd_msg; // @@protoc_insertion_point(field_set_allocated:message.Execute_response_msg.cmd_msg) } // required int32 error_code = 3; inline bool Execute_response_msg::has_error_code() const { return (_has_bits_[0] & 0x00000004u) != 0; } inline void Execute_response_msg::set_has_error_code() { _has_bits_[0] |= 0x00000004u; } inline void Execute_response_msg::clear_has_error_code() { _has_bits_[0] &= ~0x00000004u; } 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(); } } // namespace protobuf } // namespace google // @@protoc_insertion_point(global_scope) #endif // PROTOBUF_hardware_5fmessage_2eproto__INCLUDED