parkspace_allocation_message.pb.cc 258 KB

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