dispatch_message.pb.cc 104 KB

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