parkspace_allocation_message.pb.cc 303 KB

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