parkspace_allocation_message.pb.cc 246 KB

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