1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633 |
- // 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 <string>
- #include <google/protobuf/stubs/common.h>
- #if GOOGLE_PROTOBUF_VERSION < 3005000
- #error This file was generated by a newer version of protoc which is
- #error incompatible with your Protocol Buffer headers. Please update
- #error your headers.
- #endif
- #if 3005000 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION
- #error This file was generated by an older version of protoc which is
- #error incompatible with your Protocol Buffer headers. Please
- #error regenerate this file with a newer version of protoc.
- #endif
- #include <google/protobuf/io/coded_stream.h>
- #include <google/protobuf/arena.h>
- #include <google/protobuf/arenastring.h>
- #include <google/protobuf/generated_message_table_driven.h>
- #include <google/protobuf/generated_message_util.h>
- #include <google/protobuf/metadata.h>
- #include <google/protobuf/message.h>
- #include <google/protobuf/repeated_field.h> // IWYU pragma: export
- #include <google/protobuf/extension_set.h> // IWYU pragma: export
- #include <google/protobuf/generated_enum_reflection.h>
- #include <google/protobuf/unknown_field_set.h>
- #include "message_base.pb.h"
- // @@protoc_insertion_point(includes)
- namespace protobuf_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>(
- 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<const Position*>(
- &_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<const Carrier_status*>(
- &_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<const Harware_statu_msg*>(
- &_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<const Execute_request_msg*>(
- &_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<const Execute_response_msg*>(
- &_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<const ::message::Command_message*>(
- &::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<const char*>(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<const ::message::Position*>(
- &::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<const ::message::Carrier_status*>(
- &::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<const ::message::Carrier_status*>(
- &::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<const ::message::Carrier_status*>(
- &::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<const ::message::Command_message*>(
- &::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<const ::message::Command_message*>(
- &::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<const char*>(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
|