message_base.pb.h 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415
  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[1];
  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 InitDefaultsCommand_messageImpl();
  41. void InitDefaultsCommand_message();
  42. inline void InitDefaults() {
  43. InitDefaultsCommand_message();
  44. }
  45. } // namespace protobuf_message_5fbase_2eproto
  46. namespace message {
  47. class Command_message;
  48. class Command_messageDefaultTypeInternal;
  49. extern Command_messageDefaultTypeInternal _Command_message_default_instance_;
  50. } // namespace message
  51. namespace message {
  52. enum Message_type {
  53. COMMAND_MESSAGE = 1,
  54. SENSING_STATUS_MESSAGE = 17,
  55. SENSING_REQUEST_MESSAGE = 18,
  56. SENSING_RESPONSE_MESSAGE = 19,
  57. HARWARE_STATU_MESSAGE = 33,
  58. EXECUTE_REQUEST_MESSAGE = 34,
  59. EXECUTE_RESPONSE_MESSAGE = 35
  60. };
  61. bool Message_type_IsValid(int value);
  62. const Message_type Message_type_MIN = COMMAND_MESSAGE;
  63. const Message_type Message_type_MAX = EXECUTE_RESPONSE_MESSAGE;
  64. const int Message_type_ARRAYSIZE = Message_type_MAX + 1;
  65. const ::google::protobuf::EnumDescriptor* Message_type_descriptor();
  66. inline const ::std::string& Message_type_Name(Message_type value) {
  67. return ::google::protobuf::internal::NameOfEnum(
  68. Message_type_descriptor(), value);
  69. }
  70. inline bool Message_type_Parse(
  71. const ::std::string& name, Message_type* value) {
  72. return ::google::protobuf::internal::ParseNamedEnum<Message_type>(
  73. Message_type_descriptor(), name, value);
  74. }
  75. enum Action_type {
  76. ePark = 0,
  77. ePick = 1
  78. };
  79. bool Action_type_IsValid(int value);
  80. const Action_type Action_type_MIN = ePark;
  81. const Action_type Action_type_MAX = ePick;
  82. const int Action_type_ARRAYSIZE = Action_type_MAX + 1;
  83. const ::google::protobuf::EnumDescriptor* Action_type_descriptor();
  84. inline const ::std::string& Action_type_Name(Action_type value) {
  85. return ::google::protobuf::internal::NameOfEnum(
  86. Action_type_descriptor(), value);
  87. }
  88. inline bool Action_type_Parse(
  89. const ::std::string& name, Action_type* value) {
  90. return ::google::protobuf::internal::ParseNamedEnum<Action_type>(
  91. Action_type_descriptor(), name, value);
  92. }
  93. // ===================================================================
  94. class Command_message : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:message.Command_message) */ {
  95. public:
  96. Command_message();
  97. virtual ~Command_message();
  98. Command_message(const Command_message& from);
  99. inline Command_message& operator=(const Command_message& from) {
  100. CopyFrom(from);
  101. return *this;
  102. }
  103. #if LANG_CXX11
  104. Command_message(Command_message&& from) noexcept
  105. : Command_message() {
  106. *this = ::std::move(from);
  107. }
  108. inline Command_message& operator=(Command_message&& from) noexcept {
  109. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  110. if (this != &from) InternalSwap(&from);
  111. } else {
  112. CopyFrom(from);
  113. }
  114. return *this;
  115. }
  116. #endif
  117. inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
  118. return _internal_metadata_.unknown_fields();
  119. }
  120. inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
  121. return _internal_metadata_.mutable_unknown_fields();
  122. }
  123. static const ::google::protobuf::Descriptor* descriptor();
  124. static const Command_message& default_instance();
  125. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  126. static inline const Command_message* internal_default_instance() {
  127. return reinterpret_cast<const Command_message*>(
  128. &_Command_message_default_instance_);
  129. }
  130. static PROTOBUF_CONSTEXPR int const kIndexInFileMessages =
  131. 0;
  132. void Swap(Command_message* other);
  133. friend void swap(Command_message& a, Command_message& b) {
  134. a.Swap(&b);
  135. }
  136. // implements Message ----------------------------------------------
  137. inline Command_message* New() const PROTOBUF_FINAL { return New(NULL); }
  138. Command_message* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL;
  139. void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL;
  140. void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL;
  141. void CopyFrom(const Command_message& from);
  142. void MergeFrom(const Command_message& from);
  143. void Clear() PROTOBUF_FINAL;
  144. bool IsInitialized() const PROTOBUF_FINAL;
  145. size_t ByteSizeLong() const PROTOBUF_FINAL;
  146. bool MergePartialFromCodedStream(
  147. ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL;
  148. void SerializeWithCachedSizes(
  149. ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL;
  150. ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
  151. bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL;
  152. int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; }
  153. private:
  154. void SharedCtor();
  155. void SharedDtor();
  156. void SetCachedSize(int size) const PROTOBUF_FINAL;
  157. void InternalSwap(Command_message* other);
  158. private:
  159. inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
  160. return NULL;
  161. }
  162. inline void* MaybeArenaPtr() const {
  163. return NULL;
  164. }
  165. public:
  166. ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL;
  167. // nested types ----------------------------------------------------
  168. // accessors -------------------------------------------------------
  169. // required int32 command_id = 2;
  170. bool has_command_id() const;
  171. void clear_command_id();
  172. static const int kCommandIdFieldNumber = 2;
  173. ::google::protobuf::int32 command_id() const;
  174. void set_command_id(::google::protobuf::int32 value);
  175. // required .message.Action_type act_type = 3;
  176. bool has_act_type() const;
  177. void clear_act_type();
  178. static const int kActTypeFieldNumber = 3;
  179. ::message::Action_type act_type() const;
  180. void set_act_type(::message::Action_type value);
  181. // required int32 from_id = 4;
  182. bool has_from_id() const;
  183. void clear_from_id();
  184. static const int kFromIdFieldNumber = 4;
  185. ::google::protobuf::int32 from_id() const;
  186. void set_from_id(::google::protobuf::int32 value);
  187. // required int32 destination_id = 5;
  188. bool has_destination_id() const;
  189. void clear_destination_id();
  190. static const int kDestinationIdFieldNumber = 5;
  191. ::google::protobuf::int32 destination_id() const;
  192. void set_destination_id(::google::protobuf::int32 value);
  193. // required .message.Message_type msg_type = 1;
  194. bool has_msg_type() const;
  195. void clear_msg_type();
  196. static const int kMsgTypeFieldNumber = 1;
  197. ::message::Message_type msg_type() const;
  198. void set_msg_type(::message::Message_type value);
  199. // @@protoc_insertion_point(class_scope:message.Command_message)
  200. private:
  201. void set_has_msg_type();
  202. void clear_has_msg_type();
  203. void set_has_command_id();
  204. void clear_has_command_id();
  205. void set_has_act_type();
  206. void clear_has_act_type();
  207. void set_has_from_id();
  208. void clear_has_from_id();
  209. void set_has_destination_id();
  210. void clear_has_destination_id();
  211. // helper for ByteSizeLong()
  212. size_t RequiredFieldsByteSizeFallback() const;
  213. ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
  214. ::google::protobuf::internal::HasBits<1> _has_bits_;
  215. mutable int _cached_size_;
  216. ::google::protobuf::int32 command_id_;
  217. int act_type_;
  218. ::google::protobuf::int32 from_id_;
  219. ::google::protobuf::int32 destination_id_;
  220. int msg_type_;
  221. friend struct ::protobuf_message_5fbase_2eproto::TableStruct;
  222. friend void ::protobuf_message_5fbase_2eproto::InitDefaultsCommand_messageImpl();
  223. };
  224. // ===================================================================
  225. // ===================================================================
  226. #ifdef __GNUC__
  227. #pragma GCC diagnostic push
  228. #pragma GCC diagnostic ignored "-Wstrict-aliasing"
  229. #endif // __GNUC__
  230. // Command_message
  231. // required .message.Message_type msg_type = 1;
  232. inline bool Command_message::has_msg_type() const {
  233. return (_has_bits_[0] & 0x00000010u) != 0;
  234. }
  235. inline void Command_message::set_has_msg_type() {
  236. _has_bits_[0] |= 0x00000010u;
  237. }
  238. inline void Command_message::clear_has_msg_type() {
  239. _has_bits_[0] &= ~0x00000010u;
  240. }
  241. inline void Command_message::clear_msg_type() {
  242. msg_type_ = 1;
  243. clear_has_msg_type();
  244. }
  245. inline ::message::Message_type Command_message::msg_type() const {
  246. // @@protoc_insertion_point(field_get:message.Command_message.msg_type)
  247. return static_cast< ::message::Message_type >(msg_type_);
  248. }
  249. inline void Command_message::set_msg_type(::message::Message_type value) {
  250. assert(::message::Message_type_IsValid(value));
  251. set_has_msg_type();
  252. msg_type_ = value;
  253. // @@protoc_insertion_point(field_set:message.Command_message.msg_type)
  254. }
  255. // required int32 command_id = 2;
  256. inline bool Command_message::has_command_id() const {
  257. return (_has_bits_[0] & 0x00000001u) != 0;
  258. }
  259. inline void Command_message::set_has_command_id() {
  260. _has_bits_[0] |= 0x00000001u;
  261. }
  262. inline void Command_message::clear_has_command_id() {
  263. _has_bits_[0] &= ~0x00000001u;
  264. }
  265. inline void Command_message::clear_command_id() {
  266. command_id_ = 0;
  267. clear_has_command_id();
  268. }
  269. inline ::google::protobuf::int32 Command_message::command_id() const {
  270. // @@protoc_insertion_point(field_get:message.Command_message.command_id)
  271. return command_id_;
  272. }
  273. inline void Command_message::set_command_id(::google::protobuf::int32 value) {
  274. set_has_command_id();
  275. command_id_ = value;
  276. // @@protoc_insertion_point(field_set:message.Command_message.command_id)
  277. }
  278. // required .message.Action_type act_type = 3;
  279. inline bool Command_message::has_act_type() const {
  280. return (_has_bits_[0] & 0x00000002u) != 0;
  281. }
  282. inline void Command_message::set_has_act_type() {
  283. _has_bits_[0] |= 0x00000002u;
  284. }
  285. inline void Command_message::clear_has_act_type() {
  286. _has_bits_[0] &= ~0x00000002u;
  287. }
  288. inline void Command_message::clear_act_type() {
  289. act_type_ = 0;
  290. clear_has_act_type();
  291. }
  292. inline ::message::Action_type Command_message::act_type() const {
  293. // @@protoc_insertion_point(field_get:message.Command_message.act_type)
  294. return static_cast< ::message::Action_type >(act_type_);
  295. }
  296. inline void Command_message::set_act_type(::message::Action_type value) {
  297. assert(::message::Action_type_IsValid(value));
  298. set_has_act_type();
  299. act_type_ = value;
  300. // @@protoc_insertion_point(field_set:message.Command_message.act_type)
  301. }
  302. // required int32 from_id = 4;
  303. inline bool Command_message::has_from_id() const {
  304. return (_has_bits_[0] & 0x00000004u) != 0;
  305. }
  306. inline void Command_message::set_has_from_id() {
  307. _has_bits_[0] |= 0x00000004u;
  308. }
  309. inline void Command_message::clear_has_from_id() {
  310. _has_bits_[0] &= ~0x00000004u;
  311. }
  312. inline void Command_message::clear_from_id() {
  313. from_id_ = 0;
  314. clear_has_from_id();
  315. }
  316. inline ::google::protobuf::int32 Command_message::from_id() const {
  317. // @@protoc_insertion_point(field_get:message.Command_message.from_id)
  318. return from_id_;
  319. }
  320. inline void Command_message::set_from_id(::google::protobuf::int32 value) {
  321. set_has_from_id();
  322. from_id_ = value;
  323. // @@protoc_insertion_point(field_set:message.Command_message.from_id)
  324. }
  325. // required int32 destination_id = 5;
  326. inline bool Command_message::has_destination_id() const {
  327. return (_has_bits_[0] & 0x00000008u) != 0;
  328. }
  329. inline void Command_message::set_has_destination_id() {
  330. _has_bits_[0] |= 0x00000008u;
  331. }
  332. inline void Command_message::clear_has_destination_id() {
  333. _has_bits_[0] &= ~0x00000008u;
  334. }
  335. inline void Command_message::clear_destination_id() {
  336. destination_id_ = 0;
  337. clear_has_destination_id();
  338. }
  339. inline ::google::protobuf::int32 Command_message::destination_id() const {
  340. // @@protoc_insertion_point(field_get:message.Command_message.destination_id)
  341. return destination_id_;
  342. }
  343. inline void Command_message::set_destination_id(::google::protobuf::int32 value) {
  344. set_has_destination_id();
  345. destination_id_ = value;
  346. // @@protoc_insertion_point(field_set:message.Command_message.destination_id)
  347. }
  348. #ifdef __GNUC__
  349. #pragma GCC diagnostic pop
  350. #endif // __GNUC__
  351. // @@protoc_insertion_point(namespace_scope)
  352. } // namespace message
  353. namespace google {
  354. namespace protobuf {
  355. template <> struct is_proto_enum< ::message::Message_type> : ::google::protobuf::internal::true_type {};
  356. template <>
  357. inline const EnumDescriptor* GetEnumDescriptor< ::message::Message_type>() {
  358. return ::message::Message_type_descriptor();
  359. }
  360. template <> struct is_proto_enum< ::message::Action_type> : ::google::protobuf::internal::true_type {};
  361. template <>
  362. inline const EnumDescriptor* GetEnumDescriptor< ::message::Action_type>() {
  363. return ::message::Action_type_descriptor();
  364. }
  365. } // namespace protobuf
  366. } // namespace google
  367. // @@protoc_insertion_point(global_scope)
  368. #endif // PROTOBUF_message_5fbase_2eproto__INCLUDED