dispatch_message.pb.cc 68 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902
  1. // Generated by the protocol buffer compiler. DO NOT EDIT!
  2. // source: dispatch_message.proto
  3. #include "dispatch_message.pb.h"
  4. #include <algorithm>
  5. #include <google/protobuf/stubs/common.h>
  6. #include <google/protobuf/stubs/port.h>
  7. #include <google/protobuf/stubs/once.h>
  8. #include <google/protobuf/io/coded_stream.h>
  9. #include <google/protobuf/wire_format_lite_inl.h>
  10. #include <google/protobuf/descriptor.h>
  11. #include <google/protobuf/generated_message_reflection.h>
  12. #include <google/protobuf/reflection_ops.h>
  13. #include <google/protobuf/wire_format.h>
  14. // This is a temporary google only hack
  15. #ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
  16. #include "third_party/protobuf/version.h"
  17. #endif
  18. // @@protoc_insertion_point(includes)
  19. namespace message {
  20. class Carrier_positionDefaultTypeInternal {
  21. public:
  22. ::google::protobuf::internal::ExplicitlyConstructed<Carrier_position>
  23. _instance;
  24. } _Carrier_position_default_instance_;
  25. class Dispatch_status_msgDefaultTypeInternal {
  26. public:
  27. ::google::protobuf::internal::ExplicitlyConstructed<Dispatch_status_msg>
  28. _instance;
  29. } _Dispatch_status_msg_default_instance_;
  30. class Dispatch_request_msgDefaultTypeInternal {
  31. public:
  32. ::google::protobuf::internal::ExplicitlyConstructed<Dispatch_request_msg>
  33. _instance;
  34. } _Dispatch_request_msg_default_instance_;
  35. class Dispatch_response_msgDefaultTypeInternal {
  36. public:
  37. ::google::protobuf::internal::ExplicitlyConstructed<Dispatch_response_msg>
  38. _instance;
  39. } _Dispatch_response_msg_default_instance_;
  40. } // namespace message
  41. namespace protobuf_dispatch_5fmessage_2eproto {
  42. void InitDefaultsCarrier_positionImpl() {
  43. GOOGLE_PROTOBUF_VERIFY_VERSION;
  44. #ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
  45. ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
  46. #else
  47. ::google::protobuf::internal::InitProtobufDefaults();
  48. #endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
  49. {
  50. void* ptr = &::message::_Carrier_position_default_instance_;
  51. new (ptr) ::message::Carrier_position();
  52. ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
  53. }
  54. ::message::Carrier_position::InitAsDefaultInstance();
  55. }
  56. void InitDefaultsCarrier_position() {
  57. static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
  58. ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsCarrier_positionImpl);
  59. }
  60. void InitDefaultsDispatch_status_msgImpl() {
  61. GOOGLE_PROTOBUF_VERIFY_VERSION;
  62. #ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
  63. ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
  64. #else
  65. ::google::protobuf::internal::InitProtobufDefaults();
  66. #endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
  67. protobuf_message_5fbase_2eproto::InitDefaultsBase_info();
  68. {
  69. void* ptr = &::message::_Dispatch_status_msg_default_instance_;
  70. new (ptr) ::message::Dispatch_status_msg();
  71. ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
  72. }
  73. ::message::Dispatch_status_msg::InitAsDefaultInstance();
  74. }
  75. void InitDefaultsDispatch_status_msg() {
  76. static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
  77. ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsDispatch_status_msgImpl);
  78. }
  79. void InitDefaultsDispatch_request_msgImpl() {
  80. GOOGLE_PROTOBUF_VERIFY_VERSION;
  81. #ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
  82. ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
  83. #else
  84. ::google::protobuf::internal::InitProtobufDefaults();
  85. #endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
  86. protobuf_message_5fbase_2eproto::InitDefaultsBase_info();
  87. protobuf_message_5fbase_2eproto::InitDefaultsLocate_information();
  88. {
  89. void* ptr = &::message::_Dispatch_request_msg_default_instance_;
  90. new (ptr) ::message::Dispatch_request_msg();
  91. ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
  92. }
  93. ::message::Dispatch_request_msg::InitAsDefaultInstance();
  94. }
  95. void InitDefaultsDispatch_request_msg() {
  96. static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
  97. ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsDispatch_request_msgImpl);
  98. }
  99. void InitDefaultsDispatch_response_msgImpl() {
  100. GOOGLE_PROTOBUF_VERIFY_VERSION;
  101. #ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
  102. ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
  103. #else
  104. ::google::protobuf::internal::InitProtobufDefaults();
  105. #endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
  106. protobuf_message_5fbase_2eproto::InitDefaultsBase_info();
  107. protobuf_message_5fbase_2eproto::InitDefaultsError_manager();
  108. {
  109. void* ptr = &::message::_Dispatch_response_msg_default_instance_;
  110. new (ptr) ::message::Dispatch_response_msg();
  111. ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
  112. }
  113. ::message::Dispatch_response_msg::InitAsDefaultInstance();
  114. }
  115. void InitDefaultsDispatch_response_msg() {
  116. static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
  117. ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsDispatch_response_msgImpl);
  118. }
  119. ::google::protobuf::Metadata file_level_metadata[4];
  120. const ::google::protobuf::EnumDescriptor* file_level_enum_descriptors[3];
  121. const ::google::protobuf::uint32 TableStruct::offsets[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
  122. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Carrier_position, _has_bits_),
  123. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Carrier_position, _internal_metadata_),
  124. ~0u, // no _extensions_
  125. ~0u, // no _oneof_case_
  126. ~0u, // no _weak_field_map_
  127. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Carrier_position, x_),
  128. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Carrier_position, y_),
  129. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Carrier_position, z_),
  130. 0,
  131. 1,
  132. 2,
  133. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Dispatch_status_msg, _has_bits_),
  134. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Dispatch_status_msg, _internal_metadata_),
  135. ~0u, // no _extensions_
  136. ~0u, // no _oneof_case_
  137. ~0u, // no _weak_field_map_
  138. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Dispatch_status_msg, base_info_),
  139. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Dispatch_status_msg, dispatch_manager_status_),
  140. 0,
  141. 1,
  142. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Dispatch_request_msg, _has_bits_),
  143. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Dispatch_request_msg, _internal_metadata_),
  144. ~0u, // no _extensions_
  145. ~0u, // no _oneof_case_
  146. ~0u, // no _weak_field_map_
  147. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Dispatch_request_msg, base_info_),
  148. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Dispatch_request_msg, command_id_),
  149. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Dispatch_request_msg, dispatch_motion_direction_),
  150. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Dispatch_request_msg, terminal_id_),
  151. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Dispatch_request_msg, parkspace_id_),
  152. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Dispatch_request_msg, locate_information_),
  153. 0,
  154. 2,
  155. 3,
  156. 4,
  157. 5,
  158. 1,
  159. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Dispatch_response_msg, _has_bits_),
  160. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Dispatch_response_msg, _internal_metadata_),
  161. ~0u, // no _extensions_
  162. ~0u, // no _oneof_case_
  163. ~0u, // no _weak_field_map_
  164. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Dispatch_response_msg, base_info_),
  165. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Dispatch_response_msg, command_id_),
  166. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Dispatch_response_msg, error_manager_),
  167. 0,
  168. 2,
  169. 1,
  170. };
  171. static const ::google::protobuf::internal::MigrationSchema schemas[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
  172. { 0, 8, sizeof(::message::Carrier_position)},
  173. { 11, 18, sizeof(::message::Dispatch_status_msg)},
  174. { 20, 31, sizeof(::message::Dispatch_request_msg)},
  175. { 37, 45, sizeof(::message::Dispatch_response_msg)},
  176. };
  177. static ::google::protobuf::Message const * const file_default_instances[] = {
  178. reinterpret_cast<const ::google::protobuf::Message*>(&::message::_Carrier_position_default_instance_),
  179. reinterpret_cast<const ::google::protobuf::Message*>(&::message::_Dispatch_status_msg_default_instance_),
  180. reinterpret_cast<const ::google::protobuf::Message*>(&::message::_Dispatch_request_msg_default_instance_),
  181. reinterpret_cast<const ::google::protobuf::Message*>(&::message::_Dispatch_response_msg_default_instance_),
  182. };
  183. void protobuf_AssignDescriptors() {
  184. AddDescriptors();
  185. ::google::protobuf::MessageFactory* factory = NULL;
  186. AssignDescriptors(
  187. "dispatch_message.proto", schemas, file_default_instances, TableStruct::offsets, factory,
  188. file_level_metadata, file_level_enum_descriptors, NULL);
  189. }
  190. void protobuf_AssignDescriptorsOnce() {
  191. static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
  192. ::google::protobuf::GoogleOnceInit(&once, &protobuf_AssignDescriptors);
  193. }
  194. void protobuf_RegisterTypes(const ::std::string&) GOOGLE_PROTOBUF_ATTRIBUTE_COLD;
  195. void protobuf_RegisterTypes(const ::std::string&) {
  196. protobuf_AssignDescriptorsOnce();
  197. ::google::protobuf::internal::RegisterAllTypes(file_level_metadata, 4);
  198. }
  199. void AddDescriptorsImpl() {
  200. InitDefaults();
  201. static const char descriptor[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
  202. "\n\026dispatch_message.proto\022\007message\032\022messa"
  203. "ge_base.proto\"3\n\020Carrier_position\022\t\n\001x\030\001"
  204. " \002(\002\022\t\n\001y\030\002 \002(\002\022\t\n\001z\030\003 \002(\002\"\177\n\023Dispatch_s"
  205. "tatus_msg\022%\n\tbase_info\030\001 \002(\0132\022.message.B"
  206. "ase_info\022A\n\027dispatch_manager_status\030\002 \002("
  207. "\0162 .message.Dispatch_manager_status\"\374\001\n\024"
  208. "Dispatch_request_msg\022%\n\tbase_info\030\001 \002(\0132"
  209. "\022.message.Base_info\022\022\n\ncommand_id\030\002 \002(\005\022"
  210. "E\n\031dispatch_motion_direction\030\003 \002(\0162\".mes"
  211. "sage.Dispatch_motion_direction\022\023\n\013termin"
  212. "al_id\030\004 \002(\005\022\024\n\014parkspace_id\030\005 \002(\005\0227\n\022loc"
  213. "ate_information\030\006 \001(\0132\033.message.Locate_i"
  214. "nformation\"\201\001\n\025Dispatch_response_msg\022%\n\t"
  215. "base_info\030\001 \002(\0132\022.message.Base_info\022\022\n\nc"
  216. "ommand_id\030\002 \002(\005\022-\n\rerror_manager\030\003 \002(\0132\026"
  217. ".message.Error_manager*\261\001\n\027Dispatch_mana"
  218. "ger_status\022\035\n\031E_DISPATCH_MANAGER_UNKNOW\020"
  219. "\000\022\034\n\030E_DISPATCH_MANAGER_READY\020\001\022\034\n\030E_DIS"
  220. "PATCH_MANAGER_STORE\020\002\022\035\n\031E_DISPATCH_MANA"
  221. "GER_PICKUP\020\003\022\034\n\030E_DISPATCH_MANAGER_FAULT"
  222. "\020\n*{\n\016Carrier_status\022\024\n\020E_CARRIER_UNKNOW"
  223. "\020\000\022\023\n\017E_CARRIER_READY\020\001\022\023\n\017E_CARRIER_STO"
  224. "RE\020\002\022\024\n\020E_CARRIER_PICKUP\020\003\022\023\n\017E_CARRIER_"
  225. "FAULT\020\n*>\n\031Dispatch_motion_direction\022\017\n\013"
  226. "E_STORE_CAR\020\000\022\020\n\014E_PICKUP_CAR\020\001"
  227. };
  228. ::google::protobuf::DescriptorPool::InternalAddGeneratedFile(
  229. descriptor, 991);
  230. ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile(
  231. "dispatch_message.proto", &protobuf_RegisterTypes);
  232. ::protobuf_message_5fbase_2eproto::AddDescriptors();
  233. }
  234. void AddDescriptors() {
  235. static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
  236. ::google::protobuf::GoogleOnceInit(&once, &AddDescriptorsImpl);
  237. }
  238. // Force AddDescriptors() to be called at dynamic initialization time.
  239. struct StaticDescriptorInitializer {
  240. StaticDescriptorInitializer() {
  241. AddDescriptors();
  242. }
  243. } static_descriptor_initializer;
  244. } // namespace protobuf_dispatch_5fmessage_2eproto
  245. namespace message {
  246. const ::google::protobuf::EnumDescriptor* Dispatch_manager_status_descriptor() {
  247. protobuf_dispatch_5fmessage_2eproto::protobuf_AssignDescriptorsOnce();
  248. return protobuf_dispatch_5fmessage_2eproto::file_level_enum_descriptors[0];
  249. }
  250. bool Dispatch_manager_status_IsValid(int value) {
  251. switch (value) {
  252. case 0:
  253. case 1:
  254. case 2:
  255. case 3:
  256. case 10:
  257. return true;
  258. default:
  259. return false;
  260. }
  261. }
  262. const ::google::protobuf::EnumDescriptor* Carrier_status_descriptor() {
  263. protobuf_dispatch_5fmessage_2eproto::protobuf_AssignDescriptorsOnce();
  264. return protobuf_dispatch_5fmessage_2eproto::file_level_enum_descriptors[1];
  265. }
  266. bool Carrier_status_IsValid(int value) {
  267. switch (value) {
  268. case 0:
  269. case 1:
  270. case 2:
  271. case 3:
  272. case 10:
  273. return true;
  274. default:
  275. return false;
  276. }
  277. }
  278. const ::google::protobuf::EnumDescriptor* Dispatch_motion_direction_descriptor() {
  279. protobuf_dispatch_5fmessage_2eproto::protobuf_AssignDescriptorsOnce();
  280. return protobuf_dispatch_5fmessage_2eproto::file_level_enum_descriptors[2];
  281. }
  282. bool Dispatch_motion_direction_IsValid(int value) {
  283. switch (value) {
  284. case 0:
  285. case 1:
  286. return true;
  287. default:
  288. return false;
  289. }
  290. }
  291. // ===================================================================
  292. void Carrier_position::InitAsDefaultInstance() {
  293. }
  294. #if !defined(_MSC_VER) || _MSC_VER >= 1900
  295. const int Carrier_position::kXFieldNumber;
  296. const int Carrier_position::kYFieldNumber;
  297. const int Carrier_position::kZFieldNumber;
  298. #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
  299. Carrier_position::Carrier_position()
  300. : ::google::protobuf::Message(), _internal_metadata_(NULL) {
  301. if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
  302. ::protobuf_dispatch_5fmessage_2eproto::InitDefaultsCarrier_position();
  303. }
  304. SharedCtor();
  305. // @@protoc_insertion_point(constructor:message.Carrier_position)
  306. }
  307. Carrier_position::Carrier_position(const Carrier_position& from)
  308. : ::google::protobuf::Message(),
  309. _internal_metadata_(NULL),
  310. _has_bits_(from._has_bits_),
  311. _cached_size_(0) {
  312. _internal_metadata_.MergeFrom(from._internal_metadata_);
  313. ::memcpy(&x_, &from.x_,
  314. static_cast<size_t>(reinterpret_cast<char*>(&z_) -
  315. reinterpret_cast<char*>(&x_)) + sizeof(z_));
  316. // @@protoc_insertion_point(copy_constructor:message.Carrier_position)
  317. }
  318. void Carrier_position::SharedCtor() {
  319. _cached_size_ = 0;
  320. ::memset(&x_, 0, static_cast<size_t>(
  321. reinterpret_cast<char*>(&z_) -
  322. reinterpret_cast<char*>(&x_)) + sizeof(z_));
  323. }
  324. Carrier_position::~Carrier_position() {
  325. // @@protoc_insertion_point(destructor:message.Carrier_position)
  326. SharedDtor();
  327. }
  328. void Carrier_position::SharedDtor() {
  329. }
  330. void Carrier_position::SetCachedSize(int size) const {
  331. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  332. _cached_size_ = size;
  333. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  334. }
  335. const ::google::protobuf::Descriptor* Carrier_position::descriptor() {
  336. ::protobuf_dispatch_5fmessage_2eproto::protobuf_AssignDescriptorsOnce();
  337. return ::protobuf_dispatch_5fmessage_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
  338. }
  339. const Carrier_position& Carrier_position::default_instance() {
  340. ::protobuf_dispatch_5fmessage_2eproto::InitDefaultsCarrier_position();
  341. return *internal_default_instance();
  342. }
  343. Carrier_position* Carrier_position::New(::google::protobuf::Arena* arena) const {
  344. Carrier_position* n = new Carrier_position;
  345. if (arena != NULL) {
  346. arena->Own(n);
  347. }
  348. return n;
  349. }
  350. void Carrier_position::Clear() {
  351. // @@protoc_insertion_point(message_clear_start:message.Carrier_position)
  352. ::google::protobuf::uint32 cached_has_bits = 0;
  353. // Prevent compiler warnings about cached_has_bits being unused
  354. (void) cached_has_bits;
  355. cached_has_bits = _has_bits_[0];
  356. if (cached_has_bits & 7u) {
  357. ::memset(&x_, 0, static_cast<size_t>(
  358. reinterpret_cast<char*>(&z_) -
  359. reinterpret_cast<char*>(&x_)) + sizeof(z_));
  360. }
  361. _has_bits_.Clear();
  362. _internal_metadata_.Clear();
  363. }
  364. bool Carrier_position::MergePartialFromCodedStream(
  365. ::google::protobuf::io::CodedInputStream* input) {
  366. #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
  367. ::google::protobuf::uint32 tag;
  368. // @@protoc_insertion_point(parse_start:message.Carrier_position)
  369. for (;;) {
  370. ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
  371. tag = p.first;
  372. if (!p.second) goto handle_unusual;
  373. switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
  374. // required float x = 1;
  375. case 1: {
  376. if (static_cast< ::google::protobuf::uint8>(tag) ==
  377. static_cast< ::google::protobuf::uint8>(13u /* 13 & 0xFF */)) {
  378. set_has_x();
  379. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  380. float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
  381. input, &x_)));
  382. } else {
  383. goto handle_unusual;
  384. }
  385. break;
  386. }
  387. // required float y = 2;
  388. case 2: {
  389. if (static_cast< ::google::protobuf::uint8>(tag) ==
  390. static_cast< ::google::protobuf::uint8>(21u /* 21 & 0xFF */)) {
  391. set_has_y();
  392. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  393. float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
  394. input, &y_)));
  395. } else {
  396. goto handle_unusual;
  397. }
  398. break;
  399. }
  400. // required float z = 3;
  401. case 3: {
  402. if (static_cast< ::google::protobuf::uint8>(tag) ==
  403. static_cast< ::google::protobuf::uint8>(29u /* 29 & 0xFF */)) {
  404. set_has_z();
  405. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  406. float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
  407. input, &z_)));
  408. } else {
  409. goto handle_unusual;
  410. }
  411. break;
  412. }
  413. default: {
  414. handle_unusual:
  415. if (tag == 0) {
  416. goto success;
  417. }
  418. DO_(::google::protobuf::internal::WireFormat::SkipField(
  419. input, tag, _internal_metadata_.mutable_unknown_fields()));
  420. break;
  421. }
  422. }
  423. }
  424. success:
  425. // @@protoc_insertion_point(parse_success:message.Carrier_position)
  426. return true;
  427. failure:
  428. // @@protoc_insertion_point(parse_failure:message.Carrier_position)
  429. return false;
  430. #undef DO_
  431. }
  432. void Carrier_position::SerializeWithCachedSizes(
  433. ::google::protobuf::io::CodedOutputStream* output) const {
  434. // @@protoc_insertion_point(serialize_start:message.Carrier_position)
  435. ::google::protobuf::uint32 cached_has_bits = 0;
  436. (void) cached_has_bits;
  437. cached_has_bits = _has_bits_[0];
  438. // required float x = 1;
  439. if (cached_has_bits & 0x00000001u) {
  440. ::google::protobuf::internal::WireFormatLite::WriteFloat(1, this->x(), output);
  441. }
  442. // required float y = 2;
  443. if (cached_has_bits & 0x00000002u) {
  444. ::google::protobuf::internal::WireFormatLite::WriteFloat(2, this->y(), output);
  445. }
  446. // required float z = 3;
  447. if (cached_has_bits & 0x00000004u) {
  448. ::google::protobuf::internal::WireFormatLite::WriteFloat(3, this->z(), output);
  449. }
  450. if (_internal_metadata_.have_unknown_fields()) {
  451. ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
  452. _internal_metadata_.unknown_fields(), output);
  453. }
  454. // @@protoc_insertion_point(serialize_end:message.Carrier_position)
  455. }
  456. ::google::protobuf::uint8* Carrier_position::InternalSerializeWithCachedSizesToArray(
  457. bool deterministic, ::google::protobuf::uint8* target) const {
  458. (void)deterministic; // Unused
  459. // @@protoc_insertion_point(serialize_to_array_start:message.Carrier_position)
  460. ::google::protobuf::uint32 cached_has_bits = 0;
  461. (void) cached_has_bits;
  462. cached_has_bits = _has_bits_[0];
  463. // required float x = 1;
  464. if (cached_has_bits & 0x00000001u) {
  465. target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(1, this->x(), target);
  466. }
  467. // required float y = 2;
  468. if (cached_has_bits & 0x00000002u) {
  469. target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(2, this->y(), target);
  470. }
  471. // required float z = 3;
  472. if (cached_has_bits & 0x00000004u) {
  473. target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(3, this->z(), target);
  474. }
  475. if (_internal_metadata_.have_unknown_fields()) {
  476. target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
  477. _internal_metadata_.unknown_fields(), target);
  478. }
  479. // @@protoc_insertion_point(serialize_to_array_end:message.Carrier_position)
  480. return target;
  481. }
  482. size_t Carrier_position::RequiredFieldsByteSizeFallback() const {
  483. // @@protoc_insertion_point(required_fields_byte_size_fallback_start:message.Carrier_position)
  484. size_t total_size = 0;
  485. if (has_x()) {
  486. // required float x = 1;
  487. total_size += 1 + 4;
  488. }
  489. if (has_y()) {
  490. // required float y = 2;
  491. total_size += 1 + 4;
  492. }
  493. if (has_z()) {
  494. // required float z = 3;
  495. total_size += 1 + 4;
  496. }
  497. return total_size;
  498. }
  499. size_t Carrier_position::ByteSizeLong() const {
  500. // @@protoc_insertion_point(message_byte_size_start:message.Carrier_position)
  501. size_t total_size = 0;
  502. if (_internal_metadata_.have_unknown_fields()) {
  503. total_size +=
  504. ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
  505. _internal_metadata_.unknown_fields());
  506. }
  507. if (((_has_bits_[0] & 0x00000007) ^ 0x00000007) == 0) { // All required fields are present.
  508. // required float x = 1;
  509. total_size += 1 + 4;
  510. // required float y = 2;
  511. total_size += 1 + 4;
  512. // required float z = 3;
  513. total_size += 1 + 4;
  514. } else {
  515. total_size += RequiredFieldsByteSizeFallback();
  516. }
  517. int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
  518. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  519. _cached_size_ = cached_size;
  520. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  521. return total_size;
  522. }
  523. void Carrier_position::MergeFrom(const ::google::protobuf::Message& from) {
  524. // @@protoc_insertion_point(generalized_merge_from_start:message.Carrier_position)
  525. GOOGLE_DCHECK_NE(&from, this);
  526. const Carrier_position* source =
  527. ::google::protobuf::internal::DynamicCastToGenerated<const Carrier_position>(
  528. &from);
  529. if (source == NULL) {
  530. // @@protoc_insertion_point(generalized_merge_from_cast_fail:message.Carrier_position)
  531. ::google::protobuf::internal::ReflectionOps::Merge(from, this);
  532. } else {
  533. // @@protoc_insertion_point(generalized_merge_from_cast_success:message.Carrier_position)
  534. MergeFrom(*source);
  535. }
  536. }
  537. void Carrier_position::MergeFrom(const Carrier_position& from) {
  538. // @@protoc_insertion_point(class_specific_merge_from_start:message.Carrier_position)
  539. GOOGLE_DCHECK_NE(&from, this);
  540. _internal_metadata_.MergeFrom(from._internal_metadata_);
  541. ::google::protobuf::uint32 cached_has_bits = 0;
  542. (void) cached_has_bits;
  543. cached_has_bits = from._has_bits_[0];
  544. if (cached_has_bits & 7u) {
  545. if (cached_has_bits & 0x00000001u) {
  546. x_ = from.x_;
  547. }
  548. if (cached_has_bits & 0x00000002u) {
  549. y_ = from.y_;
  550. }
  551. if (cached_has_bits & 0x00000004u) {
  552. z_ = from.z_;
  553. }
  554. _has_bits_[0] |= cached_has_bits;
  555. }
  556. }
  557. void Carrier_position::CopyFrom(const ::google::protobuf::Message& from) {
  558. // @@protoc_insertion_point(generalized_copy_from_start:message.Carrier_position)
  559. if (&from == this) return;
  560. Clear();
  561. MergeFrom(from);
  562. }
  563. void Carrier_position::CopyFrom(const Carrier_position& from) {
  564. // @@protoc_insertion_point(class_specific_copy_from_start:message.Carrier_position)
  565. if (&from == this) return;
  566. Clear();
  567. MergeFrom(from);
  568. }
  569. bool Carrier_position::IsInitialized() const {
  570. if ((_has_bits_[0] & 0x00000007) != 0x00000007) return false;
  571. return true;
  572. }
  573. void Carrier_position::Swap(Carrier_position* other) {
  574. if (other == this) return;
  575. InternalSwap(other);
  576. }
  577. void Carrier_position::InternalSwap(Carrier_position* other) {
  578. using std::swap;
  579. swap(x_, other->x_);
  580. swap(y_, other->y_);
  581. swap(z_, other->z_);
  582. swap(_has_bits_[0], other->_has_bits_[0]);
  583. _internal_metadata_.Swap(&other->_internal_metadata_);
  584. swap(_cached_size_, other->_cached_size_);
  585. }
  586. ::google::protobuf::Metadata Carrier_position::GetMetadata() const {
  587. protobuf_dispatch_5fmessage_2eproto::protobuf_AssignDescriptorsOnce();
  588. return ::protobuf_dispatch_5fmessage_2eproto::file_level_metadata[kIndexInFileMessages];
  589. }
  590. // ===================================================================
  591. void Dispatch_status_msg::InitAsDefaultInstance() {
  592. ::message::_Dispatch_status_msg_default_instance_._instance.get_mutable()->base_info_ = const_cast< ::message::Base_info*>(
  593. ::message::Base_info::internal_default_instance());
  594. }
  595. void Dispatch_status_msg::clear_base_info() {
  596. if (base_info_ != NULL) base_info_->Clear();
  597. clear_has_base_info();
  598. }
  599. #if !defined(_MSC_VER) || _MSC_VER >= 1900
  600. const int Dispatch_status_msg::kBaseInfoFieldNumber;
  601. const int Dispatch_status_msg::kDispatchManagerStatusFieldNumber;
  602. #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
  603. Dispatch_status_msg::Dispatch_status_msg()
  604. : ::google::protobuf::Message(), _internal_metadata_(NULL) {
  605. if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
  606. ::protobuf_dispatch_5fmessage_2eproto::InitDefaultsDispatch_status_msg();
  607. }
  608. SharedCtor();
  609. // @@protoc_insertion_point(constructor:message.Dispatch_status_msg)
  610. }
  611. Dispatch_status_msg::Dispatch_status_msg(const Dispatch_status_msg& from)
  612. : ::google::protobuf::Message(),
  613. _internal_metadata_(NULL),
  614. _has_bits_(from._has_bits_),
  615. _cached_size_(0) {
  616. _internal_metadata_.MergeFrom(from._internal_metadata_);
  617. if (from.has_base_info()) {
  618. base_info_ = new ::message::Base_info(*from.base_info_);
  619. } else {
  620. base_info_ = NULL;
  621. }
  622. dispatch_manager_status_ = from.dispatch_manager_status_;
  623. // @@protoc_insertion_point(copy_constructor:message.Dispatch_status_msg)
  624. }
  625. void Dispatch_status_msg::SharedCtor() {
  626. _cached_size_ = 0;
  627. ::memset(&base_info_, 0, static_cast<size_t>(
  628. reinterpret_cast<char*>(&dispatch_manager_status_) -
  629. reinterpret_cast<char*>(&base_info_)) + sizeof(dispatch_manager_status_));
  630. }
  631. Dispatch_status_msg::~Dispatch_status_msg() {
  632. // @@protoc_insertion_point(destructor:message.Dispatch_status_msg)
  633. SharedDtor();
  634. }
  635. void Dispatch_status_msg::SharedDtor() {
  636. if (this != internal_default_instance()) delete base_info_;
  637. }
  638. void Dispatch_status_msg::SetCachedSize(int size) const {
  639. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  640. _cached_size_ = size;
  641. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  642. }
  643. const ::google::protobuf::Descriptor* Dispatch_status_msg::descriptor() {
  644. ::protobuf_dispatch_5fmessage_2eproto::protobuf_AssignDescriptorsOnce();
  645. return ::protobuf_dispatch_5fmessage_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
  646. }
  647. const Dispatch_status_msg& Dispatch_status_msg::default_instance() {
  648. ::protobuf_dispatch_5fmessage_2eproto::InitDefaultsDispatch_status_msg();
  649. return *internal_default_instance();
  650. }
  651. Dispatch_status_msg* Dispatch_status_msg::New(::google::protobuf::Arena* arena) const {
  652. Dispatch_status_msg* n = new Dispatch_status_msg;
  653. if (arena != NULL) {
  654. arena->Own(n);
  655. }
  656. return n;
  657. }
  658. void Dispatch_status_msg::Clear() {
  659. // @@protoc_insertion_point(message_clear_start:message.Dispatch_status_msg)
  660. ::google::protobuf::uint32 cached_has_bits = 0;
  661. // Prevent compiler warnings about cached_has_bits being unused
  662. (void) cached_has_bits;
  663. cached_has_bits = _has_bits_[0];
  664. if (cached_has_bits & 0x00000001u) {
  665. GOOGLE_DCHECK(base_info_ != NULL);
  666. base_info_->Clear();
  667. }
  668. dispatch_manager_status_ = 0;
  669. _has_bits_.Clear();
  670. _internal_metadata_.Clear();
  671. }
  672. bool Dispatch_status_msg::MergePartialFromCodedStream(
  673. ::google::protobuf::io::CodedInputStream* input) {
  674. #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
  675. ::google::protobuf::uint32 tag;
  676. // @@protoc_insertion_point(parse_start:message.Dispatch_status_msg)
  677. for (;;) {
  678. ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
  679. tag = p.first;
  680. if (!p.second) goto handle_unusual;
  681. switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
  682. // required .message.Base_info base_info = 1;
  683. case 1: {
  684. if (static_cast< ::google::protobuf::uint8>(tag) ==
  685. static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
  686. DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
  687. input, mutable_base_info()));
  688. } else {
  689. goto handle_unusual;
  690. }
  691. break;
  692. }
  693. // required .message.Dispatch_manager_status dispatch_manager_status = 2;
  694. case 2: {
  695. if (static_cast< ::google::protobuf::uint8>(tag) ==
  696. static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) {
  697. int value;
  698. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  699. int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
  700. input, &value)));
  701. if (::message::Dispatch_manager_status_IsValid(value)) {
  702. set_dispatch_manager_status(static_cast< ::message::Dispatch_manager_status >(value));
  703. } else {
  704. mutable_unknown_fields()->AddVarint(
  705. 2, static_cast< ::google::protobuf::uint64>(value));
  706. }
  707. } else {
  708. goto handle_unusual;
  709. }
  710. break;
  711. }
  712. default: {
  713. handle_unusual:
  714. if (tag == 0) {
  715. goto success;
  716. }
  717. DO_(::google::protobuf::internal::WireFormat::SkipField(
  718. input, tag, _internal_metadata_.mutable_unknown_fields()));
  719. break;
  720. }
  721. }
  722. }
  723. success:
  724. // @@protoc_insertion_point(parse_success:message.Dispatch_status_msg)
  725. return true;
  726. failure:
  727. // @@protoc_insertion_point(parse_failure:message.Dispatch_status_msg)
  728. return false;
  729. #undef DO_
  730. }
  731. void Dispatch_status_msg::SerializeWithCachedSizes(
  732. ::google::protobuf::io::CodedOutputStream* output) const {
  733. // @@protoc_insertion_point(serialize_start:message.Dispatch_status_msg)
  734. ::google::protobuf::uint32 cached_has_bits = 0;
  735. (void) cached_has_bits;
  736. cached_has_bits = _has_bits_[0];
  737. // required .message.Base_info base_info = 1;
  738. if (cached_has_bits & 0x00000001u) {
  739. ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
  740. 1, *this->base_info_, output);
  741. }
  742. // required .message.Dispatch_manager_status dispatch_manager_status = 2;
  743. if (cached_has_bits & 0x00000002u) {
  744. ::google::protobuf::internal::WireFormatLite::WriteEnum(
  745. 2, this->dispatch_manager_status(), output);
  746. }
  747. if (_internal_metadata_.have_unknown_fields()) {
  748. ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
  749. _internal_metadata_.unknown_fields(), output);
  750. }
  751. // @@protoc_insertion_point(serialize_end:message.Dispatch_status_msg)
  752. }
  753. ::google::protobuf::uint8* Dispatch_status_msg::InternalSerializeWithCachedSizesToArray(
  754. bool deterministic, ::google::protobuf::uint8* target) const {
  755. (void)deterministic; // Unused
  756. // @@protoc_insertion_point(serialize_to_array_start:message.Dispatch_status_msg)
  757. ::google::protobuf::uint32 cached_has_bits = 0;
  758. (void) cached_has_bits;
  759. cached_has_bits = _has_bits_[0];
  760. // required .message.Base_info base_info = 1;
  761. if (cached_has_bits & 0x00000001u) {
  762. target = ::google::protobuf::internal::WireFormatLite::
  763. InternalWriteMessageToArray(
  764. 1, *this->base_info_, deterministic, target);
  765. }
  766. // required .message.Dispatch_manager_status dispatch_manager_status = 2;
  767. if (cached_has_bits & 0x00000002u) {
  768. target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
  769. 2, this->dispatch_manager_status(), target);
  770. }
  771. if (_internal_metadata_.have_unknown_fields()) {
  772. target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
  773. _internal_metadata_.unknown_fields(), target);
  774. }
  775. // @@protoc_insertion_point(serialize_to_array_end:message.Dispatch_status_msg)
  776. return target;
  777. }
  778. size_t Dispatch_status_msg::RequiredFieldsByteSizeFallback() const {
  779. // @@protoc_insertion_point(required_fields_byte_size_fallback_start:message.Dispatch_status_msg)
  780. size_t total_size = 0;
  781. if (has_base_info()) {
  782. // required .message.Base_info base_info = 1;
  783. total_size += 1 +
  784. ::google::protobuf::internal::WireFormatLite::MessageSize(
  785. *this->base_info_);
  786. }
  787. if (has_dispatch_manager_status()) {
  788. // required .message.Dispatch_manager_status dispatch_manager_status = 2;
  789. total_size += 1 +
  790. ::google::protobuf::internal::WireFormatLite::EnumSize(this->dispatch_manager_status());
  791. }
  792. return total_size;
  793. }
  794. size_t Dispatch_status_msg::ByteSizeLong() const {
  795. // @@protoc_insertion_point(message_byte_size_start:message.Dispatch_status_msg)
  796. size_t total_size = 0;
  797. if (_internal_metadata_.have_unknown_fields()) {
  798. total_size +=
  799. ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
  800. _internal_metadata_.unknown_fields());
  801. }
  802. if (((_has_bits_[0] & 0x00000003) ^ 0x00000003) == 0) { // All required fields are present.
  803. // required .message.Base_info base_info = 1;
  804. total_size += 1 +
  805. ::google::protobuf::internal::WireFormatLite::MessageSize(
  806. *this->base_info_);
  807. // required .message.Dispatch_manager_status dispatch_manager_status = 2;
  808. total_size += 1 +
  809. ::google::protobuf::internal::WireFormatLite::EnumSize(this->dispatch_manager_status());
  810. } else {
  811. total_size += RequiredFieldsByteSizeFallback();
  812. }
  813. int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
  814. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  815. _cached_size_ = cached_size;
  816. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  817. return total_size;
  818. }
  819. void Dispatch_status_msg::MergeFrom(const ::google::protobuf::Message& from) {
  820. // @@protoc_insertion_point(generalized_merge_from_start:message.Dispatch_status_msg)
  821. GOOGLE_DCHECK_NE(&from, this);
  822. const Dispatch_status_msg* source =
  823. ::google::protobuf::internal::DynamicCastToGenerated<const Dispatch_status_msg>(
  824. &from);
  825. if (source == NULL) {
  826. // @@protoc_insertion_point(generalized_merge_from_cast_fail:message.Dispatch_status_msg)
  827. ::google::protobuf::internal::ReflectionOps::Merge(from, this);
  828. } else {
  829. // @@protoc_insertion_point(generalized_merge_from_cast_success:message.Dispatch_status_msg)
  830. MergeFrom(*source);
  831. }
  832. }
  833. void Dispatch_status_msg::MergeFrom(const Dispatch_status_msg& from) {
  834. // @@protoc_insertion_point(class_specific_merge_from_start:message.Dispatch_status_msg)
  835. GOOGLE_DCHECK_NE(&from, this);
  836. _internal_metadata_.MergeFrom(from._internal_metadata_);
  837. ::google::protobuf::uint32 cached_has_bits = 0;
  838. (void) cached_has_bits;
  839. cached_has_bits = from._has_bits_[0];
  840. if (cached_has_bits & 3u) {
  841. if (cached_has_bits & 0x00000001u) {
  842. mutable_base_info()->::message::Base_info::MergeFrom(from.base_info());
  843. }
  844. if (cached_has_bits & 0x00000002u) {
  845. dispatch_manager_status_ = from.dispatch_manager_status_;
  846. }
  847. _has_bits_[0] |= cached_has_bits;
  848. }
  849. }
  850. void Dispatch_status_msg::CopyFrom(const ::google::protobuf::Message& from) {
  851. // @@protoc_insertion_point(generalized_copy_from_start:message.Dispatch_status_msg)
  852. if (&from == this) return;
  853. Clear();
  854. MergeFrom(from);
  855. }
  856. void Dispatch_status_msg::CopyFrom(const Dispatch_status_msg& from) {
  857. // @@protoc_insertion_point(class_specific_copy_from_start:message.Dispatch_status_msg)
  858. if (&from == this) return;
  859. Clear();
  860. MergeFrom(from);
  861. }
  862. bool Dispatch_status_msg::IsInitialized() const {
  863. if ((_has_bits_[0] & 0x00000003) != 0x00000003) return false;
  864. if (has_base_info()) {
  865. if (!this->base_info_->IsInitialized()) return false;
  866. }
  867. return true;
  868. }
  869. void Dispatch_status_msg::Swap(Dispatch_status_msg* other) {
  870. if (other == this) return;
  871. InternalSwap(other);
  872. }
  873. void Dispatch_status_msg::InternalSwap(Dispatch_status_msg* other) {
  874. using std::swap;
  875. swap(base_info_, other->base_info_);
  876. swap(dispatch_manager_status_, other->dispatch_manager_status_);
  877. swap(_has_bits_[0], other->_has_bits_[0]);
  878. _internal_metadata_.Swap(&other->_internal_metadata_);
  879. swap(_cached_size_, other->_cached_size_);
  880. }
  881. ::google::protobuf::Metadata Dispatch_status_msg::GetMetadata() const {
  882. protobuf_dispatch_5fmessage_2eproto::protobuf_AssignDescriptorsOnce();
  883. return ::protobuf_dispatch_5fmessage_2eproto::file_level_metadata[kIndexInFileMessages];
  884. }
  885. // ===================================================================
  886. void Dispatch_request_msg::InitAsDefaultInstance() {
  887. ::message::_Dispatch_request_msg_default_instance_._instance.get_mutable()->base_info_ = const_cast< ::message::Base_info*>(
  888. ::message::Base_info::internal_default_instance());
  889. ::message::_Dispatch_request_msg_default_instance_._instance.get_mutable()->locate_information_ = const_cast< ::message::Locate_information*>(
  890. ::message::Locate_information::internal_default_instance());
  891. }
  892. void Dispatch_request_msg::clear_base_info() {
  893. if (base_info_ != NULL) base_info_->Clear();
  894. clear_has_base_info();
  895. }
  896. void Dispatch_request_msg::clear_locate_information() {
  897. if (locate_information_ != NULL) locate_information_->Clear();
  898. clear_has_locate_information();
  899. }
  900. #if !defined(_MSC_VER) || _MSC_VER >= 1900
  901. const int Dispatch_request_msg::kBaseInfoFieldNumber;
  902. const int Dispatch_request_msg::kCommandIdFieldNumber;
  903. const int Dispatch_request_msg::kDispatchMotionDirectionFieldNumber;
  904. const int Dispatch_request_msg::kTerminalIdFieldNumber;
  905. const int Dispatch_request_msg::kParkspaceIdFieldNumber;
  906. const int Dispatch_request_msg::kLocateInformationFieldNumber;
  907. #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
  908. Dispatch_request_msg::Dispatch_request_msg()
  909. : ::google::protobuf::Message(), _internal_metadata_(NULL) {
  910. if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
  911. ::protobuf_dispatch_5fmessage_2eproto::InitDefaultsDispatch_request_msg();
  912. }
  913. SharedCtor();
  914. // @@protoc_insertion_point(constructor:message.Dispatch_request_msg)
  915. }
  916. Dispatch_request_msg::Dispatch_request_msg(const Dispatch_request_msg& from)
  917. : ::google::protobuf::Message(),
  918. _internal_metadata_(NULL),
  919. _has_bits_(from._has_bits_),
  920. _cached_size_(0) {
  921. _internal_metadata_.MergeFrom(from._internal_metadata_);
  922. if (from.has_base_info()) {
  923. base_info_ = new ::message::Base_info(*from.base_info_);
  924. } else {
  925. base_info_ = NULL;
  926. }
  927. if (from.has_locate_information()) {
  928. locate_information_ = new ::message::Locate_information(*from.locate_information_);
  929. } else {
  930. locate_information_ = NULL;
  931. }
  932. ::memcpy(&command_id_, &from.command_id_,
  933. static_cast<size_t>(reinterpret_cast<char*>(&parkspace_id_) -
  934. reinterpret_cast<char*>(&command_id_)) + sizeof(parkspace_id_));
  935. // @@protoc_insertion_point(copy_constructor:message.Dispatch_request_msg)
  936. }
  937. void Dispatch_request_msg::SharedCtor() {
  938. _cached_size_ = 0;
  939. ::memset(&base_info_, 0, static_cast<size_t>(
  940. reinterpret_cast<char*>(&parkspace_id_) -
  941. reinterpret_cast<char*>(&base_info_)) + sizeof(parkspace_id_));
  942. }
  943. Dispatch_request_msg::~Dispatch_request_msg() {
  944. // @@protoc_insertion_point(destructor:message.Dispatch_request_msg)
  945. SharedDtor();
  946. }
  947. void Dispatch_request_msg::SharedDtor() {
  948. if (this != internal_default_instance()) delete base_info_;
  949. if (this != internal_default_instance()) delete locate_information_;
  950. }
  951. void Dispatch_request_msg::SetCachedSize(int size) const {
  952. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  953. _cached_size_ = size;
  954. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  955. }
  956. const ::google::protobuf::Descriptor* Dispatch_request_msg::descriptor() {
  957. ::protobuf_dispatch_5fmessage_2eproto::protobuf_AssignDescriptorsOnce();
  958. return ::protobuf_dispatch_5fmessage_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
  959. }
  960. const Dispatch_request_msg& Dispatch_request_msg::default_instance() {
  961. ::protobuf_dispatch_5fmessage_2eproto::InitDefaultsDispatch_request_msg();
  962. return *internal_default_instance();
  963. }
  964. Dispatch_request_msg* Dispatch_request_msg::New(::google::protobuf::Arena* arena) const {
  965. Dispatch_request_msg* n = new Dispatch_request_msg;
  966. if (arena != NULL) {
  967. arena->Own(n);
  968. }
  969. return n;
  970. }
  971. void Dispatch_request_msg::Clear() {
  972. // @@protoc_insertion_point(message_clear_start:message.Dispatch_request_msg)
  973. ::google::protobuf::uint32 cached_has_bits = 0;
  974. // Prevent compiler warnings about cached_has_bits being unused
  975. (void) cached_has_bits;
  976. cached_has_bits = _has_bits_[0];
  977. if (cached_has_bits & 3u) {
  978. if (cached_has_bits & 0x00000001u) {
  979. GOOGLE_DCHECK(base_info_ != NULL);
  980. base_info_->Clear();
  981. }
  982. if (cached_has_bits & 0x00000002u) {
  983. GOOGLE_DCHECK(locate_information_ != NULL);
  984. locate_information_->Clear();
  985. }
  986. }
  987. if (cached_has_bits & 60u) {
  988. ::memset(&command_id_, 0, static_cast<size_t>(
  989. reinterpret_cast<char*>(&parkspace_id_) -
  990. reinterpret_cast<char*>(&command_id_)) + sizeof(parkspace_id_));
  991. }
  992. _has_bits_.Clear();
  993. _internal_metadata_.Clear();
  994. }
  995. bool Dispatch_request_msg::MergePartialFromCodedStream(
  996. ::google::protobuf::io::CodedInputStream* input) {
  997. #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
  998. ::google::protobuf::uint32 tag;
  999. // @@protoc_insertion_point(parse_start:message.Dispatch_request_msg)
  1000. for (;;) {
  1001. ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
  1002. tag = p.first;
  1003. if (!p.second) goto handle_unusual;
  1004. switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
  1005. // required .message.Base_info base_info = 1;
  1006. case 1: {
  1007. if (static_cast< ::google::protobuf::uint8>(tag) ==
  1008. static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
  1009. DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
  1010. input, mutable_base_info()));
  1011. } else {
  1012. goto handle_unusual;
  1013. }
  1014. break;
  1015. }
  1016. // required int32 command_id = 2;
  1017. case 2: {
  1018. if (static_cast< ::google::protobuf::uint8>(tag) ==
  1019. static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) {
  1020. set_has_command_id();
  1021. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  1022. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  1023. input, &command_id_)));
  1024. } else {
  1025. goto handle_unusual;
  1026. }
  1027. break;
  1028. }
  1029. // required .message.Dispatch_motion_direction dispatch_motion_direction = 3;
  1030. case 3: {
  1031. if (static_cast< ::google::protobuf::uint8>(tag) ==
  1032. static_cast< ::google::protobuf::uint8>(24u /* 24 & 0xFF */)) {
  1033. int value;
  1034. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  1035. int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
  1036. input, &value)));
  1037. if (::message::Dispatch_motion_direction_IsValid(value)) {
  1038. set_dispatch_motion_direction(static_cast< ::message::Dispatch_motion_direction >(value));
  1039. } else {
  1040. mutable_unknown_fields()->AddVarint(
  1041. 3, static_cast< ::google::protobuf::uint64>(value));
  1042. }
  1043. } else {
  1044. goto handle_unusual;
  1045. }
  1046. break;
  1047. }
  1048. // required int32 terminal_id = 4;
  1049. case 4: {
  1050. if (static_cast< ::google::protobuf::uint8>(tag) ==
  1051. static_cast< ::google::protobuf::uint8>(32u /* 32 & 0xFF */)) {
  1052. set_has_terminal_id();
  1053. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  1054. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  1055. input, &terminal_id_)));
  1056. } else {
  1057. goto handle_unusual;
  1058. }
  1059. break;
  1060. }
  1061. // required int32 parkspace_id = 5;
  1062. case 5: {
  1063. if (static_cast< ::google::protobuf::uint8>(tag) ==
  1064. static_cast< ::google::protobuf::uint8>(40u /* 40 & 0xFF */)) {
  1065. set_has_parkspace_id();
  1066. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  1067. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  1068. input, &parkspace_id_)));
  1069. } else {
  1070. goto handle_unusual;
  1071. }
  1072. break;
  1073. }
  1074. // optional .message.Locate_information locate_information = 6;
  1075. case 6: {
  1076. if (static_cast< ::google::protobuf::uint8>(tag) ==
  1077. static_cast< ::google::protobuf::uint8>(50u /* 50 & 0xFF */)) {
  1078. DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
  1079. input, mutable_locate_information()));
  1080. } else {
  1081. goto handle_unusual;
  1082. }
  1083. break;
  1084. }
  1085. default: {
  1086. handle_unusual:
  1087. if (tag == 0) {
  1088. goto success;
  1089. }
  1090. DO_(::google::protobuf::internal::WireFormat::SkipField(
  1091. input, tag, _internal_metadata_.mutable_unknown_fields()));
  1092. break;
  1093. }
  1094. }
  1095. }
  1096. success:
  1097. // @@protoc_insertion_point(parse_success:message.Dispatch_request_msg)
  1098. return true;
  1099. failure:
  1100. // @@protoc_insertion_point(parse_failure:message.Dispatch_request_msg)
  1101. return false;
  1102. #undef DO_
  1103. }
  1104. void Dispatch_request_msg::SerializeWithCachedSizes(
  1105. ::google::protobuf::io::CodedOutputStream* output) const {
  1106. // @@protoc_insertion_point(serialize_start:message.Dispatch_request_msg)
  1107. ::google::protobuf::uint32 cached_has_bits = 0;
  1108. (void) cached_has_bits;
  1109. cached_has_bits = _has_bits_[0];
  1110. // required .message.Base_info base_info = 1;
  1111. if (cached_has_bits & 0x00000001u) {
  1112. ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
  1113. 1, *this->base_info_, output);
  1114. }
  1115. // required int32 command_id = 2;
  1116. if (cached_has_bits & 0x00000004u) {
  1117. ::google::protobuf::internal::WireFormatLite::WriteInt32(2, this->command_id(), output);
  1118. }
  1119. // required .message.Dispatch_motion_direction dispatch_motion_direction = 3;
  1120. if (cached_has_bits & 0x00000008u) {
  1121. ::google::protobuf::internal::WireFormatLite::WriteEnum(
  1122. 3, this->dispatch_motion_direction(), output);
  1123. }
  1124. // required int32 terminal_id = 4;
  1125. if (cached_has_bits & 0x00000010u) {
  1126. ::google::protobuf::internal::WireFormatLite::WriteInt32(4, this->terminal_id(), output);
  1127. }
  1128. // required int32 parkspace_id = 5;
  1129. if (cached_has_bits & 0x00000020u) {
  1130. ::google::protobuf::internal::WireFormatLite::WriteInt32(5, this->parkspace_id(), output);
  1131. }
  1132. // optional .message.Locate_information locate_information = 6;
  1133. if (cached_has_bits & 0x00000002u) {
  1134. ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
  1135. 6, *this->locate_information_, output);
  1136. }
  1137. if (_internal_metadata_.have_unknown_fields()) {
  1138. ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
  1139. _internal_metadata_.unknown_fields(), output);
  1140. }
  1141. // @@protoc_insertion_point(serialize_end:message.Dispatch_request_msg)
  1142. }
  1143. ::google::protobuf::uint8* Dispatch_request_msg::InternalSerializeWithCachedSizesToArray(
  1144. bool deterministic, ::google::protobuf::uint8* target) const {
  1145. (void)deterministic; // Unused
  1146. // @@protoc_insertion_point(serialize_to_array_start:message.Dispatch_request_msg)
  1147. ::google::protobuf::uint32 cached_has_bits = 0;
  1148. (void) cached_has_bits;
  1149. cached_has_bits = _has_bits_[0];
  1150. // required .message.Base_info base_info = 1;
  1151. if (cached_has_bits & 0x00000001u) {
  1152. target = ::google::protobuf::internal::WireFormatLite::
  1153. InternalWriteMessageToArray(
  1154. 1, *this->base_info_, deterministic, target);
  1155. }
  1156. // required int32 command_id = 2;
  1157. if (cached_has_bits & 0x00000004u) {
  1158. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(2, this->command_id(), target);
  1159. }
  1160. // required .message.Dispatch_motion_direction dispatch_motion_direction = 3;
  1161. if (cached_has_bits & 0x00000008u) {
  1162. target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
  1163. 3, this->dispatch_motion_direction(), target);
  1164. }
  1165. // required int32 terminal_id = 4;
  1166. if (cached_has_bits & 0x00000010u) {
  1167. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(4, this->terminal_id(), target);
  1168. }
  1169. // required int32 parkspace_id = 5;
  1170. if (cached_has_bits & 0x00000020u) {
  1171. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(5, this->parkspace_id(), target);
  1172. }
  1173. // optional .message.Locate_information locate_information = 6;
  1174. if (cached_has_bits & 0x00000002u) {
  1175. target = ::google::protobuf::internal::WireFormatLite::
  1176. InternalWriteMessageToArray(
  1177. 6, *this->locate_information_, deterministic, target);
  1178. }
  1179. if (_internal_metadata_.have_unknown_fields()) {
  1180. target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
  1181. _internal_metadata_.unknown_fields(), target);
  1182. }
  1183. // @@protoc_insertion_point(serialize_to_array_end:message.Dispatch_request_msg)
  1184. return target;
  1185. }
  1186. size_t Dispatch_request_msg::RequiredFieldsByteSizeFallback() const {
  1187. // @@protoc_insertion_point(required_fields_byte_size_fallback_start:message.Dispatch_request_msg)
  1188. size_t total_size = 0;
  1189. if (has_base_info()) {
  1190. // required .message.Base_info base_info = 1;
  1191. total_size += 1 +
  1192. ::google::protobuf::internal::WireFormatLite::MessageSize(
  1193. *this->base_info_);
  1194. }
  1195. if (has_command_id()) {
  1196. // required int32 command_id = 2;
  1197. total_size += 1 +
  1198. ::google::protobuf::internal::WireFormatLite::Int32Size(
  1199. this->command_id());
  1200. }
  1201. if (has_dispatch_motion_direction()) {
  1202. // required .message.Dispatch_motion_direction dispatch_motion_direction = 3;
  1203. total_size += 1 +
  1204. ::google::protobuf::internal::WireFormatLite::EnumSize(this->dispatch_motion_direction());
  1205. }
  1206. if (has_terminal_id()) {
  1207. // required int32 terminal_id = 4;
  1208. total_size += 1 +
  1209. ::google::protobuf::internal::WireFormatLite::Int32Size(
  1210. this->terminal_id());
  1211. }
  1212. if (has_parkspace_id()) {
  1213. // required int32 parkspace_id = 5;
  1214. total_size += 1 +
  1215. ::google::protobuf::internal::WireFormatLite::Int32Size(
  1216. this->parkspace_id());
  1217. }
  1218. return total_size;
  1219. }
  1220. size_t Dispatch_request_msg::ByteSizeLong() const {
  1221. // @@protoc_insertion_point(message_byte_size_start:message.Dispatch_request_msg)
  1222. size_t total_size = 0;
  1223. if (_internal_metadata_.have_unknown_fields()) {
  1224. total_size +=
  1225. ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
  1226. _internal_metadata_.unknown_fields());
  1227. }
  1228. if (((_has_bits_[0] & 0x0000003d) ^ 0x0000003d) == 0) { // All required fields are present.
  1229. // required .message.Base_info base_info = 1;
  1230. total_size += 1 +
  1231. ::google::protobuf::internal::WireFormatLite::MessageSize(
  1232. *this->base_info_);
  1233. // required int32 command_id = 2;
  1234. total_size += 1 +
  1235. ::google::protobuf::internal::WireFormatLite::Int32Size(
  1236. this->command_id());
  1237. // required .message.Dispatch_motion_direction dispatch_motion_direction = 3;
  1238. total_size += 1 +
  1239. ::google::protobuf::internal::WireFormatLite::EnumSize(this->dispatch_motion_direction());
  1240. // required int32 terminal_id = 4;
  1241. total_size += 1 +
  1242. ::google::protobuf::internal::WireFormatLite::Int32Size(
  1243. this->terminal_id());
  1244. // required int32 parkspace_id = 5;
  1245. total_size += 1 +
  1246. ::google::protobuf::internal::WireFormatLite::Int32Size(
  1247. this->parkspace_id());
  1248. } else {
  1249. total_size += RequiredFieldsByteSizeFallback();
  1250. }
  1251. // optional .message.Locate_information locate_information = 6;
  1252. if (has_locate_information()) {
  1253. total_size += 1 +
  1254. ::google::protobuf::internal::WireFormatLite::MessageSize(
  1255. *this->locate_information_);
  1256. }
  1257. int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
  1258. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  1259. _cached_size_ = cached_size;
  1260. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  1261. return total_size;
  1262. }
  1263. void Dispatch_request_msg::MergeFrom(const ::google::protobuf::Message& from) {
  1264. // @@protoc_insertion_point(generalized_merge_from_start:message.Dispatch_request_msg)
  1265. GOOGLE_DCHECK_NE(&from, this);
  1266. const Dispatch_request_msg* source =
  1267. ::google::protobuf::internal::DynamicCastToGenerated<const Dispatch_request_msg>(
  1268. &from);
  1269. if (source == NULL) {
  1270. // @@protoc_insertion_point(generalized_merge_from_cast_fail:message.Dispatch_request_msg)
  1271. ::google::protobuf::internal::ReflectionOps::Merge(from, this);
  1272. } else {
  1273. // @@protoc_insertion_point(generalized_merge_from_cast_success:message.Dispatch_request_msg)
  1274. MergeFrom(*source);
  1275. }
  1276. }
  1277. void Dispatch_request_msg::MergeFrom(const Dispatch_request_msg& from) {
  1278. // @@protoc_insertion_point(class_specific_merge_from_start:message.Dispatch_request_msg)
  1279. GOOGLE_DCHECK_NE(&from, this);
  1280. _internal_metadata_.MergeFrom(from._internal_metadata_);
  1281. ::google::protobuf::uint32 cached_has_bits = 0;
  1282. (void) cached_has_bits;
  1283. cached_has_bits = from._has_bits_[0];
  1284. if (cached_has_bits & 63u) {
  1285. if (cached_has_bits & 0x00000001u) {
  1286. mutable_base_info()->::message::Base_info::MergeFrom(from.base_info());
  1287. }
  1288. if (cached_has_bits & 0x00000002u) {
  1289. mutable_locate_information()->::message::Locate_information::MergeFrom(from.locate_information());
  1290. }
  1291. if (cached_has_bits & 0x00000004u) {
  1292. command_id_ = from.command_id_;
  1293. }
  1294. if (cached_has_bits & 0x00000008u) {
  1295. dispatch_motion_direction_ = from.dispatch_motion_direction_;
  1296. }
  1297. if (cached_has_bits & 0x00000010u) {
  1298. terminal_id_ = from.terminal_id_;
  1299. }
  1300. if (cached_has_bits & 0x00000020u) {
  1301. parkspace_id_ = from.parkspace_id_;
  1302. }
  1303. _has_bits_[0] |= cached_has_bits;
  1304. }
  1305. }
  1306. void Dispatch_request_msg::CopyFrom(const ::google::protobuf::Message& from) {
  1307. // @@protoc_insertion_point(generalized_copy_from_start:message.Dispatch_request_msg)
  1308. if (&from == this) return;
  1309. Clear();
  1310. MergeFrom(from);
  1311. }
  1312. void Dispatch_request_msg::CopyFrom(const Dispatch_request_msg& from) {
  1313. // @@protoc_insertion_point(class_specific_copy_from_start:message.Dispatch_request_msg)
  1314. if (&from == this) return;
  1315. Clear();
  1316. MergeFrom(from);
  1317. }
  1318. bool Dispatch_request_msg::IsInitialized() const {
  1319. if ((_has_bits_[0] & 0x0000003d) != 0x0000003d) return false;
  1320. if (has_base_info()) {
  1321. if (!this->base_info_->IsInitialized()) return false;
  1322. }
  1323. return true;
  1324. }
  1325. void Dispatch_request_msg::Swap(Dispatch_request_msg* other) {
  1326. if (other == this) return;
  1327. InternalSwap(other);
  1328. }
  1329. void Dispatch_request_msg::InternalSwap(Dispatch_request_msg* other) {
  1330. using std::swap;
  1331. swap(base_info_, other->base_info_);
  1332. swap(locate_information_, other->locate_information_);
  1333. swap(command_id_, other->command_id_);
  1334. swap(dispatch_motion_direction_, other->dispatch_motion_direction_);
  1335. swap(terminal_id_, other->terminal_id_);
  1336. swap(parkspace_id_, other->parkspace_id_);
  1337. swap(_has_bits_[0], other->_has_bits_[0]);
  1338. _internal_metadata_.Swap(&other->_internal_metadata_);
  1339. swap(_cached_size_, other->_cached_size_);
  1340. }
  1341. ::google::protobuf::Metadata Dispatch_request_msg::GetMetadata() const {
  1342. protobuf_dispatch_5fmessage_2eproto::protobuf_AssignDescriptorsOnce();
  1343. return ::protobuf_dispatch_5fmessage_2eproto::file_level_metadata[kIndexInFileMessages];
  1344. }
  1345. // ===================================================================
  1346. void Dispatch_response_msg::InitAsDefaultInstance() {
  1347. ::message::_Dispatch_response_msg_default_instance_._instance.get_mutable()->base_info_ = const_cast< ::message::Base_info*>(
  1348. ::message::Base_info::internal_default_instance());
  1349. ::message::_Dispatch_response_msg_default_instance_._instance.get_mutable()->error_manager_ = const_cast< ::message::Error_manager*>(
  1350. ::message::Error_manager::internal_default_instance());
  1351. }
  1352. void Dispatch_response_msg::clear_base_info() {
  1353. if (base_info_ != NULL) base_info_->Clear();
  1354. clear_has_base_info();
  1355. }
  1356. void Dispatch_response_msg::clear_error_manager() {
  1357. if (error_manager_ != NULL) error_manager_->Clear();
  1358. clear_has_error_manager();
  1359. }
  1360. #if !defined(_MSC_VER) || _MSC_VER >= 1900
  1361. const int Dispatch_response_msg::kBaseInfoFieldNumber;
  1362. const int Dispatch_response_msg::kCommandIdFieldNumber;
  1363. const int Dispatch_response_msg::kErrorManagerFieldNumber;
  1364. #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
  1365. Dispatch_response_msg::Dispatch_response_msg()
  1366. : ::google::protobuf::Message(), _internal_metadata_(NULL) {
  1367. if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
  1368. ::protobuf_dispatch_5fmessage_2eproto::InitDefaultsDispatch_response_msg();
  1369. }
  1370. SharedCtor();
  1371. // @@protoc_insertion_point(constructor:message.Dispatch_response_msg)
  1372. }
  1373. Dispatch_response_msg::Dispatch_response_msg(const Dispatch_response_msg& from)
  1374. : ::google::protobuf::Message(),
  1375. _internal_metadata_(NULL),
  1376. _has_bits_(from._has_bits_),
  1377. _cached_size_(0) {
  1378. _internal_metadata_.MergeFrom(from._internal_metadata_);
  1379. if (from.has_base_info()) {
  1380. base_info_ = new ::message::Base_info(*from.base_info_);
  1381. } else {
  1382. base_info_ = NULL;
  1383. }
  1384. if (from.has_error_manager()) {
  1385. error_manager_ = new ::message::Error_manager(*from.error_manager_);
  1386. } else {
  1387. error_manager_ = NULL;
  1388. }
  1389. command_id_ = from.command_id_;
  1390. // @@protoc_insertion_point(copy_constructor:message.Dispatch_response_msg)
  1391. }
  1392. void Dispatch_response_msg::SharedCtor() {
  1393. _cached_size_ = 0;
  1394. ::memset(&base_info_, 0, static_cast<size_t>(
  1395. reinterpret_cast<char*>(&command_id_) -
  1396. reinterpret_cast<char*>(&base_info_)) + sizeof(command_id_));
  1397. }
  1398. Dispatch_response_msg::~Dispatch_response_msg() {
  1399. // @@protoc_insertion_point(destructor:message.Dispatch_response_msg)
  1400. SharedDtor();
  1401. }
  1402. void Dispatch_response_msg::SharedDtor() {
  1403. if (this != internal_default_instance()) delete base_info_;
  1404. if (this != internal_default_instance()) delete error_manager_;
  1405. }
  1406. void Dispatch_response_msg::SetCachedSize(int size) const {
  1407. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  1408. _cached_size_ = size;
  1409. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  1410. }
  1411. const ::google::protobuf::Descriptor* Dispatch_response_msg::descriptor() {
  1412. ::protobuf_dispatch_5fmessage_2eproto::protobuf_AssignDescriptorsOnce();
  1413. return ::protobuf_dispatch_5fmessage_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
  1414. }
  1415. const Dispatch_response_msg& Dispatch_response_msg::default_instance() {
  1416. ::protobuf_dispatch_5fmessage_2eproto::InitDefaultsDispatch_response_msg();
  1417. return *internal_default_instance();
  1418. }
  1419. Dispatch_response_msg* Dispatch_response_msg::New(::google::protobuf::Arena* arena) const {
  1420. Dispatch_response_msg* n = new Dispatch_response_msg;
  1421. if (arena != NULL) {
  1422. arena->Own(n);
  1423. }
  1424. return n;
  1425. }
  1426. void Dispatch_response_msg::Clear() {
  1427. // @@protoc_insertion_point(message_clear_start:message.Dispatch_response_msg)
  1428. ::google::protobuf::uint32 cached_has_bits = 0;
  1429. // Prevent compiler warnings about cached_has_bits being unused
  1430. (void) cached_has_bits;
  1431. cached_has_bits = _has_bits_[0];
  1432. if (cached_has_bits & 3u) {
  1433. if (cached_has_bits & 0x00000001u) {
  1434. GOOGLE_DCHECK(base_info_ != NULL);
  1435. base_info_->Clear();
  1436. }
  1437. if (cached_has_bits & 0x00000002u) {
  1438. GOOGLE_DCHECK(error_manager_ != NULL);
  1439. error_manager_->Clear();
  1440. }
  1441. }
  1442. command_id_ = 0;
  1443. _has_bits_.Clear();
  1444. _internal_metadata_.Clear();
  1445. }
  1446. bool Dispatch_response_msg::MergePartialFromCodedStream(
  1447. ::google::protobuf::io::CodedInputStream* input) {
  1448. #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
  1449. ::google::protobuf::uint32 tag;
  1450. // @@protoc_insertion_point(parse_start:message.Dispatch_response_msg)
  1451. for (;;) {
  1452. ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
  1453. tag = p.first;
  1454. if (!p.second) goto handle_unusual;
  1455. switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
  1456. // required .message.Base_info base_info = 1;
  1457. case 1: {
  1458. if (static_cast< ::google::protobuf::uint8>(tag) ==
  1459. static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
  1460. DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
  1461. input, mutable_base_info()));
  1462. } else {
  1463. goto handle_unusual;
  1464. }
  1465. break;
  1466. }
  1467. // required int32 command_id = 2;
  1468. case 2: {
  1469. if (static_cast< ::google::protobuf::uint8>(tag) ==
  1470. static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) {
  1471. set_has_command_id();
  1472. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  1473. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  1474. input, &command_id_)));
  1475. } else {
  1476. goto handle_unusual;
  1477. }
  1478. break;
  1479. }
  1480. // required .message.Error_manager error_manager = 3;
  1481. case 3: {
  1482. if (static_cast< ::google::protobuf::uint8>(tag) ==
  1483. static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) {
  1484. DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
  1485. input, mutable_error_manager()));
  1486. } else {
  1487. goto handle_unusual;
  1488. }
  1489. break;
  1490. }
  1491. default: {
  1492. handle_unusual:
  1493. if (tag == 0) {
  1494. goto success;
  1495. }
  1496. DO_(::google::protobuf::internal::WireFormat::SkipField(
  1497. input, tag, _internal_metadata_.mutable_unknown_fields()));
  1498. break;
  1499. }
  1500. }
  1501. }
  1502. success:
  1503. // @@protoc_insertion_point(parse_success:message.Dispatch_response_msg)
  1504. return true;
  1505. failure:
  1506. // @@protoc_insertion_point(parse_failure:message.Dispatch_response_msg)
  1507. return false;
  1508. #undef DO_
  1509. }
  1510. void Dispatch_response_msg::SerializeWithCachedSizes(
  1511. ::google::protobuf::io::CodedOutputStream* output) const {
  1512. // @@protoc_insertion_point(serialize_start:message.Dispatch_response_msg)
  1513. ::google::protobuf::uint32 cached_has_bits = 0;
  1514. (void) cached_has_bits;
  1515. cached_has_bits = _has_bits_[0];
  1516. // required .message.Base_info base_info = 1;
  1517. if (cached_has_bits & 0x00000001u) {
  1518. ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
  1519. 1, *this->base_info_, output);
  1520. }
  1521. // required int32 command_id = 2;
  1522. if (cached_has_bits & 0x00000004u) {
  1523. ::google::protobuf::internal::WireFormatLite::WriteInt32(2, this->command_id(), output);
  1524. }
  1525. // required .message.Error_manager error_manager = 3;
  1526. if (cached_has_bits & 0x00000002u) {
  1527. ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
  1528. 3, *this->error_manager_, output);
  1529. }
  1530. if (_internal_metadata_.have_unknown_fields()) {
  1531. ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
  1532. _internal_metadata_.unknown_fields(), output);
  1533. }
  1534. // @@protoc_insertion_point(serialize_end:message.Dispatch_response_msg)
  1535. }
  1536. ::google::protobuf::uint8* Dispatch_response_msg::InternalSerializeWithCachedSizesToArray(
  1537. bool deterministic, ::google::protobuf::uint8* target) const {
  1538. (void)deterministic; // Unused
  1539. // @@protoc_insertion_point(serialize_to_array_start:message.Dispatch_response_msg)
  1540. ::google::protobuf::uint32 cached_has_bits = 0;
  1541. (void) cached_has_bits;
  1542. cached_has_bits = _has_bits_[0];
  1543. // required .message.Base_info base_info = 1;
  1544. if (cached_has_bits & 0x00000001u) {
  1545. target = ::google::protobuf::internal::WireFormatLite::
  1546. InternalWriteMessageToArray(
  1547. 1, *this->base_info_, deterministic, target);
  1548. }
  1549. // required int32 command_id = 2;
  1550. if (cached_has_bits & 0x00000004u) {
  1551. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(2, this->command_id(), target);
  1552. }
  1553. // required .message.Error_manager error_manager = 3;
  1554. if (cached_has_bits & 0x00000002u) {
  1555. target = ::google::protobuf::internal::WireFormatLite::
  1556. InternalWriteMessageToArray(
  1557. 3, *this->error_manager_, deterministic, target);
  1558. }
  1559. if (_internal_metadata_.have_unknown_fields()) {
  1560. target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
  1561. _internal_metadata_.unknown_fields(), target);
  1562. }
  1563. // @@protoc_insertion_point(serialize_to_array_end:message.Dispatch_response_msg)
  1564. return target;
  1565. }
  1566. size_t Dispatch_response_msg::RequiredFieldsByteSizeFallback() const {
  1567. // @@protoc_insertion_point(required_fields_byte_size_fallback_start:message.Dispatch_response_msg)
  1568. size_t total_size = 0;
  1569. if (has_base_info()) {
  1570. // required .message.Base_info base_info = 1;
  1571. total_size += 1 +
  1572. ::google::protobuf::internal::WireFormatLite::MessageSize(
  1573. *this->base_info_);
  1574. }
  1575. if (has_error_manager()) {
  1576. // required .message.Error_manager error_manager = 3;
  1577. total_size += 1 +
  1578. ::google::protobuf::internal::WireFormatLite::MessageSize(
  1579. *this->error_manager_);
  1580. }
  1581. if (has_command_id()) {
  1582. // required int32 command_id = 2;
  1583. total_size += 1 +
  1584. ::google::protobuf::internal::WireFormatLite::Int32Size(
  1585. this->command_id());
  1586. }
  1587. return total_size;
  1588. }
  1589. size_t Dispatch_response_msg::ByteSizeLong() const {
  1590. // @@protoc_insertion_point(message_byte_size_start:message.Dispatch_response_msg)
  1591. size_t total_size = 0;
  1592. if (_internal_metadata_.have_unknown_fields()) {
  1593. total_size +=
  1594. ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
  1595. _internal_metadata_.unknown_fields());
  1596. }
  1597. if (((_has_bits_[0] & 0x00000007) ^ 0x00000007) == 0) { // All required fields are present.
  1598. // required .message.Base_info base_info = 1;
  1599. total_size += 1 +
  1600. ::google::protobuf::internal::WireFormatLite::MessageSize(
  1601. *this->base_info_);
  1602. // required .message.Error_manager error_manager = 3;
  1603. total_size += 1 +
  1604. ::google::protobuf::internal::WireFormatLite::MessageSize(
  1605. *this->error_manager_);
  1606. // required int32 command_id = 2;
  1607. total_size += 1 +
  1608. ::google::protobuf::internal::WireFormatLite::Int32Size(
  1609. this->command_id());
  1610. } else {
  1611. total_size += RequiredFieldsByteSizeFallback();
  1612. }
  1613. int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
  1614. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  1615. _cached_size_ = cached_size;
  1616. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  1617. return total_size;
  1618. }
  1619. void Dispatch_response_msg::MergeFrom(const ::google::protobuf::Message& from) {
  1620. // @@protoc_insertion_point(generalized_merge_from_start:message.Dispatch_response_msg)
  1621. GOOGLE_DCHECK_NE(&from, this);
  1622. const Dispatch_response_msg* source =
  1623. ::google::protobuf::internal::DynamicCastToGenerated<const Dispatch_response_msg>(
  1624. &from);
  1625. if (source == NULL) {
  1626. // @@protoc_insertion_point(generalized_merge_from_cast_fail:message.Dispatch_response_msg)
  1627. ::google::protobuf::internal::ReflectionOps::Merge(from, this);
  1628. } else {
  1629. // @@protoc_insertion_point(generalized_merge_from_cast_success:message.Dispatch_response_msg)
  1630. MergeFrom(*source);
  1631. }
  1632. }
  1633. void Dispatch_response_msg::MergeFrom(const Dispatch_response_msg& from) {
  1634. // @@protoc_insertion_point(class_specific_merge_from_start:message.Dispatch_response_msg)
  1635. GOOGLE_DCHECK_NE(&from, this);
  1636. _internal_metadata_.MergeFrom(from._internal_metadata_);
  1637. ::google::protobuf::uint32 cached_has_bits = 0;
  1638. (void) cached_has_bits;
  1639. cached_has_bits = from._has_bits_[0];
  1640. if (cached_has_bits & 7u) {
  1641. if (cached_has_bits & 0x00000001u) {
  1642. mutable_base_info()->::message::Base_info::MergeFrom(from.base_info());
  1643. }
  1644. if (cached_has_bits & 0x00000002u) {
  1645. mutable_error_manager()->::message::Error_manager::MergeFrom(from.error_manager());
  1646. }
  1647. if (cached_has_bits & 0x00000004u) {
  1648. command_id_ = from.command_id_;
  1649. }
  1650. _has_bits_[0] |= cached_has_bits;
  1651. }
  1652. }
  1653. void Dispatch_response_msg::CopyFrom(const ::google::protobuf::Message& from) {
  1654. // @@protoc_insertion_point(generalized_copy_from_start:message.Dispatch_response_msg)
  1655. if (&from == this) return;
  1656. Clear();
  1657. MergeFrom(from);
  1658. }
  1659. void Dispatch_response_msg::CopyFrom(const Dispatch_response_msg& from) {
  1660. // @@protoc_insertion_point(class_specific_copy_from_start:message.Dispatch_response_msg)
  1661. if (&from == this) return;
  1662. Clear();
  1663. MergeFrom(from);
  1664. }
  1665. bool Dispatch_response_msg::IsInitialized() const {
  1666. if ((_has_bits_[0] & 0x00000007) != 0x00000007) return false;
  1667. if (has_base_info()) {
  1668. if (!this->base_info_->IsInitialized()) return false;
  1669. }
  1670. if (has_error_manager()) {
  1671. if (!this->error_manager_->IsInitialized()) return false;
  1672. }
  1673. return true;
  1674. }
  1675. void Dispatch_response_msg::Swap(Dispatch_response_msg* other) {
  1676. if (other == this) return;
  1677. InternalSwap(other);
  1678. }
  1679. void Dispatch_response_msg::InternalSwap(Dispatch_response_msg* other) {
  1680. using std::swap;
  1681. swap(base_info_, other->base_info_);
  1682. swap(error_manager_, other->error_manager_);
  1683. swap(command_id_, other->command_id_);
  1684. swap(_has_bits_[0], other->_has_bits_[0]);
  1685. _internal_metadata_.Swap(&other->_internal_metadata_);
  1686. swap(_cached_size_, other->_cached_size_);
  1687. }
  1688. ::google::protobuf::Metadata Dispatch_response_msg::GetMetadata() const {
  1689. protobuf_dispatch_5fmessage_2eproto::protobuf_AssignDescriptorsOnce();
  1690. return ::protobuf_dispatch_5fmessage_2eproto::file_level_metadata[kIndexInFileMessages];
  1691. }
  1692. // @@protoc_insertion_point(namespace_scope)
  1693. } // namespace message
  1694. // @@protoc_insertion_point(global_scope)