dispatch_message.pb.cc 74 KB

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