parkspace_allocation_message.pb.cc 173 KB

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