dispatch_message.pb.cc 105 KB

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