parkspace_allocation_message.pb.cc 246 KB

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