message_base.pb.h 12 KB

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