dispatch_message.pb.cc 130 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455
  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_data_msgDefaultTypeInternal {
  26. public:
  27. ::google::protobuf::internal::ExplicitlyConstructed<Dispatch_manager_data_msg>
  28. _instance;
  29. } _Dispatch_manager_data_msg_default_instance_;
  30. class Dispatch_manager_status_msgDefaultTypeInternal {
  31. public:
  32. ::google::protobuf::internal::ExplicitlyConstructed<Dispatch_manager_status_msg>
  33. _instance;
  34. } _Dispatch_manager_status_msg_default_instance_;
  35. class Dispatch_terminal_status_msgDefaultTypeInternal {
  36. public:
  37. ::google::protobuf::internal::ExplicitlyConstructed<Dispatch_terminal_status_msg>
  38. _instance;
  39. } _Dispatch_terminal_status_msg_default_instance_;
  40. class Dispatch_request_msgDefaultTypeInternal {
  41. public:
  42. ::google::protobuf::internal::ExplicitlyConstructed<Dispatch_request_msg>
  43. _instance;
  44. } _Dispatch_request_msg_default_instance_;
  45. class Dispatch_response_msgDefaultTypeInternal {
  46. public:
  47. ::google::protobuf::internal::ExplicitlyConstructed<Dispatch_response_msg>
  48. _instance;
  49. } _Dispatch_response_msg_default_instance_;
  50. } // namespace message
  51. namespace protobuf_dispatch_5fmessage_2eproto {
  52. void InitDefaultsDevice_positionImpl() {
  53. GOOGLE_PROTOBUF_VERIFY_VERSION;
  54. #ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
  55. ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
  56. #else
  57. ::google::protobuf::internal::InitProtobufDefaults();
  58. #endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
  59. {
  60. void* ptr = &::message::_Device_position_default_instance_;
  61. new (ptr) ::message::Device_position();
  62. ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
  63. }
  64. ::message::Device_position::InitAsDefaultInstance();
  65. }
  66. void InitDefaultsDevice_position() {
  67. static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
  68. ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsDevice_positionImpl);
  69. }
  70. void InitDefaultsDispatch_manager_data_msgImpl() {
  71. GOOGLE_PROTOBUF_VERIFY_VERSION;
  72. #ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
  73. ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
  74. #else
  75. ::google::protobuf::internal::InitProtobufDefaults();
  76. #endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
  77. {
  78. void* ptr = &::message::_Dispatch_manager_data_msg_default_instance_;
  79. new (ptr) ::message::Dispatch_manager_data_msg();
  80. ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
  81. }
  82. ::message::Dispatch_manager_data_msg::InitAsDefaultInstance();
  83. }
  84. void InitDefaultsDispatch_manager_data_msg() {
  85. static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
  86. ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsDispatch_manager_data_msgImpl);
  87. }
  88. void InitDefaultsDispatch_manager_status_msgImpl() {
  89. GOOGLE_PROTOBUF_VERIFY_VERSION;
  90. #ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
  91. ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
  92. #else
  93. ::google::protobuf::internal::InitProtobufDefaults();
  94. #endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
  95. protobuf_message_5fbase_2eproto::InitDefaultsBase_info();
  96. {
  97. void* ptr = &::message::_Dispatch_manager_status_msg_default_instance_;
  98. new (ptr) ::message::Dispatch_manager_status_msg();
  99. ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
  100. }
  101. ::message::Dispatch_manager_status_msg::InitAsDefaultInstance();
  102. }
  103. void InitDefaultsDispatch_manager_status_msg() {
  104. static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
  105. ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsDispatch_manager_status_msgImpl);
  106. }
  107. void InitDefaultsDispatch_terminal_status_msgImpl() {
  108. GOOGLE_PROTOBUF_VERIFY_VERSION;
  109. #ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
  110. ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
  111. #else
  112. ::google::protobuf::internal::InitProtobufDefaults();
  113. #endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
  114. protobuf_message_5fbase_2eproto::InitDefaultsBase_info();
  115. {
  116. void* ptr = &::message::_Dispatch_terminal_status_msg_default_instance_;
  117. new (ptr) ::message::Dispatch_terminal_status_msg();
  118. ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
  119. }
  120. ::message::Dispatch_terminal_status_msg::InitAsDefaultInstance();
  121. }
  122. void InitDefaultsDispatch_terminal_status_msg() {
  123. static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
  124. ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsDispatch_terminal_status_msgImpl);
  125. }
  126. void InitDefaultsDispatch_request_msgImpl() {
  127. GOOGLE_PROTOBUF_VERIFY_VERSION;
  128. #ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
  129. ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
  130. #else
  131. ::google::protobuf::internal::InitProtobufDefaults();
  132. #endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
  133. protobuf_message_5fbase_2eproto::InitDefaultsBase_info();
  134. protobuf_message_5fbase_2eproto::InitDefaultsParkspace_info();
  135. protobuf_message_5fbase_2eproto::InitDefaultsLocate_information();
  136. {
  137. void* ptr = &::message::_Dispatch_request_msg_default_instance_;
  138. new (ptr) ::message::Dispatch_request_msg();
  139. ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
  140. }
  141. ::message::Dispatch_request_msg::InitAsDefaultInstance();
  142. }
  143. void InitDefaultsDispatch_request_msg() {
  144. static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
  145. ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsDispatch_request_msgImpl);
  146. }
  147. void InitDefaultsDispatch_response_msgImpl() {
  148. GOOGLE_PROTOBUF_VERIFY_VERSION;
  149. #ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
  150. ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
  151. #else
  152. ::google::protobuf::internal::InitProtobufDefaults();
  153. #endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
  154. protobuf_message_5fbase_2eproto::InitDefaultsBase_info();
  155. protobuf_message_5fbase_2eproto::InitDefaultsError_manager();
  156. {
  157. void* ptr = &::message::_Dispatch_response_msg_default_instance_;
  158. new (ptr) ::message::Dispatch_response_msg();
  159. ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
  160. }
  161. ::message::Dispatch_response_msg::InitAsDefaultInstance();
  162. }
  163. void InitDefaultsDispatch_response_msg() {
  164. static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
  165. ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsDispatch_response_msgImpl);
  166. }
  167. ::google::protobuf::Metadata file_level_metadata[6];
  168. const ::google::protobuf::EnumDescriptor* file_level_enum_descriptors[9];
  169. const ::google::protobuf::uint32 TableStruct::offsets[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
  170. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Device_position, _has_bits_),
  171. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Device_position, _internal_metadata_),
  172. ~0u, // no _extensions_
  173. ~0u, // no _oneof_case_
  174. ~0u, // no _weak_field_map_
  175. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Device_position, x_),
  176. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Device_position, y_),
  177. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Device_position, z_),
  178. 0,
  179. 1,
  180. 2,
  181. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Dispatch_manager_data_msg, _has_bits_),
  182. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Dispatch_manager_data_msg, _internal_metadata_),
  183. ~0u, // no _extensions_
  184. ~0u, // no _oneof_case_
  185. ~0u, // no _weak_field_map_
  186. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Dispatch_manager_status_msg, _has_bits_),
  187. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Dispatch_manager_status_msg, _internal_metadata_),
  188. ~0u, // no _extensions_
  189. ~0u, // no _oneof_case_
  190. ~0u, // no _weak_field_map_
  191. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Dispatch_manager_status_msg, base_info_),
  192. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Dispatch_manager_status_msg, dispatch_id_),
  193. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Dispatch_manager_status_msg, dispatch_manager_status_),
  194. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Dispatch_manager_status_msg, robot_1_status_),
  195. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Dispatch_manager_status_msg, robot_2_status_),
  196. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Dispatch_manager_status_msg, carrier_1_status_),
  197. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Dispatch_manager_status_msg, carrier_2_status_),
  198. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Dispatch_manager_status_msg, carrier_3_status_),
  199. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Dispatch_manager_status_msg, passageway_0_status_),
  200. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Dispatch_manager_status_msg, passageway_1_status_),
  201. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Dispatch_manager_status_msg, passageway_2_status_),
  202. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Dispatch_manager_status_msg, passageway_3_status_),
  203. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Dispatch_manager_status_msg, passageway_4_status_),
  204. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Dispatch_manager_status_msg, passageway_5_status_),
  205. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Dispatch_manager_status_msg, passageway_6_status_),
  206. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Dispatch_manager_status_msg, passageway_7_status_),
  207. 0,
  208. 1,
  209. 2,
  210. 3,
  211. 4,
  212. 5,
  213. 6,
  214. 7,
  215. 8,
  216. 9,
  217. 10,
  218. 11,
  219. 12,
  220. 13,
  221. 14,
  222. 15,
  223. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Dispatch_terminal_status_msg, _has_bits_),
  224. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Dispatch_terminal_status_msg, _internal_metadata_),
  225. ~0u, // no _extensions_
  226. ~0u, // no _oneof_case_
  227. ~0u, // no _weak_field_map_
  228. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Dispatch_terminal_status_msg, base_info_),
  229. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Dispatch_terminal_status_msg, terminal_id_),
  230. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Dispatch_terminal_status_msg, terminal_status_),
  231. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Dispatch_terminal_status_msg, passageway_direction_),
  232. 0,
  233. 1,
  234. 2,
  235. 3,
  236. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Dispatch_request_msg, _has_bits_),
  237. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Dispatch_request_msg, _internal_metadata_),
  238. ~0u, // no _extensions_
  239. ~0u, // no _oneof_case_
  240. ~0u, // no _weak_field_map_
  241. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Dispatch_request_msg, base_info_),
  242. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Dispatch_request_msg, command_key_),
  243. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Dispatch_request_msg, dispatch_motion_direction_),
  244. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Dispatch_request_msg, terminal_id_),
  245. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Dispatch_request_msg, parkspace_info_),
  246. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Dispatch_request_msg, locate_information_),
  247. 1,
  248. 0,
  249. 4,
  250. 5,
  251. 2,
  252. 3,
  253. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Dispatch_response_msg, _has_bits_),
  254. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Dispatch_response_msg, _internal_metadata_),
  255. ~0u, // no _extensions_
  256. ~0u, // no _oneof_case_
  257. ~0u, // no _weak_field_map_
  258. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Dispatch_response_msg, base_info_),
  259. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Dispatch_response_msg, command_key_),
  260. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::message::Dispatch_response_msg, error_manager_),
  261. 1,
  262. 0,
  263. 2,
  264. };
  265. static const ::google::protobuf::internal::MigrationSchema schemas[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
  266. { 0, 8, sizeof(::message::Device_position)},
  267. { 11, 16, sizeof(::message::Dispatch_manager_data_msg)},
  268. { 16, 37, sizeof(::message::Dispatch_manager_status_msg)},
  269. { 53, 62, sizeof(::message::Dispatch_terminal_status_msg)},
  270. { 66, 77, sizeof(::message::Dispatch_request_msg)},
  271. { 83, 91, sizeof(::message::Dispatch_response_msg)},
  272. };
  273. static ::google::protobuf::Message const * const file_default_instances[] = {
  274. reinterpret_cast<const ::google::protobuf::Message*>(&::message::_Device_position_default_instance_),
  275. reinterpret_cast<const ::google::protobuf::Message*>(&::message::_Dispatch_manager_data_msg_default_instance_),
  276. reinterpret_cast<const ::google::protobuf::Message*>(&::message::_Dispatch_manager_status_msg_default_instance_),
  277. reinterpret_cast<const ::google::protobuf::Message*>(&::message::_Dispatch_terminal_status_msg_default_instance_),
  278. reinterpret_cast<const ::google::protobuf::Message*>(&::message::_Dispatch_request_msg_default_instance_),
  279. reinterpret_cast<const ::google::protobuf::Message*>(&::message::_Dispatch_response_msg_default_instance_),
  280. };
  281. void protobuf_AssignDescriptors() {
  282. AddDescriptors();
  283. ::google::protobuf::MessageFactory* factory = NULL;
  284. AssignDescriptors(
  285. "dispatch_message.proto", schemas, file_default_instances, TableStruct::offsets, factory,
  286. file_level_metadata, file_level_enum_descriptors, NULL);
  287. }
  288. void protobuf_AssignDescriptorsOnce() {
  289. static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
  290. ::google::protobuf::GoogleOnceInit(&once, &protobuf_AssignDescriptors);
  291. }
  292. void protobuf_RegisterTypes(const ::std::string&) GOOGLE_PROTOBUF_ATTRIBUTE_COLD;
  293. void protobuf_RegisterTypes(const ::std::string&) {
  294. protobuf_AssignDescriptorsOnce();
  295. ::google::protobuf::internal::RegisterAllTypes(file_level_metadata, 6);
  296. }
  297. void AddDescriptorsImpl() {
  298. InitDefaults();
  299. static const char descriptor[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
  300. "\n\026dispatch_message.proto\022\007message\032\022messa"
  301. "ge_base.proto\"2\n\017Device_position\022\t\n\001x\030\001 "
  302. "\002(\002\022\t\n\001y\030\002 \002(\002\022\t\n\001z\030\003 \002(\002\"\033\n\031Dispatch_ma"
  303. "nager_data_msg\"\257\007\n\033Dispatch_manager_stat"
  304. "us_msg\022%\n\tbase_info\030\001 \002(\0132\022.message.Base"
  305. "_info\022\023\n\013dispatch_id\030\002 \002(\005\022A\n\027dispatch_m"
  306. "anager_status\030\003 \002(\0162 .message.Dispatch_m"
  307. "anager_status\0227\n\016robot_1_status\030\004 \001(\0162\037."
  308. "message.Dispatch_device_status\0227\n\016robot_"
  309. "2_status\030\005 \001(\0162\037.message.Dispatch_device"
  310. "_status\0229\n\020carrier_1_status\030\006 \001(\0162\037.mess"
  311. "age.Dispatch_device_status\0229\n\020carrier_2_"
  312. "status\030\007 \001(\0162\037.message.Dispatch_device_s"
  313. "tatus\0229\n\020carrier_3_status\030\010 \001(\0162\037.messag"
  314. "e.Dispatch_device_status\022<\n\023passageway_0"
  315. "_status\030\t \001(\0162\037.message.Dispatch_device_"
  316. "status\022<\n\023passageway_1_status\030\n \001(\0162\037.me"
  317. "ssage.Dispatch_device_status\022<\n\023passagew"
  318. "ay_2_status\030\013 \001(\0162\037.message.Dispatch_dev"
  319. "ice_status\022<\n\023passageway_3_status\030\014 \001(\0162"
  320. "\037.message.Dispatch_device_status\022<\n\023pass"
  321. "ageway_4_status\030\r \001(\0162\037.message.Dispatch"
  322. "_device_status\022<\n\023passageway_5_status\030\016 "
  323. "\001(\0162\037.message.Dispatch_device_status\022<\n\023"
  324. "passageway_6_status\030\017 \001(\0162\037.message.Disp"
  325. "atch_device_status\022<\n\023passageway_7_statu"
  326. "s\030\020 \001(\0162\037.message.Dispatch_device_status"
  327. "\"\312\001\n\034Dispatch_terminal_status_msg\022%\n\tbas"
  328. "e_info\030\001 \002(\0132\022.message.Base_info\022\023\n\013term"
  329. "inal_id\030\002 \002(\005\0221\n\017terminal_status\030\003 \002(\0162\030"
  330. ".message.Terminal_status\022;\n\024passageway_d"
  331. "irection\030\004 \002(\0162\035.message.Passageway_dire"
  332. "ction\"\230\002\n\024Dispatch_request_msg\022%\n\tbase_i"
  333. "nfo\030\001 \002(\0132\022.message.Base_info\022\023\n\013command"
  334. "_key\030\002 \002(\t\022E\n\031dispatch_motion_direction\030"
  335. "\003 \002(\0162\".message.Dispatch_motion_directio"
  336. "n\022\023\n\013terminal_id\030\004 \002(\005\022/\n\016parkspace_info"
  337. "\030\005 \002(\0132\027.message.Parkspace_info\0227\n\022locat"
  338. "e_information\030\006 \001(\0132\033.message.Locate_inf"
  339. "ormation\"\202\001\n\025Dispatch_response_msg\022%\n\tba"
  340. "se_info\030\001 \002(\0132\022.message.Base_info\022\023\n\013com"
  341. "mand_key\030\002 \002(\t\022-\n\rerror_manager\030\003 \002(\0132\026."
  342. "message.Error_manager*\261\001\n\027Dispatch_manag"
  343. "er_status\022\035\n\031E_DISPATCH_MANAGER_UNKNOW\020\000"
  344. "\022\034\n\030E_DISPATCH_MANAGER_READY\020\001\022\034\n\030E_DISP"
  345. "ATCH_MANAGER_STORE\020\002\022\035\n\031E_DISPATCH_MANAG"
  346. "ER_PICKUP\020\003\022\034\n\030E_DISPATCH_MANAGER_FAULT\020"
  347. "\n*{\n\016Catcher_status\022\024\n\020E_CATCHER_UNKNOW\020"
  348. "\000\022\023\n\017E_CATCHER_READY\020\001\022\023\n\017E_CATCHER_STOR"
  349. "E\020\002\022\024\n\020E_CATCHER_PICKUP\020\003\022\023\n\017E_CATCHER_F"
  350. "AULT\020\n*{\n\016Carrier_status\022\024\n\020E_CARRIER_UN"
  351. "KNOW\020\000\022\023\n\017E_CARRIER_READY\020\001\022\023\n\017E_CARRIER"
  352. "_STORE\020\002\022\024\n\020E_CARRIER_PICKUP\020\003\022\023\n\017E_CARR"
  353. "IER_FAULT\020\n*\201\001\n\017Elevator_status\022\025\n\021E_ELE"
  354. "VATOR_UNKNOW\020\000\022\024\n\020E_ELEVATOR_READY\020\001\022\024\n\020"
  355. "E_ELEVATOR_STORE\020\002\022\025\n\021E_ELEVATOR_PICKUP\020"
  356. "\003\022\024\n\020E_ELEVATOR_FAULT\020\n*\215\001\n\021Passageway_s"
  357. "tatus\022\027\n\023E_PASSAGEWAY_UNKNOW\020\000\022\026\n\022E_PASS"
  358. "AGEWAY_READY\020\001\022\026\n\022E_PASSAGEWAY_STORE\020\002\022\027"
  359. "\n\023E_PASSAGEWAY_PICKUP\020\003\022\026\n\022E_PASSAGEWAY_"
  360. "FAULT\020\n*\201\001\n\017Terminal_status\022\025\n\021E_TERMINA"
  361. "L_UNKNOW\020\000\022\024\n\020E_TERMINAL_READY\020\001\022\024\n\020E_TE"
  362. "RMINAL_STORE\020\002\022\025\n\021E_TERMINAL_PICKUP\020\003\022\024\n"
  363. "\020E_TERMINAL_FAULT\020\n*B\n\024Passageway_direct"
  364. "ion\022\013\n\007E_INLET\020\000\022\014\n\010E_OUTLET\020\001\022\017\n\013E_BILA"
  365. "TERAL\020\002*>\n\031Dispatch_motion_direction\022\017\n\013"
  366. "E_STORE_CAR\020\000\022\020\n\014E_PICKUP_CAR\020\001*\204\001\n\026Disp"
  367. "atch_device_status\022\032\n\026DISPATCH_DEVICE_UN"
  368. "KNOW\020\000\022\031\n\025DISPATCH_DEVICE_READY\020\001\022\030\n\024DIS"
  369. "PATCH_DEVICE_BUSY\020\002\022\031\n\025DISPATCH_DEVICE_F"
  370. "AULT\020\n"
  371. };
  372. ::google::protobuf::DescriptorPool::InternalAddGeneratedFile(
  373. descriptor, 2806);
  374. ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile(
  375. "dispatch_message.proto", &protobuf_RegisterTypes);
  376. ::protobuf_message_5fbase_2eproto::AddDescriptors();
  377. }
  378. void AddDescriptors() {
  379. static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
  380. ::google::protobuf::GoogleOnceInit(&once, &AddDescriptorsImpl);
  381. }
  382. // Force AddDescriptors() to be called at dynamic initialization time.
  383. struct StaticDescriptorInitializer {
  384. StaticDescriptorInitializer() {
  385. AddDescriptors();
  386. }
  387. } static_descriptor_initializer;
  388. } // namespace protobuf_dispatch_5fmessage_2eproto
  389. namespace message {
  390. const ::google::protobuf::EnumDescriptor* Dispatch_manager_status_descriptor() {
  391. protobuf_dispatch_5fmessage_2eproto::protobuf_AssignDescriptorsOnce();
  392. return protobuf_dispatch_5fmessage_2eproto::file_level_enum_descriptors[0];
  393. }
  394. bool Dispatch_manager_status_IsValid(int value) {
  395. switch (value) {
  396. case 0:
  397. case 1:
  398. case 2:
  399. case 3:
  400. case 10:
  401. return true;
  402. default:
  403. return false;
  404. }
  405. }
  406. const ::google::protobuf::EnumDescriptor* Catcher_status_descriptor() {
  407. protobuf_dispatch_5fmessage_2eproto::protobuf_AssignDescriptorsOnce();
  408. return protobuf_dispatch_5fmessage_2eproto::file_level_enum_descriptors[1];
  409. }
  410. bool Catcher_status_IsValid(int value) {
  411. switch (value) {
  412. case 0:
  413. case 1:
  414. case 2:
  415. case 3:
  416. case 10:
  417. return true;
  418. default:
  419. return false;
  420. }
  421. }
  422. const ::google::protobuf::EnumDescriptor* Carrier_status_descriptor() {
  423. protobuf_dispatch_5fmessage_2eproto::protobuf_AssignDescriptorsOnce();
  424. return protobuf_dispatch_5fmessage_2eproto::file_level_enum_descriptors[2];
  425. }
  426. bool Carrier_status_IsValid(int value) {
  427. switch (value) {
  428. case 0:
  429. case 1:
  430. case 2:
  431. case 3:
  432. case 10:
  433. return true;
  434. default:
  435. return false;
  436. }
  437. }
  438. const ::google::protobuf::EnumDescriptor* Elevator_status_descriptor() {
  439. protobuf_dispatch_5fmessage_2eproto::protobuf_AssignDescriptorsOnce();
  440. return protobuf_dispatch_5fmessage_2eproto::file_level_enum_descriptors[3];
  441. }
  442. bool Elevator_status_IsValid(int value) {
  443. switch (value) {
  444. case 0:
  445. case 1:
  446. case 2:
  447. case 3:
  448. case 10:
  449. return true;
  450. default:
  451. return false;
  452. }
  453. }
  454. const ::google::protobuf::EnumDescriptor* Passageway_status_descriptor() {
  455. protobuf_dispatch_5fmessage_2eproto::protobuf_AssignDescriptorsOnce();
  456. return protobuf_dispatch_5fmessage_2eproto::file_level_enum_descriptors[4];
  457. }
  458. bool Passageway_status_IsValid(int value) {
  459. switch (value) {
  460. case 0:
  461. case 1:
  462. case 2:
  463. case 3:
  464. case 10:
  465. return true;
  466. default:
  467. return false;
  468. }
  469. }
  470. const ::google::protobuf::EnumDescriptor* Terminal_status_descriptor() {
  471. protobuf_dispatch_5fmessage_2eproto::protobuf_AssignDescriptorsOnce();
  472. return protobuf_dispatch_5fmessage_2eproto::file_level_enum_descriptors[5];
  473. }
  474. bool Terminal_status_IsValid(int value) {
  475. switch (value) {
  476. case 0:
  477. case 1:
  478. case 2:
  479. case 3:
  480. case 10:
  481. return true;
  482. default:
  483. return false;
  484. }
  485. }
  486. const ::google::protobuf::EnumDescriptor* Passageway_direction_descriptor() {
  487. protobuf_dispatch_5fmessage_2eproto::protobuf_AssignDescriptorsOnce();
  488. return protobuf_dispatch_5fmessage_2eproto::file_level_enum_descriptors[6];
  489. }
  490. bool Passageway_direction_IsValid(int value) {
  491. switch (value) {
  492. case 0:
  493. case 1:
  494. case 2:
  495. return true;
  496. default:
  497. return false;
  498. }
  499. }
  500. const ::google::protobuf::EnumDescriptor* Dispatch_motion_direction_descriptor() {
  501. protobuf_dispatch_5fmessage_2eproto::protobuf_AssignDescriptorsOnce();
  502. return protobuf_dispatch_5fmessage_2eproto::file_level_enum_descriptors[7];
  503. }
  504. bool Dispatch_motion_direction_IsValid(int value) {
  505. switch (value) {
  506. case 0:
  507. case 1:
  508. return true;
  509. default:
  510. return false;
  511. }
  512. }
  513. const ::google::protobuf::EnumDescriptor* Dispatch_device_status_descriptor() {
  514. protobuf_dispatch_5fmessage_2eproto::protobuf_AssignDescriptorsOnce();
  515. return protobuf_dispatch_5fmessage_2eproto::file_level_enum_descriptors[8];
  516. }
  517. bool Dispatch_device_status_IsValid(int value) {
  518. switch (value) {
  519. case 0:
  520. case 1:
  521. case 2:
  522. case 10:
  523. return true;
  524. default:
  525. return false;
  526. }
  527. }
  528. // ===================================================================
  529. void Device_position::InitAsDefaultInstance() {
  530. }
  531. #if !defined(_MSC_VER) || _MSC_VER >= 1900
  532. const int Device_position::kXFieldNumber;
  533. const int Device_position::kYFieldNumber;
  534. const int Device_position::kZFieldNumber;
  535. #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
  536. Device_position::Device_position()
  537. : ::google::protobuf::Message(), _internal_metadata_(NULL) {
  538. if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
  539. ::protobuf_dispatch_5fmessage_2eproto::InitDefaultsDevice_position();
  540. }
  541. SharedCtor();
  542. // @@protoc_insertion_point(constructor:message.Device_position)
  543. }
  544. Device_position::Device_position(const Device_position& from)
  545. : ::google::protobuf::Message(),
  546. _internal_metadata_(NULL),
  547. _has_bits_(from._has_bits_),
  548. _cached_size_(0) {
  549. _internal_metadata_.MergeFrom(from._internal_metadata_);
  550. ::memcpy(&x_, &from.x_,
  551. static_cast<size_t>(reinterpret_cast<char*>(&z_) -
  552. reinterpret_cast<char*>(&x_)) + sizeof(z_));
  553. // @@protoc_insertion_point(copy_constructor:message.Device_position)
  554. }
  555. void Device_position::SharedCtor() {
  556. _cached_size_ = 0;
  557. ::memset(&x_, 0, static_cast<size_t>(
  558. reinterpret_cast<char*>(&z_) -
  559. reinterpret_cast<char*>(&x_)) + sizeof(z_));
  560. }
  561. Device_position::~Device_position() {
  562. // @@protoc_insertion_point(destructor:message.Device_position)
  563. SharedDtor();
  564. }
  565. void Device_position::SharedDtor() {
  566. }
  567. void Device_position::SetCachedSize(int size) const {
  568. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  569. _cached_size_ = size;
  570. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  571. }
  572. const ::google::protobuf::Descriptor* Device_position::descriptor() {
  573. ::protobuf_dispatch_5fmessage_2eproto::protobuf_AssignDescriptorsOnce();
  574. return ::protobuf_dispatch_5fmessage_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
  575. }
  576. const Device_position& Device_position::default_instance() {
  577. ::protobuf_dispatch_5fmessage_2eproto::InitDefaultsDevice_position();
  578. return *internal_default_instance();
  579. }
  580. Device_position* Device_position::New(::google::protobuf::Arena* arena) const {
  581. Device_position* n = new Device_position;
  582. if (arena != NULL) {
  583. arena->Own(n);
  584. }
  585. return n;
  586. }
  587. void Device_position::Clear() {
  588. // @@protoc_insertion_point(message_clear_start:message.Device_position)
  589. ::google::protobuf::uint32 cached_has_bits = 0;
  590. // Prevent compiler warnings about cached_has_bits being unused
  591. (void) cached_has_bits;
  592. cached_has_bits = _has_bits_[0];
  593. if (cached_has_bits & 7u) {
  594. ::memset(&x_, 0, static_cast<size_t>(
  595. reinterpret_cast<char*>(&z_) -
  596. reinterpret_cast<char*>(&x_)) + sizeof(z_));
  597. }
  598. _has_bits_.Clear();
  599. _internal_metadata_.Clear();
  600. }
  601. bool Device_position::MergePartialFromCodedStream(
  602. ::google::protobuf::io::CodedInputStream* input) {
  603. #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
  604. ::google::protobuf::uint32 tag;
  605. // @@protoc_insertion_point(parse_start:message.Device_position)
  606. for (;;) {
  607. ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
  608. tag = p.first;
  609. if (!p.second) goto handle_unusual;
  610. switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
  611. // required float x = 1;
  612. case 1: {
  613. if (static_cast< ::google::protobuf::uint8>(tag) ==
  614. static_cast< ::google::protobuf::uint8>(13u /* 13 & 0xFF */)) {
  615. set_has_x();
  616. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  617. float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
  618. input, &x_)));
  619. } else {
  620. goto handle_unusual;
  621. }
  622. break;
  623. }
  624. // required float y = 2;
  625. case 2: {
  626. if (static_cast< ::google::protobuf::uint8>(tag) ==
  627. static_cast< ::google::protobuf::uint8>(21u /* 21 & 0xFF */)) {
  628. set_has_y();
  629. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  630. float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
  631. input, &y_)));
  632. } else {
  633. goto handle_unusual;
  634. }
  635. break;
  636. }
  637. // required float z = 3;
  638. case 3: {
  639. if (static_cast< ::google::protobuf::uint8>(tag) ==
  640. static_cast< ::google::protobuf::uint8>(29u /* 29 & 0xFF */)) {
  641. set_has_z();
  642. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  643. float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
  644. input, &z_)));
  645. } else {
  646. goto handle_unusual;
  647. }
  648. break;
  649. }
  650. default: {
  651. handle_unusual:
  652. if (tag == 0) {
  653. goto success;
  654. }
  655. DO_(::google::protobuf::internal::WireFormat::SkipField(
  656. input, tag, _internal_metadata_.mutable_unknown_fields()));
  657. break;
  658. }
  659. }
  660. }
  661. success:
  662. // @@protoc_insertion_point(parse_success:message.Device_position)
  663. return true;
  664. failure:
  665. // @@protoc_insertion_point(parse_failure:message.Device_position)
  666. return false;
  667. #undef DO_
  668. }
  669. void Device_position::SerializeWithCachedSizes(
  670. ::google::protobuf::io::CodedOutputStream* output) const {
  671. // @@protoc_insertion_point(serialize_start:message.Device_position)
  672. ::google::protobuf::uint32 cached_has_bits = 0;
  673. (void) cached_has_bits;
  674. cached_has_bits = _has_bits_[0];
  675. // required float x = 1;
  676. if (cached_has_bits & 0x00000001u) {
  677. ::google::protobuf::internal::WireFormatLite::WriteFloat(1, this->x(), output);
  678. }
  679. // required float y = 2;
  680. if (cached_has_bits & 0x00000002u) {
  681. ::google::protobuf::internal::WireFormatLite::WriteFloat(2, this->y(), output);
  682. }
  683. // required float z = 3;
  684. if (cached_has_bits & 0x00000004u) {
  685. ::google::protobuf::internal::WireFormatLite::WriteFloat(3, this->z(), output);
  686. }
  687. if (_internal_metadata_.have_unknown_fields()) {
  688. ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
  689. _internal_metadata_.unknown_fields(), output);
  690. }
  691. // @@protoc_insertion_point(serialize_end:message.Device_position)
  692. }
  693. ::google::protobuf::uint8* Device_position::InternalSerializeWithCachedSizesToArray(
  694. bool deterministic, ::google::protobuf::uint8* target) const {
  695. (void)deterministic; // Unused
  696. // @@protoc_insertion_point(serialize_to_array_start:message.Device_position)
  697. ::google::protobuf::uint32 cached_has_bits = 0;
  698. (void) cached_has_bits;
  699. cached_has_bits = _has_bits_[0];
  700. // required float x = 1;
  701. if (cached_has_bits & 0x00000001u) {
  702. target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(1, this->x(), target);
  703. }
  704. // required float y = 2;
  705. if (cached_has_bits & 0x00000002u) {
  706. target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(2, this->y(), target);
  707. }
  708. // required float z = 3;
  709. if (cached_has_bits & 0x00000004u) {
  710. target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(3, this->z(), target);
  711. }
  712. if (_internal_metadata_.have_unknown_fields()) {
  713. target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
  714. _internal_metadata_.unknown_fields(), target);
  715. }
  716. // @@protoc_insertion_point(serialize_to_array_end:message.Device_position)
  717. return target;
  718. }
  719. size_t Device_position::RequiredFieldsByteSizeFallback() const {
  720. // @@protoc_insertion_point(required_fields_byte_size_fallback_start:message.Device_position)
  721. size_t total_size = 0;
  722. if (has_x()) {
  723. // required float x = 1;
  724. total_size += 1 + 4;
  725. }
  726. if (has_y()) {
  727. // required float y = 2;
  728. total_size += 1 + 4;
  729. }
  730. if (has_z()) {
  731. // required float z = 3;
  732. total_size += 1 + 4;
  733. }
  734. return total_size;
  735. }
  736. size_t Device_position::ByteSizeLong() const {
  737. // @@protoc_insertion_point(message_byte_size_start:message.Device_position)
  738. size_t total_size = 0;
  739. if (_internal_metadata_.have_unknown_fields()) {
  740. total_size +=
  741. ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
  742. _internal_metadata_.unknown_fields());
  743. }
  744. if (((_has_bits_[0] & 0x00000007) ^ 0x00000007) == 0) { // All required fields are present.
  745. // required float x = 1;
  746. total_size += 1 + 4;
  747. // required float y = 2;
  748. total_size += 1 + 4;
  749. // required float z = 3;
  750. total_size += 1 + 4;
  751. } else {
  752. total_size += RequiredFieldsByteSizeFallback();
  753. }
  754. int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
  755. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  756. _cached_size_ = cached_size;
  757. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  758. return total_size;
  759. }
  760. void Device_position::MergeFrom(const ::google::protobuf::Message& from) {
  761. // @@protoc_insertion_point(generalized_merge_from_start:message.Device_position)
  762. GOOGLE_DCHECK_NE(&from, this);
  763. const Device_position* source =
  764. ::google::protobuf::internal::DynamicCastToGenerated<const Device_position>(
  765. &from);
  766. if (source == NULL) {
  767. // @@protoc_insertion_point(generalized_merge_from_cast_fail:message.Device_position)
  768. ::google::protobuf::internal::ReflectionOps::Merge(from, this);
  769. } else {
  770. // @@protoc_insertion_point(generalized_merge_from_cast_success:message.Device_position)
  771. MergeFrom(*source);
  772. }
  773. }
  774. void Device_position::MergeFrom(const Device_position& from) {
  775. // @@protoc_insertion_point(class_specific_merge_from_start:message.Device_position)
  776. GOOGLE_DCHECK_NE(&from, this);
  777. _internal_metadata_.MergeFrom(from._internal_metadata_);
  778. ::google::protobuf::uint32 cached_has_bits = 0;
  779. (void) cached_has_bits;
  780. cached_has_bits = from._has_bits_[0];
  781. if (cached_has_bits & 7u) {
  782. if (cached_has_bits & 0x00000001u) {
  783. x_ = from.x_;
  784. }
  785. if (cached_has_bits & 0x00000002u) {
  786. y_ = from.y_;
  787. }
  788. if (cached_has_bits & 0x00000004u) {
  789. z_ = from.z_;
  790. }
  791. _has_bits_[0] |= cached_has_bits;
  792. }
  793. }
  794. void Device_position::CopyFrom(const ::google::protobuf::Message& from) {
  795. // @@protoc_insertion_point(generalized_copy_from_start:message.Device_position)
  796. if (&from == this) return;
  797. Clear();
  798. MergeFrom(from);
  799. }
  800. void Device_position::CopyFrom(const Device_position& from) {
  801. // @@protoc_insertion_point(class_specific_copy_from_start:message.Device_position)
  802. if (&from == this) return;
  803. Clear();
  804. MergeFrom(from);
  805. }
  806. bool Device_position::IsInitialized() const {
  807. if ((_has_bits_[0] & 0x00000007) != 0x00000007) return false;
  808. return true;
  809. }
  810. void Device_position::Swap(Device_position* other) {
  811. if (other == this) return;
  812. InternalSwap(other);
  813. }
  814. void Device_position::InternalSwap(Device_position* other) {
  815. using std::swap;
  816. swap(x_, other->x_);
  817. swap(y_, other->y_);
  818. swap(z_, other->z_);
  819. swap(_has_bits_[0], other->_has_bits_[0]);
  820. _internal_metadata_.Swap(&other->_internal_metadata_);
  821. swap(_cached_size_, other->_cached_size_);
  822. }
  823. ::google::protobuf::Metadata Device_position::GetMetadata() const {
  824. protobuf_dispatch_5fmessage_2eproto::protobuf_AssignDescriptorsOnce();
  825. return ::protobuf_dispatch_5fmessage_2eproto::file_level_metadata[kIndexInFileMessages];
  826. }
  827. // ===================================================================
  828. void Dispatch_manager_data_msg::InitAsDefaultInstance() {
  829. }
  830. #if !defined(_MSC_VER) || _MSC_VER >= 1900
  831. #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
  832. Dispatch_manager_data_msg::Dispatch_manager_data_msg()
  833. : ::google::protobuf::Message(), _internal_metadata_(NULL) {
  834. if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
  835. ::protobuf_dispatch_5fmessage_2eproto::InitDefaultsDispatch_manager_data_msg();
  836. }
  837. SharedCtor();
  838. // @@protoc_insertion_point(constructor:message.Dispatch_manager_data_msg)
  839. }
  840. Dispatch_manager_data_msg::Dispatch_manager_data_msg(const Dispatch_manager_data_msg& from)
  841. : ::google::protobuf::Message(),
  842. _internal_metadata_(NULL),
  843. _has_bits_(from._has_bits_),
  844. _cached_size_(0) {
  845. _internal_metadata_.MergeFrom(from._internal_metadata_);
  846. // @@protoc_insertion_point(copy_constructor:message.Dispatch_manager_data_msg)
  847. }
  848. void Dispatch_manager_data_msg::SharedCtor() {
  849. _cached_size_ = 0;
  850. }
  851. Dispatch_manager_data_msg::~Dispatch_manager_data_msg() {
  852. // @@protoc_insertion_point(destructor:message.Dispatch_manager_data_msg)
  853. SharedDtor();
  854. }
  855. void Dispatch_manager_data_msg::SharedDtor() {
  856. }
  857. void Dispatch_manager_data_msg::SetCachedSize(int size) const {
  858. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  859. _cached_size_ = size;
  860. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  861. }
  862. const ::google::protobuf::Descriptor* Dispatch_manager_data_msg::descriptor() {
  863. ::protobuf_dispatch_5fmessage_2eproto::protobuf_AssignDescriptorsOnce();
  864. return ::protobuf_dispatch_5fmessage_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
  865. }
  866. const Dispatch_manager_data_msg& Dispatch_manager_data_msg::default_instance() {
  867. ::protobuf_dispatch_5fmessage_2eproto::InitDefaultsDispatch_manager_data_msg();
  868. return *internal_default_instance();
  869. }
  870. Dispatch_manager_data_msg* Dispatch_manager_data_msg::New(::google::protobuf::Arena* arena) const {
  871. Dispatch_manager_data_msg* n = new Dispatch_manager_data_msg;
  872. if (arena != NULL) {
  873. arena->Own(n);
  874. }
  875. return n;
  876. }
  877. void Dispatch_manager_data_msg::Clear() {
  878. // @@protoc_insertion_point(message_clear_start:message.Dispatch_manager_data_msg)
  879. ::google::protobuf::uint32 cached_has_bits = 0;
  880. // Prevent compiler warnings about cached_has_bits being unused
  881. (void) cached_has_bits;
  882. _has_bits_.Clear();
  883. _internal_metadata_.Clear();
  884. }
  885. bool Dispatch_manager_data_msg::MergePartialFromCodedStream(
  886. ::google::protobuf::io::CodedInputStream* input) {
  887. #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
  888. ::google::protobuf::uint32 tag;
  889. // @@protoc_insertion_point(parse_start:message.Dispatch_manager_data_msg)
  890. for (;;) {
  891. ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
  892. tag = p.first;
  893. if (!p.second) goto handle_unusual;
  894. handle_unusual:
  895. if (tag == 0) {
  896. goto success;
  897. }
  898. DO_(::google::protobuf::internal::WireFormat::SkipField(
  899. input, tag, _internal_metadata_.mutable_unknown_fields()));
  900. }
  901. success:
  902. // @@protoc_insertion_point(parse_success:message.Dispatch_manager_data_msg)
  903. return true;
  904. failure:
  905. // @@protoc_insertion_point(parse_failure:message.Dispatch_manager_data_msg)
  906. return false;
  907. #undef DO_
  908. }
  909. void Dispatch_manager_data_msg::SerializeWithCachedSizes(
  910. ::google::protobuf::io::CodedOutputStream* output) const {
  911. // @@protoc_insertion_point(serialize_start:message.Dispatch_manager_data_msg)
  912. ::google::protobuf::uint32 cached_has_bits = 0;
  913. (void) cached_has_bits;
  914. if (_internal_metadata_.have_unknown_fields()) {
  915. ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
  916. _internal_metadata_.unknown_fields(), output);
  917. }
  918. // @@protoc_insertion_point(serialize_end:message.Dispatch_manager_data_msg)
  919. }
  920. ::google::protobuf::uint8* Dispatch_manager_data_msg::InternalSerializeWithCachedSizesToArray(
  921. bool deterministic, ::google::protobuf::uint8* target) const {
  922. (void)deterministic; // Unused
  923. // @@protoc_insertion_point(serialize_to_array_start:message.Dispatch_manager_data_msg)
  924. ::google::protobuf::uint32 cached_has_bits = 0;
  925. (void) cached_has_bits;
  926. if (_internal_metadata_.have_unknown_fields()) {
  927. target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
  928. _internal_metadata_.unknown_fields(), target);
  929. }
  930. // @@protoc_insertion_point(serialize_to_array_end:message.Dispatch_manager_data_msg)
  931. return target;
  932. }
  933. size_t Dispatch_manager_data_msg::ByteSizeLong() const {
  934. // @@protoc_insertion_point(message_byte_size_start:message.Dispatch_manager_data_msg)
  935. size_t total_size = 0;
  936. if (_internal_metadata_.have_unknown_fields()) {
  937. total_size +=
  938. ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
  939. _internal_metadata_.unknown_fields());
  940. }
  941. int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
  942. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  943. _cached_size_ = cached_size;
  944. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  945. return total_size;
  946. }
  947. void Dispatch_manager_data_msg::MergeFrom(const ::google::protobuf::Message& from) {
  948. // @@protoc_insertion_point(generalized_merge_from_start:message.Dispatch_manager_data_msg)
  949. GOOGLE_DCHECK_NE(&from, this);
  950. const Dispatch_manager_data_msg* source =
  951. ::google::protobuf::internal::DynamicCastToGenerated<const Dispatch_manager_data_msg>(
  952. &from);
  953. if (source == NULL) {
  954. // @@protoc_insertion_point(generalized_merge_from_cast_fail:message.Dispatch_manager_data_msg)
  955. ::google::protobuf::internal::ReflectionOps::Merge(from, this);
  956. } else {
  957. // @@protoc_insertion_point(generalized_merge_from_cast_success:message.Dispatch_manager_data_msg)
  958. MergeFrom(*source);
  959. }
  960. }
  961. void Dispatch_manager_data_msg::MergeFrom(const Dispatch_manager_data_msg& from) {
  962. // @@protoc_insertion_point(class_specific_merge_from_start:message.Dispatch_manager_data_msg)
  963. GOOGLE_DCHECK_NE(&from, this);
  964. _internal_metadata_.MergeFrom(from._internal_metadata_);
  965. ::google::protobuf::uint32 cached_has_bits = 0;
  966. (void) cached_has_bits;
  967. }
  968. void Dispatch_manager_data_msg::CopyFrom(const ::google::protobuf::Message& from) {
  969. // @@protoc_insertion_point(generalized_copy_from_start:message.Dispatch_manager_data_msg)
  970. if (&from == this) return;
  971. Clear();
  972. MergeFrom(from);
  973. }
  974. void Dispatch_manager_data_msg::CopyFrom(const Dispatch_manager_data_msg& from) {
  975. // @@protoc_insertion_point(class_specific_copy_from_start:message.Dispatch_manager_data_msg)
  976. if (&from == this) return;
  977. Clear();
  978. MergeFrom(from);
  979. }
  980. bool Dispatch_manager_data_msg::IsInitialized() const {
  981. return true;
  982. }
  983. void Dispatch_manager_data_msg::Swap(Dispatch_manager_data_msg* other) {
  984. if (other == this) return;
  985. InternalSwap(other);
  986. }
  987. void Dispatch_manager_data_msg::InternalSwap(Dispatch_manager_data_msg* other) {
  988. using std::swap;
  989. swap(_has_bits_[0], other->_has_bits_[0]);
  990. _internal_metadata_.Swap(&other->_internal_metadata_);
  991. swap(_cached_size_, other->_cached_size_);
  992. }
  993. ::google::protobuf::Metadata Dispatch_manager_data_msg::GetMetadata() const {
  994. protobuf_dispatch_5fmessage_2eproto::protobuf_AssignDescriptorsOnce();
  995. return ::protobuf_dispatch_5fmessage_2eproto::file_level_metadata[kIndexInFileMessages];
  996. }
  997. // ===================================================================
  998. void Dispatch_manager_status_msg::InitAsDefaultInstance() {
  999. ::message::_Dispatch_manager_status_msg_default_instance_._instance.get_mutable()->base_info_ = const_cast< ::message::Base_info*>(
  1000. ::message::Base_info::internal_default_instance());
  1001. }
  1002. void Dispatch_manager_status_msg::clear_base_info() {
  1003. if (base_info_ != NULL) base_info_->Clear();
  1004. clear_has_base_info();
  1005. }
  1006. #if !defined(_MSC_VER) || _MSC_VER >= 1900
  1007. const int Dispatch_manager_status_msg::kBaseInfoFieldNumber;
  1008. const int Dispatch_manager_status_msg::kDispatchIdFieldNumber;
  1009. const int Dispatch_manager_status_msg::kDispatchManagerStatusFieldNumber;
  1010. const int Dispatch_manager_status_msg::kRobot1StatusFieldNumber;
  1011. const int Dispatch_manager_status_msg::kRobot2StatusFieldNumber;
  1012. const int Dispatch_manager_status_msg::kCarrier1StatusFieldNumber;
  1013. const int Dispatch_manager_status_msg::kCarrier2StatusFieldNumber;
  1014. const int Dispatch_manager_status_msg::kCarrier3StatusFieldNumber;
  1015. const int Dispatch_manager_status_msg::kPassageway0StatusFieldNumber;
  1016. const int Dispatch_manager_status_msg::kPassageway1StatusFieldNumber;
  1017. const int Dispatch_manager_status_msg::kPassageway2StatusFieldNumber;
  1018. const int Dispatch_manager_status_msg::kPassageway3StatusFieldNumber;
  1019. const int Dispatch_manager_status_msg::kPassageway4StatusFieldNumber;
  1020. const int Dispatch_manager_status_msg::kPassageway5StatusFieldNumber;
  1021. const int Dispatch_manager_status_msg::kPassageway6StatusFieldNumber;
  1022. const int Dispatch_manager_status_msg::kPassageway7StatusFieldNumber;
  1023. #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
  1024. Dispatch_manager_status_msg::Dispatch_manager_status_msg()
  1025. : ::google::protobuf::Message(), _internal_metadata_(NULL) {
  1026. if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
  1027. ::protobuf_dispatch_5fmessage_2eproto::InitDefaultsDispatch_manager_status_msg();
  1028. }
  1029. SharedCtor();
  1030. // @@protoc_insertion_point(constructor:message.Dispatch_manager_status_msg)
  1031. }
  1032. Dispatch_manager_status_msg::Dispatch_manager_status_msg(const Dispatch_manager_status_msg& from)
  1033. : ::google::protobuf::Message(),
  1034. _internal_metadata_(NULL),
  1035. _has_bits_(from._has_bits_),
  1036. _cached_size_(0) {
  1037. _internal_metadata_.MergeFrom(from._internal_metadata_);
  1038. if (from.has_base_info()) {
  1039. base_info_ = new ::message::Base_info(*from.base_info_);
  1040. } else {
  1041. base_info_ = NULL;
  1042. }
  1043. ::memcpy(&dispatch_id_, &from.dispatch_id_,
  1044. static_cast<size_t>(reinterpret_cast<char*>(&passageway_7_status_) -
  1045. reinterpret_cast<char*>(&dispatch_id_)) + sizeof(passageway_7_status_));
  1046. // @@protoc_insertion_point(copy_constructor:message.Dispatch_manager_status_msg)
  1047. }
  1048. void Dispatch_manager_status_msg::SharedCtor() {
  1049. _cached_size_ = 0;
  1050. ::memset(&base_info_, 0, static_cast<size_t>(
  1051. reinterpret_cast<char*>(&passageway_7_status_) -
  1052. reinterpret_cast<char*>(&base_info_)) + sizeof(passageway_7_status_));
  1053. }
  1054. Dispatch_manager_status_msg::~Dispatch_manager_status_msg() {
  1055. // @@protoc_insertion_point(destructor:message.Dispatch_manager_status_msg)
  1056. SharedDtor();
  1057. }
  1058. void Dispatch_manager_status_msg::SharedDtor() {
  1059. if (this != internal_default_instance()) delete base_info_;
  1060. }
  1061. void Dispatch_manager_status_msg::SetCachedSize(int size) const {
  1062. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  1063. _cached_size_ = size;
  1064. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  1065. }
  1066. const ::google::protobuf::Descriptor* Dispatch_manager_status_msg::descriptor() {
  1067. ::protobuf_dispatch_5fmessage_2eproto::protobuf_AssignDescriptorsOnce();
  1068. return ::protobuf_dispatch_5fmessage_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
  1069. }
  1070. const Dispatch_manager_status_msg& Dispatch_manager_status_msg::default_instance() {
  1071. ::protobuf_dispatch_5fmessage_2eproto::InitDefaultsDispatch_manager_status_msg();
  1072. return *internal_default_instance();
  1073. }
  1074. Dispatch_manager_status_msg* Dispatch_manager_status_msg::New(::google::protobuf::Arena* arena) const {
  1075. Dispatch_manager_status_msg* n = new Dispatch_manager_status_msg;
  1076. if (arena != NULL) {
  1077. arena->Own(n);
  1078. }
  1079. return n;
  1080. }
  1081. void Dispatch_manager_status_msg::Clear() {
  1082. // @@protoc_insertion_point(message_clear_start:message.Dispatch_manager_status_msg)
  1083. ::google::protobuf::uint32 cached_has_bits = 0;
  1084. // Prevent compiler warnings about cached_has_bits being unused
  1085. (void) cached_has_bits;
  1086. cached_has_bits = _has_bits_[0];
  1087. if (cached_has_bits & 0x00000001u) {
  1088. GOOGLE_DCHECK(base_info_ != NULL);
  1089. base_info_->Clear();
  1090. }
  1091. if (cached_has_bits & 254u) {
  1092. ::memset(&dispatch_id_, 0, static_cast<size_t>(
  1093. reinterpret_cast<char*>(&carrier_3_status_) -
  1094. reinterpret_cast<char*>(&dispatch_id_)) + sizeof(carrier_3_status_));
  1095. }
  1096. if (cached_has_bits & 65280u) {
  1097. ::memset(&passageway_0_status_, 0, static_cast<size_t>(
  1098. reinterpret_cast<char*>(&passageway_7_status_) -
  1099. reinterpret_cast<char*>(&passageway_0_status_)) + sizeof(passageway_7_status_));
  1100. }
  1101. _has_bits_.Clear();
  1102. _internal_metadata_.Clear();
  1103. }
  1104. bool Dispatch_manager_status_msg::MergePartialFromCodedStream(
  1105. ::google::protobuf::io::CodedInputStream* input) {
  1106. #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
  1107. ::google::protobuf::uint32 tag;
  1108. // @@protoc_insertion_point(parse_start:message.Dispatch_manager_status_msg)
  1109. for (;;) {
  1110. ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(16383u);
  1111. tag = p.first;
  1112. if (!p.second) goto handle_unusual;
  1113. switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
  1114. // required .message.Base_info base_info = 1;
  1115. case 1: {
  1116. if (static_cast< ::google::protobuf::uint8>(tag) ==
  1117. static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
  1118. DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
  1119. input, mutable_base_info()));
  1120. } else {
  1121. goto handle_unusual;
  1122. }
  1123. break;
  1124. }
  1125. // required int32 dispatch_id = 2;
  1126. case 2: {
  1127. if (static_cast< ::google::protobuf::uint8>(tag) ==
  1128. static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) {
  1129. set_has_dispatch_id();
  1130. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  1131. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  1132. input, &dispatch_id_)));
  1133. } else {
  1134. goto handle_unusual;
  1135. }
  1136. break;
  1137. }
  1138. // required .message.Dispatch_manager_status dispatch_manager_status = 3;
  1139. case 3: {
  1140. if (static_cast< ::google::protobuf::uint8>(tag) ==
  1141. static_cast< ::google::protobuf::uint8>(24u /* 24 & 0xFF */)) {
  1142. int value;
  1143. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  1144. int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
  1145. input, &value)));
  1146. if (::message::Dispatch_manager_status_IsValid(value)) {
  1147. set_dispatch_manager_status(static_cast< ::message::Dispatch_manager_status >(value));
  1148. } else {
  1149. mutable_unknown_fields()->AddVarint(
  1150. 3, static_cast< ::google::protobuf::uint64>(value));
  1151. }
  1152. } else {
  1153. goto handle_unusual;
  1154. }
  1155. break;
  1156. }
  1157. // optional .message.Dispatch_device_status robot_1_status = 4;
  1158. case 4: {
  1159. if (static_cast< ::google::protobuf::uint8>(tag) ==
  1160. static_cast< ::google::protobuf::uint8>(32u /* 32 & 0xFF */)) {
  1161. int value;
  1162. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  1163. int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
  1164. input, &value)));
  1165. if (::message::Dispatch_device_status_IsValid(value)) {
  1166. set_robot_1_status(static_cast< ::message::Dispatch_device_status >(value));
  1167. } else {
  1168. mutable_unknown_fields()->AddVarint(
  1169. 4, static_cast< ::google::protobuf::uint64>(value));
  1170. }
  1171. } else {
  1172. goto handle_unusual;
  1173. }
  1174. break;
  1175. }
  1176. // optional .message.Dispatch_device_status robot_2_status = 5;
  1177. case 5: {
  1178. if (static_cast< ::google::protobuf::uint8>(tag) ==
  1179. static_cast< ::google::protobuf::uint8>(40u /* 40 & 0xFF */)) {
  1180. int value;
  1181. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  1182. int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
  1183. input, &value)));
  1184. if (::message::Dispatch_device_status_IsValid(value)) {
  1185. set_robot_2_status(static_cast< ::message::Dispatch_device_status >(value));
  1186. } else {
  1187. mutable_unknown_fields()->AddVarint(
  1188. 5, static_cast< ::google::protobuf::uint64>(value));
  1189. }
  1190. } else {
  1191. goto handle_unusual;
  1192. }
  1193. break;
  1194. }
  1195. // optional .message.Dispatch_device_status carrier_1_status = 6;
  1196. case 6: {
  1197. if (static_cast< ::google::protobuf::uint8>(tag) ==
  1198. static_cast< ::google::protobuf::uint8>(48u /* 48 & 0xFF */)) {
  1199. int value;
  1200. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  1201. int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
  1202. input, &value)));
  1203. if (::message::Dispatch_device_status_IsValid(value)) {
  1204. set_carrier_1_status(static_cast< ::message::Dispatch_device_status >(value));
  1205. } else {
  1206. mutable_unknown_fields()->AddVarint(
  1207. 6, static_cast< ::google::protobuf::uint64>(value));
  1208. }
  1209. } else {
  1210. goto handle_unusual;
  1211. }
  1212. break;
  1213. }
  1214. // optional .message.Dispatch_device_status carrier_2_status = 7;
  1215. case 7: {
  1216. if (static_cast< ::google::protobuf::uint8>(tag) ==
  1217. static_cast< ::google::protobuf::uint8>(56u /* 56 & 0xFF */)) {
  1218. int value;
  1219. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  1220. int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
  1221. input, &value)));
  1222. if (::message::Dispatch_device_status_IsValid(value)) {
  1223. set_carrier_2_status(static_cast< ::message::Dispatch_device_status >(value));
  1224. } else {
  1225. mutable_unknown_fields()->AddVarint(
  1226. 7, static_cast< ::google::protobuf::uint64>(value));
  1227. }
  1228. } else {
  1229. goto handle_unusual;
  1230. }
  1231. break;
  1232. }
  1233. // optional .message.Dispatch_device_status carrier_3_status = 8;
  1234. case 8: {
  1235. if (static_cast< ::google::protobuf::uint8>(tag) ==
  1236. static_cast< ::google::protobuf::uint8>(64u /* 64 & 0xFF */)) {
  1237. int value;
  1238. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  1239. int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
  1240. input, &value)));
  1241. if (::message::Dispatch_device_status_IsValid(value)) {
  1242. set_carrier_3_status(static_cast< ::message::Dispatch_device_status >(value));
  1243. } else {
  1244. mutable_unknown_fields()->AddVarint(
  1245. 8, static_cast< ::google::protobuf::uint64>(value));
  1246. }
  1247. } else {
  1248. goto handle_unusual;
  1249. }
  1250. break;
  1251. }
  1252. // optional .message.Dispatch_device_status passageway_0_status = 9;
  1253. case 9: {
  1254. if (static_cast< ::google::protobuf::uint8>(tag) ==
  1255. static_cast< ::google::protobuf::uint8>(72u /* 72 & 0xFF */)) {
  1256. int value;
  1257. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  1258. int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
  1259. input, &value)));
  1260. if (::message::Dispatch_device_status_IsValid(value)) {
  1261. set_passageway_0_status(static_cast< ::message::Dispatch_device_status >(value));
  1262. } else {
  1263. mutable_unknown_fields()->AddVarint(
  1264. 9, static_cast< ::google::protobuf::uint64>(value));
  1265. }
  1266. } else {
  1267. goto handle_unusual;
  1268. }
  1269. break;
  1270. }
  1271. // optional .message.Dispatch_device_status passageway_1_status = 10;
  1272. case 10: {
  1273. if (static_cast< ::google::protobuf::uint8>(tag) ==
  1274. static_cast< ::google::protobuf::uint8>(80u /* 80 & 0xFF */)) {
  1275. int value;
  1276. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  1277. int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
  1278. input, &value)));
  1279. if (::message::Dispatch_device_status_IsValid(value)) {
  1280. set_passageway_1_status(static_cast< ::message::Dispatch_device_status >(value));
  1281. } else {
  1282. mutable_unknown_fields()->AddVarint(
  1283. 10, static_cast< ::google::protobuf::uint64>(value));
  1284. }
  1285. } else {
  1286. goto handle_unusual;
  1287. }
  1288. break;
  1289. }
  1290. // optional .message.Dispatch_device_status passageway_2_status = 11;
  1291. case 11: {
  1292. if (static_cast< ::google::protobuf::uint8>(tag) ==
  1293. static_cast< ::google::protobuf::uint8>(88u /* 88 & 0xFF */)) {
  1294. int value;
  1295. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  1296. int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
  1297. input, &value)));
  1298. if (::message::Dispatch_device_status_IsValid(value)) {
  1299. set_passageway_2_status(static_cast< ::message::Dispatch_device_status >(value));
  1300. } else {
  1301. mutable_unknown_fields()->AddVarint(
  1302. 11, static_cast< ::google::protobuf::uint64>(value));
  1303. }
  1304. } else {
  1305. goto handle_unusual;
  1306. }
  1307. break;
  1308. }
  1309. // optional .message.Dispatch_device_status passageway_3_status = 12;
  1310. case 12: {
  1311. if (static_cast< ::google::protobuf::uint8>(tag) ==
  1312. static_cast< ::google::protobuf::uint8>(96u /* 96 & 0xFF */)) {
  1313. int value;
  1314. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  1315. int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
  1316. input, &value)));
  1317. if (::message::Dispatch_device_status_IsValid(value)) {
  1318. set_passageway_3_status(static_cast< ::message::Dispatch_device_status >(value));
  1319. } else {
  1320. mutable_unknown_fields()->AddVarint(
  1321. 12, static_cast< ::google::protobuf::uint64>(value));
  1322. }
  1323. } else {
  1324. goto handle_unusual;
  1325. }
  1326. break;
  1327. }
  1328. // optional .message.Dispatch_device_status passageway_4_status = 13;
  1329. case 13: {
  1330. if (static_cast< ::google::protobuf::uint8>(tag) ==
  1331. static_cast< ::google::protobuf::uint8>(104u /* 104 & 0xFF */)) {
  1332. int value;
  1333. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  1334. int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
  1335. input, &value)));
  1336. if (::message::Dispatch_device_status_IsValid(value)) {
  1337. set_passageway_4_status(static_cast< ::message::Dispatch_device_status >(value));
  1338. } else {
  1339. mutable_unknown_fields()->AddVarint(
  1340. 13, static_cast< ::google::protobuf::uint64>(value));
  1341. }
  1342. } else {
  1343. goto handle_unusual;
  1344. }
  1345. break;
  1346. }
  1347. // optional .message.Dispatch_device_status passageway_5_status = 14;
  1348. case 14: {
  1349. if (static_cast< ::google::protobuf::uint8>(tag) ==
  1350. static_cast< ::google::protobuf::uint8>(112u /* 112 & 0xFF */)) {
  1351. int value;
  1352. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  1353. int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
  1354. input, &value)));
  1355. if (::message::Dispatch_device_status_IsValid(value)) {
  1356. set_passageway_5_status(static_cast< ::message::Dispatch_device_status >(value));
  1357. } else {
  1358. mutable_unknown_fields()->AddVarint(
  1359. 14, static_cast< ::google::protobuf::uint64>(value));
  1360. }
  1361. } else {
  1362. goto handle_unusual;
  1363. }
  1364. break;
  1365. }
  1366. // optional .message.Dispatch_device_status passageway_6_status = 15;
  1367. case 15: {
  1368. if (static_cast< ::google::protobuf::uint8>(tag) ==
  1369. static_cast< ::google::protobuf::uint8>(120u /* 120 & 0xFF */)) {
  1370. int value;
  1371. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  1372. int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
  1373. input, &value)));
  1374. if (::message::Dispatch_device_status_IsValid(value)) {
  1375. set_passageway_6_status(static_cast< ::message::Dispatch_device_status >(value));
  1376. } else {
  1377. mutable_unknown_fields()->AddVarint(
  1378. 15, static_cast< ::google::protobuf::uint64>(value));
  1379. }
  1380. } else {
  1381. goto handle_unusual;
  1382. }
  1383. break;
  1384. }
  1385. // optional .message.Dispatch_device_status passageway_7_status = 16;
  1386. case 16: {
  1387. if (static_cast< ::google::protobuf::uint8>(tag) ==
  1388. static_cast< ::google::protobuf::uint8>(128u /* 128 & 0xFF */)) {
  1389. int value;
  1390. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  1391. int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
  1392. input, &value)));
  1393. if (::message::Dispatch_device_status_IsValid(value)) {
  1394. set_passageway_7_status(static_cast< ::message::Dispatch_device_status >(value));
  1395. } else {
  1396. mutable_unknown_fields()->AddVarint(
  1397. 16, static_cast< ::google::protobuf::uint64>(value));
  1398. }
  1399. } else {
  1400. goto handle_unusual;
  1401. }
  1402. break;
  1403. }
  1404. default: {
  1405. handle_unusual:
  1406. if (tag == 0) {
  1407. goto success;
  1408. }
  1409. DO_(::google::protobuf::internal::WireFormat::SkipField(
  1410. input, tag, _internal_metadata_.mutable_unknown_fields()));
  1411. break;
  1412. }
  1413. }
  1414. }
  1415. success:
  1416. // @@protoc_insertion_point(parse_success:message.Dispatch_manager_status_msg)
  1417. return true;
  1418. failure:
  1419. // @@protoc_insertion_point(parse_failure:message.Dispatch_manager_status_msg)
  1420. return false;
  1421. #undef DO_
  1422. }
  1423. void Dispatch_manager_status_msg::SerializeWithCachedSizes(
  1424. ::google::protobuf::io::CodedOutputStream* output) const {
  1425. // @@protoc_insertion_point(serialize_start:message.Dispatch_manager_status_msg)
  1426. ::google::protobuf::uint32 cached_has_bits = 0;
  1427. (void) cached_has_bits;
  1428. cached_has_bits = _has_bits_[0];
  1429. // required .message.Base_info base_info = 1;
  1430. if (cached_has_bits & 0x00000001u) {
  1431. ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
  1432. 1, *this->base_info_, output);
  1433. }
  1434. // required int32 dispatch_id = 2;
  1435. if (cached_has_bits & 0x00000002u) {
  1436. ::google::protobuf::internal::WireFormatLite::WriteInt32(2, this->dispatch_id(), output);
  1437. }
  1438. // required .message.Dispatch_manager_status dispatch_manager_status = 3;
  1439. if (cached_has_bits & 0x00000004u) {
  1440. ::google::protobuf::internal::WireFormatLite::WriteEnum(
  1441. 3, this->dispatch_manager_status(), output);
  1442. }
  1443. // optional .message.Dispatch_device_status robot_1_status = 4;
  1444. if (cached_has_bits & 0x00000008u) {
  1445. ::google::protobuf::internal::WireFormatLite::WriteEnum(
  1446. 4, this->robot_1_status(), output);
  1447. }
  1448. // optional .message.Dispatch_device_status robot_2_status = 5;
  1449. if (cached_has_bits & 0x00000010u) {
  1450. ::google::protobuf::internal::WireFormatLite::WriteEnum(
  1451. 5, this->robot_2_status(), output);
  1452. }
  1453. // optional .message.Dispatch_device_status carrier_1_status = 6;
  1454. if (cached_has_bits & 0x00000020u) {
  1455. ::google::protobuf::internal::WireFormatLite::WriteEnum(
  1456. 6, this->carrier_1_status(), output);
  1457. }
  1458. // optional .message.Dispatch_device_status carrier_2_status = 7;
  1459. if (cached_has_bits & 0x00000040u) {
  1460. ::google::protobuf::internal::WireFormatLite::WriteEnum(
  1461. 7, this->carrier_2_status(), output);
  1462. }
  1463. // optional .message.Dispatch_device_status carrier_3_status = 8;
  1464. if (cached_has_bits & 0x00000080u) {
  1465. ::google::protobuf::internal::WireFormatLite::WriteEnum(
  1466. 8, this->carrier_3_status(), output);
  1467. }
  1468. // optional .message.Dispatch_device_status passageway_0_status = 9;
  1469. if (cached_has_bits & 0x00000100u) {
  1470. ::google::protobuf::internal::WireFormatLite::WriteEnum(
  1471. 9, this->passageway_0_status(), output);
  1472. }
  1473. // optional .message.Dispatch_device_status passageway_1_status = 10;
  1474. if (cached_has_bits & 0x00000200u) {
  1475. ::google::protobuf::internal::WireFormatLite::WriteEnum(
  1476. 10, this->passageway_1_status(), output);
  1477. }
  1478. // optional .message.Dispatch_device_status passageway_2_status = 11;
  1479. if (cached_has_bits & 0x00000400u) {
  1480. ::google::protobuf::internal::WireFormatLite::WriteEnum(
  1481. 11, this->passageway_2_status(), output);
  1482. }
  1483. // optional .message.Dispatch_device_status passageway_3_status = 12;
  1484. if (cached_has_bits & 0x00000800u) {
  1485. ::google::protobuf::internal::WireFormatLite::WriteEnum(
  1486. 12, this->passageway_3_status(), output);
  1487. }
  1488. // optional .message.Dispatch_device_status passageway_4_status = 13;
  1489. if (cached_has_bits & 0x00001000u) {
  1490. ::google::protobuf::internal::WireFormatLite::WriteEnum(
  1491. 13, this->passageway_4_status(), output);
  1492. }
  1493. // optional .message.Dispatch_device_status passageway_5_status = 14;
  1494. if (cached_has_bits & 0x00002000u) {
  1495. ::google::protobuf::internal::WireFormatLite::WriteEnum(
  1496. 14, this->passageway_5_status(), output);
  1497. }
  1498. // optional .message.Dispatch_device_status passageway_6_status = 15;
  1499. if (cached_has_bits & 0x00004000u) {
  1500. ::google::protobuf::internal::WireFormatLite::WriteEnum(
  1501. 15, this->passageway_6_status(), output);
  1502. }
  1503. // optional .message.Dispatch_device_status passageway_7_status = 16;
  1504. if (cached_has_bits & 0x00008000u) {
  1505. ::google::protobuf::internal::WireFormatLite::WriteEnum(
  1506. 16, this->passageway_7_status(), output);
  1507. }
  1508. if (_internal_metadata_.have_unknown_fields()) {
  1509. ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
  1510. _internal_metadata_.unknown_fields(), output);
  1511. }
  1512. // @@protoc_insertion_point(serialize_end:message.Dispatch_manager_status_msg)
  1513. }
  1514. ::google::protobuf::uint8* Dispatch_manager_status_msg::InternalSerializeWithCachedSizesToArray(
  1515. bool deterministic, ::google::protobuf::uint8* target) const {
  1516. (void)deterministic; // Unused
  1517. // @@protoc_insertion_point(serialize_to_array_start:message.Dispatch_manager_status_msg)
  1518. ::google::protobuf::uint32 cached_has_bits = 0;
  1519. (void) cached_has_bits;
  1520. cached_has_bits = _has_bits_[0];
  1521. // required .message.Base_info base_info = 1;
  1522. if (cached_has_bits & 0x00000001u) {
  1523. target = ::google::protobuf::internal::WireFormatLite::
  1524. InternalWriteMessageToArray(
  1525. 1, *this->base_info_, deterministic, target);
  1526. }
  1527. // required int32 dispatch_id = 2;
  1528. if (cached_has_bits & 0x00000002u) {
  1529. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(2, this->dispatch_id(), target);
  1530. }
  1531. // required .message.Dispatch_manager_status dispatch_manager_status = 3;
  1532. if (cached_has_bits & 0x00000004u) {
  1533. target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
  1534. 3, this->dispatch_manager_status(), target);
  1535. }
  1536. // optional .message.Dispatch_device_status robot_1_status = 4;
  1537. if (cached_has_bits & 0x00000008u) {
  1538. target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
  1539. 4, this->robot_1_status(), target);
  1540. }
  1541. // optional .message.Dispatch_device_status robot_2_status = 5;
  1542. if (cached_has_bits & 0x00000010u) {
  1543. target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
  1544. 5, this->robot_2_status(), target);
  1545. }
  1546. // optional .message.Dispatch_device_status carrier_1_status = 6;
  1547. if (cached_has_bits & 0x00000020u) {
  1548. target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
  1549. 6, this->carrier_1_status(), target);
  1550. }
  1551. // optional .message.Dispatch_device_status carrier_2_status = 7;
  1552. if (cached_has_bits & 0x00000040u) {
  1553. target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
  1554. 7, this->carrier_2_status(), target);
  1555. }
  1556. // optional .message.Dispatch_device_status carrier_3_status = 8;
  1557. if (cached_has_bits & 0x00000080u) {
  1558. target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
  1559. 8, this->carrier_3_status(), target);
  1560. }
  1561. // optional .message.Dispatch_device_status passageway_0_status = 9;
  1562. if (cached_has_bits & 0x00000100u) {
  1563. target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
  1564. 9, this->passageway_0_status(), target);
  1565. }
  1566. // optional .message.Dispatch_device_status passageway_1_status = 10;
  1567. if (cached_has_bits & 0x00000200u) {
  1568. target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
  1569. 10, this->passageway_1_status(), target);
  1570. }
  1571. // optional .message.Dispatch_device_status passageway_2_status = 11;
  1572. if (cached_has_bits & 0x00000400u) {
  1573. target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
  1574. 11, this->passageway_2_status(), target);
  1575. }
  1576. // optional .message.Dispatch_device_status passageway_3_status = 12;
  1577. if (cached_has_bits & 0x00000800u) {
  1578. target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
  1579. 12, this->passageway_3_status(), target);
  1580. }
  1581. // optional .message.Dispatch_device_status passageway_4_status = 13;
  1582. if (cached_has_bits & 0x00001000u) {
  1583. target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
  1584. 13, this->passageway_4_status(), target);
  1585. }
  1586. // optional .message.Dispatch_device_status passageway_5_status = 14;
  1587. if (cached_has_bits & 0x00002000u) {
  1588. target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
  1589. 14, this->passageway_5_status(), target);
  1590. }
  1591. // optional .message.Dispatch_device_status passageway_6_status = 15;
  1592. if (cached_has_bits & 0x00004000u) {
  1593. target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
  1594. 15, this->passageway_6_status(), target);
  1595. }
  1596. // optional .message.Dispatch_device_status passageway_7_status = 16;
  1597. if (cached_has_bits & 0x00008000u) {
  1598. target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
  1599. 16, this->passageway_7_status(), target);
  1600. }
  1601. if (_internal_metadata_.have_unknown_fields()) {
  1602. target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
  1603. _internal_metadata_.unknown_fields(), target);
  1604. }
  1605. // @@protoc_insertion_point(serialize_to_array_end:message.Dispatch_manager_status_msg)
  1606. return target;
  1607. }
  1608. size_t Dispatch_manager_status_msg::RequiredFieldsByteSizeFallback() const {
  1609. // @@protoc_insertion_point(required_fields_byte_size_fallback_start:message.Dispatch_manager_status_msg)
  1610. size_t total_size = 0;
  1611. if (has_base_info()) {
  1612. // required .message.Base_info base_info = 1;
  1613. total_size += 1 +
  1614. ::google::protobuf::internal::WireFormatLite::MessageSize(
  1615. *this->base_info_);
  1616. }
  1617. if (has_dispatch_id()) {
  1618. // required int32 dispatch_id = 2;
  1619. total_size += 1 +
  1620. ::google::protobuf::internal::WireFormatLite::Int32Size(
  1621. this->dispatch_id());
  1622. }
  1623. if (has_dispatch_manager_status()) {
  1624. // required .message.Dispatch_manager_status dispatch_manager_status = 3;
  1625. total_size += 1 +
  1626. ::google::protobuf::internal::WireFormatLite::EnumSize(this->dispatch_manager_status());
  1627. }
  1628. return total_size;
  1629. }
  1630. size_t Dispatch_manager_status_msg::ByteSizeLong() const {
  1631. // @@protoc_insertion_point(message_byte_size_start:message.Dispatch_manager_status_msg)
  1632. size_t total_size = 0;
  1633. if (_internal_metadata_.have_unknown_fields()) {
  1634. total_size +=
  1635. ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
  1636. _internal_metadata_.unknown_fields());
  1637. }
  1638. if (((_has_bits_[0] & 0x00000007) ^ 0x00000007) == 0) { // All required fields are present.
  1639. // required .message.Base_info base_info = 1;
  1640. total_size += 1 +
  1641. ::google::protobuf::internal::WireFormatLite::MessageSize(
  1642. *this->base_info_);
  1643. // required int32 dispatch_id = 2;
  1644. total_size += 1 +
  1645. ::google::protobuf::internal::WireFormatLite::Int32Size(
  1646. this->dispatch_id());
  1647. // required .message.Dispatch_manager_status dispatch_manager_status = 3;
  1648. total_size += 1 +
  1649. ::google::protobuf::internal::WireFormatLite::EnumSize(this->dispatch_manager_status());
  1650. } else {
  1651. total_size += RequiredFieldsByteSizeFallback();
  1652. }
  1653. if (_has_bits_[0 / 32] & 248u) {
  1654. // optional .message.Dispatch_device_status robot_1_status = 4;
  1655. if (has_robot_1_status()) {
  1656. total_size += 1 +
  1657. ::google::protobuf::internal::WireFormatLite::EnumSize(this->robot_1_status());
  1658. }
  1659. // optional .message.Dispatch_device_status robot_2_status = 5;
  1660. if (has_robot_2_status()) {
  1661. total_size += 1 +
  1662. ::google::protobuf::internal::WireFormatLite::EnumSize(this->robot_2_status());
  1663. }
  1664. // optional .message.Dispatch_device_status carrier_1_status = 6;
  1665. if (has_carrier_1_status()) {
  1666. total_size += 1 +
  1667. ::google::protobuf::internal::WireFormatLite::EnumSize(this->carrier_1_status());
  1668. }
  1669. // optional .message.Dispatch_device_status carrier_2_status = 7;
  1670. if (has_carrier_2_status()) {
  1671. total_size += 1 +
  1672. ::google::protobuf::internal::WireFormatLite::EnumSize(this->carrier_2_status());
  1673. }
  1674. // optional .message.Dispatch_device_status carrier_3_status = 8;
  1675. if (has_carrier_3_status()) {
  1676. total_size += 1 +
  1677. ::google::protobuf::internal::WireFormatLite::EnumSize(this->carrier_3_status());
  1678. }
  1679. }
  1680. if (_has_bits_[8 / 32] & 65280u) {
  1681. // optional .message.Dispatch_device_status passageway_0_status = 9;
  1682. if (has_passageway_0_status()) {
  1683. total_size += 1 +
  1684. ::google::protobuf::internal::WireFormatLite::EnumSize(this->passageway_0_status());
  1685. }
  1686. // optional .message.Dispatch_device_status passageway_1_status = 10;
  1687. if (has_passageway_1_status()) {
  1688. total_size += 1 +
  1689. ::google::protobuf::internal::WireFormatLite::EnumSize(this->passageway_1_status());
  1690. }
  1691. // optional .message.Dispatch_device_status passageway_2_status = 11;
  1692. if (has_passageway_2_status()) {
  1693. total_size += 1 +
  1694. ::google::protobuf::internal::WireFormatLite::EnumSize(this->passageway_2_status());
  1695. }
  1696. // optional .message.Dispatch_device_status passageway_3_status = 12;
  1697. if (has_passageway_3_status()) {
  1698. total_size += 1 +
  1699. ::google::protobuf::internal::WireFormatLite::EnumSize(this->passageway_3_status());
  1700. }
  1701. // optional .message.Dispatch_device_status passageway_4_status = 13;
  1702. if (has_passageway_4_status()) {
  1703. total_size += 1 +
  1704. ::google::protobuf::internal::WireFormatLite::EnumSize(this->passageway_4_status());
  1705. }
  1706. // optional .message.Dispatch_device_status passageway_5_status = 14;
  1707. if (has_passageway_5_status()) {
  1708. total_size += 1 +
  1709. ::google::protobuf::internal::WireFormatLite::EnumSize(this->passageway_5_status());
  1710. }
  1711. // optional .message.Dispatch_device_status passageway_6_status = 15;
  1712. if (has_passageway_6_status()) {
  1713. total_size += 1 +
  1714. ::google::protobuf::internal::WireFormatLite::EnumSize(this->passageway_6_status());
  1715. }
  1716. // optional .message.Dispatch_device_status passageway_7_status = 16;
  1717. if (has_passageway_7_status()) {
  1718. total_size += 2 +
  1719. ::google::protobuf::internal::WireFormatLite::EnumSize(this->passageway_7_status());
  1720. }
  1721. }
  1722. int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
  1723. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  1724. _cached_size_ = cached_size;
  1725. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  1726. return total_size;
  1727. }
  1728. void Dispatch_manager_status_msg::MergeFrom(const ::google::protobuf::Message& from) {
  1729. // @@protoc_insertion_point(generalized_merge_from_start:message.Dispatch_manager_status_msg)
  1730. GOOGLE_DCHECK_NE(&from, this);
  1731. const Dispatch_manager_status_msg* source =
  1732. ::google::protobuf::internal::DynamicCastToGenerated<const Dispatch_manager_status_msg>(
  1733. &from);
  1734. if (source == NULL) {
  1735. // @@protoc_insertion_point(generalized_merge_from_cast_fail:message.Dispatch_manager_status_msg)
  1736. ::google::protobuf::internal::ReflectionOps::Merge(from, this);
  1737. } else {
  1738. // @@protoc_insertion_point(generalized_merge_from_cast_success:message.Dispatch_manager_status_msg)
  1739. MergeFrom(*source);
  1740. }
  1741. }
  1742. void Dispatch_manager_status_msg::MergeFrom(const Dispatch_manager_status_msg& from) {
  1743. // @@protoc_insertion_point(class_specific_merge_from_start:message.Dispatch_manager_status_msg)
  1744. GOOGLE_DCHECK_NE(&from, this);
  1745. _internal_metadata_.MergeFrom(from._internal_metadata_);
  1746. ::google::protobuf::uint32 cached_has_bits = 0;
  1747. (void) cached_has_bits;
  1748. cached_has_bits = from._has_bits_[0];
  1749. if (cached_has_bits & 255u) {
  1750. if (cached_has_bits & 0x00000001u) {
  1751. mutable_base_info()->::message::Base_info::MergeFrom(from.base_info());
  1752. }
  1753. if (cached_has_bits & 0x00000002u) {
  1754. dispatch_id_ = from.dispatch_id_;
  1755. }
  1756. if (cached_has_bits & 0x00000004u) {
  1757. dispatch_manager_status_ = from.dispatch_manager_status_;
  1758. }
  1759. if (cached_has_bits & 0x00000008u) {
  1760. robot_1_status_ = from.robot_1_status_;
  1761. }
  1762. if (cached_has_bits & 0x00000010u) {
  1763. robot_2_status_ = from.robot_2_status_;
  1764. }
  1765. if (cached_has_bits & 0x00000020u) {
  1766. carrier_1_status_ = from.carrier_1_status_;
  1767. }
  1768. if (cached_has_bits & 0x00000040u) {
  1769. carrier_2_status_ = from.carrier_2_status_;
  1770. }
  1771. if (cached_has_bits & 0x00000080u) {
  1772. carrier_3_status_ = from.carrier_3_status_;
  1773. }
  1774. _has_bits_[0] |= cached_has_bits;
  1775. }
  1776. if (cached_has_bits & 65280u) {
  1777. if (cached_has_bits & 0x00000100u) {
  1778. passageway_0_status_ = from.passageway_0_status_;
  1779. }
  1780. if (cached_has_bits & 0x00000200u) {
  1781. passageway_1_status_ = from.passageway_1_status_;
  1782. }
  1783. if (cached_has_bits & 0x00000400u) {
  1784. passageway_2_status_ = from.passageway_2_status_;
  1785. }
  1786. if (cached_has_bits & 0x00000800u) {
  1787. passageway_3_status_ = from.passageway_3_status_;
  1788. }
  1789. if (cached_has_bits & 0x00001000u) {
  1790. passageway_4_status_ = from.passageway_4_status_;
  1791. }
  1792. if (cached_has_bits & 0x00002000u) {
  1793. passageway_5_status_ = from.passageway_5_status_;
  1794. }
  1795. if (cached_has_bits & 0x00004000u) {
  1796. passageway_6_status_ = from.passageway_6_status_;
  1797. }
  1798. if (cached_has_bits & 0x00008000u) {
  1799. passageway_7_status_ = from.passageway_7_status_;
  1800. }
  1801. _has_bits_[0] |= cached_has_bits;
  1802. }
  1803. }
  1804. void Dispatch_manager_status_msg::CopyFrom(const ::google::protobuf::Message& from) {
  1805. // @@protoc_insertion_point(generalized_copy_from_start:message.Dispatch_manager_status_msg)
  1806. if (&from == this) return;
  1807. Clear();
  1808. MergeFrom(from);
  1809. }
  1810. void Dispatch_manager_status_msg::CopyFrom(const Dispatch_manager_status_msg& from) {
  1811. // @@protoc_insertion_point(class_specific_copy_from_start:message.Dispatch_manager_status_msg)
  1812. if (&from == this) return;
  1813. Clear();
  1814. MergeFrom(from);
  1815. }
  1816. bool Dispatch_manager_status_msg::IsInitialized() const {
  1817. if ((_has_bits_[0] & 0x00000007) != 0x00000007) return false;
  1818. if (has_base_info()) {
  1819. if (!this->base_info_->IsInitialized()) return false;
  1820. }
  1821. return true;
  1822. }
  1823. void Dispatch_manager_status_msg::Swap(Dispatch_manager_status_msg* other) {
  1824. if (other == this) return;
  1825. InternalSwap(other);
  1826. }
  1827. void Dispatch_manager_status_msg::InternalSwap(Dispatch_manager_status_msg* other) {
  1828. using std::swap;
  1829. swap(base_info_, other->base_info_);
  1830. swap(dispatch_id_, other->dispatch_id_);
  1831. swap(dispatch_manager_status_, other->dispatch_manager_status_);
  1832. swap(robot_1_status_, other->robot_1_status_);
  1833. swap(robot_2_status_, other->robot_2_status_);
  1834. swap(carrier_1_status_, other->carrier_1_status_);
  1835. swap(carrier_2_status_, other->carrier_2_status_);
  1836. swap(carrier_3_status_, other->carrier_3_status_);
  1837. swap(passageway_0_status_, other->passageway_0_status_);
  1838. swap(passageway_1_status_, other->passageway_1_status_);
  1839. swap(passageway_2_status_, other->passageway_2_status_);
  1840. swap(passageway_3_status_, other->passageway_3_status_);
  1841. swap(passageway_4_status_, other->passageway_4_status_);
  1842. swap(passageway_5_status_, other->passageway_5_status_);
  1843. swap(passageway_6_status_, other->passageway_6_status_);
  1844. swap(passageway_7_status_, other->passageway_7_status_);
  1845. swap(_has_bits_[0], other->_has_bits_[0]);
  1846. _internal_metadata_.Swap(&other->_internal_metadata_);
  1847. swap(_cached_size_, other->_cached_size_);
  1848. }
  1849. ::google::protobuf::Metadata Dispatch_manager_status_msg::GetMetadata() const {
  1850. protobuf_dispatch_5fmessage_2eproto::protobuf_AssignDescriptorsOnce();
  1851. return ::protobuf_dispatch_5fmessage_2eproto::file_level_metadata[kIndexInFileMessages];
  1852. }
  1853. // ===================================================================
  1854. void Dispatch_terminal_status_msg::InitAsDefaultInstance() {
  1855. ::message::_Dispatch_terminal_status_msg_default_instance_._instance.get_mutable()->base_info_ = const_cast< ::message::Base_info*>(
  1856. ::message::Base_info::internal_default_instance());
  1857. }
  1858. void Dispatch_terminal_status_msg::clear_base_info() {
  1859. if (base_info_ != NULL) base_info_->Clear();
  1860. clear_has_base_info();
  1861. }
  1862. #if !defined(_MSC_VER) || _MSC_VER >= 1900
  1863. const int Dispatch_terminal_status_msg::kBaseInfoFieldNumber;
  1864. const int Dispatch_terminal_status_msg::kTerminalIdFieldNumber;
  1865. const int Dispatch_terminal_status_msg::kTerminalStatusFieldNumber;
  1866. const int Dispatch_terminal_status_msg::kPassagewayDirectionFieldNumber;
  1867. #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
  1868. Dispatch_terminal_status_msg::Dispatch_terminal_status_msg()
  1869. : ::google::protobuf::Message(), _internal_metadata_(NULL) {
  1870. if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
  1871. ::protobuf_dispatch_5fmessage_2eproto::InitDefaultsDispatch_terminal_status_msg();
  1872. }
  1873. SharedCtor();
  1874. // @@protoc_insertion_point(constructor:message.Dispatch_terminal_status_msg)
  1875. }
  1876. Dispatch_terminal_status_msg::Dispatch_terminal_status_msg(const Dispatch_terminal_status_msg& from)
  1877. : ::google::protobuf::Message(),
  1878. _internal_metadata_(NULL),
  1879. _has_bits_(from._has_bits_),
  1880. _cached_size_(0) {
  1881. _internal_metadata_.MergeFrom(from._internal_metadata_);
  1882. if (from.has_base_info()) {
  1883. base_info_ = new ::message::Base_info(*from.base_info_);
  1884. } else {
  1885. base_info_ = NULL;
  1886. }
  1887. ::memcpy(&terminal_id_, &from.terminal_id_,
  1888. static_cast<size_t>(reinterpret_cast<char*>(&passageway_direction_) -
  1889. reinterpret_cast<char*>(&terminal_id_)) + sizeof(passageway_direction_));
  1890. // @@protoc_insertion_point(copy_constructor:message.Dispatch_terminal_status_msg)
  1891. }
  1892. void Dispatch_terminal_status_msg::SharedCtor() {
  1893. _cached_size_ = 0;
  1894. ::memset(&base_info_, 0, static_cast<size_t>(
  1895. reinterpret_cast<char*>(&passageway_direction_) -
  1896. reinterpret_cast<char*>(&base_info_)) + sizeof(passageway_direction_));
  1897. }
  1898. Dispatch_terminal_status_msg::~Dispatch_terminal_status_msg() {
  1899. // @@protoc_insertion_point(destructor:message.Dispatch_terminal_status_msg)
  1900. SharedDtor();
  1901. }
  1902. void Dispatch_terminal_status_msg::SharedDtor() {
  1903. if (this != internal_default_instance()) delete base_info_;
  1904. }
  1905. void Dispatch_terminal_status_msg::SetCachedSize(int size) const {
  1906. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  1907. _cached_size_ = size;
  1908. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  1909. }
  1910. const ::google::protobuf::Descriptor* Dispatch_terminal_status_msg::descriptor() {
  1911. ::protobuf_dispatch_5fmessage_2eproto::protobuf_AssignDescriptorsOnce();
  1912. return ::protobuf_dispatch_5fmessage_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
  1913. }
  1914. const Dispatch_terminal_status_msg& Dispatch_terminal_status_msg::default_instance() {
  1915. ::protobuf_dispatch_5fmessage_2eproto::InitDefaultsDispatch_terminal_status_msg();
  1916. return *internal_default_instance();
  1917. }
  1918. Dispatch_terminal_status_msg* Dispatch_terminal_status_msg::New(::google::protobuf::Arena* arena) const {
  1919. Dispatch_terminal_status_msg* n = new Dispatch_terminal_status_msg;
  1920. if (arena != NULL) {
  1921. arena->Own(n);
  1922. }
  1923. return n;
  1924. }
  1925. void Dispatch_terminal_status_msg::Clear() {
  1926. // @@protoc_insertion_point(message_clear_start:message.Dispatch_terminal_status_msg)
  1927. ::google::protobuf::uint32 cached_has_bits = 0;
  1928. // Prevent compiler warnings about cached_has_bits being unused
  1929. (void) cached_has_bits;
  1930. cached_has_bits = _has_bits_[0];
  1931. if (cached_has_bits & 0x00000001u) {
  1932. GOOGLE_DCHECK(base_info_ != NULL);
  1933. base_info_->Clear();
  1934. }
  1935. if (cached_has_bits & 14u) {
  1936. ::memset(&terminal_id_, 0, static_cast<size_t>(
  1937. reinterpret_cast<char*>(&passageway_direction_) -
  1938. reinterpret_cast<char*>(&terminal_id_)) + sizeof(passageway_direction_));
  1939. }
  1940. _has_bits_.Clear();
  1941. _internal_metadata_.Clear();
  1942. }
  1943. bool Dispatch_terminal_status_msg::MergePartialFromCodedStream(
  1944. ::google::protobuf::io::CodedInputStream* input) {
  1945. #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
  1946. ::google::protobuf::uint32 tag;
  1947. // @@protoc_insertion_point(parse_start:message.Dispatch_terminal_status_msg)
  1948. for (;;) {
  1949. ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
  1950. tag = p.first;
  1951. if (!p.second) goto handle_unusual;
  1952. switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
  1953. // required .message.Base_info base_info = 1;
  1954. case 1: {
  1955. if (static_cast< ::google::protobuf::uint8>(tag) ==
  1956. static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
  1957. DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
  1958. input, mutable_base_info()));
  1959. } else {
  1960. goto handle_unusual;
  1961. }
  1962. break;
  1963. }
  1964. // required int32 terminal_id = 2;
  1965. case 2: {
  1966. if (static_cast< ::google::protobuf::uint8>(tag) ==
  1967. static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) {
  1968. set_has_terminal_id();
  1969. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  1970. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  1971. input, &terminal_id_)));
  1972. } else {
  1973. goto handle_unusual;
  1974. }
  1975. break;
  1976. }
  1977. // required .message.Terminal_status terminal_status = 3;
  1978. case 3: {
  1979. if (static_cast< ::google::protobuf::uint8>(tag) ==
  1980. static_cast< ::google::protobuf::uint8>(24u /* 24 & 0xFF */)) {
  1981. int value;
  1982. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  1983. int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
  1984. input, &value)));
  1985. if (::message::Terminal_status_IsValid(value)) {
  1986. set_terminal_status(static_cast< ::message::Terminal_status >(value));
  1987. } else {
  1988. mutable_unknown_fields()->AddVarint(
  1989. 3, static_cast< ::google::protobuf::uint64>(value));
  1990. }
  1991. } else {
  1992. goto handle_unusual;
  1993. }
  1994. break;
  1995. }
  1996. // required .message.Passageway_direction passageway_direction = 4;
  1997. case 4: {
  1998. if (static_cast< ::google::protobuf::uint8>(tag) ==
  1999. static_cast< ::google::protobuf::uint8>(32u /* 32 & 0xFF */)) {
  2000. int value;
  2001. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  2002. int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
  2003. input, &value)));
  2004. if (::message::Passageway_direction_IsValid(value)) {
  2005. set_passageway_direction(static_cast< ::message::Passageway_direction >(value));
  2006. } else {
  2007. mutable_unknown_fields()->AddVarint(
  2008. 4, static_cast< ::google::protobuf::uint64>(value));
  2009. }
  2010. } else {
  2011. goto handle_unusual;
  2012. }
  2013. break;
  2014. }
  2015. default: {
  2016. handle_unusual:
  2017. if (tag == 0) {
  2018. goto success;
  2019. }
  2020. DO_(::google::protobuf::internal::WireFormat::SkipField(
  2021. input, tag, _internal_metadata_.mutable_unknown_fields()));
  2022. break;
  2023. }
  2024. }
  2025. }
  2026. success:
  2027. // @@protoc_insertion_point(parse_success:message.Dispatch_terminal_status_msg)
  2028. return true;
  2029. failure:
  2030. // @@protoc_insertion_point(parse_failure:message.Dispatch_terminal_status_msg)
  2031. return false;
  2032. #undef DO_
  2033. }
  2034. void Dispatch_terminal_status_msg::SerializeWithCachedSizes(
  2035. ::google::protobuf::io::CodedOutputStream* output) const {
  2036. // @@protoc_insertion_point(serialize_start:message.Dispatch_terminal_status_msg)
  2037. ::google::protobuf::uint32 cached_has_bits = 0;
  2038. (void) cached_has_bits;
  2039. cached_has_bits = _has_bits_[0];
  2040. // required .message.Base_info base_info = 1;
  2041. if (cached_has_bits & 0x00000001u) {
  2042. ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
  2043. 1, *this->base_info_, output);
  2044. }
  2045. // required int32 terminal_id = 2;
  2046. if (cached_has_bits & 0x00000002u) {
  2047. ::google::protobuf::internal::WireFormatLite::WriteInt32(2, this->terminal_id(), output);
  2048. }
  2049. // required .message.Terminal_status terminal_status = 3;
  2050. if (cached_has_bits & 0x00000004u) {
  2051. ::google::protobuf::internal::WireFormatLite::WriteEnum(
  2052. 3, this->terminal_status(), output);
  2053. }
  2054. // required .message.Passageway_direction passageway_direction = 4;
  2055. if (cached_has_bits & 0x00000008u) {
  2056. ::google::protobuf::internal::WireFormatLite::WriteEnum(
  2057. 4, this->passageway_direction(), output);
  2058. }
  2059. if (_internal_metadata_.have_unknown_fields()) {
  2060. ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
  2061. _internal_metadata_.unknown_fields(), output);
  2062. }
  2063. // @@protoc_insertion_point(serialize_end:message.Dispatch_terminal_status_msg)
  2064. }
  2065. ::google::protobuf::uint8* Dispatch_terminal_status_msg::InternalSerializeWithCachedSizesToArray(
  2066. bool deterministic, ::google::protobuf::uint8* target) const {
  2067. (void)deterministic; // Unused
  2068. // @@protoc_insertion_point(serialize_to_array_start:message.Dispatch_terminal_status_msg)
  2069. ::google::protobuf::uint32 cached_has_bits = 0;
  2070. (void) cached_has_bits;
  2071. cached_has_bits = _has_bits_[0];
  2072. // required .message.Base_info base_info = 1;
  2073. if (cached_has_bits & 0x00000001u) {
  2074. target = ::google::protobuf::internal::WireFormatLite::
  2075. InternalWriteMessageToArray(
  2076. 1, *this->base_info_, deterministic, target);
  2077. }
  2078. // required int32 terminal_id = 2;
  2079. if (cached_has_bits & 0x00000002u) {
  2080. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(2, this->terminal_id(), target);
  2081. }
  2082. // required .message.Terminal_status terminal_status = 3;
  2083. if (cached_has_bits & 0x00000004u) {
  2084. target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
  2085. 3, this->terminal_status(), target);
  2086. }
  2087. // required .message.Passageway_direction passageway_direction = 4;
  2088. if (cached_has_bits & 0x00000008u) {
  2089. target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
  2090. 4, this->passageway_direction(), target);
  2091. }
  2092. if (_internal_metadata_.have_unknown_fields()) {
  2093. target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
  2094. _internal_metadata_.unknown_fields(), target);
  2095. }
  2096. // @@protoc_insertion_point(serialize_to_array_end:message.Dispatch_terminal_status_msg)
  2097. return target;
  2098. }
  2099. size_t Dispatch_terminal_status_msg::RequiredFieldsByteSizeFallback() const {
  2100. // @@protoc_insertion_point(required_fields_byte_size_fallback_start:message.Dispatch_terminal_status_msg)
  2101. size_t total_size = 0;
  2102. if (has_base_info()) {
  2103. // required .message.Base_info base_info = 1;
  2104. total_size += 1 +
  2105. ::google::protobuf::internal::WireFormatLite::MessageSize(
  2106. *this->base_info_);
  2107. }
  2108. if (has_terminal_id()) {
  2109. // required int32 terminal_id = 2;
  2110. total_size += 1 +
  2111. ::google::protobuf::internal::WireFormatLite::Int32Size(
  2112. this->terminal_id());
  2113. }
  2114. if (has_terminal_status()) {
  2115. // required .message.Terminal_status terminal_status = 3;
  2116. total_size += 1 +
  2117. ::google::protobuf::internal::WireFormatLite::EnumSize(this->terminal_status());
  2118. }
  2119. if (has_passageway_direction()) {
  2120. // required .message.Passageway_direction passageway_direction = 4;
  2121. total_size += 1 +
  2122. ::google::protobuf::internal::WireFormatLite::EnumSize(this->passageway_direction());
  2123. }
  2124. return total_size;
  2125. }
  2126. size_t Dispatch_terminal_status_msg::ByteSizeLong() const {
  2127. // @@protoc_insertion_point(message_byte_size_start:message.Dispatch_terminal_status_msg)
  2128. size_t total_size = 0;
  2129. if (_internal_metadata_.have_unknown_fields()) {
  2130. total_size +=
  2131. ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
  2132. _internal_metadata_.unknown_fields());
  2133. }
  2134. if (((_has_bits_[0] & 0x0000000f) ^ 0x0000000f) == 0) { // All required fields are present.
  2135. // required .message.Base_info base_info = 1;
  2136. total_size += 1 +
  2137. ::google::protobuf::internal::WireFormatLite::MessageSize(
  2138. *this->base_info_);
  2139. // required int32 terminal_id = 2;
  2140. total_size += 1 +
  2141. ::google::protobuf::internal::WireFormatLite::Int32Size(
  2142. this->terminal_id());
  2143. // required .message.Terminal_status terminal_status = 3;
  2144. total_size += 1 +
  2145. ::google::protobuf::internal::WireFormatLite::EnumSize(this->terminal_status());
  2146. // required .message.Passageway_direction passageway_direction = 4;
  2147. total_size += 1 +
  2148. ::google::protobuf::internal::WireFormatLite::EnumSize(this->passageway_direction());
  2149. } else {
  2150. total_size += RequiredFieldsByteSizeFallback();
  2151. }
  2152. int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
  2153. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  2154. _cached_size_ = cached_size;
  2155. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  2156. return total_size;
  2157. }
  2158. void Dispatch_terminal_status_msg::MergeFrom(const ::google::protobuf::Message& from) {
  2159. // @@protoc_insertion_point(generalized_merge_from_start:message.Dispatch_terminal_status_msg)
  2160. GOOGLE_DCHECK_NE(&from, this);
  2161. const Dispatch_terminal_status_msg* source =
  2162. ::google::protobuf::internal::DynamicCastToGenerated<const Dispatch_terminal_status_msg>(
  2163. &from);
  2164. if (source == NULL) {
  2165. // @@protoc_insertion_point(generalized_merge_from_cast_fail:message.Dispatch_terminal_status_msg)
  2166. ::google::protobuf::internal::ReflectionOps::Merge(from, this);
  2167. } else {
  2168. // @@protoc_insertion_point(generalized_merge_from_cast_success:message.Dispatch_terminal_status_msg)
  2169. MergeFrom(*source);
  2170. }
  2171. }
  2172. void Dispatch_terminal_status_msg::MergeFrom(const Dispatch_terminal_status_msg& from) {
  2173. // @@protoc_insertion_point(class_specific_merge_from_start:message.Dispatch_terminal_status_msg)
  2174. GOOGLE_DCHECK_NE(&from, this);
  2175. _internal_metadata_.MergeFrom(from._internal_metadata_);
  2176. ::google::protobuf::uint32 cached_has_bits = 0;
  2177. (void) cached_has_bits;
  2178. cached_has_bits = from._has_bits_[0];
  2179. if (cached_has_bits & 15u) {
  2180. if (cached_has_bits & 0x00000001u) {
  2181. mutable_base_info()->::message::Base_info::MergeFrom(from.base_info());
  2182. }
  2183. if (cached_has_bits & 0x00000002u) {
  2184. terminal_id_ = from.terminal_id_;
  2185. }
  2186. if (cached_has_bits & 0x00000004u) {
  2187. terminal_status_ = from.terminal_status_;
  2188. }
  2189. if (cached_has_bits & 0x00000008u) {
  2190. passageway_direction_ = from.passageway_direction_;
  2191. }
  2192. _has_bits_[0] |= cached_has_bits;
  2193. }
  2194. }
  2195. void Dispatch_terminal_status_msg::CopyFrom(const ::google::protobuf::Message& from) {
  2196. // @@protoc_insertion_point(generalized_copy_from_start:message.Dispatch_terminal_status_msg)
  2197. if (&from == this) return;
  2198. Clear();
  2199. MergeFrom(from);
  2200. }
  2201. void Dispatch_terminal_status_msg::CopyFrom(const Dispatch_terminal_status_msg& from) {
  2202. // @@protoc_insertion_point(class_specific_copy_from_start:message.Dispatch_terminal_status_msg)
  2203. if (&from == this) return;
  2204. Clear();
  2205. MergeFrom(from);
  2206. }
  2207. bool Dispatch_terminal_status_msg::IsInitialized() const {
  2208. if ((_has_bits_[0] & 0x0000000f) != 0x0000000f) return false;
  2209. if (has_base_info()) {
  2210. if (!this->base_info_->IsInitialized()) return false;
  2211. }
  2212. return true;
  2213. }
  2214. void Dispatch_terminal_status_msg::Swap(Dispatch_terminal_status_msg* other) {
  2215. if (other == this) return;
  2216. InternalSwap(other);
  2217. }
  2218. void Dispatch_terminal_status_msg::InternalSwap(Dispatch_terminal_status_msg* other) {
  2219. using std::swap;
  2220. swap(base_info_, other->base_info_);
  2221. swap(terminal_id_, other->terminal_id_);
  2222. swap(terminal_status_, other->terminal_status_);
  2223. swap(passageway_direction_, other->passageway_direction_);
  2224. swap(_has_bits_[0], other->_has_bits_[0]);
  2225. _internal_metadata_.Swap(&other->_internal_metadata_);
  2226. swap(_cached_size_, other->_cached_size_);
  2227. }
  2228. ::google::protobuf::Metadata Dispatch_terminal_status_msg::GetMetadata() const {
  2229. protobuf_dispatch_5fmessage_2eproto::protobuf_AssignDescriptorsOnce();
  2230. return ::protobuf_dispatch_5fmessage_2eproto::file_level_metadata[kIndexInFileMessages];
  2231. }
  2232. // ===================================================================
  2233. void Dispatch_request_msg::InitAsDefaultInstance() {
  2234. ::message::_Dispatch_request_msg_default_instance_._instance.get_mutable()->base_info_ = const_cast< ::message::Base_info*>(
  2235. ::message::Base_info::internal_default_instance());
  2236. ::message::_Dispatch_request_msg_default_instance_._instance.get_mutable()->parkspace_info_ = const_cast< ::message::Parkspace_info*>(
  2237. ::message::Parkspace_info::internal_default_instance());
  2238. ::message::_Dispatch_request_msg_default_instance_._instance.get_mutable()->locate_information_ = const_cast< ::message::Locate_information*>(
  2239. ::message::Locate_information::internal_default_instance());
  2240. }
  2241. void Dispatch_request_msg::clear_base_info() {
  2242. if (base_info_ != NULL) base_info_->Clear();
  2243. clear_has_base_info();
  2244. }
  2245. void Dispatch_request_msg::clear_parkspace_info() {
  2246. if (parkspace_info_ != NULL) parkspace_info_->Clear();
  2247. clear_has_parkspace_info();
  2248. }
  2249. void Dispatch_request_msg::clear_locate_information() {
  2250. if (locate_information_ != NULL) locate_information_->Clear();
  2251. clear_has_locate_information();
  2252. }
  2253. #if !defined(_MSC_VER) || _MSC_VER >= 1900
  2254. const int Dispatch_request_msg::kBaseInfoFieldNumber;
  2255. const int Dispatch_request_msg::kCommandKeyFieldNumber;
  2256. const int Dispatch_request_msg::kDispatchMotionDirectionFieldNumber;
  2257. const int Dispatch_request_msg::kTerminalIdFieldNumber;
  2258. const int Dispatch_request_msg::kParkspaceInfoFieldNumber;
  2259. const int Dispatch_request_msg::kLocateInformationFieldNumber;
  2260. #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
  2261. Dispatch_request_msg::Dispatch_request_msg()
  2262. : ::google::protobuf::Message(), _internal_metadata_(NULL) {
  2263. if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
  2264. ::protobuf_dispatch_5fmessage_2eproto::InitDefaultsDispatch_request_msg();
  2265. }
  2266. SharedCtor();
  2267. // @@protoc_insertion_point(constructor:message.Dispatch_request_msg)
  2268. }
  2269. Dispatch_request_msg::Dispatch_request_msg(const Dispatch_request_msg& from)
  2270. : ::google::protobuf::Message(),
  2271. _internal_metadata_(NULL),
  2272. _has_bits_(from._has_bits_),
  2273. _cached_size_(0) {
  2274. _internal_metadata_.MergeFrom(from._internal_metadata_);
  2275. command_key_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  2276. if (from.has_command_key()) {
  2277. command_key_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.command_key_);
  2278. }
  2279. if (from.has_base_info()) {
  2280. base_info_ = new ::message::Base_info(*from.base_info_);
  2281. } else {
  2282. base_info_ = NULL;
  2283. }
  2284. if (from.has_parkspace_info()) {
  2285. parkspace_info_ = new ::message::Parkspace_info(*from.parkspace_info_);
  2286. } else {
  2287. parkspace_info_ = NULL;
  2288. }
  2289. if (from.has_locate_information()) {
  2290. locate_information_ = new ::message::Locate_information(*from.locate_information_);
  2291. } else {
  2292. locate_information_ = NULL;
  2293. }
  2294. ::memcpy(&dispatch_motion_direction_, &from.dispatch_motion_direction_,
  2295. static_cast<size_t>(reinterpret_cast<char*>(&terminal_id_) -
  2296. reinterpret_cast<char*>(&dispatch_motion_direction_)) + sizeof(terminal_id_));
  2297. // @@protoc_insertion_point(copy_constructor:message.Dispatch_request_msg)
  2298. }
  2299. void Dispatch_request_msg::SharedCtor() {
  2300. _cached_size_ = 0;
  2301. command_key_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  2302. ::memset(&base_info_, 0, static_cast<size_t>(
  2303. reinterpret_cast<char*>(&terminal_id_) -
  2304. reinterpret_cast<char*>(&base_info_)) + sizeof(terminal_id_));
  2305. }
  2306. Dispatch_request_msg::~Dispatch_request_msg() {
  2307. // @@protoc_insertion_point(destructor:message.Dispatch_request_msg)
  2308. SharedDtor();
  2309. }
  2310. void Dispatch_request_msg::SharedDtor() {
  2311. command_key_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  2312. if (this != internal_default_instance()) delete base_info_;
  2313. if (this != internal_default_instance()) delete parkspace_info_;
  2314. if (this != internal_default_instance()) delete locate_information_;
  2315. }
  2316. void Dispatch_request_msg::SetCachedSize(int size) const {
  2317. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  2318. _cached_size_ = size;
  2319. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  2320. }
  2321. const ::google::protobuf::Descriptor* Dispatch_request_msg::descriptor() {
  2322. ::protobuf_dispatch_5fmessage_2eproto::protobuf_AssignDescriptorsOnce();
  2323. return ::protobuf_dispatch_5fmessage_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
  2324. }
  2325. const Dispatch_request_msg& Dispatch_request_msg::default_instance() {
  2326. ::protobuf_dispatch_5fmessage_2eproto::InitDefaultsDispatch_request_msg();
  2327. return *internal_default_instance();
  2328. }
  2329. Dispatch_request_msg* Dispatch_request_msg::New(::google::protobuf::Arena* arena) const {
  2330. Dispatch_request_msg* n = new Dispatch_request_msg;
  2331. if (arena != NULL) {
  2332. arena->Own(n);
  2333. }
  2334. return n;
  2335. }
  2336. void Dispatch_request_msg::Clear() {
  2337. // @@protoc_insertion_point(message_clear_start:message.Dispatch_request_msg)
  2338. ::google::protobuf::uint32 cached_has_bits = 0;
  2339. // Prevent compiler warnings about cached_has_bits being unused
  2340. (void) cached_has_bits;
  2341. cached_has_bits = _has_bits_[0];
  2342. if (cached_has_bits & 15u) {
  2343. if (cached_has_bits & 0x00000001u) {
  2344. GOOGLE_DCHECK(!command_key_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()));
  2345. (*command_key_.UnsafeRawStringPointer())->clear();
  2346. }
  2347. if (cached_has_bits & 0x00000002u) {
  2348. GOOGLE_DCHECK(base_info_ != NULL);
  2349. base_info_->Clear();
  2350. }
  2351. if (cached_has_bits & 0x00000004u) {
  2352. GOOGLE_DCHECK(parkspace_info_ != NULL);
  2353. parkspace_info_->Clear();
  2354. }
  2355. if (cached_has_bits & 0x00000008u) {
  2356. GOOGLE_DCHECK(locate_information_ != NULL);
  2357. locate_information_->Clear();
  2358. }
  2359. }
  2360. if (cached_has_bits & 48u) {
  2361. ::memset(&dispatch_motion_direction_, 0, static_cast<size_t>(
  2362. reinterpret_cast<char*>(&terminal_id_) -
  2363. reinterpret_cast<char*>(&dispatch_motion_direction_)) + sizeof(terminal_id_));
  2364. }
  2365. _has_bits_.Clear();
  2366. _internal_metadata_.Clear();
  2367. }
  2368. bool Dispatch_request_msg::MergePartialFromCodedStream(
  2369. ::google::protobuf::io::CodedInputStream* input) {
  2370. #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
  2371. ::google::protobuf::uint32 tag;
  2372. // @@protoc_insertion_point(parse_start:message.Dispatch_request_msg)
  2373. for (;;) {
  2374. ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
  2375. tag = p.first;
  2376. if (!p.second) goto handle_unusual;
  2377. switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
  2378. // required .message.Base_info base_info = 1;
  2379. case 1: {
  2380. if (static_cast< ::google::protobuf::uint8>(tag) ==
  2381. static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
  2382. DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
  2383. input, mutable_base_info()));
  2384. } else {
  2385. goto handle_unusual;
  2386. }
  2387. break;
  2388. }
  2389. // required string command_key = 2;
  2390. case 2: {
  2391. if (static_cast< ::google::protobuf::uint8>(tag) ==
  2392. static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) {
  2393. DO_(::google::protobuf::internal::WireFormatLite::ReadString(
  2394. input, this->mutable_command_key()));
  2395. ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
  2396. this->command_key().data(), static_cast<int>(this->command_key().length()),
  2397. ::google::protobuf::internal::WireFormat::PARSE,
  2398. "message.Dispatch_request_msg.command_key");
  2399. } else {
  2400. goto handle_unusual;
  2401. }
  2402. break;
  2403. }
  2404. // required .message.Dispatch_motion_direction dispatch_motion_direction = 3;
  2405. case 3: {
  2406. if (static_cast< ::google::protobuf::uint8>(tag) ==
  2407. static_cast< ::google::protobuf::uint8>(24u /* 24 & 0xFF */)) {
  2408. int value;
  2409. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  2410. int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
  2411. input, &value)));
  2412. if (::message::Dispatch_motion_direction_IsValid(value)) {
  2413. set_dispatch_motion_direction(static_cast< ::message::Dispatch_motion_direction >(value));
  2414. } else {
  2415. mutable_unknown_fields()->AddVarint(
  2416. 3, static_cast< ::google::protobuf::uint64>(value));
  2417. }
  2418. } else {
  2419. goto handle_unusual;
  2420. }
  2421. break;
  2422. }
  2423. // required int32 terminal_id = 4;
  2424. case 4: {
  2425. if (static_cast< ::google::protobuf::uint8>(tag) ==
  2426. static_cast< ::google::protobuf::uint8>(32u /* 32 & 0xFF */)) {
  2427. set_has_terminal_id();
  2428. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  2429. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  2430. input, &terminal_id_)));
  2431. } else {
  2432. goto handle_unusual;
  2433. }
  2434. break;
  2435. }
  2436. // required .message.Parkspace_info parkspace_info = 5;
  2437. case 5: {
  2438. if (static_cast< ::google::protobuf::uint8>(tag) ==
  2439. static_cast< ::google::protobuf::uint8>(42u /* 42 & 0xFF */)) {
  2440. DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
  2441. input, mutable_parkspace_info()));
  2442. } else {
  2443. goto handle_unusual;
  2444. }
  2445. break;
  2446. }
  2447. // optional .message.Locate_information locate_information = 6;
  2448. case 6: {
  2449. if (static_cast< ::google::protobuf::uint8>(tag) ==
  2450. static_cast< ::google::protobuf::uint8>(50u /* 50 & 0xFF */)) {
  2451. DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
  2452. input, mutable_locate_information()));
  2453. } else {
  2454. goto handle_unusual;
  2455. }
  2456. break;
  2457. }
  2458. default: {
  2459. handle_unusual:
  2460. if (tag == 0) {
  2461. goto success;
  2462. }
  2463. DO_(::google::protobuf::internal::WireFormat::SkipField(
  2464. input, tag, _internal_metadata_.mutable_unknown_fields()));
  2465. break;
  2466. }
  2467. }
  2468. }
  2469. success:
  2470. // @@protoc_insertion_point(parse_success:message.Dispatch_request_msg)
  2471. return true;
  2472. failure:
  2473. // @@protoc_insertion_point(parse_failure:message.Dispatch_request_msg)
  2474. return false;
  2475. #undef DO_
  2476. }
  2477. void Dispatch_request_msg::SerializeWithCachedSizes(
  2478. ::google::protobuf::io::CodedOutputStream* output) const {
  2479. // @@protoc_insertion_point(serialize_start:message.Dispatch_request_msg)
  2480. ::google::protobuf::uint32 cached_has_bits = 0;
  2481. (void) cached_has_bits;
  2482. cached_has_bits = _has_bits_[0];
  2483. // required .message.Base_info base_info = 1;
  2484. if (cached_has_bits & 0x00000002u) {
  2485. ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
  2486. 1, *this->base_info_, output);
  2487. }
  2488. // required string command_key = 2;
  2489. if (cached_has_bits & 0x00000001u) {
  2490. ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
  2491. this->command_key().data(), static_cast<int>(this->command_key().length()),
  2492. ::google::protobuf::internal::WireFormat::SERIALIZE,
  2493. "message.Dispatch_request_msg.command_key");
  2494. ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
  2495. 2, this->command_key(), output);
  2496. }
  2497. // required .message.Dispatch_motion_direction dispatch_motion_direction = 3;
  2498. if (cached_has_bits & 0x00000010u) {
  2499. ::google::protobuf::internal::WireFormatLite::WriteEnum(
  2500. 3, this->dispatch_motion_direction(), output);
  2501. }
  2502. // required int32 terminal_id = 4;
  2503. if (cached_has_bits & 0x00000020u) {
  2504. ::google::protobuf::internal::WireFormatLite::WriteInt32(4, this->terminal_id(), output);
  2505. }
  2506. // required .message.Parkspace_info parkspace_info = 5;
  2507. if (cached_has_bits & 0x00000004u) {
  2508. ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
  2509. 5, *this->parkspace_info_, output);
  2510. }
  2511. // optional .message.Locate_information locate_information = 6;
  2512. if (cached_has_bits & 0x00000008u) {
  2513. ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
  2514. 6, *this->locate_information_, output);
  2515. }
  2516. if (_internal_metadata_.have_unknown_fields()) {
  2517. ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
  2518. _internal_metadata_.unknown_fields(), output);
  2519. }
  2520. // @@protoc_insertion_point(serialize_end:message.Dispatch_request_msg)
  2521. }
  2522. ::google::protobuf::uint8* Dispatch_request_msg::InternalSerializeWithCachedSizesToArray(
  2523. bool deterministic, ::google::protobuf::uint8* target) const {
  2524. (void)deterministic; // Unused
  2525. // @@protoc_insertion_point(serialize_to_array_start:message.Dispatch_request_msg)
  2526. ::google::protobuf::uint32 cached_has_bits = 0;
  2527. (void) cached_has_bits;
  2528. cached_has_bits = _has_bits_[0];
  2529. // required .message.Base_info base_info = 1;
  2530. if (cached_has_bits & 0x00000002u) {
  2531. target = ::google::protobuf::internal::WireFormatLite::
  2532. InternalWriteMessageToArray(
  2533. 1, *this->base_info_, deterministic, target);
  2534. }
  2535. // required string command_key = 2;
  2536. if (cached_has_bits & 0x00000001u) {
  2537. ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
  2538. this->command_key().data(), static_cast<int>(this->command_key().length()),
  2539. ::google::protobuf::internal::WireFormat::SERIALIZE,
  2540. "message.Dispatch_request_msg.command_key");
  2541. target =
  2542. ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
  2543. 2, this->command_key(), target);
  2544. }
  2545. // required .message.Dispatch_motion_direction dispatch_motion_direction = 3;
  2546. if (cached_has_bits & 0x00000010u) {
  2547. target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
  2548. 3, this->dispatch_motion_direction(), target);
  2549. }
  2550. // required int32 terminal_id = 4;
  2551. if (cached_has_bits & 0x00000020u) {
  2552. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(4, this->terminal_id(), target);
  2553. }
  2554. // required .message.Parkspace_info parkspace_info = 5;
  2555. if (cached_has_bits & 0x00000004u) {
  2556. target = ::google::protobuf::internal::WireFormatLite::
  2557. InternalWriteMessageToArray(
  2558. 5, *this->parkspace_info_, deterministic, target);
  2559. }
  2560. // optional .message.Locate_information locate_information = 6;
  2561. if (cached_has_bits & 0x00000008u) {
  2562. target = ::google::protobuf::internal::WireFormatLite::
  2563. InternalWriteMessageToArray(
  2564. 6, *this->locate_information_, deterministic, target);
  2565. }
  2566. if (_internal_metadata_.have_unknown_fields()) {
  2567. target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
  2568. _internal_metadata_.unknown_fields(), target);
  2569. }
  2570. // @@protoc_insertion_point(serialize_to_array_end:message.Dispatch_request_msg)
  2571. return target;
  2572. }
  2573. size_t Dispatch_request_msg::RequiredFieldsByteSizeFallback() const {
  2574. // @@protoc_insertion_point(required_fields_byte_size_fallback_start:message.Dispatch_request_msg)
  2575. size_t total_size = 0;
  2576. if (has_command_key()) {
  2577. // required string command_key = 2;
  2578. total_size += 1 +
  2579. ::google::protobuf::internal::WireFormatLite::StringSize(
  2580. this->command_key());
  2581. }
  2582. if (has_base_info()) {
  2583. // required .message.Base_info base_info = 1;
  2584. total_size += 1 +
  2585. ::google::protobuf::internal::WireFormatLite::MessageSize(
  2586. *this->base_info_);
  2587. }
  2588. if (has_parkspace_info()) {
  2589. // required .message.Parkspace_info parkspace_info = 5;
  2590. total_size += 1 +
  2591. ::google::protobuf::internal::WireFormatLite::MessageSize(
  2592. *this->parkspace_info_);
  2593. }
  2594. if (has_dispatch_motion_direction()) {
  2595. // required .message.Dispatch_motion_direction dispatch_motion_direction = 3;
  2596. total_size += 1 +
  2597. ::google::protobuf::internal::WireFormatLite::EnumSize(this->dispatch_motion_direction());
  2598. }
  2599. if (has_terminal_id()) {
  2600. // required int32 terminal_id = 4;
  2601. total_size += 1 +
  2602. ::google::protobuf::internal::WireFormatLite::Int32Size(
  2603. this->terminal_id());
  2604. }
  2605. return total_size;
  2606. }
  2607. size_t Dispatch_request_msg::ByteSizeLong() const {
  2608. // @@protoc_insertion_point(message_byte_size_start:message.Dispatch_request_msg)
  2609. size_t total_size = 0;
  2610. if (_internal_metadata_.have_unknown_fields()) {
  2611. total_size +=
  2612. ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
  2613. _internal_metadata_.unknown_fields());
  2614. }
  2615. if (((_has_bits_[0] & 0x00000037) ^ 0x00000037) == 0) { // All required fields are present.
  2616. // required string command_key = 2;
  2617. total_size += 1 +
  2618. ::google::protobuf::internal::WireFormatLite::StringSize(
  2619. this->command_key());
  2620. // required .message.Base_info base_info = 1;
  2621. total_size += 1 +
  2622. ::google::protobuf::internal::WireFormatLite::MessageSize(
  2623. *this->base_info_);
  2624. // required .message.Parkspace_info parkspace_info = 5;
  2625. total_size += 1 +
  2626. ::google::protobuf::internal::WireFormatLite::MessageSize(
  2627. *this->parkspace_info_);
  2628. // required .message.Dispatch_motion_direction dispatch_motion_direction = 3;
  2629. total_size += 1 +
  2630. ::google::protobuf::internal::WireFormatLite::EnumSize(this->dispatch_motion_direction());
  2631. // required int32 terminal_id = 4;
  2632. total_size += 1 +
  2633. ::google::protobuf::internal::WireFormatLite::Int32Size(
  2634. this->terminal_id());
  2635. } else {
  2636. total_size += RequiredFieldsByteSizeFallback();
  2637. }
  2638. // optional .message.Locate_information locate_information = 6;
  2639. if (has_locate_information()) {
  2640. total_size += 1 +
  2641. ::google::protobuf::internal::WireFormatLite::MessageSize(
  2642. *this->locate_information_);
  2643. }
  2644. int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
  2645. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  2646. _cached_size_ = cached_size;
  2647. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  2648. return total_size;
  2649. }
  2650. void Dispatch_request_msg::MergeFrom(const ::google::protobuf::Message& from) {
  2651. // @@protoc_insertion_point(generalized_merge_from_start:message.Dispatch_request_msg)
  2652. GOOGLE_DCHECK_NE(&from, this);
  2653. const Dispatch_request_msg* source =
  2654. ::google::protobuf::internal::DynamicCastToGenerated<const Dispatch_request_msg>(
  2655. &from);
  2656. if (source == NULL) {
  2657. // @@protoc_insertion_point(generalized_merge_from_cast_fail:message.Dispatch_request_msg)
  2658. ::google::protobuf::internal::ReflectionOps::Merge(from, this);
  2659. } else {
  2660. // @@protoc_insertion_point(generalized_merge_from_cast_success:message.Dispatch_request_msg)
  2661. MergeFrom(*source);
  2662. }
  2663. }
  2664. void Dispatch_request_msg::MergeFrom(const Dispatch_request_msg& from) {
  2665. // @@protoc_insertion_point(class_specific_merge_from_start:message.Dispatch_request_msg)
  2666. GOOGLE_DCHECK_NE(&from, this);
  2667. _internal_metadata_.MergeFrom(from._internal_metadata_);
  2668. ::google::protobuf::uint32 cached_has_bits = 0;
  2669. (void) cached_has_bits;
  2670. cached_has_bits = from._has_bits_[0];
  2671. if (cached_has_bits & 63u) {
  2672. if (cached_has_bits & 0x00000001u) {
  2673. set_has_command_key();
  2674. command_key_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.command_key_);
  2675. }
  2676. if (cached_has_bits & 0x00000002u) {
  2677. mutable_base_info()->::message::Base_info::MergeFrom(from.base_info());
  2678. }
  2679. if (cached_has_bits & 0x00000004u) {
  2680. mutable_parkspace_info()->::message::Parkspace_info::MergeFrom(from.parkspace_info());
  2681. }
  2682. if (cached_has_bits & 0x00000008u) {
  2683. mutable_locate_information()->::message::Locate_information::MergeFrom(from.locate_information());
  2684. }
  2685. if (cached_has_bits & 0x00000010u) {
  2686. dispatch_motion_direction_ = from.dispatch_motion_direction_;
  2687. }
  2688. if (cached_has_bits & 0x00000020u) {
  2689. terminal_id_ = from.terminal_id_;
  2690. }
  2691. _has_bits_[0] |= cached_has_bits;
  2692. }
  2693. }
  2694. void Dispatch_request_msg::CopyFrom(const ::google::protobuf::Message& from) {
  2695. // @@protoc_insertion_point(generalized_copy_from_start:message.Dispatch_request_msg)
  2696. if (&from == this) return;
  2697. Clear();
  2698. MergeFrom(from);
  2699. }
  2700. void Dispatch_request_msg::CopyFrom(const Dispatch_request_msg& from) {
  2701. // @@protoc_insertion_point(class_specific_copy_from_start:message.Dispatch_request_msg)
  2702. if (&from == this) return;
  2703. Clear();
  2704. MergeFrom(from);
  2705. }
  2706. bool Dispatch_request_msg::IsInitialized() const {
  2707. if ((_has_bits_[0] & 0x00000037) != 0x00000037) return false;
  2708. if (has_base_info()) {
  2709. if (!this->base_info_->IsInitialized()) return false;
  2710. }
  2711. return true;
  2712. }
  2713. void Dispatch_request_msg::Swap(Dispatch_request_msg* other) {
  2714. if (other == this) return;
  2715. InternalSwap(other);
  2716. }
  2717. void Dispatch_request_msg::InternalSwap(Dispatch_request_msg* other) {
  2718. using std::swap;
  2719. command_key_.Swap(&other->command_key_);
  2720. swap(base_info_, other->base_info_);
  2721. swap(parkspace_info_, other->parkspace_info_);
  2722. swap(locate_information_, other->locate_information_);
  2723. swap(dispatch_motion_direction_, other->dispatch_motion_direction_);
  2724. swap(terminal_id_, other->terminal_id_);
  2725. swap(_has_bits_[0], other->_has_bits_[0]);
  2726. _internal_metadata_.Swap(&other->_internal_metadata_);
  2727. swap(_cached_size_, other->_cached_size_);
  2728. }
  2729. ::google::protobuf::Metadata Dispatch_request_msg::GetMetadata() const {
  2730. protobuf_dispatch_5fmessage_2eproto::protobuf_AssignDescriptorsOnce();
  2731. return ::protobuf_dispatch_5fmessage_2eproto::file_level_metadata[kIndexInFileMessages];
  2732. }
  2733. // ===================================================================
  2734. void Dispatch_response_msg::InitAsDefaultInstance() {
  2735. ::message::_Dispatch_response_msg_default_instance_._instance.get_mutable()->base_info_ = const_cast< ::message::Base_info*>(
  2736. ::message::Base_info::internal_default_instance());
  2737. ::message::_Dispatch_response_msg_default_instance_._instance.get_mutable()->error_manager_ = const_cast< ::message::Error_manager*>(
  2738. ::message::Error_manager::internal_default_instance());
  2739. }
  2740. void Dispatch_response_msg::clear_base_info() {
  2741. if (base_info_ != NULL) base_info_->Clear();
  2742. clear_has_base_info();
  2743. }
  2744. void Dispatch_response_msg::clear_error_manager() {
  2745. if (error_manager_ != NULL) error_manager_->Clear();
  2746. clear_has_error_manager();
  2747. }
  2748. #if !defined(_MSC_VER) || _MSC_VER >= 1900
  2749. const int Dispatch_response_msg::kBaseInfoFieldNumber;
  2750. const int Dispatch_response_msg::kCommandKeyFieldNumber;
  2751. const int Dispatch_response_msg::kErrorManagerFieldNumber;
  2752. #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
  2753. Dispatch_response_msg::Dispatch_response_msg()
  2754. : ::google::protobuf::Message(), _internal_metadata_(NULL) {
  2755. if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
  2756. ::protobuf_dispatch_5fmessage_2eproto::InitDefaultsDispatch_response_msg();
  2757. }
  2758. SharedCtor();
  2759. // @@protoc_insertion_point(constructor:message.Dispatch_response_msg)
  2760. }
  2761. Dispatch_response_msg::Dispatch_response_msg(const Dispatch_response_msg& from)
  2762. : ::google::protobuf::Message(),
  2763. _internal_metadata_(NULL),
  2764. _has_bits_(from._has_bits_),
  2765. _cached_size_(0) {
  2766. _internal_metadata_.MergeFrom(from._internal_metadata_);
  2767. command_key_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  2768. if (from.has_command_key()) {
  2769. command_key_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.command_key_);
  2770. }
  2771. if (from.has_base_info()) {
  2772. base_info_ = new ::message::Base_info(*from.base_info_);
  2773. } else {
  2774. base_info_ = NULL;
  2775. }
  2776. if (from.has_error_manager()) {
  2777. error_manager_ = new ::message::Error_manager(*from.error_manager_);
  2778. } else {
  2779. error_manager_ = NULL;
  2780. }
  2781. // @@protoc_insertion_point(copy_constructor:message.Dispatch_response_msg)
  2782. }
  2783. void Dispatch_response_msg::SharedCtor() {
  2784. _cached_size_ = 0;
  2785. command_key_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  2786. ::memset(&base_info_, 0, static_cast<size_t>(
  2787. reinterpret_cast<char*>(&error_manager_) -
  2788. reinterpret_cast<char*>(&base_info_)) + sizeof(error_manager_));
  2789. }
  2790. Dispatch_response_msg::~Dispatch_response_msg() {
  2791. // @@protoc_insertion_point(destructor:message.Dispatch_response_msg)
  2792. SharedDtor();
  2793. }
  2794. void Dispatch_response_msg::SharedDtor() {
  2795. command_key_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  2796. if (this != internal_default_instance()) delete base_info_;
  2797. if (this != internal_default_instance()) delete error_manager_;
  2798. }
  2799. void Dispatch_response_msg::SetCachedSize(int size) const {
  2800. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  2801. _cached_size_ = size;
  2802. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  2803. }
  2804. const ::google::protobuf::Descriptor* Dispatch_response_msg::descriptor() {
  2805. ::protobuf_dispatch_5fmessage_2eproto::protobuf_AssignDescriptorsOnce();
  2806. return ::protobuf_dispatch_5fmessage_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
  2807. }
  2808. const Dispatch_response_msg& Dispatch_response_msg::default_instance() {
  2809. ::protobuf_dispatch_5fmessage_2eproto::InitDefaultsDispatch_response_msg();
  2810. return *internal_default_instance();
  2811. }
  2812. Dispatch_response_msg* Dispatch_response_msg::New(::google::protobuf::Arena* arena) const {
  2813. Dispatch_response_msg* n = new Dispatch_response_msg;
  2814. if (arena != NULL) {
  2815. arena->Own(n);
  2816. }
  2817. return n;
  2818. }
  2819. void Dispatch_response_msg::Clear() {
  2820. // @@protoc_insertion_point(message_clear_start:message.Dispatch_response_msg)
  2821. ::google::protobuf::uint32 cached_has_bits = 0;
  2822. // Prevent compiler warnings about cached_has_bits being unused
  2823. (void) cached_has_bits;
  2824. cached_has_bits = _has_bits_[0];
  2825. if (cached_has_bits & 7u) {
  2826. if (cached_has_bits & 0x00000001u) {
  2827. GOOGLE_DCHECK(!command_key_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()));
  2828. (*command_key_.UnsafeRawStringPointer())->clear();
  2829. }
  2830. if (cached_has_bits & 0x00000002u) {
  2831. GOOGLE_DCHECK(base_info_ != NULL);
  2832. base_info_->Clear();
  2833. }
  2834. if (cached_has_bits & 0x00000004u) {
  2835. GOOGLE_DCHECK(error_manager_ != NULL);
  2836. error_manager_->Clear();
  2837. }
  2838. }
  2839. _has_bits_.Clear();
  2840. _internal_metadata_.Clear();
  2841. }
  2842. bool Dispatch_response_msg::MergePartialFromCodedStream(
  2843. ::google::protobuf::io::CodedInputStream* input) {
  2844. #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
  2845. ::google::protobuf::uint32 tag;
  2846. // @@protoc_insertion_point(parse_start:message.Dispatch_response_msg)
  2847. for (;;) {
  2848. ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
  2849. tag = p.first;
  2850. if (!p.second) goto handle_unusual;
  2851. switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
  2852. // required .message.Base_info base_info = 1;
  2853. case 1: {
  2854. if (static_cast< ::google::protobuf::uint8>(tag) ==
  2855. static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
  2856. DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
  2857. input, mutable_base_info()));
  2858. } else {
  2859. goto handle_unusual;
  2860. }
  2861. break;
  2862. }
  2863. // required string command_key = 2;
  2864. case 2: {
  2865. if (static_cast< ::google::protobuf::uint8>(tag) ==
  2866. static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) {
  2867. DO_(::google::protobuf::internal::WireFormatLite::ReadString(
  2868. input, this->mutable_command_key()));
  2869. ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
  2870. this->command_key().data(), static_cast<int>(this->command_key().length()),
  2871. ::google::protobuf::internal::WireFormat::PARSE,
  2872. "message.Dispatch_response_msg.command_key");
  2873. } else {
  2874. goto handle_unusual;
  2875. }
  2876. break;
  2877. }
  2878. // required .message.Error_manager error_manager = 3;
  2879. case 3: {
  2880. if (static_cast< ::google::protobuf::uint8>(tag) ==
  2881. static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) {
  2882. DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
  2883. input, mutable_error_manager()));
  2884. } else {
  2885. goto handle_unusual;
  2886. }
  2887. break;
  2888. }
  2889. default: {
  2890. handle_unusual:
  2891. if (tag == 0) {
  2892. goto success;
  2893. }
  2894. DO_(::google::protobuf::internal::WireFormat::SkipField(
  2895. input, tag, _internal_metadata_.mutable_unknown_fields()));
  2896. break;
  2897. }
  2898. }
  2899. }
  2900. success:
  2901. // @@protoc_insertion_point(parse_success:message.Dispatch_response_msg)
  2902. return true;
  2903. failure:
  2904. // @@protoc_insertion_point(parse_failure:message.Dispatch_response_msg)
  2905. return false;
  2906. #undef DO_
  2907. }
  2908. void Dispatch_response_msg::SerializeWithCachedSizes(
  2909. ::google::protobuf::io::CodedOutputStream* output) const {
  2910. // @@protoc_insertion_point(serialize_start:message.Dispatch_response_msg)
  2911. ::google::protobuf::uint32 cached_has_bits = 0;
  2912. (void) cached_has_bits;
  2913. cached_has_bits = _has_bits_[0];
  2914. // required .message.Base_info base_info = 1;
  2915. if (cached_has_bits & 0x00000002u) {
  2916. ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
  2917. 1, *this->base_info_, output);
  2918. }
  2919. // required string command_key = 2;
  2920. if (cached_has_bits & 0x00000001u) {
  2921. ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
  2922. this->command_key().data(), static_cast<int>(this->command_key().length()),
  2923. ::google::protobuf::internal::WireFormat::SERIALIZE,
  2924. "message.Dispatch_response_msg.command_key");
  2925. ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
  2926. 2, this->command_key(), output);
  2927. }
  2928. // required .message.Error_manager error_manager = 3;
  2929. if (cached_has_bits & 0x00000004u) {
  2930. ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
  2931. 3, *this->error_manager_, output);
  2932. }
  2933. if (_internal_metadata_.have_unknown_fields()) {
  2934. ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
  2935. _internal_metadata_.unknown_fields(), output);
  2936. }
  2937. // @@protoc_insertion_point(serialize_end:message.Dispatch_response_msg)
  2938. }
  2939. ::google::protobuf::uint8* Dispatch_response_msg::InternalSerializeWithCachedSizesToArray(
  2940. bool deterministic, ::google::protobuf::uint8* target) const {
  2941. (void)deterministic; // Unused
  2942. // @@protoc_insertion_point(serialize_to_array_start:message.Dispatch_response_msg)
  2943. ::google::protobuf::uint32 cached_has_bits = 0;
  2944. (void) cached_has_bits;
  2945. cached_has_bits = _has_bits_[0];
  2946. // required .message.Base_info base_info = 1;
  2947. if (cached_has_bits & 0x00000002u) {
  2948. target = ::google::protobuf::internal::WireFormatLite::
  2949. InternalWriteMessageToArray(
  2950. 1, *this->base_info_, deterministic, target);
  2951. }
  2952. // required string command_key = 2;
  2953. if (cached_has_bits & 0x00000001u) {
  2954. ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
  2955. this->command_key().data(), static_cast<int>(this->command_key().length()),
  2956. ::google::protobuf::internal::WireFormat::SERIALIZE,
  2957. "message.Dispatch_response_msg.command_key");
  2958. target =
  2959. ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
  2960. 2, this->command_key(), target);
  2961. }
  2962. // required .message.Error_manager error_manager = 3;
  2963. if (cached_has_bits & 0x00000004u) {
  2964. target = ::google::protobuf::internal::WireFormatLite::
  2965. InternalWriteMessageToArray(
  2966. 3, *this->error_manager_, deterministic, target);
  2967. }
  2968. if (_internal_metadata_.have_unknown_fields()) {
  2969. target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
  2970. _internal_metadata_.unknown_fields(), target);
  2971. }
  2972. // @@protoc_insertion_point(serialize_to_array_end:message.Dispatch_response_msg)
  2973. return target;
  2974. }
  2975. size_t Dispatch_response_msg::RequiredFieldsByteSizeFallback() const {
  2976. // @@protoc_insertion_point(required_fields_byte_size_fallback_start:message.Dispatch_response_msg)
  2977. size_t total_size = 0;
  2978. if (has_command_key()) {
  2979. // required string command_key = 2;
  2980. total_size += 1 +
  2981. ::google::protobuf::internal::WireFormatLite::StringSize(
  2982. this->command_key());
  2983. }
  2984. if (has_base_info()) {
  2985. // required .message.Base_info base_info = 1;
  2986. total_size += 1 +
  2987. ::google::protobuf::internal::WireFormatLite::MessageSize(
  2988. *this->base_info_);
  2989. }
  2990. if (has_error_manager()) {
  2991. // required .message.Error_manager error_manager = 3;
  2992. total_size += 1 +
  2993. ::google::protobuf::internal::WireFormatLite::MessageSize(
  2994. *this->error_manager_);
  2995. }
  2996. return total_size;
  2997. }
  2998. size_t Dispatch_response_msg::ByteSizeLong() const {
  2999. // @@protoc_insertion_point(message_byte_size_start:message.Dispatch_response_msg)
  3000. size_t total_size = 0;
  3001. if (_internal_metadata_.have_unknown_fields()) {
  3002. total_size +=
  3003. ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
  3004. _internal_metadata_.unknown_fields());
  3005. }
  3006. if (((_has_bits_[0] & 0x00000007) ^ 0x00000007) == 0) { // All required fields are present.
  3007. // required string command_key = 2;
  3008. total_size += 1 +
  3009. ::google::protobuf::internal::WireFormatLite::StringSize(
  3010. this->command_key());
  3011. // required .message.Base_info base_info = 1;
  3012. total_size += 1 +
  3013. ::google::protobuf::internal::WireFormatLite::MessageSize(
  3014. *this->base_info_);
  3015. // required .message.Error_manager error_manager = 3;
  3016. total_size += 1 +
  3017. ::google::protobuf::internal::WireFormatLite::MessageSize(
  3018. *this->error_manager_);
  3019. } else {
  3020. total_size += RequiredFieldsByteSizeFallback();
  3021. }
  3022. int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
  3023. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  3024. _cached_size_ = cached_size;
  3025. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  3026. return total_size;
  3027. }
  3028. void Dispatch_response_msg::MergeFrom(const ::google::protobuf::Message& from) {
  3029. // @@protoc_insertion_point(generalized_merge_from_start:message.Dispatch_response_msg)
  3030. GOOGLE_DCHECK_NE(&from, this);
  3031. const Dispatch_response_msg* source =
  3032. ::google::protobuf::internal::DynamicCastToGenerated<const Dispatch_response_msg>(
  3033. &from);
  3034. if (source == NULL) {
  3035. // @@protoc_insertion_point(generalized_merge_from_cast_fail:message.Dispatch_response_msg)
  3036. ::google::protobuf::internal::ReflectionOps::Merge(from, this);
  3037. } else {
  3038. // @@protoc_insertion_point(generalized_merge_from_cast_success:message.Dispatch_response_msg)
  3039. MergeFrom(*source);
  3040. }
  3041. }
  3042. void Dispatch_response_msg::MergeFrom(const Dispatch_response_msg& from) {
  3043. // @@protoc_insertion_point(class_specific_merge_from_start:message.Dispatch_response_msg)
  3044. GOOGLE_DCHECK_NE(&from, this);
  3045. _internal_metadata_.MergeFrom(from._internal_metadata_);
  3046. ::google::protobuf::uint32 cached_has_bits = 0;
  3047. (void) cached_has_bits;
  3048. cached_has_bits = from._has_bits_[0];
  3049. if (cached_has_bits & 7u) {
  3050. if (cached_has_bits & 0x00000001u) {
  3051. set_has_command_key();
  3052. command_key_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.command_key_);
  3053. }
  3054. if (cached_has_bits & 0x00000002u) {
  3055. mutable_base_info()->::message::Base_info::MergeFrom(from.base_info());
  3056. }
  3057. if (cached_has_bits & 0x00000004u) {
  3058. mutable_error_manager()->::message::Error_manager::MergeFrom(from.error_manager());
  3059. }
  3060. }
  3061. }
  3062. void Dispatch_response_msg::CopyFrom(const ::google::protobuf::Message& from) {
  3063. // @@protoc_insertion_point(generalized_copy_from_start:message.Dispatch_response_msg)
  3064. if (&from == this) return;
  3065. Clear();
  3066. MergeFrom(from);
  3067. }
  3068. void Dispatch_response_msg::CopyFrom(const Dispatch_response_msg& from) {
  3069. // @@protoc_insertion_point(class_specific_copy_from_start:message.Dispatch_response_msg)
  3070. if (&from == this) return;
  3071. Clear();
  3072. MergeFrom(from);
  3073. }
  3074. bool Dispatch_response_msg::IsInitialized() const {
  3075. if ((_has_bits_[0] & 0x00000007) != 0x00000007) return false;
  3076. if (has_base_info()) {
  3077. if (!this->base_info_->IsInitialized()) return false;
  3078. }
  3079. if (has_error_manager()) {
  3080. if (!this->error_manager_->IsInitialized()) return false;
  3081. }
  3082. return true;
  3083. }
  3084. void Dispatch_response_msg::Swap(Dispatch_response_msg* other) {
  3085. if (other == this) return;
  3086. InternalSwap(other);
  3087. }
  3088. void Dispatch_response_msg::InternalSwap(Dispatch_response_msg* other) {
  3089. using std::swap;
  3090. command_key_.Swap(&other->command_key_);
  3091. swap(base_info_, other->base_info_);
  3092. swap(error_manager_, other->error_manager_);
  3093. swap(_has_bits_[0], other->_has_bits_[0]);
  3094. _internal_metadata_.Swap(&other->_internal_metadata_);
  3095. swap(_cached_size_, other->_cached_size_);
  3096. }
  3097. ::google::protobuf::Metadata Dispatch_response_msg::GetMetadata() const {
  3098. protobuf_dispatch_5fmessage_2eproto::protobuf_AssignDescriptorsOnce();
  3099. return ::protobuf_dispatch_5fmessage_2eproto::file_level_metadata[kIndexInFileMessages];
  3100. }
  3101. // @@protoc_insertion_point(namespace_scope)
  3102. } // namespace message
  3103. // @@protoc_insertion_point(global_scope)