parkspace_allocation_message.pb.cc 171 KB

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