map_lite_unittest.pb.cc 329 KB

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