message_base.pb.h 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563
  1. // Generated by the protocol buffer compiler. DO NOT EDIT!
  2. // source: message_base.proto
  3. #ifndef PROTOBUF_message_5fbase_2eproto__INCLUDED
  4. #define PROTOBUF_message_5fbase_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. // @@protoc_insertion_point(includes)
  29. namespace protobuf_message_5fbase_2eproto {
  30. // Internal implementation detail -- do not use these members.
  31. struct TableStruct {
  32. static const ::google::protobuf::internal::ParseTableField entries[];
  33. static const ::google::protobuf::internal::AuxillaryParseTableField aux[];
  34. static const ::google::protobuf::internal::ParseTable schema[2];
  35. static const ::google::protobuf::internal::FieldMetadata field_metadata[];
  36. static const ::google::protobuf::internal::SerializationTable serialization_table[];
  37. static const ::google::protobuf::uint32 offsets[];
  38. };
  39. void AddDescriptors();
  40. void InitDefaultsBase_msgImpl();
  41. void InitDefaultsBase_msg();
  42. void InitDefaultsCommand_messageImpl();
  43. void InitDefaultsCommand_message();
  44. inline void InitDefaults() {
  45. InitDefaultsBase_msg();
  46. InitDefaultsCommand_message();
  47. }
  48. } // namespace protobuf_message_5fbase_2eproto
  49. namespace message {
  50. class Base_msg;
  51. class Base_msgDefaultTypeInternal;
  52. extern Base_msgDefaultTypeInternal _Base_msg_default_instance_;
  53. class Command_message;
  54. class Command_messageDefaultTypeInternal;
  55. extern Command_messageDefaultTypeInternal _Command_message_default_instance_;
  56. } // namespace message
  57. namespace message {
  58. enum Message_type {
  59. eBase_msg = 0,
  60. eCommand_msg = 1,
  61. eLocate_status_msg = 17,
  62. eLocate_request_msg = 18,
  63. eLocate_response_msg = 19,
  64. eHarware_statu_msg = 33,
  65. eExecute_request_msg = 34,
  66. eExecute_response_msg = 35
  67. };
  68. bool Message_type_IsValid(int value);
  69. const Message_type Message_type_MIN = eBase_msg;
  70. const Message_type Message_type_MAX = eExecute_response_msg;
  71. const int Message_type_ARRAYSIZE = Message_type_MAX + 1;
  72. const ::google::protobuf::EnumDescriptor* Message_type_descriptor();
  73. inline const ::std::string& Message_type_Name(Message_type value) {
  74. return ::google::protobuf::internal::NameOfEnum(
  75. Message_type_descriptor(), value);
  76. }
  77. inline bool Message_type_Parse(
  78. const ::std::string& name, Message_type* value) {
  79. return ::google::protobuf::internal::ParseNamedEnum<Message_type>(
  80. Message_type_descriptor(), name, value);
  81. }
  82. enum Action_type {
  83. ePark = 0,
  84. ePick = 1
  85. };
  86. bool Action_type_IsValid(int value);
  87. const Action_type Action_type_MIN = ePark;
  88. const Action_type Action_type_MAX = ePick;
  89. const int Action_type_ARRAYSIZE = Action_type_MAX + 1;
  90. const ::google::protobuf::EnumDescriptor* Action_type_descriptor();
  91. inline const ::std::string& Action_type_Name(Action_type value) {
  92. return ::google::protobuf::internal::NameOfEnum(
  93. Action_type_descriptor(), value);
  94. }
  95. inline bool Action_type_Parse(
  96. const ::std::string& name, Action_type* value) {
  97. return ::google::protobuf::internal::ParseNamedEnum<Action_type>(
  98. Action_type_descriptor(), name, value);
  99. }
  100. // ===================================================================
  101. class Base_msg : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:message.Base_msg) */ {
  102. public:
  103. Base_msg();
  104. virtual ~Base_msg();
  105. Base_msg(const Base_msg& from);
  106. inline Base_msg& operator=(const Base_msg& from) {
  107. CopyFrom(from);
  108. return *this;
  109. }
  110. #if LANG_CXX11
  111. Base_msg(Base_msg&& from) noexcept
  112. : Base_msg() {
  113. *this = ::std::move(from);
  114. }
  115. inline Base_msg& operator=(Base_msg&& from) noexcept {
  116. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  117. if (this != &from) InternalSwap(&from);
  118. } else {
  119. CopyFrom(from);
  120. }
  121. return *this;
  122. }
  123. #endif
  124. inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
  125. return _internal_metadata_.unknown_fields();
  126. }
  127. inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
  128. return _internal_metadata_.mutable_unknown_fields();
  129. }
  130. static const ::google::protobuf::Descriptor* descriptor();
  131. static const Base_msg& default_instance();
  132. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  133. static inline const Base_msg* internal_default_instance() {
  134. return reinterpret_cast<const Base_msg*>(
  135. &_Base_msg_default_instance_);
  136. }
  137. static PROTOBUF_CONSTEXPR int const kIndexInFileMessages =
  138. 0;
  139. void Swap(Base_msg* other);
  140. friend void swap(Base_msg& a, Base_msg& b) {
  141. a.Swap(&b);
  142. }
  143. // implements Message ----------------------------------------------
  144. inline Base_msg* New() const PROTOBUF_FINAL { return New(NULL); }
  145. Base_msg* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL;
  146. void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL;
  147. void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL;
  148. void CopyFrom(const Base_msg& from);
  149. void MergeFrom(const Base_msg& from);
  150. void Clear() PROTOBUF_FINAL;
  151. bool IsInitialized() const PROTOBUF_FINAL;
  152. size_t ByteSizeLong() const PROTOBUF_FINAL;
  153. bool MergePartialFromCodedStream(
  154. ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL;
  155. void SerializeWithCachedSizes(
  156. ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL;
  157. ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
  158. bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL;
  159. int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; }
  160. private:
  161. void SharedCtor();
  162. void SharedDtor();
  163. void SetCachedSize(int size) const PROTOBUF_FINAL;
  164. void InternalSwap(Base_msg* other);
  165. private:
  166. inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
  167. return NULL;
  168. }
  169. inline void* MaybeArenaPtr() const {
  170. return NULL;
  171. }
  172. public:
  173. ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL;
  174. // nested types ----------------------------------------------------
  175. // accessors -------------------------------------------------------
  176. // required .message.Message_type msg_type = 1;
  177. bool has_msg_type() const;
  178. void clear_msg_type();
  179. static const int kMsgTypeFieldNumber = 1;
  180. ::message::Message_type msg_type() const;
  181. void set_msg_type(::message::Message_type value);
  182. // @@protoc_insertion_point(class_scope:message.Base_msg)
  183. private:
  184. void set_has_msg_type();
  185. void clear_has_msg_type();
  186. ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
  187. ::google::protobuf::internal::HasBits<1> _has_bits_;
  188. mutable int _cached_size_;
  189. int msg_type_;
  190. friend struct ::protobuf_message_5fbase_2eproto::TableStruct;
  191. friend void ::protobuf_message_5fbase_2eproto::InitDefaultsBase_msgImpl();
  192. };
  193. // -------------------------------------------------------------------
  194. class Command_message : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:message.Command_message) */ {
  195. public:
  196. Command_message();
  197. virtual ~Command_message();
  198. Command_message(const Command_message& from);
  199. inline Command_message& operator=(const Command_message& from) {
  200. CopyFrom(from);
  201. return *this;
  202. }
  203. #if LANG_CXX11
  204. Command_message(Command_message&& from) noexcept
  205. : Command_message() {
  206. *this = ::std::move(from);
  207. }
  208. inline Command_message& operator=(Command_message&& from) noexcept {
  209. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  210. if (this != &from) InternalSwap(&from);
  211. } else {
  212. CopyFrom(from);
  213. }
  214. return *this;
  215. }
  216. #endif
  217. inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
  218. return _internal_metadata_.unknown_fields();
  219. }
  220. inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
  221. return _internal_metadata_.mutable_unknown_fields();
  222. }
  223. static const ::google::protobuf::Descriptor* descriptor();
  224. static const Command_message& default_instance();
  225. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  226. static inline const Command_message* internal_default_instance() {
  227. return reinterpret_cast<const Command_message*>(
  228. &_Command_message_default_instance_);
  229. }
  230. static PROTOBUF_CONSTEXPR int const kIndexInFileMessages =
  231. 1;
  232. void Swap(Command_message* other);
  233. friend void swap(Command_message& a, Command_message& b) {
  234. a.Swap(&b);
  235. }
  236. // implements Message ----------------------------------------------
  237. inline Command_message* New() const PROTOBUF_FINAL { return New(NULL); }
  238. Command_message* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL;
  239. void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL;
  240. void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL;
  241. void CopyFrom(const Command_message& from);
  242. void MergeFrom(const Command_message& from);
  243. void Clear() PROTOBUF_FINAL;
  244. bool IsInitialized() const PROTOBUF_FINAL;
  245. size_t ByteSizeLong() const PROTOBUF_FINAL;
  246. bool MergePartialFromCodedStream(
  247. ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL;
  248. void SerializeWithCachedSizes(
  249. ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL;
  250. ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
  251. bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL;
  252. int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; }
  253. private:
  254. void SharedCtor();
  255. void SharedDtor();
  256. void SetCachedSize(int size) const PROTOBUF_FINAL;
  257. void InternalSwap(Command_message* other);
  258. private:
  259. inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
  260. return NULL;
  261. }
  262. inline void* MaybeArenaPtr() const {
  263. return NULL;
  264. }
  265. public:
  266. ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL;
  267. // nested types ----------------------------------------------------
  268. // accessors -------------------------------------------------------
  269. // required .message.Message_type msg_type = 1;
  270. bool has_msg_type() const;
  271. void clear_msg_type();
  272. static const int kMsgTypeFieldNumber = 1;
  273. ::message::Message_type msg_type() const;
  274. void set_msg_type(::message::Message_type value);
  275. // required int32 command_id = 2;
  276. bool has_command_id() const;
  277. void clear_command_id();
  278. static const int kCommandIdFieldNumber = 2;
  279. ::google::protobuf::int32 command_id() const;
  280. void set_command_id(::google::protobuf::int32 value);
  281. // required .message.Action_type act_type = 3;
  282. bool has_act_type() const;
  283. void clear_act_type();
  284. static const int kActTypeFieldNumber = 3;
  285. ::message::Action_type act_type() const;
  286. void set_act_type(::message::Action_type value);
  287. // required int32 from_id = 4;
  288. bool has_from_id() const;
  289. void clear_from_id();
  290. static const int kFromIdFieldNumber = 4;
  291. ::google::protobuf::int32 from_id() const;
  292. void set_from_id(::google::protobuf::int32 value);
  293. // required int32 destination_id = 5;
  294. bool has_destination_id() const;
  295. void clear_destination_id();
  296. static const int kDestinationIdFieldNumber = 5;
  297. ::google::protobuf::int32 destination_id() const;
  298. void set_destination_id(::google::protobuf::int32 value);
  299. // @@protoc_insertion_point(class_scope:message.Command_message)
  300. private:
  301. void set_has_msg_type();
  302. void clear_has_msg_type();
  303. void set_has_command_id();
  304. void clear_has_command_id();
  305. void set_has_act_type();
  306. void clear_has_act_type();
  307. void set_has_from_id();
  308. void clear_has_from_id();
  309. void set_has_destination_id();
  310. void clear_has_destination_id();
  311. // helper for ByteSizeLong()
  312. size_t RequiredFieldsByteSizeFallback() const;
  313. ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
  314. ::google::protobuf::internal::HasBits<1> _has_bits_;
  315. mutable int _cached_size_;
  316. int msg_type_;
  317. ::google::protobuf::int32 command_id_;
  318. int act_type_;
  319. ::google::protobuf::int32 from_id_;
  320. ::google::protobuf::int32 destination_id_;
  321. friend struct ::protobuf_message_5fbase_2eproto::TableStruct;
  322. friend void ::protobuf_message_5fbase_2eproto::InitDefaultsCommand_messageImpl();
  323. };
  324. // ===================================================================
  325. // ===================================================================
  326. #ifdef __GNUC__
  327. #pragma GCC diagnostic push
  328. #pragma GCC diagnostic ignored "-Wstrict-aliasing"
  329. #endif // __GNUC__
  330. // Base_msg
  331. // required .message.Message_type msg_type = 1;
  332. inline bool Base_msg::has_msg_type() const {
  333. return (_has_bits_[0] & 0x00000001u) != 0;
  334. }
  335. inline void Base_msg::set_has_msg_type() {
  336. _has_bits_[0] |= 0x00000001u;
  337. }
  338. inline void Base_msg::clear_has_msg_type() {
  339. _has_bits_[0] &= ~0x00000001u;
  340. }
  341. inline void Base_msg::clear_msg_type() {
  342. msg_type_ = 0;
  343. clear_has_msg_type();
  344. }
  345. inline ::message::Message_type Base_msg::msg_type() const {
  346. // @@protoc_insertion_point(field_get:message.Base_msg.msg_type)
  347. return static_cast< ::message::Message_type >(msg_type_);
  348. }
  349. inline void Base_msg::set_msg_type(::message::Message_type value) {
  350. assert(::message::Message_type_IsValid(value));
  351. set_has_msg_type();
  352. msg_type_ = value;
  353. // @@protoc_insertion_point(field_set:message.Base_msg.msg_type)
  354. }
  355. // -------------------------------------------------------------------
  356. // Command_message
  357. // required .message.Message_type msg_type = 1;
  358. inline bool Command_message::has_msg_type() const {
  359. return (_has_bits_[0] & 0x00000001u) != 0;
  360. }
  361. inline void Command_message::set_has_msg_type() {
  362. _has_bits_[0] |= 0x00000001u;
  363. }
  364. inline void Command_message::clear_has_msg_type() {
  365. _has_bits_[0] &= ~0x00000001u;
  366. }
  367. inline void Command_message::clear_msg_type() {
  368. msg_type_ = 0;
  369. clear_has_msg_type();
  370. }
  371. inline ::message::Message_type Command_message::msg_type() const {
  372. // @@protoc_insertion_point(field_get:message.Command_message.msg_type)
  373. return static_cast< ::message::Message_type >(msg_type_);
  374. }
  375. inline void Command_message::set_msg_type(::message::Message_type value) {
  376. assert(::message::Message_type_IsValid(value));
  377. set_has_msg_type();
  378. msg_type_ = value;
  379. // @@protoc_insertion_point(field_set:message.Command_message.msg_type)
  380. }
  381. // required int32 command_id = 2;
  382. inline bool Command_message::has_command_id() const {
  383. return (_has_bits_[0] & 0x00000002u) != 0;
  384. }
  385. inline void Command_message::set_has_command_id() {
  386. _has_bits_[0] |= 0x00000002u;
  387. }
  388. inline void Command_message::clear_has_command_id() {
  389. _has_bits_[0] &= ~0x00000002u;
  390. }
  391. inline void Command_message::clear_command_id() {
  392. command_id_ = 0;
  393. clear_has_command_id();
  394. }
  395. inline ::google::protobuf::int32 Command_message::command_id() const {
  396. // @@protoc_insertion_point(field_get:message.Command_message.command_id)
  397. return command_id_;
  398. }
  399. inline void Command_message::set_command_id(::google::protobuf::int32 value) {
  400. set_has_command_id();
  401. command_id_ = value;
  402. // @@protoc_insertion_point(field_set:message.Command_message.command_id)
  403. }
  404. // required .message.Action_type act_type = 3;
  405. inline bool Command_message::has_act_type() const {
  406. return (_has_bits_[0] & 0x00000004u) != 0;
  407. }
  408. inline void Command_message::set_has_act_type() {
  409. _has_bits_[0] |= 0x00000004u;
  410. }
  411. inline void Command_message::clear_has_act_type() {
  412. _has_bits_[0] &= ~0x00000004u;
  413. }
  414. inline void Command_message::clear_act_type() {
  415. act_type_ = 0;
  416. clear_has_act_type();
  417. }
  418. inline ::message::Action_type Command_message::act_type() const {
  419. // @@protoc_insertion_point(field_get:message.Command_message.act_type)
  420. return static_cast< ::message::Action_type >(act_type_);
  421. }
  422. inline void Command_message::set_act_type(::message::Action_type value) {
  423. assert(::message::Action_type_IsValid(value));
  424. set_has_act_type();
  425. act_type_ = value;
  426. // @@protoc_insertion_point(field_set:message.Command_message.act_type)
  427. }
  428. // required int32 from_id = 4;
  429. inline bool Command_message::has_from_id() const {
  430. return (_has_bits_[0] & 0x00000008u) != 0;
  431. }
  432. inline void Command_message::set_has_from_id() {
  433. _has_bits_[0] |= 0x00000008u;
  434. }
  435. inline void Command_message::clear_has_from_id() {
  436. _has_bits_[0] &= ~0x00000008u;
  437. }
  438. inline void Command_message::clear_from_id() {
  439. from_id_ = 0;
  440. clear_has_from_id();
  441. }
  442. inline ::google::protobuf::int32 Command_message::from_id() const {
  443. // @@protoc_insertion_point(field_get:message.Command_message.from_id)
  444. return from_id_;
  445. }
  446. inline void Command_message::set_from_id(::google::protobuf::int32 value) {
  447. set_has_from_id();
  448. from_id_ = value;
  449. // @@protoc_insertion_point(field_set:message.Command_message.from_id)
  450. }
  451. // required int32 destination_id = 5;
  452. inline bool Command_message::has_destination_id() const {
  453. return (_has_bits_[0] & 0x00000010u) != 0;
  454. }
  455. inline void Command_message::set_has_destination_id() {
  456. _has_bits_[0] |= 0x00000010u;
  457. }
  458. inline void Command_message::clear_has_destination_id() {
  459. _has_bits_[0] &= ~0x00000010u;
  460. }
  461. inline void Command_message::clear_destination_id() {
  462. destination_id_ = 0;
  463. clear_has_destination_id();
  464. }
  465. inline ::google::protobuf::int32 Command_message::destination_id() const {
  466. // @@protoc_insertion_point(field_get:message.Command_message.destination_id)
  467. return destination_id_;
  468. }
  469. inline void Command_message::set_destination_id(::google::protobuf::int32 value) {
  470. set_has_destination_id();
  471. destination_id_ = value;
  472. // @@protoc_insertion_point(field_set:message.Command_message.destination_id)
  473. }
  474. #ifdef __GNUC__
  475. #pragma GCC diagnostic pop
  476. #endif // __GNUC__
  477. // -------------------------------------------------------------------
  478. // @@protoc_insertion_point(namespace_scope)
  479. } // namespace message
  480. namespace google {
  481. namespace protobuf {
  482. template <> struct is_proto_enum< ::message::Message_type> : ::google::protobuf::internal::true_type {};
  483. template <>
  484. inline const EnumDescriptor* GetEnumDescriptor< ::message::Message_type>() {
  485. return ::message::Message_type_descriptor();
  486. }
  487. template <> struct is_proto_enum< ::message::Action_type> : ::google::protobuf::internal::true_type {};
  488. template <>
  489. inline const EnumDescriptor* GetEnumDescriptor< ::message::Action_type>() {
  490. return ::message::Action_type_descriptor();
  491. }
  492. } // namespace protobuf
  493. } // namespace google
  494. // @@protoc_insertion_point(global_scope)
  495. #endif // PROTOBUF_message_5fbase_2eproto__INCLUDED