parkspace_allocation_message.pb.cc 248 KB

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