dispatch_message.pb.cc 103 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719
  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/io/coded_stream.h>
  8. #include <google/protobuf/wire_format_lite_inl.h>
  9. #include <google/protobuf/descriptor.h>
  10. #include <google/protobuf/generated_message_reflection.h>
  11. #include <google/protobuf/reflection_ops.h>
  12. #include <google/protobuf/wire_format.h>
  13. // This is a temporary google only hack
  14. #ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
  15. #include "third_party/protobuf/version.h"
  16. #endif
  17. // @@protoc_insertion_point(includes)
  18. namespace protobuf_message_5fbase_2eproto {
  19. extern PROTOBUF_INTERNAL_EXPORT_protobuf_message_5fbase_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_Base_info;
  20. extern PROTOBUF_INTERNAL_EXPORT_protobuf_message_5fbase_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_Error_manager;
  21. extern PROTOBUF_INTERNAL_EXPORT_protobuf_message_5fbase_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_Locate_information;
  22. } // namespace protobuf_message_5fbase_2eproto
  23. namespace message {
  24. class Device_positionDefaultTypeInternal {
  25. public:
  26. ::google::protobuf::internal::ExplicitlyConstructed<Device_position>
  27. _instance;
  28. } _Device_position_default_instance_;
  29. class Dispatch_manager_status_msgDefaultTypeInternal {
  30. public:
  31. ::google::protobuf::internal::ExplicitlyConstructed<Dispatch_manager_status_msg>
  32. _instance;
  33. } _Dispatch_manager_status_msg_default_instance_;
  34. class Dispatch_terminal_status_msgDefaultTypeInternal {
  35. public:
  36. ::google::protobuf::internal::ExplicitlyConstructed<Dispatch_terminal_status_msg>
  37. _instance;
  38. } _Dispatch_terminal_status_msg_default_instance_;
  39. class Dispatch_request_msgDefaultTypeInternal {
  40. public:
  41. ::google::protobuf::internal::ExplicitlyConstructed<Dispatch_request_msg>
  42. _instance;
  43. } _Dispatch_request_msg_default_instance_;
  44. class Dispatch_response_msgDefaultTypeInternal {
  45. public:
  46. ::google::protobuf::internal::ExplicitlyConstructed<Dispatch_response_msg>
  47. _instance;
  48. } _Dispatch_response_msg_default_instance_;
  49. } // namespace message
  50. namespace protobuf_dispatch_5fmessage_2eproto {
  51. static void InitDefaultsDevice_position() {
  52. GOOGLE_PROTOBUF_VERIFY_VERSION;
  53. {
  54. void* ptr = &::message::_Device_position_default_instance_;
  55. new (ptr) ::message::Device_position();
  56. ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
  57. }
  58. ::message::Device_position::InitAsDefaultInstance();
  59. }
  60. ::google::protobuf::internal::SCCInfo<0> scc_info_Device_position =
  61. {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsDevice_position}, {}};
  62. static void InitDefaultsDispatch_manager_status_msg() {
  63. GOOGLE_PROTOBUF_VERIFY_VERSION;
  64. {
  65. void* ptr = &::message::_Dispatch_manager_status_msg_default_instance_;
  66. new (ptr) ::message::Dispatch_manager_status_msg();
  67. ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
  68. }
  69. ::message::Dispatch_manager_status_msg::InitAsDefaultInstance();
  70. }
  71. ::google::protobuf::internal::SCCInfo<1> scc_info_Dispatch_manager_status_msg =
  72. {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsDispatch_manager_status_msg}, {
  73. &protobuf_message_5fbase_2eproto::scc_info_Base_info.base,}};
  74. static void InitDefaultsDispatch_terminal_status_msg() {
  75. GOOGLE_PROTOBUF_VERIFY_VERSION;
  76. {
  77. void* ptr = &::message::_Dispatch_terminal_status_msg_default_instance_;
  78. new (ptr) ::message::Dispatch_terminal_status_msg();
  79. ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
  80. }
  81. ::message::Dispatch_terminal_status_msg::InitAsDefaultInstance();
  82. }
  83. ::google::protobuf::internal::SCCInfo<1> scc_info_Dispatch_terminal_status_msg =
  84. {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsDispatch_terminal_status_msg}, {
  85. &protobuf_message_5fbase_2eproto::scc_info_Base_info.base,}};
  86. static void InitDefaultsDispatch_request_msg() {
  87. GOOGLE_PROTOBUF_VERIFY_VERSION;
  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. ::google::protobuf::internal::SCCInfo<2> scc_info_Dispatch_request_msg =
  96. {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 2, InitDefaultsDispatch_request_msg}, {
  97. &protobuf_message_5fbase_2eproto::scc_info_Base_info.base,
  98. &protobuf_message_5fbase_2eproto::scc_info_Locate_information.base,}};
  99. static void InitDefaultsDispatch_response_msg() {
  100. GOOGLE_PROTOBUF_VERIFY_VERSION;
  101. {
  102. void* ptr = &::message::_Dispatch_response_msg_default_instance_;
  103. new (ptr) ::message::Dispatch_response_msg();
  104. ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
  105. }
  106. ::message::Dispatch_response_msg::InitAsDefaultInstance();
  107. }
  108. ::google::protobuf::internal::SCCInfo<2> scc_info_Dispatch_response_msg =
  109. {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 2, InitDefaultsDispatch_response_msg}, {
  110. &protobuf_message_5fbase_2eproto::scc_info_Base_info.base,
  111. &protobuf_message_5fbase_2eproto::scc_info_Error_manager.base,}};
  112. void InitDefaults() {
  113. ::google::protobuf::internal::InitSCC(&scc_info_Device_position.base);
  114. ::google::protobuf::internal::InitSCC(&scc_info_Dispatch_manager_status_msg.base);
  115. ::google::protobuf::internal::InitSCC(&scc_info_Dispatch_terminal_status_msg.base);
  116. ::google::protobuf::internal::InitSCC(&scc_info_Dispatch_request_msg.base);
  117. ::google::protobuf::internal::InitSCC(&scc_info_Dispatch_response_msg.base);
  118. }
  119. ::google::protobuf::Metadata file_level_metadata[5];
  120. const ::google::protobuf::EnumDescriptor* file_level_enum_descriptors[8];
  121. const ::google::protobuf::uint32 TableStruct::offsets[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
  122. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Device_position, _has_bits_),
  123. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Device_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::Device_position, x_),
  128. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Device_position, y_),
  129. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Device_position, z_),
  130. 0,
  131. 1,
  132. 2,
  133. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Dispatch_manager_status_msg, _has_bits_),
  134. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Dispatch_manager_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_manager_status_msg, base_info_),
  139. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Dispatch_manager_status_msg, dispatch_id_),
  140. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Dispatch_manager_status_msg, dispatch_manager_status_),
  141. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Dispatch_manager_status_msg, catcher_status_),
  142. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Dispatch_manager_status_msg, carrier_status_),
  143. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Dispatch_manager_status_msg, elevator_status_),
  144. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Dispatch_manager_status_msg, passageway_status_),
  145. 0,
  146. 1,
  147. 2,
  148. ~0u,
  149. ~0u,
  150. ~0u,
  151. ~0u,
  152. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Dispatch_terminal_status_msg, _has_bits_),
  153. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Dispatch_terminal_status_msg, _internal_metadata_),
  154. ~0u, // no _extensions_
  155. ~0u, // no _oneof_case_
  156. ~0u, // no _weak_field_map_
  157. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Dispatch_terminal_status_msg, base_info_),
  158. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Dispatch_terminal_status_msg, terminal_id_),
  159. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Dispatch_terminal_status_msg, terminal_status_),
  160. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Dispatch_terminal_status_msg, passageway_direction_),
  161. 0,
  162. 1,
  163. 2,
  164. 3,
  165. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Dispatch_request_msg, _has_bits_),
  166. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Dispatch_request_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_request_msg, base_info_),
  171. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Dispatch_request_msg, command_key_),
  172. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Dispatch_request_msg, dispatch_motion_direction_),
  173. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Dispatch_request_msg, terminal_id_),
  174. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Dispatch_request_msg, parkspace_id_),
  175. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Dispatch_request_msg, locate_information_),
  176. 1,
  177. 0,
  178. 3,
  179. 4,
  180. 5,
  181. 2,
  182. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Dispatch_response_msg, _has_bits_),
  183. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Dispatch_response_msg, _internal_metadata_),
  184. ~0u, // no _extensions_
  185. ~0u, // no _oneof_case_
  186. ~0u, // no _weak_field_map_
  187. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Dispatch_response_msg, base_info_),
  188. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Dispatch_response_msg, command_key_),
  189. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Dispatch_response_msg, error_manager_),
  190. 1,
  191. 0,
  192. 2,
  193. };
  194. static const ::google::protobuf::internal::MigrationSchema schemas[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
  195. { 0, 8, sizeof(::message::Device_position)},
  196. { 11, 23, sizeof(::message::Dispatch_manager_status_msg)},
  197. { 30, 39, sizeof(::message::Dispatch_terminal_status_msg)},
  198. { 43, 54, sizeof(::message::Dispatch_request_msg)},
  199. { 60, 68, sizeof(::message::Dispatch_response_msg)},
  200. };
  201. static ::google::protobuf::Message const * const file_default_instances[] = {
  202. reinterpret_cast<const ::google::protobuf::Message*>(&::message::_Device_position_default_instance_),
  203. reinterpret_cast<const ::google::protobuf::Message*>(&::message::_Dispatch_manager_status_msg_default_instance_),
  204. reinterpret_cast<const ::google::protobuf::Message*>(&::message::_Dispatch_terminal_status_msg_default_instance_),
  205. reinterpret_cast<const ::google::protobuf::Message*>(&::message::_Dispatch_request_msg_default_instance_),
  206. reinterpret_cast<const ::google::protobuf::Message*>(&::message::_Dispatch_response_msg_default_instance_),
  207. };
  208. void protobuf_AssignDescriptors() {
  209. AddDescriptors();
  210. AssignDescriptors(
  211. "dispatch_message.proto", schemas, file_default_instances, TableStruct::offsets,
  212. file_level_metadata, file_level_enum_descriptors, NULL);
  213. }
  214. void protobuf_AssignDescriptorsOnce() {
  215. static ::google::protobuf::internal::once_flag once;
  216. ::google::protobuf::internal::call_once(once, protobuf_AssignDescriptors);
  217. }
  218. void protobuf_RegisterTypes(const ::std::string&) GOOGLE_PROTOBUF_ATTRIBUTE_COLD;
  219. void protobuf_RegisterTypes(const ::std::string&) {
  220. protobuf_AssignDescriptorsOnce();
  221. ::google::protobuf::internal::RegisterAllTypes(file_level_metadata, 5);
  222. }
  223. void AddDescriptorsImpl() {
  224. InitDefaults();
  225. static const char descriptor[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
  226. "\n\026dispatch_message.proto\022\007message\032\022messa"
  227. "ge_base.proto\"2\n\017Device_position\022\t\n\001x\030\001 "
  228. "\002(\002\022\t\n\001y\030\002 \002(\002\022\t\n\001z\030\003 \002(\002\"\350\002\n\033Dispatch_m"
  229. "anager_status_msg\022%\n\tbase_info\030\001 \002(\0132\022.m"
  230. "essage.Base_info\022\023\n\013dispatch_id\030\002 \002(\005\022A\n"
  231. "\027dispatch_manager_status\030\003 \002(\0162 .message"
  232. ".Dispatch_manager_status\022/\n\016catcher_stat"
  233. "us\030\004 \003(\0162\027.message.Catcher_status\022/\n\016car"
  234. "rier_status\030\005 \003(\0162\027.message.Carrier_stat"
  235. "us\0221\n\017elevator_status\030\006 \003(\0162\030.message.El"
  236. "evator_status\0225\n\021passageway_status\030\007 \003(\016"
  237. "2\032.message.Passageway_status\"\312\001\n\034Dispatc"
  238. "h_terminal_status_msg\022%\n\tbase_info\030\001 \002(\013"
  239. "2\022.message.Base_info\022\023\n\013terminal_id\030\002 \002("
  240. "\005\0221\n\017terminal_status\030\003 \002(\0162\030.message.Ter"
  241. "minal_status\022;\n\024passageway_direction\030\004 \002"
  242. "(\0162\035.message.Passageway_direction\"\375\001\n\024Di"
  243. "spatch_request_msg\022%\n\tbase_info\030\001 \002(\0132\022."
  244. "message.Base_info\022\023\n\013command_key\030\002 \002(\t\022E"
  245. "\n\031dispatch_motion_direction\030\003 \002(\0162\".mess"
  246. "age.Dispatch_motion_direction\022\023\n\013termina"
  247. "l_id\030\004 \002(\005\022\024\n\014parkspace_id\030\005 \002(\005\0227\n\022loca"
  248. "te_information\030\006 \001(\0132\033.message.Locate_in"
  249. "formation\"\202\001\n\025Dispatch_response_msg\022%\n\tb"
  250. "ase_info\030\001 \002(\0132\022.message.Base_info\022\023\n\013co"
  251. "mmand_key\030\002 \002(\t\022-\n\rerror_manager\030\003 \002(\0132\026"
  252. ".message.Error_manager*\261\001\n\027Dispatch_mana"
  253. "ger_status\022\035\n\031E_DISPATCH_MANAGER_UNKNOW\020"
  254. "\000\022\034\n\030E_DISPATCH_MANAGER_READY\020\001\022\034\n\030E_DIS"
  255. "PATCH_MANAGER_STORE\020\002\022\035\n\031E_DISPATCH_MANA"
  256. "GER_PICKUP\020\003\022\034\n\030E_DISPATCH_MANAGER_FAULT"
  257. "\020\n*{\n\016Catcher_status\022\024\n\020E_CATCHER_UNKNOW"
  258. "\020\000\022\023\n\017E_CATCHER_READY\020\001\022\023\n\017E_CATCHER_STO"
  259. "RE\020\002\022\024\n\020E_CATCHER_PICKUP\020\003\022\023\n\017E_CATCHER_"
  260. "FAULT\020\n*{\n\016Carrier_status\022\024\n\020E_CARRIER_U"
  261. "NKNOW\020\000\022\023\n\017E_CARRIER_READY\020\001\022\023\n\017E_CARRIE"
  262. "R_STORE\020\002\022\024\n\020E_CARRIER_PICKUP\020\003\022\023\n\017E_CAR"
  263. "RIER_FAULT\020\n*\201\001\n\017Elevator_status\022\025\n\021E_EL"
  264. "EVATOR_UNKNOW\020\000\022\024\n\020E_ELEVATOR_READY\020\001\022\024\n"
  265. "\020E_ELEVATOR_STORE\020\002\022\025\n\021E_ELEVATOR_PICKUP"
  266. "\020\003\022\024\n\020E_ELEVATOR_FAULT\020\n*\215\001\n\021Passageway_"
  267. "status\022\027\n\023E_PASSAGEWAY_UNKNOW\020\000\022\026\n\022E_PAS"
  268. "SAGEWAY_READY\020\001\022\026\n\022E_PASSAGEWAY_STORE\020\002\022"
  269. "\027\n\023E_PASSAGEWAY_PICKUP\020\003\022\026\n\022E_PASSAGEWAY"
  270. "_FAULT\020\n*\201\001\n\017Terminal_status\022\025\n\021E_TERMIN"
  271. "AL_UNKNOW\020\000\022\024\n\020E_TERMINAL_READY\020\001\022\024\n\020E_T"
  272. "ERMINAL_STORE\020\002\022\025\n\021E_TERMINAL_PICKUP\020\003\022\024"
  273. "\n\020E_TERMINAL_FAULT\020\n*B\n\024Passageway_direc"
  274. "tion\022\013\n\007E_INLET\020\000\022\014\n\010E_OUTLET\020\001\022\017\n\013E_BIL"
  275. "ATERAL\020\002*>\n\031Dispatch_motion_direction\022\017\n"
  276. "\013E_STORE_CAR\020\000\022\020\n\014E_PICKUP_CAR\020\001"
  277. };
  278. ::google::protobuf::DescriptorPool::InternalAddGeneratedFile(
  279. descriptor, 2032);
  280. ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile(
  281. "dispatch_message.proto", &protobuf_RegisterTypes);
  282. ::protobuf_message_5fbase_2eproto::AddDescriptors();
  283. }
  284. void AddDescriptors() {
  285. static ::google::protobuf::internal::once_flag once;
  286. ::google::protobuf::internal::call_once(once, AddDescriptorsImpl);
  287. }
  288. // Force AddDescriptors() to be called at dynamic initialization time.
  289. struct StaticDescriptorInitializer {
  290. StaticDescriptorInitializer() {
  291. AddDescriptors();
  292. }
  293. } static_descriptor_initializer;
  294. } // namespace protobuf_dispatch_5fmessage_2eproto
  295. namespace message {
  296. const ::google::protobuf::EnumDescriptor* Dispatch_manager_status_descriptor() {
  297. protobuf_dispatch_5fmessage_2eproto::protobuf_AssignDescriptorsOnce();
  298. return protobuf_dispatch_5fmessage_2eproto::file_level_enum_descriptors[0];
  299. }
  300. bool Dispatch_manager_status_IsValid(int value) {
  301. switch (value) {
  302. case 0:
  303. case 1:
  304. case 2:
  305. case 3:
  306. case 10:
  307. return true;
  308. default:
  309. return false;
  310. }
  311. }
  312. const ::google::protobuf::EnumDescriptor* Catcher_status_descriptor() {
  313. protobuf_dispatch_5fmessage_2eproto::protobuf_AssignDescriptorsOnce();
  314. return protobuf_dispatch_5fmessage_2eproto::file_level_enum_descriptors[1];
  315. }
  316. bool Catcher_status_IsValid(int value) {
  317. switch (value) {
  318. case 0:
  319. case 1:
  320. case 2:
  321. case 3:
  322. case 10:
  323. return true;
  324. default:
  325. return false;
  326. }
  327. }
  328. const ::google::protobuf::EnumDescriptor* Carrier_status_descriptor() {
  329. protobuf_dispatch_5fmessage_2eproto::protobuf_AssignDescriptorsOnce();
  330. return protobuf_dispatch_5fmessage_2eproto::file_level_enum_descriptors[2];
  331. }
  332. bool Carrier_status_IsValid(int value) {
  333. switch (value) {
  334. case 0:
  335. case 1:
  336. case 2:
  337. case 3:
  338. case 10:
  339. return true;
  340. default:
  341. return false;
  342. }
  343. }
  344. const ::google::protobuf::EnumDescriptor* Elevator_status_descriptor() {
  345. protobuf_dispatch_5fmessage_2eproto::protobuf_AssignDescriptorsOnce();
  346. return protobuf_dispatch_5fmessage_2eproto::file_level_enum_descriptors[3];
  347. }
  348. bool Elevator_status_IsValid(int value) {
  349. switch (value) {
  350. case 0:
  351. case 1:
  352. case 2:
  353. case 3:
  354. case 10:
  355. return true;
  356. default:
  357. return false;
  358. }
  359. }
  360. const ::google::protobuf::EnumDescriptor* Passageway_status_descriptor() {
  361. protobuf_dispatch_5fmessage_2eproto::protobuf_AssignDescriptorsOnce();
  362. return protobuf_dispatch_5fmessage_2eproto::file_level_enum_descriptors[4];
  363. }
  364. bool Passageway_status_IsValid(int value) {
  365. switch (value) {
  366. case 0:
  367. case 1:
  368. case 2:
  369. case 3:
  370. case 10:
  371. return true;
  372. default:
  373. return false;
  374. }
  375. }
  376. const ::google::protobuf::EnumDescriptor* Terminal_status_descriptor() {
  377. protobuf_dispatch_5fmessage_2eproto::protobuf_AssignDescriptorsOnce();
  378. return protobuf_dispatch_5fmessage_2eproto::file_level_enum_descriptors[5];
  379. }
  380. bool Terminal_status_IsValid(int value) {
  381. switch (value) {
  382. case 0:
  383. case 1:
  384. case 2:
  385. case 3:
  386. case 10:
  387. return true;
  388. default:
  389. return false;
  390. }
  391. }
  392. const ::google::protobuf::EnumDescriptor* Passageway_direction_descriptor() {
  393. protobuf_dispatch_5fmessage_2eproto::protobuf_AssignDescriptorsOnce();
  394. return protobuf_dispatch_5fmessage_2eproto::file_level_enum_descriptors[6];
  395. }
  396. bool Passageway_direction_IsValid(int value) {
  397. switch (value) {
  398. case 0:
  399. case 1:
  400. case 2:
  401. return true;
  402. default:
  403. return false;
  404. }
  405. }
  406. const ::google::protobuf::EnumDescriptor* Dispatch_motion_direction_descriptor() {
  407. protobuf_dispatch_5fmessage_2eproto::protobuf_AssignDescriptorsOnce();
  408. return protobuf_dispatch_5fmessage_2eproto::file_level_enum_descriptors[7];
  409. }
  410. bool Dispatch_motion_direction_IsValid(int value) {
  411. switch (value) {
  412. case 0:
  413. case 1:
  414. return true;
  415. default:
  416. return false;
  417. }
  418. }
  419. // ===================================================================
  420. void Device_position::InitAsDefaultInstance() {
  421. }
  422. #if !defined(_MSC_VER) || _MSC_VER >= 1900
  423. const int Device_position::kXFieldNumber;
  424. const int Device_position::kYFieldNumber;
  425. const int Device_position::kZFieldNumber;
  426. #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
  427. Device_position::Device_position()
  428. : ::google::protobuf::Message(), _internal_metadata_(NULL) {
  429. ::google::protobuf::internal::InitSCC(
  430. &protobuf_dispatch_5fmessage_2eproto::scc_info_Device_position.base);
  431. SharedCtor();
  432. // @@protoc_insertion_point(constructor:message.Device_position)
  433. }
  434. Device_position::Device_position(const Device_position& from)
  435. : ::google::protobuf::Message(),
  436. _internal_metadata_(NULL),
  437. _has_bits_(from._has_bits_) {
  438. _internal_metadata_.MergeFrom(from._internal_metadata_);
  439. ::memcpy(&x_, &from.x_,
  440. static_cast<size_t>(reinterpret_cast<char*>(&z_) -
  441. reinterpret_cast<char*>(&x_)) + sizeof(z_));
  442. // @@protoc_insertion_point(copy_constructor:message.Device_position)
  443. }
  444. void Device_position::SharedCtor() {
  445. ::memset(&x_, 0, static_cast<size_t>(
  446. reinterpret_cast<char*>(&z_) -
  447. reinterpret_cast<char*>(&x_)) + sizeof(z_));
  448. }
  449. Device_position::~Device_position() {
  450. // @@protoc_insertion_point(destructor:message.Device_position)
  451. SharedDtor();
  452. }
  453. void Device_position::SharedDtor() {
  454. }
  455. void Device_position::SetCachedSize(int size) const {
  456. _cached_size_.Set(size);
  457. }
  458. const ::google::protobuf::Descriptor* Device_position::descriptor() {
  459. ::protobuf_dispatch_5fmessage_2eproto::protobuf_AssignDescriptorsOnce();
  460. return ::protobuf_dispatch_5fmessage_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
  461. }
  462. const Device_position& Device_position::default_instance() {
  463. ::google::protobuf::internal::InitSCC(&protobuf_dispatch_5fmessage_2eproto::scc_info_Device_position.base);
  464. return *internal_default_instance();
  465. }
  466. void Device_position::Clear() {
  467. // @@protoc_insertion_point(message_clear_start:message.Device_position)
  468. ::google::protobuf::uint32 cached_has_bits = 0;
  469. // Prevent compiler warnings about cached_has_bits being unused
  470. (void) cached_has_bits;
  471. cached_has_bits = _has_bits_[0];
  472. if (cached_has_bits & 7u) {
  473. ::memset(&x_, 0, static_cast<size_t>(
  474. reinterpret_cast<char*>(&z_) -
  475. reinterpret_cast<char*>(&x_)) + sizeof(z_));
  476. }
  477. _has_bits_.Clear();
  478. _internal_metadata_.Clear();
  479. }
  480. bool Device_position::MergePartialFromCodedStream(
  481. ::google::protobuf::io::CodedInputStream* input) {
  482. #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
  483. ::google::protobuf::uint32 tag;
  484. // @@protoc_insertion_point(parse_start:message.Device_position)
  485. for (;;) {
  486. ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
  487. tag = p.first;
  488. if (!p.second) goto handle_unusual;
  489. switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
  490. // required float x = 1;
  491. case 1: {
  492. if (static_cast< ::google::protobuf::uint8>(tag) ==
  493. static_cast< ::google::protobuf::uint8>(13u /* 13 & 0xFF */)) {
  494. set_has_x();
  495. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  496. float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
  497. input, &x_)));
  498. } else {
  499. goto handle_unusual;
  500. }
  501. break;
  502. }
  503. // required float y = 2;
  504. case 2: {
  505. if (static_cast< ::google::protobuf::uint8>(tag) ==
  506. static_cast< ::google::protobuf::uint8>(21u /* 21 & 0xFF */)) {
  507. set_has_y();
  508. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  509. float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
  510. input, &y_)));
  511. } else {
  512. goto handle_unusual;
  513. }
  514. break;
  515. }
  516. // required float z = 3;
  517. case 3: {
  518. if (static_cast< ::google::protobuf::uint8>(tag) ==
  519. static_cast< ::google::protobuf::uint8>(29u /* 29 & 0xFF */)) {
  520. set_has_z();
  521. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  522. float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
  523. input, &z_)));
  524. } else {
  525. goto handle_unusual;
  526. }
  527. break;
  528. }
  529. default: {
  530. handle_unusual:
  531. if (tag == 0) {
  532. goto success;
  533. }
  534. DO_(::google::protobuf::internal::WireFormat::SkipField(
  535. input, tag, _internal_metadata_.mutable_unknown_fields()));
  536. break;
  537. }
  538. }
  539. }
  540. success:
  541. // @@protoc_insertion_point(parse_success:message.Device_position)
  542. return true;
  543. failure:
  544. // @@protoc_insertion_point(parse_failure:message.Device_position)
  545. return false;
  546. #undef DO_
  547. }
  548. void Device_position::SerializeWithCachedSizes(
  549. ::google::protobuf::io::CodedOutputStream* output) const {
  550. // @@protoc_insertion_point(serialize_start:message.Device_position)
  551. ::google::protobuf::uint32 cached_has_bits = 0;
  552. (void) cached_has_bits;
  553. cached_has_bits = _has_bits_[0];
  554. // required float x = 1;
  555. if (cached_has_bits & 0x00000001u) {
  556. ::google::protobuf::internal::WireFormatLite::WriteFloat(1, this->x(), output);
  557. }
  558. // required float y = 2;
  559. if (cached_has_bits & 0x00000002u) {
  560. ::google::protobuf::internal::WireFormatLite::WriteFloat(2, this->y(), output);
  561. }
  562. // required float z = 3;
  563. if (cached_has_bits & 0x00000004u) {
  564. ::google::protobuf::internal::WireFormatLite::WriteFloat(3, this->z(), output);
  565. }
  566. if (_internal_metadata_.have_unknown_fields()) {
  567. ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
  568. _internal_metadata_.unknown_fields(), output);
  569. }
  570. // @@protoc_insertion_point(serialize_end:message.Device_position)
  571. }
  572. ::google::protobuf::uint8* Device_position::InternalSerializeWithCachedSizesToArray(
  573. bool deterministic, ::google::protobuf::uint8* target) const {
  574. (void)deterministic; // Unused
  575. // @@protoc_insertion_point(serialize_to_array_start:message.Device_position)
  576. ::google::protobuf::uint32 cached_has_bits = 0;
  577. (void) cached_has_bits;
  578. cached_has_bits = _has_bits_[0];
  579. // required float x = 1;
  580. if (cached_has_bits & 0x00000001u) {
  581. target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(1, this->x(), target);
  582. }
  583. // required float y = 2;
  584. if (cached_has_bits & 0x00000002u) {
  585. target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(2, this->y(), target);
  586. }
  587. // required float z = 3;
  588. if (cached_has_bits & 0x00000004u) {
  589. target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(3, this->z(), target);
  590. }
  591. if (_internal_metadata_.have_unknown_fields()) {
  592. target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
  593. _internal_metadata_.unknown_fields(), target);
  594. }
  595. // @@protoc_insertion_point(serialize_to_array_end:message.Device_position)
  596. return target;
  597. }
  598. size_t Device_position::RequiredFieldsByteSizeFallback() const {
  599. // @@protoc_insertion_point(required_fields_byte_size_fallback_start:message.Device_position)
  600. size_t total_size = 0;
  601. if (has_x()) {
  602. // required float x = 1;
  603. total_size += 1 + 4;
  604. }
  605. if (has_y()) {
  606. // required float y = 2;
  607. total_size += 1 + 4;
  608. }
  609. if (has_z()) {
  610. // required float z = 3;
  611. total_size += 1 + 4;
  612. }
  613. return total_size;
  614. }
  615. size_t Device_position::ByteSizeLong() const {
  616. // @@protoc_insertion_point(message_byte_size_start:message.Device_position)
  617. size_t total_size = 0;
  618. if (_internal_metadata_.have_unknown_fields()) {
  619. total_size +=
  620. ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
  621. _internal_metadata_.unknown_fields());
  622. }
  623. if (((_has_bits_[0] & 0x00000007) ^ 0x00000007) == 0) { // All required fields are present.
  624. // required float x = 1;
  625. total_size += 1 + 4;
  626. // required float y = 2;
  627. total_size += 1 + 4;
  628. // required float z = 3;
  629. total_size += 1 + 4;
  630. } else {
  631. total_size += RequiredFieldsByteSizeFallback();
  632. }
  633. int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
  634. SetCachedSize(cached_size);
  635. return total_size;
  636. }
  637. void Device_position::MergeFrom(const ::google::protobuf::Message& from) {
  638. // @@protoc_insertion_point(generalized_merge_from_start:message.Device_position)
  639. GOOGLE_DCHECK_NE(&from, this);
  640. const Device_position* source =
  641. ::google::protobuf::internal::DynamicCastToGenerated<const Device_position>(
  642. &from);
  643. if (source == NULL) {
  644. // @@protoc_insertion_point(generalized_merge_from_cast_fail:message.Device_position)
  645. ::google::protobuf::internal::ReflectionOps::Merge(from, this);
  646. } else {
  647. // @@protoc_insertion_point(generalized_merge_from_cast_success:message.Device_position)
  648. MergeFrom(*source);
  649. }
  650. }
  651. void Device_position::MergeFrom(const Device_position& from) {
  652. // @@protoc_insertion_point(class_specific_merge_from_start:message.Device_position)
  653. GOOGLE_DCHECK_NE(&from, this);
  654. _internal_metadata_.MergeFrom(from._internal_metadata_);
  655. ::google::protobuf::uint32 cached_has_bits = 0;
  656. (void) cached_has_bits;
  657. cached_has_bits = from._has_bits_[0];
  658. if (cached_has_bits & 7u) {
  659. if (cached_has_bits & 0x00000001u) {
  660. x_ = from.x_;
  661. }
  662. if (cached_has_bits & 0x00000002u) {
  663. y_ = from.y_;
  664. }
  665. if (cached_has_bits & 0x00000004u) {
  666. z_ = from.z_;
  667. }
  668. _has_bits_[0] |= cached_has_bits;
  669. }
  670. }
  671. void Device_position::CopyFrom(const ::google::protobuf::Message& from) {
  672. // @@protoc_insertion_point(generalized_copy_from_start:message.Device_position)
  673. if (&from == this) return;
  674. Clear();
  675. MergeFrom(from);
  676. }
  677. void Device_position::CopyFrom(const Device_position& from) {
  678. // @@protoc_insertion_point(class_specific_copy_from_start:message.Device_position)
  679. if (&from == this) return;
  680. Clear();
  681. MergeFrom(from);
  682. }
  683. bool Device_position::IsInitialized() const {
  684. if ((_has_bits_[0] & 0x00000007) != 0x00000007) return false;
  685. return true;
  686. }
  687. void Device_position::Swap(Device_position* other) {
  688. if (other == this) return;
  689. InternalSwap(other);
  690. }
  691. void Device_position::InternalSwap(Device_position* other) {
  692. using std::swap;
  693. swap(x_, other->x_);
  694. swap(y_, other->y_);
  695. swap(z_, other->z_);
  696. swap(_has_bits_[0], other->_has_bits_[0]);
  697. _internal_metadata_.Swap(&other->_internal_metadata_);
  698. }
  699. ::google::protobuf::Metadata Device_position::GetMetadata() const {
  700. protobuf_dispatch_5fmessage_2eproto::protobuf_AssignDescriptorsOnce();
  701. return ::protobuf_dispatch_5fmessage_2eproto::file_level_metadata[kIndexInFileMessages];
  702. }
  703. // ===================================================================
  704. void Dispatch_manager_status_msg::InitAsDefaultInstance() {
  705. ::message::_Dispatch_manager_status_msg_default_instance_._instance.get_mutable()->base_info_ = const_cast< ::message::Base_info*>(
  706. ::message::Base_info::internal_default_instance());
  707. }
  708. void Dispatch_manager_status_msg::clear_base_info() {
  709. if (base_info_ != NULL) base_info_->Clear();
  710. clear_has_base_info();
  711. }
  712. #if !defined(_MSC_VER) || _MSC_VER >= 1900
  713. const int Dispatch_manager_status_msg::kBaseInfoFieldNumber;
  714. const int Dispatch_manager_status_msg::kDispatchIdFieldNumber;
  715. const int Dispatch_manager_status_msg::kDispatchManagerStatusFieldNumber;
  716. const int Dispatch_manager_status_msg::kCatcherStatusFieldNumber;
  717. const int Dispatch_manager_status_msg::kCarrierStatusFieldNumber;
  718. const int Dispatch_manager_status_msg::kElevatorStatusFieldNumber;
  719. const int Dispatch_manager_status_msg::kPassagewayStatusFieldNumber;
  720. #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
  721. Dispatch_manager_status_msg::Dispatch_manager_status_msg()
  722. : ::google::protobuf::Message(), _internal_metadata_(NULL) {
  723. ::google::protobuf::internal::InitSCC(
  724. &protobuf_dispatch_5fmessage_2eproto::scc_info_Dispatch_manager_status_msg.base);
  725. SharedCtor();
  726. // @@protoc_insertion_point(constructor:message.Dispatch_manager_status_msg)
  727. }
  728. Dispatch_manager_status_msg::Dispatch_manager_status_msg(const Dispatch_manager_status_msg& from)
  729. : ::google::protobuf::Message(),
  730. _internal_metadata_(NULL),
  731. _has_bits_(from._has_bits_),
  732. catcher_status_(from.catcher_status_),
  733. carrier_status_(from.carrier_status_),
  734. elevator_status_(from.elevator_status_),
  735. passageway_status_(from.passageway_status_) {
  736. _internal_metadata_.MergeFrom(from._internal_metadata_);
  737. if (from.has_base_info()) {
  738. base_info_ = new ::message::Base_info(*from.base_info_);
  739. } else {
  740. base_info_ = NULL;
  741. }
  742. ::memcpy(&dispatch_id_, &from.dispatch_id_,
  743. static_cast<size_t>(reinterpret_cast<char*>(&dispatch_manager_status_) -
  744. reinterpret_cast<char*>(&dispatch_id_)) + sizeof(dispatch_manager_status_));
  745. // @@protoc_insertion_point(copy_constructor:message.Dispatch_manager_status_msg)
  746. }
  747. void Dispatch_manager_status_msg::SharedCtor() {
  748. ::memset(&base_info_, 0, static_cast<size_t>(
  749. reinterpret_cast<char*>(&dispatch_manager_status_) -
  750. reinterpret_cast<char*>(&base_info_)) + sizeof(dispatch_manager_status_));
  751. }
  752. Dispatch_manager_status_msg::~Dispatch_manager_status_msg() {
  753. // @@protoc_insertion_point(destructor:message.Dispatch_manager_status_msg)
  754. SharedDtor();
  755. }
  756. void Dispatch_manager_status_msg::SharedDtor() {
  757. if (this != internal_default_instance()) delete base_info_;
  758. }
  759. void Dispatch_manager_status_msg::SetCachedSize(int size) const {
  760. _cached_size_.Set(size);
  761. }
  762. const ::google::protobuf::Descriptor* Dispatch_manager_status_msg::descriptor() {
  763. ::protobuf_dispatch_5fmessage_2eproto::protobuf_AssignDescriptorsOnce();
  764. return ::protobuf_dispatch_5fmessage_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
  765. }
  766. const Dispatch_manager_status_msg& Dispatch_manager_status_msg::default_instance() {
  767. ::google::protobuf::internal::InitSCC(&protobuf_dispatch_5fmessage_2eproto::scc_info_Dispatch_manager_status_msg.base);
  768. return *internal_default_instance();
  769. }
  770. void Dispatch_manager_status_msg::Clear() {
  771. // @@protoc_insertion_point(message_clear_start:message.Dispatch_manager_status_msg)
  772. ::google::protobuf::uint32 cached_has_bits = 0;
  773. // Prevent compiler warnings about cached_has_bits being unused
  774. (void) cached_has_bits;
  775. catcher_status_.Clear();
  776. carrier_status_.Clear();
  777. elevator_status_.Clear();
  778. passageway_status_.Clear();
  779. cached_has_bits = _has_bits_[0];
  780. if (cached_has_bits & 0x00000001u) {
  781. GOOGLE_DCHECK(base_info_ != NULL);
  782. base_info_->Clear();
  783. }
  784. if (cached_has_bits & 6u) {
  785. ::memset(&dispatch_id_, 0, static_cast<size_t>(
  786. reinterpret_cast<char*>(&dispatch_manager_status_) -
  787. reinterpret_cast<char*>(&dispatch_id_)) + sizeof(dispatch_manager_status_));
  788. }
  789. _has_bits_.Clear();
  790. _internal_metadata_.Clear();
  791. }
  792. bool Dispatch_manager_status_msg::MergePartialFromCodedStream(
  793. ::google::protobuf::io::CodedInputStream* input) {
  794. #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
  795. ::google::protobuf::uint32 tag;
  796. // @@protoc_insertion_point(parse_start:message.Dispatch_manager_status_msg)
  797. for (;;) {
  798. ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
  799. tag = p.first;
  800. if (!p.second) goto handle_unusual;
  801. switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
  802. // required .message.Base_info base_info = 1;
  803. case 1: {
  804. if (static_cast< ::google::protobuf::uint8>(tag) ==
  805. static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
  806. DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
  807. input, mutable_base_info()));
  808. } else {
  809. goto handle_unusual;
  810. }
  811. break;
  812. }
  813. // required int32 dispatch_id = 2;
  814. case 2: {
  815. if (static_cast< ::google::protobuf::uint8>(tag) ==
  816. static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) {
  817. set_has_dispatch_id();
  818. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  819. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  820. input, &dispatch_id_)));
  821. } else {
  822. goto handle_unusual;
  823. }
  824. break;
  825. }
  826. // required .message.Dispatch_manager_status dispatch_manager_status = 3;
  827. case 3: {
  828. if (static_cast< ::google::protobuf::uint8>(tag) ==
  829. static_cast< ::google::protobuf::uint8>(24u /* 24 & 0xFF */)) {
  830. int value;
  831. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  832. int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
  833. input, &value)));
  834. if (::message::Dispatch_manager_status_IsValid(value)) {
  835. set_dispatch_manager_status(static_cast< ::message::Dispatch_manager_status >(value));
  836. } else {
  837. mutable_unknown_fields()->AddVarint(
  838. 3, static_cast< ::google::protobuf::uint64>(value));
  839. }
  840. } else {
  841. goto handle_unusual;
  842. }
  843. break;
  844. }
  845. // repeated .message.Catcher_status catcher_status = 4;
  846. case 4: {
  847. if (static_cast< ::google::protobuf::uint8>(tag) ==
  848. static_cast< ::google::protobuf::uint8>(32u /* 32 & 0xFF */)) {
  849. int value;
  850. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  851. int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
  852. input, &value)));
  853. if (::message::Catcher_status_IsValid(value)) {
  854. add_catcher_status(static_cast< ::message::Catcher_status >(value));
  855. } else {
  856. mutable_unknown_fields()->AddVarint(
  857. 4, static_cast< ::google::protobuf::uint64>(value));
  858. }
  859. } else if (
  860. static_cast< ::google::protobuf::uint8>(tag) ==
  861. static_cast< ::google::protobuf::uint8>(34u /* 34 & 0xFF */)) {
  862. DO_((::google::protobuf::internal::WireFormat::ReadPackedEnumPreserveUnknowns(
  863. input,
  864. 4,
  865. ::message::Catcher_status_IsValid,
  866. mutable_unknown_fields(),
  867. this->mutable_catcher_status())));
  868. } else {
  869. goto handle_unusual;
  870. }
  871. break;
  872. }
  873. // repeated .message.Carrier_status carrier_status = 5;
  874. case 5: {
  875. if (static_cast< ::google::protobuf::uint8>(tag) ==
  876. static_cast< ::google::protobuf::uint8>(40u /* 40 & 0xFF */)) {
  877. int value;
  878. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  879. int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
  880. input, &value)));
  881. if (::message::Carrier_status_IsValid(value)) {
  882. add_carrier_status(static_cast< ::message::Carrier_status >(value));
  883. } else {
  884. mutable_unknown_fields()->AddVarint(
  885. 5, static_cast< ::google::protobuf::uint64>(value));
  886. }
  887. } else if (
  888. static_cast< ::google::protobuf::uint8>(tag) ==
  889. static_cast< ::google::protobuf::uint8>(42u /* 42 & 0xFF */)) {
  890. DO_((::google::protobuf::internal::WireFormat::ReadPackedEnumPreserveUnknowns(
  891. input,
  892. 5,
  893. ::message::Carrier_status_IsValid,
  894. mutable_unknown_fields(),
  895. this->mutable_carrier_status())));
  896. } else {
  897. goto handle_unusual;
  898. }
  899. break;
  900. }
  901. // repeated .message.Elevator_status elevator_status = 6;
  902. case 6: {
  903. if (static_cast< ::google::protobuf::uint8>(tag) ==
  904. static_cast< ::google::protobuf::uint8>(48u /* 48 & 0xFF */)) {
  905. int value;
  906. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  907. int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
  908. input, &value)));
  909. if (::message::Elevator_status_IsValid(value)) {
  910. add_elevator_status(static_cast< ::message::Elevator_status >(value));
  911. } else {
  912. mutable_unknown_fields()->AddVarint(
  913. 6, static_cast< ::google::protobuf::uint64>(value));
  914. }
  915. } else if (
  916. static_cast< ::google::protobuf::uint8>(tag) ==
  917. static_cast< ::google::protobuf::uint8>(50u /* 50 & 0xFF */)) {
  918. DO_((::google::protobuf::internal::WireFormat::ReadPackedEnumPreserveUnknowns(
  919. input,
  920. 6,
  921. ::message::Elevator_status_IsValid,
  922. mutable_unknown_fields(),
  923. this->mutable_elevator_status())));
  924. } else {
  925. goto handle_unusual;
  926. }
  927. break;
  928. }
  929. // repeated .message.Passageway_status passageway_status = 7;
  930. case 7: {
  931. if (static_cast< ::google::protobuf::uint8>(tag) ==
  932. static_cast< ::google::protobuf::uint8>(56u /* 56 & 0xFF */)) {
  933. int value;
  934. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  935. int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
  936. input, &value)));
  937. if (::message::Passageway_status_IsValid(value)) {
  938. add_passageway_status(static_cast< ::message::Passageway_status >(value));
  939. } else {
  940. mutable_unknown_fields()->AddVarint(
  941. 7, static_cast< ::google::protobuf::uint64>(value));
  942. }
  943. } else if (
  944. static_cast< ::google::protobuf::uint8>(tag) ==
  945. static_cast< ::google::protobuf::uint8>(58u /* 58 & 0xFF */)) {
  946. DO_((::google::protobuf::internal::WireFormat::ReadPackedEnumPreserveUnknowns(
  947. input,
  948. 7,
  949. ::message::Passageway_status_IsValid,
  950. mutable_unknown_fields(),
  951. this->mutable_passageway_status())));
  952. } else {
  953. goto handle_unusual;
  954. }
  955. break;
  956. }
  957. default: {
  958. handle_unusual:
  959. if (tag == 0) {
  960. goto success;
  961. }
  962. DO_(::google::protobuf::internal::WireFormat::SkipField(
  963. input, tag, _internal_metadata_.mutable_unknown_fields()));
  964. break;
  965. }
  966. }
  967. }
  968. success:
  969. // @@protoc_insertion_point(parse_success:message.Dispatch_manager_status_msg)
  970. return true;
  971. failure:
  972. // @@protoc_insertion_point(parse_failure:message.Dispatch_manager_status_msg)
  973. return false;
  974. #undef DO_
  975. }
  976. void Dispatch_manager_status_msg::SerializeWithCachedSizes(
  977. ::google::protobuf::io::CodedOutputStream* output) const {
  978. // @@protoc_insertion_point(serialize_start:message.Dispatch_manager_status_msg)
  979. ::google::protobuf::uint32 cached_has_bits = 0;
  980. (void) cached_has_bits;
  981. cached_has_bits = _has_bits_[0];
  982. // required .message.Base_info base_info = 1;
  983. if (cached_has_bits & 0x00000001u) {
  984. ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
  985. 1, this->_internal_base_info(), output);
  986. }
  987. // required int32 dispatch_id = 2;
  988. if (cached_has_bits & 0x00000002u) {
  989. ::google::protobuf::internal::WireFormatLite::WriteInt32(2, this->dispatch_id(), output);
  990. }
  991. // required .message.Dispatch_manager_status dispatch_manager_status = 3;
  992. if (cached_has_bits & 0x00000004u) {
  993. ::google::protobuf::internal::WireFormatLite::WriteEnum(
  994. 3, this->dispatch_manager_status(), output);
  995. }
  996. // repeated .message.Catcher_status catcher_status = 4;
  997. for (int i = 0, n = this->catcher_status_size(); i < n; i++) {
  998. ::google::protobuf::internal::WireFormatLite::WriteEnum(
  999. 4, this->catcher_status(i), output);
  1000. }
  1001. // repeated .message.Carrier_status carrier_status = 5;
  1002. for (int i = 0, n = this->carrier_status_size(); i < n; i++) {
  1003. ::google::protobuf::internal::WireFormatLite::WriteEnum(
  1004. 5, this->carrier_status(i), output);
  1005. }
  1006. // repeated .message.Elevator_status elevator_status = 6;
  1007. for (int i = 0, n = this->elevator_status_size(); i < n; i++) {
  1008. ::google::protobuf::internal::WireFormatLite::WriteEnum(
  1009. 6, this->elevator_status(i), output);
  1010. }
  1011. // repeated .message.Passageway_status passageway_status = 7;
  1012. for (int i = 0, n = this->passageway_status_size(); i < n; i++) {
  1013. ::google::protobuf::internal::WireFormatLite::WriteEnum(
  1014. 7, this->passageway_status(i), output);
  1015. }
  1016. if (_internal_metadata_.have_unknown_fields()) {
  1017. ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
  1018. _internal_metadata_.unknown_fields(), output);
  1019. }
  1020. // @@protoc_insertion_point(serialize_end:message.Dispatch_manager_status_msg)
  1021. }
  1022. ::google::protobuf::uint8* Dispatch_manager_status_msg::InternalSerializeWithCachedSizesToArray(
  1023. bool deterministic, ::google::protobuf::uint8* target) const {
  1024. (void)deterministic; // Unused
  1025. // @@protoc_insertion_point(serialize_to_array_start:message.Dispatch_manager_status_msg)
  1026. ::google::protobuf::uint32 cached_has_bits = 0;
  1027. (void) cached_has_bits;
  1028. cached_has_bits = _has_bits_[0];
  1029. // required .message.Base_info base_info = 1;
  1030. if (cached_has_bits & 0x00000001u) {
  1031. target = ::google::protobuf::internal::WireFormatLite::
  1032. InternalWriteMessageToArray(
  1033. 1, this->_internal_base_info(), deterministic, target);
  1034. }
  1035. // required int32 dispatch_id = 2;
  1036. if (cached_has_bits & 0x00000002u) {
  1037. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(2, this->dispatch_id(), target);
  1038. }
  1039. // required .message.Dispatch_manager_status dispatch_manager_status = 3;
  1040. if (cached_has_bits & 0x00000004u) {
  1041. target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
  1042. 3, this->dispatch_manager_status(), target);
  1043. }
  1044. // repeated .message.Catcher_status catcher_status = 4;
  1045. target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
  1046. 4, this->catcher_status_, target);
  1047. // repeated .message.Carrier_status carrier_status = 5;
  1048. target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
  1049. 5, this->carrier_status_, target);
  1050. // repeated .message.Elevator_status elevator_status = 6;
  1051. target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
  1052. 6, this->elevator_status_, target);
  1053. // repeated .message.Passageway_status passageway_status = 7;
  1054. target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
  1055. 7, this->passageway_status_, target);
  1056. if (_internal_metadata_.have_unknown_fields()) {
  1057. target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
  1058. _internal_metadata_.unknown_fields(), target);
  1059. }
  1060. // @@protoc_insertion_point(serialize_to_array_end:message.Dispatch_manager_status_msg)
  1061. return target;
  1062. }
  1063. size_t Dispatch_manager_status_msg::RequiredFieldsByteSizeFallback() const {
  1064. // @@protoc_insertion_point(required_fields_byte_size_fallback_start:message.Dispatch_manager_status_msg)
  1065. size_t total_size = 0;
  1066. if (has_base_info()) {
  1067. // required .message.Base_info base_info = 1;
  1068. total_size += 1 +
  1069. ::google::protobuf::internal::WireFormatLite::MessageSize(
  1070. *base_info_);
  1071. }
  1072. if (has_dispatch_id()) {
  1073. // required int32 dispatch_id = 2;
  1074. total_size += 1 +
  1075. ::google::protobuf::internal::WireFormatLite::Int32Size(
  1076. this->dispatch_id());
  1077. }
  1078. if (has_dispatch_manager_status()) {
  1079. // required .message.Dispatch_manager_status dispatch_manager_status = 3;
  1080. total_size += 1 +
  1081. ::google::protobuf::internal::WireFormatLite::EnumSize(this->dispatch_manager_status());
  1082. }
  1083. return total_size;
  1084. }
  1085. size_t Dispatch_manager_status_msg::ByteSizeLong() const {
  1086. // @@protoc_insertion_point(message_byte_size_start:message.Dispatch_manager_status_msg)
  1087. size_t total_size = 0;
  1088. if (_internal_metadata_.have_unknown_fields()) {
  1089. total_size +=
  1090. ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
  1091. _internal_metadata_.unknown_fields());
  1092. }
  1093. if (((_has_bits_[0] & 0x00000007) ^ 0x00000007) == 0) { // All required fields are present.
  1094. // required .message.Base_info base_info = 1;
  1095. total_size += 1 +
  1096. ::google::protobuf::internal::WireFormatLite::MessageSize(
  1097. *base_info_);
  1098. // required int32 dispatch_id = 2;
  1099. total_size += 1 +
  1100. ::google::protobuf::internal::WireFormatLite::Int32Size(
  1101. this->dispatch_id());
  1102. // required .message.Dispatch_manager_status dispatch_manager_status = 3;
  1103. total_size += 1 +
  1104. ::google::protobuf::internal::WireFormatLite::EnumSize(this->dispatch_manager_status());
  1105. } else {
  1106. total_size += RequiredFieldsByteSizeFallback();
  1107. }
  1108. // repeated .message.Catcher_status catcher_status = 4;
  1109. {
  1110. size_t data_size = 0;
  1111. unsigned int count = static_cast<unsigned int>(this->catcher_status_size());for (unsigned int i = 0; i < count; i++) {
  1112. data_size += ::google::protobuf::internal::WireFormatLite::EnumSize(
  1113. this->catcher_status(static_cast<int>(i)));
  1114. }
  1115. total_size += (1UL * count) + data_size;
  1116. }
  1117. // repeated .message.Carrier_status carrier_status = 5;
  1118. {
  1119. size_t data_size = 0;
  1120. unsigned int count = static_cast<unsigned int>(this->carrier_status_size());for (unsigned int i = 0; i < count; i++) {
  1121. data_size += ::google::protobuf::internal::WireFormatLite::EnumSize(
  1122. this->carrier_status(static_cast<int>(i)));
  1123. }
  1124. total_size += (1UL * count) + data_size;
  1125. }
  1126. // repeated .message.Elevator_status elevator_status = 6;
  1127. {
  1128. size_t data_size = 0;
  1129. unsigned int count = static_cast<unsigned int>(this->elevator_status_size());for (unsigned int i = 0; i < count; i++) {
  1130. data_size += ::google::protobuf::internal::WireFormatLite::EnumSize(
  1131. this->elevator_status(static_cast<int>(i)));
  1132. }
  1133. total_size += (1UL * count) + data_size;
  1134. }
  1135. // repeated .message.Passageway_status passageway_status = 7;
  1136. {
  1137. size_t data_size = 0;
  1138. unsigned int count = static_cast<unsigned int>(this->passageway_status_size());for (unsigned int i = 0; i < count; i++) {
  1139. data_size += ::google::protobuf::internal::WireFormatLite::EnumSize(
  1140. this->passageway_status(static_cast<int>(i)));
  1141. }
  1142. total_size += (1UL * count) + data_size;
  1143. }
  1144. int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
  1145. SetCachedSize(cached_size);
  1146. return total_size;
  1147. }
  1148. void Dispatch_manager_status_msg::MergeFrom(const ::google::protobuf::Message& from) {
  1149. // @@protoc_insertion_point(generalized_merge_from_start:message.Dispatch_manager_status_msg)
  1150. GOOGLE_DCHECK_NE(&from, this);
  1151. const Dispatch_manager_status_msg* source =
  1152. ::google::protobuf::internal::DynamicCastToGenerated<const Dispatch_manager_status_msg>(
  1153. &from);
  1154. if (source == NULL) {
  1155. // @@protoc_insertion_point(generalized_merge_from_cast_fail:message.Dispatch_manager_status_msg)
  1156. ::google::protobuf::internal::ReflectionOps::Merge(from, this);
  1157. } else {
  1158. // @@protoc_insertion_point(generalized_merge_from_cast_success:message.Dispatch_manager_status_msg)
  1159. MergeFrom(*source);
  1160. }
  1161. }
  1162. void Dispatch_manager_status_msg::MergeFrom(const Dispatch_manager_status_msg& from) {
  1163. // @@protoc_insertion_point(class_specific_merge_from_start:message.Dispatch_manager_status_msg)
  1164. GOOGLE_DCHECK_NE(&from, this);
  1165. _internal_metadata_.MergeFrom(from._internal_metadata_);
  1166. ::google::protobuf::uint32 cached_has_bits = 0;
  1167. (void) cached_has_bits;
  1168. catcher_status_.MergeFrom(from.catcher_status_);
  1169. carrier_status_.MergeFrom(from.carrier_status_);
  1170. elevator_status_.MergeFrom(from.elevator_status_);
  1171. passageway_status_.MergeFrom(from.passageway_status_);
  1172. cached_has_bits = from._has_bits_[0];
  1173. if (cached_has_bits & 7u) {
  1174. if (cached_has_bits & 0x00000001u) {
  1175. mutable_base_info()->::message::Base_info::MergeFrom(from.base_info());
  1176. }
  1177. if (cached_has_bits & 0x00000002u) {
  1178. dispatch_id_ = from.dispatch_id_;
  1179. }
  1180. if (cached_has_bits & 0x00000004u) {
  1181. dispatch_manager_status_ = from.dispatch_manager_status_;
  1182. }
  1183. _has_bits_[0] |= cached_has_bits;
  1184. }
  1185. }
  1186. void Dispatch_manager_status_msg::CopyFrom(const ::google::protobuf::Message& from) {
  1187. // @@protoc_insertion_point(generalized_copy_from_start:message.Dispatch_manager_status_msg)
  1188. if (&from == this) return;
  1189. Clear();
  1190. MergeFrom(from);
  1191. }
  1192. void Dispatch_manager_status_msg::CopyFrom(const Dispatch_manager_status_msg& from) {
  1193. // @@protoc_insertion_point(class_specific_copy_from_start:message.Dispatch_manager_status_msg)
  1194. if (&from == this) return;
  1195. Clear();
  1196. MergeFrom(from);
  1197. }
  1198. bool Dispatch_manager_status_msg::IsInitialized() const {
  1199. if ((_has_bits_[0] & 0x00000007) != 0x00000007) return false;
  1200. if (has_base_info()) {
  1201. if (!this->base_info_->IsInitialized()) return false;
  1202. }
  1203. return true;
  1204. }
  1205. void Dispatch_manager_status_msg::Swap(Dispatch_manager_status_msg* other) {
  1206. if (other == this) return;
  1207. InternalSwap(other);
  1208. }
  1209. void Dispatch_manager_status_msg::InternalSwap(Dispatch_manager_status_msg* other) {
  1210. using std::swap;
  1211. catcher_status_.InternalSwap(&other->catcher_status_);
  1212. carrier_status_.InternalSwap(&other->carrier_status_);
  1213. elevator_status_.InternalSwap(&other->elevator_status_);
  1214. passageway_status_.InternalSwap(&other->passageway_status_);
  1215. swap(base_info_, other->base_info_);
  1216. swap(dispatch_id_, other->dispatch_id_);
  1217. swap(dispatch_manager_status_, other->dispatch_manager_status_);
  1218. swap(_has_bits_[0], other->_has_bits_[0]);
  1219. _internal_metadata_.Swap(&other->_internal_metadata_);
  1220. }
  1221. ::google::protobuf::Metadata Dispatch_manager_status_msg::GetMetadata() const {
  1222. protobuf_dispatch_5fmessage_2eproto::protobuf_AssignDescriptorsOnce();
  1223. return ::protobuf_dispatch_5fmessage_2eproto::file_level_metadata[kIndexInFileMessages];
  1224. }
  1225. // ===================================================================
  1226. void Dispatch_terminal_status_msg::InitAsDefaultInstance() {
  1227. ::message::_Dispatch_terminal_status_msg_default_instance_._instance.get_mutable()->base_info_ = const_cast< ::message::Base_info*>(
  1228. ::message::Base_info::internal_default_instance());
  1229. }
  1230. void Dispatch_terminal_status_msg::clear_base_info() {
  1231. if (base_info_ != NULL) base_info_->Clear();
  1232. clear_has_base_info();
  1233. }
  1234. #if !defined(_MSC_VER) || _MSC_VER >= 1900
  1235. const int Dispatch_terminal_status_msg::kBaseInfoFieldNumber;
  1236. const int Dispatch_terminal_status_msg::kTerminalIdFieldNumber;
  1237. const int Dispatch_terminal_status_msg::kTerminalStatusFieldNumber;
  1238. const int Dispatch_terminal_status_msg::kPassagewayDirectionFieldNumber;
  1239. #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
  1240. Dispatch_terminal_status_msg::Dispatch_terminal_status_msg()
  1241. : ::google::protobuf::Message(), _internal_metadata_(NULL) {
  1242. ::google::protobuf::internal::InitSCC(
  1243. &protobuf_dispatch_5fmessage_2eproto::scc_info_Dispatch_terminal_status_msg.base);
  1244. SharedCtor();
  1245. // @@protoc_insertion_point(constructor:message.Dispatch_terminal_status_msg)
  1246. }
  1247. Dispatch_terminal_status_msg::Dispatch_terminal_status_msg(const Dispatch_terminal_status_msg& from)
  1248. : ::google::protobuf::Message(),
  1249. _internal_metadata_(NULL),
  1250. _has_bits_(from._has_bits_) {
  1251. _internal_metadata_.MergeFrom(from._internal_metadata_);
  1252. if (from.has_base_info()) {
  1253. base_info_ = new ::message::Base_info(*from.base_info_);
  1254. } else {
  1255. base_info_ = NULL;
  1256. }
  1257. ::memcpy(&terminal_id_, &from.terminal_id_,
  1258. static_cast<size_t>(reinterpret_cast<char*>(&passageway_direction_) -
  1259. reinterpret_cast<char*>(&terminal_id_)) + sizeof(passageway_direction_));
  1260. // @@protoc_insertion_point(copy_constructor:message.Dispatch_terminal_status_msg)
  1261. }
  1262. void Dispatch_terminal_status_msg::SharedCtor() {
  1263. ::memset(&base_info_, 0, static_cast<size_t>(
  1264. reinterpret_cast<char*>(&passageway_direction_) -
  1265. reinterpret_cast<char*>(&base_info_)) + sizeof(passageway_direction_));
  1266. }
  1267. Dispatch_terminal_status_msg::~Dispatch_terminal_status_msg() {
  1268. // @@protoc_insertion_point(destructor:message.Dispatch_terminal_status_msg)
  1269. SharedDtor();
  1270. }
  1271. void Dispatch_terminal_status_msg::SharedDtor() {
  1272. if (this != internal_default_instance()) delete base_info_;
  1273. }
  1274. void Dispatch_terminal_status_msg::SetCachedSize(int size) const {
  1275. _cached_size_.Set(size);
  1276. }
  1277. const ::google::protobuf::Descriptor* Dispatch_terminal_status_msg::descriptor() {
  1278. ::protobuf_dispatch_5fmessage_2eproto::protobuf_AssignDescriptorsOnce();
  1279. return ::protobuf_dispatch_5fmessage_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
  1280. }
  1281. const Dispatch_terminal_status_msg& Dispatch_terminal_status_msg::default_instance() {
  1282. ::google::protobuf::internal::InitSCC(&protobuf_dispatch_5fmessage_2eproto::scc_info_Dispatch_terminal_status_msg.base);
  1283. return *internal_default_instance();
  1284. }
  1285. void Dispatch_terminal_status_msg::Clear() {
  1286. // @@protoc_insertion_point(message_clear_start:message.Dispatch_terminal_status_msg)
  1287. ::google::protobuf::uint32 cached_has_bits = 0;
  1288. // Prevent compiler warnings about cached_has_bits being unused
  1289. (void) cached_has_bits;
  1290. cached_has_bits = _has_bits_[0];
  1291. if (cached_has_bits & 0x00000001u) {
  1292. GOOGLE_DCHECK(base_info_ != NULL);
  1293. base_info_->Clear();
  1294. }
  1295. if (cached_has_bits & 14u) {
  1296. ::memset(&terminal_id_, 0, static_cast<size_t>(
  1297. reinterpret_cast<char*>(&passageway_direction_) -
  1298. reinterpret_cast<char*>(&terminal_id_)) + sizeof(passageway_direction_));
  1299. }
  1300. _has_bits_.Clear();
  1301. _internal_metadata_.Clear();
  1302. }
  1303. bool Dispatch_terminal_status_msg::MergePartialFromCodedStream(
  1304. ::google::protobuf::io::CodedInputStream* input) {
  1305. #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
  1306. ::google::protobuf::uint32 tag;
  1307. // @@protoc_insertion_point(parse_start:message.Dispatch_terminal_status_msg)
  1308. for (;;) {
  1309. ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
  1310. tag = p.first;
  1311. if (!p.second) goto handle_unusual;
  1312. switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
  1313. // required .message.Base_info base_info = 1;
  1314. case 1: {
  1315. if (static_cast< ::google::protobuf::uint8>(tag) ==
  1316. static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
  1317. DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
  1318. input, mutable_base_info()));
  1319. } else {
  1320. goto handle_unusual;
  1321. }
  1322. break;
  1323. }
  1324. // required int32 terminal_id = 2;
  1325. case 2: {
  1326. if (static_cast< ::google::protobuf::uint8>(tag) ==
  1327. static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) {
  1328. set_has_terminal_id();
  1329. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  1330. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  1331. input, &terminal_id_)));
  1332. } else {
  1333. goto handle_unusual;
  1334. }
  1335. break;
  1336. }
  1337. // required .message.Terminal_status terminal_status = 3;
  1338. case 3: {
  1339. if (static_cast< ::google::protobuf::uint8>(tag) ==
  1340. static_cast< ::google::protobuf::uint8>(24u /* 24 & 0xFF */)) {
  1341. int value;
  1342. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  1343. int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
  1344. input, &value)));
  1345. if (::message::Terminal_status_IsValid(value)) {
  1346. set_terminal_status(static_cast< ::message::Terminal_status >(value));
  1347. } else {
  1348. mutable_unknown_fields()->AddVarint(
  1349. 3, static_cast< ::google::protobuf::uint64>(value));
  1350. }
  1351. } else {
  1352. goto handle_unusual;
  1353. }
  1354. break;
  1355. }
  1356. // required .message.Passageway_direction passageway_direction = 4;
  1357. case 4: {
  1358. if (static_cast< ::google::protobuf::uint8>(tag) ==
  1359. static_cast< ::google::protobuf::uint8>(32u /* 32 & 0xFF */)) {
  1360. int value;
  1361. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  1362. int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
  1363. input, &value)));
  1364. if (::message::Passageway_direction_IsValid(value)) {
  1365. set_passageway_direction(static_cast< ::message::Passageway_direction >(value));
  1366. } else {
  1367. mutable_unknown_fields()->AddVarint(
  1368. 4, static_cast< ::google::protobuf::uint64>(value));
  1369. }
  1370. } else {
  1371. goto handle_unusual;
  1372. }
  1373. break;
  1374. }
  1375. default: {
  1376. handle_unusual:
  1377. if (tag == 0) {
  1378. goto success;
  1379. }
  1380. DO_(::google::protobuf::internal::WireFormat::SkipField(
  1381. input, tag, _internal_metadata_.mutable_unknown_fields()));
  1382. break;
  1383. }
  1384. }
  1385. }
  1386. success:
  1387. // @@protoc_insertion_point(parse_success:message.Dispatch_terminal_status_msg)
  1388. return true;
  1389. failure:
  1390. // @@protoc_insertion_point(parse_failure:message.Dispatch_terminal_status_msg)
  1391. return false;
  1392. #undef DO_
  1393. }
  1394. void Dispatch_terminal_status_msg::SerializeWithCachedSizes(
  1395. ::google::protobuf::io::CodedOutputStream* output) const {
  1396. // @@protoc_insertion_point(serialize_start:message.Dispatch_terminal_status_msg)
  1397. ::google::protobuf::uint32 cached_has_bits = 0;
  1398. (void) cached_has_bits;
  1399. cached_has_bits = _has_bits_[0];
  1400. // required .message.Base_info base_info = 1;
  1401. if (cached_has_bits & 0x00000001u) {
  1402. ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
  1403. 1, this->_internal_base_info(), output);
  1404. }
  1405. // required int32 terminal_id = 2;
  1406. if (cached_has_bits & 0x00000002u) {
  1407. ::google::protobuf::internal::WireFormatLite::WriteInt32(2, this->terminal_id(), output);
  1408. }
  1409. // required .message.Terminal_status terminal_status = 3;
  1410. if (cached_has_bits & 0x00000004u) {
  1411. ::google::protobuf::internal::WireFormatLite::WriteEnum(
  1412. 3, this->terminal_status(), output);
  1413. }
  1414. // required .message.Passageway_direction passageway_direction = 4;
  1415. if (cached_has_bits & 0x00000008u) {
  1416. ::google::protobuf::internal::WireFormatLite::WriteEnum(
  1417. 4, this->passageway_direction(), output);
  1418. }
  1419. if (_internal_metadata_.have_unknown_fields()) {
  1420. ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
  1421. _internal_metadata_.unknown_fields(), output);
  1422. }
  1423. // @@protoc_insertion_point(serialize_end:message.Dispatch_terminal_status_msg)
  1424. }
  1425. ::google::protobuf::uint8* Dispatch_terminal_status_msg::InternalSerializeWithCachedSizesToArray(
  1426. bool deterministic, ::google::protobuf::uint8* target) const {
  1427. (void)deterministic; // Unused
  1428. // @@protoc_insertion_point(serialize_to_array_start:message.Dispatch_terminal_status_msg)
  1429. ::google::protobuf::uint32 cached_has_bits = 0;
  1430. (void) cached_has_bits;
  1431. cached_has_bits = _has_bits_[0];
  1432. // required .message.Base_info base_info = 1;
  1433. if (cached_has_bits & 0x00000001u) {
  1434. target = ::google::protobuf::internal::WireFormatLite::
  1435. InternalWriteMessageToArray(
  1436. 1, this->_internal_base_info(), deterministic, target);
  1437. }
  1438. // required int32 terminal_id = 2;
  1439. if (cached_has_bits & 0x00000002u) {
  1440. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(2, this->terminal_id(), target);
  1441. }
  1442. // required .message.Terminal_status terminal_status = 3;
  1443. if (cached_has_bits & 0x00000004u) {
  1444. target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
  1445. 3, this->terminal_status(), target);
  1446. }
  1447. // required .message.Passageway_direction passageway_direction = 4;
  1448. if (cached_has_bits & 0x00000008u) {
  1449. target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
  1450. 4, this->passageway_direction(), target);
  1451. }
  1452. if (_internal_metadata_.have_unknown_fields()) {
  1453. target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
  1454. _internal_metadata_.unknown_fields(), target);
  1455. }
  1456. // @@protoc_insertion_point(serialize_to_array_end:message.Dispatch_terminal_status_msg)
  1457. return target;
  1458. }
  1459. size_t Dispatch_terminal_status_msg::RequiredFieldsByteSizeFallback() const {
  1460. // @@protoc_insertion_point(required_fields_byte_size_fallback_start:message.Dispatch_terminal_status_msg)
  1461. size_t total_size = 0;
  1462. if (has_base_info()) {
  1463. // required .message.Base_info base_info = 1;
  1464. total_size += 1 +
  1465. ::google::protobuf::internal::WireFormatLite::MessageSize(
  1466. *base_info_);
  1467. }
  1468. if (has_terminal_id()) {
  1469. // required int32 terminal_id = 2;
  1470. total_size += 1 +
  1471. ::google::protobuf::internal::WireFormatLite::Int32Size(
  1472. this->terminal_id());
  1473. }
  1474. if (has_terminal_status()) {
  1475. // required .message.Terminal_status terminal_status = 3;
  1476. total_size += 1 +
  1477. ::google::protobuf::internal::WireFormatLite::EnumSize(this->terminal_status());
  1478. }
  1479. if (has_passageway_direction()) {
  1480. // required .message.Passageway_direction passageway_direction = 4;
  1481. total_size += 1 +
  1482. ::google::protobuf::internal::WireFormatLite::EnumSize(this->passageway_direction());
  1483. }
  1484. return total_size;
  1485. }
  1486. size_t Dispatch_terminal_status_msg::ByteSizeLong() const {
  1487. // @@protoc_insertion_point(message_byte_size_start:message.Dispatch_terminal_status_msg)
  1488. size_t total_size = 0;
  1489. if (_internal_metadata_.have_unknown_fields()) {
  1490. total_size +=
  1491. ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
  1492. _internal_metadata_.unknown_fields());
  1493. }
  1494. if (((_has_bits_[0] & 0x0000000f) ^ 0x0000000f) == 0) { // All required fields are present.
  1495. // required .message.Base_info base_info = 1;
  1496. total_size += 1 +
  1497. ::google::protobuf::internal::WireFormatLite::MessageSize(
  1498. *base_info_);
  1499. // required int32 terminal_id = 2;
  1500. total_size += 1 +
  1501. ::google::protobuf::internal::WireFormatLite::Int32Size(
  1502. this->terminal_id());
  1503. // required .message.Terminal_status terminal_status = 3;
  1504. total_size += 1 +
  1505. ::google::protobuf::internal::WireFormatLite::EnumSize(this->terminal_status());
  1506. // required .message.Passageway_direction passageway_direction = 4;
  1507. total_size += 1 +
  1508. ::google::protobuf::internal::WireFormatLite::EnumSize(this->passageway_direction());
  1509. } else {
  1510. total_size += RequiredFieldsByteSizeFallback();
  1511. }
  1512. int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
  1513. SetCachedSize(cached_size);
  1514. return total_size;
  1515. }
  1516. void Dispatch_terminal_status_msg::MergeFrom(const ::google::protobuf::Message& from) {
  1517. // @@protoc_insertion_point(generalized_merge_from_start:message.Dispatch_terminal_status_msg)
  1518. GOOGLE_DCHECK_NE(&from, this);
  1519. const Dispatch_terminal_status_msg* source =
  1520. ::google::protobuf::internal::DynamicCastToGenerated<const Dispatch_terminal_status_msg>(
  1521. &from);
  1522. if (source == NULL) {
  1523. // @@protoc_insertion_point(generalized_merge_from_cast_fail:message.Dispatch_terminal_status_msg)
  1524. ::google::protobuf::internal::ReflectionOps::Merge(from, this);
  1525. } else {
  1526. // @@protoc_insertion_point(generalized_merge_from_cast_success:message.Dispatch_terminal_status_msg)
  1527. MergeFrom(*source);
  1528. }
  1529. }
  1530. void Dispatch_terminal_status_msg::MergeFrom(const Dispatch_terminal_status_msg& from) {
  1531. // @@protoc_insertion_point(class_specific_merge_from_start:message.Dispatch_terminal_status_msg)
  1532. GOOGLE_DCHECK_NE(&from, this);
  1533. _internal_metadata_.MergeFrom(from._internal_metadata_);
  1534. ::google::protobuf::uint32 cached_has_bits = 0;
  1535. (void) cached_has_bits;
  1536. cached_has_bits = from._has_bits_[0];
  1537. if (cached_has_bits & 15u) {
  1538. if (cached_has_bits & 0x00000001u) {
  1539. mutable_base_info()->::message::Base_info::MergeFrom(from.base_info());
  1540. }
  1541. if (cached_has_bits & 0x00000002u) {
  1542. terminal_id_ = from.terminal_id_;
  1543. }
  1544. if (cached_has_bits & 0x00000004u) {
  1545. terminal_status_ = from.terminal_status_;
  1546. }
  1547. if (cached_has_bits & 0x00000008u) {
  1548. passageway_direction_ = from.passageway_direction_;
  1549. }
  1550. _has_bits_[0] |= cached_has_bits;
  1551. }
  1552. }
  1553. void Dispatch_terminal_status_msg::CopyFrom(const ::google::protobuf::Message& from) {
  1554. // @@protoc_insertion_point(generalized_copy_from_start:message.Dispatch_terminal_status_msg)
  1555. if (&from == this) return;
  1556. Clear();
  1557. MergeFrom(from);
  1558. }
  1559. void Dispatch_terminal_status_msg::CopyFrom(const Dispatch_terminal_status_msg& from) {
  1560. // @@protoc_insertion_point(class_specific_copy_from_start:message.Dispatch_terminal_status_msg)
  1561. if (&from == this) return;
  1562. Clear();
  1563. MergeFrom(from);
  1564. }
  1565. bool Dispatch_terminal_status_msg::IsInitialized() const {
  1566. if ((_has_bits_[0] & 0x0000000f) != 0x0000000f) return false;
  1567. if (has_base_info()) {
  1568. if (!this->base_info_->IsInitialized()) return false;
  1569. }
  1570. return true;
  1571. }
  1572. void Dispatch_terminal_status_msg::Swap(Dispatch_terminal_status_msg* other) {
  1573. if (other == this) return;
  1574. InternalSwap(other);
  1575. }
  1576. void Dispatch_terminal_status_msg::InternalSwap(Dispatch_terminal_status_msg* other) {
  1577. using std::swap;
  1578. swap(base_info_, other->base_info_);
  1579. swap(terminal_id_, other->terminal_id_);
  1580. swap(terminal_status_, other->terminal_status_);
  1581. swap(passageway_direction_, other->passageway_direction_);
  1582. swap(_has_bits_[0], other->_has_bits_[0]);
  1583. _internal_metadata_.Swap(&other->_internal_metadata_);
  1584. }
  1585. ::google::protobuf::Metadata Dispatch_terminal_status_msg::GetMetadata() const {
  1586. protobuf_dispatch_5fmessage_2eproto::protobuf_AssignDescriptorsOnce();
  1587. return ::protobuf_dispatch_5fmessage_2eproto::file_level_metadata[kIndexInFileMessages];
  1588. }
  1589. // ===================================================================
  1590. void Dispatch_request_msg::InitAsDefaultInstance() {
  1591. ::message::_Dispatch_request_msg_default_instance_._instance.get_mutable()->base_info_ = const_cast< ::message::Base_info*>(
  1592. ::message::Base_info::internal_default_instance());
  1593. ::message::_Dispatch_request_msg_default_instance_._instance.get_mutable()->locate_information_ = const_cast< ::message::Locate_information*>(
  1594. ::message::Locate_information::internal_default_instance());
  1595. }
  1596. void Dispatch_request_msg::clear_base_info() {
  1597. if (base_info_ != NULL) base_info_->Clear();
  1598. clear_has_base_info();
  1599. }
  1600. void Dispatch_request_msg::clear_locate_information() {
  1601. if (locate_information_ != NULL) locate_information_->Clear();
  1602. clear_has_locate_information();
  1603. }
  1604. #if !defined(_MSC_VER) || _MSC_VER >= 1900
  1605. const int Dispatch_request_msg::kBaseInfoFieldNumber;
  1606. const int Dispatch_request_msg::kCommandKeyFieldNumber;
  1607. const int Dispatch_request_msg::kDispatchMotionDirectionFieldNumber;
  1608. const int Dispatch_request_msg::kTerminalIdFieldNumber;
  1609. const int Dispatch_request_msg::kParkspaceIdFieldNumber;
  1610. const int Dispatch_request_msg::kLocateInformationFieldNumber;
  1611. #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
  1612. Dispatch_request_msg::Dispatch_request_msg()
  1613. : ::google::protobuf::Message(), _internal_metadata_(NULL) {
  1614. ::google::protobuf::internal::InitSCC(
  1615. &protobuf_dispatch_5fmessage_2eproto::scc_info_Dispatch_request_msg.base);
  1616. SharedCtor();
  1617. // @@protoc_insertion_point(constructor:message.Dispatch_request_msg)
  1618. }
  1619. Dispatch_request_msg::Dispatch_request_msg(const Dispatch_request_msg& from)
  1620. : ::google::protobuf::Message(),
  1621. _internal_metadata_(NULL),
  1622. _has_bits_(from._has_bits_) {
  1623. _internal_metadata_.MergeFrom(from._internal_metadata_);
  1624. command_key_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  1625. if (from.has_command_key()) {
  1626. command_key_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.command_key_);
  1627. }
  1628. if (from.has_base_info()) {
  1629. base_info_ = new ::message::Base_info(*from.base_info_);
  1630. } else {
  1631. base_info_ = NULL;
  1632. }
  1633. if (from.has_locate_information()) {
  1634. locate_information_ = new ::message::Locate_information(*from.locate_information_);
  1635. } else {
  1636. locate_information_ = NULL;
  1637. }
  1638. ::memcpy(&dispatch_motion_direction_, &from.dispatch_motion_direction_,
  1639. static_cast<size_t>(reinterpret_cast<char*>(&parkspace_id_) -
  1640. reinterpret_cast<char*>(&dispatch_motion_direction_)) + sizeof(parkspace_id_));
  1641. // @@protoc_insertion_point(copy_constructor:message.Dispatch_request_msg)
  1642. }
  1643. void Dispatch_request_msg::SharedCtor() {
  1644. command_key_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  1645. ::memset(&base_info_, 0, static_cast<size_t>(
  1646. reinterpret_cast<char*>(&parkspace_id_) -
  1647. reinterpret_cast<char*>(&base_info_)) + sizeof(parkspace_id_));
  1648. }
  1649. Dispatch_request_msg::~Dispatch_request_msg() {
  1650. // @@protoc_insertion_point(destructor:message.Dispatch_request_msg)
  1651. SharedDtor();
  1652. }
  1653. void Dispatch_request_msg::SharedDtor() {
  1654. command_key_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  1655. if (this != internal_default_instance()) delete base_info_;
  1656. if (this != internal_default_instance()) delete locate_information_;
  1657. }
  1658. void Dispatch_request_msg::SetCachedSize(int size) const {
  1659. _cached_size_.Set(size);
  1660. }
  1661. const ::google::protobuf::Descriptor* Dispatch_request_msg::descriptor() {
  1662. ::protobuf_dispatch_5fmessage_2eproto::protobuf_AssignDescriptorsOnce();
  1663. return ::protobuf_dispatch_5fmessage_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
  1664. }
  1665. const Dispatch_request_msg& Dispatch_request_msg::default_instance() {
  1666. ::google::protobuf::internal::InitSCC(&protobuf_dispatch_5fmessage_2eproto::scc_info_Dispatch_request_msg.base);
  1667. return *internal_default_instance();
  1668. }
  1669. void Dispatch_request_msg::Clear() {
  1670. // @@protoc_insertion_point(message_clear_start:message.Dispatch_request_msg)
  1671. ::google::protobuf::uint32 cached_has_bits = 0;
  1672. // Prevent compiler warnings about cached_has_bits being unused
  1673. (void) cached_has_bits;
  1674. cached_has_bits = _has_bits_[0];
  1675. if (cached_has_bits & 7u) {
  1676. if (cached_has_bits & 0x00000001u) {
  1677. command_key_.ClearNonDefaultToEmptyNoArena();
  1678. }
  1679. if (cached_has_bits & 0x00000002u) {
  1680. GOOGLE_DCHECK(base_info_ != NULL);
  1681. base_info_->Clear();
  1682. }
  1683. if (cached_has_bits & 0x00000004u) {
  1684. GOOGLE_DCHECK(locate_information_ != NULL);
  1685. locate_information_->Clear();
  1686. }
  1687. }
  1688. if (cached_has_bits & 56u) {
  1689. ::memset(&dispatch_motion_direction_, 0, static_cast<size_t>(
  1690. reinterpret_cast<char*>(&parkspace_id_) -
  1691. reinterpret_cast<char*>(&dispatch_motion_direction_)) + sizeof(parkspace_id_));
  1692. }
  1693. _has_bits_.Clear();
  1694. _internal_metadata_.Clear();
  1695. }
  1696. bool Dispatch_request_msg::MergePartialFromCodedStream(
  1697. ::google::protobuf::io::CodedInputStream* input) {
  1698. #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
  1699. ::google::protobuf::uint32 tag;
  1700. // @@protoc_insertion_point(parse_start:message.Dispatch_request_msg)
  1701. for (;;) {
  1702. ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
  1703. tag = p.first;
  1704. if (!p.second) goto handle_unusual;
  1705. switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
  1706. // required .message.Base_info base_info = 1;
  1707. case 1: {
  1708. if (static_cast< ::google::protobuf::uint8>(tag) ==
  1709. static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
  1710. DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
  1711. input, mutable_base_info()));
  1712. } else {
  1713. goto handle_unusual;
  1714. }
  1715. break;
  1716. }
  1717. // required string command_key = 2;
  1718. case 2: {
  1719. if (static_cast< ::google::protobuf::uint8>(tag) ==
  1720. static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) {
  1721. DO_(::google::protobuf::internal::WireFormatLite::ReadString(
  1722. input, this->mutable_command_key()));
  1723. ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
  1724. this->command_key().data(), static_cast<int>(this->command_key().length()),
  1725. ::google::protobuf::internal::WireFormat::PARSE,
  1726. "message.Dispatch_request_msg.command_key");
  1727. } else {
  1728. goto handle_unusual;
  1729. }
  1730. break;
  1731. }
  1732. // required .message.Dispatch_motion_direction dispatch_motion_direction = 3;
  1733. case 3: {
  1734. if (static_cast< ::google::protobuf::uint8>(tag) ==
  1735. static_cast< ::google::protobuf::uint8>(24u /* 24 & 0xFF */)) {
  1736. int value;
  1737. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  1738. int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
  1739. input, &value)));
  1740. if (::message::Dispatch_motion_direction_IsValid(value)) {
  1741. set_dispatch_motion_direction(static_cast< ::message::Dispatch_motion_direction >(value));
  1742. } else {
  1743. mutable_unknown_fields()->AddVarint(
  1744. 3, static_cast< ::google::protobuf::uint64>(value));
  1745. }
  1746. } else {
  1747. goto handle_unusual;
  1748. }
  1749. break;
  1750. }
  1751. // required int32 terminal_id = 4;
  1752. case 4: {
  1753. if (static_cast< ::google::protobuf::uint8>(tag) ==
  1754. static_cast< ::google::protobuf::uint8>(32u /* 32 & 0xFF */)) {
  1755. set_has_terminal_id();
  1756. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  1757. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  1758. input, &terminal_id_)));
  1759. } else {
  1760. goto handle_unusual;
  1761. }
  1762. break;
  1763. }
  1764. // required int32 parkspace_id = 5;
  1765. case 5: {
  1766. if (static_cast< ::google::protobuf::uint8>(tag) ==
  1767. static_cast< ::google::protobuf::uint8>(40u /* 40 & 0xFF */)) {
  1768. set_has_parkspace_id();
  1769. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  1770. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  1771. input, &parkspace_id_)));
  1772. } else {
  1773. goto handle_unusual;
  1774. }
  1775. break;
  1776. }
  1777. // optional .message.Locate_information locate_information = 6;
  1778. case 6: {
  1779. if (static_cast< ::google::protobuf::uint8>(tag) ==
  1780. static_cast< ::google::protobuf::uint8>(50u /* 50 & 0xFF */)) {
  1781. DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
  1782. input, mutable_locate_information()));
  1783. } else {
  1784. goto handle_unusual;
  1785. }
  1786. break;
  1787. }
  1788. default: {
  1789. handle_unusual:
  1790. if (tag == 0) {
  1791. goto success;
  1792. }
  1793. DO_(::google::protobuf::internal::WireFormat::SkipField(
  1794. input, tag, _internal_metadata_.mutable_unknown_fields()));
  1795. break;
  1796. }
  1797. }
  1798. }
  1799. success:
  1800. // @@protoc_insertion_point(parse_success:message.Dispatch_request_msg)
  1801. return true;
  1802. failure:
  1803. // @@protoc_insertion_point(parse_failure:message.Dispatch_request_msg)
  1804. return false;
  1805. #undef DO_
  1806. }
  1807. void Dispatch_request_msg::SerializeWithCachedSizes(
  1808. ::google::protobuf::io::CodedOutputStream* output) const {
  1809. // @@protoc_insertion_point(serialize_start:message.Dispatch_request_msg)
  1810. ::google::protobuf::uint32 cached_has_bits = 0;
  1811. (void) cached_has_bits;
  1812. cached_has_bits = _has_bits_[0];
  1813. // required .message.Base_info base_info = 1;
  1814. if (cached_has_bits & 0x00000002u) {
  1815. ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
  1816. 1, this->_internal_base_info(), output);
  1817. }
  1818. // required string command_key = 2;
  1819. if (cached_has_bits & 0x00000001u) {
  1820. ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
  1821. this->command_key().data(), static_cast<int>(this->command_key().length()),
  1822. ::google::protobuf::internal::WireFormat::SERIALIZE,
  1823. "message.Dispatch_request_msg.command_key");
  1824. ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
  1825. 2, this->command_key(), output);
  1826. }
  1827. // required .message.Dispatch_motion_direction dispatch_motion_direction = 3;
  1828. if (cached_has_bits & 0x00000008u) {
  1829. ::google::protobuf::internal::WireFormatLite::WriteEnum(
  1830. 3, this->dispatch_motion_direction(), output);
  1831. }
  1832. // required int32 terminal_id = 4;
  1833. if (cached_has_bits & 0x00000010u) {
  1834. ::google::protobuf::internal::WireFormatLite::WriteInt32(4, this->terminal_id(), output);
  1835. }
  1836. // required int32 parkspace_id = 5;
  1837. if (cached_has_bits & 0x00000020u) {
  1838. ::google::protobuf::internal::WireFormatLite::WriteInt32(5, this->parkspace_id(), output);
  1839. }
  1840. // optional .message.Locate_information locate_information = 6;
  1841. if (cached_has_bits & 0x00000004u) {
  1842. ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
  1843. 6, this->_internal_locate_information(), output);
  1844. }
  1845. if (_internal_metadata_.have_unknown_fields()) {
  1846. ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
  1847. _internal_metadata_.unknown_fields(), output);
  1848. }
  1849. // @@protoc_insertion_point(serialize_end:message.Dispatch_request_msg)
  1850. }
  1851. ::google::protobuf::uint8* Dispatch_request_msg::InternalSerializeWithCachedSizesToArray(
  1852. bool deterministic, ::google::protobuf::uint8* target) const {
  1853. (void)deterministic; // Unused
  1854. // @@protoc_insertion_point(serialize_to_array_start:message.Dispatch_request_msg)
  1855. ::google::protobuf::uint32 cached_has_bits = 0;
  1856. (void) cached_has_bits;
  1857. cached_has_bits = _has_bits_[0];
  1858. // required .message.Base_info base_info = 1;
  1859. if (cached_has_bits & 0x00000002u) {
  1860. target = ::google::protobuf::internal::WireFormatLite::
  1861. InternalWriteMessageToArray(
  1862. 1, this->_internal_base_info(), deterministic, target);
  1863. }
  1864. // required string command_key = 2;
  1865. if (cached_has_bits & 0x00000001u) {
  1866. ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
  1867. this->command_key().data(), static_cast<int>(this->command_key().length()),
  1868. ::google::protobuf::internal::WireFormat::SERIALIZE,
  1869. "message.Dispatch_request_msg.command_key");
  1870. target =
  1871. ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
  1872. 2, this->command_key(), target);
  1873. }
  1874. // required .message.Dispatch_motion_direction dispatch_motion_direction = 3;
  1875. if (cached_has_bits & 0x00000008u) {
  1876. target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
  1877. 3, this->dispatch_motion_direction(), target);
  1878. }
  1879. // required int32 terminal_id = 4;
  1880. if (cached_has_bits & 0x00000010u) {
  1881. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(4, this->terminal_id(), target);
  1882. }
  1883. // required int32 parkspace_id = 5;
  1884. if (cached_has_bits & 0x00000020u) {
  1885. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(5, this->parkspace_id(), target);
  1886. }
  1887. // optional .message.Locate_information locate_information = 6;
  1888. if (cached_has_bits & 0x00000004u) {
  1889. target = ::google::protobuf::internal::WireFormatLite::
  1890. InternalWriteMessageToArray(
  1891. 6, this->_internal_locate_information(), deterministic, target);
  1892. }
  1893. if (_internal_metadata_.have_unknown_fields()) {
  1894. target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
  1895. _internal_metadata_.unknown_fields(), target);
  1896. }
  1897. // @@protoc_insertion_point(serialize_to_array_end:message.Dispatch_request_msg)
  1898. return target;
  1899. }
  1900. size_t Dispatch_request_msg::RequiredFieldsByteSizeFallback() const {
  1901. // @@protoc_insertion_point(required_fields_byte_size_fallback_start:message.Dispatch_request_msg)
  1902. size_t total_size = 0;
  1903. if (has_command_key()) {
  1904. // required string command_key = 2;
  1905. total_size += 1 +
  1906. ::google::protobuf::internal::WireFormatLite::StringSize(
  1907. this->command_key());
  1908. }
  1909. if (has_base_info()) {
  1910. // required .message.Base_info base_info = 1;
  1911. total_size += 1 +
  1912. ::google::protobuf::internal::WireFormatLite::MessageSize(
  1913. *base_info_);
  1914. }
  1915. if (has_dispatch_motion_direction()) {
  1916. // required .message.Dispatch_motion_direction dispatch_motion_direction = 3;
  1917. total_size += 1 +
  1918. ::google::protobuf::internal::WireFormatLite::EnumSize(this->dispatch_motion_direction());
  1919. }
  1920. if (has_terminal_id()) {
  1921. // required int32 terminal_id = 4;
  1922. total_size += 1 +
  1923. ::google::protobuf::internal::WireFormatLite::Int32Size(
  1924. this->terminal_id());
  1925. }
  1926. if (has_parkspace_id()) {
  1927. // required int32 parkspace_id = 5;
  1928. total_size += 1 +
  1929. ::google::protobuf::internal::WireFormatLite::Int32Size(
  1930. this->parkspace_id());
  1931. }
  1932. return total_size;
  1933. }
  1934. size_t Dispatch_request_msg::ByteSizeLong() const {
  1935. // @@protoc_insertion_point(message_byte_size_start:message.Dispatch_request_msg)
  1936. size_t total_size = 0;
  1937. if (_internal_metadata_.have_unknown_fields()) {
  1938. total_size +=
  1939. ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
  1940. _internal_metadata_.unknown_fields());
  1941. }
  1942. if (((_has_bits_[0] & 0x0000003b) ^ 0x0000003b) == 0) { // All required fields are present.
  1943. // required string command_key = 2;
  1944. total_size += 1 +
  1945. ::google::protobuf::internal::WireFormatLite::StringSize(
  1946. this->command_key());
  1947. // required .message.Base_info base_info = 1;
  1948. total_size += 1 +
  1949. ::google::protobuf::internal::WireFormatLite::MessageSize(
  1950. *base_info_);
  1951. // required .message.Dispatch_motion_direction dispatch_motion_direction = 3;
  1952. total_size += 1 +
  1953. ::google::protobuf::internal::WireFormatLite::EnumSize(this->dispatch_motion_direction());
  1954. // required int32 terminal_id = 4;
  1955. total_size += 1 +
  1956. ::google::protobuf::internal::WireFormatLite::Int32Size(
  1957. this->terminal_id());
  1958. // required int32 parkspace_id = 5;
  1959. total_size += 1 +
  1960. ::google::protobuf::internal::WireFormatLite::Int32Size(
  1961. this->parkspace_id());
  1962. } else {
  1963. total_size += RequiredFieldsByteSizeFallback();
  1964. }
  1965. // optional .message.Locate_information locate_information = 6;
  1966. if (has_locate_information()) {
  1967. total_size += 1 +
  1968. ::google::protobuf::internal::WireFormatLite::MessageSize(
  1969. *locate_information_);
  1970. }
  1971. int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
  1972. SetCachedSize(cached_size);
  1973. return total_size;
  1974. }
  1975. void Dispatch_request_msg::MergeFrom(const ::google::protobuf::Message& from) {
  1976. // @@protoc_insertion_point(generalized_merge_from_start:message.Dispatch_request_msg)
  1977. GOOGLE_DCHECK_NE(&from, this);
  1978. const Dispatch_request_msg* source =
  1979. ::google::protobuf::internal::DynamicCastToGenerated<const Dispatch_request_msg>(
  1980. &from);
  1981. if (source == NULL) {
  1982. // @@protoc_insertion_point(generalized_merge_from_cast_fail:message.Dispatch_request_msg)
  1983. ::google::protobuf::internal::ReflectionOps::Merge(from, this);
  1984. } else {
  1985. // @@protoc_insertion_point(generalized_merge_from_cast_success:message.Dispatch_request_msg)
  1986. MergeFrom(*source);
  1987. }
  1988. }
  1989. void Dispatch_request_msg::MergeFrom(const Dispatch_request_msg& from) {
  1990. // @@protoc_insertion_point(class_specific_merge_from_start:message.Dispatch_request_msg)
  1991. GOOGLE_DCHECK_NE(&from, this);
  1992. _internal_metadata_.MergeFrom(from._internal_metadata_);
  1993. ::google::protobuf::uint32 cached_has_bits = 0;
  1994. (void) cached_has_bits;
  1995. cached_has_bits = from._has_bits_[0];
  1996. if (cached_has_bits & 63u) {
  1997. if (cached_has_bits & 0x00000001u) {
  1998. set_has_command_key();
  1999. command_key_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.command_key_);
  2000. }
  2001. if (cached_has_bits & 0x00000002u) {
  2002. mutable_base_info()->::message::Base_info::MergeFrom(from.base_info());
  2003. }
  2004. if (cached_has_bits & 0x00000004u) {
  2005. mutable_locate_information()->::message::Locate_information::MergeFrom(from.locate_information());
  2006. }
  2007. if (cached_has_bits & 0x00000008u) {
  2008. dispatch_motion_direction_ = from.dispatch_motion_direction_;
  2009. }
  2010. if (cached_has_bits & 0x00000010u) {
  2011. terminal_id_ = from.terminal_id_;
  2012. }
  2013. if (cached_has_bits & 0x00000020u) {
  2014. parkspace_id_ = from.parkspace_id_;
  2015. }
  2016. _has_bits_[0] |= cached_has_bits;
  2017. }
  2018. }
  2019. void Dispatch_request_msg::CopyFrom(const ::google::protobuf::Message& from) {
  2020. // @@protoc_insertion_point(generalized_copy_from_start:message.Dispatch_request_msg)
  2021. if (&from == this) return;
  2022. Clear();
  2023. MergeFrom(from);
  2024. }
  2025. void Dispatch_request_msg::CopyFrom(const Dispatch_request_msg& from) {
  2026. // @@protoc_insertion_point(class_specific_copy_from_start:message.Dispatch_request_msg)
  2027. if (&from == this) return;
  2028. Clear();
  2029. MergeFrom(from);
  2030. }
  2031. bool Dispatch_request_msg::IsInitialized() const {
  2032. if ((_has_bits_[0] & 0x0000003b) != 0x0000003b) return false;
  2033. if (has_base_info()) {
  2034. if (!this->base_info_->IsInitialized()) return false;
  2035. }
  2036. return true;
  2037. }
  2038. void Dispatch_request_msg::Swap(Dispatch_request_msg* other) {
  2039. if (other == this) return;
  2040. InternalSwap(other);
  2041. }
  2042. void Dispatch_request_msg::InternalSwap(Dispatch_request_msg* other) {
  2043. using std::swap;
  2044. command_key_.Swap(&other->command_key_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  2045. GetArenaNoVirtual());
  2046. swap(base_info_, other->base_info_);
  2047. swap(locate_information_, other->locate_information_);
  2048. swap(dispatch_motion_direction_, other->dispatch_motion_direction_);
  2049. swap(terminal_id_, other->terminal_id_);
  2050. swap(parkspace_id_, other->parkspace_id_);
  2051. swap(_has_bits_[0], other->_has_bits_[0]);
  2052. _internal_metadata_.Swap(&other->_internal_metadata_);
  2053. }
  2054. ::google::protobuf::Metadata Dispatch_request_msg::GetMetadata() const {
  2055. protobuf_dispatch_5fmessage_2eproto::protobuf_AssignDescriptorsOnce();
  2056. return ::protobuf_dispatch_5fmessage_2eproto::file_level_metadata[kIndexInFileMessages];
  2057. }
  2058. // ===================================================================
  2059. void Dispatch_response_msg::InitAsDefaultInstance() {
  2060. ::message::_Dispatch_response_msg_default_instance_._instance.get_mutable()->base_info_ = const_cast< ::message::Base_info*>(
  2061. ::message::Base_info::internal_default_instance());
  2062. ::message::_Dispatch_response_msg_default_instance_._instance.get_mutable()->error_manager_ = const_cast< ::message::Error_manager*>(
  2063. ::message::Error_manager::internal_default_instance());
  2064. }
  2065. void Dispatch_response_msg::clear_base_info() {
  2066. if (base_info_ != NULL) base_info_->Clear();
  2067. clear_has_base_info();
  2068. }
  2069. void Dispatch_response_msg::clear_error_manager() {
  2070. if (error_manager_ != NULL) error_manager_->Clear();
  2071. clear_has_error_manager();
  2072. }
  2073. #if !defined(_MSC_VER) || _MSC_VER >= 1900
  2074. const int Dispatch_response_msg::kBaseInfoFieldNumber;
  2075. const int Dispatch_response_msg::kCommandKeyFieldNumber;
  2076. const int Dispatch_response_msg::kErrorManagerFieldNumber;
  2077. #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
  2078. Dispatch_response_msg::Dispatch_response_msg()
  2079. : ::google::protobuf::Message(), _internal_metadata_(NULL) {
  2080. ::google::protobuf::internal::InitSCC(
  2081. &protobuf_dispatch_5fmessage_2eproto::scc_info_Dispatch_response_msg.base);
  2082. SharedCtor();
  2083. // @@protoc_insertion_point(constructor:message.Dispatch_response_msg)
  2084. }
  2085. Dispatch_response_msg::Dispatch_response_msg(const Dispatch_response_msg& from)
  2086. : ::google::protobuf::Message(),
  2087. _internal_metadata_(NULL),
  2088. _has_bits_(from._has_bits_) {
  2089. _internal_metadata_.MergeFrom(from._internal_metadata_);
  2090. command_key_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  2091. if (from.has_command_key()) {
  2092. command_key_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.command_key_);
  2093. }
  2094. if (from.has_base_info()) {
  2095. base_info_ = new ::message::Base_info(*from.base_info_);
  2096. } else {
  2097. base_info_ = NULL;
  2098. }
  2099. if (from.has_error_manager()) {
  2100. error_manager_ = new ::message::Error_manager(*from.error_manager_);
  2101. } else {
  2102. error_manager_ = NULL;
  2103. }
  2104. // @@protoc_insertion_point(copy_constructor:message.Dispatch_response_msg)
  2105. }
  2106. void Dispatch_response_msg::SharedCtor() {
  2107. command_key_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  2108. ::memset(&base_info_, 0, static_cast<size_t>(
  2109. reinterpret_cast<char*>(&error_manager_) -
  2110. reinterpret_cast<char*>(&base_info_)) + sizeof(error_manager_));
  2111. }
  2112. Dispatch_response_msg::~Dispatch_response_msg() {
  2113. // @@protoc_insertion_point(destructor:message.Dispatch_response_msg)
  2114. SharedDtor();
  2115. }
  2116. void Dispatch_response_msg::SharedDtor() {
  2117. command_key_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  2118. if (this != internal_default_instance()) delete base_info_;
  2119. if (this != internal_default_instance()) delete error_manager_;
  2120. }
  2121. void Dispatch_response_msg::SetCachedSize(int size) const {
  2122. _cached_size_.Set(size);
  2123. }
  2124. const ::google::protobuf::Descriptor* Dispatch_response_msg::descriptor() {
  2125. ::protobuf_dispatch_5fmessage_2eproto::protobuf_AssignDescriptorsOnce();
  2126. return ::protobuf_dispatch_5fmessage_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
  2127. }
  2128. const Dispatch_response_msg& Dispatch_response_msg::default_instance() {
  2129. ::google::protobuf::internal::InitSCC(&protobuf_dispatch_5fmessage_2eproto::scc_info_Dispatch_response_msg.base);
  2130. return *internal_default_instance();
  2131. }
  2132. void Dispatch_response_msg::Clear() {
  2133. // @@protoc_insertion_point(message_clear_start:message.Dispatch_response_msg)
  2134. ::google::protobuf::uint32 cached_has_bits = 0;
  2135. // Prevent compiler warnings about cached_has_bits being unused
  2136. (void) cached_has_bits;
  2137. cached_has_bits = _has_bits_[0];
  2138. if (cached_has_bits & 7u) {
  2139. if (cached_has_bits & 0x00000001u) {
  2140. command_key_.ClearNonDefaultToEmptyNoArena();
  2141. }
  2142. if (cached_has_bits & 0x00000002u) {
  2143. GOOGLE_DCHECK(base_info_ != NULL);
  2144. base_info_->Clear();
  2145. }
  2146. if (cached_has_bits & 0x00000004u) {
  2147. GOOGLE_DCHECK(error_manager_ != NULL);
  2148. error_manager_->Clear();
  2149. }
  2150. }
  2151. _has_bits_.Clear();
  2152. _internal_metadata_.Clear();
  2153. }
  2154. bool Dispatch_response_msg::MergePartialFromCodedStream(
  2155. ::google::protobuf::io::CodedInputStream* input) {
  2156. #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
  2157. ::google::protobuf::uint32 tag;
  2158. // @@protoc_insertion_point(parse_start:message.Dispatch_response_msg)
  2159. for (;;) {
  2160. ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
  2161. tag = p.first;
  2162. if (!p.second) goto handle_unusual;
  2163. switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
  2164. // required .message.Base_info base_info = 1;
  2165. case 1: {
  2166. if (static_cast< ::google::protobuf::uint8>(tag) ==
  2167. static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
  2168. DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
  2169. input, mutable_base_info()));
  2170. } else {
  2171. goto handle_unusual;
  2172. }
  2173. break;
  2174. }
  2175. // required string command_key = 2;
  2176. case 2: {
  2177. if (static_cast< ::google::protobuf::uint8>(tag) ==
  2178. static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) {
  2179. DO_(::google::protobuf::internal::WireFormatLite::ReadString(
  2180. input, this->mutable_command_key()));
  2181. ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
  2182. this->command_key().data(), static_cast<int>(this->command_key().length()),
  2183. ::google::protobuf::internal::WireFormat::PARSE,
  2184. "message.Dispatch_response_msg.command_key");
  2185. } else {
  2186. goto handle_unusual;
  2187. }
  2188. break;
  2189. }
  2190. // required .message.Error_manager error_manager = 3;
  2191. case 3: {
  2192. if (static_cast< ::google::protobuf::uint8>(tag) ==
  2193. static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) {
  2194. DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
  2195. input, mutable_error_manager()));
  2196. } else {
  2197. goto handle_unusual;
  2198. }
  2199. break;
  2200. }
  2201. default: {
  2202. handle_unusual:
  2203. if (tag == 0) {
  2204. goto success;
  2205. }
  2206. DO_(::google::protobuf::internal::WireFormat::SkipField(
  2207. input, tag, _internal_metadata_.mutable_unknown_fields()));
  2208. break;
  2209. }
  2210. }
  2211. }
  2212. success:
  2213. // @@protoc_insertion_point(parse_success:message.Dispatch_response_msg)
  2214. return true;
  2215. failure:
  2216. // @@protoc_insertion_point(parse_failure:message.Dispatch_response_msg)
  2217. return false;
  2218. #undef DO_
  2219. }
  2220. void Dispatch_response_msg::SerializeWithCachedSizes(
  2221. ::google::protobuf::io::CodedOutputStream* output) const {
  2222. // @@protoc_insertion_point(serialize_start:message.Dispatch_response_msg)
  2223. ::google::protobuf::uint32 cached_has_bits = 0;
  2224. (void) cached_has_bits;
  2225. cached_has_bits = _has_bits_[0];
  2226. // required .message.Base_info base_info = 1;
  2227. if (cached_has_bits & 0x00000002u) {
  2228. ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
  2229. 1, this->_internal_base_info(), output);
  2230. }
  2231. // required string command_key = 2;
  2232. if (cached_has_bits & 0x00000001u) {
  2233. ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
  2234. this->command_key().data(), static_cast<int>(this->command_key().length()),
  2235. ::google::protobuf::internal::WireFormat::SERIALIZE,
  2236. "message.Dispatch_response_msg.command_key");
  2237. ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
  2238. 2, this->command_key(), output);
  2239. }
  2240. // required .message.Error_manager error_manager = 3;
  2241. if (cached_has_bits & 0x00000004u) {
  2242. ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
  2243. 3, this->_internal_error_manager(), output);
  2244. }
  2245. if (_internal_metadata_.have_unknown_fields()) {
  2246. ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
  2247. _internal_metadata_.unknown_fields(), output);
  2248. }
  2249. // @@protoc_insertion_point(serialize_end:message.Dispatch_response_msg)
  2250. }
  2251. ::google::protobuf::uint8* Dispatch_response_msg::InternalSerializeWithCachedSizesToArray(
  2252. bool deterministic, ::google::protobuf::uint8* target) const {
  2253. (void)deterministic; // Unused
  2254. // @@protoc_insertion_point(serialize_to_array_start:message.Dispatch_response_msg)
  2255. ::google::protobuf::uint32 cached_has_bits = 0;
  2256. (void) cached_has_bits;
  2257. cached_has_bits = _has_bits_[0];
  2258. // required .message.Base_info base_info = 1;
  2259. if (cached_has_bits & 0x00000002u) {
  2260. target = ::google::protobuf::internal::WireFormatLite::
  2261. InternalWriteMessageToArray(
  2262. 1, this->_internal_base_info(), deterministic, target);
  2263. }
  2264. // required string command_key = 2;
  2265. if (cached_has_bits & 0x00000001u) {
  2266. ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
  2267. this->command_key().data(), static_cast<int>(this->command_key().length()),
  2268. ::google::protobuf::internal::WireFormat::SERIALIZE,
  2269. "message.Dispatch_response_msg.command_key");
  2270. target =
  2271. ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
  2272. 2, this->command_key(), target);
  2273. }
  2274. // required .message.Error_manager error_manager = 3;
  2275. if (cached_has_bits & 0x00000004u) {
  2276. target = ::google::protobuf::internal::WireFormatLite::
  2277. InternalWriteMessageToArray(
  2278. 3, this->_internal_error_manager(), deterministic, target);
  2279. }
  2280. if (_internal_metadata_.have_unknown_fields()) {
  2281. target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
  2282. _internal_metadata_.unknown_fields(), target);
  2283. }
  2284. // @@protoc_insertion_point(serialize_to_array_end:message.Dispatch_response_msg)
  2285. return target;
  2286. }
  2287. size_t Dispatch_response_msg::RequiredFieldsByteSizeFallback() const {
  2288. // @@protoc_insertion_point(required_fields_byte_size_fallback_start:message.Dispatch_response_msg)
  2289. size_t total_size = 0;
  2290. if (has_command_key()) {
  2291. // required string command_key = 2;
  2292. total_size += 1 +
  2293. ::google::protobuf::internal::WireFormatLite::StringSize(
  2294. this->command_key());
  2295. }
  2296. if (has_base_info()) {
  2297. // required .message.Base_info base_info = 1;
  2298. total_size += 1 +
  2299. ::google::protobuf::internal::WireFormatLite::MessageSize(
  2300. *base_info_);
  2301. }
  2302. if (has_error_manager()) {
  2303. // required .message.Error_manager error_manager = 3;
  2304. total_size += 1 +
  2305. ::google::protobuf::internal::WireFormatLite::MessageSize(
  2306. *error_manager_);
  2307. }
  2308. return total_size;
  2309. }
  2310. size_t Dispatch_response_msg::ByteSizeLong() const {
  2311. // @@protoc_insertion_point(message_byte_size_start:message.Dispatch_response_msg)
  2312. size_t total_size = 0;
  2313. if (_internal_metadata_.have_unknown_fields()) {
  2314. total_size +=
  2315. ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
  2316. _internal_metadata_.unknown_fields());
  2317. }
  2318. if (((_has_bits_[0] & 0x00000007) ^ 0x00000007) == 0) { // All required fields are present.
  2319. // required string command_key = 2;
  2320. total_size += 1 +
  2321. ::google::protobuf::internal::WireFormatLite::StringSize(
  2322. this->command_key());
  2323. // required .message.Base_info base_info = 1;
  2324. total_size += 1 +
  2325. ::google::protobuf::internal::WireFormatLite::MessageSize(
  2326. *base_info_);
  2327. // required .message.Error_manager error_manager = 3;
  2328. total_size += 1 +
  2329. ::google::protobuf::internal::WireFormatLite::MessageSize(
  2330. *error_manager_);
  2331. } else {
  2332. total_size += RequiredFieldsByteSizeFallback();
  2333. }
  2334. int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
  2335. SetCachedSize(cached_size);
  2336. return total_size;
  2337. }
  2338. void Dispatch_response_msg::MergeFrom(const ::google::protobuf::Message& from) {
  2339. // @@protoc_insertion_point(generalized_merge_from_start:message.Dispatch_response_msg)
  2340. GOOGLE_DCHECK_NE(&from, this);
  2341. const Dispatch_response_msg* source =
  2342. ::google::protobuf::internal::DynamicCastToGenerated<const Dispatch_response_msg>(
  2343. &from);
  2344. if (source == NULL) {
  2345. // @@protoc_insertion_point(generalized_merge_from_cast_fail:message.Dispatch_response_msg)
  2346. ::google::protobuf::internal::ReflectionOps::Merge(from, this);
  2347. } else {
  2348. // @@protoc_insertion_point(generalized_merge_from_cast_success:message.Dispatch_response_msg)
  2349. MergeFrom(*source);
  2350. }
  2351. }
  2352. void Dispatch_response_msg::MergeFrom(const Dispatch_response_msg& from) {
  2353. // @@protoc_insertion_point(class_specific_merge_from_start:message.Dispatch_response_msg)
  2354. GOOGLE_DCHECK_NE(&from, this);
  2355. _internal_metadata_.MergeFrom(from._internal_metadata_);
  2356. ::google::protobuf::uint32 cached_has_bits = 0;
  2357. (void) cached_has_bits;
  2358. cached_has_bits = from._has_bits_[0];
  2359. if (cached_has_bits & 7u) {
  2360. if (cached_has_bits & 0x00000001u) {
  2361. set_has_command_key();
  2362. command_key_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.command_key_);
  2363. }
  2364. if (cached_has_bits & 0x00000002u) {
  2365. mutable_base_info()->::message::Base_info::MergeFrom(from.base_info());
  2366. }
  2367. if (cached_has_bits & 0x00000004u) {
  2368. mutable_error_manager()->::message::Error_manager::MergeFrom(from.error_manager());
  2369. }
  2370. }
  2371. }
  2372. void Dispatch_response_msg::CopyFrom(const ::google::protobuf::Message& from) {
  2373. // @@protoc_insertion_point(generalized_copy_from_start:message.Dispatch_response_msg)
  2374. if (&from == this) return;
  2375. Clear();
  2376. MergeFrom(from);
  2377. }
  2378. void Dispatch_response_msg::CopyFrom(const Dispatch_response_msg& from) {
  2379. // @@protoc_insertion_point(class_specific_copy_from_start:message.Dispatch_response_msg)
  2380. if (&from == this) return;
  2381. Clear();
  2382. MergeFrom(from);
  2383. }
  2384. bool Dispatch_response_msg::IsInitialized() const {
  2385. if ((_has_bits_[0] & 0x00000007) != 0x00000007) return false;
  2386. if (has_base_info()) {
  2387. if (!this->base_info_->IsInitialized()) return false;
  2388. }
  2389. if (has_error_manager()) {
  2390. if (!this->error_manager_->IsInitialized()) return false;
  2391. }
  2392. return true;
  2393. }
  2394. void Dispatch_response_msg::Swap(Dispatch_response_msg* other) {
  2395. if (other == this) return;
  2396. InternalSwap(other);
  2397. }
  2398. void Dispatch_response_msg::InternalSwap(Dispatch_response_msg* other) {
  2399. using std::swap;
  2400. command_key_.Swap(&other->command_key_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  2401. GetArenaNoVirtual());
  2402. swap(base_info_, other->base_info_);
  2403. swap(error_manager_, other->error_manager_);
  2404. swap(_has_bits_[0], other->_has_bits_[0]);
  2405. _internal_metadata_.Swap(&other->_internal_metadata_);
  2406. }
  2407. ::google::protobuf::Metadata Dispatch_response_msg::GetMetadata() const {
  2408. protobuf_dispatch_5fmessage_2eproto::protobuf_AssignDescriptorsOnce();
  2409. return ::protobuf_dispatch_5fmessage_2eproto::file_level_metadata[kIndexInFileMessages];
  2410. }
  2411. // @@protoc_insertion_point(namespace_scope)
  2412. } // namespace message
  2413. namespace google {
  2414. namespace protobuf {
  2415. template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::message::Device_position* Arena::CreateMaybeMessage< ::message::Device_position >(Arena* arena) {
  2416. return Arena::CreateInternal< ::message::Device_position >(arena);
  2417. }
  2418. template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::message::Dispatch_manager_status_msg* Arena::CreateMaybeMessage< ::message::Dispatch_manager_status_msg >(Arena* arena) {
  2419. return Arena::CreateInternal< ::message::Dispatch_manager_status_msg >(arena);
  2420. }
  2421. template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::message::Dispatch_terminal_status_msg* Arena::CreateMaybeMessage< ::message::Dispatch_terminal_status_msg >(Arena* arena) {
  2422. return Arena::CreateInternal< ::message::Dispatch_terminal_status_msg >(arena);
  2423. }
  2424. template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::message::Dispatch_request_msg* Arena::CreateMaybeMessage< ::message::Dispatch_request_msg >(Arena* arena) {
  2425. return Arena::CreateInternal< ::message::Dispatch_request_msg >(arena);
  2426. }
  2427. template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::message::Dispatch_response_msg* Arena::CreateMaybeMessage< ::message::Dispatch_response_msg >(Arena* arena) {
  2428. return Arena::CreateInternal< ::message::Dispatch_response_msg >(arena);
  2429. }
  2430. } // namespace protobuf
  2431. } // namespace google
  2432. // @@protoc_insertion_point(global_scope)