dispatch_message.pb.h 50 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357
  1. // Generated by the protocol buffer compiler. DO NOT EDIT!
  2. // source: dispatch_message.proto
  3. #ifndef PROTOBUF_dispatch_5fmessage_2eproto__INCLUDED
  4. #define PROTOBUF_dispatch_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_dispatch_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[4];
  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 InitDefaultsCarrier_positionImpl();
  42. void InitDefaultsCarrier_position();
  43. void InitDefaultsDispatch_status_msgImpl();
  44. void InitDefaultsDispatch_status_msg();
  45. void InitDefaultsDispatch_request_msgImpl();
  46. void InitDefaultsDispatch_request_msg();
  47. void InitDefaultsDispatch_response_msgImpl();
  48. void InitDefaultsDispatch_response_msg();
  49. inline void InitDefaults() {
  50. InitDefaultsCarrier_position();
  51. InitDefaultsDispatch_status_msg();
  52. InitDefaultsDispatch_request_msg();
  53. InitDefaultsDispatch_response_msg();
  54. }
  55. } // namespace protobuf_dispatch_5fmessage_2eproto
  56. namespace message {
  57. class Carrier_position;
  58. class Carrier_positionDefaultTypeInternal;
  59. extern Carrier_positionDefaultTypeInternal _Carrier_position_default_instance_;
  60. class Dispatch_request_msg;
  61. class Dispatch_request_msgDefaultTypeInternal;
  62. extern Dispatch_request_msgDefaultTypeInternal _Dispatch_request_msg_default_instance_;
  63. class Dispatch_response_msg;
  64. class Dispatch_response_msgDefaultTypeInternal;
  65. extern Dispatch_response_msgDefaultTypeInternal _Dispatch_response_msg_default_instance_;
  66. class Dispatch_status_msg;
  67. class Dispatch_status_msgDefaultTypeInternal;
  68. extern Dispatch_status_msgDefaultTypeInternal _Dispatch_status_msg_default_instance_;
  69. } // namespace message
  70. namespace message {
  71. enum Dispatch_manager_status {
  72. E_DISPATCH_MANAGER_UNKNOW = 0,
  73. E_DISPATCH_MANAGER_READY = 1,
  74. E_DISPATCH_MANAGER_STORE = 2,
  75. E_DISPATCH_MANAGER_PICKUP = 3,
  76. E_DISPATCH_MANAGER_FAULT = 10
  77. };
  78. bool Dispatch_manager_status_IsValid(int value);
  79. const Dispatch_manager_status Dispatch_manager_status_MIN = E_DISPATCH_MANAGER_UNKNOW;
  80. const Dispatch_manager_status Dispatch_manager_status_MAX = E_DISPATCH_MANAGER_FAULT;
  81. const int Dispatch_manager_status_ARRAYSIZE = Dispatch_manager_status_MAX + 1;
  82. const ::google::protobuf::EnumDescriptor* Dispatch_manager_status_descriptor();
  83. inline const ::std::string& Dispatch_manager_status_Name(Dispatch_manager_status value) {
  84. return ::google::protobuf::internal::NameOfEnum(
  85. Dispatch_manager_status_descriptor(), value);
  86. }
  87. inline bool Dispatch_manager_status_Parse(
  88. const ::std::string& name, Dispatch_manager_status* value) {
  89. return ::google::protobuf::internal::ParseNamedEnum<Dispatch_manager_status>(
  90. Dispatch_manager_status_descriptor(), name, value);
  91. }
  92. enum Carrier_status {
  93. E_CARRIER_UNKNOW = 0,
  94. E_CARRIER_READY = 1,
  95. E_CARRIER_STORE = 2,
  96. E_CARRIER_PICKUP = 3,
  97. E_CARRIER_FAULT = 10
  98. };
  99. bool Carrier_status_IsValid(int value);
  100. const Carrier_status Carrier_status_MIN = E_CARRIER_UNKNOW;
  101. const Carrier_status Carrier_status_MAX = E_CARRIER_FAULT;
  102. const int Carrier_status_ARRAYSIZE = Carrier_status_MAX + 1;
  103. const ::google::protobuf::EnumDescriptor* Carrier_status_descriptor();
  104. inline const ::std::string& Carrier_status_Name(Carrier_status value) {
  105. return ::google::protobuf::internal::NameOfEnum(
  106. Carrier_status_descriptor(), value);
  107. }
  108. inline bool Carrier_status_Parse(
  109. const ::std::string& name, Carrier_status* value) {
  110. return ::google::protobuf::internal::ParseNamedEnum<Carrier_status>(
  111. Carrier_status_descriptor(), name, value);
  112. }
  113. enum Dispatch_motion_direction {
  114. E_STORE_CAR = 0,
  115. E_PICKUP_CAR = 1
  116. };
  117. bool Dispatch_motion_direction_IsValid(int value);
  118. const Dispatch_motion_direction Dispatch_motion_direction_MIN = E_STORE_CAR;
  119. const Dispatch_motion_direction Dispatch_motion_direction_MAX = E_PICKUP_CAR;
  120. const int Dispatch_motion_direction_ARRAYSIZE = Dispatch_motion_direction_MAX + 1;
  121. const ::google::protobuf::EnumDescriptor* Dispatch_motion_direction_descriptor();
  122. inline const ::std::string& Dispatch_motion_direction_Name(Dispatch_motion_direction value) {
  123. return ::google::protobuf::internal::NameOfEnum(
  124. Dispatch_motion_direction_descriptor(), value);
  125. }
  126. inline bool Dispatch_motion_direction_Parse(
  127. const ::std::string& name, Dispatch_motion_direction* value) {
  128. return ::google::protobuf::internal::ParseNamedEnum<Dispatch_motion_direction>(
  129. Dispatch_motion_direction_descriptor(), name, value);
  130. }
  131. // ===================================================================
  132. class Carrier_position : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:message.Carrier_position) */ {
  133. public:
  134. Carrier_position();
  135. virtual ~Carrier_position();
  136. Carrier_position(const Carrier_position& from);
  137. inline Carrier_position& operator=(const Carrier_position& from) {
  138. CopyFrom(from);
  139. return *this;
  140. }
  141. #if LANG_CXX11
  142. Carrier_position(Carrier_position&& from) noexcept
  143. : Carrier_position() {
  144. *this = ::std::move(from);
  145. }
  146. inline Carrier_position& operator=(Carrier_position&& from) noexcept {
  147. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  148. if (this != &from) InternalSwap(&from);
  149. } else {
  150. CopyFrom(from);
  151. }
  152. return *this;
  153. }
  154. #endif
  155. inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
  156. return _internal_metadata_.unknown_fields();
  157. }
  158. inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
  159. return _internal_metadata_.mutable_unknown_fields();
  160. }
  161. static const ::google::protobuf::Descriptor* descriptor();
  162. static const Carrier_position& default_instance();
  163. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  164. static inline const Carrier_position* internal_default_instance() {
  165. return reinterpret_cast<const Carrier_position*>(
  166. &_Carrier_position_default_instance_);
  167. }
  168. static PROTOBUF_CONSTEXPR int const kIndexInFileMessages =
  169. 0;
  170. void Swap(Carrier_position* other);
  171. friend void swap(Carrier_position& a, Carrier_position& b) {
  172. a.Swap(&b);
  173. }
  174. // implements Message ----------------------------------------------
  175. inline Carrier_position* New() const PROTOBUF_FINAL { return New(NULL); }
  176. Carrier_position* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL;
  177. void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL;
  178. void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL;
  179. void CopyFrom(const Carrier_position& from);
  180. void MergeFrom(const Carrier_position& from);
  181. void Clear() PROTOBUF_FINAL;
  182. bool IsInitialized() const PROTOBUF_FINAL;
  183. size_t ByteSizeLong() const PROTOBUF_FINAL;
  184. bool MergePartialFromCodedStream(
  185. ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL;
  186. void SerializeWithCachedSizes(
  187. ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL;
  188. ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
  189. bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL;
  190. int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; }
  191. private:
  192. void SharedCtor();
  193. void SharedDtor();
  194. void SetCachedSize(int size) const PROTOBUF_FINAL;
  195. void InternalSwap(Carrier_position* other);
  196. private:
  197. inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
  198. return NULL;
  199. }
  200. inline void* MaybeArenaPtr() const {
  201. return NULL;
  202. }
  203. public:
  204. ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL;
  205. // nested types ----------------------------------------------------
  206. // accessors -------------------------------------------------------
  207. // required float x = 1;
  208. bool has_x() const;
  209. void clear_x();
  210. static const int kXFieldNumber = 1;
  211. float x() const;
  212. void set_x(float value);
  213. // required float y = 2;
  214. bool has_y() const;
  215. void clear_y();
  216. static const int kYFieldNumber = 2;
  217. float y() const;
  218. void set_y(float value);
  219. // required float z = 3;
  220. bool has_z() const;
  221. void clear_z();
  222. static const int kZFieldNumber = 3;
  223. float z() const;
  224. void set_z(float value);
  225. // @@protoc_insertion_point(class_scope:message.Carrier_position)
  226. private:
  227. void set_has_x();
  228. void clear_has_x();
  229. void set_has_y();
  230. void clear_has_y();
  231. void set_has_z();
  232. void clear_has_z();
  233. // helper for ByteSizeLong()
  234. size_t RequiredFieldsByteSizeFallback() const;
  235. ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
  236. ::google::protobuf::internal::HasBits<1> _has_bits_;
  237. mutable int _cached_size_;
  238. float x_;
  239. float y_;
  240. float z_;
  241. friend struct ::protobuf_dispatch_5fmessage_2eproto::TableStruct;
  242. friend void ::protobuf_dispatch_5fmessage_2eproto::InitDefaultsCarrier_positionImpl();
  243. };
  244. // -------------------------------------------------------------------
  245. class Dispatch_status_msg : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:message.Dispatch_status_msg) */ {
  246. public:
  247. Dispatch_status_msg();
  248. virtual ~Dispatch_status_msg();
  249. Dispatch_status_msg(const Dispatch_status_msg& from);
  250. inline Dispatch_status_msg& operator=(const Dispatch_status_msg& from) {
  251. CopyFrom(from);
  252. return *this;
  253. }
  254. #if LANG_CXX11
  255. Dispatch_status_msg(Dispatch_status_msg&& from) noexcept
  256. : Dispatch_status_msg() {
  257. *this = ::std::move(from);
  258. }
  259. inline Dispatch_status_msg& operator=(Dispatch_status_msg&& from) noexcept {
  260. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  261. if (this != &from) InternalSwap(&from);
  262. } else {
  263. CopyFrom(from);
  264. }
  265. return *this;
  266. }
  267. #endif
  268. inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
  269. return _internal_metadata_.unknown_fields();
  270. }
  271. inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
  272. return _internal_metadata_.mutable_unknown_fields();
  273. }
  274. static const ::google::protobuf::Descriptor* descriptor();
  275. static const Dispatch_status_msg& default_instance();
  276. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  277. static inline const Dispatch_status_msg* internal_default_instance() {
  278. return reinterpret_cast<const Dispatch_status_msg*>(
  279. &_Dispatch_status_msg_default_instance_);
  280. }
  281. static PROTOBUF_CONSTEXPR int const kIndexInFileMessages =
  282. 1;
  283. void Swap(Dispatch_status_msg* other);
  284. friend void swap(Dispatch_status_msg& a, Dispatch_status_msg& b) {
  285. a.Swap(&b);
  286. }
  287. // implements Message ----------------------------------------------
  288. inline Dispatch_status_msg* New() const PROTOBUF_FINAL { return New(NULL); }
  289. Dispatch_status_msg* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL;
  290. void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL;
  291. void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL;
  292. void CopyFrom(const Dispatch_status_msg& from);
  293. void MergeFrom(const Dispatch_status_msg& from);
  294. void Clear() PROTOBUF_FINAL;
  295. bool IsInitialized() const PROTOBUF_FINAL;
  296. size_t ByteSizeLong() const PROTOBUF_FINAL;
  297. bool MergePartialFromCodedStream(
  298. ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL;
  299. void SerializeWithCachedSizes(
  300. ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL;
  301. ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
  302. bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL;
  303. int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; }
  304. private:
  305. void SharedCtor();
  306. void SharedDtor();
  307. void SetCachedSize(int size) const PROTOBUF_FINAL;
  308. void InternalSwap(Dispatch_status_msg* other);
  309. private:
  310. inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
  311. return NULL;
  312. }
  313. inline void* MaybeArenaPtr() const {
  314. return NULL;
  315. }
  316. public:
  317. ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL;
  318. // nested types ----------------------------------------------------
  319. // accessors -------------------------------------------------------
  320. // required .message.Base_info base_info = 1;
  321. bool has_base_info() const;
  322. void clear_base_info();
  323. static const int kBaseInfoFieldNumber = 1;
  324. const ::message::Base_info& base_info() const;
  325. ::message::Base_info* release_base_info();
  326. ::message::Base_info* mutable_base_info();
  327. void set_allocated_base_info(::message::Base_info* base_info);
  328. // required int32 terminal_id = 2;
  329. bool has_terminal_id() const;
  330. void clear_terminal_id();
  331. static const int kTerminalIdFieldNumber = 2;
  332. ::google::protobuf::int32 terminal_id() const;
  333. void set_terminal_id(::google::protobuf::int32 value);
  334. // required .message.Dispatch_manager_status dispatch_manager_status = 3;
  335. bool has_dispatch_manager_status() const;
  336. void clear_dispatch_manager_status();
  337. static const int kDispatchManagerStatusFieldNumber = 3;
  338. ::message::Dispatch_manager_status dispatch_manager_status() const;
  339. void set_dispatch_manager_status(::message::Dispatch_manager_status value);
  340. // required .message.Dispatch_motion_direction dispatch_motion_direction = 4;
  341. bool has_dispatch_motion_direction() const;
  342. void clear_dispatch_motion_direction();
  343. static const int kDispatchMotionDirectionFieldNumber = 4;
  344. ::message::Dispatch_motion_direction dispatch_motion_direction() const;
  345. void set_dispatch_motion_direction(::message::Dispatch_motion_direction value);
  346. // @@protoc_insertion_point(class_scope:message.Dispatch_status_msg)
  347. private:
  348. void set_has_base_info();
  349. void clear_has_base_info();
  350. void set_has_terminal_id();
  351. void clear_has_terminal_id();
  352. void set_has_dispatch_manager_status();
  353. void clear_has_dispatch_manager_status();
  354. void set_has_dispatch_motion_direction();
  355. void clear_has_dispatch_motion_direction();
  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. ::message::Base_info* base_info_;
  362. ::google::protobuf::int32 terminal_id_;
  363. int dispatch_manager_status_;
  364. int dispatch_motion_direction_;
  365. friend struct ::protobuf_dispatch_5fmessage_2eproto::TableStruct;
  366. friend void ::protobuf_dispatch_5fmessage_2eproto::InitDefaultsDispatch_status_msgImpl();
  367. };
  368. // -------------------------------------------------------------------
  369. class Dispatch_request_msg : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:message.Dispatch_request_msg) */ {
  370. public:
  371. Dispatch_request_msg();
  372. virtual ~Dispatch_request_msg();
  373. Dispatch_request_msg(const Dispatch_request_msg& from);
  374. inline Dispatch_request_msg& operator=(const Dispatch_request_msg& from) {
  375. CopyFrom(from);
  376. return *this;
  377. }
  378. #if LANG_CXX11
  379. Dispatch_request_msg(Dispatch_request_msg&& from) noexcept
  380. : Dispatch_request_msg() {
  381. *this = ::std::move(from);
  382. }
  383. inline Dispatch_request_msg& operator=(Dispatch_request_msg&& from) noexcept {
  384. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  385. if (this != &from) InternalSwap(&from);
  386. } else {
  387. CopyFrom(from);
  388. }
  389. return *this;
  390. }
  391. #endif
  392. inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
  393. return _internal_metadata_.unknown_fields();
  394. }
  395. inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
  396. return _internal_metadata_.mutable_unknown_fields();
  397. }
  398. static const ::google::protobuf::Descriptor* descriptor();
  399. static const Dispatch_request_msg& default_instance();
  400. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  401. static inline const Dispatch_request_msg* internal_default_instance() {
  402. return reinterpret_cast<const Dispatch_request_msg*>(
  403. &_Dispatch_request_msg_default_instance_);
  404. }
  405. static PROTOBUF_CONSTEXPR int const kIndexInFileMessages =
  406. 2;
  407. void Swap(Dispatch_request_msg* other);
  408. friend void swap(Dispatch_request_msg& a, Dispatch_request_msg& b) {
  409. a.Swap(&b);
  410. }
  411. // implements Message ----------------------------------------------
  412. inline Dispatch_request_msg* New() const PROTOBUF_FINAL { return New(NULL); }
  413. Dispatch_request_msg* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL;
  414. void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL;
  415. void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL;
  416. void CopyFrom(const Dispatch_request_msg& from);
  417. void MergeFrom(const Dispatch_request_msg& from);
  418. void Clear() PROTOBUF_FINAL;
  419. bool IsInitialized() const PROTOBUF_FINAL;
  420. size_t ByteSizeLong() const PROTOBUF_FINAL;
  421. bool MergePartialFromCodedStream(
  422. ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL;
  423. void SerializeWithCachedSizes(
  424. ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL;
  425. ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
  426. bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL;
  427. int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; }
  428. private:
  429. void SharedCtor();
  430. void SharedDtor();
  431. void SetCachedSize(int size) const PROTOBUF_FINAL;
  432. void InternalSwap(Dispatch_request_msg* other);
  433. private:
  434. inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
  435. return NULL;
  436. }
  437. inline void* MaybeArenaPtr() const {
  438. return NULL;
  439. }
  440. public:
  441. ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL;
  442. // nested types ----------------------------------------------------
  443. // accessors -------------------------------------------------------
  444. // required .message.Base_info base_info = 1;
  445. bool has_base_info() const;
  446. void clear_base_info();
  447. static const int kBaseInfoFieldNumber = 1;
  448. const ::message::Base_info& base_info() const;
  449. ::message::Base_info* release_base_info();
  450. ::message::Base_info* mutable_base_info();
  451. void set_allocated_base_info(::message::Base_info* base_info);
  452. // required .message.Command_info command_info = 2;
  453. bool has_command_info() const;
  454. void clear_command_info();
  455. static const int kCommandInfoFieldNumber = 2;
  456. const ::message::Command_info& command_info() const;
  457. ::message::Command_info* release_command_info();
  458. ::message::Command_info* mutable_command_info();
  459. void set_allocated_command_info(::message::Command_info* command_info);
  460. // optional .message.Locate_information locate_information = 6;
  461. bool has_locate_information() const;
  462. void clear_locate_information();
  463. static const int kLocateInformationFieldNumber = 6;
  464. const ::message::Locate_information& locate_information() const;
  465. ::message::Locate_information* release_locate_information();
  466. ::message::Locate_information* mutable_locate_information();
  467. void set_allocated_locate_information(::message::Locate_information* locate_information);
  468. // required .message.Dispatch_motion_direction dispatch_motion_direction = 3;
  469. bool has_dispatch_motion_direction() const;
  470. void clear_dispatch_motion_direction();
  471. static const int kDispatchMotionDirectionFieldNumber = 3;
  472. ::message::Dispatch_motion_direction dispatch_motion_direction() const;
  473. void set_dispatch_motion_direction(::message::Dispatch_motion_direction value);
  474. // required int32 terminal_id = 4;
  475. bool has_terminal_id() const;
  476. void clear_terminal_id();
  477. static const int kTerminalIdFieldNumber = 4;
  478. ::google::protobuf::int32 terminal_id() const;
  479. void set_terminal_id(::google::protobuf::int32 value);
  480. // required int32 parkspace_id = 5;
  481. bool has_parkspace_id() const;
  482. void clear_parkspace_id();
  483. static const int kParkspaceIdFieldNumber = 5;
  484. ::google::protobuf::int32 parkspace_id() const;
  485. void set_parkspace_id(::google::protobuf::int32 value);
  486. // @@protoc_insertion_point(class_scope:message.Dispatch_request_msg)
  487. private:
  488. void set_has_base_info();
  489. void clear_has_base_info();
  490. void set_has_command_info();
  491. void clear_has_command_info();
  492. void set_has_dispatch_motion_direction();
  493. void clear_has_dispatch_motion_direction();
  494. void set_has_terminal_id();
  495. void clear_has_terminal_id();
  496. void set_has_parkspace_id();
  497. void clear_has_parkspace_id();
  498. void set_has_locate_information();
  499. void clear_has_locate_information();
  500. // helper for ByteSizeLong()
  501. size_t RequiredFieldsByteSizeFallback() const;
  502. ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
  503. ::google::protobuf::internal::HasBits<1> _has_bits_;
  504. mutable int _cached_size_;
  505. ::message::Base_info* base_info_;
  506. ::message::Command_info* command_info_;
  507. ::message::Locate_information* locate_information_;
  508. int dispatch_motion_direction_;
  509. ::google::protobuf::int32 terminal_id_;
  510. ::google::protobuf::int32 parkspace_id_;
  511. friend struct ::protobuf_dispatch_5fmessage_2eproto::TableStruct;
  512. friend void ::protobuf_dispatch_5fmessage_2eproto::InitDefaultsDispatch_request_msgImpl();
  513. };
  514. // -------------------------------------------------------------------
  515. class Dispatch_response_msg : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:message.Dispatch_response_msg) */ {
  516. public:
  517. Dispatch_response_msg();
  518. virtual ~Dispatch_response_msg();
  519. Dispatch_response_msg(const Dispatch_response_msg& from);
  520. inline Dispatch_response_msg& operator=(const Dispatch_response_msg& from) {
  521. CopyFrom(from);
  522. return *this;
  523. }
  524. #if LANG_CXX11
  525. Dispatch_response_msg(Dispatch_response_msg&& from) noexcept
  526. : Dispatch_response_msg() {
  527. *this = ::std::move(from);
  528. }
  529. inline Dispatch_response_msg& operator=(Dispatch_response_msg&& from) noexcept {
  530. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  531. if (this != &from) InternalSwap(&from);
  532. } else {
  533. CopyFrom(from);
  534. }
  535. return *this;
  536. }
  537. #endif
  538. inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
  539. return _internal_metadata_.unknown_fields();
  540. }
  541. inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
  542. return _internal_metadata_.mutable_unknown_fields();
  543. }
  544. static const ::google::protobuf::Descriptor* descriptor();
  545. static const Dispatch_response_msg& default_instance();
  546. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  547. static inline const Dispatch_response_msg* internal_default_instance() {
  548. return reinterpret_cast<const Dispatch_response_msg*>(
  549. &_Dispatch_response_msg_default_instance_);
  550. }
  551. static PROTOBUF_CONSTEXPR int const kIndexInFileMessages =
  552. 3;
  553. void Swap(Dispatch_response_msg* other);
  554. friend void swap(Dispatch_response_msg& a, Dispatch_response_msg& b) {
  555. a.Swap(&b);
  556. }
  557. // implements Message ----------------------------------------------
  558. inline Dispatch_response_msg* New() const PROTOBUF_FINAL { return New(NULL); }
  559. Dispatch_response_msg* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL;
  560. void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL;
  561. void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL;
  562. void CopyFrom(const Dispatch_response_msg& from);
  563. void MergeFrom(const Dispatch_response_msg& from);
  564. void Clear() PROTOBUF_FINAL;
  565. bool IsInitialized() const PROTOBUF_FINAL;
  566. size_t ByteSizeLong() const PROTOBUF_FINAL;
  567. bool MergePartialFromCodedStream(
  568. ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL;
  569. void SerializeWithCachedSizes(
  570. ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL;
  571. ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
  572. bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL;
  573. int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; }
  574. private:
  575. void SharedCtor();
  576. void SharedDtor();
  577. void SetCachedSize(int size) const PROTOBUF_FINAL;
  578. void InternalSwap(Dispatch_response_msg* other);
  579. private:
  580. inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
  581. return NULL;
  582. }
  583. inline void* MaybeArenaPtr() const {
  584. return NULL;
  585. }
  586. public:
  587. ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL;
  588. // nested types ----------------------------------------------------
  589. // accessors -------------------------------------------------------
  590. // required .message.Base_info base_info = 1;
  591. bool has_base_info() const;
  592. void clear_base_info();
  593. static const int kBaseInfoFieldNumber = 1;
  594. const ::message::Base_info& base_info() const;
  595. ::message::Base_info* release_base_info();
  596. ::message::Base_info* mutable_base_info();
  597. void set_allocated_base_info(::message::Base_info* base_info);
  598. // required .message.Command_info command_info = 2;
  599. bool has_command_info() const;
  600. void clear_command_info();
  601. static const int kCommandInfoFieldNumber = 2;
  602. const ::message::Command_info& command_info() const;
  603. ::message::Command_info* release_command_info();
  604. ::message::Command_info* mutable_command_info();
  605. void set_allocated_command_info(::message::Command_info* command_info);
  606. // required .message.Error_manager error_manager = 3;
  607. bool has_error_manager() const;
  608. void clear_error_manager();
  609. static const int kErrorManagerFieldNumber = 3;
  610. const ::message::Error_manager& error_manager() const;
  611. ::message::Error_manager* release_error_manager();
  612. ::message::Error_manager* mutable_error_manager();
  613. void set_allocated_error_manager(::message::Error_manager* error_manager);
  614. // @@protoc_insertion_point(class_scope:message.Dispatch_response_msg)
  615. private:
  616. void set_has_base_info();
  617. void clear_has_base_info();
  618. void set_has_command_info();
  619. void clear_has_command_info();
  620. void set_has_error_manager();
  621. void clear_has_error_manager();
  622. // helper for ByteSizeLong()
  623. size_t RequiredFieldsByteSizeFallback() const;
  624. ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
  625. ::google::protobuf::internal::HasBits<1> _has_bits_;
  626. mutable int _cached_size_;
  627. ::message::Base_info* base_info_;
  628. ::message::Command_info* command_info_;
  629. ::message::Error_manager* error_manager_;
  630. friend struct ::protobuf_dispatch_5fmessage_2eproto::TableStruct;
  631. friend void ::protobuf_dispatch_5fmessage_2eproto::InitDefaultsDispatch_response_msgImpl();
  632. };
  633. // ===================================================================
  634. // ===================================================================
  635. #ifdef __GNUC__
  636. #pragma GCC diagnostic push
  637. #pragma GCC diagnostic ignored "-Wstrict-aliasing"
  638. #endif // __GNUC__
  639. // Carrier_position
  640. // required float x = 1;
  641. inline bool Carrier_position::has_x() const {
  642. return (_has_bits_[0] & 0x00000001u) != 0;
  643. }
  644. inline void Carrier_position::set_has_x() {
  645. _has_bits_[0] |= 0x00000001u;
  646. }
  647. inline void Carrier_position::clear_has_x() {
  648. _has_bits_[0] &= ~0x00000001u;
  649. }
  650. inline void Carrier_position::clear_x() {
  651. x_ = 0;
  652. clear_has_x();
  653. }
  654. inline float Carrier_position::x() const {
  655. // @@protoc_insertion_point(field_get:message.Carrier_position.x)
  656. return x_;
  657. }
  658. inline void Carrier_position::set_x(float value) {
  659. set_has_x();
  660. x_ = value;
  661. // @@protoc_insertion_point(field_set:message.Carrier_position.x)
  662. }
  663. // required float y = 2;
  664. inline bool Carrier_position::has_y() const {
  665. return (_has_bits_[0] & 0x00000002u) != 0;
  666. }
  667. inline void Carrier_position::set_has_y() {
  668. _has_bits_[0] |= 0x00000002u;
  669. }
  670. inline void Carrier_position::clear_has_y() {
  671. _has_bits_[0] &= ~0x00000002u;
  672. }
  673. inline void Carrier_position::clear_y() {
  674. y_ = 0;
  675. clear_has_y();
  676. }
  677. inline float Carrier_position::y() const {
  678. // @@protoc_insertion_point(field_get:message.Carrier_position.y)
  679. return y_;
  680. }
  681. inline void Carrier_position::set_y(float value) {
  682. set_has_y();
  683. y_ = value;
  684. // @@protoc_insertion_point(field_set:message.Carrier_position.y)
  685. }
  686. // required float z = 3;
  687. inline bool Carrier_position::has_z() const {
  688. return (_has_bits_[0] & 0x00000004u) != 0;
  689. }
  690. inline void Carrier_position::set_has_z() {
  691. _has_bits_[0] |= 0x00000004u;
  692. }
  693. inline void Carrier_position::clear_has_z() {
  694. _has_bits_[0] &= ~0x00000004u;
  695. }
  696. inline void Carrier_position::clear_z() {
  697. z_ = 0;
  698. clear_has_z();
  699. }
  700. inline float Carrier_position::z() const {
  701. // @@protoc_insertion_point(field_get:message.Carrier_position.z)
  702. return z_;
  703. }
  704. inline void Carrier_position::set_z(float value) {
  705. set_has_z();
  706. z_ = value;
  707. // @@protoc_insertion_point(field_set:message.Carrier_position.z)
  708. }
  709. // -------------------------------------------------------------------
  710. // Dispatch_status_msg
  711. // required .message.Base_info base_info = 1;
  712. inline bool Dispatch_status_msg::has_base_info() const {
  713. return (_has_bits_[0] & 0x00000001u) != 0;
  714. }
  715. inline void Dispatch_status_msg::set_has_base_info() {
  716. _has_bits_[0] |= 0x00000001u;
  717. }
  718. inline void Dispatch_status_msg::clear_has_base_info() {
  719. _has_bits_[0] &= ~0x00000001u;
  720. }
  721. inline const ::message::Base_info& Dispatch_status_msg::base_info() const {
  722. const ::message::Base_info* p = base_info_;
  723. // @@protoc_insertion_point(field_get:message.Dispatch_status_msg.base_info)
  724. return p != NULL ? *p : *reinterpret_cast<const ::message::Base_info*>(
  725. &::message::_Base_info_default_instance_);
  726. }
  727. inline ::message::Base_info* Dispatch_status_msg::release_base_info() {
  728. // @@protoc_insertion_point(field_release:message.Dispatch_status_msg.base_info)
  729. clear_has_base_info();
  730. ::message::Base_info* temp = base_info_;
  731. base_info_ = NULL;
  732. return temp;
  733. }
  734. inline ::message::Base_info* Dispatch_status_msg::mutable_base_info() {
  735. set_has_base_info();
  736. if (base_info_ == NULL) {
  737. base_info_ = new ::message::Base_info;
  738. }
  739. // @@protoc_insertion_point(field_mutable:message.Dispatch_status_msg.base_info)
  740. return base_info_;
  741. }
  742. inline void Dispatch_status_msg::set_allocated_base_info(::message::Base_info* base_info) {
  743. ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
  744. if (message_arena == NULL) {
  745. delete reinterpret_cast< ::google::protobuf::MessageLite*>(base_info_);
  746. }
  747. if (base_info) {
  748. ::google::protobuf::Arena* submessage_arena = NULL;
  749. if (message_arena != submessage_arena) {
  750. base_info = ::google::protobuf::internal::GetOwnedMessage(
  751. message_arena, base_info, submessage_arena);
  752. }
  753. set_has_base_info();
  754. } else {
  755. clear_has_base_info();
  756. }
  757. base_info_ = base_info;
  758. // @@protoc_insertion_point(field_set_allocated:message.Dispatch_status_msg.base_info)
  759. }
  760. // required int32 terminal_id = 2;
  761. inline bool Dispatch_status_msg::has_terminal_id() const {
  762. return (_has_bits_[0] & 0x00000002u) != 0;
  763. }
  764. inline void Dispatch_status_msg::set_has_terminal_id() {
  765. _has_bits_[0] |= 0x00000002u;
  766. }
  767. inline void Dispatch_status_msg::clear_has_terminal_id() {
  768. _has_bits_[0] &= ~0x00000002u;
  769. }
  770. inline void Dispatch_status_msg::clear_terminal_id() {
  771. terminal_id_ = 0;
  772. clear_has_terminal_id();
  773. }
  774. inline ::google::protobuf::int32 Dispatch_status_msg::terminal_id() const {
  775. // @@protoc_insertion_point(field_get:message.Dispatch_status_msg.terminal_id)
  776. return terminal_id_;
  777. }
  778. inline void Dispatch_status_msg::set_terminal_id(::google::protobuf::int32 value) {
  779. set_has_terminal_id();
  780. terminal_id_ = value;
  781. // @@protoc_insertion_point(field_set:message.Dispatch_status_msg.terminal_id)
  782. }
  783. // required .message.Dispatch_manager_status dispatch_manager_status = 3;
  784. inline bool Dispatch_status_msg::has_dispatch_manager_status() const {
  785. return (_has_bits_[0] & 0x00000004u) != 0;
  786. }
  787. inline void Dispatch_status_msg::set_has_dispatch_manager_status() {
  788. _has_bits_[0] |= 0x00000004u;
  789. }
  790. inline void Dispatch_status_msg::clear_has_dispatch_manager_status() {
  791. _has_bits_[0] &= ~0x00000004u;
  792. }
  793. inline void Dispatch_status_msg::clear_dispatch_manager_status() {
  794. dispatch_manager_status_ = 0;
  795. clear_has_dispatch_manager_status();
  796. }
  797. inline ::message::Dispatch_manager_status Dispatch_status_msg::dispatch_manager_status() const {
  798. // @@protoc_insertion_point(field_get:message.Dispatch_status_msg.dispatch_manager_status)
  799. return static_cast< ::message::Dispatch_manager_status >(dispatch_manager_status_);
  800. }
  801. inline void Dispatch_status_msg::set_dispatch_manager_status(::message::Dispatch_manager_status value) {
  802. assert(::message::Dispatch_manager_status_IsValid(value));
  803. set_has_dispatch_manager_status();
  804. dispatch_manager_status_ = value;
  805. // @@protoc_insertion_point(field_set:message.Dispatch_status_msg.dispatch_manager_status)
  806. }
  807. // required .message.Dispatch_motion_direction dispatch_motion_direction = 4;
  808. inline bool Dispatch_status_msg::has_dispatch_motion_direction() const {
  809. return (_has_bits_[0] & 0x00000008u) != 0;
  810. }
  811. inline void Dispatch_status_msg::set_has_dispatch_motion_direction() {
  812. _has_bits_[0] |= 0x00000008u;
  813. }
  814. inline void Dispatch_status_msg::clear_has_dispatch_motion_direction() {
  815. _has_bits_[0] &= ~0x00000008u;
  816. }
  817. inline void Dispatch_status_msg::clear_dispatch_motion_direction() {
  818. dispatch_motion_direction_ = 0;
  819. clear_has_dispatch_motion_direction();
  820. }
  821. inline ::message::Dispatch_motion_direction Dispatch_status_msg::dispatch_motion_direction() const {
  822. // @@protoc_insertion_point(field_get:message.Dispatch_status_msg.dispatch_motion_direction)
  823. return static_cast< ::message::Dispatch_motion_direction >(dispatch_motion_direction_);
  824. }
  825. inline void Dispatch_status_msg::set_dispatch_motion_direction(::message::Dispatch_motion_direction value) {
  826. assert(::message::Dispatch_motion_direction_IsValid(value));
  827. set_has_dispatch_motion_direction();
  828. dispatch_motion_direction_ = value;
  829. // @@protoc_insertion_point(field_set:message.Dispatch_status_msg.dispatch_motion_direction)
  830. }
  831. // -------------------------------------------------------------------
  832. // Dispatch_request_msg
  833. // required .message.Base_info base_info = 1;
  834. inline bool Dispatch_request_msg::has_base_info() const {
  835. return (_has_bits_[0] & 0x00000001u) != 0;
  836. }
  837. inline void Dispatch_request_msg::set_has_base_info() {
  838. _has_bits_[0] |= 0x00000001u;
  839. }
  840. inline void Dispatch_request_msg::clear_has_base_info() {
  841. _has_bits_[0] &= ~0x00000001u;
  842. }
  843. inline const ::message::Base_info& Dispatch_request_msg::base_info() const {
  844. const ::message::Base_info* p = base_info_;
  845. // @@protoc_insertion_point(field_get:message.Dispatch_request_msg.base_info)
  846. return p != NULL ? *p : *reinterpret_cast<const ::message::Base_info*>(
  847. &::message::_Base_info_default_instance_);
  848. }
  849. inline ::message::Base_info* Dispatch_request_msg::release_base_info() {
  850. // @@protoc_insertion_point(field_release:message.Dispatch_request_msg.base_info)
  851. clear_has_base_info();
  852. ::message::Base_info* temp = base_info_;
  853. base_info_ = NULL;
  854. return temp;
  855. }
  856. inline ::message::Base_info* Dispatch_request_msg::mutable_base_info() {
  857. set_has_base_info();
  858. if (base_info_ == NULL) {
  859. base_info_ = new ::message::Base_info;
  860. }
  861. // @@protoc_insertion_point(field_mutable:message.Dispatch_request_msg.base_info)
  862. return base_info_;
  863. }
  864. inline void Dispatch_request_msg::set_allocated_base_info(::message::Base_info* base_info) {
  865. ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
  866. if (message_arena == NULL) {
  867. delete reinterpret_cast< ::google::protobuf::MessageLite*>(base_info_);
  868. }
  869. if (base_info) {
  870. ::google::protobuf::Arena* submessage_arena = NULL;
  871. if (message_arena != submessage_arena) {
  872. base_info = ::google::protobuf::internal::GetOwnedMessage(
  873. message_arena, base_info, submessage_arena);
  874. }
  875. set_has_base_info();
  876. } else {
  877. clear_has_base_info();
  878. }
  879. base_info_ = base_info;
  880. // @@protoc_insertion_point(field_set_allocated:message.Dispatch_request_msg.base_info)
  881. }
  882. // required .message.Command_info command_info = 2;
  883. inline bool Dispatch_request_msg::has_command_info() const {
  884. return (_has_bits_[0] & 0x00000002u) != 0;
  885. }
  886. inline void Dispatch_request_msg::set_has_command_info() {
  887. _has_bits_[0] |= 0x00000002u;
  888. }
  889. inline void Dispatch_request_msg::clear_has_command_info() {
  890. _has_bits_[0] &= ~0x00000002u;
  891. }
  892. inline const ::message::Command_info& Dispatch_request_msg::command_info() const {
  893. const ::message::Command_info* p = command_info_;
  894. // @@protoc_insertion_point(field_get:message.Dispatch_request_msg.command_info)
  895. return p != NULL ? *p : *reinterpret_cast<const ::message::Command_info*>(
  896. &::message::_Command_info_default_instance_);
  897. }
  898. inline ::message::Command_info* Dispatch_request_msg::release_command_info() {
  899. // @@protoc_insertion_point(field_release:message.Dispatch_request_msg.command_info)
  900. clear_has_command_info();
  901. ::message::Command_info* temp = command_info_;
  902. command_info_ = NULL;
  903. return temp;
  904. }
  905. inline ::message::Command_info* Dispatch_request_msg::mutable_command_info() {
  906. set_has_command_info();
  907. if (command_info_ == NULL) {
  908. command_info_ = new ::message::Command_info;
  909. }
  910. // @@protoc_insertion_point(field_mutable:message.Dispatch_request_msg.command_info)
  911. return command_info_;
  912. }
  913. inline void Dispatch_request_msg::set_allocated_command_info(::message::Command_info* command_info) {
  914. ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
  915. if (message_arena == NULL) {
  916. delete reinterpret_cast< ::google::protobuf::MessageLite*>(command_info_);
  917. }
  918. if (command_info) {
  919. ::google::protobuf::Arena* submessage_arena = NULL;
  920. if (message_arena != submessage_arena) {
  921. command_info = ::google::protobuf::internal::GetOwnedMessage(
  922. message_arena, command_info, submessage_arena);
  923. }
  924. set_has_command_info();
  925. } else {
  926. clear_has_command_info();
  927. }
  928. command_info_ = command_info;
  929. // @@protoc_insertion_point(field_set_allocated:message.Dispatch_request_msg.command_info)
  930. }
  931. // required .message.Dispatch_motion_direction dispatch_motion_direction = 3;
  932. inline bool Dispatch_request_msg::has_dispatch_motion_direction() const {
  933. return (_has_bits_[0] & 0x00000008u) != 0;
  934. }
  935. inline void Dispatch_request_msg::set_has_dispatch_motion_direction() {
  936. _has_bits_[0] |= 0x00000008u;
  937. }
  938. inline void Dispatch_request_msg::clear_has_dispatch_motion_direction() {
  939. _has_bits_[0] &= ~0x00000008u;
  940. }
  941. inline void Dispatch_request_msg::clear_dispatch_motion_direction() {
  942. dispatch_motion_direction_ = 0;
  943. clear_has_dispatch_motion_direction();
  944. }
  945. inline ::message::Dispatch_motion_direction Dispatch_request_msg::dispatch_motion_direction() const {
  946. // @@protoc_insertion_point(field_get:message.Dispatch_request_msg.dispatch_motion_direction)
  947. return static_cast< ::message::Dispatch_motion_direction >(dispatch_motion_direction_);
  948. }
  949. inline void Dispatch_request_msg::set_dispatch_motion_direction(::message::Dispatch_motion_direction value) {
  950. assert(::message::Dispatch_motion_direction_IsValid(value));
  951. set_has_dispatch_motion_direction();
  952. dispatch_motion_direction_ = value;
  953. // @@protoc_insertion_point(field_set:message.Dispatch_request_msg.dispatch_motion_direction)
  954. }
  955. // required int32 terminal_id = 4;
  956. inline bool Dispatch_request_msg::has_terminal_id() const {
  957. return (_has_bits_[0] & 0x00000010u) != 0;
  958. }
  959. inline void Dispatch_request_msg::set_has_terminal_id() {
  960. _has_bits_[0] |= 0x00000010u;
  961. }
  962. inline void Dispatch_request_msg::clear_has_terminal_id() {
  963. _has_bits_[0] &= ~0x00000010u;
  964. }
  965. inline void Dispatch_request_msg::clear_terminal_id() {
  966. terminal_id_ = 0;
  967. clear_has_terminal_id();
  968. }
  969. inline ::google::protobuf::int32 Dispatch_request_msg::terminal_id() const {
  970. // @@protoc_insertion_point(field_get:message.Dispatch_request_msg.terminal_id)
  971. return terminal_id_;
  972. }
  973. inline void Dispatch_request_msg::set_terminal_id(::google::protobuf::int32 value) {
  974. set_has_terminal_id();
  975. terminal_id_ = value;
  976. // @@protoc_insertion_point(field_set:message.Dispatch_request_msg.terminal_id)
  977. }
  978. // required int32 parkspace_id = 5;
  979. inline bool Dispatch_request_msg::has_parkspace_id() const {
  980. return (_has_bits_[0] & 0x00000020u) != 0;
  981. }
  982. inline void Dispatch_request_msg::set_has_parkspace_id() {
  983. _has_bits_[0] |= 0x00000020u;
  984. }
  985. inline void Dispatch_request_msg::clear_has_parkspace_id() {
  986. _has_bits_[0] &= ~0x00000020u;
  987. }
  988. inline void Dispatch_request_msg::clear_parkspace_id() {
  989. parkspace_id_ = 0;
  990. clear_has_parkspace_id();
  991. }
  992. inline ::google::protobuf::int32 Dispatch_request_msg::parkspace_id() const {
  993. // @@protoc_insertion_point(field_get:message.Dispatch_request_msg.parkspace_id)
  994. return parkspace_id_;
  995. }
  996. inline void Dispatch_request_msg::set_parkspace_id(::google::protobuf::int32 value) {
  997. set_has_parkspace_id();
  998. parkspace_id_ = value;
  999. // @@protoc_insertion_point(field_set:message.Dispatch_request_msg.parkspace_id)
  1000. }
  1001. // optional .message.Locate_information locate_information = 6;
  1002. inline bool Dispatch_request_msg::has_locate_information() const {
  1003. return (_has_bits_[0] & 0x00000004u) != 0;
  1004. }
  1005. inline void Dispatch_request_msg::set_has_locate_information() {
  1006. _has_bits_[0] |= 0x00000004u;
  1007. }
  1008. inline void Dispatch_request_msg::clear_has_locate_information() {
  1009. _has_bits_[0] &= ~0x00000004u;
  1010. }
  1011. inline const ::message::Locate_information& Dispatch_request_msg::locate_information() const {
  1012. const ::message::Locate_information* p = locate_information_;
  1013. // @@protoc_insertion_point(field_get:message.Dispatch_request_msg.locate_information)
  1014. return p != NULL ? *p : *reinterpret_cast<const ::message::Locate_information*>(
  1015. &::message::_Locate_information_default_instance_);
  1016. }
  1017. inline ::message::Locate_information* Dispatch_request_msg::release_locate_information() {
  1018. // @@protoc_insertion_point(field_release:message.Dispatch_request_msg.locate_information)
  1019. clear_has_locate_information();
  1020. ::message::Locate_information* temp = locate_information_;
  1021. locate_information_ = NULL;
  1022. return temp;
  1023. }
  1024. inline ::message::Locate_information* Dispatch_request_msg::mutable_locate_information() {
  1025. set_has_locate_information();
  1026. if (locate_information_ == NULL) {
  1027. locate_information_ = new ::message::Locate_information;
  1028. }
  1029. // @@protoc_insertion_point(field_mutable:message.Dispatch_request_msg.locate_information)
  1030. return locate_information_;
  1031. }
  1032. inline void Dispatch_request_msg::set_allocated_locate_information(::message::Locate_information* locate_information) {
  1033. ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
  1034. if (message_arena == NULL) {
  1035. delete reinterpret_cast< ::google::protobuf::MessageLite*>(locate_information_);
  1036. }
  1037. if (locate_information) {
  1038. ::google::protobuf::Arena* submessage_arena = NULL;
  1039. if (message_arena != submessage_arena) {
  1040. locate_information = ::google::protobuf::internal::GetOwnedMessage(
  1041. message_arena, locate_information, submessage_arena);
  1042. }
  1043. set_has_locate_information();
  1044. } else {
  1045. clear_has_locate_information();
  1046. }
  1047. locate_information_ = locate_information;
  1048. // @@protoc_insertion_point(field_set_allocated:message.Dispatch_request_msg.locate_information)
  1049. }
  1050. // -------------------------------------------------------------------
  1051. // Dispatch_response_msg
  1052. // required .message.Base_info base_info = 1;
  1053. inline bool Dispatch_response_msg::has_base_info() const {
  1054. return (_has_bits_[0] & 0x00000001u) != 0;
  1055. }
  1056. inline void Dispatch_response_msg::set_has_base_info() {
  1057. _has_bits_[0] |= 0x00000001u;
  1058. }
  1059. inline void Dispatch_response_msg::clear_has_base_info() {
  1060. _has_bits_[0] &= ~0x00000001u;
  1061. }
  1062. inline const ::message::Base_info& Dispatch_response_msg::base_info() const {
  1063. const ::message::Base_info* p = base_info_;
  1064. // @@protoc_insertion_point(field_get:message.Dispatch_response_msg.base_info)
  1065. return p != NULL ? *p : *reinterpret_cast<const ::message::Base_info*>(
  1066. &::message::_Base_info_default_instance_);
  1067. }
  1068. inline ::message::Base_info* Dispatch_response_msg::release_base_info() {
  1069. // @@protoc_insertion_point(field_release:message.Dispatch_response_msg.base_info)
  1070. clear_has_base_info();
  1071. ::message::Base_info* temp = base_info_;
  1072. base_info_ = NULL;
  1073. return temp;
  1074. }
  1075. inline ::message::Base_info* Dispatch_response_msg::mutable_base_info() {
  1076. set_has_base_info();
  1077. if (base_info_ == NULL) {
  1078. base_info_ = new ::message::Base_info;
  1079. }
  1080. // @@protoc_insertion_point(field_mutable:message.Dispatch_response_msg.base_info)
  1081. return base_info_;
  1082. }
  1083. inline void Dispatch_response_msg::set_allocated_base_info(::message::Base_info* base_info) {
  1084. ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
  1085. if (message_arena == NULL) {
  1086. delete reinterpret_cast< ::google::protobuf::MessageLite*>(base_info_);
  1087. }
  1088. if (base_info) {
  1089. ::google::protobuf::Arena* submessage_arena = NULL;
  1090. if (message_arena != submessage_arena) {
  1091. base_info = ::google::protobuf::internal::GetOwnedMessage(
  1092. message_arena, base_info, submessage_arena);
  1093. }
  1094. set_has_base_info();
  1095. } else {
  1096. clear_has_base_info();
  1097. }
  1098. base_info_ = base_info;
  1099. // @@protoc_insertion_point(field_set_allocated:message.Dispatch_response_msg.base_info)
  1100. }
  1101. // required .message.Command_info command_info = 2;
  1102. inline bool Dispatch_response_msg::has_command_info() const {
  1103. return (_has_bits_[0] & 0x00000002u) != 0;
  1104. }
  1105. inline void Dispatch_response_msg::set_has_command_info() {
  1106. _has_bits_[0] |= 0x00000002u;
  1107. }
  1108. inline void Dispatch_response_msg::clear_has_command_info() {
  1109. _has_bits_[0] &= ~0x00000002u;
  1110. }
  1111. inline const ::message::Command_info& Dispatch_response_msg::command_info() const {
  1112. const ::message::Command_info* p = command_info_;
  1113. // @@protoc_insertion_point(field_get:message.Dispatch_response_msg.command_info)
  1114. return p != NULL ? *p : *reinterpret_cast<const ::message::Command_info*>(
  1115. &::message::_Command_info_default_instance_);
  1116. }
  1117. inline ::message::Command_info* Dispatch_response_msg::release_command_info() {
  1118. // @@protoc_insertion_point(field_release:message.Dispatch_response_msg.command_info)
  1119. clear_has_command_info();
  1120. ::message::Command_info* temp = command_info_;
  1121. command_info_ = NULL;
  1122. return temp;
  1123. }
  1124. inline ::message::Command_info* Dispatch_response_msg::mutable_command_info() {
  1125. set_has_command_info();
  1126. if (command_info_ == NULL) {
  1127. command_info_ = new ::message::Command_info;
  1128. }
  1129. // @@protoc_insertion_point(field_mutable:message.Dispatch_response_msg.command_info)
  1130. return command_info_;
  1131. }
  1132. inline void Dispatch_response_msg::set_allocated_command_info(::message::Command_info* command_info) {
  1133. ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
  1134. if (message_arena == NULL) {
  1135. delete reinterpret_cast< ::google::protobuf::MessageLite*>(command_info_);
  1136. }
  1137. if (command_info) {
  1138. ::google::protobuf::Arena* submessage_arena = NULL;
  1139. if (message_arena != submessage_arena) {
  1140. command_info = ::google::protobuf::internal::GetOwnedMessage(
  1141. message_arena, command_info, submessage_arena);
  1142. }
  1143. set_has_command_info();
  1144. } else {
  1145. clear_has_command_info();
  1146. }
  1147. command_info_ = command_info;
  1148. // @@protoc_insertion_point(field_set_allocated:message.Dispatch_response_msg.command_info)
  1149. }
  1150. // required .message.Error_manager error_manager = 3;
  1151. inline bool Dispatch_response_msg::has_error_manager() const {
  1152. return (_has_bits_[0] & 0x00000004u) != 0;
  1153. }
  1154. inline void Dispatch_response_msg::set_has_error_manager() {
  1155. _has_bits_[0] |= 0x00000004u;
  1156. }
  1157. inline void Dispatch_response_msg::clear_has_error_manager() {
  1158. _has_bits_[0] &= ~0x00000004u;
  1159. }
  1160. inline const ::message::Error_manager& Dispatch_response_msg::error_manager() const {
  1161. const ::message::Error_manager* p = error_manager_;
  1162. // @@protoc_insertion_point(field_get:message.Dispatch_response_msg.error_manager)
  1163. return p != NULL ? *p : *reinterpret_cast<const ::message::Error_manager*>(
  1164. &::message::_Error_manager_default_instance_);
  1165. }
  1166. inline ::message::Error_manager* Dispatch_response_msg::release_error_manager() {
  1167. // @@protoc_insertion_point(field_release:message.Dispatch_response_msg.error_manager)
  1168. clear_has_error_manager();
  1169. ::message::Error_manager* temp = error_manager_;
  1170. error_manager_ = NULL;
  1171. return temp;
  1172. }
  1173. inline ::message::Error_manager* Dispatch_response_msg::mutable_error_manager() {
  1174. set_has_error_manager();
  1175. if (error_manager_ == NULL) {
  1176. error_manager_ = new ::message::Error_manager;
  1177. }
  1178. // @@protoc_insertion_point(field_mutable:message.Dispatch_response_msg.error_manager)
  1179. return error_manager_;
  1180. }
  1181. inline void Dispatch_response_msg::set_allocated_error_manager(::message::Error_manager* error_manager) {
  1182. ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
  1183. if (message_arena == NULL) {
  1184. delete reinterpret_cast< ::google::protobuf::MessageLite*>(error_manager_);
  1185. }
  1186. if (error_manager) {
  1187. ::google::protobuf::Arena* submessage_arena = NULL;
  1188. if (message_arena != submessage_arena) {
  1189. error_manager = ::google::protobuf::internal::GetOwnedMessage(
  1190. message_arena, error_manager, submessage_arena);
  1191. }
  1192. set_has_error_manager();
  1193. } else {
  1194. clear_has_error_manager();
  1195. }
  1196. error_manager_ = error_manager;
  1197. // @@protoc_insertion_point(field_set_allocated:message.Dispatch_response_msg.error_manager)
  1198. }
  1199. #ifdef __GNUC__
  1200. #pragma GCC diagnostic pop
  1201. #endif // __GNUC__
  1202. // -------------------------------------------------------------------
  1203. // -------------------------------------------------------------------
  1204. // -------------------------------------------------------------------
  1205. // @@protoc_insertion_point(namespace_scope)
  1206. } // namespace message
  1207. namespace google {
  1208. namespace protobuf {
  1209. template <> struct is_proto_enum< ::message::Dispatch_manager_status> : ::google::protobuf::internal::true_type {};
  1210. template <>
  1211. inline const EnumDescriptor* GetEnumDescriptor< ::message::Dispatch_manager_status>() {
  1212. return ::message::Dispatch_manager_status_descriptor();
  1213. }
  1214. template <> struct is_proto_enum< ::message::Carrier_status> : ::google::protobuf::internal::true_type {};
  1215. template <>
  1216. inline const EnumDescriptor* GetEnumDescriptor< ::message::Carrier_status>() {
  1217. return ::message::Carrier_status_descriptor();
  1218. }
  1219. template <> struct is_proto_enum< ::message::Dispatch_motion_direction> : ::google::protobuf::internal::true_type {};
  1220. template <>
  1221. inline const EnumDescriptor* GetEnumDescriptor< ::message::Dispatch_motion_direction>() {
  1222. return ::message::Dispatch_motion_direction_descriptor();
  1223. }
  1224. } // namespace protobuf
  1225. } // namespace google
  1226. // @@protoc_insertion_point(global_scope)
  1227. #endif // PROTOBUF_dispatch_5fmessage_2eproto__INCLUDED