parkspace_allocation_message.pb.cc 298 KB

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