parkspace_allocation_message.pb.cc 252 KB

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