message.pb.cc 168 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629
  1. // Generated by the protocol buffer compiler. DO NOT EDIT!
  2. // source: message.proto
  3. #include "message.pb.h"
  4. #include <algorithm>
  5. #include <google/protobuf/stubs/common.h>
  6. #include <google/protobuf/stubs/port.h>
  7. #include <google/protobuf/io/coded_stream.h>
  8. #include <google/protobuf/wire_format_lite_inl.h>
  9. #include <google/protobuf/descriptor.h>
  10. #include <google/protobuf/generated_message_reflection.h>
  11. #include <google/protobuf/reflection_ops.h>
  12. #include <google/protobuf/wire_format.h>
  13. // This is a temporary google only hack
  14. #ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
  15. #include "third_party/protobuf/version.h"
  16. #endif
  17. // @@protoc_insertion_point(includes)
  18. namespace protobuf_message_2eproto {
  19. extern PROTOBUF_INTERNAL_EXPORT_protobuf_message_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_dispatch_region_info;
  20. extern PROTOBUF_INTERNAL_EXPORT_protobuf_message_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_measure_info;
  21. extern PROTOBUF_INTERNAL_EXPORT_protobuf_message_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_parkspace_info;
  22. extern PROTOBUF_INTERNAL_EXPORT_protobuf_message_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_table_statu;
  23. extern PROTOBUF_INTERNAL_EXPORT_protobuf_message_2eproto ::google::protobuf::internal::SCCInfo<3> scc_info_park_table;
  24. extern PROTOBUF_INTERNAL_EXPORT_protobuf_message_2eproto ::google::protobuf::internal::SCCInfo<3> scc_info_pick_table;
  25. } // namespace protobuf_message_2eproto
  26. class measure_infoDefaultTypeInternal {
  27. public:
  28. ::google::protobuf::internal::ExplicitlyConstructed<measure_info>
  29. _instance;
  30. } _measure_info_default_instance_;
  31. class parkspace_infoDefaultTypeInternal {
  32. public:
  33. ::google::protobuf::internal::ExplicitlyConstructed<parkspace_info>
  34. _instance;
  35. } _parkspace_info_default_instance_;
  36. class table_statuDefaultTypeInternal {
  37. public:
  38. ::google::protobuf::internal::ExplicitlyConstructed<table_statu>
  39. _instance;
  40. } _table_statu_default_instance_;
  41. class park_tableDefaultTypeInternal {
  42. public:
  43. ::google::protobuf::internal::ExplicitlyConstructed<park_table>
  44. _instance;
  45. } _park_table_default_instance_;
  46. class pick_tableDefaultTypeInternal {
  47. public:
  48. ::google::protobuf::internal::ExplicitlyConstructed<pick_table>
  49. _instance;
  50. } _pick_table_default_instance_;
  51. class out_mcpu_statuDefaultTypeInternal {
  52. public:
  53. ::google::protobuf::internal::ExplicitlyConstructed<out_mcpu_statu>
  54. _instance;
  55. } _out_mcpu_statu_default_instance_;
  56. class in_mcpu_statuDefaultTypeInternal {
  57. public:
  58. ::google::protobuf::internal::ExplicitlyConstructed<in_mcpu_statu>
  59. _instance;
  60. } _in_mcpu_statu_default_instance_;
  61. class measure_statuDefaultTypeInternal {
  62. public:
  63. ::google::protobuf::internal::ExplicitlyConstructed<measure_statu>
  64. _instance;
  65. } _measure_statu_default_instance_;
  66. class dispatch_region_infoDefaultTypeInternal {
  67. public:
  68. ::google::protobuf::internal::ExplicitlyConstructed<dispatch_region_info>
  69. _instance;
  70. } _dispatch_region_info_default_instance_;
  71. class dispatch_node_statuDefaultTypeInternal {
  72. public:
  73. ::google::protobuf::internal::ExplicitlyConstructed<dispatch_node_statu>
  74. _instance;
  75. } _dispatch_node_statu_default_instance_;
  76. namespace protobuf_message_2eproto {
  77. static void InitDefaultsmeasure_info() {
  78. GOOGLE_PROTOBUF_VERIFY_VERSION;
  79. {
  80. void* ptr = &::_measure_info_default_instance_;
  81. new (ptr) ::measure_info();
  82. ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
  83. }
  84. ::measure_info::InitAsDefaultInstance();
  85. }
  86. ::google::protobuf::internal::SCCInfo<0> scc_info_measure_info =
  87. {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsmeasure_info}, {}};
  88. static void InitDefaultsparkspace_info() {
  89. GOOGLE_PROTOBUF_VERIFY_VERSION;
  90. {
  91. void* ptr = &::_parkspace_info_default_instance_;
  92. new (ptr) ::parkspace_info();
  93. ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
  94. }
  95. ::parkspace_info::InitAsDefaultInstance();
  96. }
  97. ::google::protobuf::internal::SCCInfo<0> scc_info_parkspace_info =
  98. {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsparkspace_info}, {}};
  99. static void InitDefaultstable_statu() {
  100. GOOGLE_PROTOBUF_VERIFY_VERSION;
  101. {
  102. void* ptr = &::_table_statu_default_instance_;
  103. new (ptr) ::table_statu();
  104. ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
  105. }
  106. ::table_statu::InitAsDefaultInstance();
  107. }
  108. ::google::protobuf::internal::SCCInfo<0> scc_info_table_statu =
  109. {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultstable_statu}, {}};
  110. static void InitDefaultspark_table() {
  111. GOOGLE_PROTOBUF_VERIFY_VERSION;
  112. {
  113. void* ptr = &::_park_table_default_instance_;
  114. new (ptr) ::park_table();
  115. ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
  116. }
  117. ::park_table::InitAsDefaultInstance();
  118. }
  119. ::google::protobuf::internal::SCCInfo<3> scc_info_park_table =
  120. {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 3, InitDefaultspark_table}, {
  121. &protobuf_message_2eproto::scc_info_table_statu.base,
  122. &protobuf_message_2eproto::scc_info_measure_info.base,
  123. &protobuf_message_2eproto::scc_info_parkspace_info.base,}};
  124. static void InitDefaultspick_table() {
  125. GOOGLE_PROTOBUF_VERIFY_VERSION;
  126. {
  127. void* ptr = &::_pick_table_default_instance_;
  128. new (ptr) ::pick_table();
  129. ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
  130. }
  131. ::pick_table::InitAsDefaultInstance();
  132. }
  133. ::google::protobuf::internal::SCCInfo<3> scc_info_pick_table =
  134. {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 3, InitDefaultspick_table}, {
  135. &protobuf_message_2eproto::scc_info_table_statu.base,
  136. &protobuf_message_2eproto::scc_info_parkspace_info.base,
  137. &protobuf_message_2eproto::scc_info_measure_info.base,}};
  138. static void InitDefaultsout_mcpu_statu() {
  139. GOOGLE_PROTOBUF_VERIFY_VERSION;
  140. {
  141. void* ptr = &::_out_mcpu_statu_default_instance_;
  142. new (ptr) ::out_mcpu_statu();
  143. ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
  144. }
  145. ::out_mcpu_statu::InitAsDefaultInstance();
  146. }
  147. ::google::protobuf::internal::SCCInfo<0> scc_info_out_mcpu_statu =
  148. {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsout_mcpu_statu}, {}};
  149. static void InitDefaultsin_mcpu_statu() {
  150. GOOGLE_PROTOBUF_VERIFY_VERSION;
  151. {
  152. void* ptr = &::_in_mcpu_statu_default_instance_;
  153. new (ptr) ::in_mcpu_statu();
  154. ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
  155. }
  156. ::in_mcpu_statu::InitAsDefaultInstance();
  157. }
  158. ::google::protobuf::internal::SCCInfo<0> scc_info_in_mcpu_statu =
  159. {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsin_mcpu_statu}, {}};
  160. static void InitDefaultsmeasure_statu() {
  161. GOOGLE_PROTOBUF_VERIFY_VERSION;
  162. {
  163. void* ptr = &::_measure_statu_default_instance_;
  164. new (ptr) ::measure_statu();
  165. ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
  166. }
  167. ::measure_statu::InitAsDefaultInstance();
  168. }
  169. ::google::protobuf::internal::SCCInfo<1> scc_info_measure_statu =
  170. {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsmeasure_statu}, {
  171. &protobuf_message_2eproto::scc_info_measure_info.base,}};
  172. static void InitDefaultsdispatch_region_info() {
  173. GOOGLE_PROTOBUF_VERIFY_VERSION;
  174. {
  175. void* ptr = &::_dispatch_region_info_default_instance_;
  176. new (ptr) ::dispatch_region_info();
  177. ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
  178. }
  179. ::dispatch_region_info::InitAsDefaultInstance();
  180. }
  181. ::google::protobuf::internal::SCCInfo<0> scc_info_dispatch_region_info =
  182. {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsdispatch_region_info}, {}};
  183. static void InitDefaultsdispatch_node_statu() {
  184. GOOGLE_PROTOBUF_VERIFY_VERSION;
  185. {
  186. void* ptr = &::_dispatch_node_statu_default_instance_;
  187. new (ptr) ::dispatch_node_statu();
  188. ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
  189. }
  190. ::dispatch_node_statu::InitAsDefaultInstance();
  191. }
  192. ::google::protobuf::internal::SCCInfo<3> scc_info_dispatch_node_statu =
  193. {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 3, InitDefaultsdispatch_node_statu}, {
  194. &protobuf_message_2eproto::scc_info_park_table.base,
  195. &protobuf_message_2eproto::scc_info_pick_table.base,
  196. &protobuf_message_2eproto::scc_info_dispatch_region_info.base,}};
  197. void InitDefaults() {
  198. ::google::protobuf::internal::InitSCC(&scc_info_measure_info.base);
  199. ::google::protobuf::internal::InitSCC(&scc_info_parkspace_info.base);
  200. ::google::protobuf::internal::InitSCC(&scc_info_table_statu.base);
  201. ::google::protobuf::internal::InitSCC(&scc_info_park_table.base);
  202. ::google::protobuf::internal::InitSCC(&scc_info_pick_table.base);
  203. ::google::protobuf::internal::InitSCC(&scc_info_out_mcpu_statu.base);
  204. ::google::protobuf::internal::InitSCC(&scc_info_in_mcpu_statu.base);
  205. ::google::protobuf::internal::InitSCC(&scc_info_measure_statu.base);
  206. ::google::protobuf::internal::InitSCC(&scc_info_dispatch_region_info.base);
  207. ::google::protobuf::internal::InitSCC(&scc_info_dispatch_node_statu.base);
  208. }
  209. ::google::protobuf::Metadata file_level_metadata[10];
  210. const ::google::protobuf::EnumDescriptor* file_level_enum_descriptors[2];
  211. const ::google::protobuf::uint32 TableStruct::offsets[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
  212. ~0u, // no _has_bits_
  213. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::measure_info, _internal_metadata_),
  214. ~0u, // no _extensions_
  215. ~0u, // no _oneof_case_
  216. ~0u, // no _weak_field_map_
  217. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::measure_info, cx_),
  218. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::measure_info, cy_),
  219. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::measure_info, theta_),
  220. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::measure_info, length_),
  221. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::measure_info, width_),
  222. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::measure_info, height_),
  223. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::measure_info, wheelbase_),
  224. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::measure_info, front_theta_),
  225. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::measure_info, border_statu_),
  226. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::measure_info, ground_status_),
  227. ~0u, // no _has_bits_
  228. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::parkspace_info, _internal_metadata_),
  229. ~0u, // no _extensions_
  230. ~0u, // no _oneof_case_
  231. ~0u, // no _weak_field_map_
  232. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::parkspace_info, id_),
  233. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::parkspace_info, unit_id_),
  234. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::parkspace_info, floor_),
  235. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::parkspace_info, room_id_),
  236. ~0u, // no _has_bits_
  237. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::table_statu, _internal_metadata_),
  238. ~0u, // no _extensions_
  239. ~0u, // no _oneof_case_
  240. ~0u, // no _weak_field_map_
  241. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::table_statu, execute_statu_),
  242. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::table_statu, statu_description_),
  243. ~0u, // no _has_bits_
  244. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::park_table, _internal_metadata_),
  245. ~0u, // no _extensions_
  246. ~0u, // no _oneof_case_
  247. ~0u, // no _weak_field_map_
  248. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::park_table, statu_),
  249. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::park_table, queue_id_),
  250. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::park_table, car_number_),
  251. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::park_table, unit_id_),
  252. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::park_table, terminal_id_),
  253. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::park_table, primary_key_),
  254. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::park_table, entrance_measure_info_),
  255. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::park_table, allocated_space_info_),
  256. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::park_table, actually_measure_info_),
  257. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::park_table, actually_space_info_),
  258. ~0u, // no _has_bits_
  259. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::pick_table, _internal_metadata_),
  260. ~0u, // no _extensions_
  261. ~0u, // no _oneof_case_
  262. ~0u, // no _weak_field_map_
  263. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::pick_table, statu_),
  264. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::pick_table, queue_id_),
  265. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::pick_table, car_number_),
  266. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::pick_table, unit_id_),
  267. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::pick_table, terminal_id_),
  268. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::pick_table, primary_key_),
  269. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::pick_table, actually_space_info_),
  270. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::pick_table, actually_measure_info_),
  271. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::pick_table, export_id_),
  272. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::pick_table, is_leaved_),
  273. ~0u, // no _has_bits_
  274. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::out_mcpu_statu, _internal_metadata_),
  275. ~0u, // no _extensions_
  276. ~0u, // no _oneof_case_
  277. ~0u, // no _weak_field_map_
  278. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::out_mcpu_statu, door_statu_),
  279. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::out_mcpu_statu, outside_safety_),
  280. ~0u, // no _has_bits_
  281. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::in_mcpu_statu, _internal_metadata_),
  282. ~0u, // no _extensions_
  283. ~0u, // no _oneof_case_
  284. ~0u, // no _weak_field_map_
  285. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::in_mcpu_statu, door_statu_),
  286. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::in_mcpu_statu, back_io_),
  287. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::in_mcpu_statu, is_occupy_),
  288. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::in_mcpu_statu, heighth_),
  289. ~0u, // no _has_bits_
  290. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::measure_statu, _internal_metadata_),
  291. ~0u, // no _extensions_
  292. ~0u, // no _oneof_case_
  293. ~0u, // no _weak_field_map_
  294. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::measure_statu, info_),
  295. ~0u, // no _has_bits_
  296. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::dispatch_region_info, _internal_metadata_),
  297. ~0u, // no _extensions_
  298. ~0u, // no _oneof_case_
  299. ~0u, // no _weak_field_map_
  300. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::dispatch_region_info, terminal_id_),
  301. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::dispatch_region_info, turnplate_angle_min_),
  302. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::dispatch_region_info, turnplate_angle_max_),
  303. ~0u, // no _has_bits_
  304. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::dispatch_node_statu, _internal_metadata_),
  305. ~0u, // no _extensions_
  306. ~0u, // no _oneof_case_
  307. ~0u, // no _weak_field_map_
  308. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::dispatch_node_statu, statu_),
  309. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::dispatch_node_statu, idle_stop_floor_),
  310. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::dispatch_node_statu, running_pack_info_),
  311. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::dispatch_node_statu, running_pick_info_),
  312. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::dispatch_node_statu, unit_id_),
  313. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::dispatch_node_statu, plc_heartbeat_),
  314. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::dispatch_node_statu, plc_status_info_),
  315. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::dispatch_node_statu, dispatch_region_info_vector_),
  316. };
  317. static const ::google::protobuf::internal::MigrationSchema schemas[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
  318. { 0, -1, sizeof(::measure_info)},
  319. { 15, -1, sizeof(::parkspace_info)},
  320. { 24, -1, sizeof(::table_statu)},
  321. { 31, -1, sizeof(::park_table)},
  322. { 46, -1, sizeof(::pick_table)},
  323. { 61, -1, sizeof(::out_mcpu_statu)},
  324. { 68, -1, sizeof(::in_mcpu_statu)},
  325. { 77, -1, sizeof(::measure_statu)},
  326. { 83, -1, sizeof(::dispatch_region_info)},
  327. { 91, -1, sizeof(::dispatch_node_statu)},
  328. };
  329. static ::google::protobuf::Message const * const file_default_instances[] = {
  330. reinterpret_cast<const ::google::protobuf::Message*>(&::_measure_info_default_instance_),
  331. reinterpret_cast<const ::google::protobuf::Message*>(&::_parkspace_info_default_instance_),
  332. reinterpret_cast<const ::google::protobuf::Message*>(&::_table_statu_default_instance_),
  333. reinterpret_cast<const ::google::protobuf::Message*>(&::_park_table_default_instance_),
  334. reinterpret_cast<const ::google::protobuf::Message*>(&::_pick_table_default_instance_),
  335. reinterpret_cast<const ::google::protobuf::Message*>(&::_out_mcpu_statu_default_instance_),
  336. reinterpret_cast<const ::google::protobuf::Message*>(&::_in_mcpu_statu_default_instance_),
  337. reinterpret_cast<const ::google::protobuf::Message*>(&::_measure_statu_default_instance_),
  338. reinterpret_cast<const ::google::protobuf::Message*>(&::_dispatch_region_info_default_instance_),
  339. reinterpret_cast<const ::google::protobuf::Message*>(&::_dispatch_node_statu_default_instance_),
  340. };
  341. void protobuf_AssignDescriptors() {
  342. AddDescriptors();
  343. AssignDescriptors(
  344. "message.proto", schemas, file_default_instances, TableStruct::offsets,
  345. file_level_metadata, file_level_enum_descriptors, NULL);
  346. }
  347. void protobuf_AssignDescriptorsOnce() {
  348. static ::google::protobuf::internal::once_flag once;
  349. ::google::protobuf::internal::call_once(once, protobuf_AssignDescriptors);
  350. }
  351. void protobuf_RegisterTypes(const ::std::string&) GOOGLE_PROTOBUF_ATTRIBUTE_COLD;
  352. void protobuf_RegisterTypes(const ::std::string&) {
  353. protobuf_AssignDescriptorsOnce();
  354. ::google::protobuf::internal::RegisterAllTypes(file_level_metadata, 10);
  355. }
  356. void AddDescriptorsImpl() {
  357. InitDefaults();
  358. static const char descriptor[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
  359. "\n\rmessage.proto\"\271\001\n\014measure_info\022\n\n\002cx\030\001"
  360. " \001(\002\022\n\n\002cy\030\002 \001(\002\022\r\n\005theta\030\003 \001(\002\022\016\n\006lengt"
  361. "h\030\004 \001(\002\022\r\n\005width\030\005 \001(\002\022\016\n\006height\030\006 \001(\002\022\021"
  362. "\n\twheelbase\030\007 \001(\002\022\023\n\013front_theta\030\010 \001(\002\022\024"
  363. "\n\014border_statu\030\t \001(\005\022\025\n\rground_status\030\n "
  364. "\001(\005\"M\n\016parkspace_info\022\n\n\002id\030\001 \001(\005\022\017\n\007uni"
  365. "t_id\030\002 \001(\005\022\r\n\005floor\030\003 \001(\005\022\017\n\007room_id\030\004 \001"
  366. "(\005\"G\n\013table_statu\022\035\n\rexecute_statu\030\001 \001(\016"
  367. "2\006.STATU\022\031\n\021statu_description\030\002 \001(\t\"\303\002\n\n"
  368. "park_table\022\033\n\005statu\030\001 \001(\0132\014.table_statu\022"
  369. "\020\n\010queue_id\030\002 \001(\005\022\022\n\ncar_number\030\003 \001(\t\022\017\n"
  370. "\007unit_id\030\004 \001(\005\022\023\n\013terminal_id\030\005 \001(\005\022\023\n\013p"
  371. "rimary_key\030\006 \001(\t\022,\n\025entrance_measure_inf"
  372. "o\030\007 \001(\0132\r.measure_info\022-\n\024allocated_spac"
  373. "e_info\030\010 \001(\0132\017.parkspace_info\022,\n\025actuall"
  374. "y_measure_info\030\t \001(\0132\r.measure_info\022,\n\023a"
  375. "ctually_space_info\030\n \001(\0132\017.parkspace_inf"
  376. "o\"\214\002\n\npick_table\022\033\n\005statu\030\001 \001(\0132\014.table_"
  377. "statu\022\020\n\010queue_id\030\002 \001(\005\022\022\n\ncar_number\030\003 "
  378. "\001(\t\022\017\n\007unit_id\030\004 \001(\005\022\023\n\013terminal_id\030\005 \001("
  379. "\005\022\023\n\013primary_key\030\006 \001(\t\022,\n\023actually_space"
  380. "_info\030\007 \001(\0132\017.parkspace_info\022,\n\025actually"
  381. "_measure_info\030\010 \001(\0132\r.measure_info\022\021\n\tex"
  382. "port_id\030\t \001(\005\022\021\n\tis_leaved\030\n \001(\010\"<\n\016out_"
  383. "mcpu_statu\022\022\n\ndoor_statu\030\001 \001(\005\022\026\n\016outsid"
  384. "e_safety\030\002 \001(\005\"X\n\rin_mcpu_statu\022\022\n\ndoor_"
  385. "statu\030\001 \001(\005\022\017\n\007back_io\030\002 \001(\005\022\021\n\tis_occup"
  386. "y\030\003 \001(\005\022\017\n\007heighth\030\004 \001(\005\",\n\rmeasure_stat"
  387. "u\022\033\n\004info\030\001 \001(\0132\r.measure_info\"e\n\024dispat"
  388. "ch_region_info\022\023\n\013terminal_id\030\001 \001(\005\022\033\n\023t"
  389. "urnplate_angle_min\030\002 \001(\002\022\033\n\023turnplate_an"
  390. "gle_max\030\003 \001(\002\"\231\002\n\023dispatch_node_statu\022\034\n"
  391. "\005statu\030\001 \001(\0162\r.CarrierStatu\022\027\n\017idle_stop"
  392. "_floor\030\002 \001(\005\022&\n\021running_pack_info\030\003 \001(\0132"
  393. "\013.park_table\022&\n\021running_pick_info\030\004 \001(\0132"
  394. "\013.pick_table\022\017\n\007unit_id\030\005 \001(\005\022\025\n\rplc_hea"
  395. "rtbeat\030\006 \001(\005\022\027\n\017plc_status_info\030\007 \001(\005\022:\n"
  396. "\033dispatch_region_info_vector\030\010 \003(\0132\025.dis"
  397. "patch_region_info* \n\005STATU\022\013\n\007eNormal\020\000\022"
  398. "\n\n\006eError\020\001*0\n\014CarrierStatu\022\t\n\005eIdle\020\000\022\t"
  399. "\n\005eBusy\020\001\022\n\n\006eFault\020\002b\006proto3"
  400. };
  401. ::google::protobuf::DescriptorPool::InternalAddGeneratedFile(
  402. descriptor, 1629);
  403. ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile(
  404. "message.proto", &protobuf_RegisterTypes);
  405. }
  406. void AddDescriptors() {
  407. static ::google::protobuf::internal::once_flag once;
  408. ::google::protobuf::internal::call_once(once, AddDescriptorsImpl);
  409. }
  410. // Force AddDescriptors() to be called at dynamic initialization time.
  411. struct StaticDescriptorInitializer {
  412. StaticDescriptorInitializer() {
  413. AddDescriptors();
  414. }
  415. } static_descriptor_initializer;
  416. } // namespace protobuf_message_2eproto
  417. const ::google::protobuf::EnumDescriptor* STATU_descriptor() {
  418. protobuf_message_2eproto::protobuf_AssignDescriptorsOnce();
  419. return protobuf_message_2eproto::file_level_enum_descriptors[0];
  420. }
  421. bool STATU_IsValid(int value) {
  422. switch (value) {
  423. case 0:
  424. case 1:
  425. return true;
  426. default:
  427. return false;
  428. }
  429. }
  430. const ::google::protobuf::EnumDescriptor* CarrierStatu_descriptor() {
  431. protobuf_message_2eproto::protobuf_AssignDescriptorsOnce();
  432. return protobuf_message_2eproto::file_level_enum_descriptors[1];
  433. }
  434. bool CarrierStatu_IsValid(int value) {
  435. switch (value) {
  436. case 0:
  437. case 1:
  438. case 2:
  439. return true;
  440. default:
  441. return false;
  442. }
  443. }
  444. // ===================================================================
  445. void measure_info::InitAsDefaultInstance() {
  446. }
  447. #if !defined(_MSC_VER) || _MSC_VER >= 1900
  448. const int measure_info::kCxFieldNumber;
  449. const int measure_info::kCyFieldNumber;
  450. const int measure_info::kThetaFieldNumber;
  451. const int measure_info::kLengthFieldNumber;
  452. const int measure_info::kWidthFieldNumber;
  453. const int measure_info::kHeightFieldNumber;
  454. const int measure_info::kWheelbaseFieldNumber;
  455. const int measure_info::kFrontThetaFieldNumber;
  456. const int measure_info::kBorderStatuFieldNumber;
  457. const int measure_info::kGroundStatusFieldNumber;
  458. #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
  459. measure_info::measure_info()
  460. : ::google::protobuf::Message(), _internal_metadata_(NULL) {
  461. ::google::protobuf::internal::InitSCC(
  462. &protobuf_message_2eproto::scc_info_measure_info.base);
  463. SharedCtor();
  464. // @@protoc_insertion_point(constructor:measure_info)
  465. }
  466. measure_info::measure_info(const measure_info& from)
  467. : ::google::protobuf::Message(),
  468. _internal_metadata_(NULL) {
  469. _internal_metadata_.MergeFrom(from._internal_metadata_);
  470. ::memcpy(&cx_, &from.cx_,
  471. static_cast<size_t>(reinterpret_cast<char*>(&ground_status_) -
  472. reinterpret_cast<char*>(&cx_)) + sizeof(ground_status_));
  473. // @@protoc_insertion_point(copy_constructor:measure_info)
  474. }
  475. void measure_info::SharedCtor() {
  476. ::memset(&cx_, 0, static_cast<size_t>(
  477. reinterpret_cast<char*>(&ground_status_) -
  478. reinterpret_cast<char*>(&cx_)) + sizeof(ground_status_));
  479. }
  480. measure_info::~measure_info() {
  481. // @@protoc_insertion_point(destructor:measure_info)
  482. SharedDtor();
  483. }
  484. void measure_info::SharedDtor() {
  485. }
  486. void measure_info::SetCachedSize(int size) const {
  487. _cached_size_.Set(size);
  488. }
  489. const ::google::protobuf::Descriptor* measure_info::descriptor() {
  490. ::protobuf_message_2eproto::protobuf_AssignDescriptorsOnce();
  491. return ::protobuf_message_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
  492. }
  493. const measure_info& measure_info::default_instance() {
  494. ::google::protobuf::internal::InitSCC(&protobuf_message_2eproto::scc_info_measure_info.base);
  495. return *internal_default_instance();
  496. }
  497. void measure_info::Clear() {
  498. // @@protoc_insertion_point(message_clear_start:measure_info)
  499. ::google::protobuf::uint32 cached_has_bits = 0;
  500. // Prevent compiler warnings about cached_has_bits being unused
  501. (void) cached_has_bits;
  502. ::memset(&cx_, 0, static_cast<size_t>(
  503. reinterpret_cast<char*>(&ground_status_) -
  504. reinterpret_cast<char*>(&cx_)) + sizeof(ground_status_));
  505. _internal_metadata_.Clear();
  506. }
  507. bool measure_info::MergePartialFromCodedStream(
  508. ::google::protobuf::io::CodedInputStream* input) {
  509. #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
  510. ::google::protobuf::uint32 tag;
  511. // @@protoc_insertion_point(parse_start:measure_info)
  512. for (;;) {
  513. ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
  514. tag = p.first;
  515. if (!p.second) goto handle_unusual;
  516. switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
  517. // float cx = 1;
  518. case 1: {
  519. if (static_cast< ::google::protobuf::uint8>(tag) ==
  520. static_cast< ::google::protobuf::uint8>(13u /* 13 & 0xFF */)) {
  521. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  522. float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
  523. input, &cx_)));
  524. } else {
  525. goto handle_unusual;
  526. }
  527. break;
  528. }
  529. // float cy = 2;
  530. case 2: {
  531. if (static_cast< ::google::protobuf::uint8>(tag) ==
  532. static_cast< ::google::protobuf::uint8>(21u /* 21 & 0xFF */)) {
  533. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  534. float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
  535. input, &cy_)));
  536. } else {
  537. goto handle_unusual;
  538. }
  539. break;
  540. }
  541. // float theta = 3;
  542. case 3: {
  543. if (static_cast< ::google::protobuf::uint8>(tag) ==
  544. static_cast< ::google::protobuf::uint8>(29u /* 29 & 0xFF */)) {
  545. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  546. float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
  547. input, &theta_)));
  548. } else {
  549. goto handle_unusual;
  550. }
  551. break;
  552. }
  553. // float length = 4;
  554. case 4: {
  555. if (static_cast< ::google::protobuf::uint8>(tag) ==
  556. static_cast< ::google::protobuf::uint8>(37u /* 37 & 0xFF */)) {
  557. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  558. float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
  559. input, &length_)));
  560. } else {
  561. goto handle_unusual;
  562. }
  563. break;
  564. }
  565. // float width = 5;
  566. case 5: {
  567. if (static_cast< ::google::protobuf::uint8>(tag) ==
  568. static_cast< ::google::protobuf::uint8>(45u /* 45 & 0xFF */)) {
  569. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  570. float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
  571. input, &width_)));
  572. } else {
  573. goto handle_unusual;
  574. }
  575. break;
  576. }
  577. // float height = 6;
  578. case 6: {
  579. if (static_cast< ::google::protobuf::uint8>(tag) ==
  580. static_cast< ::google::protobuf::uint8>(53u /* 53 & 0xFF */)) {
  581. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  582. float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
  583. input, &height_)));
  584. } else {
  585. goto handle_unusual;
  586. }
  587. break;
  588. }
  589. // float wheelbase = 7;
  590. case 7: {
  591. if (static_cast< ::google::protobuf::uint8>(tag) ==
  592. static_cast< ::google::protobuf::uint8>(61u /* 61 & 0xFF */)) {
  593. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  594. float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
  595. input, &wheelbase_)));
  596. } else {
  597. goto handle_unusual;
  598. }
  599. break;
  600. }
  601. // float front_theta = 8;
  602. case 8: {
  603. if (static_cast< ::google::protobuf::uint8>(tag) ==
  604. static_cast< ::google::protobuf::uint8>(69u /* 69 & 0xFF */)) {
  605. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  606. float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
  607. input, &front_theta_)));
  608. } else {
  609. goto handle_unusual;
  610. }
  611. break;
  612. }
  613. // int32 border_statu = 9;
  614. case 9: {
  615. if (static_cast< ::google::protobuf::uint8>(tag) ==
  616. static_cast< ::google::protobuf::uint8>(72u /* 72 & 0xFF */)) {
  617. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  618. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  619. input, &border_statu_)));
  620. } else {
  621. goto handle_unusual;
  622. }
  623. break;
  624. }
  625. // int32 ground_status = 10;
  626. case 10: {
  627. if (static_cast< ::google::protobuf::uint8>(tag) ==
  628. static_cast< ::google::protobuf::uint8>(80u /* 80 & 0xFF */)) {
  629. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  630. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  631. input, &ground_status_)));
  632. } else {
  633. goto handle_unusual;
  634. }
  635. break;
  636. }
  637. default: {
  638. handle_unusual:
  639. if (tag == 0) {
  640. goto success;
  641. }
  642. DO_(::google::protobuf::internal::WireFormat::SkipField(
  643. input, tag, _internal_metadata_.mutable_unknown_fields()));
  644. break;
  645. }
  646. }
  647. }
  648. success:
  649. // @@protoc_insertion_point(parse_success:measure_info)
  650. return true;
  651. failure:
  652. // @@protoc_insertion_point(parse_failure:measure_info)
  653. return false;
  654. #undef DO_
  655. }
  656. void measure_info::SerializeWithCachedSizes(
  657. ::google::protobuf::io::CodedOutputStream* output) const {
  658. // @@protoc_insertion_point(serialize_start:measure_info)
  659. ::google::protobuf::uint32 cached_has_bits = 0;
  660. (void) cached_has_bits;
  661. // float cx = 1;
  662. if (this->cx() != 0) {
  663. ::google::protobuf::internal::WireFormatLite::WriteFloat(1, this->cx(), output);
  664. }
  665. // float cy = 2;
  666. if (this->cy() != 0) {
  667. ::google::protobuf::internal::WireFormatLite::WriteFloat(2, this->cy(), output);
  668. }
  669. // float theta = 3;
  670. if (this->theta() != 0) {
  671. ::google::protobuf::internal::WireFormatLite::WriteFloat(3, this->theta(), output);
  672. }
  673. // float length = 4;
  674. if (this->length() != 0) {
  675. ::google::protobuf::internal::WireFormatLite::WriteFloat(4, this->length(), output);
  676. }
  677. // float width = 5;
  678. if (this->width() != 0) {
  679. ::google::protobuf::internal::WireFormatLite::WriteFloat(5, this->width(), output);
  680. }
  681. // float height = 6;
  682. if (this->height() != 0) {
  683. ::google::protobuf::internal::WireFormatLite::WriteFloat(6, this->height(), output);
  684. }
  685. // float wheelbase = 7;
  686. if (this->wheelbase() != 0) {
  687. ::google::protobuf::internal::WireFormatLite::WriteFloat(7, this->wheelbase(), output);
  688. }
  689. // float front_theta = 8;
  690. if (this->front_theta() != 0) {
  691. ::google::protobuf::internal::WireFormatLite::WriteFloat(8, this->front_theta(), output);
  692. }
  693. // int32 border_statu = 9;
  694. if (this->border_statu() != 0) {
  695. ::google::protobuf::internal::WireFormatLite::WriteInt32(9, this->border_statu(), output);
  696. }
  697. // int32 ground_status = 10;
  698. if (this->ground_status() != 0) {
  699. ::google::protobuf::internal::WireFormatLite::WriteInt32(10, this->ground_status(), output);
  700. }
  701. if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
  702. ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
  703. (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output);
  704. }
  705. // @@protoc_insertion_point(serialize_end:measure_info)
  706. }
  707. ::google::protobuf::uint8* measure_info::InternalSerializeWithCachedSizesToArray(
  708. bool deterministic, ::google::protobuf::uint8* target) const {
  709. (void)deterministic; // Unused
  710. // @@protoc_insertion_point(serialize_to_array_start:measure_info)
  711. ::google::protobuf::uint32 cached_has_bits = 0;
  712. (void) cached_has_bits;
  713. // float cx = 1;
  714. if (this->cx() != 0) {
  715. target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(1, this->cx(), target);
  716. }
  717. // float cy = 2;
  718. if (this->cy() != 0) {
  719. target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(2, this->cy(), target);
  720. }
  721. // float theta = 3;
  722. if (this->theta() != 0) {
  723. target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(3, this->theta(), target);
  724. }
  725. // float length = 4;
  726. if (this->length() != 0) {
  727. target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(4, this->length(), target);
  728. }
  729. // float width = 5;
  730. if (this->width() != 0) {
  731. target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(5, this->width(), target);
  732. }
  733. // float height = 6;
  734. if (this->height() != 0) {
  735. target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(6, this->height(), target);
  736. }
  737. // float wheelbase = 7;
  738. if (this->wheelbase() != 0) {
  739. target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(7, this->wheelbase(), target);
  740. }
  741. // float front_theta = 8;
  742. if (this->front_theta() != 0) {
  743. target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(8, this->front_theta(), target);
  744. }
  745. // int32 border_statu = 9;
  746. if (this->border_statu() != 0) {
  747. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(9, this->border_statu(), target);
  748. }
  749. // int32 ground_status = 10;
  750. if (this->ground_status() != 0) {
  751. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(10, this->ground_status(), target);
  752. }
  753. if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
  754. target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
  755. (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target);
  756. }
  757. // @@protoc_insertion_point(serialize_to_array_end:measure_info)
  758. return target;
  759. }
  760. size_t measure_info::ByteSizeLong() const {
  761. // @@protoc_insertion_point(message_byte_size_start:measure_info)
  762. size_t total_size = 0;
  763. if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
  764. total_size +=
  765. ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
  766. (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()));
  767. }
  768. // float cx = 1;
  769. if (this->cx() != 0) {
  770. total_size += 1 + 4;
  771. }
  772. // float cy = 2;
  773. if (this->cy() != 0) {
  774. total_size += 1 + 4;
  775. }
  776. // float theta = 3;
  777. if (this->theta() != 0) {
  778. total_size += 1 + 4;
  779. }
  780. // float length = 4;
  781. if (this->length() != 0) {
  782. total_size += 1 + 4;
  783. }
  784. // float width = 5;
  785. if (this->width() != 0) {
  786. total_size += 1 + 4;
  787. }
  788. // float height = 6;
  789. if (this->height() != 0) {
  790. total_size += 1 + 4;
  791. }
  792. // float wheelbase = 7;
  793. if (this->wheelbase() != 0) {
  794. total_size += 1 + 4;
  795. }
  796. // float front_theta = 8;
  797. if (this->front_theta() != 0) {
  798. total_size += 1 + 4;
  799. }
  800. // int32 border_statu = 9;
  801. if (this->border_statu() != 0) {
  802. total_size += 1 +
  803. ::google::protobuf::internal::WireFormatLite::Int32Size(
  804. this->border_statu());
  805. }
  806. // int32 ground_status = 10;
  807. if (this->ground_status() != 0) {
  808. total_size += 1 +
  809. ::google::protobuf::internal::WireFormatLite::Int32Size(
  810. this->ground_status());
  811. }
  812. int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
  813. SetCachedSize(cached_size);
  814. return total_size;
  815. }
  816. void measure_info::MergeFrom(const ::google::protobuf::Message& from) {
  817. // @@protoc_insertion_point(generalized_merge_from_start:measure_info)
  818. GOOGLE_DCHECK_NE(&from, this);
  819. const measure_info* source =
  820. ::google::protobuf::internal::DynamicCastToGenerated<const measure_info>(
  821. &from);
  822. if (source == NULL) {
  823. // @@protoc_insertion_point(generalized_merge_from_cast_fail:measure_info)
  824. ::google::protobuf::internal::ReflectionOps::Merge(from, this);
  825. } else {
  826. // @@protoc_insertion_point(generalized_merge_from_cast_success:measure_info)
  827. MergeFrom(*source);
  828. }
  829. }
  830. void measure_info::MergeFrom(const measure_info& from) {
  831. // @@protoc_insertion_point(class_specific_merge_from_start:measure_info)
  832. GOOGLE_DCHECK_NE(&from, this);
  833. _internal_metadata_.MergeFrom(from._internal_metadata_);
  834. ::google::protobuf::uint32 cached_has_bits = 0;
  835. (void) cached_has_bits;
  836. if (from.cx() != 0) {
  837. set_cx(from.cx());
  838. }
  839. if (from.cy() != 0) {
  840. set_cy(from.cy());
  841. }
  842. if (from.theta() != 0) {
  843. set_theta(from.theta());
  844. }
  845. if (from.length() != 0) {
  846. set_length(from.length());
  847. }
  848. if (from.width() != 0) {
  849. set_width(from.width());
  850. }
  851. if (from.height() != 0) {
  852. set_height(from.height());
  853. }
  854. if (from.wheelbase() != 0) {
  855. set_wheelbase(from.wheelbase());
  856. }
  857. if (from.front_theta() != 0) {
  858. set_front_theta(from.front_theta());
  859. }
  860. if (from.border_statu() != 0) {
  861. set_border_statu(from.border_statu());
  862. }
  863. if (from.ground_status() != 0) {
  864. set_ground_status(from.ground_status());
  865. }
  866. }
  867. void measure_info::CopyFrom(const ::google::protobuf::Message& from) {
  868. // @@protoc_insertion_point(generalized_copy_from_start:measure_info)
  869. if (&from == this) return;
  870. Clear();
  871. MergeFrom(from);
  872. }
  873. void measure_info::CopyFrom(const measure_info& from) {
  874. // @@protoc_insertion_point(class_specific_copy_from_start:measure_info)
  875. if (&from == this) return;
  876. Clear();
  877. MergeFrom(from);
  878. }
  879. bool measure_info::IsInitialized() const {
  880. return true;
  881. }
  882. void measure_info::Swap(measure_info* other) {
  883. if (other == this) return;
  884. InternalSwap(other);
  885. }
  886. void measure_info::InternalSwap(measure_info* other) {
  887. using std::swap;
  888. swap(cx_, other->cx_);
  889. swap(cy_, other->cy_);
  890. swap(theta_, other->theta_);
  891. swap(length_, other->length_);
  892. swap(width_, other->width_);
  893. swap(height_, other->height_);
  894. swap(wheelbase_, other->wheelbase_);
  895. swap(front_theta_, other->front_theta_);
  896. swap(border_statu_, other->border_statu_);
  897. swap(ground_status_, other->ground_status_);
  898. _internal_metadata_.Swap(&other->_internal_metadata_);
  899. }
  900. ::google::protobuf::Metadata measure_info::GetMetadata() const {
  901. protobuf_message_2eproto::protobuf_AssignDescriptorsOnce();
  902. return ::protobuf_message_2eproto::file_level_metadata[kIndexInFileMessages];
  903. }
  904. // ===================================================================
  905. void parkspace_info::InitAsDefaultInstance() {
  906. }
  907. #if !defined(_MSC_VER) || _MSC_VER >= 1900
  908. const int parkspace_info::kIdFieldNumber;
  909. const int parkspace_info::kUnitIdFieldNumber;
  910. const int parkspace_info::kFloorFieldNumber;
  911. const int parkspace_info::kRoomIdFieldNumber;
  912. #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
  913. parkspace_info::parkspace_info()
  914. : ::google::protobuf::Message(), _internal_metadata_(NULL) {
  915. ::google::protobuf::internal::InitSCC(
  916. &protobuf_message_2eproto::scc_info_parkspace_info.base);
  917. SharedCtor();
  918. // @@protoc_insertion_point(constructor:parkspace_info)
  919. }
  920. parkspace_info::parkspace_info(const parkspace_info& from)
  921. : ::google::protobuf::Message(),
  922. _internal_metadata_(NULL) {
  923. _internal_metadata_.MergeFrom(from._internal_metadata_);
  924. ::memcpy(&id_, &from.id_,
  925. static_cast<size_t>(reinterpret_cast<char*>(&room_id_) -
  926. reinterpret_cast<char*>(&id_)) + sizeof(room_id_));
  927. // @@protoc_insertion_point(copy_constructor:parkspace_info)
  928. }
  929. void parkspace_info::SharedCtor() {
  930. ::memset(&id_, 0, static_cast<size_t>(
  931. reinterpret_cast<char*>(&room_id_) -
  932. reinterpret_cast<char*>(&id_)) + sizeof(room_id_));
  933. }
  934. parkspace_info::~parkspace_info() {
  935. // @@protoc_insertion_point(destructor:parkspace_info)
  936. SharedDtor();
  937. }
  938. void parkspace_info::SharedDtor() {
  939. }
  940. void parkspace_info::SetCachedSize(int size) const {
  941. _cached_size_.Set(size);
  942. }
  943. const ::google::protobuf::Descriptor* parkspace_info::descriptor() {
  944. ::protobuf_message_2eproto::protobuf_AssignDescriptorsOnce();
  945. return ::protobuf_message_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
  946. }
  947. const parkspace_info& parkspace_info::default_instance() {
  948. ::google::protobuf::internal::InitSCC(&protobuf_message_2eproto::scc_info_parkspace_info.base);
  949. return *internal_default_instance();
  950. }
  951. void parkspace_info::Clear() {
  952. // @@protoc_insertion_point(message_clear_start:parkspace_info)
  953. ::google::protobuf::uint32 cached_has_bits = 0;
  954. // Prevent compiler warnings about cached_has_bits being unused
  955. (void) cached_has_bits;
  956. ::memset(&id_, 0, static_cast<size_t>(
  957. reinterpret_cast<char*>(&room_id_) -
  958. reinterpret_cast<char*>(&id_)) + sizeof(room_id_));
  959. _internal_metadata_.Clear();
  960. }
  961. bool parkspace_info::MergePartialFromCodedStream(
  962. ::google::protobuf::io::CodedInputStream* input) {
  963. #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
  964. ::google::protobuf::uint32 tag;
  965. // @@protoc_insertion_point(parse_start:parkspace_info)
  966. for (;;) {
  967. ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
  968. tag = p.first;
  969. if (!p.second) goto handle_unusual;
  970. switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
  971. // int32 id = 1;
  972. case 1: {
  973. if (static_cast< ::google::protobuf::uint8>(tag) ==
  974. static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) {
  975. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  976. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  977. input, &id_)));
  978. } else {
  979. goto handle_unusual;
  980. }
  981. break;
  982. }
  983. // int32 unit_id = 2;
  984. case 2: {
  985. if (static_cast< ::google::protobuf::uint8>(tag) ==
  986. static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) {
  987. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  988. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  989. input, &unit_id_)));
  990. } else {
  991. goto handle_unusual;
  992. }
  993. break;
  994. }
  995. // int32 floor = 3;
  996. case 3: {
  997. if (static_cast< ::google::protobuf::uint8>(tag) ==
  998. static_cast< ::google::protobuf::uint8>(24u /* 24 & 0xFF */)) {
  999. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  1000. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  1001. input, &floor_)));
  1002. } else {
  1003. goto handle_unusual;
  1004. }
  1005. break;
  1006. }
  1007. // int32 room_id = 4;
  1008. case 4: {
  1009. if (static_cast< ::google::protobuf::uint8>(tag) ==
  1010. static_cast< ::google::protobuf::uint8>(32u /* 32 & 0xFF */)) {
  1011. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  1012. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  1013. input, &room_id_)));
  1014. } else {
  1015. goto handle_unusual;
  1016. }
  1017. break;
  1018. }
  1019. default: {
  1020. handle_unusual:
  1021. if (tag == 0) {
  1022. goto success;
  1023. }
  1024. DO_(::google::protobuf::internal::WireFormat::SkipField(
  1025. input, tag, _internal_metadata_.mutable_unknown_fields()));
  1026. break;
  1027. }
  1028. }
  1029. }
  1030. success:
  1031. // @@protoc_insertion_point(parse_success:parkspace_info)
  1032. return true;
  1033. failure:
  1034. // @@protoc_insertion_point(parse_failure:parkspace_info)
  1035. return false;
  1036. #undef DO_
  1037. }
  1038. void parkspace_info::SerializeWithCachedSizes(
  1039. ::google::protobuf::io::CodedOutputStream* output) const {
  1040. // @@protoc_insertion_point(serialize_start:parkspace_info)
  1041. ::google::protobuf::uint32 cached_has_bits = 0;
  1042. (void) cached_has_bits;
  1043. // int32 id = 1;
  1044. if (this->id() != 0) {
  1045. ::google::protobuf::internal::WireFormatLite::WriteInt32(1, this->id(), output);
  1046. }
  1047. // int32 unit_id = 2;
  1048. if (this->unit_id() != 0) {
  1049. ::google::protobuf::internal::WireFormatLite::WriteInt32(2, this->unit_id(), output);
  1050. }
  1051. // int32 floor = 3;
  1052. if (this->floor() != 0) {
  1053. ::google::protobuf::internal::WireFormatLite::WriteInt32(3, this->floor(), output);
  1054. }
  1055. // int32 room_id = 4;
  1056. if (this->room_id() != 0) {
  1057. ::google::protobuf::internal::WireFormatLite::WriteInt32(4, this->room_id(), output);
  1058. }
  1059. if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
  1060. ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
  1061. (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output);
  1062. }
  1063. // @@protoc_insertion_point(serialize_end:parkspace_info)
  1064. }
  1065. ::google::protobuf::uint8* parkspace_info::InternalSerializeWithCachedSizesToArray(
  1066. bool deterministic, ::google::protobuf::uint8* target) const {
  1067. (void)deterministic; // Unused
  1068. // @@protoc_insertion_point(serialize_to_array_start:parkspace_info)
  1069. ::google::protobuf::uint32 cached_has_bits = 0;
  1070. (void) cached_has_bits;
  1071. // int32 id = 1;
  1072. if (this->id() != 0) {
  1073. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(1, this->id(), target);
  1074. }
  1075. // int32 unit_id = 2;
  1076. if (this->unit_id() != 0) {
  1077. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(2, this->unit_id(), target);
  1078. }
  1079. // int32 floor = 3;
  1080. if (this->floor() != 0) {
  1081. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(3, this->floor(), target);
  1082. }
  1083. // int32 room_id = 4;
  1084. if (this->room_id() != 0) {
  1085. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(4, this->room_id(), target);
  1086. }
  1087. if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
  1088. target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
  1089. (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target);
  1090. }
  1091. // @@protoc_insertion_point(serialize_to_array_end:parkspace_info)
  1092. return target;
  1093. }
  1094. size_t parkspace_info::ByteSizeLong() const {
  1095. // @@protoc_insertion_point(message_byte_size_start:parkspace_info)
  1096. size_t total_size = 0;
  1097. if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
  1098. total_size +=
  1099. ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
  1100. (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()));
  1101. }
  1102. // int32 id = 1;
  1103. if (this->id() != 0) {
  1104. total_size += 1 +
  1105. ::google::protobuf::internal::WireFormatLite::Int32Size(
  1106. this->id());
  1107. }
  1108. // int32 unit_id = 2;
  1109. if (this->unit_id() != 0) {
  1110. total_size += 1 +
  1111. ::google::protobuf::internal::WireFormatLite::Int32Size(
  1112. this->unit_id());
  1113. }
  1114. // int32 floor = 3;
  1115. if (this->floor() != 0) {
  1116. total_size += 1 +
  1117. ::google::protobuf::internal::WireFormatLite::Int32Size(
  1118. this->floor());
  1119. }
  1120. // int32 room_id = 4;
  1121. if (this->room_id() != 0) {
  1122. total_size += 1 +
  1123. ::google::protobuf::internal::WireFormatLite::Int32Size(
  1124. this->room_id());
  1125. }
  1126. int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
  1127. SetCachedSize(cached_size);
  1128. return total_size;
  1129. }
  1130. void parkspace_info::MergeFrom(const ::google::protobuf::Message& from) {
  1131. // @@protoc_insertion_point(generalized_merge_from_start:parkspace_info)
  1132. GOOGLE_DCHECK_NE(&from, this);
  1133. const parkspace_info* source =
  1134. ::google::protobuf::internal::DynamicCastToGenerated<const parkspace_info>(
  1135. &from);
  1136. if (source == NULL) {
  1137. // @@protoc_insertion_point(generalized_merge_from_cast_fail:parkspace_info)
  1138. ::google::protobuf::internal::ReflectionOps::Merge(from, this);
  1139. } else {
  1140. // @@protoc_insertion_point(generalized_merge_from_cast_success:parkspace_info)
  1141. MergeFrom(*source);
  1142. }
  1143. }
  1144. void parkspace_info::MergeFrom(const parkspace_info& from) {
  1145. // @@protoc_insertion_point(class_specific_merge_from_start:parkspace_info)
  1146. GOOGLE_DCHECK_NE(&from, this);
  1147. _internal_metadata_.MergeFrom(from._internal_metadata_);
  1148. ::google::protobuf::uint32 cached_has_bits = 0;
  1149. (void) cached_has_bits;
  1150. if (from.id() != 0) {
  1151. set_id(from.id());
  1152. }
  1153. if (from.unit_id() != 0) {
  1154. set_unit_id(from.unit_id());
  1155. }
  1156. if (from.floor() != 0) {
  1157. set_floor(from.floor());
  1158. }
  1159. if (from.room_id() != 0) {
  1160. set_room_id(from.room_id());
  1161. }
  1162. }
  1163. void parkspace_info::CopyFrom(const ::google::protobuf::Message& from) {
  1164. // @@protoc_insertion_point(generalized_copy_from_start:parkspace_info)
  1165. if (&from == this) return;
  1166. Clear();
  1167. MergeFrom(from);
  1168. }
  1169. void parkspace_info::CopyFrom(const parkspace_info& from) {
  1170. // @@protoc_insertion_point(class_specific_copy_from_start:parkspace_info)
  1171. if (&from == this) return;
  1172. Clear();
  1173. MergeFrom(from);
  1174. }
  1175. bool parkspace_info::IsInitialized() const {
  1176. return true;
  1177. }
  1178. void parkspace_info::Swap(parkspace_info* other) {
  1179. if (other == this) return;
  1180. InternalSwap(other);
  1181. }
  1182. void parkspace_info::InternalSwap(parkspace_info* other) {
  1183. using std::swap;
  1184. swap(id_, other->id_);
  1185. swap(unit_id_, other->unit_id_);
  1186. swap(floor_, other->floor_);
  1187. swap(room_id_, other->room_id_);
  1188. _internal_metadata_.Swap(&other->_internal_metadata_);
  1189. }
  1190. ::google::protobuf::Metadata parkspace_info::GetMetadata() const {
  1191. protobuf_message_2eproto::protobuf_AssignDescriptorsOnce();
  1192. return ::protobuf_message_2eproto::file_level_metadata[kIndexInFileMessages];
  1193. }
  1194. // ===================================================================
  1195. void table_statu::InitAsDefaultInstance() {
  1196. }
  1197. #if !defined(_MSC_VER) || _MSC_VER >= 1900
  1198. const int table_statu::kExecuteStatuFieldNumber;
  1199. const int table_statu::kStatuDescriptionFieldNumber;
  1200. #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
  1201. table_statu::table_statu()
  1202. : ::google::protobuf::Message(), _internal_metadata_(NULL) {
  1203. ::google::protobuf::internal::InitSCC(
  1204. &protobuf_message_2eproto::scc_info_table_statu.base);
  1205. SharedCtor();
  1206. // @@protoc_insertion_point(constructor:table_statu)
  1207. }
  1208. table_statu::table_statu(const table_statu& from)
  1209. : ::google::protobuf::Message(),
  1210. _internal_metadata_(NULL) {
  1211. _internal_metadata_.MergeFrom(from._internal_metadata_);
  1212. statu_description_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  1213. if (from.statu_description().size() > 0) {
  1214. statu_description_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.statu_description_);
  1215. }
  1216. execute_statu_ = from.execute_statu_;
  1217. // @@protoc_insertion_point(copy_constructor:table_statu)
  1218. }
  1219. void table_statu::SharedCtor() {
  1220. statu_description_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  1221. execute_statu_ = 0;
  1222. }
  1223. table_statu::~table_statu() {
  1224. // @@protoc_insertion_point(destructor:table_statu)
  1225. SharedDtor();
  1226. }
  1227. void table_statu::SharedDtor() {
  1228. statu_description_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  1229. }
  1230. void table_statu::SetCachedSize(int size) const {
  1231. _cached_size_.Set(size);
  1232. }
  1233. const ::google::protobuf::Descriptor* table_statu::descriptor() {
  1234. ::protobuf_message_2eproto::protobuf_AssignDescriptorsOnce();
  1235. return ::protobuf_message_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
  1236. }
  1237. const table_statu& table_statu::default_instance() {
  1238. ::google::protobuf::internal::InitSCC(&protobuf_message_2eproto::scc_info_table_statu.base);
  1239. return *internal_default_instance();
  1240. }
  1241. void table_statu::Clear() {
  1242. // @@protoc_insertion_point(message_clear_start:table_statu)
  1243. ::google::protobuf::uint32 cached_has_bits = 0;
  1244. // Prevent compiler warnings about cached_has_bits being unused
  1245. (void) cached_has_bits;
  1246. statu_description_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  1247. execute_statu_ = 0;
  1248. _internal_metadata_.Clear();
  1249. }
  1250. bool table_statu::MergePartialFromCodedStream(
  1251. ::google::protobuf::io::CodedInputStream* input) {
  1252. #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
  1253. ::google::protobuf::uint32 tag;
  1254. // @@protoc_insertion_point(parse_start:table_statu)
  1255. for (;;) {
  1256. ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
  1257. tag = p.first;
  1258. if (!p.second) goto handle_unusual;
  1259. switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
  1260. // .STATU execute_statu = 1;
  1261. case 1: {
  1262. if (static_cast< ::google::protobuf::uint8>(tag) ==
  1263. static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) {
  1264. int value;
  1265. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  1266. int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
  1267. input, &value)));
  1268. set_execute_statu(static_cast< ::STATU >(value));
  1269. } else {
  1270. goto handle_unusual;
  1271. }
  1272. break;
  1273. }
  1274. // string statu_description = 2;
  1275. case 2: {
  1276. if (static_cast< ::google::protobuf::uint8>(tag) ==
  1277. static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) {
  1278. DO_(::google::protobuf::internal::WireFormatLite::ReadString(
  1279. input, this->mutable_statu_description()));
  1280. DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
  1281. this->statu_description().data(), static_cast<int>(this->statu_description().length()),
  1282. ::google::protobuf::internal::WireFormatLite::PARSE,
  1283. "table_statu.statu_description"));
  1284. } else {
  1285. goto handle_unusual;
  1286. }
  1287. break;
  1288. }
  1289. default: {
  1290. handle_unusual:
  1291. if (tag == 0) {
  1292. goto success;
  1293. }
  1294. DO_(::google::protobuf::internal::WireFormat::SkipField(
  1295. input, tag, _internal_metadata_.mutable_unknown_fields()));
  1296. break;
  1297. }
  1298. }
  1299. }
  1300. success:
  1301. // @@protoc_insertion_point(parse_success:table_statu)
  1302. return true;
  1303. failure:
  1304. // @@protoc_insertion_point(parse_failure:table_statu)
  1305. return false;
  1306. #undef DO_
  1307. }
  1308. void table_statu::SerializeWithCachedSizes(
  1309. ::google::protobuf::io::CodedOutputStream* output) const {
  1310. // @@protoc_insertion_point(serialize_start:table_statu)
  1311. ::google::protobuf::uint32 cached_has_bits = 0;
  1312. (void) cached_has_bits;
  1313. // .STATU execute_statu = 1;
  1314. if (this->execute_statu() != 0) {
  1315. ::google::protobuf::internal::WireFormatLite::WriteEnum(
  1316. 1, this->execute_statu(), output);
  1317. }
  1318. // string statu_description = 2;
  1319. if (this->statu_description().size() > 0) {
  1320. ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
  1321. this->statu_description().data(), static_cast<int>(this->statu_description().length()),
  1322. ::google::protobuf::internal::WireFormatLite::SERIALIZE,
  1323. "table_statu.statu_description");
  1324. ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
  1325. 2, this->statu_description(), output);
  1326. }
  1327. if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
  1328. ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
  1329. (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output);
  1330. }
  1331. // @@protoc_insertion_point(serialize_end:table_statu)
  1332. }
  1333. ::google::protobuf::uint8* table_statu::InternalSerializeWithCachedSizesToArray(
  1334. bool deterministic, ::google::protobuf::uint8* target) const {
  1335. (void)deterministic; // Unused
  1336. // @@protoc_insertion_point(serialize_to_array_start:table_statu)
  1337. ::google::protobuf::uint32 cached_has_bits = 0;
  1338. (void) cached_has_bits;
  1339. // .STATU execute_statu = 1;
  1340. if (this->execute_statu() != 0) {
  1341. target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
  1342. 1, this->execute_statu(), target);
  1343. }
  1344. // string statu_description = 2;
  1345. if (this->statu_description().size() > 0) {
  1346. ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
  1347. this->statu_description().data(), static_cast<int>(this->statu_description().length()),
  1348. ::google::protobuf::internal::WireFormatLite::SERIALIZE,
  1349. "table_statu.statu_description");
  1350. target =
  1351. ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
  1352. 2, this->statu_description(), target);
  1353. }
  1354. if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
  1355. target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
  1356. (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target);
  1357. }
  1358. // @@protoc_insertion_point(serialize_to_array_end:table_statu)
  1359. return target;
  1360. }
  1361. size_t table_statu::ByteSizeLong() const {
  1362. // @@protoc_insertion_point(message_byte_size_start:table_statu)
  1363. size_t total_size = 0;
  1364. if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
  1365. total_size +=
  1366. ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
  1367. (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()));
  1368. }
  1369. // string statu_description = 2;
  1370. if (this->statu_description().size() > 0) {
  1371. total_size += 1 +
  1372. ::google::protobuf::internal::WireFormatLite::StringSize(
  1373. this->statu_description());
  1374. }
  1375. // .STATU execute_statu = 1;
  1376. if (this->execute_statu() != 0) {
  1377. total_size += 1 +
  1378. ::google::protobuf::internal::WireFormatLite::EnumSize(this->execute_statu());
  1379. }
  1380. int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
  1381. SetCachedSize(cached_size);
  1382. return total_size;
  1383. }
  1384. void table_statu::MergeFrom(const ::google::protobuf::Message& from) {
  1385. // @@protoc_insertion_point(generalized_merge_from_start:table_statu)
  1386. GOOGLE_DCHECK_NE(&from, this);
  1387. const table_statu* source =
  1388. ::google::protobuf::internal::DynamicCastToGenerated<const table_statu>(
  1389. &from);
  1390. if (source == NULL) {
  1391. // @@protoc_insertion_point(generalized_merge_from_cast_fail:table_statu)
  1392. ::google::protobuf::internal::ReflectionOps::Merge(from, this);
  1393. } else {
  1394. // @@protoc_insertion_point(generalized_merge_from_cast_success:table_statu)
  1395. MergeFrom(*source);
  1396. }
  1397. }
  1398. void table_statu::MergeFrom(const table_statu& from) {
  1399. // @@protoc_insertion_point(class_specific_merge_from_start:table_statu)
  1400. GOOGLE_DCHECK_NE(&from, this);
  1401. _internal_metadata_.MergeFrom(from._internal_metadata_);
  1402. ::google::protobuf::uint32 cached_has_bits = 0;
  1403. (void) cached_has_bits;
  1404. if (from.statu_description().size() > 0) {
  1405. statu_description_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.statu_description_);
  1406. }
  1407. if (from.execute_statu() != 0) {
  1408. set_execute_statu(from.execute_statu());
  1409. }
  1410. }
  1411. void table_statu::CopyFrom(const ::google::protobuf::Message& from) {
  1412. // @@protoc_insertion_point(generalized_copy_from_start:table_statu)
  1413. if (&from == this) return;
  1414. Clear();
  1415. MergeFrom(from);
  1416. }
  1417. void table_statu::CopyFrom(const table_statu& from) {
  1418. // @@protoc_insertion_point(class_specific_copy_from_start:table_statu)
  1419. if (&from == this) return;
  1420. Clear();
  1421. MergeFrom(from);
  1422. }
  1423. bool table_statu::IsInitialized() const {
  1424. return true;
  1425. }
  1426. void table_statu::Swap(table_statu* other) {
  1427. if (other == this) return;
  1428. InternalSwap(other);
  1429. }
  1430. void table_statu::InternalSwap(table_statu* other) {
  1431. using std::swap;
  1432. statu_description_.Swap(&other->statu_description_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  1433. GetArenaNoVirtual());
  1434. swap(execute_statu_, other->execute_statu_);
  1435. _internal_metadata_.Swap(&other->_internal_metadata_);
  1436. }
  1437. ::google::protobuf::Metadata table_statu::GetMetadata() const {
  1438. protobuf_message_2eproto::protobuf_AssignDescriptorsOnce();
  1439. return ::protobuf_message_2eproto::file_level_metadata[kIndexInFileMessages];
  1440. }
  1441. // ===================================================================
  1442. void park_table::InitAsDefaultInstance() {
  1443. ::_park_table_default_instance_._instance.get_mutable()->statu_ = const_cast< ::table_statu*>(
  1444. ::table_statu::internal_default_instance());
  1445. ::_park_table_default_instance_._instance.get_mutable()->entrance_measure_info_ = const_cast< ::measure_info*>(
  1446. ::measure_info::internal_default_instance());
  1447. ::_park_table_default_instance_._instance.get_mutable()->allocated_space_info_ = const_cast< ::parkspace_info*>(
  1448. ::parkspace_info::internal_default_instance());
  1449. ::_park_table_default_instance_._instance.get_mutable()->actually_measure_info_ = const_cast< ::measure_info*>(
  1450. ::measure_info::internal_default_instance());
  1451. ::_park_table_default_instance_._instance.get_mutable()->actually_space_info_ = const_cast< ::parkspace_info*>(
  1452. ::parkspace_info::internal_default_instance());
  1453. }
  1454. #if !defined(_MSC_VER) || _MSC_VER >= 1900
  1455. const int park_table::kStatuFieldNumber;
  1456. const int park_table::kQueueIdFieldNumber;
  1457. const int park_table::kCarNumberFieldNumber;
  1458. const int park_table::kUnitIdFieldNumber;
  1459. const int park_table::kTerminalIdFieldNumber;
  1460. const int park_table::kPrimaryKeyFieldNumber;
  1461. const int park_table::kEntranceMeasureInfoFieldNumber;
  1462. const int park_table::kAllocatedSpaceInfoFieldNumber;
  1463. const int park_table::kActuallyMeasureInfoFieldNumber;
  1464. const int park_table::kActuallySpaceInfoFieldNumber;
  1465. #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
  1466. park_table::park_table()
  1467. : ::google::protobuf::Message(), _internal_metadata_(NULL) {
  1468. ::google::protobuf::internal::InitSCC(
  1469. &protobuf_message_2eproto::scc_info_park_table.base);
  1470. SharedCtor();
  1471. // @@protoc_insertion_point(constructor:park_table)
  1472. }
  1473. park_table::park_table(const park_table& from)
  1474. : ::google::protobuf::Message(),
  1475. _internal_metadata_(NULL) {
  1476. _internal_metadata_.MergeFrom(from._internal_metadata_);
  1477. car_number_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  1478. if (from.car_number().size() > 0) {
  1479. car_number_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.car_number_);
  1480. }
  1481. primary_key_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  1482. if (from.primary_key().size() > 0) {
  1483. primary_key_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.primary_key_);
  1484. }
  1485. if (from.has_statu()) {
  1486. statu_ = new ::table_statu(*from.statu_);
  1487. } else {
  1488. statu_ = NULL;
  1489. }
  1490. if (from.has_entrance_measure_info()) {
  1491. entrance_measure_info_ = new ::measure_info(*from.entrance_measure_info_);
  1492. } else {
  1493. entrance_measure_info_ = NULL;
  1494. }
  1495. if (from.has_allocated_space_info()) {
  1496. allocated_space_info_ = new ::parkspace_info(*from.allocated_space_info_);
  1497. } else {
  1498. allocated_space_info_ = NULL;
  1499. }
  1500. if (from.has_actually_measure_info()) {
  1501. actually_measure_info_ = new ::measure_info(*from.actually_measure_info_);
  1502. } else {
  1503. actually_measure_info_ = NULL;
  1504. }
  1505. if (from.has_actually_space_info()) {
  1506. actually_space_info_ = new ::parkspace_info(*from.actually_space_info_);
  1507. } else {
  1508. actually_space_info_ = NULL;
  1509. }
  1510. ::memcpy(&queue_id_, &from.queue_id_,
  1511. static_cast<size_t>(reinterpret_cast<char*>(&terminal_id_) -
  1512. reinterpret_cast<char*>(&queue_id_)) + sizeof(terminal_id_));
  1513. // @@protoc_insertion_point(copy_constructor:park_table)
  1514. }
  1515. void park_table::SharedCtor() {
  1516. car_number_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  1517. primary_key_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  1518. ::memset(&statu_, 0, static_cast<size_t>(
  1519. reinterpret_cast<char*>(&terminal_id_) -
  1520. reinterpret_cast<char*>(&statu_)) + sizeof(terminal_id_));
  1521. }
  1522. park_table::~park_table() {
  1523. // @@protoc_insertion_point(destructor:park_table)
  1524. SharedDtor();
  1525. }
  1526. void park_table::SharedDtor() {
  1527. car_number_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  1528. primary_key_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  1529. if (this != internal_default_instance()) delete statu_;
  1530. if (this != internal_default_instance()) delete entrance_measure_info_;
  1531. if (this != internal_default_instance()) delete allocated_space_info_;
  1532. if (this != internal_default_instance()) delete actually_measure_info_;
  1533. if (this != internal_default_instance()) delete actually_space_info_;
  1534. }
  1535. void park_table::SetCachedSize(int size) const {
  1536. _cached_size_.Set(size);
  1537. }
  1538. const ::google::protobuf::Descriptor* park_table::descriptor() {
  1539. ::protobuf_message_2eproto::protobuf_AssignDescriptorsOnce();
  1540. return ::protobuf_message_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
  1541. }
  1542. const park_table& park_table::default_instance() {
  1543. ::google::protobuf::internal::InitSCC(&protobuf_message_2eproto::scc_info_park_table.base);
  1544. return *internal_default_instance();
  1545. }
  1546. void park_table::Clear() {
  1547. // @@protoc_insertion_point(message_clear_start:park_table)
  1548. ::google::protobuf::uint32 cached_has_bits = 0;
  1549. // Prevent compiler warnings about cached_has_bits being unused
  1550. (void) cached_has_bits;
  1551. car_number_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  1552. primary_key_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  1553. if (GetArenaNoVirtual() == NULL && statu_ != NULL) {
  1554. delete statu_;
  1555. }
  1556. statu_ = NULL;
  1557. if (GetArenaNoVirtual() == NULL && entrance_measure_info_ != NULL) {
  1558. delete entrance_measure_info_;
  1559. }
  1560. entrance_measure_info_ = NULL;
  1561. if (GetArenaNoVirtual() == NULL && allocated_space_info_ != NULL) {
  1562. delete allocated_space_info_;
  1563. }
  1564. allocated_space_info_ = NULL;
  1565. if (GetArenaNoVirtual() == NULL && actually_measure_info_ != NULL) {
  1566. delete actually_measure_info_;
  1567. }
  1568. actually_measure_info_ = NULL;
  1569. if (GetArenaNoVirtual() == NULL && actually_space_info_ != NULL) {
  1570. delete actually_space_info_;
  1571. }
  1572. actually_space_info_ = NULL;
  1573. ::memset(&queue_id_, 0, static_cast<size_t>(
  1574. reinterpret_cast<char*>(&terminal_id_) -
  1575. reinterpret_cast<char*>(&queue_id_)) + sizeof(terminal_id_));
  1576. _internal_metadata_.Clear();
  1577. }
  1578. bool park_table::MergePartialFromCodedStream(
  1579. ::google::protobuf::io::CodedInputStream* input) {
  1580. #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
  1581. ::google::protobuf::uint32 tag;
  1582. // @@protoc_insertion_point(parse_start:park_table)
  1583. for (;;) {
  1584. ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
  1585. tag = p.first;
  1586. if (!p.second) goto handle_unusual;
  1587. switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
  1588. // .table_statu statu = 1;
  1589. case 1: {
  1590. if (static_cast< ::google::protobuf::uint8>(tag) ==
  1591. static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
  1592. DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
  1593. input, mutable_statu()));
  1594. } else {
  1595. goto handle_unusual;
  1596. }
  1597. break;
  1598. }
  1599. // int32 queue_id = 2;
  1600. case 2: {
  1601. if (static_cast< ::google::protobuf::uint8>(tag) ==
  1602. static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) {
  1603. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  1604. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  1605. input, &queue_id_)));
  1606. } else {
  1607. goto handle_unusual;
  1608. }
  1609. break;
  1610. }
  1611. // string car_number = 3;
  1612. case 3: {
  1613. if (static_cast< ::google::protobuf::uint8>(tag) ==
  1614. static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) {
  1615. DO_(::google::protobuf::internal::WireFormatLite::ReadString(
  1616. input, this->mutable_car_number()));
  1617. DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
  1618. this->car_number().data(), static_cast<int>(this->car_number().length()),
  1619. ::google::protobuf::internal::WireFormatLite::PARSE,
  1620. "park_table.car_number"));
  1621. } else {
  1622. goto handle_unusual;
  1623. }
  1624. break;
  1625. }
  1626. // int32 unit_id = 4;
  1627. case 4: {
  1628. if (static_cast< ::google::protobuf::uint8>(tag) ==
  1629. static_cast< ::google::protobuf::uint8>(32u /* 32 & 0xFF */)) {
  1630. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  1631. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  1632. input, &unit_id_)));
  1633. } else {
  1634. goto handle_unusual;
  1635. }
  1636. break;
  1637. }
  1638. // int32 terminal_id = 5;
  1639. case 5: {
  1640. if (static_cast< ::google::protobuf::uint8>(tag) ==
  1641. static_cast< ::google::protobuf::uint8>(40u /* 40 & 0xFF */)) {
  1642. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  1643. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  1644. input, &terminal_id_)));
  1645. } else {
  1646. goto handle_unusual;
  1647. }
  1648. break;
  1649. }
  1650. // string primary_key = 6;
  1651. case 6: {
  1652. if (static_cast< ::google::protobuf::uint8>(tag) ==
  1653. static_cast< ::google::protobuf::uint8>(50u /* 50 & 0xFF */)) {
  1654. DO_(::google::protobuf::internal::WireFormatLite::ReadString(
  1655. input, this->mutable_primary_key()));
  1656. DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
  1657. this->primary_key().data(), static_cast<int>(this->primary_key().length()),
  1658. ::google::protobuf::internal::WireFormatLite::PARSE,
  1659. "park_table.primary_key"));
  1660. } else {
  1661. goto handle_unusual;
  1662. }
  1663. break;
  1664. }
  1665. // .measure_info entrance_measure_info = 7;
  1666. case 7: {
  1667. if (static_cast< ::google::protobuf::uint8>(tag) ==
  1668. static_cast< ::google::protobuf::uint8>(58u /* 58 & 0xFF */)) {
  1669. DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
  1670. input, mutable_entrance_measure_info()));
  1671. } else {
  1672. goto handle_unusual;
  1673. }
  1674. break;
  1675. }
  1676. // .parkspace_info allocated_space_info = 8;
  1677. case 8: {
  1678. if (static_cast< ::google::protobuf::uint8>(tag) ==
  1679. static_cast< ::google::protobuf::uint8>(66u /* 66 & 0xFF */)) {
  1680. DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
  1681. input, mutable_allocated_space_info()));
  1682. } else {
  1683. goto handle_unusual;
  1684. }
  1685. break;
  1686. }
  1687. // .measure_info actually_measure_info = 9;
  1688. case 9: {
  1689. if (static_cast< ::google::protobuf::uint8>(tag) ==
  1690. static_cast< ::google::protobuf::uint8>(74u /* 74 & 0xFF */)) {
  1691. DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
  1692. input, mutable_actually_measure_info()));
  1693. } else {
  1694. goto handle_unusual;
  1695. }
  1696. break;
  1697. }
  1698. // .parkspace_info actually_space_info = 10;
  1699. case 10: {
  1700. if (static_cast< ::google::protobuf::uint8>(tag) ==
  1701. static_cast< ::google::protobuf::uint8>(82u /* 82 & 0xFF */)) {
  1702. DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
  1703. input, mutable_actually_space_info()));
  1704. } else {
  1705. goto handle_unusual;
  1706. }
  1707. break;
  1708. }
  1709. default: {
  1710. handle_unusual:
  1711. if (tag == 0) {
  1712. goto success;
  1713. }
  1714. DO_(::google::protobuf::internal::WireFormat::SkipField(
  1715. input, tag, _internal_metadata_.mutable_unknown_fields()));
  1716. break;
  1717. }
  1718. }
  1719. }
  1720. success:
  1721. // @@protoc_insertion_point(parse_success:park_table)
  1722. return true;
  1723. failure:
  1724. // @@protoc_insertion_point(parse_failure:park_table)
  1725. return false;
  1726. #undef DO_
  1727. }
  1728. void park_table::SerializeWithCachedSizes(
  1729. ::google::protobuf::io::CodedOutputStream* output) const {
  1730. // @@protoc_insertion_point(serialize_start:park_table)
  1731. ::google::protobuf::uint32 cached_has_bits = 0;
  1732. (void) cached_has_bits;
  1733. // .table_statu statu = 1;
  1734. if (this->has_statu()) {
  1735. ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
  1736. 1, this->_internal_statu(), output);
  1737. }
  1738. // int32 queue_id = 2;
  1739. if (this->queue_id() != 0) {
  1740. ::google::protobuf::internal::WireFormatLite::WriteInt32(2, this->queue_id(), output);
  1741. }
  1742. // string car_number = 3;
  1743. if (this->car_number().size() > 0) {
  1744. ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
  1745. this->car_number().data(), static_cast<int>(this->car_number().length()),
  1746. ::google::protobuf::internal::WireFormatLite::SERIALIZE,
  1747. "park_table.car_number");
  1748. ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
  1749. 3, this->car_number(), output);
  1750. }
  1751. // int32 unit_id = 4;
  1752. if (this->unit_id() != 0) {
  1753. ::google::protobuf::internal::WireFormatLite::WriteInt32(4, this->unit_id(), output);
  1754. }
  1755. // int32 terminal_id = 5;
  1756. if (this->terminal_id() != 0) {
  1757. ::google::protobuf::internal::WireFormatLite::WriteInt32(5, this->terminal_id(), output);
  1758. }
  1759. // string primary_key = 6;
  1760. if (this->primary_key().size() > 0) {
  1761. ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
  1762. this->primary_key().data(), static_cast<int>(this->primary_key().length()),
  1763. ::google::protobuf::internal::WireFormatLite::SERIALIZE,
  1764. "park_table.primary_key");
  1765. ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
  1766. 6, this->primary_key(), output);
  1767. }
  1768. // .measure_info entrance_measure_info = 7;
  1769. if (this->has_entrance_measure_info()) {
  1770. ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
  1771. 7, this->_internal_entrance_measure_info(), output);
  1772. }
  1773. // .parkspace_info allocated_space_info = 8;
  1774. if (this->has_allocated_space_info()) {
  1775. ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
  1776. 8, this->_internal_allocated_space_info(), output);
  1777. }
  1778. // .measure_info actually_measure_info = 9;
  1779. if (this->has_actually_measure_info()) {
  1780. ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
  1781. 9, this->_internal_actually_measure_info(), output);
  1782. }
  1783. // .parkspace_info actually_space_info = 10;
  1784. if (this->has_actually_space_info()) {
  1785. ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
  1786. 10, this->_internal_actually_space_info(), output);
  1787. }
  1788. if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
  1789. ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
  1790. (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output);
  1791. }
  1792. // @@protoc_insertion_point(serialize_end:park_table)
  1793. }
  1794. ::google::protobuf::uint8* park_table::InternalSerializeWithCachedSizesToArray(
  1795. bool deterministic, ::google::protobuf::uint8* target) const {
  1796. (void)deterministic; // Unused
  1797. // @@protoc_insertion_point(serialize_to_array_start:park_table)
  1798. ::google::protobuf::uint32 cached_has_bits = 0;
  1799. (void) cached_has_bits;
  1800. // .table_statu statu = 1;
  1801. if (this->has_statu()) {
  1802. target = ::google::protobuf::internal::WireFormatLite::
  1803. InternalWriteMessageToArray(
  1804. 1, this->_internal_statu(), deterministic, target);
  1805. }
  1806. // int32 queue_id = 2;
  1807. if (this->queue_id() != 0) {
  1808. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(2, this->queue_id(), target);
  1809. }
  1810. // string car_number = 3;
  1811. if (this->car_number().size() > 0) {
  1812. ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
  1813. this->car_number().data(), static_cast<int>(this->car_number().length()),
  1814. ::google::protobuf::internal::WireFormatLite::SERIALIZE,
  1815. "park_table.car_number");
  1816. target =
  1817. ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
  1818. 3, this->car_number(), target);
  1819. }
  1820. // int32 unit_id = 4;
  1821. if (this->unit_id() != 0) {
  1822. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(4, this->unit_id(), target);
  1823. }
  1824. // int32 terminal_id = 5;
  1825. if (this->terminal_id() != 0) {
  1826. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(5, this->terminal_id(), target);
  1827. }
  1828. // string primary_key = 6;
  1829. if (this->primary_key().size() > 0) {
  1830. ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
  1831. this->primary_key().data(), static_cast<int>(this->primary_key().length()),
  1832. ::google::protobuf::internal::WireFormatLite::SERIALIZE,
  1833. "park_table.primary_key");
  1834. target =
  1835. ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
  1836. 6, this->primary_key(), target);
  1837. }
  1838. // .measure_info entrance_measure_info = 7;
  1839. if (this->has_entrance_measure_info()) {
  1840. target = ::google::protobuf::internal::WireFormatLite::
  1841. InternalWriteMessageToArray(
  1842. 7, this->_internal_entrance_measure_info(), deterministic, target);
  1843. }
  1844. // .parkspace_info allocated_space_info = 8;
  1845. if (this->has_allocated_space_info()) {
  1846. target = ::google::protobuf::internal::WireFormatLite::
  1847. InternalWriteMessageToArray(
  1848. 8, this->_internal_allocated_space_info(), deterministic, target);
  1849. }
  1850. // .measure_info actually_measure_info = 9;
  1851. if (this->has_actually_measure_info()) {
  1852. target = ::google::protobuf::internal::WireFormatLite::
  1853. InternalWriteMessageToArray(
  1854. 9, this->_internal_actually_measure_info(), deterministic, target);
  1855. }
  1856. // .parkspace_info actually_space_info = 10;
  1857. if (this->has_actually_space_info()) {
  1858. target = ::google::protobuf::internal::WireFormatLite::
  1859. InternalWriteMessageToArray(
  1860. 10, this->_internal_actually_space_info(), deterministic, target);
  1861. }
  1862. if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
  1863. target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
  1864. (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target);
  1865. }
  1866. // @@protoc_insertion_point(serialize_to_array_end:park_table)
  1867. return target;
  1868. }
  1869. size_t park_table::ByteSizeLong() const {
  1870. // @@protoc_insertion_point(message_byte_size_start:park_table)
  1871. size_t total_size = 0;
  1872. if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
  1873. total_size +=
  1874. ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
  1875. (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()));
  1876. }
  1877. // string car_number = 3;
  1878. if (this->car_number().size() > 0) {
  1879. total_size += 1 +
  1880. ::google::protobuf::internal::WireFormatLite::StringSize(
  1881. this->car_number());
  1882. }
  1883. // string primary_key = 6;
  1884. if (this->primary_key().size() > 0) {
  1885. total_size += 1 +
  1886. ::google::protobuf::internal::WireFormatLite::StringSize(
  1887. this->primary_key());
  1888. }
  1889. // .table_statu statu = 1;
  1890. if (this->has_statu()) {
  1891. total_size += 1 +
  1892. ::google::protobuf::internal::WireFormatLite::MessageSize(
  1893. *statu_);
  1894. }
  1895. // .measure_info entrance_measure_info = 7;
  1896. if (this->has_entrance_measure_info()) {
  1897. total_size += 1 +
  1898. ::google::protobuf::internal::WireFormatLite::MessageSize(
  1899. *entrance_measure_info_);
  1900. }
  1901. // .parkspace_info allocated_space_info = 8;
  1902. if (this->has_allocated_space_info()) {
  1903. total_size += 1 +
  1904. ::google::protobuf::internal::WireFormatLite::MessageSize(
  1905. *allocated_space_info_);
  1906. }
  1907. // .measure_info actually_measure_info = 9;
  1908. if (this->has_actually_measure_info()) {
  1909. total_size += 1 +
  1910. ::google::protobuf::internal::WireFormatLite::MessageSize(
  1911. *actually_measure_info_);
  1912. }
  1913. // .parkspace_info actually_space_info = 10;
  1914. if (this->has_actually_space_info()) {
  1915. total_size += 1 +
  1916. ::google::protobuf::internal::WireFormatLite::MessageSize(
  1917. *actually_space_info_);
  1918. }
  1919. // int32 queue_id = 2;
  1920. if (this->queue_id() != 0) {
  1921. total_size += 1 +
  1922. ::google::protobuf::internal::WireFormatLite::Int32Size(
  1923. this->queue_id());
  1924. }
  1925. // int32 unit_id = 4;
  1926. if (this->unit_id() != 0) {
  1927. total_size += 1 +
  1928. ::google::protobuf::internal::WireFormatLite::Int32Size(
  1929. this->unit_id());
  1930. }
  1931. // int32 terminal_id = 5;
  1932. if (this->terminal_id() != 0) {
  1933. total_size += 1 +
  1934. ::google::protobuf::internal::WireFormatLite::Int32Size(
  1935. this->terminal_id());
  1936. }
  1937. int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
  1938. SetCachedSize(cached_size);
  1939. return total_size;
  1940. }
  1941. void park_table::MergeFrom(const ::google::protobuf::Message& from) {
  1942. // @@protoc_insertion_point(generalized_merge_from_start:park_table)
  1943. GOOGLE_DCHECK_NE(&from, this);
  1944. const park_table* source =
  1945. ::google::protobuf::internal::DynamicCastToGenerated<const park_table>(
  1946. &from);
  1947. if (source == NULL) {
  1948. // @@protoc_insertion_point(generalized_merge_from_cast_fail:park_table)
  1949. ::google::protobuf::internal::ReflectionOps::Merge(from, this);
  1950. } else {
  1951. // @@protoc_insertion_point(generalized_merge_from_cast_success:park_table)
  1952. MergeFrom(*source);
  1953. }
  1954. }
  1955. void park_table::MergeFrom(const park_table& from) {
  1956. // @@protoc_insertion_point(class_specific_merge_from_start:park_table)
  1957. GOOGLE_DCHECK_NE(&from, this);
  1958. _internal_metadata_.MergeFrom(from._internal_metadata_);
  1959. ::google::protobuf::uint32 cached_has_bits = 0;
  1960. (void) cached_has_bits;
  1961. if (from.car_number().size() > 0) {
  1962. car_number_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.car_number_);
  1963. }
  1964. if (from.primary_key().size() > 0) {
  1965. primary_key_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.primary_key_);
  1966. }
  1967. if (from.has_statu()) {
  1968. mutable_statu()->::table_statu::MergeFrom(from.statu());
  1969. }
  1970. if (from.has_entrance_measure_info()) {
  1971. mutable_entrance_measure_info()->::measure_info::MergeFrom(from.entrance_measure_info());
  1972. }
  1973. if (from.has_allocated_space_info()) {
  1974. mutable_allocated_space_info()->::parkspace_info::MergeFrom(from.allocated_space_info());
  1975. }
  1976. if (from.has_actually_measure_info()) {
  1977. mutable_actually_measure_info()->::measure_info::MergeFrom(from.actually_measure_info());
  1978. }
  1979. if (from.has_actually_space_info()) {
  1980. mutable_actually_space_info()->::parkspace_info::MergeFrom(from.actually_space_info());
  1981. }
  1982. if (from.queue_id() != 0) {
  1983. set_queue_id(from.queue_id());
  1984. }
  1985. if (from.unit_id() != 0) {
  1986. set_unit_id(from.unit_id());
  1987. }
  1988. if (from.terminal_id() != 0) {
  1989. set_terminal_id(from.terminal_id());
  1990. }
  1991. }
  1992. void park_table::CopyFrom(const ::google::protobuf::Message& from) {
  1993. // @@protoc_insertion_point(generalized_copy_from_start:park_table)
  1994. if (&from == this) return;
  1995. Clear();
  1996. MergeFrom(from);
  1997. }
  1998. void park_table::CopyFrom(const park_table& from) {
  1999. // @@protoc_insertion_point(class_specific_copy_from_start:park_table)
  2000. if (&from == this) return;
  2001. Clear();
  2002. MergeFrom(from);
  2003. }
  2004. bool park_table::IsInitialized() const {
  2005. return true;
  2006. }
  2007. void park_table::Swap(park_table* other) {
  2008. if (other == this) return;
  2009. InternalSwap(other);
  2010. }
  2011. void park_table::InternalSwap(park_table* other) {
  2012. using std::swap;
  2013. car_number_.Swap(&other->car_number_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  2014. GetArenaNoVirtual());
  2015. primary_key_.Swap(&other->primary_key_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  2016. GetArenaNoVirtual());
  2017. swap(statu_, other->statu_);
  2018. swap(entrance_measure_info_, other->entrance_measure_info_);
  2019. swap(allocated_space_info_, other->allocated_space_info_);
  2020. swap(actually_measure_info_, other->actually_measure_info_);
  2021. swap(actually_space_info_, other->actually_space_info_);
  2022. swap(queue_id_, other->queue_id_);
  2023. swap(unit_id_, other->unit_id_);
  2024. swap(terminal_id_, other->terminal_id_);
  2025. _internal_metadata_.Swap(&other->_internal_metadata_);
  2026. }
  2027. ::google::protobuf::Metadata park_table::GetMetadata() const {
  2028. protobuf_message_2eproto::protobuf_AssignDescriptorsOnce();
  2029. return ::protobuf_message_2eproto::file_level_metadata[kIndexInFileMessages];
  2030. }
  2031. // ===================================================================
  2032. void pick_table::InitAsDefaultInstance() {
  2033. ::_pick_table_default_instance_._instance.get_mutable()->statu_ = const_cast< ::table_statu*>(
  2034. ::table_statu::internal_default_instance());
  2035. ::_pick_table_default_instance_._instance.get_mutable()->actually_space_info_ = const_cast< ::parkspace_info*>(
  2036. ::parkspace_info::internal_default_instance());
  2037. ::_pick_table_default_instance_._instance.get_mutable()->actually_measure_info_ = const_cast< ::measure_info*>(
  2038. ::measure_info::internal_default_instance());
  2039. }
  2040. #if !defined(_MSC_VER) || _MSC_VER >= 1900
  2041. const int pick_table::kStatuFieldNumber;
  2042. const int pick_table::kQueueIdFieldNumber;
  2043. const int pick_table::kCarNumberFieldNumber;
  2044. const int pick_table::kUnitIdFieldNumber;
  2045. const int pick_table::kTerminalIdFieldNumber;
  2046. const int pick_table::kPrimaryKeyFieldNumber;
  2047. const int pick_table::kActuallySpaceInfoFieldNumber;
  2048. const int pick_table::kActuallyMeasureInfoFieldNumber;
  2049. const int pick_table::kExportIdFieldNumber;
  2050. const int pick_table::kIsLeavedFieldNumber;
  2051. #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
  2052. pick_table::pick_table()
  2053. : ::google::protobuf::Message(), _internal_metadata_(NULL) {
  2054. ::google::protobuf::internal::InitSCC(
  2055. &protobuf_message_2eproto::scc_info_pick_table.base);
  2056. SharedCtor();
  2057. // @@protoc_insertion_point(constructor:pick_table)
  2058. }
  2059. pick_table::pick_table(const pick_table& from)
  2060. : ::google::protobuf::Message(),
  2061. _internal_metadata_(NULL) {
  2062. _internal_metadata_.MergeFrom(from._internal_metadata_);
  2063. car_number_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  2064. if (from.car_number().size() > 0) {
  2065. car_number_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.car_number_);
  2066. }
  2067. primary_key_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  2068. if (from.primary_key().size() > 0) {
  2069. primary_key_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.primary_key_);
  2070. }
  2071. if (from.has_statu()) {
  2072. statu_ = new ::table_statu(*from.statu_);
  2073. } else {
  2074. statu_ = NULL;
  2075. }
  2076. if (from.has_actually_space_info()) {
  2077. actually_space_info_ = new ::parkspace_info(*from.actually_space_info_);
  2078. } else {
  2079. actually_space_info_ = NULL;
  2080. }
  2081. if (from.has_actually_measure_info()) {
  2082. actually_measure_info_ = new ::measure_info(*from.actually_measure_info_);
  2083. } else {
  2084. actually_measure_info_ = NULL;
  2085. }
  2086. ::memcpy(&queue_id_, &from.queue_id_,
  2087. static_cast<size_t>(reinterpret_cast<char*>(&is_leaved_) -
  2088. reinterpret_cast<char*>(&queue_id_)) + sizeof(is_leaved_));
  2089. // @@protoc_insertion_point(copy_constructor:pick_table)
  2090. }
  2091. void pick_table::SharedCtor() {
  2092. car_number_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  2093. primary_key_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  2094. ::memset(&statu_, 0, static_cast<size_t>(
  2095. reinterpret_cast<char*>(&is_leaved_) -
  2096. reinterpret_cast<char*>(&statu_)) + sizeof(is_leaved_));
  2097. }
  2098. pick_table::~pick_table() {
  2099. // @@protoc_insertion_point(destructor:pick_table)
  2100. SharedDtor();
  2101. }
  2102. void pick_table::SharedDtor() {
  2103. car_number_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  2104. primary_key_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  2105. if (this != internal_default_instance()) delete statu_;
  2106. if (this != internal_default_instance()) delete actually_space_info_;
  2107. if (this != internal_default_instance()) delete actually_measure_info_;
  2108. }
  2109. void pick_table::SetCachedSize(int size) const {
  2110. _cached_size_.Set(size);
  2111. }
  2112. const ::google::protobuf::Descriptor* pick_table::descriptor() {
  2113. ::protobuf_message_2eproto::protobuf_AssignDescriptorsOnce();
  2114. return ::protobuf_message_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
  2115. }
  2116. const pick_table& pick_table::default_instance() {
  2117. ::google::protobuf::internal::InitSCC(&protobuf_message_2eproto::scc_info_pick_table.base);
  2118. return *internal_default_instance();
  2119. }
  2120. void pick_table::Clear() {
  2121. // @@protoc_insertion_point(message_clear_start:pick_table)
  2122. ::google::protobuf::uint32 cached_has_bits = 0;
  2123. // Prevent compiler warnings about cached_has_bits being unused
  2124. (void) cached_has_bits;
  2125. car_number_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  2126. primary_key_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  2127. if (GetArenaNoVirtual() == NULL && statu_ != NULL) {
  2128. delete statu_;
  2129. }
  2130. statu_ = NULL;
  2131. if (GetArenaNoVirtual() == NULL && actually_space_info_ != NULL) {
  2132. delete actually_space_info_;
  2133. }
  2134. actually_space_info_ = NULL;
  2135. if (GetArenaNoVirtual() == NULL && actually_measure_info_ != NULL) {
  2136. delete actually_measure_info_;
  2137. }
  2138. actually_measure_info_ = NULL;
  2139. ::memset(&queue_id_, 0, static_cast<size_t>(
  2140. reinterpret_cast<char*>(&is_leaved_) -
  2141. reinterpret_cast<char*>(&queue_id_)) + sizeof(is_leaved_));
  2142. _internal_metadata_.Clear();
  2143. }
  2144. bool pick_table::MergePartialFromCodedStream(
  2145. ::google::protobuf::io::CodedInputStream* input) {
  2146. #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
  2147. ::google::protobuf::uint32 tag;
  2148. // @@protoc_insertion_point(parse_start:pick_table)
  2149. for (;;) {
  2150. ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
  2151. tag = p.first;
  2152. if (!p.second) goto handle_unusual;
  2153. switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
  2154. // .table_statu statu = 1;
  2155. case 1: {
  2156. if (static_cast< ::google::protobuf::uint8>(tag) ==
  2157. static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
  2158. DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
  2159. input, mutable_statu()));
  2160. } else {
  2161. goto handle_unusual;
  2162. }
  2163. break;
  2164. }
  2165. // int32 queue_id = 2;
  2166. case 2: {
  2167. if (static_cast< ::google::protobuf::uint8>(tag) ==
  2168. static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) {
  2169. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  2170. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  2171. input, &queue_id_)));
  2172. } else {
  2173. goto handle_unusual;
  2174. }
  2175. break;
  2176. }
  2177. // string car_number = 3;
  2178. case 3: {
  2179. if (static_cast< ::google::protobuf::uint8>(tag) ==
  2180. static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) {
  2181. DO_(::google::protobuf::internal::WireFormatLite::ReadString(
  2182. input, this->mutable_car_number()));
  2183. DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
  2184. this->car_number().data(), static_cast<int>(this->car_number().length()),
  2185. ::google::protobuf::internal::WireFormatLite::PARSE,
  2186. "pick_table.car_number"));
  2187. } else {
  2188. goto handle_unusual;
  2189. }
  2190. break;
  2191. }
  2192. // int32 unit_id = 4;
  2193. case 4: {
  2194. if (static_cast< ::google::protobuf::uint8>(tag) ==
  2195. static_cast< ::google::protobuf::uint8>(32u /* 32 & 0xFF */)) {
  2196. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  2197. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  2198. input, &unit_id_)));
  2199. } else {
  2200. goto handle_unusual;
  2201. }
  2202. break;
  2203. }
  2204. // int32 terminal_id = 5;
  2205. case 5: {
  2206. if (static_cast< ::google::protobuf::uint8>(tag) ==
  2207. static_cast< ::google::protobuf::uint8>(40u /* 40 & 0xFF */)) {
  2208. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  2209. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  2210. input, &terminal_id_)));
  2211. } else {
  2212. goto handle_unusual;
  2213. }
  2214. break;
  2215. }
  2216. // string primary_key = 6;
  2217. case 6: {
  2218. if (static_cast< ::google::protobuf::uint8>(tag) ==
  2219. static_cast< ::google::protobuf::uint8>(50u /* 50 & 0xFF */)) {
  2220. DO_(::google::protobuf::internal::WireFormatLite::ReadString(
  2221. input, this->mutable_primary_key()));
  2222. DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
  2223. this->primary_key().data(), static_cast<int>(this->primary_key().length()),
  2224. ::google::protobuf::internal::WireFormatLite::PARSE,
  2225. "pick_table.primary_key"));
  2226. } else {
  2227. goto handle_unusual;
  2228. }
  2229. break;
  2230. }
  2231. // .parkspace_info actually_space_info = 7;
  2232. case 7: {
  2233. if (static_cast< ::google::protobuf::uint8>(tag) ==
  2234. static_cast< ::google::protobuf::uint8>(58u /* 58 & 0xFF */)) {
  2235. DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
  2236. input, mutable_actually_space_info()));
  2237. } else {
  2238. goto handle_unusual;
  2239. }
  2240. break;
  2241. }
  2242. // .measure_info actually_measure_info = 8;
  2243. case 8: {
  2244. if (static_cast< ::google::protobuf::uint8>(tag) ==
  2245. static_cast< ::google::protobuf::uint8>(66u /* 66 & 0xFF */)) {
  2246. DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
  2247. input, mutable_actually_measure_info()));
  2248. } else {
  2249. goto handle_unusual;
  2250. }
  2251. break;
  2252. }
  2253. // int32 export_id = 9;
  2254. case 9: {
  2255. if (static_cast< ::google::protobuf::uint8>(tag) ==
  2256. static_cast< ::google::protobuf::uint8>(72u /* 72 & 0xFF */)) {
  2257. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  2258. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  2259. input, &export_id_)));
  2260. } else {
  2261. goto handle_unusual;
  2262. }
  2263. break;
  2264. }
  2265. // bool is_leaved = 10;
  2266. case 10: {
  2267. if (static_cast< ::google::protobuf::uint8>(tag) ==
  2268. static_cast< ::google::protobuf::uint8>(80u /* 80 & 0xFF */)) {
  2269. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  2270. bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
  2271. input, &is_leaved_)));
  2272. } else {
  2273. goto handle_unusual;
  2274. }
  2275. break;
  2276. }
  2277. default: {
  2278. handle_unusual:
  2279. if (tag == 0) {
  2280. goto success;
  2281. }
  2282. DO_(::google::protobuf::internal::WireFormat::SkipField(
  2283. input, tag, _internal_metadata_.mutable_unknown_fields()));
  2284. break;
  2285. }
  2286. }
  2287. }
  2288. success:
  2289. // @@protoc_insertion_point(parse_success:pick_table)
  2290. return true;
  2291. failure:
  2292. // @@protoc_insertion_point(parse_failure:pick_table)
  2293. return false;
  2294. #undef DO_
  2295. }
  2296. void pick_table::SerializeWithCachedSizes(
  2297. ::google::protobuf::io::CodedOutputStream* output) const {
  2298. // @@protoc_insertion_point(serialize_start:pick_table)
  2299. ::google::protobuf::uint32 cached_has_bits = 0;
  2300. (void) cached_has_bits;
  2301. // .table_statu statu = 1;
  2302. if (this->has_statu()) {
  2303. ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
  2304. 1, this->_internal_statu(), output);
  2305. }
  2306. // int32 queue_id = 2;
  2307. if (this->queue_id() != 0) {
  2308. ::google::protobuf::internal::WireFormatLite::WriteInt32(2, this->queue_id(), output);
  2309. }
  2310. // string car_number = 3;
  2311. if (this->car_number().size() > 0) {
  2312. ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
  2313. this->car_number().data(), static_cast<int>(this->car_number().length()),
  2314. ::google::protobuf::internal::WireFormatLite::SERIALIZE,
  2315. "pick_table.car_number");
  2316. ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
  2317. 3, this->car_number(), output);
  2318. }
  2319. // int32 unit_id = 4;
  2320. if (this->unit_id() != 0) {
  2321. ::google::protobuf::internal::WireFormatLite::WriteInt32(4, this->unit_id(), output);
  2322. }
  2323. // int32 terminal_id = 5;
  2324. if (this->terminal_id() != 0) {
  2325. ::google::protobuf::internal::WireFormatLite::WriteInt32(5, this->terminal_id(), output);
  2326. }
  2327. // string primary_key = 6;
  2328. if (this->primary_key().size() > 0) {
  2329. ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
  2330. this->primary_key().data(), static_cast<int>(this->primary_key().length()),
  2331. ::google::protobuf::internal::WireFormatLite::SERIALIZE,
  2332. "pick_table.primary_key");
  2333. ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
  2334. 6, this->primary_key(), output);
  2335. }
  2336. // .parkspace_info actually_space_info = 7;
  2337. if (this->has_actually_space_info()) {
  2338. ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
  2339. 7, this->_internal_actually_space_info(), output);
  2340. }
  2341. // .measure_info actually_measure_info = 8;
  2342. if (this->has_actually_measure_info()) {
  2343. ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
  2344. 8, this->_internal_actually_measure_info(), output);
  2345. }
  2346. // int32 export_id = 9;
  2347. if (this->export_id() != 0) {
  2348. ::google::protobuf::internal::WireFormatLite::WriteInt32(9, this->export_id(), output);
  2349. }
  2350. // bool is_leaved = 10;
  2351. if (this->is_leaved() != 0) {
  2352. ::google::protobuf::internal::WireFormatLite::WriteBool(10, this->is_leaved(), output);
  2353. }
  2354. if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
  2355. ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
  2356. (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output);
  2357. }
  2358. // @@protoc_insertion_point(serialize_end:pick_table)
  2359. }
  2360. ::google::protobuf::uint8* pick_table::InternalSerializeWithCachedSizesToArray(
  2361. bool deterministic, ::google::protobuf::uint8* target) const {
  2362. (void)deterministic; // Unused
  2363. // @@protoc_insertion_point(serialize_to_array_start:pick_table)
  2364. ::google::protobuf::uint32 cached_has_bits = 0;
  2365. (void) cached_has_bits;
  2366. // .table_statu statu = 1;
  2367. if (this->has_statu()) {
  2368. target = ::google::protobuf::internal::WireFormatLite::
  2369. InternalWriteMessageToArray(
  2370. 1, this->_internal_statu(), deterministic, target);
  2371. }
  2372. // int32 queue_id = 2;
  2373. if (this->queue_id() != 0) {
  2374. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(2, this->queue_id(), target);
  2375. }
  2376. // string car_number = 3;
  2377. if (this->car_number().size() > 0) {
  2378. ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
  2379. this->car_number().data(), static_cast<int>(this->car_number().length()),
  2380. ::google::protobuf::internal::WireFormatLite::SERIALIZE,
  2381. "pick_table.car_number");
  2382. target =
  2383. ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
  2384. 3, this->car_number(), target);
  2385. }
  2386. // int32 unit_id = 4;
  2387. if (this->unit_id() != 0) {
  2388. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(4, this->unit_id(), target);
  2389. }
  2390. // int32 terminal_id = 5;
  2391. if (this->terminal_id() != 0) {
  2392. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(5, this->terminal_id(), target);
  2393. }
  2394. // string primary_key = 6;
  2395. if (this->primary_key().size() > 0) {
  2396. ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
  2397. this->primary_key().data(), static_cast<int>(this->primary_key().length()),
  2398. ::google::protobuf::internal::WireFormatLite::SERIALIZE,
  2399. "pick_table.primary_key");
  2400. target =
  2401. ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
  2402. 6, this->primary_key(), target);
  2403. }
  2404. // .parkspace_info actually_space_info = 7;
  2405. if (this->has_actually_space_info()) {
  2406. target = ::google::protobuf::internal::WireFormatLite::
  2407. InternalWriteMessageToArray(
  2408. 7, this->_internal_actually_space_info(), deterministic, target);
  2409. }
  2410. // .measure_info actually_measure_info = 8;
  2411. if (this->has_actually_measure_info()) {
  2412. target = ::google::protobuf::internal::WireFormatLite::
  2413. InternalWriteMessageToArray(
  2414. 8, this->_internal_actually_measure_info(), deterministic, target);
  2415. }
  2416. // int32 export_id = 9;
  2417. if (this->export_id() != 0) {
  2418. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(9, this->export_id(), target);
  2419. }
  2420. // bool is_leaved = 10;
  2421. if (this->is_leaved() != 0) {
  2422. target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(10, this->is_leaved(), target);
  2423. }
  2424. if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
  2425. target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
  2426. (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target);
  2427. }
  2428. // @@protoc_insertion_point(serialize_to_array_end:pick_table)
  2429. return target;
  2430. }
  2431. size_t pick_table::ByteSizeLong() const {
  2432. // @@protoc_insertion_point(message_byte_size_start:pick_table)
  2433. size_t total_size = 0;
  2434. if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
  2435. total_size +=
  2436. ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
  2437. (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()));
  2438. }
  2439. // string car_number = 3;
  2440. if (this->car_number().size() > 0) {
  2441. total_size += 1 +
  2442. ::google::protobuf::internal::WireFormatLite::StringSize(
  2443. this->car_number());
  2444. }
  2445. // string primary_key = 6;
  2446. if (this->primary_key().size() > 0) {
  2447. total_size += 1 +
  2448. ::google::protobuf::internal::WireFormatLite::StringSize(
  2449. this->primary_key());
  2450. }
  2451. // .table_statu statu = 1;
  2452. if (this->has_statu()) {
  2453. total_size += 1 +
  2454. ::google::protobuf::internal::WireFormatLite::MessageSize(
  2455. *statu_);
  2456. }
  2457. // .parkspace_info actually_space_info = 7;
  2458. if (this->has_actually_space_info()) {
  2459. total_size += 1 +
  2460. ::google::protobuf::internal::WireFormatLite::MessageSize(
  2461. *actually_space_info_);
  2462. }
  2463. // .measure_info actually_measure_info = 8;
  2464. if (this->has_actually_measure_info()) {
  2465. total_size += 1 +
  2466. ::google::protobuf::internal::WireFormatLite::MessageSize(
  2467. *actually_measure_info_);
  2468. }
  2469. // int32 queue_id = 2;
  2470. if (this->queue_id() != 0) {
  2471. total_size += 1 +
  2472. ::google::protobuf::internal::WireFormatLite::Int32Size(
  2473. this->queue_id());
  2474. }
  2475. // int32 unit_id = 4;
  2476. if (this->unit_id() != 0) {
  2477. total_size += 1 +
  2478. ::google::protobuf::internal::WireFormatLite::Int32Size(
  2479. this->unit_id());
  2480. }
  2481. // int32 terminal_id = 5;
  2482. if (this->terminal_id() != 0) {
  2483. total_size += 1 +
  2484. ::google::protobuf::internal::WireFormatLite::Int32Size(
  2485. this->terminal_id());
  2486. }
  2487. // int32 export_id = 9;
  2488. if (this->export_id() != 0) {
  2489. total_size += 1 +
  2490. ::google::protobuf::internal::WireFormatLite::Int32Size(
  2491. this->export_id());
  2492. }
  2493. // bool is_leaved = 10;
  2494. if (this->is_leaved() != 0) {
  2495. total_size += 1 + 1;
  2496. }
  2497. int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
  2498. SetCachedSize(cached_size);
  2499. return total_size;
  2500. }
  2501. void pick_table::MergeFrom(const ::google::protobuf::Message& from) {
  2502. // @@protoc_insertion_point(generalized_merge_from_start:pick_table)
  2503. GOOGLE_DCHECK_NE(&from, this);
  2504. const pick_table* source =
  2505. ::google::protobuf::internal::DynamicCastToGenerated<const pick_table>(
  2506. &from);
  2507. if (source == NULL) {
  2508. // @@protoc_insertion_point(generalized_merge_from_cast_fail:pick_table)
  2509. ::google::protobuf::internal::ReflectionOps::Merge(from, this);
  2510. } else {
  2511. // @@protoc_insertion_point(generalized_merge_from_cast_success:pick_table)
  2512. MergeFrom(*source);
  2513. }
  2514. }
  2515. void pick_table::MergeFrom(const pick_table& from) {
  2516. // @@protoc_insertion_point(class_specific_merge_from_start:pick_table)
  2517. GOOGLE_DCHECK_NE(&from, this);
  2518. _internal_metadata_.MergeFrom(from._internal_metadata_);
  2519. ::google::protobuf::uint32 cached_has_bits = 0;
  2520. (void) cached_has_bits;
  2521. if (from.car_number().size() > 0) {
  2522. car_number_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.car_number_);
  2523. }
  2524. if (from.primary_key().size() > 0) {
  2525. primary_key_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.primary_key_);
  2526. }
  2527. if (from.has_statu()) {
  2528. mutable_statu()->::table_statu::MergeFrom(from.statu());
  2529. }
  2530. if (from.has_actually_space_info()) {
  2531. mutable_actually_space_info()->::parkspace_info::MergeFrom(from.actually_space_info());
  2532. }
  2533. if (from.has_actually_measure_info()) {
  2534. mutable_actually_measure_info()->::measure_info::MergeFrom(from.actually_measure_info());
  2535. }
  2536. if (from.queue_id() != 0) {
  2537. set_queue_id(from.queue_id());
  2538. }
  2539. if (from.unit_id() != 0) {
  2540. set_unit_id(from.unit_id());
  2541. }
  2542. if (from.terminal_id() != 0) {
  2543. set_terminal_id(from.terminal_id());
  2544. }
  2545. if (from.export_id() != 0) {
  2546. set_export_id(from.export_id());
  2547. }
  2548. if (from.is_leaved() != 0) {
  2549. set_is_leaved(from.is_leaved());
  2550. }
  2551. }
  2552. void pick_table::CopyFrom(const ::google::protobuf::Message& from) {
  2553. // @@protoc_insertion_point(generalized_copy_from_start:pick_table)
  2554. if (&from == this) return;
  2555. Clear();
  2556. MergeFrom(from);
  2557. }
  2558. void pick_table::CopyFrom(const pick_table& from) {
  2559. // @@protoc_insertion_point(class_specific_copy_from_start:pick_table)
  2560. if (&from == this) return;
  2561. Clear();
  2562. MergeFrom(from);
  2563. }
  2564. bool pick_table::IsInitialized() const {
  2565. return true;
  2566. }
  2567. void pick_table::Swap(pick_table* other) {
  2568. if (other == this) return;
  2569. InternalSwap(other);
  2570. }
  2571. void pick_table::InternalSwap(pick_table* other) {
  2572. using std::swap;
  2573. car_number_.Swap(&other->car_number_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  2574. GetArenaNoVirtual());
  2575. primary_key_.Swap(&other->primary_key_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  2576. GetArenaNoVirtual());
  2577. swap(statu_, other->statu_);
  2578. swap(actually_space_info_, other->actually_space_info_);
  2579. swap(actually_measure_info_, other->actually_measure_info_);
  2580. swap(queue_id_, other->queue_id_);
  2581. swap(unit_id_, other->unit_id_);
  2582. swap(terminal_id_, other->terminal_id_);
  2583. swap(export_id_, other->export_id_);
  2584. swap(is_leaved_, other->is_leaved_);
  2585. _internal_metadata_.Swap(&other->_internal_metadata_);
  2586. }
  2587. ::google::protobuf::Metadata pick_table::GetMetadata() const {
  2588. protobuf_message_2eproto::protobuf_AssignDescriptorsOnce();
  2589. return ::protobuf_message_2eproto::file_level_metadata[kIndexInFileMessages];
  2590. }
  2591. // ===================================================================
  2592. void out_mcpu_statu::InitAsDefaultInstance() {
  2593. }
  2594. #if !defined(_MSC_VER) || _MSC_VER >= 1900
  2595. const int out_mcpu_statu::kDoorStatuFieldNumber;
  2596. const int out_mcpu_statu::kOutsideSafetyFieldNumber;
  2597. #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
  2598. out_mcpu_statu::out_mcpu_statu()
  2599. : ::google::protobuf::Message(), _internal_metadata_(NULL) {
  2600. ::google::protobuf::internal::InitSCC(
  2601. &protobuf_message_2eproto::scc_info_out_mcpu_statu.base);
  2602. SharedCtor();
  2603. // @@protoc_insertion_point(constructor:out_mcpu_statu)
  2604. }
  2605. out_mcpu_statu::out_mcpu_statu(const out_mcpu_statu& from)
  2606. : ::google::protobuf::Message(),
  2607. _internal_metadata_(NULL) {
  2608. _internal_metadata_.MergeFrom(from._internal_metadata_);
  2609. ::memcpy(&door_statu_, &from.door_statu_,
  2610. static_cast<size_t>(reinterpret_cast<char*>(&outside_safety_) -
  2611. reinterpret_cast<char*>(&door_statu_)) + sizeof(outside_safety_));
  2612. // @@protoc_insertion_point(copy_constructor:out_mcpu_statu)
  2613. }
  2614. void out_mcpu_statu::SharedCtor() {
  2615. ::memset(&door_statu_, 0, static_cast<size_t>(
  2616. reinterpret_cast<char*>(&outside_safety_) -
  2617. reinterpret_cast<char*>(&door_statu_)) + sizeof(outside_safety_));
  2618. }
  2619. out_mcpu_statu::~out_mcpu_statu() {
  2620. // @@protoc_insertion_point(destructor:out_mcpu_statu)
  2621. SharedDtor();
  2622. }
  2623. void out_mcpu_statu::SharedDtor() {
  2624. }
  2625. void out_mcpu_statu::SetCachedSize(int size) const {
  2626. _cached_size_.Set(size);
  2627. }
  2628. const ::google::protobuf::Descriptor* out_mcpu_statu::descriptor() {
  2629. ::protobuf_message_2eproto::protobuf_AssignDescriptorsOnce();
  2630. return ::protobuf_message_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
  2631. }
  2632. const out_mcpu_statu& out_mcpu_statu::default_instance() {
  2633. ::google::protobuf::internal::InitSCC(&protobuf_message_2eproto::scc_info_out_mcpu_statu.base);
  2634. return *internal_default_instance();
  2635. }
  2636. void out_mcpu_statu::Clear() {
  2637. // @@protoc_insertion_point(message_clear_start:out_mcpu_statu)
  2638. ::google::protobuf::uint32 cached_has_bits = 0;
  2639. // Prevent compiler warnings about cached_has_bits being unused
  2640. (void) cached_has_bits;
  2641. ::memset(&door_statu_, 0, static_cast<size_t>(
  2642. reinterpret_cast<char*>(&outside_safety_) -
  2643. reinterpret_cast<char*>(&door_statu_)) + sizeof(outside_safety_));
  2644. _internal_metadata_.Clear();
  2645. }
  2646. bool out_mcpu_statu::MergePartialFromCodedStream(
  2647. ::google::protobuf::io::CodedInputStream* input) {
  2648. #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
  2649. ::google::protobuf::uint32 tag;
  2650. // @@protoc_insertion_point(parse_start:out_mcpu_statu)
  2651. for (;;) {
  2652. ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
  2653. tag = p.first;
  2654. if (!p.second) goto handle_unusual;
  2655. switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
  2656. // int32 door_statu = 1;
  2657. case 1: {
  2658. if (static_cast< ::google::protobuf::uint8>(tag) ==
  2659. static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) {
  2660. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  2661. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  2662. input, &door_statu_)));
  2663. } else {
  2664. goto handle_unusual;
  2665. }
  2666. break;
  2667. }
  2668. // int32 outside_safety = 2;
  2669. case 2: {
  2670. if (static_cast< ::google::protobuf::uint8>(tag) ==
  2671. static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) {
  2672. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  2673. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  2674. input, &outside_safety_)));
  2675. } else {
  2676. goto handle_unusual;
  2677. }
  2678. break;
  2679. }
  2680. default: {
  2681. handle_unusual:
  2682. if (tag == 0) {
  2683. goto success;
  2684. }
  2685. DO_(::google::protobuf::internal::WireFormat::SkipField(
  2686. input, tag, _internal_metadata_.mutable_unknown_fields()));
  2687. break;
  2688. }
  2689. }
  2690. }
  2691. success:
  2692. // @@protoc_insertion_point(parse_success:out_mcpu_statu)
  2693. return true;
  2694. failure:
  2695. // @@protoc_insertion_point(parse_failure:out_mcpu_statu)
  2696. return false;
  2697. #undef DO_
  2698. }
  2699. void out_mcpu_statu::SerializeWithCachedSizes(
  2700. ::google::protobuf::io::CodedOutputStream* output) const {
  2701. // @@protoc_insertion_point(serialize_start:out_mcpu_statu)
  2702. ::google::protobuf::uint32 cached_has_bits = 0;
  2703. (void) cached_has_bits;
  2704. // int32 door_statu = 1;
  2705. if (this->door_statu() != 0) {
  2706. ::google::protobuf::internal::WireFormatLite::WriteInt32(1, this->door_statu(), output);
  2707. }
  2708. // int32 outside_safety = 2;
  2709. if (this->outside_safety() != 0) {
  2710. ::google::protobuf::internal::WireFormatLite::WriteInt32(2, this->outside_safety(), output);
  2711. }
  2712. if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
  2713. ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
  2714. (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output);
  2715. }
  2716. // @@protoc_insertion_point(serialize_end:out_mcpu_statu)
  2717. }
  2718. ::google::protobuf::uint8* out_mcpu_statu::InternalSerializeWithCachedSizesToArray(
  2719. bool deterministic, ::google::protobuf::uint8* target) const {
  2720. (void)deterministic; // Unused
  2721. // @@protoc_insertion_point(serialize_to_array_start:out_mcpu_statu)
  2722. ::google::protobuf::uint32 cached_has_bits = 0;
  2723. (void) cached_has_bits;
  2724. // int32 door_statu = 1;
  2725. if (this->door_statu() != 0) {
  2726. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(1, this->door_statu(), target);
  2727. }
  2728. // int32 outside_safety = 2;
  2729. if (this->outside_safety() != 0) {
  2730. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(2, this->outside_safety(), target);
  2731. }
  2732. if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
  2733. target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
  2734. (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target);
  2735. }
  2736. // @@protoc_insertion_point(serialize_to_array_end:out_mcpu_statu)
  2737. return target;
  2738. }
  2739. size_t out_mcpu_statu::ByteSizeLong() const {
  2740. // @@protoc_insertion_point(message_byte_size_start:out_mcpu_statu)
  2741. size_t total_size = 0;
  2742. if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
  2743. total_size +=
  2744. ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
  2745. (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()));
  2746. }
  2747. // int32 door_statu = 1;
  2748. if (this->door_statu() != 0) {
  2749. total_size += 1 +
  2750. ::google::protobuf::internal::WireFormatLite::Int32Size(
  2751. this->door_statu());
  2752. }
  2753. // int32 outside_safety = 2;
  2754. if (this->outside_safety() != 0) {
  2755. total_size += 1 +
  2756. ::google::protobuf::internal::WireFormatLite::Int32Size(
  2757. this->outside_safety());
  2758. }
  2759. int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
  2760. SetCachedSize(cached_size);
  2761. return total_size;
  2762. }
  2763. void out_mcpu_statu::MergeFrom(const ::google::protobuf::Message& from) {
  2764. // @@protoc_insertion_point(generalized_merge_from_start:out_mcpu_statu)
  2765. GOOGLE_DCHECK_NE(&from, this);
  2766. const out_mcpu_statu* source =
  2767. ::google::protobuf::internal::DynamicCastToGenerated<const out_mcpu_statu>(
  2768. &from);
  2769. if (source == NULL) {
  2770. // @@protoc_insertion_point(generalized_merge_from_cast_fail:out_mcpu_statu)
  2771. ::google::protobuf::internal::ReflectionOps::Merge(from, this);
  2772. } else {
  2773. // @@protoc_insertion_point(generalized_merge_from_cast_success:out_mcpu_statu)
  2774. MergeFrom(*source);
  2775. }
  2776. }
  2777. void out_mcpu_statu::MergeFrom(const out_mcpu_statu& from) {
  2778. // @@protoc_insertion_point(class_specific_merge_from_start:out_mcpu_statu)
  2779. GOOGLE_DCHECK_NE(&from, this);
  2780. _internal_metadata_.MergeFrom(from._internal_metadata_);
  2781. ::google::protobuf::uint32 cached_has_bits = 0;
  2782. (void) cached_has_bits;
  2783. if (from.door_statu() != 0) {
  2784. set_door_statu(from.door_statu());
  2785. }
  2786. if (from.outside_safety() != 0) {
  2787. set_outside_safety(from.outside_safety());
  2788. }
  2789. }
  2790. void out_mcpu_statu::CopyFrom(const ::google::protobuf::Message& from) {
  2791. // @@protoc_insertion_point(generalized_copy_from_start:out_mcpu_statu)
  2792. if (&from == this) return;
  2793. Clear();
  2794. MergeFrom(from);
  2795. }
  2796. void out_mcpu_statu::CopyFrom(const out_mcpu_statu& from) {
  2797. // @@protoc_insertion_point(class_specific_copy_from_start:out_mcpu_statu)
  2798. if (&from == this) return;
  2799. Clear();
  2800. MergeFrom(from);
  2801. }
  2802. bool out_mcpu_statu::IsInitialized() const {
  2803. return true;
  2804. }
  2805. void out_mcpu_statu::Swap(out_mcpu_statu* other) {
  2806. if (other == this) return;
  2807. InternalSwap(other);
  2808. }
  2809. void out_mcpu_statu::InternalSwap(out_mcpu_statu* other) {
  2810. using std::swap;
  2811. swap(door_statu_, other->door_statu_);
  2812. swap(outside_safety_, other->outside_safety_);
  2813. _internal_metadata_.Swap(&other->_internal_metadata_);
  2814. }
  2815. ::google::protobuf::Metadata out_mcpu_statu::GetMetadata() const {
  2816. protobuf_message_2eproto::protobuf_AssignDescriptorsOnce();
  2817. return ::protobuf_message_2eproto::file_level_metadata[kIndexInFileMessages];
  2818. }
  2819. // ===================================================================
  2820. void in_mcpu_statu::InitAsDefaultInstance() {
  2821. }
  2822. #if !defined(_MSC_VER) || _MSC_VER >= 1900
  2823. const int in_mcpu_statu::kDoorStatuFieldNumber;
  2824. const int in_mcpu_statu::kBackIoFieldNumber;
  2825. const int in_mcpu_statu::kIsOccupyFieldNumber;
  2826. const int in_mcpu_statu::kHeighthFieldNumber;
  2827. #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
  2828. in_mcpu_statu::in_mcpu_statu()
  2829. : ::google::protobuf::Message(), _internal_metadata_(NULL) {
  2830. ::google::protobuf::internal::InitSCC(
  2831. &protobuf_message_2eproto::scc_info_in_mcpu_statu.base);
  2832. SharedCtor();
  2833. // @@protoc_insertion_point(constructor:in_mcpu_statu)
  2834. }
  2835. in_mcpu_statu::in_mcpu_statu(const in_mcpu_statu& from)
  2836. : ::google::protobuf::Message(),
  2837. _internal_metadata_(NULL) {
  2838. _internal_metadata_.MergeFrom(from._internal_metadata_);
  2839. ::memcpy(&door_statu_, &from.door_statu_,
  2840. static_cast<size_t>(reinterpret_cast<char*>(&heighth_) -
  2841. reinterpret_cast<char*>(&door_statu_)) + sizeof(heighth_));
  2842. // @@protoc_insertion_point(copy_constructor:in_mcpu_statu)
  2843. }
  2844. void in_mcpu_statu::SharedCtor() {
  2845. ::memset(&door_statu_, 0, static_cast<size_t>(
  2846. reinterpret_cast<char*>(&heighth_) -
  2847. reinterpret_cast<char*>(&door_statu_)) + sizeof(heighth_));
  2848. }
  2849. in_mcpu_statu::~in_mcpu_statu() {
  2850. // @@protoc_insertion_point(destructor:in_mcpu_statu)
  2851. SharedDtor();
  2852. }
  2853. void in_mcpu_statu::SharedDtor() {
  2854. }
  2855. void in_mcpu_statu::SetCachedSize(int size) const {
  2856. _cached_size_.Set(size);
  2857. }
  2858. const ::google::protobuf::Descriptor* in_mcpu_statu::descriptor() {
  2859. ::protobuf_message_2eproto::protobuf_AssignDescriptorsOnce();
  2860. return ::protobuf_message_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
  2861. }
  2862. const in_mcpu_statu& in_mcpu_statu::default_instance() {
  2863. ::google::protobuf::internal::InitSCC(&protobuf_message_2eproto::scc_info_in_mcpu_statu.base);
  2864. return *internal_default_instance();
  2865. }
  2866. void in_mcpu_statu::Clear() {
  2867. // @@protoc_insertion_point(message_clear_start:in_mcpu_statu)
  2868. ::google::protobuf::uint32 cached_has_bits = 0;
  2869. // Prevent compiler warnings about cached_has_bits being unused
  2870. (void) cached_has_bits;
  2871. ::memset(&door_statu_, 0, static_cast<size_t>(
  2872. reinterpret_cast<char*>(&heighth_) -
  2873. reinterpret_cast<char*>(&door_statu_)) + sizeof(heighth_));
  2874. _internal_metadata_.Clear();
  2875. }
  2876. bool in_mcpu_statu::MergePartialFromCodedStream(
  2877. ::google::protobuf::io::CodedInputStream* input) {
  2878. #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
  2879. ::google::protobuf::uint32 tag;
  2880. // @@protoc_insertion_point(parse_start:in_mcpu_statu)
  2881. for (;;) {
  2882. ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
  2883. tag = p.first;
  2884. if (!p.second) goto handle_unusual;
  2885. switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
  2886. // int32 door_statu = 1;
  2887. case 1: {
  2888. if (static_cast< ::google::protobuf::uint8>(tag) ==
  2889. static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) {
  2890. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  2891. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  2892. input, &door_statu_)));
  2893. } else {
  2894. goto handle_unusual;
  2895. }
  2896. break;
  2897. }
  2898. // int32 back_io = 2;
  2899. case 2: {
  2900. if (static_cast< ::google::protobuf::uint8>(tag) ==
  2901. static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) {
  2902. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  2903. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  2904. input, &back_io_)));
  2905. } else {
  2906. goto handle_unusual;
  2907. }
  2908. break;
  2909. }
  2910. // int32 is_occupy = 3;
  2911. case 3: {
  2912. if (static_cast< ::google::protobuf::uint8>(tag) ==
  2913. static_cast< ::google::protobuf::uint8>(24u /* 24 & 0xFF */)) {
  2914. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  2915. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  2916. input, &is_occupy_)));
  2917. } else {
  2918. goto handle_unusual;
  2919. }
  2920. break;
  2921. }
  2922. // int32 heighth = 4;
  2923. case 4: {
  2924. if (static_cast< ::google::protobuf::uint8>(tag) ==
  2925. static_cast< ::google::protobuf::uint8>(32u /* 32 & 0xFF */)) {
  2926. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  2927. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  2928. input, &heighth_)));
  2929. } else {
  2930. goto handle_unusual;
  2931. }
  2932. break;
  2933. }
  2934. default: {
  2935. handle_unusual:
  2936. if (tag == 0) {
  2937. goto success;
  2938. }
  2939. DO_(::google::protobuf::internal::WireFormat::SkipField(
  2940. input, tag, _internal_metadata_.mutable_unknown_fields()));
  2941. break;
  2942. }
  2943. }
  2944. }
  2945. success:
  2946. // @@protoc_insertion_point(parse_success:in_mcpu_statu)
  2947. return true;
  2948. failure:
  2949. // @@protoc_insertion_point(parse_failure:in_mcpu_statu)
  2950. return false;
  2951. #undef DO_
  2952. }
  2953. void in_mcpu_statu::SerializeWithCachedSizes(
  2954. ::google::protobuf::io::CodedOutputStream* output) const {
  2955. // @@protoc_insertion_point(serialize_start:in_mcpu_statu)
  2956. ::google::protobuf::uint32 cached_has_bits = 0;
  2957. (void) cached_has_bits;
  2958. // int32 door_statu = 1;
  2959. if (this->door_statu() != 0) {
  2960. ::google::protobuf::internal::WireFormatLite::WriteInt32(1, this->door_statu(), output);
  2961. }
  2962. // int32 back_io = 2;
  2963. if (this->back_io() != 0) {
  2964. ::google::protobuf::internal::WireFormatLite::WriteInt32(2, this->back_io(), output);
  2965. }
  2966. // int32 is_occupy = 3;
  2967. if (this->is_occupy() != 0) {
  2968. ::google::protobuf::internal::WireFormatLite::WriteInt32(3, this->is_occupy(), output);
  2969. }
  2970. // int32 heighth = 4;
  2971. if (this->heighth() != 0) {
  2972. ::google::protobuf::internal::WireFormatLite::WriteInt32(4, this->heighth(), output);
  2973. }
  2974. if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
  2975. ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
  2976. (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output);
  2977. }
  2978. // @@protoc_insertion_point(serialize_end:in_mcpu_statu)
  2979. }
  2980. ::google::protobuf::uint8* in_mcpu_statu::InternalSerializeWithCachedSizesToArray(
  2981. bool deterministic, ::google::protobuf::uint8* target) const {
  2982. (void)deterministic; // Unused
  2983. // @@protoc_insertion_point(serialize_to_array_start:in_mcpu_statu)
  2984. ::google::protobuf::uint32 cached_has_bits = 0;
  2985. (void) cached_has_bits;
  2986. // int32 door_statu = 1;
  2987. if (this->door_statu() != 0) {
  2988. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(1, this->door_statu(), target);
  2989. }
  2990. // int32 back_io = 2;
  2991. if (this->back_io() != 0) {
  2992. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(2, this->back_io(), target);
  2993. }
  2994. // int32 is_occupy = 3;
  2995. if (this->is_occupy() != 0) {
  2996. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(3, this->is_occupy(), target);
  2997. }
  2998. // int32 heighth = 4;
  2999. if (this->heighth() != 0) {
  3000. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(4, this->heighth(), target);
  3001. }
  3002. if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
  3003. target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
  3004. (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target);
  3005. }
  3006. // @@protoc_insertion_point(serialize_to_array_end:in_mcpu_statu)
  3007. return target;
  3008. }
  3009. size_t in_mcpu_statu::ByteSizeLong() const {
  3010. // @@protoc_insertion_point(message_byte_size_start:in_mcpu_statu)
  3011. size_t total_size = 0;
  3012. if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
  3013. total_size +=
  3014. ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
  3015. (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()));
  3016. }
  3017. // int32 door_statu = 1;
  3018. if (this->door_statu() != 0) {
  3019. total_size += 1 +
  3020. ::google::protobuf::internal::WireFormatLite::Int32Size(
  3021. this->door_statu());
  3022. }
  3023. // int32 back_io = 2;
  3024. if (this->back_io() != 0) {
  3025. total_size += 1 +
  3026. ::google::protobuf::internal::WireFormatLite::Int32Size(
  3027. this->back_io());
  3028. }
  3029. // int32 is_occupy = 3;
  3030. if (this->is_occupy() != 0) {
  3031. total_size += 1 +
  3032. ::google::protobuf::internal::WireFormatLite::Int32Size(
  3033. this->is_occupy());
  3034. }
  3035. // int32 heighth = 4;
  3036. if (this->heighth() != 0) {
  3037. total_size += 1 +
  3038. ::google::protobuf::internal::WireFormatLite::Int32Size(
  3039. this->heighth());
  3040. }
  3041. int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
  3042. SetCachedSize(cached_size);
  3043. return total_size;
  3044. }
  3045. void in_mcpu_statu::MergeFrom(const ::google::protobuf::Message& from) {
  3046. // @@protoc_insertion_point(generalized_merge_from_start:in_mcpu_statu)
  3047. GOOGLE_DCHECK_NE(&from, this);
  3048. const in_mcpu_statu* source =
  3049. ::google::protobuf::internal::DynamicCastToGenerated<const in_mcpu_statu>(
  3050. &from);
  3051. if (source == NULL) {
  3052. // @@protoc_insertion_point(generalized_merge_from_cast_fail:in_mcpu_statu)
  3053. ::google::protobuf::internal::ReflectionOps::Merge(from, this);
  3054. } else {
  3055. // @@protoc_insertion_point(generalized_merge_from_cast_success:in_mcpu_statu)
  3056. MergeFrom(*source);
  3057. }
  3058. }
  3059. void in_mcpu_statu::MergeFrom(const in_mcpu_statu& from) {
  3060. // @@protoc_insertion_point(class_specific_merge_from_start:in_mcpu_statu)
  3061. GOOGLE_DCHECK_NE(&from, this);
  3062. _internal_metadata_.MergeFrom(from._internal_metadata_);
  3063. ::google::protobuf::uint32 cached_has_bits = 0;
  3064. (void) cached_has_bits;
  3065. if (from.door_statu() != 0) {
  3066. set_door_statu(from.door_statu());
  3067. }
  3068. if (from.back_io() != 0) {
  3069. set_back_io(from.back_io());
  3070. }
  3071. if (from.is_occupy() != 0) {
  3072. set_is_occupy(from.is_occupy());
  3073. }
  3074. if (from.heighth() != 0) {
  3075. set_heighth(from.heighth());
  3076. }
  3077. }
  3078. void in_mcpu_statu::CopyFrom(const ::google::protobuf::Message& from) {
  3079. // @@protoc_insertion_point(generalized_copy_from_start:in_mcpu_statu)
  3080. if (&from == this) return;
  3081. Clear();
  3082. MergeFrom(from);
  3083. }
  3084. void in_mcpu_statu::CopyFrom(const in_mcpu_statu& from) {
  3085. // @@protoc_insertion_point(class_specific_copy_from_start:in_mcpu_statu)
  3086. if (&from == this) return;
  3087. Clear();
  3088. MergeFrom(from);
  3089. }
  3090. bool in_mcpu_statu::IsInitialized() const {
  3091. return true;
  3092. }
  3093. void in_mcpu_statu::Swap(in_mcpu_statu* other) {
  3094. if (other == this) return;
  3095. InternalSwap(other);
  3096. }
  3097. void in_mcpu_statu::InternalSwap(in_mcpu_statu* other) {
  3098. using std::swap;
  3099. swap(door_statu_, other->door_statu_);
  3100. swap(back_io_, other->back_io_);
  3101. swap(is_occupy_, other->is_occupy_);
  3102. swap(heighth_, other->heighth_);
  3103. _internal_metadata_.Swap(&other->_internal_metadata_);
  3104. }
  3105. ::google::protobuf::Metadata in_mcpu_statu::GetMetadata() const {
  3106. protobuf_message_2eproto::protobuf_AssignDescriptorsOnce();
  3107. return ::protobuf_message_2eproto::file_level_metadata[kIndexInFileMessages];
  3108. }
  3109. // ===================================================================
  3110. void measure_statu::InitAsDefaultInstance() {
  3111. ::_measure_statu_default_instance_._instance.get_mutable()->info_ = const_cast< ::measure_info*>(
  3112. ::measure_info::internal_default_instance());
  3113. }
  3114. #if !defined(_MSC_VER) || _MSC_VER >= 1900
  3115. const int measure_statu::kInfoFieldNumber;
  3116. #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
  3117. measure_statu::measure_statu()
  3118. : ::google::protobuf::Message(), _internal_metadata_(NULL) {
  3119. ::google::protobuf::internal::InitSCC(
  3120. &protobuf_message_2eproto::scc_info_measure_statu.base);
  3121. SharedCtor();
  3122. // @@protoc_insertion_point(constructor:measure_statu)
  3123. }
  3124. measure_statu::measure_statu(const measure_statu& from)
  3125. : ::google::protobuf::Message(),
  3126. _internal_metadata_(NULL) {
  3127. _internal_metadata_.MergeFrom(from._internal_metadata_);
  3128. if (from.has_info()) {
  3129. info_ = new ::measure_info(*from.info_);
  3130. } else {
  3131. info_ = NULL;
  3132. }
  3133. // @@protoc_insertion_point(copy_constructor:measure_statu)
  3134. }
  3135. void measure_statu::SharedCtor() {
  3136. info_ = NULL;
  3137. }
  3138. measure_statu::~measure_statu() {
  3139. // @@protoc_insertion_point(destructor:measure_statu)
  3140. SharedDtor();
  3141. }
  3142. void measure_statu::SharedDtor() {
  3143. if (this != internal_default_instance()) delete info_;
  3144. }
  3145. void measure_statu::SetCachedSize(int size) const {
  3146. _cached_size_.Set(size);
  3147. }
  3148. const ::google::protobuf::Descriptor* measure_statu::descriptor() {
  3149. ::protobuf_message_2eproto::protobuf_AssignDescriptorsOnce();
  3150. return ::protobuf_message_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
  3151. }
  3152. const measure_statu& measure_statu::default_instance() {
  3153. ::google::protobuf::internal::InitSCC(&protobuf_message_2eproto::scc_info_measure_statu.base);
  3154. return *internal_default_instance();
  3155. }
  3156. void measure_statu::Clear() {
  3157. // @@protoc_insertion_point(message_clear_start:measure_statu)
  3158. ::google::protobuf::uint32 cached_has_bits = 0;
  3159. // Prevent compiler warnings about cached_has_bits being unused
  3160. (void) cached_has_bits;
  3161. if (GetArenaNoVirtual() == NULL && info_ != NULL) {
  3162. delete info_;
  3163. }
  3164. info_ = NULL;
  3165. _internal_metadata_.Clear();
  3166. }
  3167. bool measure_statu::MergePartialFromCodedStream(
  3168. ::google::protobuf::io::CodedInputStream* input) {
  3169. #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
  3170. ::google::protobuf::uint32 tag;
  3171. // @@protoc_insertion_point(parse_start:measure_statu)
  3172. for (;;) {
  3173. ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
  3174. tag = p.first;
  3175. if (!p.second) goto handle_unusual;
  3176. switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
  3177. // .measure_info info = 1;
  3178. case 1: {
  3179. if (static_cast< ::google::protobuf::uint8>(tag) ==
  3180. static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
  3181. DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
  3182. input, mutable_info()));
  3183. } else {
  3184. goto handle_unusual;
  3185. }
  3186. break;
  3187. }
  3188. default: {
  3189. handle_unusual:
  3190. if (tag == 0) {
  3191. goto success;
  3192. }
  3193. DO_(::google::protobuf::internal::WireFormat::SkipField(
  3194. input, tag, _internal_metadata_.mutable_unknown_fields()));
  3195. break;
  3196. }
  3197. }
  3198. }
  3199. success:
  3200. // @@protoc_insertion_point(parse_success:measure_statu)
  3201. return true;
  3202. failure:
  3203. // @@protoc_insertion_point(parse_failure:measure_statu)
  3204. return false;
  3205. #undef DO_
  3206. }
  3207. void measure_statu::SerializeWithCachedSizes(
  3208. ::google::protobuf::io::CodedOutputStream* output) const {
  3209. // @@protoc_insertion_point(serialize_start:measure_statu)
  3210. ::google::protobuf::uint32 cached_has_bits = 0;
  3211. (void) cached_has_bits;
  3212. // .measure_info info = 1;
  3213. if (this->has_info()) {
  3214. ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
  3215. 1, this->_internal_info(), output);
  3216. }
  3217. if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
  3218. ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
  3219. (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output);
  3220. }
  3221. // @@protoc_insertion_point(serialize_end:measure_statu)
  3222. }
  3223. ::google::protobuf::uint8* measure_statu::InternalSerializeWithCachedSizesToArray(
  3224. bool deterministic, ::google::protobuf::uint8* target) const {
  3225. (void)deterministic; // Unused
  3226. // @@protoc_insertion_point(serialize_to_array_start:measure_statu)
  3227. ::google::protobuf::uint32 cached_has_bits = 0;
  3228. (void) cached_has_bits;
  3229. // .measure_info info = 1;
  3230. if (this->has_info()) {
  3231. target = ::google::protobuf::internal::WireFormatLite::
  3232. InternalWriteMessageToArray(
  3233. 1, this->_internal_info(), deterministic, target);
  3234. }
  3235. if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
  3236. target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
  3237. (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target);
  3238. }
  3239. // @@protoc_insertion_point(serialize_to_array_end:measure_statu)
  3240. return target;
  3241. }
  3242. size_t measure_statu::ByteSizeLong() const {
  3243. // @@protoc_insertion_point(message_byte_size_start:measure_statu)
  3244. size_t total_size = 0;
  3245. if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
  3246. total_size +=
  3247. ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
  3248. (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()));
  3249. }
  3250. // .measure_info info = 1;
  3251. if (this->has_info()) {
  3252. total_size += 1 +
  3253. ::google::protobuf::internal::WireFormatLite::MessageSize(
  3254. *info_);
  3255. }
  3256. int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
  3257. SetCachedSize(cached_size);
  3258. return total_size;
  3259. }
  3260. void measure_statu::MergeFrom(const ::google::protobuf::Message& from) {
  3261. // @@protoc_insertion_point(generalized_merge_from_start:measure_statu)
  3262. GOOGLE_DCHECK_NE(&from, this);
  3263. const measure_statu* source =
  3264. ::google::protobuf::internal::DynamicCastToGenerated<const measure_statu>(
  3265. &from);
  3266. if (source == NULL) {
  3267. // @@protoc_insertion_point(generalized_merge_from_cast_fail:measure_statu)
  3268. ::google::protobuf::internal::ReflectionOps::Merge(from, this);
  3269. } else {
  3270. // @@protoc_insertion_point(generalized_merge_from_cast_success:measure_statu)
  3271. MergeFrom(*source);
  3272. }
  3273. }
  3274. void measure_statu::MergeFrom(const measure_statu& from) {
  3275. // @@protoc_insertion_point(class_specific_merge_from_start:measure_statu)
  3276. GOOGLE_DCHECK_NE(&from, this);
  3277. _internal_metadata_.MergeFrom(from._internal_metadata_);
  3278. ::google::protobuf::uint32 cached_has_bits = 0;
  3279. (void) cached_has_bits;
  3280. if (from.has_info()) {
  3281. mutable_info()->::measure_info::MergeFrom(from.info());
  3282. }
  3283. }
  3284. void measure_statu::CopyFrom(const ::google::protobuf::Message& from) {
  3285. // @@protoc_insertion_point(generalized_copy_from_start:measure_statu)
  3286. if (&from == this) return;
  3287. Clear();
  3288. MergeFrom(from);
  3289. }
  3290. void measure_statu::CopyFrom(const measure_statu& from) {
  3291. // @@protoc_insertion_point(class_specific_copy_from_start:measure_statu)
  3292. if (&from == this) return;
  3293. Clear();
  3294. MergeFrom(from);
  3295. }
  3296. bool measure_statu::IsInitialized() const {
  3297. return true;
  3298. }
  3299. void measure_statu::Swap(measure_statu* other) {
  3300. if (other == this) return;
  3301. InternalSwap(other);
  3302. }
  3303. void measure_statu::InternalSwap(measure_statu* other) {
  3304. using std::swap;
  3305. swap(info_, other->info_);
  3306. _internal_metadata_.Swap(&other->_internal_metadata_);
  3307. }
  3308. ::google::protobuf::Metadata measure_statu::GetMetadata() const {
  3309. protobuf_message_2eproto::protobuf_AssignDescriptorsOnce();
  3310. return ::protobuf_message_2eproto::file_level_metadata[kIndexInFileMessages];
  3311. }
  3312. // ===================================================================
  3313. void dispatch_region_info::InitAsDefaultInstance() {
  3314. }
  3315. #if !defined(_MSC_VER) || _MSC_VER >= 1900
  3316. const int dispatch_region_info::kTerminalIdFieldNumber;
  3317. const int dispatch_region_info::kTurnplateAngleMinFieldNumber;
  3318. const int dispatch_region_info::kTurnplateAngleMaxFieldNumber;
  3319. #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
  3320. dispatch_region_info::dispatch_region_info()
  3321. : ::google::protobuf::Message(), _internal_metadata_(NULL) {
  3322. ::google::protobuf::internal::InitSCC(
  3323. &protobuf_message_2eproto::scc_info_dispatch_region_info.base);
  3324. SharedCtor();
  3325. // @@protoc_insertion_point(constructor:dispatch_region_info)
  3326. }
  3327. dispatch_region_info::dispatch_region_info(const dispatch_region_info& from)
  3328. : ::google::protobuf::Message(),
  3329. _internal_metadata_(NULL) {
  3330. _internal_metadata_.MergeFrom(from._internal_metadata_);
  3331. ::memcpy(&terminal_id_, &from.terminal_id_,
  3332. static_cast<size_t>(reinterpret_cast<char*>(&turnplate_angle_max_) -
  3333. reinterpret_cast<char*>(&terminal_id_)) + sizeof(turnplate_angle_max_));
  3334. // @@protoc_insertion_point(copy_constructor:dispatch_region_info)
  3335. }
  3336. void dispatch_region_info::SharedCtor() {
  3337. ::memset(&terminal_id_, 0, static_cast<size_t>(
  3338. reinterpret_cast<char*>(&turnplate_angle_max_) -
  3339. reinterpret_cast<char*>(&terminal_id_)) + sizeof(turnplate_angle_max_));
  3340. }
  3341. dispatch_region_info::~dispatch_region_info() {
  3342. // @@protoc_insertion_point(destructor:dispatch_region_info)
  3343. SharedDtor();
  3344. }
  3345. void dispatch_region_info::SharedDtor() {
  3346. }
  3347. void dispatch_region_info::SetCachedSize(int size) const {
  3348. _cached_size_.Set(size);
  3349. }
  3350. const ::google::protobuf::Descriptor* dispatch_region_info::descriptor() {
  3351. ::protobuf_message_2eproto::protobuf_AssignDescriptorsOnce();
  3352. return ::protobuf_message_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
  3353. }
  3354. const dispatch_region_info& dispatch_region_info::default_instance() {
  3355. ::google::protobuf::internal::InitSCC(&protobuf_message_2eproto::scc_info_dispatch_region_info.base);
  3356. return *internal_default_instance();
  3357. }
  3358. void dispatch_region_info::Clear() {
  3359. // @@protoc_insertion_point(message_clear_start:dispatch_region_info)
  3360. ::google::protobuf::uint32 cached_has_bits = 0;
  3361. // Prevent compiler warnings about cached_has_bits being unused
  3362. (void) cached_has_bits;
  3363. ::memset(&terminal_id_, 0, static_cast<size_t>(
  3364. reinterpret_cast<char*>(&turnplate_angle_max_) -
  3365. reinterpret_cast<char*>(&terminal_id_)) + sizeof(turnplate_angle_max_));
  3366. _internal_metadata_.Clear();
  3367. }
  3368. bool dispatch_region_info::MergePartialFromCodedStream(
  3369. ::google::protobuf::io::CodedInputStream* input) {
  3370. #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
  3371. ::google::protobuf::uint32 tag;
  3372. // @@protoc_insertion_point(parse_start:dispatch_region_info)
  3373. for (;;) {
  3374. ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
  3375. tag = p.first;
  3376. if (!p.second) goto handle_unusual;
  3377. switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
  3378. // int32 terminal_id = 1;
  3379. case 1: {
  3380. if (static_cast< ::google::protobuf::uint8>(tag) ==
  3381. static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) {
  3382. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  3383. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  3384. input, &terminal_id_)));
  3385. } else {
  3386. goto handle_unusual;
  3387. }
  3388. break;
  3389. }
  3390. // float turnplate_angle_min = 2;
  3391. case 2: {
  3392. if (static_cast< ::google::protobuf::uint8>(tag) ==
  3393. static_cast< ::google::protobuf::uint8>(21u /* 21 & 0xFF */)) {
  3394. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  3395. float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
  3396. input, &turnplate_angle_min_)));
  3397. } else {
  3398. goto handle_unusual;
  3399. }
  3400. break;
  3401. }
  3402. // float turnplate_angle_max = 3;
  3403. case 3: {
  3404. if (static_cast< ::google::protobuf::uint8>(tag) ==
  3405. static_cast< ::google::protobuf::uint8>(29u /* 29 & 0xFF */)) {
  3406. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  3407. float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
  3408. input, &turnplate_angle_max_)));
  3409. } else {
  3410. goto handle_unusual;
  3411. }
  3412. break;
  3413. }
  3414. default: {
  3415. handle_unusual:
  3416. if (tag == 0) {
  3417. goto success;
  3418. }
  3419. DO_(::google::protobuf::internal::WireFormat::SkipField(
  3420. input, tag, _internal_metadata_.mutable_unknown_fields()));
  3421. break;
  3422. }
  3423. }
  3424. }
  3425. success:
  3426. // @@protoc_insertion_point(parse_success:dispatch_region_info)
  3427. return true;
  3428. failure:
  3429. // @@protoc_insertion_point(parse_failure:dispatch_region_info)
  3430. return false;
  3431. #undef DO_
  3432. }
  3433. void dispatch_region_info::SerializeWithCachedSizes(
  3434. ::google::protobuf::io::CodedOutputStream* output) const {
  3435. // @@protoc_insertion_point(serialize_start:dispatch_region_info)
  3436. ::google::protobuf::uint32 cached_has_bits = 0;
  3437. (void) cached_has_bits;
  3438. // int32 terminal_id = 1;
  3439. if (this->terminal_id() != 0) {
  3440. ::google::protobuf::internal::WireFormatLite::WriteInt32(1, this->terminal_id(), output);
  3441. }
  3442. // float turnplate_angle_min = 2;
  3443. if (this->turnplate_angle_min() != 0) {
  3444. ::google::protobuf::internal::WireFormatLite::WriteFloat(2, this->turnplate_angle_min(), output);
  3445. }
  3446. // float turnplate_angle_max = 3;
  3447. if (this->turnplate_angle_max() != 0) {
  3448. ::google::protobuf::internal::WireFormatLite::WriteFloat(3, this->turnplate_angle_max(), output);
  3449. }
  3450. if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
  3451. ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
  3452. (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output);
  3453. }
  3454. // @@protoc_insertion_point(serialize_end:dispatch_region_info)
  3455. }
  3456. ::google::protobuf::uint8* dispatch_region_info::InternalSerializeWithCachedSizesToArray(
  3457. bool deterministic, ::google::protobuf::uint8* target) const {
  3458. (void)deterministic; // Unused
  3459. // @@protoc_insertion_point(serialize_to_array_start:dispatch_region_info)
  3460. ::google::protobuf::uint32 cached_has_bits = 0;
  3461. (void) cached_has_bits;
  3462. // int32 terminal_id = 1;
  3463. if (this->terminal_id() != 0) {
  3464. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(1, this->terminal_id(), target);
  3465. }
  3466. // float turnplate_angle_min = 2;
  3467. if (this->turnplate_angle_min() != 0) {
  3468. target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(2, this->turnplate_angle_min(), target);
  3469. }
  3470. // float turnplate_angle_max = 3;
  3471. if (this->turnplate_angle_max() != 0) {
  3472. target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(3, this->turnplate_angle_max(), target);
  3473. }
  3474. if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
  3475. target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
  3476. (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target);
  3477. }
  3478. // @@protoc_insertion_point(serialize_to_array_end:dispatch_region_info)
  3479. return target;
  3480. }
  3481. size_t dispatch_region_info::ByteSizeLong() const {
  3482. // @@protoc_insertion_point(message_byte_size_start:dispatch_region_info)
  3483. size_t total_size = 0;
  3484. if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
  3485. total_size +=
  3486. ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
  3487. (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()));
  3488. }
  3489. // int32 terminal_id = 1;
  3490. if (this->terminal_id() != 0) {
  3491. total_size += 1 +
  3492. ::google::protobuf::internal::WireFormatLite::Int32Size(
  3493. this->terminal_id());
  3494. }
  3495. // float turnplate_angle_min = 2;
  3496. if (this->turnplate_angle_min() != 0) {
  3497. total_size += 1 + 4;
  3498. }
  3499. // float turnplate_angle_max = 3;
  3500. if (this->turnplate_angle_max() != 0) {
  3501. total_size += 1 + 4;
  3502. }
  3503. int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
  3504. SetCachedSize(cached_size);
  3505. return total_size;
  3506. }
  3507. void dispatch_region_info::MergeFrom(const ::google::protobuf::Message& from) {
  3508. // @@protoc_insertion_point(generalized_merge_from_start:dispatch_region_info)
  3509. GOOGLE_DCHECK_NE(&from, this);
  3510. const dispatch_region_info* source =
  3511. ::google::protobuf::internal::DynamicCastToGenerated<const dispatch_region_info>(
  3512. &from);
  3513. if (source == NULL) {
  3514. // @@protoc_insertion_point(generalized_merge_from_cast_fail:dispatch_region_info)
  3515. ::google::protobuf::internal::ReflectionOps::Merge(from, this);
  3516. } else {
  3517. // @@protoc_insertion_point(generalized_merge_from_cast_success:dispatch_region_info)
  3518. MergeFrom(*source);
  3519. }
  3520. }
  3521. void dispatch_region_info::MergeFrom(const dispatch_region_info& from) {
  3522. // @@protoc_insertion_point(class_specific_merge_from_start:dispatch_region_info)
  3523. GOOGLE_DCHECK_NE(&from, this);
  3524. _internal_metadata_.MergeFrom(from._internal_metadata_);
  3525. ::google::protobuf::uint32 cached_has_bits = 0;
  3526. (void) cached_has_bits;
  3527. if (from.terminal_id() != 0) {
  3528. set_terminal_id(from.terminal_id());
  3529. }
  3530. if (from.turnplate_angle_min() != 0) {
  3531. set_turnplate_angle_min(from.turnplate_angle_min());
  3532. }
  3533. if (from.turnplate_angle_max() != 0) {
  3534. set_turnplate_angle_max(from.turnplate_angle_max());
  3535. }
  3536. }
  3537. void dispatch_region_info::CopyFrom(const ::google::protobuf::Message& from) {
  3538. // @@protoc_insertion_point(generalized_copy_from_start:dispatch_region_info)
  3539. if (&from == this) return;
  3540. Clear();
  3541. MergeFrom(from);
  3542. }
  3543. void dispatch_region_info::CopyFrom(const dispatch_region_info& from) {
  3544. // @@protoc_insertion_point(class_specific_copy_from_start:dispatch_region_info)
  3545. if (&from == this) return;
  3546. Clear();
  3547. MergeFrom(from);
  3548. }
  3549. bool dispatch_region_info::IsInitialized() const {
  3550. return true;
  3551. }
  3552. void dispatch_region_info::Swap(dispatch_region_info* other) {
  3553. if (other == this) return;
  3554. InternalSwap(other);
  3555. }
  3556. void dispatch_region_info::InternalSwap(dispatch_region_info* other) {
  3557. using std::swap;
  3558. swap(terminal_id_, other->terminal_id_);
  3559. swap(turnplate_angle_min_, other->turnplate_angle_min_);
  3560. swap(turnplate_angle_max_, other->turnplate_angle_max_);
  3561. _internal_metadata_.Swap(&other->_internal_metadata_);
  3562. }
  3563. ::google::protobuf::Metadata dispatch_region_info::GetMetadata() const {
  3564. protobuf_message_2eproto::protobuf_AssignDescriptorsOnce();
  3565. return ::protobuf_message_2eproto::file_level_metadata[kIndexInFileMessages];
  3566. }
  3567. // ===================================================================
  3568. void dispatch_node_statu::InitAsDefaultInstance() {
  3569. ::_dispatch_node_statu_default_instance_._instance.get_mutable()->running_pack_info_ = const_cast< ::park_table*>(
  3570. ::park_table::internal_default_instance());
  3571. ::_dispatch_node_statu_default_instance_._instance.get_mutable()->running_pick_info_ = const_cast< ::pick_table*>(
  3572. ::pick_table::internal_default_instance());
  3573. }
  3574. #if !defined(_MSC_VER) || _MSC_VER >= 1900
  3575. const int dispatch_node_statu::kStatuFieldNumber;
  3576. const int dispatch_node_statu::kIdleStopFloorFieldNumber;
  3577. const int dispatch_node_statu::kRunningPackInfoFieldNumber;
  3578. const int dispatch_node_statu::kRunningPickInfoFieldNumber;
  3579. const int dispatch_node_statu::kUnitIdFieldNumber;
  3580. const int dispatch_node_statu::kPlcHeartbeatFieldNumber;
  3581. const int dispatch_node_statu::kPlcStatusInfoFieldNumber;
  3582. const int dispatch_node_statu::kDispatchRegionInfoVectorFieldNumber;
  3583. #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
  3584. dispatch_node_statu::dispatch_node_statu()
  3585. : ::google::protobuf::Message(), _internal_metadata_(NULL) {
  3586. ::google::protobuf::internal::InitSCC(
  3587. &protobuf_message_2eproto::scc_info_dispatch_node_statu.base);
  3588. SharedCtor();
  3589. // @@protoc_insertion_point(constructor:dispatch_node_statu)
  3590. }
  3591. dispatch_node_statu::dispatch_node_statu(const dispatch_node_statu& from)
  3592. : ::google::protobuf::Message(),
  3593. _internal_metadata_(NULL),
  3594. dispatch_region_info_vector_(from.dispatch_region_info_vector_) {
  3595. _internal_metadata_.MergeFrom(from._internal_metadata_);
  3596. if (from.has_running_pack_info()) {
  3597. running_pack_info_ = new ::park_table(*from.running_pack_info_);
  3598. } else {
  3599. running_pack_info_ = NULL;
  3600. }
  3601. if (from.has_running_pick_info()) {
  3602. running_pick_info_ = new ::pick_table(*from.running_pick_info_);
  3603. } else {
  3604. running_pick_info_ = NULL;
  3605. }
  3606. ::memcpy(&statu_, &from.statu_,
  3607. static_cast<size_t>(reinterpret_cast<char*>(&plc_status_info_) -
  3608. reinterpret_cast<char*>(&statu_)) + sizeof(plc_status_info_));
  3609. // @@protoc_insertion_point(copy_constructor:dispatch_node_statu)
  3610. }
  3611. void dispatch_node_statu::SharedCtor() {
  3612. ::memset(&running_pack_info_, 0, static_cast<size_t>(
  3613. reinterpret_cast<char*>(&plc_status_info_) -
  3614. reinterpret_cast<char*>(&running_pack_info_)) + sizeof(plc_status_info_));
  3615. }
  3616. dispatch_node_statu::~dispatch_node_statu() {
  3617. // @@protoc_insertion_point(destructor:dispatch_node_statu)
  3618. SharedDtor();
  3619. }
  3620. void dispatch_node_statu::SharedDtor() {
  3621. if (this != internal_default_instance()) delete running_pack_info_;
  3622. if (this != internal_default_instance()) delete running_pick_info_;
  3623. }
  3624. void dispatch_node_statu::SetCachedSize(int size) const {
  3625. _cached_size_.Set(size);
  3626. }
  3627. const ::google::protobuf::Descriptor* dispatch_node_statu::descriptor() {
  3628. ::protobuf_message_2eproto::protobuf_AssignDescriptorsOnce();
  3629. return ::protobuf_message_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
  3630. }
  3631. const dispatch_node_statu& dispatch_node_statu::default_instance() {
  3632. ::google::protobuf::internal::InitSCC(&protobuf_message_2eproto::scc_info_dispatch_node_statu.base);
  3633. return *internal_default_instance();
  3634. }
  3635. void dispatch_node_statu::Clear() {
  3636. // @@protoc_insertion_point(message_clear_start:dispatch_node_statu)
  3637. ::google::protobuf::uint32 cached_has_bits = 0;
  3638. // Prevent compiler warnings about cached_has_bits being unused
  3639. (void) cached_has_bits;
  3640. dispatch_region_info_vector_.Clear();
  3641. if (GetArenaNoVirtual() == NULL && running_pack_info_ != NULL) {
  3642. delete running_pack_info_;
  3643. }
  3644. running_pack_info_ = NULL;
  3645. if (GetArenaNoVirtual() == NULL && running_pick_info_ != NULL) {
  3646. delete running_pick_info_;
  3647. }
  3648. running_pick_info_ = NULL;
  3649. ::memset(&statu_, 0, static_cast<size_t>(
  3650. reinterpret_cast<char*>(&plc_status_info_) -
  3651. reinterpret_cast<char*>(&statu_)) + sizeof(plc_status_info_));
  3652. _internal_metadata_.Clear();
  3653. }
  3654. bool dispatch_node_statu::MergePartialFromCodedStream(
  3655. ::google::protobuf::io::CodedInputStream* input) {
  3656. #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
  3657. ::google::protobuf::uint32 tag;
  3658. // @@protoc_insertion_point(parse_start:dispatch_node_statu)
  3659. for (;;) {
  3660. ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
  3661. tag = p.first;
  3662. if (!p.second) goto handle_unusual;
  3663. switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
  3664. // .CarrierStatu statu = 1;
  3665. case 1: {
  3666. if (static_cast< ::google::protobuf::uint8>(tag) ==
  3667. static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) {
  3668. int value;
  3669. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  3670. int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
  3671. input, &value)));
  3672. set_statu(static_cast< ::CarrierStatu >(value));
  3673. } else {
  3674. goto handle_unusual;
  3675. }
  3676. break;
  3677. }
  3678. // int32 idle_stop_floor = 2;
  3679. case 2: {
  3680. if (static_cast< ::google::protobuf::uint8>(tag) ==
  3681. static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) {
  3682. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  3683. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  3684. input, &idle_stop_floor_)));
  3685. } else {
  3686. goto handle_unusual;
  3687. }
  3688. break;
  3689. }
  3690. // .park_table running_pack_info = 3;
  3691. case 3: {
  3692. if (static_cast< ::google::protobuf::uint8>(tag) ==
  3693. static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) {
  3694. DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
  3695. input, mutable_running_pack_info()));
  3696. } else {
  3697. goto handle_unusual;
  3698. }
  3699. break;
  3700. }
  3701. // .pick_table running_pick_info = 4;
  3702. case 4: {
  3703. if (static_cast< ::google::protobuf::uint8>(tag) ==
  3704. static_cast< ::google::protobuf::uint8>(34u /* 34 & 0xFF */)) {
  3705. DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
  3706. input, mutable_running_pick_info()));
  3707. } else {
  3708. goto handle_unusual;
  3709. }
  3710. break;
  3711. }
  3712. // int32 unit_id = 5;
  3713. case 5: {
  3714. if (static_cast< ::google::protobuf::uint8>(tag) ==
  3715. static_cast< ::google::protobuf::uint8>(40u /* 40 & 0xFF */)) {
  3716. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  3717. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  3718. input, &unit_id_)));
  3719. } else {
  3720. goto handle_unusual;
  3721. }
  3722. break;
  3723. }
  3724. // int32 plc_heartbeat = 6;
  3725. case 6: {
  3726. if (static_cast< ::google::protobuf::uint8>(tag) ==
  3727. static_cast< ::google::protobuf::uint8>(48u /* 48 & 0xFF */)) {
  3728. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  3729. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  3730. input, &plc_heartbeat_)));
  3731. } else {
  3732. goto handle_unusual;
  3733. }
  3734. break;
  3735. }
  3736. // int32 plc_status_info = 7;
  3737. case 7: {
  3738. if (static_cast< ::google::protobuf::uint8>(tag) ==
  3739. static_cast< ::google::protobuf::uint8>(56u /* 56 & 0xFF */)) {
  3740. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  3741. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  3742. input, &plc_status_info_)));
  3743. } else {
  3744. goto handle_unusual;
  3745. }
  3746. break;
  3747. }
  3748. // repeated .dispatch_region_info dispatch_region_info_vector = 8;
  3749. case 8: {
  3750. if (static_cast< ::google::protobuf::uint8>(tag) ==
  3751. static_cast< ::google::protobuf::uint8>(66u /* 66 & 0xFF */)) {
  3752. DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
  3753. input, add_dispatch_region_info_vector()));
  3754. } else {
  3755. goto handle_unusual;
  3756. }
  3757. break;
  3758. }
  3759. default: {
  3760. handle_unusual:
  3761. if (tag == 0) {
  3762. goto success;
  3763. }
  3764. DO_(::google::protobuf::internal::WireFormat::SkipField(
  3765. input, tag, _internal_metadata_.mutable_unknown_fields()));
  3766. break;
  3767. }
  3768. }
  3769. }
  3770. success:
  3771. // @@protoc_insertion_point(parse_success:dispatch_node_statu)
  3772. return true;
  3773. failure:
  3774. // @@protoc_insertion_point(parse_failure:dispatch_node_statu)
  3775. return false;
  3776. #undef DO_
  3777. }
  3778. void dispatch_node_statu::SerializeWithCachedSizes(
  3779. ::google::protobuf::io::CodedOutputStream* output) const {
  3780. // @@protoc_insertion_point(serialize_start:dispatch_node_statu)
  3781. ::google::protobuf::uint32 cached_has_bits = 0;
  3782. (void) cached_has_bits;
  3783. // .CarrierStatu statu = 1;
  3784. if (this->statu() != 0) {
  3785. ::google::protobuf::internal::WireFormatLite::WriteEnum(
  3786. 1, this->statu(), output);
  3787. }
  3788. // int32 idle_stop_floor = 2;
  3789. if (this->idle_stop_floor() != 0) {
  3790. ::google::protobuf::internal::WireFormatLite::WriteInt32(2, this->idle_stop_floor(), output);
  3791. }
  3792. // .park_table running_pack_info = 3;
  3793. if (this->has_running_pack_info()) {
  3794. ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
  3795. 3, this->_internal_running_pack_info(), output);
  3796. }
  3797. // .pick_table running_pick_info = 4;
  3798. if (this->has_running_pick_info()) {
  3799. ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
  3800. 4, this->_internal_running_pick_info(), output);
  3801. }
  3802. // int32 unit_id = 5;
  3803. if (this->unit_id() != 0) {
  3804. ::google::protobuf::internal::WireFormatLite::WriteInt32(5, this->unit_id(), output);
  3805. }
  3806. // int32 plc_heartbeat = 6;
  3807. if (this->plc_heartbeat() != 0) {
  3808. ::google::protobuf::internal::WireFormatLite::WriteInt32(6, this->plc_heartbeat(), output);
  3809. }
  3810. // int32 plc_status_info = 7;
  3811. if (this->plc_status_info() != 0) {
  3812. ::google::protobuf::internal::WireFormatLite::WriteInt32(7, this->plc_status_info(), output);
  3813. }
  3814. // repeated .dispatch_region_info dispatch_region_info_vector = 8;
  3815. for (unsigned int i = 0,
  3816. n = static_cast<unsigned int>(this->dispatch_region_info_vector_size()); i < n; i++) {
  3817. ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
  3818. 8,
  3819. this->dispatch_region_info_vector(static_cast<int>(i)),
  3820. output);
  3821. }
  3822. if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
  3823. ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
  3824. (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output);
  3825. }
  3826. // @@protoc_insertion_point(serialize_end:dispatch_node_statu)
  3827. }
  3828. ::google::protobuf::uint8* dispatch_node_statu::InternalSerializeWithCachedSizesToArray(
  3829. bool deterministic, ::google::protobuf::uint8* target) const {
  3830. (void)deterministic; // Unused
  3831. // @@protoc_insertion_point(serialize_to_array_start:dispatch_node_statu)
  3832. ::google::protobuf::uint32 cached_has_bits = 0;
  3833. (void) cached_has_bits;
  3834. // .CarrierStatu statu = 1;
  3835. if (this->statu() != 0) {
  3836. target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
  3837. 1, this->statu(), target);
  3838. }
  3839. // int32 idle_stop_floor = 2;
  3840. if (this->idle_stop_floor() != 0) {
  3841. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(2, this->idle_stop_floor(), target);
  3842. }
  3843. // .park_table running_pack_info = 3;
  3844. if (this->has_running_pack_info()) {
  3845. target = ::google::protobuf::internal::WireFormatLite::
  3846. InternalWriteMessageToArray(
  3847. 3, this->_internal_running_pack_info(), deterministic, target);
  3848. }
  3849. // .pick_table running_pick_info = 4;
  3850. if (this->has_running_pick_info()) {
  3851. target = ::google::protobuf::internal::WireFormatLite::
  3852. InternalWriteMessageToArray(
  3853. 4, this->_internal_running_pick_info(), deterministic, target);
  3854. }
  3855. // int32 unit_id = 5;
  3856. if (this->unit_id() != 0) {
  3857. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(5, this->unit_id(), target);
  3858. }
  3859. // int32 plc_heartbeat = 6;
  3860. if (this->plc_heartbeat() != 0) {
  3861. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(6, this->plc_heartbeat(), target);
  3862. }
  3863. // int32 plc_status_info = 7;
  3864. if (this->plc_status_info() != 0) {
  3865. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(7, this->plc_status_info(), target);
  3866. }
  3867. // repeated .dispatch_region_info dispatch_region_info_vector = 8;
  3868. for (unsigned int i = 0,
  3869. n = static_cast<unsigned int>(this->dispatch_region_info_vector_size()); i < n; i++) {
  3870. target = ::google::protobuf::internal::WireFormatLite::
  3871. InternalWriteMessageToArray(
  3872. 8, this->dispatch_region_info_vector(static_cast<int>(i)), deterministic, target);
  3873. }
  3874. if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
  3875. target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
  3876. (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target);
  3877. }
  3878. // @@protoc_insertion_point(serialize_to_array_end:dispatch_node_statu)
  3879. return target;
  3880. }
  3881. size_t dispatch_node_statu::ByteSizeLong() const {
  3882. // @@protoc_insertion_point(message_byte_size_start:dispatch_node_statu)
  3883. size_t total_size = 0;
  3884. if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
  3885. total_size +=
  3886. ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
  3887. (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()));
  3888. }
  3889. // repeated .dispatch_region_info dispatch_region_info_vector = 8;
  3890. {
  3891. unsigned int count = static_cast<unsigned int>(this->dispatch_region_info_vector_size());
  3892. total_size += 1UL * count;
  3893. for (unsigned int i = 0; i < count; i++) {
  3894. total_size +=
  3895. ::google::protobuf::internal::WireFormatLite::MessageSize(
  3896. this->dispatch_region_info_vector(static_cast<int>(i)));
  3897. }
  3898. }
  3899. // .park_table running_pack_info = 3;
  3900. if (this->has_running_pack_info()) {
  3901. total_size += 1 +
  3902. ::google::protobuf::internal::WireFormatLite::MessageSize(
  3903. *running_pack_info_);
  3904. }
  3905. // .pick_table running_pick_info = 4;
  3906. if (this->has_running_pick_info()) {
  3907. total_size += 1 +
  3908. ::google::protobuf::internal::WireFormatLite::MessageSize(
  3909. *running_pick_info_);
  3910. }
  3911. // .CarrierStatu statu = 1;
  3912. if (this->statu() != 0) {
  3913. total_size += 1 +
  3914. ::google::protobuf::internal::WireFormatLite::EnumSize(this->statu());
  3915. }
  3916. // int32 idle_stop_floor = 2;
  3917. if (this->idle_stop_floor() != 0) {
  3918. total_size += 1 +
  3919. ::google::protobuf::internal::WireFormatLite::Int32Size(
  3920. this->idle_stop_floor());
  3921. }
  3922. // int32 unit_id = 5;
  3923. if (this->unit_id() != 0) {
  3924. total_size += 1 +
  3925. ::google::protobuf::internal::WireFormatLite::Int32Size(
  3926. this->unit_id());
  3927. }
  3928. // int32 plc_heartbeat = 6;
  3929. if (this->plc_heartbeat() != 0) {
  3930. total_size += 1 +
  3931. ::google::protobuf::internal::WireFormatLite::Int32Size(
  3932. this->plc_heartbeat());
  3933. }
  3934. // int32 plc_status_info = 7;
  3935. if (this->plc_status_info() != 0) {
  3936. total_size += 1 +
  3937. ::google::protobuf::internal::WireFormatLite::Int32Size(
  3938. this->plc_status_info());
  3939. }
  3940. int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
  3941. SetCachedSize(cached_size);
  3942. return total_size;
  3943. }
  3944. void dispatch_node_statu::MergeFrom(const ::google::protobuf::Message& from) {
  3945. // @@protoc_insertion_point(generalized_merge_from_start:dispatch_node_statu)
  3946. GOOGLE_DCHECK_NE(&from, this);
  3947. const dispatch_node_statu* source =
  3948. ::google::protobuf::internal::DynamicCastToGenerated<const dispatch_node_statu>(
  3949. &from);
  3950. if (source == NULL) {
  3951. // @@protoc_insertion_point(generalized_merge_from_cast_fail:dispatch_node_statu)
  3952. ::google::protobuf::internal::ReflectionOps::Merge(from, this);
  3953. } else {
  3954. // @@protoc_insertion_point(generalized_merge_from_cast_success:dispatch_node_statu)
  3955. MergeFrom(*source);
  3956. }
  3957. }
  3958. void dispatch_node_statu::MergeFrom(const dispatch_node_statu& from) {
  3959. // @@protoc_insertion_point(class_specific_merge_from_start:dispatch_node_statu)
  3960. GOOGLE_DCHECK_NE(&from, this);
  3961. _internal_metadata_.MergeFrom(from._internal_metadata_);
  3962. ::google::protobuf::uint32 cached_has_bits = 0;
  3963. (void) cached_has_bits;
  3964. dispatch_region_info_vector_.MergeFrom(from.dispatch_region_info_vector_);
  3965. if (from.has_running_pack_info()) {
  3966. mutable_running_pack_info()->::park_table::MergeFrom(from.running_pack_info());
  3967. }
  3968. if (from.has_running_pick_info()) {
  3969. mutable_running_pick_info()->::pick_table::MergeFrom(from.running_pick_info());
  3970. }
  3971. if (from.statu() != 0) {
  3972. set_statu(from.statu());
  3973. }
  3974. if (from.idle_stop_floor() != 0) {
  3975. set_idle_stop_floor(from.idle_stop_floor());
  3976. }
  3977. if (from.unit_id() != 0) {
  3978. set_unit_id(from.unit_id());
  3979. }
  3980. if (from.plc_heartbeat() != 0) {
  3981. set_plc_heartbeat(from.plc_heartbeat());
  3982. }
  3983. if (from.plc_status_info() != 0) {
  3984. set_plc_status_info(from.plc_status_info());
  3985. }
  3986. }
  3987. void dispatch_node_statu::CopyFrom(const ::google::protobuf::Message& from) {
  3988. // @@protoc_insertion_point(generalized_copy_from_start:dispatch_node_statu)
  3989. if (&from == this) return;
  3990. Clear();
  3991. MergeFrom(from);
  3992. }
  3993. void dispatch_node_statu::CopyFrom(const dispatch_node_statu& from) {
  3994. // @@protoc_insertion_point(class_specific_copy_from_start:dispatch_node_statu)
  3995. if (&from == this) return;
  3996. Clear();
  3997. MergeFrom(from);
  3998. }
  3999. bool dispatch_node_statu::IsInitialized() const {
  4000. return true;
  4001. }
  4002. void dispatch_node_statu::Swap(dispatch_node_statu* other) {
  4003. if (other == this) return;
  4004. InternalSwap(other);
  4005. }
  4006. void dispatch_node_statu::InternalSwap(dispatch_node_statu* other) {
  4007. using std::swap;
  4008. CastToBase(&dispatch_region_info_vector_)->InternalSwap(CastToBase(&other->dispatch_region_info_vector_));
  4009. swap(running_pack_info_, other->running_pack_info_);
  4010. swap(running_pick_info_, other->running_pick_info_);
  4011. swap(statu_, other->statu_);
  4012. swap(idle_stop_floor_, other->idle_stop_floor_);
  4013. swap(unit_id_, other->unit_id_);
  4014. swap(plc_heartbeat_, other->plc_heartbeat_);
  4015. swap(plc_status_info_, other->plc_status_info_);
  4016. _internal_metadata_.Swap(&other->_internal_metadata_);
  4017. }
  4018. ::google::protobuf::Metadata dispatch_node_statu::GetMetadata() const {
  4019. protobuf_message_2eproto::protobuf_AssignDescriptorsOnce();
  4020. return ::protobuf_message_2eproto::file_level_metadata[kIndexInFileMessages];
  4021. }
  4022. // @@protoc_insertion_point(namespace_scope)
  4023. namespace google {
  4024. namespace protobuf {
  4025. template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::measure_info* Arena::CreateMaybeMessage< ::measure_info >(Arena* arena) {
  4026. return Arena::CreateInternal< ::measure_info >(arena);
  4027. }
  4028. template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::parkspace_info* Arena::CreateMaybeMessage< ::parkspace_info >(Arena* arena) {
  4029. return Arena::CreateInternal< ::parkspace_info >(arena);
  4030. }
  4031. template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::table_statu* Arena::CreateMaybeMessage< ::table_statu >(Arena* arena) {
  4032. return Arena::CreateInternal< ::table_statu >(arena);
  4033. }
  4034. template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::park_table* Arena::CreateMaybeMessage< ::park_table >(Arena* arena) {
  4035. return Arena::CreateInternal< ::park_table >(arena);
  4036. }
  4037. template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::pick_table* Arena::CreateMaybeMessage< ::pick_table >(Arena* arena) {
  4038. return Arena::CreateInternal< ::pick_table >(arena);
  4039. }
  4040. template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::out_mcpu_statu* Arena::CreateMaybeMessage< ::out_mcpu_statu >(Arena* arena) {
  4041. return Arena::CreateInternal< ::out_mcpu_statu >(arena);
  4042. }
  4043. template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::in_mcpu_statu* Arena::CreateMaybeMessage< ::in_mcpu_statu >(Arena* arena) {
  4044. return Arena::CreateInternal< ::in_mcpu_statu >(arena);
  4045. }
  4046. template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::measure_statu* Arena::CreateMaybeMessage< ::measure_statu >(Arena* arena) {
  4047. return Arena::CreateInternal< ::measure_statu >(arena);
  4048. }
  4049. template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::dispatch_region_info* Arena::CreateMaybeMessage< ::dispatch_region_info >(Arena* arena) {
  4050. return Arena::CreateInternal< ::dispatch_region_info >(arena);
  4051. }
  4052. template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::dispatch_node_statu* Arena::CreateMaybeMessage< ::dispatch_node_statu >(Arena* arena) {
  4053. return Arena::CreateInternal< ::dispatch_node_statu >(arena);
  4054. }
  4055. } // namespace protobuf
  4056. } // namespace google
  4057. // @@protoc_insertion_point(global_scope)