hardware_message.pb.h 63 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758
  1. // Generated by the protocol buffer compiler. DO NOT EDIT!
  2. // source: hardware_message.proto
  3. #ifndef PROTOBUF_hardware_5fmessage_2eproto__INCLUDED
  4. #define PROTOBUF_hardware_5fmessage_2eproto__INCLUDED
  5. #include <string>
  6. #include <google/protobuf/stubs/common.h>
  7. #if GOOGLE_PROTOBUF_VERSION < 3005000
  8. #error This file was generated by a newer version of protoc which is
  9. #error incompatible with your Protocol Buffer headers. Please update
  10. #error your headers.
  11. #endif
  12. #if 3005000 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION
  13. #error This file was generated by an older version of protoc which is
  14. #error incompatible with your Protocol Buffer headers. Please
  15. #error regenerate this file with a newer version of protoc.
  16. #endif
  17. #include <google/protobuf/io/coded_stream.h>
  18. #include <google/protobuf/arena.h>
  19. #include <google/protobuf/arenastring.h>
  20. #include <google/protobuf/generated_message_table_driven.h>
  21. #include <google/protobuf/generated_message_util.h>
  22. #include <google/protobuf/metadata.h>
  23. #include <google/protobuf/message.h>
  24. #include <google/protobuf/repeated_field.h> // IWYU pragma: export
  25. #include <google/protobuf/extension_set.h> // IWYU pragma: export
  26. #include <google/protobuf/generated_enum_reflection.h>
  27. #include <google/protobuf/unknown_field_set.h>
  28. #include "message_base.pb.h"
  29. // @@protoc_insertion_point(includes)
  30. namespace protobuf_hardware_5fmessage_2eproto {
  31. // Internal implementation detail -- do not use these members.
  32. struct TableStruct {
  33. static const ::google::protobuf::internal::ParseTableField entries[];
  34. static const ::google::protobuf::internal::AuxillaryParseTableField aux[];
  35. static const ::google::protobuf::internal::ParseTable schema[5];
  36. static const ::google::protobuf::internal::FieldMetadata field_metadata[];
  37. static const ::google::protobuf::internal::SerializationTable serialization_table[];
  38. static const ::google::protobuf::uint32 offsets[];
  39. };
  40. void AddDescriptors();
  41. void InitDefaultsPositionImpl();
  42. void InitDefaultsPosition();
  43. void InitDefaultsCarrier_statusImpl();
  44. void InitDefaultsCarrier_status();
  45. void InitDefaultsHarware_statu_msgImpl();
  46. void InitDefaultsHarware_statu_msg();
  47. void InitDefaultsExecute_request_msgImpl();
  48. void InitDefaultsExecute_request_msg();
  49. void InitDefaultsExecute_response_msgImpl();
  50. void InitDefaultsExecute_response_msg();
  51. inline void InitDefaults() {
  52. InitDefaultsPosition();
  53. InitDefaultsCarrier_status();
  54. InitDefaultsHarware_statu_msg();
  55. InitDefaultsExecute_request_msg();
  56. InitDefaultsExecute_response_msg();
  57. }
  58. } // namespace protobuf_hardware_5fmessage_2eproto
  59. namespace message {
  60. class Carrier_status;
  61. class Carrier_statusDefaultTypeInternal;
  62. extern Carrier_statusDefaultTypeInternal _Carrier_status_default_instance_;
  63. class Execute_request_msg;
  64. class Execute_request_msgDefaultTypeInternal;
  65. extern Execute_request_msgDefaultTypeInternal _Execute_request_msg_default_instance_;
  66. class Execute_response_msg;
  67. class Execute_response_msgDefaultTypeInternal;
  68. extern Execute_response_msgDefaultTypeInternal _Execute_response_msg_default_instance_;
  69. class Harware_statu_msg;
  70. class Harware_statu_msgDefaultTypeInternal;
  71. extern Harware_statu_msgDefaultTypeInternal _Harware_statu_msg_default_instance_;
  72. class Position;
  73. class PositionDefaultTypeInternal;
  74. extern PositionDefaultTypeInternal _Position_default_instance_;
  75. } // namespace message
  76. namespace message {
  77. enum Hardware_statu {
  78. eNormal = 0,
  79. eBusy = 1,
  80. eMiss = 2,
  81. eError = 3
  82. };
  83. bool Hardware_statu_IsValid(int value);
  84. const Hardware_statu Hardware_statu_MIN = eNormal;
  85. const Hardware_statu Hardware_statu_MAX = eError;
  86. const int Hardware_statu_ARRAYSIZE = Hardware_statu_MAX + 1;
  87. const ::google::protobuf::EnumDescriptor* Hardware_statu_descriptor();
  88. inline const ::std::string& Hardware_statu_Name(Hardware_statu value) {
  89. return ::google::protobuf::internal::NameOfEnum(
  90. Hardware_statu_descriptor(), value);
  91. }
  92. inline bool Hardware_statu_Parse(
  93. const ::std::string& name, Hardware_statu* value) {
  94. return ::google::protobuf::internal::ParseNamedEnum<Hardware_statu>(
  95. Hardware_statu_descriptor(), name, value);
  96. }
  97. enum Action_type {
  98. ePark = 0,
  99. ePick = 1
  100. };
  101. bool Action_type_IsValid(int value);
  102. const Action_type Action_type_MIN = ePark;
  103. const Action_type Action_type_MAX = ePick;
  104. const int Action_type_ARRAYSIZE = Action_type_MAX + 1;
  105. const ::google::protobuf::EnumDescriptor* Action_type_descriptor();
  106. inline const ::std::string& Action_type_Name(Action_type value) {
  107. return ::google::protobuf::internal::NameOfEnum(
  108. Action_type_descriptor(), value);
  109. }
  110. inline bool Action_type_Parse(
  111. const ::std::string& name, Action_type* value) {
  112. return ::google::protobuf::internal::ParseNamedEnum<Action_type>(
  113. Action_type_descriptor(), name, value);
  114. }
  115. // ===================================================================
  116. class Position : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:message.Position) */ {
  117. public:
  118. Position();
  119. virtual ~Position();
  120. Position(const Position& from);
  121. inline Position& operator=(const Position& from) {
  122. CopyFrom(from);
  123. return *this;
  124. }
  125. #if LANG_CXX11
  126. Position(Position&& from) noexcept
  127. : Position() {
  128. *this = ::std::move(from);
  129. }
  130. inline Position& operator=(Position&& from) noexcept {
  131. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  132. if (this != &from) InternalSwap(&from);
  133. } else {
  134. CopyFrom(from);
  135. }
  136. return *this;
  137. }
  138. #endif
  139. inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
  140. return _internal_metadata_.unknown_fields();
  141. }
  142. inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
  143. return _internal_metadata_.mutable_unknown_fields();
  144. }
  145. static const ::google::protobuf::Descriptor* descriptor();
  146. static const Position& default_instance();
  147. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  148. static inline const Position* internal_default_instance() {
  149. return reinterpret_cast<const Position*>(
  150. &_Position_default_instance_);
  151. }
  152. static PROTOBUF_CONSTEXPR int const kIndexInFileMessages =
  153. 0;
  154. void Swap(Position* other);
  155. friend void swap(Position& a, Position& b) {
  156. a.Swap(&b);
  157. }
  158. // implements Message ----------------------------------------------
  159. inline Position* New() const PROTOBUF_FINAL { return New(NULL); }
  160. Position* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL;
  161. void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL;
  162. void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL;
  163. void CopyFrom(const Position& from);
  164. void MergeFrom(const Position& from);
  165. void Clear() PROTOBUF_FINAL;
  166. bool IsInitialized() const PROTOBUF_FINAL;
  167. size_t ByteSizeLong() const PROTOBUF_FINAL;
  168. bool MergePartialFromCodedStream(
  169. ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL;
  170. void SerializeWithCachedSizes(
  171. ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL;
  172. ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
  173. bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL;
  174. int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; }
  175. private:
  176. void SharedCtor();
  177. void SharedDtor();
  178. void SetCachedSize(int size) const PROTOBUF_FINAL;
  179. void InternalSwap(Position* other);
  180. private:
  181. inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
  182. return NULL;
  183. }
  184. inline void* MaybeArenaPtr() const {
  185. return NULL;
  186. }
  187. public:
  188. ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL;
  189. // nested types ----------------------------------------------------
  190. // accessors -------------------------------------------------------
  191. // required float x = 1;
  192. bool has_x() const;
  193. void clear_x();
  194. static const int kXFieldNumber = 1;
  195. float x() const;
  196. void set_x(float value);
  197. // required float y = 2;
  198. bool has_y() const;
  199. void clear_y();
  200. static const int kYFieldNumber = 2;
  201. float y() const;
  202. void set_y(float value);
  203. // required float z = 3;
  204. bool has_z() const;
  205. void clear_z();
  206. static const int kZFieldNumber = 3;
  207. float z() const;
  208. void set_z(float value);
  209. // @@protoc_insertion_point(class_scope:message.Position)
  210. private:
  211. void set_has_x();
  212. void clear_has_x();
  213. void set_has_y();
  214. void clear_has_y();
  215. void set_has_z();
  216. void clear_has_z();
  217. // helper for ByteSizeLong()
  218. size_t RequiredFieldsByteSizeFallback() const;
  219. ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
  220. ::google::protobuf::internal::HasBits<1> _has_bits_;
  221. mutable int _cached_size_;
  222. float x_;
  223. float y_;
  224. float z_;
  225. friend struct ::protobuf_hardware_5fmessage_2eproto::TableStruct;
  226. friend void ::protobuf_hardware_5fmessage_2eproto::InitDefaultsPositionImpl();
  227. };
  228. // -------------------------------------------------------------------
  229. class Carrier_status : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:message.Carrier_status) */ {
  230. public:
  231. Carrier_status();
  232. virtual ~Carrier_status();
  233. Carrier_status(const Carrier_status& from);
  234. inline Carrier_status& operator=(const Carrier_status& from) {
  235. CopyFrom(from);
  236. return *this;
  237. }
  238. #if LANG_CXX11
  239. Carrier_status(Carrier_status&& from) noexcept
  240. : Carrier_status() {
  241. *this = ::std::move(from);
  242. }
  243. inline Carrier_status& operator=(Carrier_status&& from) noexcept {
  244. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  245. if (this != &from) InternalSwap(&from);
  246. } else {
  247. CopyFrom(from);
  248. }
  249. return *this;
  250. }
  251. #endif
  252. inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
  253. return _internal_metadata_.unknown_fields();
  254. }
  255. inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
  256. return _internal_metadata_.mutable_unknown_fields();
  257. }
  258. static const ::google::protobuf::Descriptor* descriptor();
  259. static const Carrier_status& default_instance();
  260. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  261. static inline const Carrier_status* internal_default_instance() {
  262. return reinterpret_cast<const Carrier_status*>(
  263. &_Carrier_status_default_instance_);
  264. }
  265. static PROTOBUF_CONSTEXPR int const kIndexInFileMessages =
  266. 1;
  267. void Swap(Carrier_status* other);
  268. friend void swap(Carrier_status& a, Carrier_status& b) {
  269. a.Swap(&b);
  270. }
  271. // implements Message ----------------------------------------------
  272. inline Carrier_status* New() const PROTOBUF_FINAL { return New(NULL); }
  273. Carrier_status* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL;
  274. void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL;
  275. void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL;
  276. void CopyFrom(const Carrier_status& from);
  277. void MergeFrom(const Carrier_status& from);
  278. void Clear() PROTOBUF_FINAL;
  279. bool IsInitialized() const PROTOBUF_FINAL;
  280. size_t ByteSizeLong() const PROTOBUF_FINAL;
  281. bool MergePartialFromCodedStream(
  282. ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL;
  283. void SerializeWithCachedSizes(
  284. ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL;
  285. ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
  286. bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL;
  287. int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; }
  288. private:
  289. void SharedCtor();
  290. void SharedDtor();
  291. void SetCachedSize(int size) const PROTOBUF_FINAL;
  292. void InternalSwap(Carrier_status* other);
  293. private:
  294. inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
  295. return NULL;
  296. }
  297. inline void* MaybeArenaPtr() const {
  298. return NULL;
  299. }
  300. public:
  301. ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL;
  302. // nested types ----------------------------------------------------
  303. // accessors -------------------------------------------------------
  304. // optional string error_description = 3;
  305. bool has_error_description() const;
  306. void clear_error_description();
  307. static const int kErrorDescriptionFieldNumber = 3;
  308. const ::std::string& error_description() const;
  309. void set_error_description(const ::std::string& value);
  310. #if LANG_CXX11
  311. void set_error_description(::std::string&& value);
  312. #endif
  313. void set_error_description(const char* value);
  314. void set_error_description(const char* value, size_t size);
  315. ::std::string* mutable_error_description();
  316. ::std::string* release_error_description();
  317. void set_allocated_error_description(::std::string* error_description);
  318. // required .message.Position position = 4;
  319. bool has_position() const;
  320. void clear_position();
  321. static const int kPositionFieldNumber = 4;
  322. const ::message::Position& position() const;
  323. ::message::Position* release_position();
  324. ::message::Position* mutable_position();
  325. void set_allocated_position(::message::Position* position);
  326. // required .message.Hardware_statu statu = 1;
  327. bool has_statu() const;
  328. void clear_statu();
  329. static const int kStatuFieldNumber = 1;
  330. ::message::Hardware_statu statu() const;
  331. void set_statu(::message::Hardware_statu value);
  332. // optional int32 command_id = 2;
  333. bool has_command_id() const;
  334. void clear_command_id();
  335. static const int kCommandIdFieldNumber = 2;
  336. ::google::protobuf::int32 command_id() const;
  337. void set_command_id(::google::protobuf::int32 value);
  338. // required bool empty = 5;
  339. bool has_empty() const;
  340. void clear_empty();
  341. static const int kEmptyFieldNumber = 5;
  342. bool empty() const;
  343. void set_empty(bool value);
  344. // @@protoc_insertion_point(class_scope:message.Carrier_status)
  345. private:
  346. void set_has_statu();
  347. void clear_has_statu();
  348. void set_has_command_id();
  349. void clear_has_command_id();
  350. void set_has_error_description();
  351. void clear_has_error_description();
  352. void set_has_position();
  353. void clear_has_position();
  354. void set_has_empty();
  355. void clear_has_empty();
  356. // helper for ByteSizeLong()
  357. size_t RequiredFieldsByteSizeFallback() const;
  358. ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
  359. ::google::protobuf::internal::HasBits<1> _has_bits_;
  360. mutable int _cached_size_;
  361. ::google::protobuf::internal::ArenaStringPtr error_description_;
  362. ::message::Position* position_;
  363. int statu_;
  364. ::google::protobuf::int32 command_id_;
  365. bool empty_;
  366. friend struct ::protobuf_hardware_5fmessage_2eproto::TableStruct;
  367. friend void ::protobuf_hardware_5fmessage_2eproto::InitDefaultsCarrier_statusImpl();
  368. };
  369. // -------------------------------------------------------------------
  370. class Harware_statu_msg : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:message.Harware_statu_msg) */ {
  371. public:
  372. Harware_statu_msg();
  373. virtual ~Harware_statu_msg();
  374. Harware_statu_msg(const Harware_statu_msg& from);
  375. inline Harware_statu_msg& operator=(const Harware_statu_msg& from) {
  376. CopyFrom(from);
  377. return *this;
  378. }
  379. #if LANG_CXX11
  380. Harware_statu_msg(Harware_statu_msg&& from) noexcept
  381. : Harware_statu_msg() {
  382. *this = ::std::move(from);
  383. }
  384. inline Harware_statu_msg& operator=(Harware_statu_msg&& from) noexcept {
  385. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  386. if (this != &from) InternalSwap(&from);
  387. } else {
  388. CopyFrom(from);
  389. }
  390. return *this;
  391. }
  392. #endif
  393. inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
  394. return _internal_metadata_.unknown_fields();
  395. }
  396. inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
  397. return _internal_metadata_.mutable_unknown_fields();
  398. }
  399. static const ::google::protobuf::Descriptor* descriptor();
  400. static const Harware_statu_msg& default_instance();
  401. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  402. static inline const Harware_statu_msg* internal_default_instance() {
  403. return reinterpret_cast<const Harware_statu_msg*>(
  404. &_Harware_statu_msg_default_instance_);
  405. }
  406. static PROTOBUF_CONSTEXPR int const kIndexInFileMessages =
  407. 2;
  408. void Swap(Harware_statu_msg* other);
  409. friend void swap(Harware_statu_msg& a, Harware_statu_msg& b) {
  410. a.Swap(&b);
  411. }
  412. // implements Message ----------------------------------------------
  413. inline Harware_statu_msg* New() const PROTOBUF_FINAL { return New(NULL); }
  414. Harware_statu_msg* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL;
  415. void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL;
  416. void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL;
  417. void CopyFrom(const Harware_statu_msg& from);
  418. void MergeFrom(const Harware_statu_msg& from);
  419. void Clear() PROTOBUF_FINAL;
  420. bool IsInitialized() const PROTOBUF_FINAL;
  421. size_t ByteSizeLong() const PROTOBUF_FINAL;
  422. bool MergePartialFromCodedStream(
  423. ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL;
  424. void SerializeWithCachedSizes(
  425. ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL;
  426. ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
  427. bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL;
  428. int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; }
  429. private:
  430. void SharedCtor();
  431. void SharedDtor();
  432. void SetCachedSize(int size) const PROTOBUF_FINAL;
  433. void InternalSwap(Harware_statu_msg* other);
  434. private:
  435. inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
  436. return NULL;
  437. }
  438. inline void* MaybeArenaPtr() const {
  439. return NULL;
  440. }
  441. public:
  442. ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL;
  443. // nested types ----------------------------------------------------
  444. // accessors -------------------------------------------------------
  445. // required .message.Carrier_status carrier1_statu = 2;
  446. bool has_carrier1_statu() const;
  447. void clear_carrier1_statu();
  448. static const int kCarrier1StatuFieldNumber = 2;
  449. const ::message::Carrier_status& carrier1_statu() const;
  450. ::message::Carrier_status* release_carrier1_statu();
  451. ::message::Carrier_status* mutable_carrier1_statu();
  452. void set_allocated_carrier1_statu(::message::Carrier_status* carrier1_statu);
  453. // required .message.Carrier_status carrier2_statu = 3;
  454. bool has_carrier2_statu() const;
  455. void clear_carrier2_statu();
  456. static const int kCarrier2StatuFieldNumber = 3;
  457. const ::message::Carrier_status& carrier2_statu() const;
  458. ::message::Carrier_status* release_carrier2_statu();
  459. ::message::Carrier_status* mutable_carrier2_statu();
  460. void set_allocated_carrier2_statu(::message::Carrier_status* carrier2_statu);
  461. // required .message.Carrier_status carrier3_statu = 4;
  462. bool has_carrier3_statu() const;
  463. void clear_carrier3_statu();
  464. static const int kCarrier3StatuFieldNumber = 4;
  465. const ::message::Carrier_status& carrier3_statu() const;
  466. ::message::Carrier_status* release_carrier3_statu();
  467. ::message::Carrier_status* mutable_carrier3_statu();
  468. void set_allocated_carrier3_statu(::message::Carrier_status* carrier3_statu);
  469. // required .message.Message_type msg_type = 1;
  470. bool has_msg_type() const;
  471. void clear_msg_type();
  472. static const int kMsgTypeFieldNumber = 1;
  473. ::message::Message_type msg_type() const;
  474. void set_msg_type(::message::Message_type value);
  475. // @@protoc_insertion_point(class_scope:message.Harware_statu_msg)
  476. private:
  477. void set_has_msg_type();
  478. void clear_has_msg_type();
  479. void set_has_carrier1_statu();
  480. void clear_has_carrier1_statu();
  481. void set_has_carrier2_statu();
  482. void clear_has_carrier2_statu();
  483. void set_has_carrier3_statu();
  484. void clear_has_carrier3_statu();
  485. // helper for ByteSizeLong()
  486. size_t RequiredFieldsByteSizeFallback() const;
  487. ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
  488. ::google::protobuf::internal::HasBits<1> _has_bits_;
  489. mutable int _cached_size_;
  490. ::message::Carrier_status* carrier1_statu_;
  491. ::message::Carrier_status* carrier2_statu_;
  492. ::message::Carrier_status* carrier3_statu_;
  493. int msg_type_;
  494. friend struct ::protobuf_hardware_5fmessage_2eproto::TableStruct;
  495. friend void ::protobuf_hardware_5fmessage_2eproto::InitDefaultsHarware_statu_msgImpl();
  496. };
  497. // -------------------------------------------------------------------
  498. class Execute_request_msg : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:message.Execute_request_msg) */ {
  499. public:
  500. Execute_request_msg();
  501. virtual ~Execute_request_msg();
  502. Execute_request_msg(const Execute_request_msg& from);
  503. inline Execute_request_msg& operator=(const Execute_request_msg& from) {
  504. CopyFrom(from);
  505. return *this;
  506. }
  507. #if LANG_CXX11
  508. Execute_request_msg(Execute_request_msg&& from) noexcept
  509. : Execute_request_msg() {
  510. *this = ::std::move(from);
  511. }
  512. inline Execute_request_msg& operator=(Execute_request_msg&& from) noexcept {
  513. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  514. if (this != &from) InternalSwap(&from);
  515. } else {
  516. CopyFrom(from);
  517. }
  518. return *this;
  519. }
  520. #endif
  521. inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
  522. return _internal_metadata_.unknown_fields();
  523. }
  524. inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
  525. return _internal_metadata_.mutable_unknown_fields();
  526. }
  527. static const ::google::protobuf::Descriptor* descriptor();
  528. static const Execute_request_msg& default_instance();
  529. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  530. static inline const Execute_request_msg* internal_default_instance() {
  531. return reinterpret_cast<const Execute_request_msg*>(
  532. &_Execute_request_msg_default_instance_);
  533. }
  534. static PROTOBUF_CONSTEXPR int const kIndexInFileMessages =
  535. 3;
  536. void Swap(Execute_request_msg* other);
  537. friend void swap(Execute_request_msg& a, Execute_request_msg& b) {
  538. a.Swap(&b);
  539. }
  540. // implements Message ----------------------------------------------
  541. inline Execute_request_msg* New() const PROTOBUF_FINAL { return New(NULL); }
  542. Execute_request_msg* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL;
  543. void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL;
  544. void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL;
  545. void CopyFrom(const Execute_request_msg& from);
  546. void MergeFrom(const Execute_request_msg& from);
  547. void Clear() PROTOBUF_FINAL;
  548. bool IsInitialized() const PROTOBUF_FINAL;
  549. size_t ByteSizeLong() const PROTOBUF_FINAL;
  550. bool MergePartialFromCodedStream(
  551. ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL;
  552. void SerializeWithCachedSizes(
  553. ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL;
  554. ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
  555. bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL;
  556. int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; }
  557. private:
  558. void SharedCtor();
  559. void SharedDtor();
  560. void SetCachedSize(int size) const PROTOBUF_FINAL;
  561. void InternalSwap(Execute_request_msg* other);
  562. private:
  563. inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
  564. return NULL;
  565. }
  566. inline void* MaybeArenaPtr() const {
  567. return NULL;
  568. }
  569. public:
  570. ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL;
  571. // nested types ----------------------------------------------------
  572. // accessors -------------------------------------------------------
  573. // required .message.Base_info msg_info = 1;
  574. bool has_msg_info() const;
  575. void clear_msg_info();
  576. static const int kMsgInfoFieldNumber = 1;
  577. const ::message::Base_info& msg_info() const;
  578. ::message::Base_info* release_msg_info();
  579. ::message::Base_info* mutable_msg_info();
  580. void set_allocated_msg_info(::message::Base_info* msg_info);
  581. // required .message.Locate_information locate_information = 6;
  582. bool has_locate_information() const;
  583. void clear_locate_information();
  584. static const int kLocateInformationFieldNumber = 6;
  585. const ::message::Locate_information& locate_information() const;
  586. ::message::Locate_information* release_locate_information();
  587. ::message::Locate_information* mutable_locate_information();
  588. void set_allocated_locate_information(::message::Locate_information* locate_information);
  589. // required int32 command_id = 2;
  590. bool has_command_id() const;
  591. void clear_command_id();
  592. static const int kCommandIdFieldNumber = 2;
  593. ::google::protobuf::int32 command_id() const;
  594. void set_command_id(::google::protobuf::int32 value);
  595. // required .message.Action_type action_type = 3;
  596. bool has_action_type() const;
  597. void clear_action_type();
  598. static const int kActionTypeFieldNumber = 3;
  599. ::message::Action_type action_type() const;
  600. void set_action_type(::message::Action_type value);
  601. // required int32 from_id = 4;
  602. bool has_from_id() const;
  603. void clear_from_id();
  604. static const int kFromIdFieldNumber = 4;
  605. ::google::protobuf::int32 from_id() const;
  606. void set_from_id(::google::protobuf::int32 value);
  607. // required int32 destination = 5;
  608. bool has_destination() const;
  609. void clear_destination();
  610. static const int kDestinationFieldNumber = 5;
  611. ::google::protobuf::int32 destination() const;
  612. void set_destination(::google::protobuf::int32 value);
  613. // @@protoc_insertion_point(class_scope:message.Execute_request_msg)
  614. private:
  615. void set_has_msg_info();
  616. void clear_has_msg_info();
  617. void set_has_command_id();
  618. void clear_has_command_id();
  619. void set_has_action_type();
  620. void clear_has_action_type();
  621. void set_has_from_id();
  622. void clear_has_from_id();
  623. void set_has_destination();
  624. void clear_has_destination();
  625. void set_has_locate_information();
  626. void clear_has_locate_information();
  627. // helper for ByteSizeLong()
  628. size_t RequiredFieldsByteSizeFallback() const;
  629. ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
  630. ::google::protobuf::internal::HasBits<1> _has_bits_;
  631. mutable int _cached_size_;
  632. ::message::Base_info* msg_info_;
  633. ::message::Locate_information* locate_information_;
  634. ::google::protobuf::int32 command_id_;
  635. int action_type_;
  636. ::google::protobuf::int32 from_id_;
  637. ::google::protobuf::int32 destination_;
  638. friend struct ::protobuf_hardware_5fmessage_2eproto::TableStruct;
  639. friend void ::protobuf_hardware_5fmessage_2eproto::InitDefaultsExecute_request_msgImpl();
  640. };
  641. // -------------------------------------------------------------------
  642. class Execute_response_msg : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:message.Execute_response_msg) */ {
  643. public:
  644. Execute_response_msg();
  645. virtual ~Execute_response_msg();
  646. Execute_response_msg(const Execute_response_msg& from);
  647. inline Execute_response_msg& operator=(const Execute_response_msg& from) {
  648. CopyFrom(from);
  649. return *this;
  650. }
  651. #if LANG_CXX11
  652. Execute_response_msg(Execute_response_msg&& from) noexcept
  653. : Execute_response_msg() {
  654. *this = ::std::move(from);
  655. }
  656. inline Execute_response_msg& operator=(Execute_response_msg&& from) noexcept {
  657. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  658. if (this != &from) InternalSwap(&from);
  659. } else {
  660. CopyFrom(from);
  661. }
  662. return *this;
  663. }
  664. #endif
  665. inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
  666. return _internal_metadata_.unknown_fields();
  667. }
  668. inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
  669. return _internal_metadata_.mutable_unknown_fields();
  670. }
  671. static const ::google::protobuf::Descriptor* descriptor();
  672. static const Execute_response_msg& default_instance();
  673. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  674. static inline const Execute_response_msg* internal_default_instance() {
  675. return reinterpret_cast<const Execute_response_msg*>(
  676. &_Execute_response_msg_default_instance_);
  677. }
  678. static PROTOBUF_CONSTEXPR int const kIndexInFileMessages =
  679. 4;
  680. void Swap(Execute_response_msg* other);
  681. friend void swap(Execute_response_msg& a, Execute_response_msg& b) {
  682. a.Swap(&b);
  683. }
  684. // implements Message ----------------------------------------------
  685. inline Execute_response_msg* New() const PROTOBUF_FINAL { return New(NULL); }
  686. Execute_response_msg* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL;
  687. void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL;
  688. void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL;
  689. void CopyFrom(const Execute_response_msg& from);
  690. void MergeFrom(const Execute_response_msg& from);
  691. void Clear() PROTOBUF_FINAL;
  692. bool IsInitialized() const PROTOBUF_FINAL;
  693. size_t ByteSizeLong() const PROTOBUF_FINAL;
  694. bool MergePartialFromCodedStream(
  695. ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL;
  696. void SerializeWithCachedSizes(
  697. ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL;
  698. ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
  699. bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL;
  700. int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; }
  701. private:
  702. void SharedCtor();
  703. void SharedDtor();
  704. void SetCachedSize(int size) const PROTOBUF_FINAL;
  705. void InternalSwap(Execute_response_msg* other);
  706. private:
  707. inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
  708. return NULL;
  709. }
  710. inline void* MaybeArenaPtr() const {
  711. return NULL;
  712. }
  713. public:
  714. ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL;
  715. // nested types ----------------------------------------------------
  716. // accessors -------------------------------------------------------
  717. // optional string error_description = 4;
  718. bool has_error_description() const;
  719. void clear_error_description();
  720. static const int kErrorDescriptionFieldNumber = 4;
  721. const ::std::string& error_description() const;
  722. void set_error_description(const ::std::string& value);
  723. #if LANG_CXX11
  724. void set_error_description(::std::string&& value);
  725. #endif
  726. void set_error_description(const char* value);
  727. void set_error_description(const char* value, size_t size);
  728. ::std::string* mutable_error_description();
  729. ::std::string* release_error_description();
  730. void set_allocated_error_description(::std::string* error_description);
  731. // required .message.Base_info msg_info = 1;
  732. bool has_msg_info() const;
  733. void clear_msg_info();
  734. static const int kMsgInfoFieldNumber = 1;
  735. const ::message::Base_info& msg_info() const;
  736. ::message::Base_info* release_msg_info();
  737. ::message::Base_info* mutable_msg_info();
  738. void set_allocated_msg_info(::message::Base_info* msg_info);
  739. // required int32 command_id = 2;
  740. bool has_command_id() const;
  741. void clear_command_id();
  742. static const int kCommandIdFieldNumber = 2;
  743. ::google::protobuf::int32 command_id() const;
  744. void set_command_id(::google::protobuf::int32 value);
  745. // required int32 error_code = 3;
  746. bool has_error_code() const;
  747. void clear_error_code();
  748. static const int kErrorCodeFieldNumber = 3;
  749. ::google::protobuf::int32 error_code() const;
  750. void set_error_code(::google::protobuf::int32 value);
  751. // @@protoc_insertion_point(class_scope:message.Execute_response_msg)
  752. private:
  753. void set_has_msg_info();
  754. void clear_has_msg_info();
  755. void set_has_command_id();
  756. void clear_has_command_id();
  757. void set_has_error_code();
  758. void clear_has_error_code();
  759. void set_has_error_description();
  760. void clear_has_error_description();
  761. // helper for ByteSizeLong()
  762. size_t RequiredFieldsByteSizeFallback() const;
  763. ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
  764. ::google::protobuf::internal::HasBits<1> _has_bits_;
  765. mutable int _cached_size_;
  766. ::google::protobuf::internal::ArenaStringPtr error_description_;
  767. ::message::Base_info* msg_info_;
  768. ::google::protobuf::int32 command_id_;
  769. ::google::protobuf::int32 error_code_;
  770. friend struct ::protobuf_hardware_5fmessage_2eproto::TableStruct;
  771. friend void ::protobuf_hardware_5fmessage_2eproto::InitDefaultsExecute_response_msgImpl();
  772. };
  773. // ===================================================================
  774. // ===================================================================
  775. #ifdef __GNUC__
  776. #pragma GCC diagnostic push
  777. #pragma GCC diagnostic ignored "-Wstrict-aliasing"
  778. #endif // __GNUC__
  779. // Position
  780. // required float x = 1;
  781. inline bool Position::has_x() const {
  782. return (_has_bits_[0] & 0x00000001u) != 0;
  783. }
  784. inline void Position::set_has_x() {
  785. _has_bits_[0] |= 0x00000001u;
  786. }
  787. inline void Position::clear_has_x() {
  788. _has_bits_[0] &= ~0x00000001u;
  789. }
  790. inline void Position::clear_x() {
  791. x_ = 0;
  792. clear_has_x();
  793. }
  794. inline float Position::x() const {
  795. // @@protoc_insertion_point(field_get:message.Position.x)
  796. return x_;
  797. }
  798. inline void Position::set_x(float value) {
  799. set_has_x();
  800. x_ = value;
  801. // @@protoc_insertion_point(field_set:message.Position.x)
  802. }
  803. // required float y = 2;
  804. inline bool Position::has_y() const {
  805. return (_has_bits_[0] & 0x00000002u) != 0;
  806. }
  807. inline void Position::set_has_y() {
  808. _has_bits_[0] |= 0x00000002u;
  809. }
  810. inline void Position::clear_has_y() {
  811. _has_bits_[0] &= ~0x00000002u;
  812. }
  813. inline void Position::clear_y() {
  814. y_ = 0;
  815. clear_has_y();
  816. }
  817. inline float Position::y() const {
  818. // @@protoc_insertion_point(field_get:message.Position.y)
  819. return y_;
  820. }
  821. inline void Position::set_y(float value) {
  822. set_has_y();
  823. y_ = value;
  824. // @@protoc_insertion_point(field_set:message.Position.y)
  825. }
  826. // required float z = 3;
  827. inline bool Position::has_z() const {
  828. return (_has_bits_[0] & 0x00000004u) != 0;
  829. }
  830. inline void Position::set_has_z() {
  831. _has_bits_[0] |= 0x00000004u;
  832. }
  833. inline void Position::clear_has_z() {
  834. _has_bits_[0] &= ~0x00000004u;
  835. }
  836. inline void Position::clear_z() {
  837. z_ = 0;
  838. clear_has_z();
  839. }
  840. inline float Position::z() const {
  841. // @@protoc_insertion_point(field_get:message.Position.z)
  842. return z_;
  843. }
  844. inline void Position::set_z(float value) {
  845. set_has_z();
  846. z_ = value;
  847. // @@protoc_insertion_point(field_set:message.Position.z)
  848. }
  849. // -------------------------------------------------------------------
  850. // Carrier_status
  851. // required .message.Hardware_statu statu = 1;
  852. inline bool Carrier_status::has_statu() const {
  853. return (_has_bits_[0] & 0x00000004u) != 0;
  854. }
  855. inline void Carrier_status::set_has_statu() {
  856. _has_bits_[0] |= 0x00000004u;
  857. }
  858. inline void Carrier_status::clear_has_statu() {
  859. _has_bits_[0] &= ~0x00000004u;
  860. }
  861. inline void Carrier_status::clear_statu() {
  862. statu_ = 0;
  863. clear_has_statu();
  864. }
  865. inline ::message::Hardware_statu Carrier_status::statu() const {
  866. // @@protoc_insertion_point(field_get:message.Carrier_status.statu)
  867. return static_cast< ::message::Hardware_statu >(statu_);
  868. }
  869. inline void Carrier_status::set_statu(::message::Hardware_statu value) {
  870. assert(::message::Hardware_statu_IsValid(value));
  871. set_has_statu();
  872. statu_ = value;
  873. // @@protoc_insertion_point(field_set:message.Carrier_status.statu)
  874. }
  875. // optional int32 command_id = 2;
  876. inline bool Carrier_status::has_command_id() const {
  877. return (_has_bits_[0] & 0x00000008u) != 0;
  878. }
  879. inline void Carrier_status::set_has_command_id() {
  880. _has_bits_[0] |= 0x00000008u;
  881. }
  882. inline void Carrier_status::clear_has_command_id() {
  883. _has_bits_[0] &= ~0x00000008u;
  884. }
  885. inline void Carrier_status::clear_command_id() {
  886. command_id_ = 0;
  887. clear_has_command_id();
  888. }
  889. inline ::google::protobuf::int32 Carrier_status::command_id() const {
  890. // @@protoc_insertion_point(field_get:message.Carrier_status.command_id)
  891. return command_id_;
  892. }
  893. inline void Carrier_status::set_command_id(::google::protobuf::int32 value) {
  894. set_has_command_id();
  895. command_id_ = value;
  896. // @@protoc_insertion_point(field_set:message.Carrier_status.command_id)
  897. }
  898. // optional string error_description = 3;
  899. inline bool Carrier_status::has_error_description() const {
  900. return (_has_bits_[0] & 0x00000001u) != 0;
  901. }
  902. inline void Carrier_status::set_has_error_description() {
  903. _has_bits_[0] |= 0x00000001u;
  904. }
  905. inline void Carrier_status::clear_has_error_description() {
  906. _has_bits_[0] &= ~0x00000001u;
  907. }
  908. inline void Carrier_status::clear_error_description() {
  909. error_description_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  910. clear_has_error_description();
  911. }
  912. inline const ::std::string& Carrier_status::error_description() const {
  913. // @@protoc_insertion_point(field_get:message.Carrier_status.error_description)
  914. return error_description_.GetNoArena();
  915. }
  916. inline void Carrier_status::set_error_description(const ::std::string& value) {
  917. set_has_error_description();
  918. error_description_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
  919. // @@protoc_insertion_point(field_set:message.Carrier_status.error_description)
  920. }
  921. #if LANG_CXX11
  922. inline void Carrier_status::set_error_description(::std::string&& value) {
  923. set_has_error_description();
  924. error_description_.SetNoArena(
  925. &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
  926. // @@protoc_insertion_point(field_set_rvalue:message.Carrier_status.error_description)
  927. }
  928. #endif
  929. inline void Carrier_status::set_error_description(const char* value) {
  930. GOOGLE_DCHECK(value != NULL);
  931. set_has_error_description();
  932. error_description_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
  933. // @@protoc_insertion_point(field_set_char:message.Carrier_status.error_description)
  934. }
  935. inline void Carrier_status::set_error_description(const char* value, size_t size) {
  936. set_has_error_description();
  937. error_description_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  938. ::std::string(reinterpret_cast<const char*>(value), size));
  939. // @@protoc_insertion_point(field_set_pointer:message.Carrier_status.error_description)
  940. }
  941. inline ::std::string* Carrier_status::mutable_error_description() {
  942. set_has_error_description();
  943. // @@protoc_insertion_point(field_mutable:message.Carrier_status.error_description)
  944. return error_description_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  945. }
  946. inline ::std::string* Carrier_status::release_error_description() {
  947. // @@protoc_insertion_point(field_release:message.Carrier_status.error_description)
  948. clear_has_error_description();
  949. return error_description_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  950. }
  951. inline void Carrier_status::set_allocated_error_description(::std::string* error_description) {
  952. if (error_description != NULL) {
  953. set_has_error_description();
  954. } else {
  955. clear_has_error_description();
  956. }
  957. error_description_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), error_description);
  958. // @@protoc_insertion_point(field_set_allocated:message.Carrier_status.error_description)
  959. }
  960. // required .message.Position position = 4;
  961. inline bool Carrier_status::has_position() const {
  962. return (_has_bits_[0] & 0x00000002u) != 0;
  963. }
  964. inline void Carrier_status::set_has_position() {
  965. _has_bits_[0] |= 0x00000002u;
  966. }
  967. inline void Carrier_status::clear_has_position() {
  968. _has_bits_[0] &= ~0x00000002u;
  969. }
  970. inline void Carrier_status::clear_position() {
  971. if (position_ != NULL) position_->Clear();
  972. clear_has_position();
  973. }
  974. inline const ::message::Position& Carrier_status::position() const {
  975. const ::message::Position* p = position_;
  976. // @@protoc_insertion_point(field_get:message.Carrier_status.position)
  977. return p != NULL ? *p : *reinterpret_cast<const ::message::Position*>(
  978. &::message::_Position_default_instance_);
  979. }
  980. inline ::message::Position* Carrier_status::release_position() {
  981. // @@protoc_insertion_point(field_release:message.Carrier_status.position)
  982. clear_has_position();
  983. ::message::Position* temp = position_;
  984. position_ = NULL;
  985. return temp;
  986. }
  987. inline ::message::Position* Carrier_status::mutable_position() {
  988. set_has_position();
  989. if (position_ == NULL) {
  990. position_ = new ::message::Position;
  991. }
  992. // @@protoc_insertion_point(field_mutable:message.Carrier_status.position)
  993. return position_;
  994. }
  995. inline void Carrier_status::set_allocated_position(::message::Position* position) {
  996. ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
  997. if (message_arena == NULL) {
  998. delete position_;
  999. }
  1000. if (position) {
  1001. ::google::protobuf::Arena* submessage_arena = NULL;
  1002. if (message_arena != submessage_arena) {
  1003. position = ::google::protobuf::internal::GetOwnedMessage(
  1004. message_arena, position, submessage_arena);
  1005. }
  1006. set_has_position();
  1007. } else {
  1008. clear_has_position();
  1009. }
  1010. position_ = position;
  1011. // @@protoc_insertion_point(field_set_allocated:message.Carrier_status.position)
  1012. }
  1013. // required bool empty = 5;
  1014. inline bool Carrier_status::has_empty() const {
  1015. return (_has_bits_[0] & 0x00000010u) != 0;
  1016. }
  1017. inline void Carrier_status::set_has_empty() {
  1018. _has_bits_[0] |= 0x00000010u;
  1019. }
  1020. inline void Carrier_status::clear_has_empty() {
  1021. _has_bits_[0] &= ~0x00000010u;
  1022. }
  1023. inline void Carrier_status::clear_empty() {
  1024. empty_ = false;
  1025. clear_has_empty();
  1026. }
  1027. inline bool Carrier_status::empty() const {
  1028. // @@protoc_insertion_point(field_get:message.Carrier_status.empty)
  1029. return empty_;
  1030. }
  1031. inline void Carrier_status::set_empty(bool value) {
  1032. set_has_empty();
  1033. empty_ = value;
  1034. // @@protoc_insertion_point(field_set:message.Carrier_status.empty)
  1035. }
  1036. // -------------------------------------------------------------------
  1037. // Harware_statu_msg
  1038. // required .message.Message_type msg_type = 1;
  1039. inline bool Harware_statu_msg::has_msg_type() const {
  1040. return (_has_bits_[0] & 0x00000008u) != 0;
  1041. }
  1042. inline void Harware_statu_msg::set_has_msg_type() {
  1043. _has_bits_[0] |= 0x00000008u;
  1044. }
  1045. inline void Harware_statu_msg::clear_has_msg_type() {
  1046. _has_bits_[0] &= ~0x00000008u;
  1047. }
  1048. inline void Harware_statu_msg::clear_msg_type() {
  1049. msg_type_ = 0;
  1050. clear_has_msg_type();
  1051. }
  1052. inline ::message::Message_type Harware_statu_msg::msg_type() const {
  1053. // @@protoc_insertion_point(field_get:message.Harware_statu_msg.msg_type)
  1054. return static_cast< ::message::Message_type >(msg_type_);
  1055. }
  1056. inline void Harware_statu_msg::set_msg_type(::message::Message_type value) {
  1057. assert(::message::Message_type_IsValid(value));
  1058. set_has_msg_type();
  1059. msg_type_ = value;
  1060. // @@protoc_insertion_point(field_set:message.Harware_statu_msg.msg_type)
  1061. }
  1062. // required .message.Carrier_status carrier1_statu = 2;
  1063. inline bool Harware_statu_msg::has_carrier1_statu() const {
  1064. return (_has_bits_[0] & 0x00000001u) != 0;
  1065. }
  1066. inline void Harware_statu_msg::set_has_carrier1_statu() {
  1067. _has_bits_[0] |= 0x00000001u;
  1068. }
  1069. inline void Harware_statu_msg::clear_has_carrier1_statu() {
  1070. _has_bits_[0] &= ~0x00000001u;
  1071. }
  1072. inline void Harware_statu_msg::clear_carrier1_statu() {
  1073. if (carrier1_statu_ != NULL) carrier1_statu_->Clear();
  1074. clear_has_carrier1_statu();
  1075. }
  1076. inline const ::message::Carrier_status& Harware_statu_msg::carrier1_statu() const {
  1077. const ::message::Carrier_status* p = carrier1_statu_;
  1078. // @@protoc_insertion_point(field_get:message.Harware_statu_msg.carrier1_statu)
  1079. return p != NULL ? *p : *reinterpret_cast<const ::message::Carrier_status*>(
  1080. &::message::_Carrier_status_default_instance_);
  1081. }
  1082. inline ::message::Carrier_status* Harware_statu_msg::release_carrier1_statu() {
  1083. // @@protoc_insertion_point(field_release:message.Harware_statu_msg.carrier1_statu)
  1084. clear_has_carrier1_statu();
  1085. ::message::Carrier_status* temp = carrier1_statu_;
  1086. carrier1_statu_ = NULL;
  1087. return temp;
  1088. }
  1089. inline ::message::Carrier_status* Harware_statu_msg::mutable_carrier1_statu() {
  1090. set_has_carrier1_statu();
  1091. if (carrier1_statu_ == NULL) {
  1092. carrier1_statu_ = new ::message::Carrier_status;
  1093. }
  1094. // @@protoc_insertion_point(field_mutable:message.Harware_statu_msg.carrier1_statu)
  1095. return carrier1_statu_;
  1096. }
  1097. inline void Harware_statu_msg::set_allocated_carrier1_statu(::message::Carrier_status* carrier1_statu) {
  1098. ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
  1099. if (message_arena == NULL) {
  1100. delete carrier1_statu_;
  1101. }
  1102. if (carrier1_statu) {
  1103. ::google::protobuf::Arena* submessage_arena = NULL;
  1104. if (message_arena != submessage_arena) {
  1105. carrier1_statu = ::google::protobuf::internal::GetOwnedMessage(
  1106. message_arena, carrier1_statu, submessage_arena);
  1107. }
  1108. set_has_carrier1_statu();
  1109. } else {
  1110. clear_has_carrier1_statu();
  1111. }
  1112. carrier1_statu_ = carrier1_statu;
  1113. // @@protoc_insertion_point(field_set_allocated:message.Harware_statu_msg.carrier1_statu)
  1114. }
  1115. // required .message.Carrier_status carrier2_statu = 3;
  1116. inline bool Harware_statu_msg::has_carrier2_statu() const {
  1117. return (_has_bits_[0] & 0x00000002u) != 0;
  1118. }
  1119. inline void Harware_statu_msg::set_has_carrier2_statu() {
  1120. _has_bits_[0] |= 0x00000002u;
  1121. }
  1122. inline void Harware_statu_msg::clear_has_carrier2_statu() {
  1123. _has_bits_[0] &= ~0x00000002u;
  1124. }
  1125. inline void Harware_statu_msg::clear_carrier2_statu() {
  1126. if (carrier2_statu_ != NULL) carrier2_statu_->Clear();
  1127. clear_has_carrier2_statu();
  1128. }
  1129. inline const ::message::Carrier_status& Harware_statu_msg::carrier2_statu() const {
  1130. const ::message::Carrier_status* p = carrier2_statu_;
  1131. // @@protoc_insertion_point(field_get:message.Harware_statu_msg.carrier2_statu)
  1132. return p != NULL ? *p : *reinterpret_cast<const ::message::Carrier_status*>(
  1133. &::message::_Carrier_status_default_instance_);
  1134. }
  1135. inline ::message::Carrier_status* Harware_statu_msg::release_carrier2_statu() {
  1136. // @@protoc_insertion_point(field_release:message.Harware_statu_msg.carrier2_statu)
  1137. clear_has_carrier2_statu();
  1138. ::message::Carrier_status* temp = carrier2_statu_;
  1139. carrier2_statu_ = NULL;
  1140. return temp;
  1141. }
  1142. inline ::message::Carrier_status* Harware_statu_msg::mutable_carrier2_statu() {
  1143. set_has_carrier2_statu();
  1144. if (carrier2_statu_ == NULL) {
  1145. carrier2_statu_ = new ::message::Carrier_status;
  1146. }
  1147. // @@protoc_insertion_point(field_mutable:message.Harware_statu_msg.carrier2_statu)
  1148. return carrier2_statu_;
  1149. }
  1150. inline void Harware_statu_msg::set_allocated_carrier2_statu(::message::Carrier_status* carrier2_statu) {
  1151. ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
  1152. if (message_arena == NULL) {
  1153. delete carrier2_statu_;
  1154. }
  1155. if (carrier2_statu) {
  1156. ::google::protobuf::Arena* submessage_arena = NULL;
  1157. if (message_arena != submessage_arena) {
  1158. carrier2_statu = ::google::protobuf::internal::GetOwnedMessage(
  1159. message_arena, carrier2_statu, submessage_arena);
  1160. }
  1161. set_has_carrier2_statu();
  1162. } else {
  1163. clear_has_carrier2_statu();
  1164. }
  1165. carrier2_statu_ = carrier2_statu;
  1166. // @@protoc_insertion_point(field_set_allocated:message.Harware_statu_msg.carrier2_statu)
  1167. }
  1168. // required .message.Carrier_status carrier3_statu = 4;
  1169. inline bool Harware_statu_msg::has_carrier3_statu() const {
  1170. return (_has_bits_[0] & 0x00000004u) != 0;
  1171. }
  1172. inline void Harware_statu_msg::set_has_carrier3_statu() {
  1173. _has_bits_[0] |= 0x00000004u;
  1174. }
  1175. inline void Harware_statu_msg::clear_has_carrier3_statu() {
  1176. _has_bits_[0] &= ~0x00000004u;
  1177. }
  1178. inline void Harware_statu_msg::clear_carrier3_statu() {
  1179. if (carrier3_statu_ != NULL) carrier3_statu_->Clear();
  1180. clear_has_carrier3_statu();
  1181. }
  1182. inline const ::message::Carrier_status& Harware_statu_msg::carrier3_statu() const {
  1183. const ::message::Carrier_status* p = carrier3_statu_;
  1184. // @@protoc_insertion_point(field_get:message.Harware_statu_msg.carrier3_statu)
  1185. return p != NULL ? *p : *reinterpret_cast<const ::message::Carrier_status*>(
  1186. &::message::_Carrier_status_default_instance_);
  1187. }
  1188. inline ::message::Carrier_status* Harware_statu_msg::release_carrier3_statu() {
  1189. // @@protoc_insertion_point(field_release:message.Harware_statu_msg.carrier3_statu)
  1190. clear_has_carrier3_statu();
  1191. ::message::Carrier_status* temp = carrier3_statu_;
  1192. carrier3_statu_ = NULL;
  1193. return temp;
  1194. }
  1195. inline ::message::Carrier_status* Harware_statu_msg::mutable_carrier3_statu() {
  1196. set_has_carrier3_statu();
  1197. if (carrier3_statu_ == NULL) {
  1198. carrier3_statu_ = new ::message::Carrier_status;
  1199. }
  1200. // @@protoc_insertion_point(field_mutable:message.Harware_statu_msg.carrier3_statu)
  1201. return carrier3_statu_;
  1202. }
  1203. inline void Harware_statu_msg::set_allocated_carrier3_statu(::message::Carrier_status* carrier3_statu) {
  1204. ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
  1205. if (message_arena == NULL) {
  1206. delete carrier3_statu_;
  1207. }
  1208. if (carrier3_statu) {
  1209. ::google::protobuf::Arena* submessage_arena = NULL;
  1210. if (message_arena != submessage_arena) {
  1211. carrier3_statu = ::google::protobuf::internal::GetOwnedMessage(
  1212. message_arena, carrier3_statu, submessage_arena);
  1213. }
  1214. set_has_carrier3_statu();
  1215. } else {
  1216. clear_has_carrier3_statu();
  1217. }
  1218. carrier3_statu_ = carrier3_statu;
  1219. // @@protoc_insertion_point(field_set_allocated:message.Harware_statu_msg.carrier3_statu)
  1220. }
  1221. // -------------------------------------------------------------------
  1222. // Execute_request_msg
  1223. // required .message.Base_info msg_info = 1;
  1224. inline bool Execute_request_msg::has_msg_info() const {
  1225. return (_has_bits_[0] & 0x00000001u) != 0;
  1226. }
  1227. inline void Execute_request_msg::set_has_msg_info() {
  1228. _has_bits_[0] |= 0x00000001u;
  1229. }
  1230. inline void Execute_request_msg::clear_has_msg_info() {
  1231. _has_bits_[0] &= ~0x00000001u;
  1232. }
  1233. inline const ::message::Base_info& Execute_request_msg::msg_info() const {
  1234. const ::message::Base_info* p = msg_info_;
  1235. // @@protoc_insertion_point(field_get:message.Execute_request_msg.msg_info)
  1236. return p != NULL ? *p : *reinterpret_cast<const ::message::Base_info*>(
  1237. &::message::_Base_info_default_instance_);
  1238. }
  1239. inline ::message::Base_info* Execute_request_msg::release_msg_info() {
  1240. // @@protoc_insertion_point(field_release:message.Execute_request_msg.msg_info)
  1241. clear_has_msg_info();
  1242. ::message::Base_info* temp = msg_info_;
  1243. msg_info_ = NULL;
  1244. return temp;
  1245. }
  1246. inline ::message::Base_info* Execute_request_msg::mutable_msg_info() {
  1247. set_has_msg_info();
  1248. if (msg_info_ == NULL) {
  1249. msg_info_ = new ::message::Base_info;
  1250. }
  1251. // @@protoc_insertion_point(field_mutable:message.Execute_request_msg.msg_info)
  1252. return msg_info_;
  1253. }
  1254. inline void Execute_request_msg::set_allocated_msg_info(::message::Base_info* msg_info) {
  1255. ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
  1256. if (message_arena == NULL) {
  1257. delete reinterpret_cast< ::google::protobuf::MessageLite*>(msg_info_);
  1258. }
  1259. if (msg_info) {
  1260. ::google::protobuf::Arena* submessage_arena = NULL;
  1261. if (message_arena != submessage_arena) {
  1262. msg_info = ::google::protobuf::internal::GetOwnedMessage(
  1263. message_arena, msg_info, submessage_arena);
  1264. }
  1265. set_has_msg_info();
  1266. } else {
  1267. clear_has_msg_info();
  1268. }
  1269. msg_info_ = msg_info;
  1270. // @@protoc_insertion_point(field_set_allocated:message.Execute_request_msg.msg_info)
  1271. }
  1272. // required int32 command_id = 2;
  1273. inline bool Execute_request_msg::has_command_id() const {
  1274. return (_has_bits_[0] & 0x00000004u) != 0;
  1275. }
  1276. inline void Execute_request_msg::set_has_command_id() {
  1277. _has_bits_[0] |= 0x00000004u;
  1278. }
  1279. inline void Execute_request_msg::clear_has_command_id() {
  1280. _has_bits_[0] &= ~0x00000004u;
  1281. }
  1282. inline void Execute_request_msg::clear_command_id() {
  1283. command_id_ = 0;
  1284. clear_has_command_id();
  1285. }
  1286. inline ::google::protobuf::int32 Execute_request_msg::command_id() const {
  1287. // @@protoc_insertion_point(field_get:message.Execute_request_msg.command_id)
  1288. return command_id_;
  1289. }
  1290. inline void Execute_request_msg::set_command_id(::google::protobuf::int32 value) {
  1291. set_has_command_id();
  1292. command_id_ = value;
  1293. // @@protoc_insertion_point(field_set:message.Execute_request_msg.command_id)
  1294. }
  1295. // required .message.Action_type action_type = 3;
  1296. inline bool Execute_request_msg::has_action_type() const {
  1297. return (_has_bits_[0] & 0x00000008u) != 0;
  1298. }
  1299. inline void Execute_request_msg::set_has_action_type() {
  1300. _has_bits_[0] |= 0x00000008u;
  1301. }
  1302. inline void Execute_request_msg::clear_has_action_type() {
  1303. _has_bits_[0] &= ~0x00000008u;
  1304. }
  1305. inline void Execute_request_msg::clear_action_type() {
  1306. action_type_ = 0;
  1307. clear_has_action_type();
  1308. }
  1309. inline ::message::Action_type Execute_request_msg::action_type() const {
  1310. // @@protoc_insertion_point(field_get:message.Execute_request_msg.action_type)
  1311. return static_cast< ::message::Action_type >(action_type_);
  1312. }
  1313. inline void Execute_request_msg::set_action_type(::message::Action_type value) {
  1314. assert(::message::Action_type_IsValid(value));
  1315. set_has_action_type();
  1316. action_type_ = value;
  1317. // @@protoc_insertion_point(field_set:message.Execute_request_msg.action_type)
  1318. }
  1319. // required int32 from_id = 4;
  1320. inline bool Execute_request_msg::has_from_id() const {
  1321. return (_has_bits_[0] & 0x00000010u) != 0;
  1322. }
  1323. inline void Execute_request_msg::set_has_from_id() {
  1324. _has_bits_[0] |= 0x00000010u;
  1325. }
  1326. inline void Execute_request_msg::clear_has_from_id() {
  1327. _has_bits_[0] &= ~0x00000010u;
  1328. }
  1329. inline void Execute_request_msg::clear_from_id() {
  1330. from_id_ = 0;
  1331. clear_has_from_id();
  1332. }
  1333. inline ::google::protobuf::int32 Execute_request_msg::from_id() const {
  1334. // @@protoc_insertion_point(field_get:message.Execute_request_msg.from_id)
  1335. return from_id_;
  1336. }
  1337. inline void Execute_request_msg::set_from_id(::google::protobuf::int32 value) {
  1338. set_has_from_id();
  1339. from_id_ = value;
  1340. // @@protoc_insertion_point(field_set:message.Execute_request_msg.from_id)
  1341. }
  1342. // required int32 destination = 5;
  1343. inline bool Execute_request_msg::has_destination() const {
  1344. return (_has_bits_[0] & 0x00000020u) != 0;
  1345. }
  1346. inline void Execute_request_msg::set_has_destination() {
  1347. _has_bits_[0] |= 0x00000020u;
  1348. }
  1349. inline void Execute_request_msg::clear_has_destination() {
  1350. _has_bits_[0] &= ~0x00000020u;
  1351. }
  1352. inline void Execute_request_msg::clear_destination() {
  1353. destination_ = 0;
  1354. clear_has_destination();
  1355. }
  1356. inline ::google::protobuf::int32 Execute_request_msg::destination() const {
  1357. // @@protoc_insertion_point(field_get:message.Execute_request_msg.destination)
  1358. return destination_;
  1359. }
  1360. inline void Execute_request_msg::set_destination(::google::protobuf::int32 value) {
  1361. set_has_destination();
  1362. destination_ = value;
  1363. // @@protoc_insertion_point(field_set:message.Execute_request_msg.destination)
  1364. }
  1365. // required .message.Locate_information locate_information = 6;
  1366. inline bool Execute_request_msg::has_locate_information() const {
  1367. return (_has_bits_[0] & 0x00000002u) != 0;
  1368. }
  1369. inline void Execute_request_msg::set_has_locate_information() {
  1370. _has_bits_[0] |= 0x00000002u;
  1371. }
  1372. inline void Execute_request_msg::clear_has_locate_information() {
  1373. _has_bits_[0] &= ~0x00000002u;
  1374. }
  1375. inline const ::message::Locate_information& Execute_request_msg::locate_information() const {
  1376. const ::message::Locate_information* p = locate_information_;
  1377. // @@protoc_insertion_point(field_get:message.Execute_request_msg.locate_information)
  1378. return p != NULL ? *p : *reinterpret_cast<const ::message::Locate_information*>(
  1379. &::message::_Locate_information_default_instance_);
  1380. }
  1381. inline ::message::Locate_information* Execute_request_msg::release_locate_information() {
  1382. // @@protoc_insertion_point(field_release:message.Execute_request_msg.locate_information)
  1383. clear_has_locate_information();
  1384. ::message::Locate_information* temp = locate_information_;
  1385. locate_information_ = NULL;
  1386. return temp;
  1387. }
  1388. inline ::message::Locate_information* Execute_request_msg::mutable_locate_information() {
  1389. set_has_locate_information();
  1390. if (locate_information_ == NULL) {
  1391. locate_information_ = new ::message::Locate_information;
  1392. }
  1393. // @@protoc_insertion_point(field_mutable:message.Execute_request_msg.locate_information)
  1394. return locate_information_;
  1395. }
  1396. inline void Execute_request_msg::set_allocated_locate_information(::message::Locate_information* locate_information) {
  1397. ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
  1398. if (message_arena == NULL) {
  1399. delete reinterpret_cast< ::google::protobuf::MessageLite*>(locate_information_);
  1400. }
  1401. if (locate_information) {
  1402. ::google::protobuf::Arena* submessage_arena = NULL;
  1403. if (message_arena != submessage_arena) {
  1404. locate_information = ::google::protobuf::internal::GetOwnedMessage(
  1405. message_arena, locate_information, submessage_arena);
  1406. }
  1407. set_has_locate_information();
  1408. } else {
  1409. clear_has_locate_information();
  1410. }
  1411. locate_information_ = locate_information;
  1412. // @@protoc_insertion_point(field_set_allocated:message.Execute_request_msg.locate_information)
  1413. }
  1414. // -------------------------------------------------------------------
  1415. // Execute_response_msg
  1416. // required .message.Base_info msg_info = 1;
  1417. inline bool Execute_response_msg::has_msg_info() const {
  1418. return (_has_bits_[0] & 0x00000002u) != 0;
  1419. }
  1420. inline void Execute_response_msg::set_has_msg_info() {
  1421. _has_bits_[0] |= 0x00000002u;
  1422. }
  1423. inline void Execute_response_msg::clear_has_msg_info() {
  1424. _has_bits_[0] &= ~0x00000002u;
  1425. }
  1426. inline const ::message::Base_info& Execute_response_msg::msg_info() const {
  1427. const ::message::Base_info* p = msg_info_;
  1428. // @@protoc_insertion_point(field_get:message.Execute_response_msg.msg_info)
  1429. return p != NULL ? *p : *reinterpret_cast<const ::message::Base_info*>(
  1430. &::message::_Base_info_default_instance_);
  1431. }
  1432. inline ::message::Base_info* Execute_response_msg::release_msg_info() {
  1433. // @@protoc_insertion_point(field_release:message.Execute_response_msg.msg_info)
  1434. clear_has_msg_info();
  1435. ::message::Base_info* temp = msg_info_;
  1436. msg_info_ = NULL;
  1437. return temp;
  1438. }
  1439. inline ::message::Base_info* Execute_response_msg::mutable_msg_info() {
  1440. set_has_msg_info();
  1441. if (msg_info_ == NULL) {
  1442. msg_info_ = new ::message::Base_info;
  1443. }
  1444. // @@protoc_insertion_point(field_mutable:message.Execute_response_msg.msg_info)
  1445. return msg_info_;
  1446. }
  1447. inline void Execute_response_msg::set_allocated_msg_info(::message::Base_info* msg_info) {
  1448. ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
  1449. if (message_arena == NULL) {
  1450. delete reinterpret_cast< ::google::protobuf::MessageLite*>(msg_info_);
  1451. }
  1452. if (msg_info) {
  1453. ::google::protobuf::Arena* submessage_arena = NULL;
  1454. if (message_arena != submessage_arena) {
  1455. msg_info = ::google::protobuf::internal::GetOwnedMessage(
  1456. message_arena, msg_info, submessage_arena);
  1457. }
  1458. set_has_msg_info();
  1459. } else {
  1460. clear_has_msg_info();
  1461. }
  1462. msg_info_ = msg_info;
  1463. // @@protoc_insertion_point(field_set_allocated:message.Execute_response_msg.msg_info)
  1464. }
  1465. // required int32 command_id = 2;
  1466. inline bool Execute_response_msg::has_command_id() const {
  1467. return (_has_bits_[0] & 0x00000004u) != 0;
  1468. }
  1469. inline void Execute_response_msg::set_has_command_id() {
  1470. _has_bits_[0] |= 0x00000004u;
  1471. }
  1472. inline void Execute_response_msg::clear_has_command_id() {
  1473. _has_bits_[0] &= ~0x00000004u;
  1474. }
  1475. inline void Execute_response_msg::clear_command_id() {
  1476. command_id_ = 0;
  1477. clear_has_command_id();
  1478. }
  1479. inline ::google::protobuf::int32 Execute_response_msg::command_id() const {
  1480. // @@protoc_insertion_point(field_get:message.Execute_response_msg.command_id)
  1481. return command_id_;
  1482. }
  1483. inline void Execute_response_msg::set_command_id(::google::protobuf::int32 value) {
  1484. set_has_command_id();
  1485. command_id_ = value;
  1486. // @@protoc_insertion_point(field_set:message.Execute_response_msg.command_id)
  1487. }
  1488. // required int32 error_code = 3;
  1489. inline bool Execute_response_msg::has_error_code() const {
  1490. return (_has_bits_[0] & 0x00000008u) != 0;
  1491. }
  1492. inline void Execute_response_msg::set_has_error_code() {
  1493. _has_bits_[0] |= 0x00000008u;
  1494. }
  1495. inline void Execute_response_msg::clear_has_error_code() {
  1496. _has_bits_[0] &= ~0x00000008u;
  1497. }
  1498. inline void Execute_response_msg::clear_error_code() {
  1499. error_code_ = 0;
  1500. clear_has_error_code();
  1501. }
  1502. inline ::google::protobuf::int32 Execute_response_msg::error_code() const {
  1503. // @@protoc_insertion_point(field_get:message.Execute_response_msg.error_code)
  1504. return error_code_;
  1505. }
  1506. inline void Execute_response_msg::set_error_code(::google::protobuf::int32 value) {
  1507. set_has_error_code();
  1508. error_code_ = value;
  1509. // @@protoc_insertion_point(field_set:message.Execute_response_msg.error_code)
  1510. }
  1511. // optional string error_description = 4;
  1512. inline bool Execute_response_msg::has_error_description() const {
  1513. return (_has_bits_[0] & 0x00000001u) != 0;
  1514. }
  1515. inline void Execute_response_msg::set_has_error_description() {
  1516. _has_bits_[0] |= 0x00000001u;
  1517. }
  1518. inline void Execute_response_msg::clear_has_error_description() {
  1519. _has_bits_[0] &= ~0x00000001u;
  1520. }
  1521. inline void Execute_response_msg::clear_error_description() {
  1522. error_description_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  1523. clear_has_error_description();
  1524. }
  1525. inline const ::std::string& Execute_response_msg::error_description() const {
  1526. // @@protoc_insertion_point(field_get:message.Execute_response_msg.error_description)
  1527. return error_description_.GetNoArena();
  1528. }
  1529. inline void Execute_response_msg::set_error_description(const ::std::string& value) {
  1530. set_has_error_description();
  1531. error_description_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
  1532. // @@protoc_insertion_point(field_set:message.Execute_response_msg.error_description)
  1533. }
  1534. #if LANG_CXX11
  1535. inline void Execute_response_msg::set_error_description(::std::string&& value) {
  1536. set_has_error_description();
  1537. error_description_.SetNoArena(
  1538. &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
  1539. // @@protoc_insertion_point(field_set_rvalue:message.Execute_response_msg.error_description)
  1540. }
  1541. #endif
  1542. inline void Execute_response_msg::set_error_description(const char* value) {
  1543. GOOGLE_DCHECK(value != NULL);
  1544. set_has_error_description();
  1545. error_description_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
  1546. // @@protoc_insertion_point(field_set_char:message.Execute_response_msg.error_description)
  1547. }
  1548. inline void Execute_response_msg::set_error_description(const char* value, size_t size) {
  1549. set_has_error_description();
  1550. error_description_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  1551. ::std::string(reinterpret_cast<const char*>(value), size));
  1552. // @@protoc_insertion_point(field_set_pointer:message.Execute_response_msg.error_description)
  1553. }
  1554. inline ::std::string* Execute_response_msg::mutable_error_description() {
  1555. set_has_error_description();
  1556. // @@protoc_insertion_point(field_mutable:message.Execute_response_msg.error_description)
  1557. return error_description_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  1558. }
  1559. inline ::std::string* Execute_response_msg::release_error_description() {
  1560. // @@protoc_insertion_point(field_release:message.Execute_response_msg.error_description)
  1561. clear_has_error_description();
  1562. return error_description_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  1563. }
  1564. inline void Execute_response_msg::set_allocated_error_description(::std::string* error_description) {
  1565. if (error_description != NULL) {
  1566. set_has_error_description();
  1567. } else {
  1568. clear_has_error_description();
  1569. }
  1570. error_description_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), error_description);
  1571. // @@protoc_insertion_point(field_set_allocated:message.Execute_response_msg.error_description)
  1572. }
  1573. #ifdef __GNUC__
  1574. #pragma GCC diagnostic pop
  1575. #endif // __GNUC__
  1576. // -------------------------------------------------------------------
  1577. // -------------------------------------------------------------------
  1578. // -------------------------------------------------------------------
  1579. // -------------------------------------------------------------------
  1580. // @@protoc_insertion_point(namespace_scope)
  1581. } // namespace message
  1582. namespace google {
  1583. namespace protobuf {
  1584. template <> struct is_proto_enum< ::message::Hardware_statu> : ::google::protobuf::internal::true_type {};
  1585. template <>
  1586. inline const EnumDescriptor* GetEnumDescriptor< ::message::Hardware_statu>() {
  1587. return ::message::Hardware_statu_descriptor();
  1588. }
  1589. template <> struct is_proto_enum< ::message::Action_type> : ::google::protobuf::internal::true_type {};
  1590. template <>
  1591. inline const EnumDescriptor* GetEnumDescriptor< ::message::Action_type>() {
  1592. return ::message::Action_type_descriptor();
  1593. }
  1594. } // namespace protobuf
  1595. } // namespace google
  1596. // @@protoc_insertion_point(global_scope)
  1597. #endif // PROTOBUF_hardware_5fmessage_2eproto__INCLUDED