parkspace_allocation_message.pb.cc 209 KB

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