map_unittest.pb.cc 538 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166
  1. // Generated by the protocol buffer compiler. DO NOT EDIT!
  2. // source: google/protobuf/map_unittest.proto
  3. #include <google/protobuf/map_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/descriptor.h>
  10. #include <google/protobuf/generated_message_reflection.h>
  11. #include <google/protobuf/reflection_ops.h>
  12. #include <google/protobuf/wire_format.h>
  13. // This is a temporary google only hack
  14. #ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
  15. #include "third_party/protobuf/version.h"
  16. #endif
  17. // @@protoc_insertion_point(includes)
  18. namespace protobuf_google_2fprotobuf_2fmap_5funittest_2eproto {
  19. extern PROTOBUF_INTERNAL_EXPORT_protobuf_google_2fprotobuf_2fmap_5funittest_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_MessageContainingEnumCalledType;
  20. extern PROTOBUF_INTERNAL_EXPORT_protobuf_google_2fprotobuf_2fmap_5funittest_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_MessageContainingMapCalledEntry_EntryEntry_DoNotUse;
  21. extern PROTOBUF_INTERNAL_EXPORT_protobuf_google_2fprotobuf_2fmap_5funittest_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_TestArenaMap_MapBoolBoolEntry_DoNotUse;
  22. extern PROTOBUF_INTERNAL_EXPORT_protobuf_google_2fprotobuf_2fmap_5funittest_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_TestArenaMap_MapFixed32Fixed32Entry_DoNotUse;
  23. extern PROTOBUF_INTERNAL_EXPORT_protobuf_google_2fprotobuf_2fmap_5funittest_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_TestArenaMap_MapFixed64Fixed64Entry_DoNotUse;
  24. extern PROTOBUF_INTERNAL_EXPORT_protobuf_google_2fprotobuf_2fmap_5funittest_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_TestArenaMap_MapInt32BytesEntry_DoNotUse;
  25. extern PROTOBUF_INTERNAL_EXPORT_protobuf_google_2fprotobuf_2fmap_5funittest_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_TestArenaMap_MapInt32DoubleEntry_DoNotUse;
  26. extern PROTOBUF_INTERNAL_EXPORT_protobuf_google_2fprotobuf_2fmap_5funittest_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_TestArenaMap_MapInt32EnumEntry_DoNotUse;
  27. extern PROTOBUF_INTERNAL_EXPORT_protobuf_google_2fprotobuf_2fmap_5funittest_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_TestArenaMap_MapInt32FloatEntry_DoNotUse;
  28. extern PROTOBUF_INTERNAL_EXPORT_protobuf_google_2fprotobuf_2fmap_5funittest_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_TestArenaMap_MapInt32Int32Entry_DoNotUse;
  29. extern PROTOBUF_INTERNAL_EXPORT_protobuf_google_2fprotobuf_2fmap_5funittest_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_TestArenaMap_MapInt64Int64Entry_DoNotUse;
  30. extern PROTOBUF_INTERNAL_EXPORT_protobuf_google_2fprotobuf_2fmap_5funittest_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_TestArenaMap_MapSfixed32Sfixed32Entry_DoNotUse;
  31. extern PROTOBUF_INTERNAL_EXPORT_protobuf_google_2fprotobuf_2fmap_5funittest_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_TestArenaMap_MapSfixed64Sfixed64Entry_DoNotUse;
  32. extern PROTOBUF_INTERNAL_EXPORT_protobuf_google_2fprotobuf_2fmap_5funittest_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_TestArenaMap_MapSint32Sint32Entry_DoNotUse;
  33. extern PROTOBUF_INTERNAL_EXPORT_protobuf_google_2fprotobuf_2fmap_5funittest_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_TestArenaMap_MapSint64Sint64Entry_DoNotUse;
  34. extern PROTOBUF_INTERNAL_EXPORT_protobuf_google_2fprotobuf_2fmap_5funittest_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_TestArenaMap_MapStringStringEntry_DoNotUse;
  35. extern PROTOBUF_INTERNAL_EXPORT_protobuf_google_2fprotobuf_2fmap_5funittest_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_TestArenaMap_MapUint32Uint32Entry_DoNotUse;
  36. extern PROTOBUF_INTERNAL_EXPORT_protobuf_google_2fprotobuf_2fmap_5funittest_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_TestArenaMap_MapUint64Uint64Entry_DoNotUse;
  37. extern PROTOBUF_INTERNAL_EXPORT_protobuf_google_2fprotobuf_2fmap_5funittest_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_TestMap_MapBoolBoolEntry_DoNotUse;
  38. extern PROTOBUF_INTERNAL_EXPORT_protobuf_google_2fprotobuf_2fmap_5funittest_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_TestMap_MapFixed32Fixed32Entry_DoNotUse;
  39. extern PROTOBUF_INTERNAL_EXPORT_protobuf_google_2fprotobuf_2fmap_5funittest_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_TestMap_MapFixed64Fixed64Entry_DoNotUse;
  40. extern PROTOBUF_INTERNAL_EXPORT_protobuf_google_2fprotobuf_2fmap_5funittest_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_TestMap_MapInt32BytesEntry_DoNotUse;
  41. extern PROTOBUF_INTERNAL_EXPORT_protobuf_google_2fprotobuf_2fmap_5funittest_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_TestMap_MapInt32DoubleEntry_DoNotUse;
  42. extern PROTOBUF_INTERNAL_EXPORT_protobuf_google_2fprotobuf_2fmap_5funittest_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_TestMap_MapInt32EnumEntry_DoNotUse;
  43. extern PROTOBUF_INTERNAL_EXPORT_protobuf_google_2fprotobuf_2fmap_5funittest_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_TestMap_MapInt32FloatEntry_DoNotUse;
  44. extern PROTOBUF_INTERNAL_EXPORT_protobuf_google_2fprotobuf_2fmap_5funittest_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_TestMap_MapInt32Int32Entry_DoNotUse;
  45. extern PROTOBUF_INTERNAL_EXPORT_protobuf_google_2fprotobuf_2fmap_5funittest_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_TestMap_MapInt64Int64Entry_DoNotUse;
  46. extern PROTOBUF_INTERNAL_EXPORT_protobuf_google_2fprotobuf_2fmap_5funittest_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_TestMap_MapSfixed32Sfixed32Entry_DoNotUse;
  47. extern PROTOBUF_INTERNAL_EXPORT_protobuf_google_2fprotobuf_2fmap_5funittest_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_TestMap_MapSfixed64Sfixed64Entry_DoNotUse;
  48. extern PROTOBUF_INTERNAL_EXPORT_protobuf_google_2fprotobuf_2fmap_5funittest_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_TestMap_MapSint32Sint32Entry_DoNotUse;
  49. extern PROTOBUF_INTERNAL_EXPORT_protobuf_google_2fprotobuf_2fmap_5funittest_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_TestMap_MapSint64Sint64Entry_DoNotUse;
  50. extern PROTOBUF_INTERNAL_EXPORT_protobuf_google_2fprotobuf_2fmap_5funittest_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_TestMap_MapStringStringEntry_DoNotUse;
  51. extern PROTOBUF_INTERNAL_EXPORT_protobuf_google_2fprotobuf_2fmap_5funittest_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_TestMap_MapUint32Uint32Entry_DoNotUse;
  52. extern PROTOBUF_INTERNAL_EXPORT_protobuf_google_2fprotobuf_2fmap_5funittest_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_TestMap_MapUint64Uint64Entry_DoNotUse;
  53. extern PROTOBUF_INTERNAL_EXPORT_protobuf_google_2fprotobuf_2fmap_5funittest_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_TestRecursiveMapMessage;
  54. extern PROTOBUF_INTERNAL_EXPORT_protobuf_google_2fprotobuf_2fmap_5funittest_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_TestSameTypeMap_Map1Entry_DoNotUse;
  55. extern PROTOBUF_INTERNAL_EXPORT_protobuf_google_2fprotobuf_2fmap_5funittest_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_TestSameTypeMap_Map2Entry_DoNotUse;
  56. extern PROTOBUF_INTERNAL_EXPORT_protobuf_google_2fprotobuf_2fmap_5funittest_2eproto ::google::protobuf::internal::SCCInfo<19> scc_info_TestMap;
  57. extern PROTOBUF_INTERNAL_EXPORT_protobuf_google_2fprotobuf_2fmap_5funittest_2eproto ::google::protobuf::internal::SCCInfo<1> scc_info_TestArenaMap_MapInt32ForeignMessageEntry_DoNotUse;
  58. extern PROTOBUF_INTERNAL_EXPORT_protobuf_google_2fprotobuf_2fmap_5funittest_2eproto ::google::protobuf::internal::SCCInfo<1> scc_info_TestArenaMap_MapInt32ForeignMessageNoArenaEntry_DoNotUse;
  59. extern PROTOBUF_INTERNAL_EXPORT_protobuf_google_2fprotobuf_2fmap_5funittest_2eproto ::google::protobuf::internal::SCCInfo<1> scc_info_TestMap_MapInt32AllTypesEntry_DoNotUse;
  60. extern PROTOBUF_INTERNAL_EXPORT_protobuf_google_2fprotobuf_2fmap_5funittest_2eproto ::google::protobuf::internal::SCCInfo<1> scc_info_TestMap_MapInt32ForeignMessageEntry_DoNotUse;
  61. extern PROTOBUF_INTERNAL_EXPORT_protobuf_google_2fprotobuf_2fmap_5funittest_2eproto ::google::protobuf::internal::SCCInfo<1> scc_info_TestMap_MapStringForeignMessageEntry_DoNotUse;
  62. extern PROTOBUF_INTERNAL_EXPORT_protobuf_google_2fprotobuf_2fmap_5funittest_2eproto ::google::protobuf::internal::SCCInfo<1> scc_info_TestMessageMap_MapInt32MessageEntry_DoNotUse;
  63. extern PROTOBUF_INTERNAL_EXPORT_protobuf_google_2fprotobuf_2fmap_5funittest_2eproto ::google::protobuf::internal::SCCInfo<1> scc_info_TestRequiredMessageMap_MapFieldEntry_DoNotUse;
  64. } // namespace protobuf_google_2fprotobuf_2fmap_5funittest_2eproto
  65. namespace protobuf_google_2fprotobuf_2funittest_2eproto {
  66. extern PROTOBUF_INTERNAL_EXPORT_protobuf_google_2fprotobuf_2funittest_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_ForeignMessage;
  67. extern PROTOBUF_INTERNAL_EXPORT_protobuf_google_2fprotobuf_2funittest_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_TestRequired;
  68. extern PROTOBUF_INTERNAL_EXPORT_protobuf_google_2fprotobuf_2funittest_2eproto ::google::protobuf::internal::SCCInfo<6> scc_info_TestAllTypes;
  69. } // namespace protobuf_google_2fprotobuf_2funittest_2eproto
  70. namespace protobuf_google_2fprotobuf_2funittest_5fno_5farena_2eproto {
  71. extern PROTOBUF_INTERNAL_EXPORT_protobuf_google_2fprotobuf_2funittest_5fno_5farena_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_ForeignMessage;
  72. } // namespace protobuf_google_2fprotobuf_2funittest_5fno_5farena_2eproto
  73. namespace protobuf_unittest {
  74. class TestMap_MapInt32Int32Entry_DoNotUseDefaultTypeInternal {
  75. public:
  76. ::google::protobuf::internal::ExplicitlyConstructed<TestMap_MapInt32Int32Entry_DoNotUse>
  77. _instance;
  78. } _TestMap_MapInt32Int32Entry_DoNotUse_default_instance_;
  79. class TestMap_MapInt64Int64Entry_DoNotUseDefaultTypeInternal {
  80. public:
  81. ::google::protobuf::internal::ExplicitlyConstructed<TestMap_MapInt64Int64Entry_DoNotUse>
  82. _instance;
  83. } _TestMap_MapInt64Int64Entry_DoNotUse_default_instance_;
  84. class TestMap_MapUint32Uint32Entry_DoNotUseDefaultTypeInternal {
  85. public:
  86. ::google::protobuf::internal::ExplicitlyConstructed<TestMap_MapUint32Uint32Entry_DoNotUse>
  87. _instance;
  88. } _TestMap_MapUint32Uint32Entry_DoNotUse_default_instance_;
  89. class TestMap_MapUint64Uint64Entry_DoNotUseDefaultTypeInternal {
  90. public:
  91. ::google::protobuf::internal::ExplicitlyConstructed<TestMap_MapUint64Uint64Entry_DoNotUse>
  92. _instance;
  93. } _TestMap_MapUint64Uint64Entry_DoNotUse_default_instance_;
  94. class TestMap_MapSint32Sint32Entry_DoNotUseDefaultTypeInternal {
  95. public:
  96. ::google::protobuf::internal::ExplicitlyConstructed<TestMap_MapSint32Sint32Entry_DoNotUse>
  97. _instance;
  98. } _TestMap_MapSint32Sint32Entry_DoNotUse_default_instance_;
  99. class TestMap_MapSint64Sint64Entry_DoNotUseDefaultTypeInternal {
  100. public:
  101. ::google::protobuf::internal::ExplicitlyConstructed<TestMap_MapSint64Sint64Entry_DoNotUse>
  102. _instance;
  103. } _TestMap_MapSint64Sint64Entry_DoNotUse_default_instance_;
  104. class TestMap_MapFixed32Fixed32Entry_DoNotUseDefaultTypeInternal {
  105. public:
  106. ::google::protobuf::internal::ExplicitlyConstructed<TestMap_MapFixed32Fixed32Entry_DoNotUse>
  107. _instance;
  108. } _TestMap_MapFixed32Fixed32Entry_DoNotUse_default_instance_;
  109. class TestMap_MapFixed64Fixed64Entry_DoNotUseDefaultTypeInternal {
  110. public:
  111. ::google::protobuf::internal::ExplicitlyConstructed<TestMap_MapFixed64Fixed64Entry_DoNotUse>
  112. _instance;
  113. } _TestMap_MapFixed64Fixed64Entry_DoNotUse_default_instance_;
  114. class TestMap_MapSfixed32Sfixed32Entry_DoNotUseDefaultTypeInternal {
  115. public:
  116. ::google::protobuf::internal::ExplicitlyConstructed<TestMap_MapSfixed32Sfixed32Entry_DoNotUse>
  117. _instance;
  118. } _TestMap_MapSfixed32Sfixed32Entry_DoNotUse_default_instance_;
  119. class TestMap_MapSfixed64Sfixed64Entry_DoNotUseDefaultTypeInternal {
  120. public:
  121. ::google::protobuf::internal::ExplicitlyConstructed<TestMap_MapSfixed64Sfixed64Entry_DoNotUse>
  122. _instance;
  123. } _TestMap_MapSfixed64Sfixed64Entry_DoNotUse_default_instance_;
  124. class TestMap_MapInt32FloatEntry_DoNotUseDefaultTypeInternal {
  125. public:
  126. ::google::protobuf::internal::ExplicitlyConstructed<TestMap_MapInt32FloatEntry_DoNotUse>
  127. _instance;
  128. } _TestMap_MapInt32FloatEntry_DoNotUse_default_instance_;
  129. class TestMap_MapInt32DoubleEntry_DoNotUseDefaultTypeInternal {
  130. public:
  131. ::google::protobuf::internal::ExplicitlyConstructed<TestMap_MapInt32DoubleEntry_DoNotUse>
  132. _instance;
  133. } _TestMap_MapInt32DoubleEntry_DoNotUse_default_instance_;
  134. class TestMap_MapBoolBoolEntry_DoNotUseDefaultTypeInternal {
  135. public:
  136. ::google::protobuf::internal::ExplicitlyConstructed<TestMap_MapBoolBoolEntry_DoNotUse>
  137. _instance;
  138. } _TestMap_MapBoolBoolEntry_DoNotUse_default_instance_;
  139. class TestMap_MapStringStringEntry_DoNotUseDefaultTypeInternal {
  140. public:
  141. ::google::protobuf::internal::ExplicitlyConstructed<TestMap_MapStringStringEntry_DoNotUse>
  142. _instance;
  143. } _TestMap_MapStringStringEntry_DoNotUse_default_instance_;
  144. class TestMap_MapInt32BytesEntry_DoNotUseDefaultTypeInternal {
  145. public:
  146. ::google::protobuf::internal::ExplicitlyConstructed<TestMap_MapInt32BytesEntry_DoNotUse>
  147. _instance;
  148. } _TestMap_MapInt32BytesEntry_DoNotUse_default_instance_;
  149. class TestMap_MapInt32EnumEntry_DoNotUseDefaultTypeInternal {
  150. public:
  151. ::google::protobuf::internal::ExplicitlyConstructed<TestMap_MapInt32EnumEntry_DoNotUse>
  152. _instance;
  153. } _TestMap_MapInt32EnumEntry_DoNotUse_default_instance_;
  154. class TestMap_MapInt32ForeignMessageEntry_DoNotUseDefaultTypeInternal {
  155. public:
  156. ::google::protobuf::internal::ExplicitlyConstructed<TestMap_MapInt32ForeignMessageEntry_DoNotUse>
  157. _instance;
  158. } _TestMap_MapInt32ForeignMessageEntry_DoNotUse_default_instance_;
  159. class TestMap_MapStringForeignMessageEntry_DoNotUseDefaultTypeInternal {
  160. public:
  161. ::google::protobuf::internal::ExplicitlyConstructed<TestMap_MapStringForeignMessageEntry_DoNotUse>
  162. _instance;
  163. } _TestMap_MapStringForeignMessageEntry_DoNotUse_default_instance_;
  164. class TestMap_MapInt32AllTypesEntry_DoNotUseDefaultTypeInternal {
  165. public:
  166. ::google::protobuf::internal::ExplicitlyConstructed<TestMap_MapInt32AllTypesEntry_DoNotUse>
  167. _instance;
  168. } _TestMap_MapInt32AllTypesEntry_DoNotUse_default_instance_;
  169. class TestMapDefaultTypeInternal {
  170. public:
  171. ::google::protobuf::internal::ExplicitlyConstructed<TestMap>
  172. _instance;
  173. } _TestMap_default_instance_;
  174. class TestMapSubmessageDefaultTypeInternal {
  175. public:
  176. ::google::protobuf::internal::ExplicitlyConstructed<TestMapSubmessage>
  177. _instance;
  178. } _TestMapSubmessage_default_instance_;
  179. class TestMessageMap_MapInt32MessageEntry_DoNotUseDefaultTypeInternal {
  180. public:
  181. ::google::protobuf::internal::ExplicitlyConstructed<TestMessageMap_MapInt32MessageEntry_DoNotUse>
  182. _instance;
  183. } _TestMessageMap_MapInt32MessageEntry_DoNotUse_default_instance_;
  184. class TestMessageMapDefaultTypeInternal {
  185. public:
  186. ::google::protobuf::internal::ExplicitlyConstructed<TestMessageMap>
  187. _instance;
  188. } _TestMessageMap_default_instance_;
  189. class TestSameTypeMap_Map1Entry_DoNotUseDefaultTypeInternal {
  190. public:
  191. ::google::protobuf::internal::ExplicitlyConstructed<TestSameTypeMap_Map1Entry_DoNotUse>
  192. _instance;
  193. } _TestSameTypeMap_Map1Entry_DoNotUse_default_instance_;
  194. class TestSameTypeMap_Map2Entry_DoNotUseDefaultTypeInternal {
  195. public:
  196. ::google::protobuf::internal::ExplicitlyConstructed<TestSameTypeMap_Map2Entry_DoNotUse>
  197. _instance;
  198. } _TestSameTypeMap_Map2Entry_DoNotUse_default_instance_;
  199. class TestSameTypeMapDefaultTypeInternal {
  200. public:
  201. ::google::protobuf::internal::ExplicitlyConstructed<TestSameTypeMap>
  202. _instance;
  203. } _TestSameTypeMap_default_instance_;
  204. class TestRequiredMessageMap_MapFieldEntry_DoNotUseDefaultTypeInternal {
  205. public:
  206. ::google::protobuf::internal::ExplicitlyConstructed<TestRequiredMessageMap_MapFieldEntry_DoNotUse>
  207. _instance;
  208. } _TestRequiredMessageMap_MapFieldEntry_DoNotUse_default_instance_;
  209. class TestRequiredMessageMapDefaultTypeInternal {
  210. public:
  211. ::google::protobuf::internal::ExplicitlyConstructed<TestRequiredMessageMap>
  212. _instance;
  213. } _TestRequiredMessageMap_default_instance_;
  214. class TestArenaMap_MapInt32Int32Entry_DoNotUseDefaultTypeInternal {
  215. public:
  216. ::google::protobuf::internal::ExplicitlyConstructed<TestArenaMap_MapInt32Int32Entry_DoNotUse>
  217. _instance;
  218. } _TestArenaMap_MapInt32Int32Entry_DoNotUse_default_instance_;
  219. class TestArenaMap_MapInt64Int64Entry_DoNotUseDefaultTypeInternal {
  220. public:
  221. ::google::protobuf::internal::ExplicitlyConstructed<TestArenaMap_MapInt64Int64Entry_DoNotUse>
  222. _instance;
  223. } _TestArenaMap_MapInt64Int64Entry_DoNotUse_default_instance_;
  224. class TestArenaMap_MapUint32Uint32Entry_DoNotUseDefaultTypeInternal {
  225. public:
  226. ::google::protobuf::internal::ExplicitlyConstructed<TestArenaMap_MapUint32Uint32Entry_DoNotUse>
  227. _instance;
  228. } _TestArenaMap_MapUint32Uint32Entry_DoNotUse_default_instance_;
  229. class TestArenaMap_MapUint64Uint64Entry_DoNotUseDefaultTypeInternal {
  230. public:
  231. ::google::protobuf::internal::ExplicitlyConstructed<TestArenaMap_MapUint64Uint64Entry_DoNotUse>
  232. _instance;
  233. } _TestArenaMap_MapUint64Uint64Entry_DoNotUse_default_instance_;
  234. class TestArenaMap_MapSint32Sint32Entry_DoNotUseDefaultTypeInternal {
  235. public:
  236. ::google::protobuf::internal::ExplicitlyConstructed<TestArenaMap_MapSint32Sint32Entry_DoNotUse>
  237. _instance;
  238. } _TestArenaMap_MapSint32Sint32Entry_DoNotUse_default_instance_;
  239. class TestArenaMap_MapSint64Sint64Entry_DoNotUseDefaultTypeInternal {
  240. public:
  241. ::google::protobuf::internal::ExplicitlyConstructed<TestArenaMap_MapSint64Sint64Entry_DoNotUse>
  242. _instance;
  243. } _TestArenaMap_MapSint64Sint64Entry_DoNotUse_default_instance_;
  244. class TestArenaMap_MapFixed32Fixed32Entry_DoNotUseDefaultTypeInternal {
  245. public:
  246. ::google::protobuf::internal::ExplicitlyConstructed<TestArenaMap_MapFixed32Fixed32Entry_DoNotUse>
  247. _instance;
  248. } _TestArenaMap_MapFixed32Fixed32Entry_DoNotUse_default_instance_;
  249. class TestArenaMap_MapFixed64Fixed64Entry_DoNotUseDefaultTypeInternal {
  250. public:
  251. ::google::protobuf::internal::ExplicitlyConstructed<TestArenaMap_MapFixed64Fixed64Entry_DoNotUse>
  252. _instance;
  253. } _TestArenaMap_MapFixed64Fixed64Entry_DoNotUse_default_instance_;
  254. class TestArenaMap_MapSfixed32Sfixed32Entry_DoNotUseDefaultTypeInternal {
  255. public:
  256. ::google::protobuf::internal::ExplicitlyConstructed<TestArenaMap_MapSfixed32Sfixed32Entry_DoNotUse>
  257. _instance;
  258. } _TestArenaMap_MapSfixed32Sfixed32Entry_DoNotUse_default_instance_;
  259. class TestArenaMap_MapSfixed64Sfixed64Entry_DoNotUseDefaultTypeInternal {
  260. public:
  261. ::google::protobuf::internal::ExplicitlyConstructed<TestArenaMap_MapSfixed64Sfixed64Entry_DoNotUse>
  262. _instance;
  263. } _TestArenaMap_MapSfixed64Sfixed64Entry_DoNotUse_default_instance_;
  264. class TestArenaMap_MapInt32FloatEntry_DoNotUseDefaultTypeInternal {
  265. public:
  266. ::google::protobuf::internal::ExplicitlyConstructed<TestArenaMap_MapInt32FloatEntry_DoNotUse>
  267. _instance;
  268. } _TestArenaMap_MapInt32FloatEntry_DoNotUse_default_instance_;
  269. class TestArenaMap_MapInt32DoubleEntry_DoNotUseDefaultTypeInternal {
  270. public:
  271. ::google::protobuf::internal::ExplicitlyConstructed<TestArenaMap_MapInt32DoubleEntry_DoNotUse>
  272. _instance;
  273. } _TestArenaMap_MapInt32DoubleEntry_DoNotUse_default_instance_;
  274. class TestArenaMap_MapBoolBoolEntry_DoNotUseDefaultTypeInternal {
  275. public:
  276. ::google::protobuf::internal::ExplicitlyConstructed<TestArenaMap_MapBoolBoolEntry_DoNotUse>
  277. _instance;
  278. } _TestArenaMap_MapBoolBoolEntry_DoNotUse_default_instance_;
  279. class TestArenaMap_MapStringStringEntry_DoNotUseDefaultTypeInternal {
  280. public:
  281. ::google::protobuf::internal::ExplicitlyConstructed<TestArenaMap_MapStringStringEntry_DoNotUse>
  282. _instance;
  283. } _TestArenaMap_MapStringStringEntry_DoNotUse_default_instance_;
  284. class TestArenaMap_MapInt32BytesEntry_DoNotUseDefaultTypeInternal {
  285. public:
  286. ::google::protobuf::internal::ExplicitlyConstructed<TestArenaMap_MapInt32BytesEntry_DoNotUse>
  287. _instance;
  288. } _TestArenaMap_MapInt32BytesEntry_DoNotUse_default_instance_;
  289. class TestArenaMap_MapInt32EnumEntry_DoNotUseDefaultTypeInternal {
  290. public:
  291. ::google::protobuf::internal::ExplicitlyConstructed<TestArenaMap_MapInt32EnumEntry_DoNotUse>
  292. _instance;
  293. } _TestArenaMap_MapInt32EnumEntry_DoNotUse_default_instance_;
  294. class TestArenaMap_MapInt32ForeignMessageEntry_DoNotUseDefaultTypeInternal {
  295. public:
  296. ::google::protobuf::internal::ExplicitlyConstructed<TestArenaMap_MapInt32ForeignMessageEntry_DoNotUse>
  297. _instance;
  298. } _TestArenaMap_MapInt32ForeignMessageEntry_DoNotUse_default_instance_;
  299. class TestArenaMap_MapInt32ForeignMessageNoArenaEntry_DoNotUseDefaultTypeInternal {
  300. public:
  301. ::google::protobuf::internal::ExplicitlyConstructed<TestArenaMap_MapInt32ForeignMessageNoArenaEntry_DoNotUse>
  302. _instance;
  303. } _TestArenaMap_MapInt32ForeignMessageNoArenaEntry_DoNotUse_default_instance_;
  304. class TestArenaMapDefaultTypeInternal {
  305. public:
  306. ::google::protobuf::internal::ExplicitlyConstructed<TestArenaMap>
  307. _instance;
  308. } _TestArenaMap_default_instance_;
  309. class MessageContainingEnumCalledType_TypeEntry_DoNotUseDefaultTypeInternal {
  310. public:
  311. ::google::protobuf::internal::ExplicitlyConstructed<MessageContainingEnumCalledType_TypeEntry_DoNotUse>
  312. _instance;
  313. } _MessageContainingEnumCalledType_TypeEntry_DoNotUse_default_instance_;
  314. class MessageContainingEnumCalledTypeDefaultTypeInternal {
  315. public:
  316. ::google::protobuf::internal::ExplicitlyConstructed<MessageContainingEnumCalledType>
  317. _instance;
  318. } _MessageContainingEnumCalledType_default_instance_;
  319. class MessageContainingMapCalledEntry_EntryEntry_DoNotUseDefaultTypeInternal {
  320. public:
  321. ::google::protobuf::internal::ExplicitlyConstructed<MessageContainingMapCalledEntry_EntryEntry_DoNotUse>
  322. _instance;
  323. } _MessageContainingMapCalledEntry_EntryEntry_DoNotUse_default_instance_;
  324. class MessageContainingMapCalledEntryDefaultTypeInternal {
  325. public:
  326. ::google::protobuf::internal::ExplicitlyConstructed<MessageContainingMapCalledEntry>
  327. _instance;
  328. } _MessageContainingMapCalledEntry_default_instance_;
  329. class TestRecursiveMapMessage_AEntry_DoNotUseDefaultTypeInternal {
  330. public:
  331. ::google::protobuf::internal::ExplicitlyConstructed<TestRecursiveMapMessage_AEntry_DoNotUse>
  332. _instance;
  333. } _TestRecursiveMapMessage_AEntry_DoNotUse_default_instance_;
  334. class TestRecursiveMapMessageDefaultTypeInternal {
  335. public:
  336. ::google::protobuf::internal::ExplicitlyConstructed<TestRecursiveMapMessage>
  337. _instance;
  338. } _TestRecursiveMapMessage_default_instance_;
  339. } // namespace protobuf_unittest
  340. namespace protobuf_google_2fprotobuf_2fmap_5funittest_2eproto {
  341. static void InitDefaultsTestMap_MapInt32Int32Entry_DoNotUse() {
  342. GOOGLE_PROTOBUF_VERIFY_VERSION;
  343. {
  344. void* ptr = &::protobuf_unittest::_TestMap_MapInt32Int32Entry_DoNotUse_default_instance_;
  345. new (ptr) ::protobuf_unittest::TestMap_MapInt32Int32Entry_DoNotUse();
  346. }
  347. ::protobuf_unittest::TestMap_MapInt32Int32Entry_DoNotUse::InitAsDefaultInstance();
  348. }
  349. ::google::protobuf::internal::SCCInfo<0> scc_info_TestMap_MapInt32Int32Entry_DoNotUse =
  350. {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsTestMap_MapInt32Int32Entry_DoNotUse}, {}};
  351. static void InitDefaultsTestMap_MapInt64Int64Entry_DoNotUse() {
  352. GOOGLE_PROTOBUF_VERIFY_VERSION;
  353. {
  354. void* ptr = &::protobuf_unittest::_TestMap_MapInt64Int64Entry_DoNotUse_default_instance_;
  355. new (ptr) ::protobuf_unittest::TestMap_MapInt64Int64Entry_DoNotUse();
  356. }
  357. ::protobuf_unittest::TestMap_MapInt64Int64Entry_DoNotUse::InitAsDefaultInstance();
  358. }
  359. ::google::protobuf::internal::SCCInfo<0> scc_info_TestMap_MapInt64Int64Entry_DoNotUse =
  360. {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsTestMap_MapInt64Int64Entry_DoNotUse}, {}};
  361. static void InitDefaultsTestMap_MapUint32Uint32Entry_DoNotUse() {
  362. GOOGLE_PROTOBUF_VERIFY_VERSION;
  363. {
  364. void* ptr = &::protobuf_unittest::_TestMap_MapUint32Uint32Entry_DoNotUse_default_instance_;
  365. new (ptr) ::protobuf_unittest::TestMap_MapUint32Uint32Entry_DoNotUse();
  366. }
  367. ::protobuf_unittest::TestMap_MapUint32Uint32Entry_DoNotUse::InitAsDefaultInstance();
  368. }
  369. ::google::protobuf::internal::SCCInfo<0> scc_info_TestMap_MapUint32Uint32Entry_DoNotUse =
  370. {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsTestMap_MapUint32Uint32Entry_DoNotUse}, {}};
  371. static void InitDefaultsTestMap_MapUint64Uint64Entry_DoNotUse() {
  372. GOOGLE_PROTOBUF_VERIFY_VERSION;
  373. {
  374. void* ptr = &::protobuf_unittest::_TestMap_MapUint64Uint64Entry_DoNotUse_default_instance_;
  375. new (ptr) ::protobuf_unittest::TestMap_MapUint64Uint64Entry_DoNotUse();
  376. }
  377. ::protobuf_unittest::TestMap_MapUint64Uint64Entry_DoNotUse::InitAsDefaultInstance();
  378. }
  379. ::google::protobuf::internal::SCCInfo<0> scc_info_TestMap_MapUint64Uint64Entry_DoNotUse =
  380. {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsTestMap_MapUint64Uint64Entry_DoNotUse}, {}};
  381. static void InitDefaultsTestMap_MapSint32Sint32Entry_DoNotUse() {
  382. GOOGLE_PROTOBUF_VERIFY_VERSION;
  383. {
  384. void* ptr = &::protobuf_unittest::_TestMap_MapSint32Sint32Entry_DoNotUse_default_instance_;
  385. new (ptr) ::protobuf_unittest::TestMap_MapSint32Sint32Entry_DoNotUse();
  386. }
  387. ::protobuf_unittest::TestMap_MapSint32Sint32Entry_DoNotUse::InitAsDefaultInstance();
  388. }
  389. ::google::protobuf::internal::SCCInfo<0> scc_info_TestMap_MapSint32Sint32Entry_DoNotUse =
  390. {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsTestMap_MapSint32Sint32Entry_DoNotUse}, {}};
  391. static void InitDefaultsTestMap_MapSint64Sint64Entry_DoNotUse() {
  392. GOOGLE_PROTOBUF_VERIFY_VERSION;
  393. {
  394. void* ptr = &::protobuf_unittest::_TestMap_MapSint64Sint64Entry_DoNotUse_default_instance_;
  395. new (ptr) ::protobuf_unittest::TestMap_MapSint64Sint64Entry_DoNotUse();
  396. }
  397. ::protobuf_unittest::TestMap_MapSint64Sint64Entry_DoNotUse::InitAsDefaultInstance();
  398. }
  399. ::google::protobuf::internal::SCCInfo<0> scc_info_TestMap_MapSint64Sint64Entry_DoNotUse =
  400. {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsTestMap_MapSint64Sint64Entry_DoNotUse}, {}};
  401. static void InitDefaultsTestMap_MapFixed32Fixed32Entry_DoNotUse() {
  402. GOOGLE_PROTOBUF_VERIFY_VERSION;
  403. {
  404. void* ptr = &::protobuf_unittest::_TestMap_MapFixed32Fixed32Entry_DoNotUse_default_instance_;
  405. new (ptr) ::protobuf_unittest::TestMap_MapFixed32Fixed32Entry_DoNotUse();
  406. }
  407. ::protobuf_unittest::TestMap_MapFixed32Fixed32Entry_DoNotUse::InitAsDefaultInstance();
  408. }
  409. ::google::protobuf::internal::SCCInfo<0> scc_info_TestMap_MapFixed32Fixed32Entry_DoNotUse =
  410. {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsTestMap_MapFixed32Fixed32Entry_DoNotUse}, {}};
  411. static void InitDefaultsTestMap_MapFixed64Fixed64Entry_DoNotUse() {
  412. GOOGLE_PROTOBUF_VERIFY_VERSION;
  413. {
  414. void* ptr = &::protobuf_unittest::_TestMap_MapFixed64Fixed64Entry_DoNotUse_default_instance_;
  415. new (ptr) ::protobuf_unittest::TestMap_MapFixed64Fixed64Entry_DoNotUse();
  416. }
  417. ::protobuf_unittest::TestMap_MapFixed64Fixed64Entry_DoNotUse::InitAsDefaultInstance();
  418. }
  419. ::google::protobuf::internal::SCCInfo<0> scc_info_TestMap_MapFixed64Fixed64Entry_DoNotUse =
  420. {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsTestMap_MapFixed64Fixed64Entry_DoNotUse}, {}};
  421. static void InitDefaultsTestMap_MapSfixed32Sfixed32Entry_DoNotUse() {
  422. GOOGLE_PROTOBUF_VERIFY_VERSION;
  423. {
  424. void* ptr = &::protobuf_unittest::_TestMap_MapSfixed32Sfixed32Entry_DoNotUse_default_instance_;
  425. new (ptr) ::protobuf_unittest::TestMap_MapSfixed32Sfixed32Entry_DoNotUse();
  426. }
  427. ::protobuf_unittest::TestMap_MapSfixed32Sfixed32Entry_DoNotUse::InitAsDefaultInstance();
  428. }
  429. ::google::protobuf::internal::SCCInfo<0> scc_info_TestMap_MapSfixed32Sfixed32Entry_DoNotUse =
  430. {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsTestMap_MapSfixed32Sfixed32Entry_DoNotUse}, {}};
  431. static void InitDefaultsTestMap_MapSfixed64Sfixed64Entry_DoNotUse() {
  432. GOOGLE_PROTOBUF_VERIFY_VERSION;
  433. {
  434. void* ptr = &::protobuf_unittest::_TestMap_MapSfixed64Sfixed64Entry_DoNotUse_default_instance_;
  435. new (ptr) ::protobuf_unittest::TestMap_MapSfixed64Sfixed64Entry_DoNotUse();
  436. }
  437. ::protobuf_unittest::TestMap_MapSfixed64Sfixed64Entry_DoNotUse::InitAsDefaultInstance();
  438. }
  439. ::google::protobuf::internal::SCCInfo<0> scc_info_TestMap_MapSfixed64Sfixed64Entry_DoNotUse =
  440. {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsTestMap_MapSfixed64Sfixed64Entry_DoNotUse}, {}};
  441. static void InitDefaultsTestMap_MapInt32FloatEntry_DoNotUse() {
  442. GOOGLE_PROTOBUF_VERIFY_VERSION;
  443. {
  444. void* ptr = &::protobuf_unittest::_TestMap_MapInt32FloatEntry_DoNotUse_default_instance_;
  445. new (ptr) ::protobuf_unittest::TestMap_MapInt32FloatEntry_DoNotUse();
  446. }
  447. ::protobuf_unittest::TestMap_MapInt32FloatEntry_DoNotUse::InitAsDefaultInstance();
  448. }
  449. ::google::protobuf::internal::SCCInfo<0> scc_info_TestMap_MapInt32FloatEntry_DoNotUse =
  450. {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsTestMap_MapInt32FloatEntry_DoNotUse}, {}};
  451. static void InitDefaultsTestMap_MapInt32DoubleEntry_DoNotUse() {
  452. GOOGLE_PROTOBUF_VERIFY_VERSION;
  453. {
  454. void* ptr = &::protobuf_unittest::_TestMap_MapInt32DoubleEntry_DoNotUse_default_instance_;
  455. new (ptr) ::protobuf_unittest::TestMap_MapInt32DoubleEntry_DoNotUse();
  456. }
  457. ::protobuf_unittest::TestMap_MapInt32DoubleEntry_DoNotUse::InitAsDefaultInstance();
  458. }
  459. ::google::protobuf::internal::SCCInfo<0> scc_info_TestMap_MapInt32DoubleEntry_DoNotUse =
  460. {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsTestMap_MapInt32DoubleEntry_DoNotUse}, {}};
  461. static void InitDefaultsTestMap_MapBoolBoolEntry_DoNotUse() {
  462. GOOGLE_PROTOBUF_VERIFY_VERSION;
  463. {
  464. void* ptr = &::protobuf_unittest::_TestMap_MapBoolBoolEntry_DoNotUse_default_instance_;
  465. new (ptr) ::protobuf_unittest::TestMap_MapBoolBoolEntry_DoNotUse();
  466. }
  467. ::protobuf_unittest::TestMap_MapBoolBoolEntry_DoNotUse::InitAsDefaultInstance();
  468. }
  469. ::google::protobuf::internal::SCCInfo<0> scc_info_TestMap_MapBoolBoolEntry_DoNotUse =
  470. {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsTestMap_MapBoolBoolEntry_DoNotUse}, {}};
  471. static void InitDefaultsTestMap_MapStringStringEntry_DoNotUse() {
  472. GOOGLE_PROTOBUF_VERIFY_VERSION;
  473. {
  474. void* ptr = &::protobuf_unittest::_TestMap_MapStringStringEntry_DoNotUse_default_instance_;
  475. new (ptr) ::protobuf_unittest::TestMap_MapStringStringEntry_DoNotUse();
  476. }
  477. ::protobuf_unittest::TestMap_MapStringStringEntry_DoNotUse::InitAsDefaultInstance();
  478. }
  479. ::google::protobuf::internal::SCCInfo<0> scc_info_TestMap_MapStringStringEntry_DoNotUse =
  480. {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsTestMap_MapStringStringEntry_DoNotUse}, {}};
  481. static void InitDefaultsTestMap_MapInt32BytesEntry_DoNotUse() {
  482. GOOGLE_PROTOBUF_VERIFY_VERSION;
  483. {
  484. void* ptr = &::protobuf_unittest::_TestMap_MapInt32BytesEntry_DoNotUse_default_instance_;
  485. new (ptr) ::protobuf_unittest::TestMap_MapInt32BytesEntry_DoNotUse();
  486. }
  487. ::protobuf_unittest::TestMap_MapInt32BytesEntry_DoNotUse::InitAsDefaultInstance();
  488. }
  489. ::google::protobuf::internal::SCCInfo<0> scc_info_TestMap_MapInt32BytesEntry_DoNotUse =
  490. {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsTestMap_MapInt32BytesEntry_DoNotUse}, {}};
  491. static void InitDefaultsTestMap_MapInt32EnumEntry_DoNotUse() {
  492. GOOGLE_PROTOBUF_VERIFY_VERSION;
  493. {
  494. void* ptr = &::protobuf_unittest::_TestMap_MapInt32EnumEntry_DoNotUse_default_instance_;
  495. new (ptr) ::protobuf_unittest::TestMap_MapInt32EnumEntry_DoNotUse();
  496. }
  497. ::protobuf_unittest::TestMap_MapInt32EnumEntry_DoNotUse::InitAsDefaultInstance();
  498. }
  499. ::google::protobuf::internal::SCCInfo<0> scc_info_TestMap_MapInt32EnumEntry_DoNotUse =
  500. {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsTestMap_MapInt32EnumEntry_DoNotUse}, {}};
  501. static void InitDefaultsTestMap_MapInt32ForeignMessageEntry_DoNotUse() {
  502. GOOGLE_PROTOBUF_VERIFY_VERSION;
  503. {
  504. void* ptr = &::protobuf_unittest::_TestMap_MapInt32ForeignMessageEntry_DoNotUse_default_instance_;
  505. new (ptr) ::protobuf_unittest::TestMap_MapInt32ForeignMessageEntry_DoNotUse();
  506. }
  507. ::protobuf_unittest::TestMap_MapInt32ForeignMessageEntry_DoNotUse::InitAsDefaultInstance();
  508. }
  509. ::google::protobuf::internal::SCCInfo<1> scc_info_TestMap_MapInt32ForeignMessageEntry_DoNotUse =
  510. {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsTestMap_MapInt32ForeignMessageEntry_DoNotUse}, {
  511. &protobuf_google_2fprotobuf_2funittest_2eproto::scc_info_ForeignMessage.base,}};
  512. static void InitDefaultsTestMap_MapStringForeignMessageEntry_DoNotUse() {
  513. GOOGLE_PROTOBUF_VERIFY_VERSION;
  514. {
  515. void* ptr = &::protobuf_unittest::_TestMap_MapStringForeignMessageEntry_DoNotUse_default_instance_;
  516. new (ptr) ::protobuf_unittest::TestMap_MapStringForeignMessageEntry_DoNotUse();
  517. }
  518. ::protobuf_unittest::TestMap_MapStringForeignMessageEntry_DoNotUse::InitAsDefaultInstance();
  519. }
  520. ::google::protobuf::internal::SCCInfo<1> scc_info_TestMap_MapStringForeignMessageEntry_DoNotUse =
  521. {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsTestMap_MapStringForeignMessageEntry_DoNotUse}, {
  522. &protobuf_google_2fprotobuf_2funittest_2eproto::scc_info_ForeignMessage.base,}};
  523. static void InitDefaultsTestMap_MapInt32AllTypesEntry_DoNotUse() {
  524. GOOGLE_PROTOBUF_VERIFY_VERSION;
  525. {
  526. void* ptr = &::protobuf_unittest::_TestMap_MapInt32AllTypesEntry_DoNotUse_default_instance_;
  527. new (ptr) ::protobuf_unittest::TestMap_MapInt32AllTypesEntry_DoNotUse();
  528. }
  529. ::protobuf_unittest::TestMap_MapInt32AllTypesEntry_DoNotUse::InitAsDefaultInstance();
  530. }
  531. ::google::protobuf::internal::SCCInfo<1> scc_info_TestMap_MapInt32AllTypesEntry_DoNotUse =
  532. {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsTestMap_MapInt32AllTypesEntry_DoNotUse}, {
  533. &protobuf_google_2fprotobuf_2funittest_2eproto::scc_info_TestAllTypes.base,}};
  534. static void InitDefaultsTestMap() {
  535. GOOGLE_PROTOBUF_VERIFY_VERSION;
  536. {
  537. void* ptr = &::protobuf_unittest::_TestMap_default_instance_;
  538. new (ptr) ::protobuf_unittest::TestMap();
  539. ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
  540. }
  541. ::protobuf_unittest::TestMap::InitAsDefaultInstance();
  542. }
  543. ::google::protobuf::internal::SCCInfo<19> scc_info_TestMap =
  544. {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 19, InitDefaultsTestMap}, {
  545. &protobuf_google_2fprotobuf_2fmap_5funittest_2eproto::scc_info_TestMap_MapInt32Int32Entry_DoNotUse.base,
  546. &protobuf_google_2fprotobuf_2fmap_5funittest_2eproto::scc_info_TestMap_MapInt64Int64Entry_DoNotUse.base,
  547. &protobuf_google_2fprotobuf_2fmap_5funittest_2eproto::scc_info_TestMap_MapUint32Uint32Entry_DoNotUse.base,
  548. &protobuf_google_2fprotobuf_2fmap_5funittest_2eproto::scc_info_TestMap_MapUint64Uint64Entry_DoNotUse.base,
  549. &protobuf_google_2fprotobuf_2fmap_5funittest_2eproto::scc_info_TestMap_MapSint32Sint32Entry_DoNotUse.base,
  550. &protobuf_google_2fprotobuf_2fmap_5funittest_2eproto::scc_info_TestMap_MapSint64Sint64Entry_DoNotUse.base,
  551. &protobuf_google_2fprotobuf_2fmap_5funittest_2eproto::scc_info_TestMap_MapFixed32Fixed32Entry_DoNotUse.base,
  552. &protobuf_google_2fprotobuf_2fmap_5funittest_2eproto::scc_info_TestMap_MapFixed64Fixed64Entry_DoNotUse.base,
  553. &protobuf_google_2fprotobuf_2fmap_5funittest_2eproto::scc_info_TestMap_MapSfixed32Sfixed32Entry_DoNotUse.base,
  554. &protobuf_google_2fprotobuf_2fmap_5funittest_2eproto::scc_info_TestMap_MapSfixed64Sfixed64Entry_DoNotUse.base,
  555. &protobuf_google_2fprotobuf_2fmap_5funittest_2eproto::scc_info_TestMap_MapInt32FloatEntry_DoNotUse.base,
  556. &protobuf_google_2fprotobuf_2fmap_5funittest_2eproto::scc_info_TestMap_MapInt32DoubleEntry_DoNotUse.base,
  557. &protobuf_google_2fprotobuf_2fmap_5funittest_2eproto::scc_info_TestMap_MapBoolBoolEntry_DoNotUse.base,
  558. &protobuf_google_2fprotobuf_2fmap_5funittest_2eproto::scc_info_TestMap_MapStringStringEntry_DoNotUse.base,
  559. &protobuf_google_2fprotobuf_2fmap_5funittest_2eproto::scc_info_TestMap_MapInt32BytesEntry_DoNotUse.base,
  560. &protobuf_google_2fprotobuf_2fmap_5funittest_2eproto::scc_info_TestMap_MapInt32EnumEntry_DoNotUse.base,
  561. &protobuf_google_2fprotobuf_2fmap_5funittest_2eproto::scc_info_TestMap_MapInt32ForeignMessageEntry_DoNotUse.base,
  562. &protobuf_google_2fprotobuf_2fmap_5funittest_2eproto::scc_info_TestMap_MapStringForeignMessageEntry_DoNotUse.base,
  563. &protobuf_google_2fprotobuf_2fmap_5funittest_2eproto::scc_info_TestMap_MapInt32AllTypesEntry_DoNotUse.base,}};
  564. static void InitDefaultsTestMapSubmessage() {
  565. GOOGLE_PROTOBUF_VERIFY_VERSION;
  566. {
  567. void* ptr = &::protobuf_unittest::_TestMapSubmessage_default_instance_;
  568. new (ptr) ::protobuf_unittest::TestMapSubmessage();
  569. ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
  570. }
  571. ::protobuf_unittest::TestMapSubmessage::InitAsDefaultInstance();
  572. }
  573. ::google::protobuf::internal::SCCInfo<1> scc_info_TestMapSubmessage =
  574. {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsTestMapSubmessage}, {
  575. &protobuf_google_2fprotobuf_2fmap_5funittest_2eproto::scc_info_TestMap.base,}};
  576. static void InitDefaultsTestMessageMap_MapInt32MessageEntry_DoNotUse() {
  577. GOOGLE_PROTOBUF_VERIFY_VERSION;
  578. {
  579. void* ptr = &::protobuf_unittest::_TestMessageMap_MapInt32MessageEntry_DoNotUse_default_instance_;
  580. new (ptr) ::protobuf_unittest::TestMessageMap_MapInt32MessageEntry_DoNotUse();
  581. }
  582. ::protobuf_unittest::TestMessageMap_MapInt32MessageEntry_DoNotUse::InitAsDefaultInstance();
  583. }
  584. ::google::protobuf::internal::SCCInfo<1> scc_info_TestMessageMap_MapInt32MessageEntry_DoNotUse =
  585. {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsTestMessageMap_MapInt32MessageEntry_DoNotUse}, {
  586. &protobuf_google_2fprotobuf_2funittest_2eproto::scc_info_TestAllTypes.base,}};
  587. static void InitDefaultsTestMessageMap() {
  588. GOOGLE_PROTOBUF_VERIFY_VERSION;
  589. {
  590. void* ptr = &::protobuf_unittest::_TestMessageMap_default_instance_;
  591. new (ptr) ::protobuf_unittest::TestMessageMap();
  592. ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
  593. }
  594. ::protobuf_unittest::TestMessageMap::InitAsDefaultInstance();
  595. }
  596. ::google::protobuf::internal::SCCInfo<1> scc_info_TestMessageMap =
  597. {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsTestMessageMap}, {
  598. &protobuf_google_2fprotobuf_2fmap_5funittest_2eproto::scc_info_TestMessageMap_MapInt32MessageEntry_DoNotUse.base,}};
  599. static void InitDefaultsTestSameTypeMap_Map1Entry_DoNotUse() {
  600. GOOGLE_PROTOBUF_VERIFY_VERSION;
  601. {
  602. void* ptr = &::protobuf_unittest::_TestSameTypeMap_Map1Entry_DoNotUse_default_instance_;
  603. new (ptr) ::protobuf_unittest::TestSameTypeMap_Map1Entry_DoNotUse();
  604. }
  605. ::protobuf_unittest::TestSameTypeMap_Map1Entry_DoNotUse::InitAsDefaultInstance();
  606. }
  607. ::google::protobuf::internal::SCCInfo<0> scc_info_TestSameTypeMap_Map1Entry_DoNotUse =
  608. {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsTestSameTypeMap_Map1Entry_DoNotUse}, {}};
  609. static void InitDefaultsTestSameTypeMap_Map2Entry_DoNotUse() {
  610. GOOGLE_PROTOBUF_VERIFY_VERSION;
  611. {
  612. void* ptr = &::protobuf_unittest::_TestSameTypeMap_Map2Entry_DoNotUse_default_instance_;
  613. new (ptr) ::protobuf_unittest::TestSameTypeMap_Map2Entry_DoNotUse();
  614. }
  615. ::protobuf_unittest::TestSameTypeMap_Map2Entry_DoNotUse::InitAsDefaultInstance();
  616. }
  617. ::google::protobuf::internal::SCCInfo<0> scc_info_TestSameTypeMap_Map2Entry_DoNotUse =
  618. {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsTestSameTypeMap_Map2Entry_DoNotUse}, {}};
  619. static void InitDefaultsTestSameTypeMap() {
  620. GOOGLE_PROTOBUF_VERIFY_VERSION;
  621. {
  622. void* ptr = &::protobuf_unittest::_TestSameTypeMap_default_instance_;
  623. new (ptr) ::protobuf_unittest::TestSameTypeMap();
  624. ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
  625. }
  626. ::protobuf_unittest::TestSameTypeMap::InitAsDefaultInstance();
  627. }
  628. ::google::protobuf::internal::SCCInfo<2> scc_info_TestSameTypeMap =
  629. {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 2, InitDefaultsTestSameTypeMap}, {
  630. &protobuf_google_2fprotobuf_2fmap_5funittest_2eproto::scc_info_TestSameTypeMap_Map1Entry_DoNotUse.base,
  631. &protobuf_google_2fprotobuf_2fmap_5funittest_2eproto::scc_info_TestSameTypeMap_Map2Entry_DoNotUse.base,}};
  632. static void InitDefaultsTestRequiredMessageMap_MapFieldEntry_DoNotUse() {
  633. GOOGLE_PROTOBUF_VERIFY_VERSION;
  634. {
  635. void* ptr = &::protobuf_unittest::_TestRequiredMessageMap_MapFieldEntry_DoNotUse_default_instance_;
  636. new (ptr) ::protobuf_unittest::TestRequiredMessageMap_MapFieldEntry_DoNotUse();
  637. }
  638. ::protobuf_unittest::TestRequiredMessageMap_MapFieldEntry_DoNotUse::InitAsDefaultInstance();
  639. }
  640. ::google::protobuf::internal::SCCInfo<1> scc_info_TestRequiredMessageMap_MapFieldEntry_DoNotUse =
  641. {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsTestRequiredMessageMap_MapFieldEntry_DoNotUse}, {
  642. &protobuf_google_2fprotobuf_2funittest_2eproto::scc_info_TestRequired.base,}};
  643. static void InitDefaultsTestRequiredMessageMap() {
  644. GOOGLE_PROTOBUF_VERIFY_VERSION;
  645. {
  646. void* ptr = &::protobuf_unittest::_TestRequiredMessageMap_default_instance_;
  647. new (ptr) ::protobuf_unittest::TestRequiredMessageMap();
  648. ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
  649. }
  650. ::protobuf_unittest::TestRequiredMessageMap::InitAsDefaultInstance();
  651. }
  652. ::google::protobuf::internal::SCCInfo<1> scc_info_TestRequiredMessageMap =
  653. {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsTestRequiredMessageMap}, {
  654. &protobuf_google_2fprotobuf_2fmap_5funittest_2eproto::scc_info_TestRequiredMessageMap_MapFieldEntry_DoNotUse.base,}};
  655. static void InitDefaultsTestArenaMap_MapInt32Int32Entry_DoNotUse() {
  656. GOOGLE_PROTOBUF_VERIFY_VERSION;
  657. {
  658. void* ptr = &::protobuf_unittest::_TestArenaMap_MapInt32Int32Entry_DoNotUse_default_instance_;
  659. new (ptr) ::protobuf_unittest::TestArenaMap_MapInt32Int32Entry_DoNotUse();
  660. }
  661. ::protobuf_unittest::TestArenaMap_MapInt32Int32Entry_DoNotUse::InitAsDefaultInstance();
  662. }
  663. ::google::protobuf::internal::SCCInfo<0> scc_info_TestArenaMap_MapInt32Int32Entry_DoNotUse =
  664. {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsTestArenaMap_MapInt32Int32Entry_DoNotUse}, {}};
  665. static void InitDefaultsTestArenaMap_MapInt64Int64Entry_DoNotUse() {
  666. GOOGLE_PROTOBUF_VERIFY_VERSION;
  667. {
  668. void* ptr = &::protobuf_unittest::_TestArenaMap_MapInt64Int64Entry_DoNotUse_default_instance_;
  669. new (ptr) ::protobuf_unittest::TestArenaMap_MapInt64Int64Entry_DoNotUse();
  670. }
  671. ::protobuf_unittest::TestArenaMap_MapInt64Int64Entry_DoNotUse::InitAsDefaultInstance();
  672. }
  673. ::google::protobuf::internal::SCCInfo<0> scc_info_TestArenaMap_MapInt64Int64Entry_DoNotUse =
  674. {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsTestArenaMap_MapInt64Int64Entry_DoNotUse}, {}};
  675. static void InitDefaultsTestArenaMap_MapUint32Uint32Entry_DoNotUse() {
  676. GOOGLE_PROTOBUF_VERIFY_VERSION;
  677. {
  678. void* ptr = &::protobuf_unittest::_TestArenaMap_MapUint32Uint32Entry_DoNotUse_default_instance_;
  679. new (ptr) ::protobuf_unittest::TestArenaMap_MapUint32Uint32Entry_DoNotUse();
  680. }
  681. ::protobuf_unittest::TestArenaMap_MapUint32Uint32Entry_DoNotUse::InitAsDefaultInstance();
  682. }
  683. ::google::protobuf::internal::SCCInfo<0> scc_info_TestArenaMap_MapUint32Uint32Entry_DoNotUse =
  684. {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsTestArenaMap_MapUint32Uint32Entry_DoNotUse}, {}};
  685. static void InitDefaultsTestArenaMap_MapUint64Uint64Entry_DoNotUse() {
  686. GOOGLE_PROTOBUF_VERIFY_VERSION;
  687. {
  688. void* ptr = &::protobuf_unittest::_TestArenaMap_MapUint64Uint64Entry_DoNotUse_default_instance_;
  689. new (ptr) ::protobuf_unittest::TestArenaMap_MapUint64Uint64Entry_DoNotUse();
  690. }
  691. ::protobuf_unittest::TestArenaMap_MapUint64Uint64Entry_DoNotUse::InitAsDefaultInstance();
  692. }
  693. ::google::protobuf::internal::SCCInfo<0> scc_info_TestArenaMap_MapUint64Uint64Entry_DoNotUse =
  694. {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsTestArenaMap_MapUint64Uint64Entry_DoNotUse}, {}};
  695. static void InitDefaultsTestArenaMap_MapSint32Sint32Entry_DoNotUse() {
  696. GOOGLE_PROTOBUF_VERIFY_VERSION;
  697. {
  698. void* ptr = &::protobuf_unittest::_TestArenaMap_MapSint32Sint32Entry_DoNotUse_default_instance_;
  699. new (ptr) ::protobuf_unittest::TestArenaMap_MapSint32Sint32Entry_DoNotUse();
  700. }
  701. ::protobuf_unittest::TestArenaMap_MapSint32Sint32Entry_DoNotUse::InitAsDefaultInstance();
  702. }
  703. ::google::protobuf::internal::SCCInfo<0> scc_info_TestArenaMap_MapSint32Sint32Entry_DoNotUse =
  704. {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsTestArenaMap_MapSint32Sint32Entry_DoNotUse}, {}};
  705. static void InitDefaultsTestArenaMap_MapSint64Sint64Entry_DoNotUse() {
  706. GOOGLE_PROTOBUF_VERIFY_VERSION;
  707. {
  708. void* ptr = &::protobuf_unittest::_TestArenaMap_MapSint64Sint64Entry_DoNotUse_default_instance_;
  709. new (ptr) ::protobuf_unittest::TestArenaMap_MapSint64Sint64Entry_DoNotUse();
  710. }
  711. ::protobuf_unittest::TestArenaMap_MapSint64Sint64Entry_DoNotUse::InitAsDefaultInstance();
  712. }
  713. ::google::protobuf::internal::SCCInfo<0> scc_info_TestArenaMap_MapSint64Sint64Entry_DoNotUse =
  714. {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsTestArenaMap_MapSint64Sint64Entry_DoNotUse}, {}};
  715. static void InitDefaultsTestArenaMap_MapFixed32Fixed32Entry_DoNotUse() {
  716. GOOGLE_PROTOBUF_VERIFY_VERSION;
  717. {
  718. void* ptr = &::protobuf_unittest::_TestArenaMap_MapFixed32Fixed32Entry_DoNotUse_default_instance_;
  719. new (ptr) ::protobuf_unittest::TestArenaMap_MapFixed32Fixed32Entry_DoNotUse();
  720. }
  721. ::protobuf_unittest::TestArenaMap_MapFixed32Fixed32Entry_DoNotUse::InitAsDefaultInstance();
  722. }
  723. ::google::protobuf::internal::SCCInfo<0> scc_info_TestArenaMap_MapFixed32Fixed32Entry_DoNotUse =
  724. {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsTestArenaMap_MapFixed32Fixed32Entry_DoNotUse}, {}};
  725. static void InitDefaultsTestArenaMap_MapFixed64Fixed64Entry_DoNotUse() {
  726. GOOGLE_PROTOBUF_VERIFY_VERSION;
  727. {
  728. void* ptr = &::protobuf_unittest::_TestArenaMap_MapFixed64Fixed64Entry_DoNotUse_default_instance_;
  729. new (ptr) ::protobuf_unittest::TestArenaMap_MapFixed64Fixed64Entry_DoNotUse();
  730. }
  731. ::protobuf_unittest::TestArenaMap_MapFixed64Fixed64Entry_DoNotUse::InitAsDefaultInstance();
  732. }
  733. ::google::protobuf::internal::SCCInfo<0> scc_info_TestArenaMap_MapFixed64Fixed64Entry_DoNotUse =
  734. {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsTestArenaMap_MapFixed64Fixed64Entry_DoNotUse}, {}};
  735. static void InitDefaultsTestArenaMap_MapSfixed32Sfixed32Entry_DoNotUse() {
  736. GOOGLE_PROTOBUF_VERIFY_VERSION;
  737. {
  738. void* ptr = &::protobuf_unittest::_TestArenaMap_MapSfixed32Sfixed32Entry_DoNotUse_default_instance_;
  739. new (ptr) ::protobuf_unittest::TestArenaMap_MapSfixed32Sfixed32Entry_DoNotUse();
  740. }
  741. ::protobuf_unittest::TestArenaMap_MapSfixed32Sfixed32Entry_DoNotUse::InitAsDefaultInstance();
  742. }
  743. ::google::protobuf::internal::SCCInfo<0> scc_info_TestArenaMap_MapSfixed32Sfixed32Entry_DoNotUse =
  744. {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsTestArenaMap_MapSfixed32Sfixed32Entry_DoNotUse}, {}};
  745. static void InitDefaultsTestArenaMap_MapSfixed64Sfixed64Entry_DoNotUse() {
  746. GOOGLE_PROTOBUF_VERIFY_VERSION;
  747. {
  748. void* ptr = &::protobuf_unittest::_TestArenaMap_MapSfixed64Sfixed64Entry_DoNotUse_default_instance_;
  749. new (ptr) ::protobuf_unittest::TestArenaMap_MapSfixed64Sfixed64Entry_DoNotUse();
  750. }
  751. ::protobuf_unittest::TestArenaMap_MapSfixed64Sfixed64Entry_DoNotUse::InitAsDefaultInstance();
  752. }
  753. ::google::protobuf::internal::SCCInfo<0> scc_info_TestArenaMap_MapSfixed64Sfixed64Entry_DoNotUse =
  754. {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsTestArenaMap_MapSfixed64Sfixed64Entry_DoNotUse}, {}};
  755. static void InitDefaultsTestArenaMap_MapInt32FloatEntry_DoNotUse() {
  756. GOOGLE_PROTOBUF_VERIFY_VERSION;
  757. {
  758. void* ptr = &::protobuf_unittest::_TestArenaMap_MapInt32FloatEntry_DoNotUse_default_instance_;
  759. new (ptr) ::protobuf_unittest::TestArenaMap_MapInt32FloatEntry_DoNotUse();
  760. }
  761. ::protobuf_unittest::TestArenaMap_MapInt32FloatEntry_DoNotUse::InitAsDefaultInstance();
  762. }
  763. ::google::protobuf::internal::SCCInfo<0> scc_info_TestArenaMap_MapInt32FloatEntry_DoNotUse =
  764. {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsTestArenaMap_MapInt32FloatEntry_DoNotUse}, {}};
  765. static void InitDefaultsTestArenaMap_MapInt32DoubleEntry_DoNotUse() {
  766. GOOGLE_PROTOBUF_VERIFY_VERSION;
  767. {
  768. void* ptr = &::protobuf_unittest::_TestArenaMap_MapInt32DoubleEntry_DoNotUse_default_instance_;
  769. new (ptr) ::protobuf_unittest::TestArenaMap_MapInt32DoubleEntry_DoNotUse();
  770. }
  771. ::protobuf_unittest::TestArenaMap_MapInt32DoubleEntry_DoNotUse::InitAsDefaultInstance();
  772. }
  773. ::google::protobuf::internal::SCCInfo<0> scc_info_TestArenaMap_MapInt32DoubleEntry_DoNotUse =
  774. {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsTestArenaMap_MapInt32DoubleEntry_DoNotUse}, {}};
  775. static void InitDefaultsTestArenaMap_MapBoolBoolEntry_DoNotUse() {
  776. GOOGLE_PROTOBUF_VERIFY_VERSION;
  777. {
  778. void* ptr = &::protobuf_unittest::_TestArenaMap_MapBoolBoolEntry_DoNotUse_default_instance_;
  779. new (ptr) ::protobuf_unittest::TestArenaMap_MapBoolBoolEntry_DoNotUse();
  780. }
  781. ::protobuf_unittest::TestArenaMap_MapBoolBoolEntry_DoNotUse::InitAsDefaultInstance();
  782. }
  783. ::google::protobuf::internal::SCCInfo<0> scc_info_TestArenaMap_MapBoolBoolEntry_DoNotUse =
  784. {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsTestArenaMap_MapBoolBoolEntry_DoNotUse}, {}};
  785. static void InitDefaultsTestArenaMap_MapStringStringEntry_DoNotUse() {
  786. GOOGLE_PROTOBUF_VERIFY_VERSION;
  787. {
  788. void* ptr = &::protobuf_unittest::_TestArenaMap_MapStringStringEntry_DoNotUse_default_instance_;
  789. new (ptr) ::protobuf_unittest::TestArenaMap_MapStringStringEntry_DoNotUse();
  790. }
  791. ::protobuf_unittest::TestArenaMap_MapStringStringEntry_DoNotUse::InitAsDefaultInstance();
  792. }
  793. ::google::protobuf::internal::SCCInfo<0> scc_info_TestArenaMap_MapStringStringEntry_DoNotUse =
  794. {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsTestArenaMap_MapStringStringEntry_DoNotUse}, {}};
  795. static void InitDefaultsTestArenaMap_MapInt32BytesEntry_DoNotUse() {
  796. GOOGLE_PROTOBUF_VERIFY_VERSION;
  797. {
  798. void* ptr = &::protobuf_unittest::_TestArenaMap_MapInt32BytesEntry_DoNotUse_default_instance_;
  799. new (ptr) ::protobuf_unittest::TestArenaMap_MapInt32BytesEntry_DoNotUse();
  800. }
  801. ::protobuf_unittest::TestArenaMap_MapInt32BytesEntry_DoNotUse::InitAsDefaultInstance();
  802. }
  803. ::google::protobuf::internal::SCCInfo<0> scc_info_TestArenaMap_MapInt32BytesEntry_DoNotUse =
  804. {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsTestArenaMap_MapInt32BytesEntry_DoNotUse}, {}};
  805. static void InitDefaultsTestArenaMap_MapInt32EnumEntry_DoNotUse() {
  806. GOOGLE_PROTOBUF_VERIFY_VERSION;
  807. {
  808. void* ptr = &::protobuf_unittest::_TestArenaMap_MapInt32EnumEntry_DoNotUse_default_instance_;
  809. new (ptr) ::protobuf_unittest::TestArenaMap_MapInt32EnumEntry_DoNotUse();
  810. }
  811. ::protobuf_unittest::TestArenaMap_MapInt32EnumEntry_DoNotUse::InitAsDefaultInstance();
  812. }
  813. ::google::protobuf::internal::SCCInfo<0> scc_info_TestArenaMap_MapInt32EnumEntry_DoNotUse =
  814. {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsTestArenaMap_MapInt32EnumEntry_DoNotUse}, {}};
  815. static void InitDefaultsTestArenaMap_MapInt32ForeignMessageEntry_DoNotUse() {
  816. GOOGLE_PROTOBUF_VERIFY_VERSION;
  817. {
  818. void* ptr = &::protobuf_unittest::_TestArenaMap_MapInt32ForeignMessageEntry_DoNotUse_default_instance_;
  819. new (ptr) ::protobuf_unittest::TestArenaMap_MapInt32ForeignMessageEntry_DoNotUse();
  820. }
  821. ::protobuf_unittest::TestArenaMap_MapInt32ForeignMessageEntry_DoNotUse::InitAsDefaultInstance();
  822. }
  823. ::google::protobuf::internal::SCCInfo<1> scc_info_TestArenaMap_MapInt32ForeignMessageEntry_DoNotUse =
  824. {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsTestArenaMap_MapInt32ForeignMessageEntry_DoNotUse}, {
  825. &protobuf_google_2fprotobuf_2funittest_2eproto::scc_info_ForeignMessage.base,}};
  826. static void InitDefaultsTestArenaMap_MapInt32ForeignMessageNoArenaEntry_DoNotUse() {
  827. GOOGLE_PROTOBUF_VERIFY_VERSION;
  828. {
  829. void* ptr = &::protobuf_unittest::_TestArenaMap_MapInt32ForeignMessageNoArenaEntry_DoNotUse_default_instance_;
  830. new (ptr) ::protobuf_unittest::TestArenaMap_MapInt32ForeignMessageNoArenaEntry_DoNotUse();
  831. }
  832. ::protobuf_unittest::TestArenaMap_MapInt32ForeignMessageNoArenaEntry_DoNotUse::InitAsDefaultInstance();
  833. }
  834. ::google::protobuf::internal::SCCInfo<1> scc_info_TestArenaMap_MapInt32ForeignMessageNoArenaEntry_DoNotUse =
  835. {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsTestArenaMap_MapInt32ForeignMessageNoArenaEntry_DoNotUse}, {
  836. &protobuf_google_2fprotobuf_2funittest_5fno_5farena_2eproto::scc_info_ForeignMessage.base,}};
  837. static void InitDefaultsTestArenaMap() {
  838. GOOGLE_PROTOBUF_VERIFY_VERSION;
  839. {
  840. void* ptr = &::protobuf_unittest::_TestArenaMap_default_instance_;
  841. new (ptr) ::protobuf_unittest::TestArenaMap();
  842. ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
  843. }
  844. ::protobuf_unittest::TestArenaMap::InitAsDefaultInstance();
  845. }
  846. ::google::protobuf::internal::SCCInfo<18> scc_info_TestArenaMap =
  847. {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 18, InitDefaultsTestArenaMap}, {
  848. &protobuf_google_2fprotobuf_2fmap_5funittest_2eproto::scc_info_TestArenaMap_MapInt32Int32Entry_DoNotUse.base,
  849. &protobuf_google_2fprotobuf_2fmap_5funittest_2eproto::scc_info_TestArenaMap_MapInt64Int64Entry_DoNotUse.base,
  850. &protobuf_google_2fprotobuf_2fmap_5funittest_2eproto::scc_info_TestArenaMap_MapUint32Uint32Entry_DoNotUse.base,
  851. &protobuf_google_2fprotobuf_2fmap_5funittest_2eproto::scc_info_TestArenaMap_MapUint64Uint64Entry_DoNotUse.base,
  852. &protobuf_google_2fprotobuf_2fmap_5funittest_2eproto::scc_info_TestArenaMap_MapSint32Sint32Entry_DoNotUse.base,
  853. &protobuf_google_2fprotobuf_2fmap_5funittest_2eproto::scc_info_TestArenaMap_MapSint64Sint64Entry_DoNotUse.base,
  854. &protobuf_google_2fprotobuf_2fmap_5funittest_2eproto::scc_info_TestArenaMap_MapFixed32Fixed32Entry_DoNotUse.base,
  855. &protobuf_google_2fprotobuf_2fmap_5funittest_2eproto::scc_info_TestArenaMap_MapFixed64Fixed64Entry_DoNotUse.base,
  856. &protobuf_google_2fprotobuf_2fmap_5funittest_2eproto::scc_info_TestArenaMap_MapSfixed32Sfixed32Entry_DoNotUse.base,
  857. &protobuf_google_2fprotobuf_2fmap_5funittest_2eproto::scc_info_TestArenaMap_MapSfixed64Sfixed64Entry_DoNotUse.base,
  858. &protobuf_google_2fprotobuf_2fmap_5funittest_2eproto::scc_info_TestArenaMap_MapInt32FloatEntry_DoNotUse.base,
  859. &protobuf_google_2fprotobuf_2fmap_5funittest_2eproto::scc_info_TestArenaMap_MapInt32DoubleEntry_DoNotUse.base,
  860. &protobuf_google_2fprotobuf_2fmap_5funittest_2eproto::scc_info_TestArenaMap_MapBoolBoolEntry_DoNotUse.base,
  861. &protobuf_google_2fprotobuf_2fmap_5funittest_2eproto::scc_info_TestArenaMap_MapStringStringEntry_DoNotUse.base,
  862. &protobuf_google_2fprotobuf_2fmap_5funittest_2eproto::scc_info_TestArenaMap_MapInt32BytesEntry_DoNotUse.base,
  863. &protobuf_google_2fprotobuf_2fmap_5funittest_2eproto::scc_info_TestArenaMap_MapInt32EnumEntry_DoNotUse.base,
  864. &protobuf_google_2fprotobuf_2fmap_5funittest_2eproto::scc_info_TestArenaMap_MapInt32ForeignMessageEntry_DoNotUse.base,
  865. &protobuf_google_2fprotobuf_2fmap_5funittest_2eproto::scc_info_TestArenaMap_MapInt32ForeignMessageNoArenaEntry_DoNotUse.base,}};
  866. static void InitDefaultsMessageContainingEnumCalledType() {
  867. GOOGLE_PROTOBUF_VERIFY_VERSION;
  868. {
  869. void* ptr = &::protobuf_unittest::_MessageContainingEnumCalledType_TypeEntry_DoNotUse_default_instance_;
  870. new (ptr) ::protobuf_unittest::MessageContainingEnumCalledType_TypeEntry_DoNotUse();
  871. }
  872. {
  873. void* ptr = &::protobuf_unittest::_MessageContainingEnumCalledType_default_instance_;
  874. new (ptr) ::protobuf_unittest::MessageContainingEnumCalledType();
  875. ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
  876. }
  877. ::protobuf_unittest::MessageContainingEnumCalledType_TypeEntry_DoNotUse::InitAsDefaultInstance();
  878. ::protobuf_unittest::MessageContainingEnumCalledType::InitAsDefaultInstance();
  879. }
  880. ::google::protobuf::internal::SCCInfo<0> scc_info_MessageContainingEnumCalledType =
  881. {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsMessageContainingEnumCalledType}, {}};
  882. static void InitDefaultsMessageContainingMapCalledEntry_EntryEntry_DoNotUse() {
  883. GOOGLE_PROTOBUF_VERIFY_VERSION;
  884. {
  885. void* ptr = &::protobuf_unittest::_MessageContainingMapCalledEntry_EntryEntry_DoNotUse_default_instance_;
  886. new (ptr) ::protobuf_unittest::MessageContainingMapCalledEntry_EntryEntry_DoNotUse();
  887. }
  888. ::protobuf_unittest::MessageContainingMapCalledEntry_EntryEntry_DoNotUse::InitAsDefaultInstance();
  889. }
  890. ::google::protobuf::internal::SCCInfo<0> scc_info_MessageContainingMapCalledEntry_EntryEntry_DoNotUse =
  891. {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsMessageContainingMapCalledEntry_EntryEntry_DoNotUse}, {}};
  892. static void InitDefaultsMessageContainingMapCalledEntry() {
  893. GOOGLE_PROTOBUF_VERIFY_VERSION;
  894. {
  895. void* ptr = &::protobuf_unittest::_MessageContainingMapCalledEntry_default_instance_;
  896. new (ptr) ::protobuf_unittest::MessageContainingMapCalledEntry();
  897. ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
  898. }
  899. ::protobuf_unittest::MessageContainingMapCalledEntry::InitAsDefaultInstance();
  900. }
  901. ::google::protobuf::internal::SCCInfo<1> scc_info_MessageContainingMapCalledEntry =
  902. {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsMessageContainingMapCalledEntry}, {
  903. &protobuf_google_2fprotobuf_2fmap_5funittest_2eproto::scc_info_MessageContainingMapCalledEntry_EntryEntry_DoNotUse.base,}};
  904. static void InitDefaultsTestRecursiveMapMessage() {
  905. GOOGLE_PROTOBUF_VERIFY_VERSION;
  906. {
  907. void* ptr = &::protobuf_unittest::_TestRecursiveMapMessage_AEntry_DoNotUse_default_instance_;
  908. new (ptr) ::protobuf_unittest::TestRecursiveMapMessage_AEntry_DoNotUse();
  909. }
  910. {
  911. void* ptr = &::protobuf_unittest::_TestRecursiveMapMessage_default_instance_;
  912. new (ptr) ::protobuf_unittest::TestRecursiveMapMessage();
  913. ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
  914. }
  915. ::protobuf_unittest::TestRecursiveMapMessage_AEntry_DoNotUse::InitAsDefaultInstance();
  916. ::protobuf_unittest::TestRecursiveMapMessage::InitAsDefaultInstance();
  917. }
  918. ::google::protobuf::internal::SCCInfo<0> scc_info_TestRecursiveMapMessage =
  919. {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsTestRecursiveMapMessage}, {}};
  920. void InitDefaults() {
  921. ::google::protobuf::internal::InitSCC(&scc_info_TestMap_MapInt32Int32Entry_DoNotUse.base);
  922. ::google::protobuf::internal::InitSCC(&scc_info_TestMap_MapInt64Int64Entry_DoNotUse.base);
  923. ::google::protobuf::internal::InitSCC(&scc_info_TestMap_MapUint32Uint32Entry_DoNotUse.base);
  924. ::google::protobuf::internal::InitSCC(&scc_info_TestMap_MapUint64Uint64Entry_DoNotUse.base);
  925. ::google::protobuf::internal::InitSCC(&scc_info_TestMap_MapSint32Sint32Entry_DoNotUse.base);
  926. ::google::protobuf::internal::InitSCC(&scc_info_TestMap_MapSint64Sint64Entry_DoNotUse.base);
  927. ::google::protobuf::internal::InitSCC(&scc_info_TestMap_MapFixed32Fixed32Entry_DoNotUse.base);
  928. ::google::protobuf::internal::InitSCC(&scc_info_TestMap_MapFixed64Fixed64Entry_DoNotUse.base);
  929. ::google::protobuf::internal::InitSCC(&scc_info_TestMap_MapSfixed32Sfixed32Entry_DoNotUse.base);
  930. ::google::protobuf::internal::InitSCC(&scc_info_TestMap_MapSfixed64Sfixed64Entry_DoNotUse.base);
  931. ::google::protobuf::internal::InitSCC(&scc_info_TestMap_MapInt32FloatEntry_DoNotUse.base);
  932. ::google::protobuf::internal::InitSCC(&scc_info_TestMap_MapInt32DoubleEntry_DoNotUse.base);
  933. ::google::protobuf::internal::InitSCC(&scc_info_TestMap_MapBoolBoolEntry_DoNotUse.base);
  934. ::google::protobuf::internal::InitSCC(&scc_info_TestMap_MapStringStringEntry_DoNotUse.base);
  935. ::google::protobuf::internal::InitSCC(&scc_info_TestMap_MapInt32BytesEntry_DoNotUse.base);
  936. ::google::protobuf::internal::InitSCC(&scc_info_TestMap_MapInt32EnumEntry_DoNotUse.base);
  937. ::google::protobuf::internal::InitSCC(&scc_info_TestMap_MapInt32ForeignMessageEntry_DoNotUse.base);
  938. ::google::protobuf::internal::InitSCC(&scc_info_TestMap_MapStringForeignMessageEntry_DoNotUse.base);
  939. ::google::protobuf::internal::InitSCC(&scc_info_TestMap_MapInt32AllTypesEntry_DoNotUse.base);
  940. ::google::protobuf::internal::InitSCC(&scc_info_TestMap.base);
  941. ::google::protobuf::internal::InitSCC(&scc_info_TestMapSubmessage.base);
  942. ::google::protobuf::internal::InitSCC(&scc_info_TestMessageMap_MapInt32MessageEntry_DoNotUse.base);
  943. ::google::protobuf::internal::InitSCC(&scc_info_TestMessageMap.base);
  944. ::google::protobuf::internal::InitSCC(&scc_info_TestSameTypeMap_Map1Entry_DoNotUse.base);
  945. ::google::protobuf::internal::InitSCC(&scc_info_TestSameTypeMap_Map2Entry_DoNotUse.base);
  946. ::google::protobuf::internal::InitSCC(&scc_info_TestSameTypeMap.base);
  947. ::google::protobuf::internal::InitSCC(&scc_info_TestRequiredMessageMap_MapFieldEntry_DoNotUse.base);
  948. ::google::protobuf::internal::InitSCC(&scc_info_TestRequiredMessageMap.base);
  949. ::google::protobuf::internal::InitSCC(&scc_info_TestArenaMap_MapInt32Int32Entry_DoNotUse.base);
  950. ::google::protobuf::internal::InitSCC(&scc_info_TestArenaMap_MapInt64Int64Entry_DoNotUse.base);
  951. ::google::protobuf::internal::InitSCC(&scc_info_TestArenaMap_MapUint32Uint32Entry_DoNotUse.base);
  952. ::google::protobuf::internal::InitSCC(&scc_info_TestArenaMap_MapUint64Uint64Entry_DoNotUse.base);
  953. ::google::protobuf::internal::InitSCC(&scc_info_TestArenaMap_MapSint32Sint32Entry_DoNotUse.base);
  954. ::google::protobuf::internal::InitSCC(&scc_info_TestArenaMap_MapSint64Sint64Entry_DoNotUse.base);
  955. ::google::protobuf::internal::InitSCC(&scc_info_TestArenaMap_MapFixed32Fixed32Entry_DoNotUse.base);
  956. ::google::protobuf::internal::InitSCC(&scc_info_TestArenaMap_MapFixed64Fixed64Entry_DoNotUse.base);
  957. ::google::protobuf::internal::InitSCC(&scc_info_TestArenaMap_MapSfixed32Sfixed32Entry_DoNotUse.base);
  958. ::google::protobuf::internal::InitSCC(&scc_info_TestArenaMap_MapSfixed64Sfixed64Entry_DoNotUse.base);
  959. ::google::protobuf::internal::InitSCC(&scc_info_TestArenaMap_MapInt32FloatEntry_DoNotUse.base);
  960. ::google::protobuf::internal::InitSCC(&scc_info_TestArenaMap_MapInt32DoubleEntry_DoNotUse.base);
  961. ::google::protobuf::internal::InitSCC(&scc_info_TestArenaMap_MapBoolBoolEntry_DoNotUse.base);
  962. ::google::protobuf::internal::InitSCC(&scc_info_TestArenaMap_MapStringStringEntry_DoNotUse.base);
  963. ::google::protobuf::internal::InitSCC(&scc_info_TestArenaMap_MapInt32BytesEntry_DoNotUse.base);
  964. ::google::protobuf::internal::InitSCC(&scc_info_TestArenaMap_MapInt32EnumEntry_DoNotUse.base);
  965. ::google::protobuf::internal::InitSCC(&scc_info_TestArenaMap_MapInt32ForeignMessageEntry_DoNotUse.base);
  966. ::google::protobuf::internal::InitSCC(&scc_info_TestArenaMap_MapInt32ForeignMessageNoArenaEntry_DoNotUse.base);
  967. ::google::protobuf::internal::InitSCC(&scc_info_TestArenaMap.base);
  968. ::google::protobuf::internal::InitSCC(&scc_info_MessageContainingEnumCalledType.base);
  969. ::google::protobuf::internal::InitSCC(&scc_info_MessageContainingMapCalledEntry_EntryEntry_DoNotUse.base);
  970. ::google::protobuf::internal::InitSCC(&scc_info_MessageContainingMapCalledEntry.base);
  971. ::google::protobuf::internal::InitSCC(&scc_info_TestRecursiveMapMessage.base);
  972. }
  973. ::google::protobuf::Metadata file_level_metadata[53];
  974. const ::google::protobuf::EnumDescriptor* file_level_enum_descriptors[2];
  975. const ::google::protobuf::uint32 TableStruct::offsets[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
  976. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::TestMap_MapInt32Int32Entry_DoNotUse, _has_bits_),
  977. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::TestMap_MapInt32Int32Entry_DoNotUse, _internal_metadata_),
  978. ~0u, // no _extensions_
  979. ~0u, // no _oneof_case_
  980. ~0u, // no _weak_field_map_
  981. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::TestMap_MapInt32Int32Entry_DoNotUse, key_),
  982. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::TestMap_MapInt32Int32Entry_DoNotUse, value_),
  983. 0,
  984. 1,
  985. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::TestMap_MapInt64Int64Entry_DoNotUse, _has_bits_),
  986. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::TestMap_MapInt64Int64Entry_DoNotUse, _internal_metadata_),
  987. ~0u, // no _extensions_
  988. ~0u, // no _oneof_case_
  989. ~0u, // no _weak_field_map_
  990. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::TestMap_MapInt64Int64Entry_DoNotUse, key_),
  991. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::TestMap_MapInt64Int64Entry_DoNotUse, value_),
  992. 0,
  993. 1,
  994. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::TestMap_MapUint32Uint32Entry_DoNotUse, _has_bits_),
  995. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::TestMap_MapUint32Uint32Entry_DoNotUse, _internal_metadata_),
  996. ~0u, // no _extensions_
  997. ~0u, // no _oneof_case_
  998. ~0u, // no _weak_field_map_
  999. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::TestMap_MapUint32Uint32Entry_DoNotUse, key_),
  1000. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::TestMap_MapUint32Uint32Entry_DoNotUse, value_),
  1001. 0,
  1002. 1,
  1003. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::TestMap_MapUint64Uint64Entry_DoNotUse, _has_bits_),
  1004. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::TestMap_MapUint64Uint64Entry_DoNotUse, _internal_metadata_),
  1005. ~0u, // no _extensions_
  1006. ~0u, // no _oneof_case_
  1007. ~0u, // no _weak_field_map_
  1008. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::TestMap_MapUint64Uint64Entry_DoNotUse, key_),
  1009. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::TestMap_MapUint64Uint64Entry_DoNotUse, value_),
  1010. 0,
  1011. 1,
  1012. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::TestMap_MapSint32Sint32Entry_DoNotUse, _has_bits_),
  1013. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::TestMap_MapSint32Sint32Entry_DoNotUse, _internal_metadata_),
  1014. ~0u, // no _extensions_
  1015. ~0u, // no _oneof_case_
  1016. ~0u, // no _weak_field_map_
  1017. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::TestMap_MapSint32Sint32Entry_DoNotUse, key_),
  1018. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::TestMap_MapSint32Sint32Entry_DoNotUse, value_),
  1019. 0,
  1020. 1,
  1021. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::TestMap_MapSint64Sint64Entry_DoNotUse, _has_bits_),
  1022. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::TestMap_MapSint64Sint64Entry_DoNotUse, _internal_metadata_),
  1023. ~0u, // no _extensions_
  1024. ~0u, // no _oneof_case_
  1025. ~0u, // no _weak_field_map_
  1026. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::TestMap_MapSint64Sint64Entry_DoNotUse, key_),
  1027. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::TestMap_MapSint64Sint64Entry_DoNotUse, value_),
  1028. 0,
  1029. 1,
  1030. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::TestMap_MapFixed32Fixed32Entry_DoNotUse, _has_bits_),
  1031. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::TestMap_MapFixed32Fixed32Entry_DoNotUse, _internal_metadata_),
  1032. ~0u, // no _extensions_
  1033. ~0u, // no _oneof_case_
  1034. ~0u, // no _weak_field_map_
  1035. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::TestMap_MapFixed32Fixed32Entry_DoNotUse, key_),
  1036. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::TestMap_MapFixed32Fixed32Entry_DoNotUse, value_),
  1037. 0,
  1038. 1,
  1039. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::TestMap_MapFixed64Fixed64Entry_DoNotUse, _has_bits_),
  1040. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::TestMap_MapFixed64Fixed64Entry_DoNotUse, _internal_metadata_),
  1041. ~0u, // no _extensions_
  1042. ~0u, // no _oneof_case_
  1043. ~0u, // no _weak_field_map_
  1044. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::TestMap_MapFixed64Fixed64Entry_DoNotUse, key_),
  1045. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::TestMap_MapFixed64Fixed64Entry_DoNotUse, value_),
  1046. 0,
  1047. 1,
  1048. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::TestMap_MapSfixed32Sfixed32Entry_DoNotUse, _has_bits_),
  1049. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::TestMap_MapSfixed32Sfixed32Entry_DoNotUse, _internal_metadata_),
  1050. ~0u, // no _extensions_
  1051. ~0u, // no _oneof_case_
  1052. ~0u, // no _weak_field_map_
  1053. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::TestMap_MapSfixed32Sfixed32Entry_DoNotUse, key_),
  1054. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::TestMap_MapSfixed32Sfixed32Entry_DoNotUse, value_),
  1055. 0,
  1056. 1,
  1057. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::TestMap_MapSfixed64Sfixed64Entry_DoNotUse, _has_bits_),
  1058. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::TestMap_MapSfixed64Sfixed64Entry_DoNotUse, _internal_metadata_),
  1059. ~0u, // no _extensions_
  1060. ~0u, // no _oneof_case_
  1061. ~0u, // no _weak_field_map_
  1062. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::TestMap_MapSfixed64Sfixed64Entry_DoNotUse, key_),
  1063. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::TestMap_MapSfixed64Sfixed64Entry_DoNotUse, value_),
  1064. 0,
  1065. 1,
  1066. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::TestMap_MapInt32FloatEntry_DoNotUse, _has_bits_),
  1067. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::TestMap_MapInt32FloatEntry_DoNotUse, _internal_metadata_),
  1068. ~0u, // no _extensions_
  1069. ~0u, // no _oneof_case_
  1070. ~0u, // no _weak_field_map_
  1071. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::TestMap_MapInt32FloatEntry_DoNotUse, key_),
  1072. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::TestMap_MapInt32FloatEntry_DoNotUse, value_),
  1073. 0,
  1074. 1,
  1075. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::TestMap_MapInt32DoubleEntry_DoNotUse, _has_bits_),
  1076. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::TestMap_MapInt32DoubleEntry_DoNotUse, _internal_metadata_),
  1077. ~0u, // no _extensions_
  1078. ~0u, // no _oneof_case_
  1079. ~0u, // no _weak_field_map_
  1080. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::TestMap_MapInt32DoubleEntry_DoNotUse, key_),
  1081. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::TestMap_MapInt32DoubleEntry_DoNotUse, value_),
  1082. 0,
  1083. 1,
  1084. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::TestMap_MapBoolBoolEntry_DoNotUse, _has_bits_),
  1085. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::TestMap_MapBoolBoolEntry_DoNotUse, _internal_metadata_),
  1086. ~0u, // no _extensions_
  1087. ~0u, // no _oneof_case_
  1088. ~0u, // no _weak_field_map_
  1089. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::TestMap_MapBoolBoolEntry_DoNotUse, key_),
  1090. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::TestMap_MapBoolBoolEntry_DoNotUse, value_),
  1091. 0,
  1092. 1,
  1093. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::TestMap_MapStringStringEntry_DoNotUse, _has_bits_),
  1094. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::TestMap_MapStringStringEntry_DoNotUse, _internal_metadata_),
  1095. ~0u, // no _extensions_
  1096. ~0u, // no _oneof_case_
  1097. ~0u, // no _weak_field_map_
  1098. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::TestMap_MapStringStringEntry_DoNotUse, key_),
  1099. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::TestMap_MapStringStringEntry_DoNotUse, value_),
  1100. 0,
  1101. 1,
  1102. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::TestMap_MapInt32BytesEntry_DoNotUse, _has_bits_),
  1103. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::TestMap_MapInt32BytesEntry_DoNotUse, _internal_metadata_),
  1104. ~0u, // no _extensions_
  1105. ~0u, // no _oneof_case_
  1106. ~0u, // no _weak_field_map_
  1107. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::TestMap_MapInt32BytesEntry_DoNotUse, key_),
  1108. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::TestMap_MapInt32BytesEntry_DoNotUse, value_),
  1109. 0,
  1110. 1,
  1111. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::TestMap_MapInt32EnumEntry_DoNotUse, _has_bits_),
  1112. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::TestMap_MapInt32EnumEntry_DoNotUse, _internal_metadata_),
  1113. ~0u, // no _extensions_
  1114. ~0u, // no _oneof_case_
  1115. ~0u, // no _weak_field_map_
  1116. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::TestMap_MapInt32EnumEntry_DoNotUse, key_),
  1117. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::TestMap_MapInt32EnumEntry_DoNotUse, value_),
  1118. 0,
  1119. 1,
  1120. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::TestMap_MapInt32ForeignMessageEntry_DoNotUse, _has_bits_),
  1121. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::TestMap_MapInt32ForeignMessageEntry_DoNotUse, _internal_metadata_),
  1122. ~0u, // no _extensions_
  1123. ~0u, // no _oneof_case_
  1124. ~0u, // no _weak_field_map_
  1125. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::TestMap_MapInt32ForeignMessageEntry_DoNotUse, key_),
  1126. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::TestMap_MapInt32ForeignMessageEntry_DoNotUse, value_),
  1127. 0,
  1128. 1,
  1129. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::TestMap_MapStringForeignMessageEntry_DoNotUse, _has_bits_),
  1130. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::TestMap_MapStringForeignMessageEntry_DoNotUse, _internal_metadata_),
  1131. ~0u, // no _extensions_
  1132. ~0u, // no _oneof_case_
  1133. ~0u, // no _weak_field_map_
  1134. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::TestMap_MapStringForeignMessageEntry_DoNotUse, key_),
  1135. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::TestMap_MapStringForeignMessageEntry_DoNotUse, value_),
  1136. 0,
  1137. 1,
  1138. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::TestMap_MapInt32AllTypesEntry_DoNotUse, _has_bits_),
  1139. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::TestMap_MapInt32AllTypesEntry_DoNotUse, _internal_metadata_),
  1140. ~0u, // no _extensions_
  1141. ~0u, // no _oneof_case_
  1142. ~0u, // no _weak_field_map_
  1143. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::TestMap_MapInt32AllTypesEntry_DoNotUse, key_),
  1144. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::TestMap_MapInt32AllTypesEntry_DoNotUse, value_),
  1145. 0,
  1146. 1,
  1147. ~0u, // no _has_bits_
  1148. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::TestMap, _internal_metadata_),
  1149. ~0u, // no _extensions_
  1150. ~0u, // no _oneof_case_
  1151. ~0u, // no _weak_field_map_
  1152. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::TestMap, map_int32_int32_),
  1153. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::TestMap, map_int64_int64_),
  1154. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::TestMap, map_uint32_uint32_),
  1155. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::TestMap, map_uint64_uint64_),
  1156. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::TestMap, map_sint32_sint32_),
  1157. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::TestMap, map_sint64_sint64_),
  1158. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::TestMap, map_fixed32_fixed32_),
  1159. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::TestMap, map_fixed64_fixed64_),
  1160. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::TestMap, map_sfixed32_sfixed32_),
  1161. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::TestMap, map_sfixed64_sfixed64_),
  1162. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::TestMap, map_int32_float_),
  1163. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::TestMap, map_int32_double_),
  1164. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::TestMap, map_bool_bool_),
  1165. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::TestMap, map_string_string_),
  1166. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::TestMap, map_int32_bytes_),
  1167. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::TestMap, map_int32_enum_),
  1168. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::TestMap, map_int32_foreign_message_),
  1169. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::TestMap, map_string_foreign_message_),
  1170. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::TestMap, map_int32_all_types_),
  1171. ~0u, // no _has_bits_
  1172. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::TestMapSubmessage, _internal_metadata_),
  1173. ~0u, // no _extensions_
  1174. ~0u, // no _oneof_case_
  1175. ~0u, // no _weak_field_map_
  1176. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::TestMapSubmessage, test_map_),
  1177. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::TestMessageMap_MapInt32MessageEntry_DoNotUse, _has_bits_),
  1178. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::TestMessageMap_MapInt32MessageEntry_DoNotUse, _internal_metadata_),
  1179. ~0u, // no _extensions_
  1180. ~0u, // no _oneof_case_
  1181. ~0u, // no _weak_field_map_
  1182. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::TestMessageMap_MapInt32MessageEntry_DoNotUse, key_),
  1183. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::TestMessageMap_MapInt32MessageEntry_DoNotUse, value_),
  1184. 0,
  1185. 1,
  1186. ~0u, // no _has_bits_
  1187. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::TestMessageMap, _internal_metadata_),
  1188. ~0u, // no _extensions_
  1189. ~0u, // no _oneof_case_
  1190. ~0u, // no _weak_field_map_
  1191. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::TestMessageMap, map_int32_message_),
  1192. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::TestSameTypeMap_Map1Entry_DoNotUse, _has_bits_),
  1193. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::TestSameTypeMap_Map1Entry_DoNotUse, _internal_metadata_),
  1194. ~0u, // no _extensions_
  1195. ~0u, // no _oneof_case_
  1196. ~0u, // no _weak_field_map_
  1197. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::TestSameTypeMap_Map1Entry_DoNotUse, key_),
  1198. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::TestSameTypeMap_Map1Entry_DoNotUse, value_),
  1199. 0,
  1200. 1,
  1201. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::TestSameTypeMap_Map2Entry_DoNotUse, _has_bits_),
  1202. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::TestSameTypeMap_Map2Entry_DoNotUse, _internal_metadata_),
  1203. ~0u, // no _extensions_
  1204. ~0u, // no _oneof_case_
  1205. ~0u, // no _weak_field_map_
  1206. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::TestSameTypeMap_Map2Entry_DoNotUse, key_),
  1207. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::TestSameTypeMap_Map2Entry_DoNotUse, value_),
  1208. 0,
  1209. 1,
  1210. ~0u, // no _has_bits_
  1211. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::TestSameTypeMap, _internal_metadata_),
  1212. ~0u, // no _extensions_
  1213. ~0u, // no _oneof_case_
  1214. ~0u, // no _weak_field_map_
  1215. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::TestSameTypeMap, map1_),
  1216. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::TestSameTypeMap, map2_),
  1217. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::TestRequiredMessageMap_MapFieldEntry_DoNotUse, _has_bits_),
  1218. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::TestRequiredMessageMap_MapFieldEntry_DoNotUse, _internal_metadata_),
  1219. ~0u, // no _extensions_
  1220. ~0u, // no _oneof_case_
  1221. ~0u, // no _weak_field_map_
  1222. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::TestRequiredMessageMap_MapFieldEntry_DoNotUse, key_),
  1223. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::TestRequiredMessageMap_MapFieldEntry_DoNotUse, value_),
  1224. 0,
  1225. 1,
  1226. ~0u, // no _has_bits_
  1227. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::TestRequiredMessageMap, _internal_metadata_),
  1228. ~0u, // no _extensions_
  1229. ~0u, // no _oneof_case_
  1230. ~0u, // no _weak_field_map_
  1231. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::TestRequiredMessageMap, map_field_),
  1232. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::TestArenaMap_MapInt32Int32Entry_DoNotUse, _has_bits_),
  1233. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::TestArenaMap_MapInt32Int32Entry_DoNotUse, _internal_metadata_),
  1234. ~0u, // no _extensions_
  1235. ~0u, // no _oneof_case_
  1236. ~0u, // no _weak_field_map_
  1237. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::TestArenaMap_MapInt32Int32Entry_DoNotUse, key_),
  1238. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::TestArenaMap_MapInt32Int32Entry_DoNotUse, value_),
  1239. 0,
  1240. 1,
  1241. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::TestArenaMap_MapInt64Int64Entry_DoNotUse, _has_bits_),
  1242. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::TestArenaMap_MapInt64Int64Entry_DoNotUse, _internal_metadata_),
  1243. ~0u, // no _extensions_
  1244. ~0u, // no _oneof_case_
  1245. ~0u, // no _weak_field_map_
  1246. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::TestArenaMap_MapInt64Int64Entry_DoNotUse, key_),
  1247. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::TestArenaMap_MapInt64Int64Entry_DoNotUse, value_),
  1248. 0,
  1249. 1,
  1250. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::TestArenaMap_MapUint32Uint32Entry_DoNotUse, _has_bits_),
  1251. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::TestArenaMap_MapUint32Uint32Entry_DoNotUse, _internal_metadata_),
  1252. ~0u, // no _extensions_
  1253. ~0u, // no _oneof_case_
  1254. ~0u, // no _weak_field_map_
  1255. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::TestArenaMap_MapUint32Uint32Entry_DoNotUse, key_),
  1256. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::TestArenaMap_MapUint32Uint32Entry_DoNotUse, value_),
  1257. 0,
  1258. 1,
  1259. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::TestArenaMap_MapUint64Uint64Entry_DoNotUse, _has_bits_),
  1260. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::TestArenaMap_MapUint64Uint64Entry_DoNotUse, _internal_metadata_),
  1261. ~0u, // no _extensions_
  1262. ~0u, // no _oneof_case_
  1263. ~0u, // no _weak_field_map_
  1264. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::TestArenaMap_MapUint64Uint64Entry_DoNotUse, key_),
  1265. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::TestArenaMap_MapUint64Uint64Entry_DoNotUse, value_),
  1266. 0,
  1267. 1,
  1268. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::TestArenaMap_MapSint32Sint32Entry_DoNotUse, _has_bits_),
  1269. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::TestArenaMap_MapSint32Sint32Entry_DoNotUse, _internal_metadata_),
  1270. ~0u, // no _extensions_
  1271. ~0u, // no _oneof_case_
  1272. ~0u, // no _weak_field_map_
  1273. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::TestArenaMap_MapSint32Sint32Entry_DoNotUse, key_),
  1274. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::TestArenaMap_MapSint32Sint32Entry_DoNotUse, value_),
  1275. 0,
  1276. 1,
  1277. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::TestArenaMap_MapSint64Sint64Entry_DoNotUse, _has_bits_),
  1278. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::TestArenaMap_MapSint64Sint64Entry_DoNotUse, _internal_metadata_),
  1279. ~0u, // no _extensions_
  1280. ~0u, // no _oneof_case_
  1281. ~0u, // no _weak_field_map_
  1282. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::TestArenaMap_MapSint64Sint64Entry_DoNotUse, key_),
  1283. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::TestArenaMap_MapSint64Sint64Entry_DoNotUse, value_),
  1284. 0,
  1285. 1,
  1286. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::TestArenaMap_MapFixed32Fixed32Entry_DoNotUse, _has_bits_),
  1287. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::TestArenaMap_MapFixed32Fixed32Entry_DoNotUse, _internal_metadata_),
  1288. ~0u, // no _extensions_
  1289. ~0u, // no _oneof_case_
  1290. ~0u, // no _weak_field_map_
  1291. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::TestArenaMap_MapFixed32Fixed32Entry_DoNotUse, key_),
  1292. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::TestArenaMap_MapFixed32Fixed32Entry_DoNotUse, value_),
  1293. 0,
  1294. 1,
  1295. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::TestArenaMap_MapFixed64Fixed64Entry_DoNotUse, _has_bits_),
  1296. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::TestArenaMap_MapFixed64Fixed64Entry_DoNotUse, _internal_metadata_),
  1297. ~0u, // no _extensions_
  1298. ~0u, // no _oneof_case_
  1299. ~0u, // no _weak_field_map_
  1300. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::TestArenaMap_MapFixed64Fixed64Entry_DoNotUse, key_),
  1301. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::TestArenaMap_MapFixed64Fixed64Entry_DoNotUse, value_),
  1302. 0,
  1303. 1,
  1304. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::TestArenaMap_MapSfixed32Sfixed32Entry_DoNotUse, _has_bits_),
  1305. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::TestArenaMap_MapSfixed32Sfixed32Entry_DoNotUse, _internal_metadata_),
  1306. ~0u, // no _extensions_
  1307. ~0u, // no _oneof_case_
  1308. ~0u, // no _weak_field_map_
  1309. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::TestArenaMap_MapSfixed32Sfixed32Entry_DoNotUse, key_),
  1310. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::TestArenaMap_MapSfixed32Sfixed32Entry_DoNotUse, value_),
  1311. 0,
  1312. 1,
  1313. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::TestArenaMap_MapSfixed64Sfixed64Entry_DoNotUse, _has_bits_),
  1314. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::TestArenaMap_MapSfixed64Sfixed64Entry_DoNotUse, _internal_metadata_),
  1315. ~0u, // no _extensions_
  1316. ~0u, // no _oneof_case_
  1317. ~0u, // no _weak_field_map_
  1318. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::TestArenaMap_MapSfixed64Sfixed64Entry_DoNotUse, key_),
  1319. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::TestArenaMap_MapSfixed64Sfixed64Entry_DoNotUse, value_),
  1320. 0,
  1321. 1,
  1322. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::TestArenaMap_MapInt32FloatEntry_DoNotUse, _has_bits_),
  1323. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::TestArenaMap_MapInt32FloatEntry_DoNotUse, _internal_metadata_),
  1324. ~0u, // no _extensions_
  1325. ~0u, // no _oneof_case_
  1326. ~0u, // no _weak_field_map_
  1327. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::TestArenaMap_MapInt32FloatEntry_DoNotUse, key_),
  1328. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::TestArenaMap_MapInt32FloatEntry_DoNotUse, value_),
  1329. 0,
  1330. 1,
  1331. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::TestArenaMap_MapInt32DoubleEntry_DoNotUse, _has_bits_),
  1332. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::TestArenaMap_MapInt32DoubleEntry_DoNotUse, _internal_metadata_),
  1333. ~0u, // no _extensions_
  1334. ~0u, // no _oneof_case_
  1335. ~0u, // no _weak_field_map_
  1336. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::TestArenaMap_MapInt32DoubleEntry_DoNotUse, key_),
  1337. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::TestArenaMap_MapInt32DoubleEntry_DoNotUse, value_),
  1338. 0,
  1339. 1,
  1340. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::TestArenaMap_MapBoolBoolEntry_DoNotUse, _has_bits_),
  1341. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::TestArenaMap_MapBoolBoolEntry_DoNotUse, _internal_metadata_),
  1342. ~0u, // no _extensions_
  1343. ~0u, // no _oneof_case_
  1344. ~0u, // no _weak_field_map_
  1345. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::TestArenaMap_MapBoolBoolEntry_DoNotUse, key_),
  1346. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::TestArenaMap_MapBoolBoolEntry_DoNotUse, value_),
  1347. 0,
  1348. 1,
  1349. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::TestArenaMap_MapStringStringEntry_DoNotUse, _has_bits_),
  1350. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::TestArenaMap_MapStringStringEntry_DoNotUse, _internal_metadata_),
  1351. ~0u, // no _extensions_
  1352. ~0u, // no _oneof_case_
  1353. ~0u, // no _weak_field_map_
  1354. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::TestArenaMap_MapStringStringEntry_DoNotUse, key_),
  1355. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::TestArenaMap_MapStringStringEntry_DoNotUse, value_),
  1356. 0,
  1357. 1,
  1358. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::TestArenaMap_MapInt32BytesEntry_DoNotUse, _has_bits_),
  1359. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::TestArenaMap_MapInt32BytesEntry_DoNotUse, _internal_metadata_),
  1360. ~0u, // no _extensions_
  1361. ~0u, // no _oneof_case_
  1362. ~0u, // no _weak_field_map_
  1363. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::TestArenaMap_MapInt32BytesEntry_DoNotUse, key_),
  1364. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::TestArenaMap_MapInt32BytesEntry_DoNotUse, value_),
  1365. 0,
  1366. 1,
  1367. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::TestArenaMap_MapInt32EnumEntry_DoNotUse, _has_bits_),
  1368. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::TestArenaMap_MapInt32EnumEntry_DoNotUse, _internal_metadata_),
  1369. ~0u, // no _extensions_
  1370. ~0u, // no _oneof_case_
  1371. ~0u, // no _weak_field_map_
  1372. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::TestArenaMap_MapInt32EnumEntry_DoNotUse, key_),
  1373. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::TestArenaMap_MapInt32EnumEntry_DoNotUse, value_),
  1374. 0,
  1375. 1,
  1376. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::TestArenaMap_MapInt32ForeignMessageEntry_DoNotUse, _has_bits_),
  1377. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::TestArenaMap_MapInt32ForeignMessageEntry_DoNotUse, _internal_metadata_),
  1378. ~0u, // no _extensions_
  1379. ~0u, // no _oneof_case_
  1380. ~0u, // no _weak_field_map_
  1381. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::TestArenaMap_MapInt32ForeignMessageEntry_DoNotUse, key_),
  1382. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::TestArenaMap_MapInt32ForeignMessageEntry_DoNotUse, value_),
  1383. 0,
  1384. 1,
  1385. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::TestArenaMap_MapInt32ForeignMessageNoArenaEntry_DoNotUse, _has_bits_),
  1386. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::TestArenaMap_MapInt32ForeignMessageNoArenaEntry_DoNotUse, _internal_metadata_),
  1387. ~0u, // no _extensions_
  1388. ~0u, // no _oneof_case_
  1389. ~0u, // no _weak_field_map_
  1390. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::TestArenaMap_MapInt32ForeignMessageNoArenaEntry_DoNotUse, key_),
  1391. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::TestArenaMap_MapInt32ForeignMessageNoArenaEntry_DoNotUse, value_),
  1392. 0,
  1393. 1,
  1394. ~0u, // no _has_bits_
  1395. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::TestArenaMap, _internal_metadata_),
  1396. ~0u, // no _extensions_
  1397. ~0u, // no _oneof_case_
  1398. ~0u, // no _weak_field_map_
  1399. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::TestArenaMap, map_int32_int32_),
  1400. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::TestArenaMap, map_int64_int64_),
  1401. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::TestArenaMap, map_uint32_uint32_),
  1402. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::TestArenaMap, map_uint64_uint64_),
  1403. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::TestArenaMap, map_sint32_sint32_),
  1404. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::TestArenaMap, map_sint64_sint64_),
  1405. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::TestArenaMap, map_fixed32_fixed32_),
  1406. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::TestArenaMap, map_fixed64_fixed64_),
  1407. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::TestArenaMap, map_sfixed32_sfixed32_),
  1408. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::TestArenaMap, map_sfixed64_sfixed64_),
  1409. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::TestArenaMap, map_int32_float_),
  1410. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::TestArenaMap, map_int32_double_),
  1411. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::TestArenaMap, map_bool_bool_),
  1412. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::TestArenaMap, map_string_string_),
  1413. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::TestArenaMap, map_int32_bytes_),
  1414. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::TestArenaMap, map_int32_enum_),
  1415. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::TestArenaMap, map_int32_foreign_message_),
  1416. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::TestArenaMap, map_int32_foreign_message_no_arena_),
  1417. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::MessageContainingEnumCalledType_TypeEntry_DoNotUse, _has_bits_),
  1418. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::MessageContainingEnumCalledType_TypeEntry_DoNotUse, _internal_metadata_),
  1419. ~0u, // no _extensions_
  1420. ~0u, // no _oneof_case_
  1421. ~0u, // no _weak_field_map_
  1422. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::MessageContainingEnumCalledType_TypeEntry_DoNotUse, key_),
  1423. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::MessageContainingEnumCalledType_TypeEntry_DoNotUse, value_),
  1424. 0,
  1425. 1,
  1426. ~0u, // no _has_bits_
  1427. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::MessageContainingEnumCalledType, _internal_metadata_),
  1428. ~0u, // no _extensions_
  1429. ~0u, // no _oneof_case_
  1430. ~0u, // no _weak_field_map_
  1431. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::MessageContainingEnumCalledType, type_),
  1432. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::MessageContainingMapCalledEntry_EntryEntry_DoNotUse, _has_bits_),
  1433. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::MessageContainingMapCalledEntry_EntryEntry_DoNotUse, _internal_metadata_),
  1434. ~0u, // no _extensions_
  1435. ~0u, // no _oneof_case_
  1436. ~0u, // no _weak_field_map_
  1437. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::MessageContainingMapCalledEntry_EntryEntry_DoNotUse, key_),
  1438. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::MessageContainingMapCalledEntry_EntryEntry_DoNotUse, value_),
  1439. 0,
  1440. 1,
  1441. ~0u, // no _has_bits_
  1442. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::MessageContainingMapCalledEntry, _internal_metadata_),
  1443. ~0u, // no _extensions_
  1444. ~0u, // no _oneof_case_
  1445. ~0u, // no _weak_field_map_
  1446. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::MessageContainingMapCalledEntry, entry_),
  1447. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::TestRecursiveMapMessage_AEntry_DoNotUse, _has_bits_),
  1448. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::TestRecursiveMapMessage_AEntry_DoNotUse, _internal_metadata_),
  1449. ~0u, // no _extensions_
  1450. ~0u, // no _oneof_case_
  1451. ~0u, // no _weak_field_map_
  1452. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::TestRecursiveMapMessage_AEntry_DoNotUse, key_),
  1453. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::TestRecursiveMapMessage_AEntry_DoNotUse, value_),
  1454. 0,
  1455. 1,
  1456. ~0u, // no _has_bits_
  1457. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::TestRecursiveMapMessage, _internal_metadata_),
  1458. ~0u, // no _extensions_
  1459. ~0u, // no _oneof_case_
  1460. ~0u, // no _weak_field_map_
  1461. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::TestRecursiveMapMessage, a_),
  1462. };
  1463. static const ::google::protobuf::internal::MigrationSchema schemas[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
  1464. { 0, 7, sizeof(::protobuf_unittest::TestMap_MapInt32Int32Entry_DoNotUse)},
  1465. { 9, 16, sizeof(::protobuf_unittest::TestMap_MapInt64Int64Entry_DoNotUse)},
  1466. { 18, 25, sizeof(::protobuf_unittest::TestMap_MapUint32Uint32Entry_DoNotUse)},
  1467. { 27, 34, sizeof(::protobuf_unittest::TestMap_MapUint64Uint64Entry_DoNotUse)},
  1468. { 36, 43, sizeof(::protobuf_unittest::TestMap_MapSint32Sint32Entry_DoNotUse)},
  1469. { 45, 52, sizeof(::protobuf_unittest::TestMap_MapSint64Sint64Entry_DoNotUse)},
  1470. { 54, 61, sizeof(::protobuf_unittest::TestMap_MapFixed32Fixed32Entry_DoNotUse)},
  1471. { 63, 70, sizeof(::protobuf_unittest::TestMap_MapFixed64Fixed64Entry_DoNotUse)},
  1472. { 72, 79, sizeof(::protobuf_unittest::TestMap_MapSfixed32Sfixed32Entry_DoNotUse)},
  1473. { 81, 88, sizeof(::protobuf_unittest::TestMap_MapSfixed64Sfixed64Entry_DoNotUse)},
  1474. { 90, 97, sizeof(::protobuf_unittest::TestMap_MapInt32FloatEntry_DoNotUse)},
  1475. { 99, 106, sizeof(::protobuf_unittest::TestMap_MapInt32DoubleEntry_DoNotUse)},
  1476. { 108, 115, sizeof(::protobuf_unittest::TestMap_MapBoolBoolEntry_DoNotUse)},
  1477. { 117, 124, sizeof(::protobuf_unittest::TestMap_MapStringStringEntry_DoNotUse)},
  1478. { 126, 133, sizeof(::protobuf_unittest::TestMap_MapInt32BytesEntry_DoNotUse)},
  1479. { 135, 142, sizeof(::protobuf_unittest::TestMap_MapInt32EnumEntry_DoNotUse)},
  1480. { 144, 151, sizeof(::protobuf_unittest::TestMap_MapInt32ForeignMessageEntry_DoNotUse)},
  1481. { 153, 160, sizeof(::protobuf_unittest::TestMap_MapStringForeignMessageEntry_DoNotUse)},
  1482. { 162, 169, sizeof(::protobuf_unittest::TestMap_MapInt32AllTypesEntry_DoNotUse)},
  1483. { 171, -1, sizeof(::protobuf_unittest::TestMap)},
  1484. { 195, -1, sizeof(::protobuf_unittest::TestMapSubmessage)},
  1485. { 201, 208, sizeof(::protobuf_unittest::TestMessageMap_MapInt32MessageEntry_DoNotUse)},
  1486. { 210, -1, sizeof(::protobuf_unittest::TestMessageMap)},
  1487. { 216, 223, sizeof(::protobuf_unittest::TestSameTypeMap_Map1Entry_DoNotUse)},
  1488. { 225, 232, sizeof(::protobuf_unittest::TestSameTypeMap_Map2Entry_DoNotUse)},
  1489. { 234, -1, sizeof(::protobuf_unittest::TestSameTypeMap)},
  1490. { 241, 248, sizeof(::protobuf_unittest::TestRequiredMessageMap_MapFieldEntry_DoNotUse)},
  1491. { 250, -1, sizeof(::protobuf_unittest::TestRequiredMessageMap)},
  1492. { 256, 263, sizeof(::protobuf_unittest::TestArenaMap_MapInt32Int32Entry_DoNotUse)},
  1493. { 265, 272, sizeof(::protobuf_unittest::TestArenaMap_MapInt64Int64Entry_DoNotUse)},
  1494. { 274, 281, sizeof(::protobuf_unittest::TestArenaMap_MapUint32Uint32Entry_DoNotUse)},
  1495. { 283, 290, sizeof(::protobuf_unittest::TestArenaMap_MapUint64Uint64Entry_DoNotUse)},
  1496. { 292, 299, sizeof(::protobuf_unittest::TestArenaMap_MapSint32Sint32Entry_DoNotUse)},
  1497. { 301, 308, sizeof(::protobuf_unittest::TestArenaMap_MapSint64Sint64Entry_DoNotUse)},
  1498. { 310, 317, sizeof(::protobuf_unittest::TestArenaMap_MapFixed32Fixed32Entry_DoNotUse)},
  1499. { 319, 326, sizeof(::protobuf_unittest::TestArenaMap_MapFixed64Fixed64Entry_DoNotUse)},
  1500. { 328, 335, sizeof(::protobuf_unittest::TestArenaMap_MapSfixed32Sfixed32Entry_DoNotUse)},
  1501. { 337, 344, sizeof(::protobuf_unittest::TestArenaMap_MapSfixed64Sfixed64Entry_DoNotUse)},
  1502. { 346, 353, sizeof(::protobuf_unittest::TestArenaMap_MapInt32FloatEntry_DoNotUse)},
  1503. { 355, 362, sizeof(::protobuf_unittest::TestArenaMap_MapInt32DoubleEntry_DoNotUse)},
  1504. { 364, 371, sizeof(::protobuf_unittest::TestArenaMap_MapBoolBoolEntry_DoNotUse)},
  1505. { 373, 380, sizeof(::protobuf_unittest::TestArenaMap_MapStringStringEntry_DoNotUse)},
  1506. { 382, 389, sizeof(::protobuf_unittest::TestArenaMap_MapInt32BytesEntry_DoNotUse)},
  1507. { 391, 398, sizeof(::protobuf_unittest::TestArenaMap_MapInt32EnumEntry_DoNotUse)},
  1508. { 400, 407, sizeof(::protobuf_unittest::TestArenaMap_MapInt32ForeignMessageEntry_DoNotUse)},
  1509. { 409, 416, sizeof(::protobuf_unittest::TestArenaMap_MapInt32ForeignMessageNoArenaEntry_DoNotUse)},
  1510. { 418, -1, sizeof(::protobuf_unittest::TestArenaMap)},
  1511. { 441, 448, sizeof(::protobuf_unittest::MessageContainingEnumCalledType_TypeEntry_DoNotUse)},
  1512. { 450, -1, sizeof(::protobuf_unittest::MessageContainingEnumCalledType)},
  1513. { 456, 463, sizeof(::protobuf_unittest::MessageContainingMapCalledEntry_EntryEntry_DoNotUse)},
  1514. { 465, -1, sizeof(::protobuf_unittest::MessageContainingMapCalledEntry)},
  1515. { 471, 478, sizeof(::protobuf_unittest::TestRecursiveMapMessage_AEntry_DoNotUse)},
  1516. { 480, -1, sizeof(::protobuf_unittest::TestRecursiveMapMessage)},
  1517. };
  1518. static ::google::protobuf::Message const * const file_default_instances[] = {
  1519. reinterpret_cast<const ::google::protobuf::Message*>(&::protobuf_unittest::_TestMap_MapInt32Int32Entry_DoNotUse_default_instance_),
  1520. reinterpret_cast<const ::google::protobuf::Message*>(&::protobuf_unittest::_TestMap_MapInt64Int64Entry_DoNotUse_default_instance_),
  1521. reinterpret_cast<const ::google::protobuf::Message*>(&::protobuf_unittest::_TestMap_MapUint32Uint32Entry_DoNotUse_default_instance_),
  1522. reinterpret_cast<const ::google::protobuf::Message*>(&::protobuf_unittest::_TestMap_MapUint64Uint64Entry_DoNotUse_default_instance_),
  1523. reinterpret_cast<const ::google::protobuf::Message*>(&::protobuf_unittest::_TestMap_MapSint32Sint32Entry_DoNotUse_default_instance_),
  1524. reinterpret_cast<const ::google::protobuf::Message*>(&::protobuf_unittest::_TestMap_MapSint64Sint64Entry_DoNotUse_default_instance_),
  1525. reinterpret_cast<const ::google::protobuf::Message*>(&::protobuf_unittest::_TestMap_MapFixed32Fixed32Entry_DoNotUse_default_instance_),
  1526. reinterpret_cast<const ::google::protobuf::Message*>(&::protobuf_unittest::_TestMap_MapFixed64Fixed64Entry_DoNotUse_default_instance_),
  1527. reinterpret_cast<const ::google::protobuf::Message*>(&::protobuf_unittest::_TestMap_MapSfixed32Sfixed32Entry_DoNotUse_default_instance_),
  1528. reinterpret_cast<const ::google::protobuf::Message*>(&::protobuf_unittest::_TestMap_MapSfixed64Sfixed64Entry_DoNotUse_default_instance_),
  1529. reinterpret_cast<const ::google::protobuf::Message*>(&::protobuf_unittest::_TestMap_MapInt32FloatEntry_DoNotUse_default_instance_),
  1530. reinterpret_cast<const ::google::protobuf::Message*>(&::protobuf_unittest::_TestMap_MapInt32DoubleEntry_DoNotUse_default_instance_),
  1531. reinterpret_cast<const ::google::protobuf::Message*>(&::protobuf_unittest::_TestMap_MapBoolBoolEntry_DoNotUse_default_instance_),
  1532. reinterpret_cast<const ::google::protobuf::Message*>(&::protobuf_unittest::_TestMap_MapStringStringEntry_DoNotUse_default_instance_),
  1533. reinterpret_cast<const ::google::protobuf::Message*>(&::protobuf_unittest::_TestMap_MapInt32BytesEntry_DoNotUse_default_instance_),
  1534. reinterpret_cast<const ::google::protobuf::Message*>(&::protobuf_unittest::_TestMap_MapInt32EnumEntry_DoNotUse_default_instance_),
  1535. reinterpret_cast<const ::google::protobuf::Message*>(&::protobuf_unittest::_TestMap_MapInt32ForeignMessageEntry_DoNotUse_default_instance_),
  1536. reinterpret_cast<const ::google::protobuf::Message*>(&::protobuf_unittest::_TestMap_MapStringForeignMessageEntry_DoNotUse_default_instance_),
  1537. reinterpret_cast<const ::google::protobuf::Message*>(&::protobuf_unittest::_TestMap_MapInt32AllTypesEntry_DoNotUse_default_instance_),
  1538. reinterpret_cast<const ::google::protobuf::Message*>(&::protobuf_unittest::_TestMap_default_instance_),
  1539. reinterpret_cast<const ::google::protobuf::Message*>(&::protobuf_unittest::_TestMapSubmessage_default_instance_),
  1540. reinterpret_cast<const ::google::protobuf::Message*>(&::protobuf_unittest::_TestMessageMap_MapInt32MessageEntry_DoNotUse_default_instance_),
  1541. reinterpret_cast<const ::google::protobuf::Message*>(&::protobuf_unittest::_TestMessageMap_default_instance_),
  1542. reinterpret_cast<const ::google::protobuf::Message*>(&::protobuf_unittest::_TestSameTypeMap_Map1Entry_DoNotUse_default_instance_),
  1543. reinterpret_cast<const ::google::protobuf::Message*>(&::protobuf_unittest::_TestSameTypeMap_Map2Entry_DoNotUse_default_instance_),
  1544. reinterpret_cast<const ::google::protobuf::Message*>(&::protobuf_unittest::_TestSameTypeMap_default_instance_),
  1545. reinterpret_cast<const ::google::protobuf::Message*>(&::protobuf_unittest::_TestRequiredMessageMap_MapFieldEntry_DoNotUse_default_instance_),
  1546. reinterpret_cast<const ::google::protobuf::Message*>(&::protobuf_unittest::_TestRequiredMessageMap_default_instance_),
  1547. reinterpret_cast<const ::google::protobuf::Message*>(&::protobuf_unittest::_TestArenaMap_MapInt32Int32Entry_DoNotUse_default_instance_),
  1548. reinterpret_cast<const ::google::protobuf::Message*>(&::protobuf_unittest::_TestArenaMap_MapInt64Int64Entry_DoNotUse_default_instance_),
  1549. reinterpret_cast<const ::google::protobuf::Message*>(&::protobuf_unittest::_TestArenaMap_MapUint32Uint32Entry_DoNotUse_default_instance_),
  1550. reinterpret_cast<const ::google::protobuf::Message*>(&::protobuf_unittest::_TestArenaMap_MapUint64Uint64Entry_DoNotUse_default_instance_),
  1551. reinterpret_cast<const ::google::protobuf::Message*>(&::protobuf_unittest::_TestArenaMap_MapSint32Sint32Entry_DoNotUse_default_instance_),
  1552. reinterpret_cast<const ::google::protobuf::Message*>(&::protobuf_unittest::_TestArenaMap_MapSint64Sint64Entry_DoNotUse_default_instance_),
  1553. reinterpret_cast<const ::google::protobuf::Message*>(&::protobuf_unittest::_TestArenaMap_MapFixed32Fixed32Entry_DoNotUse_default_instance_),
  1554. reinterpret_cast<const ::google::protobuf::Message*>(&::protobuf_unittest::_TestArenaMap_MapFixed64Fixed64Entry_DoNotUse_default_instance_),
  1555. reinterpret_cast<const ::google::protobuf::Message*>(&::protobuf_unittest::_TestArenaMap_MapSfixed32Sfixed32Entry_DoNotUse_default_instance_),
  1556. reinterpret_cast<const ::google::protobuf::Message*>(&::protobuf_unittest::_TestArenaMap_MapSfixed64Sfixed64Entry_DoNotUse_default_instance_),
  1557. reinterpret_cast<const ::google::protobuf::Message*>(&::protobuf_unittest::_TestArenaMap_MapInt32FloatEntry_DoNotUse_default_instance_),
  1558. reinterpret_cast<const ::google::protobuf::Message*>(&::protobuf_unittest::_TestArenaMap_MapInt32DoubleEntry_DoNotUse_default_instance_),
  1559. reinterpret_cast<const ::google::protobuf::Message*>(&::protobuf_unittest::_TestArenaMap_MapBoolBoolEntry_DoNotUse_default_instance_),
  1560. reinterpret_cast<const ::google::protobuf::Message*>(&::protobuf_unittest::_TestArenaMap_MapStringStringEntry_DoNotUse_default_instance_),
  1561. reinterpret_cast<const ::google::protobuf::Message*>(&::protobuf_unittest::_TestArenaMap_MapInt32BytesEntry_DoNotUse_default_instance_),
  1562. reinterpret_cast<const ::google::protobuf::Message*>(&::protobuf_unittest::_TestArenaMap_MapInt32EnumEntry_DoNotUse_default_instance_),
  1563. reinterpret_cast<const ::google::protobuf::Message*>(&::protobuf_unittest::_TestArenaMap_MapInt32ForeignMessageEntry_DoNotUse_default_instance_),
  1564. reinterpret_cast<const ::google::protobuf::Message*>(&::protobuf_unittest::_TestArenaMap_MapInt32ForeignMessageNoArenaEntry_DoNotUse_default_instance_),
  1565. reinterpret_cast<const ::google::protobuf::Message*>(&::protobuf_unittest::_TestArenaMap_default_instance_),
  1566. reinterpret_cast<const ::google::protobuf::Message*>(&::protobuf_unittest::_MessageContainingEnumCalledType_TypeEntry_DoNotUse_default_instance_),
  1567. reinterpret_cast<const ::google::protobuf::Message*>(&::protobuf_unittest::_MessageContainingEnumCalledType_default_instance_),
  1568. reinterpret_cast<const ::google::protobuf::Message*>(&::protobuf_unittest::_MessageContainingMapCalledEntry_EntryEntry_DoNotUse_default_instance_),
  1569. reinterpret_cast<const ::google::protobuf::Message*>(&::protobuf_unittest::_MessageContainingMapCalledEntry_default_instance_),
  1570. reinterpret_cast<const ::google::protobuf::Message*>(&::protobuf_unittest::_TestRecursiveMapMessage_AEntry_DoNotUse_default_instance_),
  1571. reinterpret_cast<const ::google::protobuf::Message*>(&::protobuf_unittest::_TestRecursiveMapMessage_default_instance_),
  1572. };
  1573. void protobuf_AssignDescriptors() {
  1574. AddDescriptors();
  1575. AssignDescriptors(
  1576. "google/protobuf/map_unittest.proto", schemas, file_default_instances, TableStruct::offsets,
  1577. file_level_metadata, file_level_enum_descriptors, NULL);
  1578. }
  1579. void protobuf_AssignDescriptorsOnce() {
  1580. static ::google::protobuf::internal::once_flag once;
  1581. ::google::protobuf::internal::call_once(once, protobuf_AssignDescriptors);
  1582. }
  1583. void protobuf_RegisterTypes(const ::std::string&) GOOGLE_PROTOBUF_ATTRIBUTE_COLD;
  1584. void protobuf_RegisterTypes(const ::std::string&) {
  1585. protobuf_AssignDescriptorsOnce();
  1586. ::google::protobuf::internal::RegisterAllTypes(file_level_metadata, 53);
  1587. }
  1588. void AddDescriptorsImpl() {
  1589. InitDefaults();
  1590. static const char descriptor[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
  1591. "\n\"google/protobuf/map_unittest.proto\022\021pr"
  1592. "otobuf_unittest\032\036google/protobuf/unittes"
  1593. "t.proto\032\'google/protobuf/unittest_no_are"
  1594. "na.proto\"\377\024\n\007TestMap\022F\n\017map_int32_int32\030"
  1595. "\001 \003(\0132-.protobuf_unittest.TestMap.MapInt"
  1596. "32Int32Entry\022F\n\017map_int64_int64\030\002 \003(\0132-."
  1597. "protobuf_unittest.TestMap.MapInt64Int64E"
  1598. "ntry\022J\n\021map_uint32_uint32\030\003 \003(\0132/.protob"
  1599. "uf_unittest.TestMap.MapUint32Uint32Entry"
  1600. "\022J\n\021map_uint64_uint64\030\004 \003(\0132/.protobuf_u"
  1601. "nittest.TestMap.MapUint64Uint64Entry\022J\n\021"
  1602. "map_sint32_sint32\030\005 \003(\0132/.protobuf_unitt"
  1603. "est.TestMap.MapSint32Sint32Entry\022J\n\021map_"
  1604. "sint64_sint64\030\006 \003(\0132/.protobuf_unittest."
  1605. "TestMap.MapSint64Sint64Entry\022N\n\023map_fixe"
  1606. "d32_fixed32\030\007 \003(\01321.protobuf_unittest.Te"
  1607. "stMap.MapFixed32Fixed32Entry\022N\n\023map_fixe"
  1608. "d64_fixed64\030\010 \003(\01321.protobuf_unittest.Te"
  1609. "stMap.MapFixed64Fixed64Entry\022R\n\025map_sfix"
  1610. "ed32_sfixed32\030\t \003(\01323.protobuf_unittest."
  1611. "TestMap.MapSfixed32Sfixed32Entry\022R\n\025map_"
  1612. "sfixed64_sfixed64\030\n \003(\01323.protobuf_unitt"
  1613. "est.TestMap.MapSfixed64Sfixed64Entry\022F\n\017"
  1614. "map_int32_float\030\013 \003(\0132-.protobuf_unittes"
  1615. "t.TestMap.MapInt32FloatEntry\022H\n\020map_int3"
  1616. "2_double\030\014 \003(\0132..protobuf_unittest.TestM"
  1617. "ap.MapInt32DoubleEntry\022B\n\rmap_bool_bool\030"
  1618. "\r \003(\0132+.protobuf_unittest.TestMap.MapBoo"
  1619. "lBoolEntry\022J\n\021map_string_string\030\016 \003(\0132/."
  1620. "protobuf_unittest.TestMap.MapStringStrin"
  1621. "gEntry\022F\n\017map_int32_bytes\030\017 \003(\0132-.protob"
  1622. "uf_unittest.TestMap.MapInt32BytesEntry\022D"
  1623. "\n\016map_int32_enum\030\020 \003(\0132,.protobuf_unitte"
  1624. "st.TestMap.MapInt32EnumEntry\022Y\n\031map_int3"
  1625. "2_foreign_message\030\021 \003(\01326.protobuf_unitt"
  1626. "est.TestMap.MapInt32ForeignMessageEntry\022"
  1627. "[\n\032map_string_foreign_message\030\022 \003(\01327.pr"
  1628. "otobuf_unittest.TestMap.MapStringForeign"
  1629. "MessageEntry\022M\n\023map_int32_all_types\030\023 \003("
  1630. "\01320.protobuf_unittest.TestMap.MapInt32Al"
  1631. "lTypesEntry\0324\n\022MapInt32Int32Entry\022\013\n\003key"
  1632. "\030\001 \001(\005\022\r\n\005value\030\002 \001(\005:\0028\001\0324\n\022MapInt64Int"
  1633. "64Entry\022\013\n\003key\030\001 \001(\003\022\r\n\005value\030\002 \001(\003:\0028\001\032"
  1634. "6\n\024MapUint32Uint32Entry\022\013\n\003key\030\001 \001(\r\022\r\n\005"
  1635. "value\030\002 \001(\r:\0028\001\0326\n\024MapUint64Uint64Entry\022"
  1636. "\013\n\003key\030\001 \001(\004\022\r\n\005value\030\002 \001(\004:\0028\001\0326\n\024MapSi"
  1637. "nt32Sint32Entry\022\013\n\003key\030\001 \001(\021\022\r\n\005value\030\002 "
  1638. "\001(\021:\0028\001\0326\n\024MapSint64Sint64Entry\022\013\n\003key\030\001"
  1639. " \001(\022\022\r\n\005value\030\002 \001(\022:\0028\001\0328\n\026MapFixed32Fix"
  1640. "ed32Entry\022\013\n\003key\030\001 \001(\007\022\r\n\005value\030\002 \001(\007:\0028"
  1641. "\001\0328\n\026MapFixed64Fixed64Entry\022\013\n\003key\030\001 \001(\006"
  1642. "\022\r\n\005value\030\002 \001(\006:\0028\001\032:\n\030MapSfixed32Sfixed"
  1643. "32Entry\022\013\n\003key\030\001 \001(\017\022\r\n\005value\030\002 \001(\017:\0028\001\032"
  1644. ":\n\030MapSfixed64Sfixed64Entry\022\013\n\003key\030\001 \001(\020"
  1645. "\022\r\n\005value\030\002 \001(\020:\0028\001\0324\n\022MapInt32FloatEntr"
  1646. "y\022\013\n\003key\030\001 \001(\005\022\r\n\005value\030\002 \001(\002:\0028\001\0325\n\023Map"
  1647. "Int32DoubleEntry\022\013\n\003key\030\001 \001(\005\022\r\n\005value\030\002"
  1648. " \001(\001:\0028\001\0322\n\020MapBoolBoolEntry\022\013\n\003key\030\001 \001("
  1649. "\010\022\r\n\005value\030\002 \001(\010:\0028\001\0326\n\024MapStringStringE"
  1650. "ntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\0324\n\022"
  1651. "MapInt32BytesEntry\022\013\n\003key\030\001 \001(\005\022\r\n\005value"
  1652. "\030\002 \001(\014:\0028\001\032O\n\021MapInt32EnumEntry\022\013\n\003key\030\001"
  1653. " \001(\005\022)\n\005value\030\002 \001(\0162\032.protobuf_unittest."
  1654. "MapEnum:\0028\001\032`\n\033MapInt32ForeignMessageEnt"
  1655. "ry\022\013\n\003key\030\001 \001(\005\0220\n\005value\030\002 \001(\0132!.protobu"
  1656. "f_unittest.ForeignMessage:\0028\001\032a\n\034MapStri"
  1657. "ngForeignMessageEntry\022\013\n\003key\030\001 \001(\t\0220\n\005va"
  1658. "lue\030\002 \001(\0132!.protobuf_unittest.ForeignMes"
  1659. "sage:\0028\001\032X\n\025MapInt32AllTypesEntry\022\013\n\003key"
  1660. "\030\001 \001(\005\022.\n\005value\030\002 \001(\0132\037.protobuf_unittes"
  1661. "t.TestAllTypes:\0028\001\"A\n\021TestMapSubmessage\022"
  1662. ",\n\010test_map\030\001 \001(\0132\032.protobuf_unittest.Te"
  1663. "stMap\"\274\001\n\016TestMessageMap\022Q\n\021map_int32_me"
  1664. "ssage\030\001 \003(\01326.protobuf_unittest.TestMess"
  1665. "ageMap.MapInt32MessageEntry\032W\n\024MapInt32M"
  1666. "essageEntry\022\013\n\003key\030\001 \001(\005\022.\n\005value\030\002 \001(\0132"
  1667. "\037.protobuf_unittest.TestAllTypes:\0028\001\"\343\001\n"
  1668. "\017TestSameTypeMap\022:\n\004map1\030\001 \003(\0132,.protobu"
  1669. "f_unittest.TestSameTypeMap.Map1Entry\022:\n\004"
  1670. "map2\030\002 \003(\0132,.protobuf_unittest.TestSameT"
  1671. "ypeMap.Map2Entry\032+\n\tMap1Entry\022\013\n\003key\030\001 \001"
  1672. "(\005\022\r\n\005value\030\002 \001(\005:\0028\001\032+\n\tMap2Entry\022\013\n\003ke"
  1673. "y\030\001 \001(\005\022\r\n\005value\030\002 \001(\005:\0028\001\"\266\001\n\026TestRequi"
  1674. "redMessageMap\022J\n\tmap_field\030\001 \003(\01327.proto"
  1675. "buf_unittest.TestRequiredMessageMap.MapF"
  1676. "ieldEntry\032P\n\rMapFieldEntry\022\013\n\003key\030\001 \001(\005\022"
  1677. ".\n\005value\030\002 \001(\0132\037.protobuf_unittest.TestR"
  1678. "equired:\0028\001\"\322\024\n\014TestArenaMap\022K\n\017map_int3"
  1679. "2_int32\030\001 \003(\01322.protobuf_unittest.TestAr"
  1680. "enaMap.MapInt32Int32Entry\022K\n\017map_int64_i"
  1681. "nt64\030\002 \003(\01322.protobuf_unittest.TestArena"
  1682. "Map.MapInt64Int64Entry\022O\n\021map_uint32_uin"
  1683. "t32\030\003 \003(\01324.protobuf_unittest.TestArenaM"
  1684. "ap.MapUint32Uint32Entry\022O\n\021map_uint64_ui"
  1685. "nt64\030\004 \003(\01324.protobuf_unittest.TestArena"
  1686. "Map.MapUint64Uint64Entry\022O\n\021map_sint32_s"
  1687. "int32\030\005 \003(\01324.protobuf_unittest.TestAren"
  1688. "aMap.MapSint32Sint32Entry\022O\n\021map_sint64_"
  1689. "sint64\030\006 \003(\01324.protobuf_unittest.TestAre"
  1690. "naMap.MapSint64Sint64Entry\022S\n\023map_fixed3"
  1691. "2_fixed32\030\007 \003(\01326.protobuf_unittest.Test"
  1692. "ArenaMap.MapFixed32Fixed32Entry\022S\n\023map_f"
  1693. "ixed64_fixed64\030\010 \003(\01326.protobuf_unittest"
  1694. ".TestArenaMap.MapFixed64Fixed64Entry\022W\n\025"
  1695. "map_sfixed32_sfixed32\030\t \003(\01328.protobuf_u"
  1696. "nittest.TestArenaMap.MapSfixed32Sfixed32"
  1697. "Entry\022W\n\025map_sfixed64_sfixed64\030\n \003(\01328.p"
  1698. "rotobuf_unittest.TestArenaMap.MapSfixed6"
  1699. "4Sfixed64Entry\022K\n\017map_int32_float\030\013 \003(\0132"
  1700. "2.protobuf_unittest.TestArenaMap.MapInt3"
  1701. "2FloatEntry\022M\n\020map_int32_double\030\014 \003(\01323."
  1702. "protobuf_unittest.TestArenaMap.MapInt32D"
  1703. "oubleEntry\022G\n\rmap_bool_bool\030\r \003(\01320.prot"
  1704. "obuf_unittest.TestArenaMap.MapBoolBoolEn"
  1705. "try\022O\n\021map_string_string\030\016 \003(\01324.protobu"
  1706. "f_unittest.TestArenaMap.MapStringStringE"
  1707. "ntry\022K\n\017map_int32_bytes\030\017 \003(\01322.protobuf"
  1708. "_unittest.TestArenaMap.MapInt32BytesEntr"
  1709. "y\022I\n\016map_int32_enum\030\020 \003(\01321.protobuf_uni"
  1710. "ttest.TestArenaMap.MapInt32EnumEntry\022^\n\031"
  1711. "map_int32_foreign_message\030\021 \003(\0132;.protob"
  1712. "uf_unittest.TestArenaMap.MapInt32Foreign"
  1713. "MessageEntry\022n\n\"map_int32_foreign_messag"
  1714. "e_no_arena\030\022 \003(\0132B.protobuf_unittest.Tes"
  1715. "tArenaMap.MapInt32ForeignMessageNoArenaE"
  1716. "ntry\0324\n\022MapInt32Int32Entry\022\013\n\003key\030\001 \001(\005\022"
  1717. "\r\n\005value\030\002 \001(\005:\0028\001\0324\n\022MapInt64Int64Entry"
  1718. "\022\013\n\003key\030\001 \001(\003\022\r\n\005value\030\002 \001(\003:\0028\001\0326\n\024MapU"
  1719. "int32Uint32Entry\022\013\n\003key\030\001 \001(\r\022\r\n\005value\030\002"
  1720. " \001(\r:\0028\001\0326\n\024MapUint64Uint64Entry\022\013\n\003key\030"
  1721. "\001 \001(\004\022\r\n\005value\030\002 \001(\004:\0028\001\0326\n\024MapSint32Sin"
  1722. "t32Entry\022\013\n\003key\030\001 \001(\021\022\r\n\005value\030\002 \001(\021:\0028\001"
  1723. "\0326\n\024MapSint64Sint64Entry\022\013\n\003key\030\001 \001(\022\022\r\n"
  1724. "\005value\030\002 \001(\022:\0028\001\0328\n\026MapFixed32Fixed32Ent"
  1725. "ry\022\013\n\003key\030\001 \001(\007\022\r\n\005value\030\002 \001(\007:\0028\001\0328\n\026Ma"
  1726. "pFixed64Fixed64Entry\022\013\n\003key\030\001 \001(\006\022\r\n\005val"
  1727. "ue\030\002 \001(\006:\0028\001\032:\n\030MapSfixed32Sfixed32Entry"
  1728. "\022\013\n\003key\030\001 \001(\017\022\r\n\005value\030\002 \001(\017:\0028\001\032:\n\030MapS"
  1729. "fixed64Sfixed64Entry\022\013\n\003key\030\001 \001(\020\022\r\n\005val"
  1730. "ue\030\002 \001(\020:\0028\001\0324\n\022MapInt32FloatEntry\022\013\n\003ke"
  1731. "y\030\001 \001(\005\022\r\n\005value\030\002 \001(\002:\0028\001\0325\n\023MapInt32Do"
  1732. "ubleEntry\022\013\n\003key\030\001 \001(\005\022\r\n\005value\030\002 \001(\001:\0028"
  1733. "\001\0322\n\020MapBoolBoolEntry\022\013\n\003key\030\001 \001(\010\022\r\n\005va"
  1734. "lue\030\002 \001(\010:\0028\001\0326\n\024MapStringStringEntry\022\013\n"
  1735. "\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\0324\n\022MapInt3"
  1736. "2BytesEntry\022\013\n\003key\030\001 \001(\005\022\r\n\005value\030\002 \001(\014:"
  1737. "\0028\001\032O\n\021MapInt32EnumEntry\022\013\n\003key\030\001 \001(\005\022)\n"
  1738. "\005value\030\002 \001(\0162\032.protobuf_unittest.MapEnum"
  1739. ":\0028\001\032`\n\033MapInt32ForeignMessageEntry\022\013\n\003k"
  1740. "ey\030\001 \001(\005\0220\n\005value\030\002 \001(\0132!.protobuf_unitt"
  1741. "est.ForeignMessage:\0028\001\032p\n\"MapInt32Foreig"
  1742. "nMessageNoArenaEntry\022\013\n\003key\030\001 \001(\005\0229\n\005val"
  1743. "ue\030\002 \001(\0132*.protobuf_unittest_no_arena.Fo"
  1744. "reignMessage:\0028\001\"\344\001\n\037MessageContainingEn"
  1745. "umCalledType\022J\n\004type\030\001 \003(\0132<.protobuf_un"
  1746. "ittest.MessageContainingEnumCalledType.T"
  1747. "ypeEntry\032_\n\tTypeEntry\022\013\n\003key\030\001 \001(\t\022A\n\005va"
  1748. "lue\030\002 \001(\01322.protobuf_unittest.MessageCon"
  1749. "tainingEnumCalledType:\0028\001\"\024\n\004Type\022\014\n\010TYP"
  1750. "E_FOO\020\000\"\235\001\n\037MessageContainingMapCalledEn"
  1751. "try\022L\n\005entry\030\001 \003(\0132=.protobuf_unittest.M"
  1752. "essageContainingMapCalledEntry.EntryEntr"
  1753. "y\032,\n\nEntryEntry\022\013\n\003key\030\001 \001(\005\022\r\n\005value\030\002 "
  1754. "\001(\005:\0028\001\"\255\001\n\027TestRecursiveMapMessage\022<\n\001a"
  1755. "\030\001 \003(\01321.protobuf_unittest.TestRecursive"
  1756. "MapMessage.AEntry\032T\n\006AEntry\022\013\n\003key\030\001 \001(\t"
  1757. "\0229\n\005value\030\002 \001(\0132*.protobuf_unittest.Test"
  1758. "RecursiveMapMessage:\0028\001*\?\n\007MapEnum\022\020\n\014MA"
  1759. "P_ENUM_FOO\020\000\022\020\n\014MAP_ENUM_BAR\020\001\022\020\n\014MAP_EN"
  1760. "UM_BAZ\020\002B\003\370\001\001b\006proto3"
  1761. };
  1762. ::google::protobuf::DescriptorPool::InternalAddGeneratedFile(
  1763. descriptor, 6781);
  1764. ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile(
  1765. "google/protobuf/map_unittest.proto", &protobuf_RegisterTypes);
  1766. ::protobuf_google_2fprotobuf_2funittest_2eproto::AddDescriptors();
  1767. ::protobuf_google_2fprotobuf_2funittest_5fno_5farena_2eproto::AddDescriptors();
  1768. }
  1769. void AddDescriptors() {
  1770. static ::google::protobuf::internal::once_flag once;
  1771. ::google::protobuf::internal::call_once(once, AddDescriptorsImpl);
  1772. }
  1773. // Force AddDescriptors() to be called at dynamic initialization time.
  1774. struct StaticDescriptorInitializer {
  1775. StaticDescriptorInitializer() {
  1776. AddDescriptors();
  1777. }
  1778. } static_descriptor_initializer;
  1779. } // namespace protobuf_google_2fprotobuf_2fmap_5funittest_2eproto
  1780. namespace protobuf_unittest {
  1781. const ::google::protobuf::EnumDescriptor* MessageContainingEnumCalledType_Type_descriptor() {
  1782. protobuf_google_2fprotobuf_2fmap_5funittest_2eproto::protobuf_AssignDescriptorsOnce();
  1783. return protobuf_google_2fprotobuf_2fmap_5funittest_2eproto::file_level_enum_descriptors[0];
  1784. }
  1785. bool MessageContainingEnumCalledType_Type_IsValid(int value) {
  1786. switch (value) {
  1787. case 0:
  1788. return true;
  1789. default:
  1790. return false;
  1791. }
  1792. }
  1793. #if !defined(_MSC_VER) || _MSC_VER >= 1900
  1794. const MessageContainingEnumCalledType_Type MessageContainingEnumCalledType::TYPE_FOO;
  1795. const MessageContainingEnumCalledType_Type MessageContainingEnumCalledType::Type_MIN;
  1796. const MessageContainingEnumCalledType_Type MessageContainingEnumCalledType::Type_MAX;
  1797. const int MessageContainingEnumCalledType::Type_ARRAYSIZE;
  1798. #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
  1799. const ::google::protobuf::EnumDescriptor* MapEnum_descriptor() {
  1800. protobuf_google_2fprotobuf_2fmap_5funittest_2eproto::protobuf_AssignDescriptorsOnce();
  1801. return protobuf_google_2fprotobuf_2fmap_5funittest_2eproto::file_level_enum_descriptors[1];
  1802. }
  1803. bool MapEnum_IsValid(int value) {
  1804. switch (value) {
  1805. case 0:
  1806. case 1:
  1807. case 2:
  1808. return true;
  1809. default:
  1810. return false;
  1811. }
  1812. }
  1813. // ===================================================================
  1814. TestMap_MapInt32Int32Entry_DoNotUse::TestMap_MapInt32Int32Entry_DoNotUse() {}
  1815. TestMap_MapInt32Int32Entry_DoNotUse::TestMap_MapInt32Int32Entry_DoNotUse(::google::protobuf::Arena* arena) : SuperType(arena) {}
  1816. void TestMap_MapInt32Int32Entry_DoNotUse::MergeFrom(const TestMap_MapInt32Int32Entry_DoNotUse& other) {
  1817. MergeFromInternal(other);
  1818. }
  1819. ::google::protobuf::Metadata TestMap_MapInt32Int32Entry_DoNotUse::GetMetadata() const {
  1820. ::protobuf_google_2fprotobuf_2fmap_5funittest_2eproto::protobuf_AssignDescriptorsOnce();
  1821. return ::protobuf_google_2fprotobuf_2fmap_5funittest_2eproto::file_level_metadata[0];
  1822. }
  1823. void TestMap_MapInt32Int32Entry_DoNotUse::MergeFrom(
  1824. const ::google::protobuf::Message& other) {
  1825. ::google::protobuf::Message::MergeFrom(other);
  1826. }
  1827. // ===================================================================
  1828. TestMap_MapInt64Int64Entry_DoNotUse::TestMap_MapInt64Int64Entry_DoNotUse() {}
  1829. TestMap_MapInt64Int64Entry_DoNotUse::TestMap_MapInt64Int64Entry_DoNotUse(::google::protobuf::Arena* arena) : SuperType(arena) {}
  1830. void TestMap_MapInt64Int64Entry_DoNotUse::MergeFrom(const TestMap_MapInt64Int64Entry_DoNotUse& other) {
  1831. MergeFromInternal(other);
  1832. }
  1833. ::google::protobuf::Metadata TestMap_MapInt64Int64Entry_DoNotUse::GetMetadata() const {
  1834. ::protobuf_google_2fprotobuf_2fmap_5funittest_2eproto::protobuf_AssignDescriptorsOnce();
  1835. return ::protobuf_google_2fprotobuf_2fmap_5funittest_2eproto::file_level_metadata[1];
  1836. }
  1837. void TestMap_MapInt64Int64Entry_DoNotUse::MergeFrom(
  1838. const ::google::protobuf::Message& other) {
  1839. ::google::protobuf::Message::MergeFrom(other);
  1840. }
  1841. // ===================================================================
  1842. TestMap_MapUint32Uint32Entry_DoNotUse::TestMap_MapUint32Uint32Entry_DoNotUse() {}
  1843. TestMap_MapUint32Uint32Entry_DoNotUse::TestMap_MapUint32Uint32Entry_DoNotUse(::google::protobuf::Arena* arena) : SuperType(arena) {}
  1844. void TestMap_MapUint32Uint32Entry_DoNotUse::MergeFrom(const TestMap_MapUint32Uint32Entry_DoNotUse& other) {
  1845. MergeFromInternal(other);
  1846. }
  1847. ::google::protobuf::Metadata TestMap_MapUint32Uint32Entry_DoNotUse::GetMetadata() const {
  1848. ::protobuf_google_2fprotobuf_2fmap_5funittest_2eproto::protobuf_AssignDescriptorsOnce();
  1849. return ::protobuf_google_2fprotobuf_2fmap_5funittest_2eproto::file_level_metadata[2];
  1850. }
  1851. void TestMap_MapUint32Uint32Entry_DoNotUse::MergeFrom(
  1852. const ::google::protobuf::Message& other) {
  1853. ::google::protobuf::Message::MergeFrom(other);
  1854. }
  1855. // ===================================================================
  1856. TestMap_MapUint64Uint64Entry_DoNotUse::TestMap_MapUint64Uint64Entry_DoNotUse() {}
  1857. TestMap_MapUint64Uint64Entry_DoNotUse::TestMap_MapUint64Uint64Entry_DoNotUse(::google::protobuf::Arena* arena) : SuperType(arena) {}
  1858. void TestMap_MapUint64Uint64Entry_DoNotUse::MergeFrom(const TestMap_MapUint64Uint64Entry_DoNotUse& other) {
  1859. MergeFromInternal(other);
  1860. }
  1861. ::google::protobuf::Metadata TestMap_MapUint64Uint64Entry_DoNotUse::GetMetadata() const {
  1862. ::protobuf_google_2fprotobuf_2fmap_5funittest_2eproto::protobuf_AssignDescriptorsOnce();
  1863. return ::protobuf_google_2fprotobuf_2fmap_5funittest_2eproto::file_level_metadata[3];
  1864. }
  1865. void TestMap_MapUint64Uint64Entry_DoNotUse::MergeFrom(
  1866. const ::google::protobuf::Message& other) {
  1867. ::google::protobuf::Message::MergeFrom(other);
  1868. }
  1869. // ===================================================================
  1870. TestMap_MapSint32Sint32Entry_DoNotUse::TestMap_MapSint32Sint32Entry_DoNotUse() {}
  1871. TestMap_MapSint32Sint32Entry_DoNotUse::TestMap_MapSint32Sint32Entry_DoNotUse(::google::protobuf::Arena* arena) : SuperType(arena) {}
  1872. void TestMap_MapSint32Sint32Entry_DoNotUse::MergeFrom(const TestMap_MapSint32Sint32Entry_DoNotUse& other) {
  1873. MergeFromInternal(other);
  1874. }
  1875. ::google::protobuf::Metadata TestMap_MapSint32Sint32Entry_DoNotUse::GetMetadata() const {
  1876. ::protobuf_google_2fprotobuf_2fmap_5funittest_2eproto::protobuf_AssignDescriptorsOnce();
  1877. return ::protobuf_google_2fprotobuf_2fmap_5funittest_2eproto::file_level_metadata[4];
  1878. }
  1879. void TestMap_MapSint32Sint32Entry_DoNotUse::MergeFrom(
  1880. const ::google::protobuf::Message& other) {
  1881. ::google::protobuf::Message::MergeFrom(other);
  1882. }
  1883. // ===================================================================
  1884. TestMap_MapSint64Sint64Entry_DoNotUse::TestMap_MapSint64Sint64Entry_DoNotUse() {}
  1885. TestMap_MapSint64Sint64Entry_DoNotUse::TestMap_MapSint64Sint64Entry_DoNotUse(::google::protobuf::Arena* arena) : SuperType(arena) {}
  1886. void TestMap_MapSint64Sint64Entry_DoNotUse::MergeFrom(const TestMap_MapSint64Sint64Entry_DoNotUse& other) {
  1887. MergeFromInternal(other);
  1888. }
  1889. ::google::protobuf::Metadata TestMap_MapSint64Sint64Entry_DoNotUse::GetMetadata() const {
  1890. ::protobuf_google_2fprotobuf_2fmap_5funittest_2eproto::protobuf_AssignDescriptorsOnce();
  1891. return ::protobuf_google_2fprotobuf_2fmap_5funittest_2eproto::file_level_metadata[5];
  1892. }
  1893. void TestMap_MapSint64Sint64Entry_DoNotUse::MergeFrom(
  1894. const ::google::protobuf::Message& other) {
  1895. ::google::protobuf::Message::MergeFrom(other);
  1896. }
  1897. // ===================================================================
  1898. TestMap_MapFixed32Fixed32Entry_DoNotUse::TestMap_MapFixed32Fixed32Entry_DoNotUse() {}
  1899. TestMap_MapFixed32Fixed32Entry_DoNotUse::TestMap_MapFixed32Fixed32Entry_DoNotUse(::google::protobuf::Arena* arena) : SuperType(arena) {}
  1900. void TestMap_MapFixed32Fixed32Entry_DoNotUse::MergeFrom(const TestMap_MapFixed32Fixed32Entry_DoNotUse& other) {
  1901. MergeFromInternal(other);
  1902. }
  1903. ::google::protobuf::Metadata TestMap_MapFixed32Fixed32Entry_DoNotUse::GetMetadata() const {
  1904. ::protobuf_google_2fprotobuf_2fmap_5funittest_2eproto::protobuf_AssignDescriptorsOnce();
  1905. return ::protobuf_google_2fprotobuf_2fmap_5funittest_2eproto::file_level_metadata[6];
  1906. }
  1907. void TestMap_MapFixed32Fixed32Entry_DoNotUse::MergeFrom(
  1908. const ::google::protobuf::Message& other) {
  1909. ::google::protobuf::Message::MergeFrom(other);
  1910. }
  1911. // ===================================================================
  1912. TestMap_MapFixed64Fixed64Entry_DoNotUse::TestMap_MapFixed64Fixed64Entry_DoNotUse() {}
  1913. TestMap_MapFixed64Fixed64Entry_DoNotUse::TestMap_MapFixed64Fixed64Entry_DoNotUse(::google::protobuf::Arena* arena) : SuperType(arena) {}
  1914. void TestMap_MapFixed64Fixed64Entry_DoNotUse::MergeFrom(const TestMap_MapFixed64Fixed64Entry_DoNotUse& other) {
  1915. MergeFromInternal(other);
  1916. }
  1917. ::google::protobuf::Metadata TestMap_MapFixed64Fixed64Entry_DoNotUse::GetMetadata() const {
  1918. ::protobuf_google_2fprotobuf_2fmap_5funittest_2eproto::protobuf_AssignDescriptorsOnce();
  1919. return ::protobuf_google_2fprotobuf_2fmap_5funittest_2eproto::file_level_metadata[7];
  1920. }
  1921. void TestMap_MapFixed64Fixed64Entry_DoNotUse::MergeFrom(
  1922. const ::google::protobuf::Message& other) {
  1923. ::google::protobuf::Message::MergeFrom(other);
  1924. }
  1925. // ===================================================================
  1926. TestMap_MapSfixed32Sfixed32Entry_DoNotUse::TestMap_MapSfixed32Sfixed32Entry_DoNotUse() {}
  1927. TestMap_MapSfixed32Sfixed32Entry_DoNotUse::TestMap_MapSfixed32Sfixed32Entry_DoNotUse(::google::protobuf::Arena* arena) : SuperType(arena) {}
  1928. void TestMap_MapSfixed32Sfixed32Entry_DoNotUse::MergeFrom(const TestMap_MapSfixed32Sfixed32Entry_DoNotUse& other) {
  1929. MergeFromInternal(other);
  1930. }
  1931. ::google::protobuf::Metadata TestMap_MapSfixed32Sfixed32Entry_DoNotUse::GetMetadata() const {
  1932. ::protobuf_google_2fprotobuf_2fmap_5funittest_2eproto::protobuf_AssignDescriptorsOnce();
  1933. return ::protobuf_google_2fprotobuf_2fmap_5funittest_2eproto::file_level_metadata[8];
  1934. }
  1935. void TestMap_MapSfixed32Sfixed32Entry_DoNotUse::MergeFrom(
  1936. const ::google::protobuf::Message& other) {
  1937. ::google::protobuf::Message::MergeFrom(other);
  1938. }
  1939. // ===================================================================
  1940. TestMap_MapSfixed64Sfixed64Entry_DoNotUse::TestMap_MapSfixed64Sfixed64Entry_DoNotUse() {}
  1941. TestMap_MapSfixed64Sfixed64Entry_DoNotUse::TestMap_MapSfixed64Sfixed64Entry_DoNotUse(::google::protobuf::Arena* arena) : SuperType(arena) {}
  1942. void TestMap_MapSfixed64Sfixed64Entry_DoNotUse::MergeFrom(const TestMap_MapSfixed64Sfixed64Entry_DoNotUse& other) {
  1943. MergeFromInternal(other);
  1944. }
  1945. ::google::protobuf::Metadata TestMap_MapSfixed64Sfixed64Entry_DoNotUse::GetMetadata() const {
  1946. ::protobuf_google_2fprotobuf_2fmap_5funittest_2eproto::protobuf_AssignDescriptorsOnce();
  1947. return ::protobuf_google_2fprotobuf_2fmap_5funittest_2eproto::file_level_metadata[9];
  1948. }
  1949. void TestMap_MapSfixed64Sfixed64Entry_DoNotUse::MergeFrom(
  1950. const ::google::protobuf::Message& other) {
  1951. ::google::protobuf::Message::MergeFrom(other);
  1952. }
  1953. // ===================================================================
  1954. TestMap_MapInt32FloatEntry_DoNotUse::TestMap_MapInt32FloatEntry_DoNotUse() {}
  1955. TestMap_MapInt32FloatEntry_DoNotUse::TestMap_MapInt32FloatEntry_DoNotUse(::google::protobuf::Arena* arena) : SuperType(arena) {}
  1956. void TestMap_MapInt32FloatEntry_DoNotUse::MergeFrom(const TestMap_MapInt32FloatEntry_DoNotUse& other) {
  1957. MergeFromInternal(other);
  1958. }
  1959. ::google::protobuf::Metadata TestMap_MapInt32FloatEntry_DoNotUse::GetMetadata() const {
  1960. ::protobuf_google_2fprotobuf_2fmap_5funittest_2eproto::protobuf_AssignDescriptorsOnce();
  1961. return ::protobuf_google_2fprotobuf_2fmap_5funittest_2eproto::file_level_metadata[10];
  1962. }
  1963. void TestMap_MapInt32FloatEntry_DoNotUse::MergeFrom(
  1964. const ::google::protobuf::Message& other) {
  1965. ::google::protobuf::Message::MergeFrom(other);
  1966. }
  1967. // ===================================================================
  1968. TestMap_MapInt32DoubleEntry_DoNotUse::TestMap_MapInt32DoubleEntry_DoNotUse() {}
  1969. TestMap_MapInt32DoubleEntry_DoNotUse::TestMap_MapInt32DoubleEntry_DoNotUse(::google::protobuf::Arena* arena) : SuperType(arena) {}
  1970. void TestMap_MapInt32DoubleEntry_DoNotUse::MergeFrom(const TestMap_MapInt32DoubleEntry_DoNotUse& other) {
  1971. MergeFromInternal(other);
  1972. }
  1973. ::google::protobuf::Metadata TestMap_MapInt32DoubleEntry_DoNotUse::GetMetadata() const {
  1974. ::protobuf_google_2fprotobuf_2fmap_5funittest_2eproto::protobuf_AssignDescriptorsOnce();
  1975. return ::protobuf_google_2fprotobuf_2fmap_5funittest_2eproto::file_level_metadata[11];
  1976. }
  1977. void TestMap_MapInt32DoubleEntry_DoNotUse::MergeFrom(
  1978. const ::google::protobuf::Message& other) {
  1979. ::google::protobuf::Message::MergeFrom(other);
  1980. }
  1981. // ===================================================================
  1982. TestMap_MapBoolBoolEntry_DoNotUse::TestMap_MapBoolBoolEntry_DoNotUse() {}
  1983. TestMap_MapBoolBoolEntry_DoNotUse::TestMap_MapBoolBoolEntry_DoNotUse(::google::protobuf::Arena* arena) : SuperType(arena) {}
  1984. void TestMap_MapBoolBoolEntry_DoNotUse::MergeFrom(const TestMap_MapBoolBoolEntry_DoNotUse& other) {
  1985. MergeFromInternal(other);
  1986. }
  1987. ::google::protobuf::Metadata TestMap_MapBoolBoolEntry_DoNotUse::GetMetadata() const {
  1988. ::protobuf_google_2fprotobuf_2fmap_5funittest_2eproto::protobuf_AssignDescriptorsOnce();
  1989. return ::protobuf_google_2fprotobuf_2fmap_5funittest_2eproto::file_level_metadata[12];
  1990. }
  1991. void TestMap_MapBoolBoolEntry_DoNotUse::MergeFrom(
  1992. const ::google::protobuf::Message& other) {
  1993. ::google::protobuf::Message::MergeFrom(other);
  1994. }
  1995. // ===================================================================
  1996. TestMap_MapStringStringEntry_DoNotUse::TestMap_MapStringStringEntry_DoNotUse() {}
  1997. TestMap_MapStringStringEntry_DoNotUse::TestMap_MapStringStringEntry_DoNotUse(::google::protobuf::Arena* arena) : SuperType(arena) {}
  1998. void TestMap_MapStringStringEntry_DoNotUse::MergeFrom(const TestMap_MapStringStringEntry_DoNotUse& other) {
  1999. MergeFromInternal(other);
  2000. }
  2001. ::google::protobuf::Metadata TestMap_MapStringStringEntry_DoNotUse::GetMetadata() const {
  2002. ::protobuf_google_2fprotobuf_2fmap_5funittest_2eproto::protobuf_AssignDescriptorsOnce();
  2003. return ::protobuf_google_2fprotobuf_2fmap_5funittest_2eproto::file_level_metadata[13];
  2004. }
  2005. void TestMap_MapStringStringEntry_DoNotUse::MergeFrom(
  2006. const ::google::protobuf::Message& other) {
  2007. ::google::protobuf::Message::MergeFrom(other);
  2008. }
  2009. // ===================================================================
  2010. TestMap_MapInt32BytesEntry_DoNotUse::TestMap_MapInt32BytesEntry_DoNotUse() {}
  2011. TestMap_MapInt32BytesEntry_DoNotUse::TestMap_MapInt32BytesEntry_DoNotUse(::google::protobuf::Arena* arena) : SuperType(arena) {}
  2012. void TestMap_MapInt32BytesEntry_DoNotUse::MergeFrom(const TestMap_MapInt32BytesEntry_DoNotUse& other) {
  2013. MergeFromInternal(other);
  2014. }
  2015. ::google::protobuf::Metadata TestMap_MapInt32BytesEntry_DoNotUse::GetMetadata() const {
  2016. ::protobuf_google_2fprotobuf_2fmap_5funittest_2eproto::protobuf_AssignDescriptorsOnce();
  2017. return ::protobuf_google_2fprotobuf_2fmap_5funittest_2eproto::file_level_metadata[14];
  2018. }
  2019. void TestMap_MapInt32BytesEntry_DoNotUse::MergeFrom(
  2020. const ::google::protobuf::Message& other) {
  2021. ::google::protobuf::Message::MergeFrom(other);
  2022. }
  2023. // ===================================================================
  2024. TestMap_MapInt32EnumEntry_DoNotUse::TestMap_MapInt32EnumEntry_DoNotUse() {}
  2025. TestMap_MapInt32EnumEntry_DoNotUse::TestMap_MapInt32EnumEntry_DoNotUse(::google::protobuf::Arena* arena) : SuperType(arena) {}
  2026. void TestMap_MapInt32EnumEntry_DoNotUse::MergeFrom(const TestMap_MapInt32EnumEntry_DoNotUse& other) {
  2027. MergeFromInternal(other);
  2028. }
  2029. ::google::protobuf::Metadata TestMap_MapInt32EnumEntry_DoNotUse::GetMetadata() const {
  2030. ::protobuf_google_2fprotobuf_2fmap_5funittest_2eproto::protobuf_AssignDescriptorsOnce();
  2031. return ::protobuf_google_2fprotobuf_2fmap_5funittest_2eproto::file_level_metadata[15];
  2032. }
  2033. void TestMap_MapInt32EnumEntry_DoNotUse::MergeFrom(
  2034. const ::google::protobuf::Message& other) {
  2035. ::google::protobuf::Message::MergeFrom(other);
  2036. }
  2037. // ===================================================================
  2038. TestMap_MapInt32ForeignMessageEntry_DoNotUse::TestMap_MapInt32ForeignMessageEntry_DoNotUse() {}
  2039. TestMap_MapInt32ForeignMessageEntry_DoNotUse::TestMap_MapInt32ForeignMessageEntry_DoNotUse(::google::protobuf::Arena* arena) : SuperType(arena) {}
  2040. void TestMap_MapInt32ForeignMessageEntry_DoNotUse::MergeFrom(const TestMap_MapInt32ForeignMessageEntry_DoNotUse& other) {
  2041. MergeFromInternal(other);
  2042. }
  2043. ::google::protobuf::Metadata TestMap_MapInt32ForeignMessageEntry_DoNotUse::GetMetadata() const {
  2044. ::protobuf_google_2fprotobuf_2fmap_5funittest_2eproto::protobuf_AssignDescriptorsOnce();
  2045. return ::protobuf_google_2fprotobuf_2fmap_5funittest_2eproto::file_level_metadata[16];
  2046. }
  2047. void TestMap_MapInt32ForeignMessageEntry_DoNotUse::MergeFrom(
  2048. const ::google::protobuf::Message& other) {
  2049. ::google::protobuf::Message::MergeFrom(other);
  2050. }
  2051. // ===================================================================
  2052. TestMap_MapStringForeignMessageEntry_DoNotUse::TestMap_MapStringForeignMessageEntry_DoNotUse() {}
  2053. TestMap_MapStringForeignMessageEntry_DoNotUse::TestMap_MapStringForeignMessageEntry_DoNotUse(::google::protobuf::Arena* arena) : SuperType(arena) {}
  2054. void TestMap_MapStringForeignMessageEntry_DoNotUse::MergeFrom(const TestMap_MapStringForeignMessageEntry_DoNotUse& other) {
  2055. MergeFromInternal(other);
  2056. }
  2057. ::google::protobuf::Metadata TestMap_MapStringForeignMessageEntry_DoNotUse::GetMetadata() const {
  2058. ::protobuf_google_2fprotobuf_2fmap_5funittest_2eproto::protobuf_AssignDescriptorsOnce();
  2059. return ::protobuf_google_2fprotobuf_2fmap_5funittest_2eproto::file_level_metadata[17];
  2060. }
  2061. void TestMap_MapStringForeignMessageEntry_DoNotUse::MergeFrom(
  2062. const ::google::protobuf::Message& other) {
  2063. ::google::protobuf::Message::MergeFrom(other);
  2064. }
  2065. // ===================================================================
  2066. TestMap_MapInt32AllTypesEntry_DoNotUse::TestMap_MapInt32AllTypesEntry_DoNotUse() {}
  2067. TestMap_MapInt32AllTypesEntry_DoNotUse::TestMap_MapInt32AllTypesEntry_DoNotUse(::google::protobuf::Arena* arena) : SuperType(arena) {}
  2068. void TestMap_MapInt32AllTypesEntry_DoNotUse::MergeFrom(const TestMap_MapInt32AllTypesEntry_DoNotUse& other) {
  2069. MergeFromInternal(other);
  2070. }
  2071. ::google::protobuf::Metadata TestMap_MapInt32AllTypesEntry_DoNotUse::GetMetadata() const {
  2072. ::protobuf_google_2fprotobuf_2fmap_5funittest_2eproto::protobuf_AssignDescriptorsOnce();
  2073. return ::protobuf_google_2fprotobuf_2fmap_5funittest_2eproto::file_level_metadata[18];
  2074. }
  2075. void TestMap_MapInt32AllTypesEntry_DoNotUse::MergeFrom(
  2076. const ::google::protobuf::Message& other) {
  2077. ::google::protobuf::Message::MergeFrom(other);
  2078. }
  2079. // ===================================================================
  2080. void TestMap::InitAsDefaultInstance() {
  2081. }
  2082. void TestMap::clear_map_int32_foreign_message() {
  2083. map_int32_foreign_message_.Clear();
  2084. }
  2085. void TestMap::clear_map_string_foreign_message() {
  2086. map_string_foreign_message_.Clear();
  2087. }
  2088. void TestMap::clear_map_int32_all_types() {
  2089. map_int32_all_types_.Clear();
  2090. }
  2091. #if !defined(_MSC_VER) || _MSC_VER >= 1900
  2092. const int TestMap::kMapInt32Int32FieldNumber;
  2093. const int TestMap::kMapInt64Int64FieldNumber;
  2094. const int TestMap::kMapUint32Uint32FieldNumber;
  2095. const int TestMap::kMapUint64Uint64FieldNumber;
  2096. const int TestMap::kMapSint32Sint32FieldNumber;
  2097. const int TestMap::kMapSint64Sint64FieldNumber;
  2098. const int TestMap::kMapFixed32Fixed32FieldNumber;
  2099. const int TestMap::kMapFixed64Fixed64FieldNumber;
  2100. const int TestMap::kMapSfixed32Sfixed32FieldNumber;
  2101. const int TestMap::kMapSfixed64Sfixed64FieldNumber;
  2102. const int TestMap::kMapInt32FloatFieldNumber;
  2103. const int TestMap::kMapInt32DoubleFieldNumber;
  2104. const int TestMap::kMapBoolBoolFieldNumber;
  2105. const int TestMap::kMapStringStringFieldNumber;
  2106. const int TestMap::kMapInt32BytesFieldNumber;
  2107. const int TestMap::kMapInt32EnumFieldNumber;
  2108. const int TestMap::kMapInt32ForeignMessageFieldNumber;
  2109. const int TestMap::kMapStringForeignMessageFieldNumber;
  2110. const int TestMap::kMapInt32AllTypesFieldNumber;
  2111. #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
  2112. TestMap::TestMap()
  2113. : ::google::protobuf::Message(), _internal_metadata_(NULL) {
  2114. ::google::protobuf::internal::InitSCC(
  2115. &protobuf_google_2fprotobuf_2fmap_5funittest_2eproto::scc_info_TestMap.base);
  2116. SharedCtor();
  2117. // @@protoc_insertion_point(constructor:protobuf_unittest.TestMap)
  2118. }
  2119. TestMap::TestMap(::google::protobuf::Arena* arena)
  2120. : ::google::protobuf::Message(),
  2121. _internal_metadata_(arena),
  2122. map_int32_int32_(arena),
  2123. map_int64_int64_(arena),
  2124. map_uint32_uint32_(arena),
  2125. map_uint64_uint64_(arena),
  2126. map_sint32_sint32_(arena),
  2127. map_sint64_sint64_(arena),
  2128. map_fixed32_fixed32_(arena),
  2129. map_fixed64_fixed64_(arena),
  2130. map_sfixed32_sfixed32_(arena),
  2131. map_sfixed64_sfixed64_(arena),
  2132. map_int32_float_(arena),
  2133. map_int32_double_(arena),
  2134. map_bool_bool_(arena),
  2135. map_string_string_(arena),
  2136. map_int32_bytes_(arena),
  2137. map_int32_enum_(arena),
  2138. map_int32_foreign_message_(arena),
  2139. map_string_foreign_message_(arena),
  2140. map_int32_all_types_(arena) {
  2141. ::google::protobuf::internal::InitSCC(&protobuf_google_2fprotobuf_2fmap_5funittest_2eproto::scc_info_TestMap.base);
  2142. SharedCtor();
  2143. RegisterArenaDtor(arena);
  2144. // @@protoc_insertion_point(arena_constructor:protobuf_unittest.TestMap)
  2145. }
  2146. TestMap::TestMap(const TestMap& from)
  2147. : ::google::protobuf::Message(),
  2148. _internal_metadata_(NULL) {
  2149. _internal_metadata_.MergeFrom(from._internal_metadata_);
  2150. map_int32_int32_.MergeFrom(from.map_int32_int32_);
  2151. map_int64_int64_.MergeFrom(from.map_int64_int64_);
  2152. map_uint32_uint32_.MergeFrom(from.map_uint32_uint32_);
  2153. map_uint64_uint64_.MergeFrom(from.map_uint64_uint64_);
  2154. map_sint32_sint32_.MergeFrom(from.map_sint32_sint32_);
  2155. map_sint64_sint64_.MergeFrom(from.map_sint64_sint64_);
  2156. map_fixed32_fixed32_.MergeFrom(from.map_fixed32_fixed32_);
  2157. map_fixed64_fixed64_.MergeFrom(from.map_fixed64_fixed64_);
  2158. map_sfixed32_sfixed32_.MergeFrom(from.map_sfixed32_sfixed32_);
  2159. map_sfixed64_sfixed64_.MergeFrom(from.map_sfixed64_sfixed64_);
  2160. map_int32_float_.MergeFrom(from.map_int32_float_);
  2161. map_int32_double_.MergeFrom(from.map_int32_double_);
  2162. map_bool_bool_.MergeFrom(from.map_bool_bool_);
  2163. map_string_string_.MergeFrom(from.map_string_string_);
  2164. map_int32_bytes_.MergeFrom(from.map_int32_bytes_);
  2165. map_int32_enum_.MergeFrom(from.map_int32_enum_);
  2166. map_int32_foreign_message_.MergeFrom(from.map_int32_foreign_message_);
  2167. map_string_foreign_message_.MergeFrom(from.map_string_foreign_message_);
  2168. map_int32_all_types_.MergeFrom(from.map_int32_all_types_);
  2169. // @@protoc_insertion_point(copy_constructor:protobuf_unittest.TestMap)
  2170. }
  2171. void TestMap::SharedCtor() {
  2172. }
  2173. TestMap::~TestMap() {
  2174. // @@protoc_insertion_point(destructor:protobuf_unittest.TestMap)
  2175. SharedDtor();
  2176. }
  2177. void TestMap::SharedDtor() {
  2178. GOOGLE_DCHECK(GetArenaNoVirtual() == NULL);
  2179. }
  2180. void TestMap::ArenaDtor(void* object) {
  2181. TestMap* _this = reinterpret_cast< TestMap* >(object);
  2182. (void)_this;
  2183. }
  2184. void TestMap::RegisterArenaDtor(::google::protobuf::Arena* arena) {
  2185. }
  2186. void TestMap::SetCachedSize(int size) const {
  2187. _cached_size_.Set(size);
  2188. }
  2189. const ::google::protobuf::Descriptor* TestMap::descriptor() {
  2190. ::protobuf_google_2fprotobuf_2fmap_5funittest_2eproto::protobuf_AssignDescriptorsOnce();
  2191. return ::protobuf_google_2fprotobuf_2fmap_5funittest_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
  2192. }
  2193. const TestMap& TestMap::default_instance() {
  2194. ::google::protobuf::internal::InitSCC(&protobuf_google_2fprotobuf_2fmap_5funittest_2eproto::scc_info_TestMap.base);
  2195. return *internal_default_instance();
  2196. }
  2197. void TestMap::Clear() {
  2198. // @@protoc_insertion_point(message_clear_start:protobuf_unittest.TestMap)
  2199. ::google::protobuf::uint32 cached_has_bits = 0;
  2200. // Prevent compiler warnings about cached_has_bits being unused
  2201. (void) cached_has_bits;
  2202. map_int32_int32_.Clear();
  2203. map_int64_int64_.Clear();
  2204. map_uint32_uint32_.Clear();
  2205. map_uint64_uint64_.Clear();
  2206. map_sint32_sint32_.Clear();
  2207. map_sint64_sint64_.Clear();
  2208. map_fixed32_fixed32_.Clear();
  2209. map_fixed64_fixed64_.Clear();
  2210. map_sfixed32_sfixed32_.Clear();
  2211. map_sfixed64_sfixed64_.Clear();
  2212. map_int32_float_.Clear();
  2213. map_int32_double_.Clear();
  2214. map_bool_bool_.Clear();
  2215. map_string_string_.Clear();
  2216. map_int32_bytes_.Clear();
  2217. map_int32_enum_.Clear();
  2218. map_int32_foreign_message_.Clear();
  2219. map_string_foreign_message_.Clear();
  2220. map_int32_all_types_.Clear();
  2221. _internal_metadata_.Clear();
  2222. }
  2223. bool TestMap::MergePartialFromCodedStream(
  2224. ::google::protobuf::io::CodedInputStream* input) {
  2225. #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
  2226. ::google::protobuf::uint32 tag;
  2227. // @@protoc_insertion_point(parse_start:protobuf_unittest.TestMap)
  2228. for (;;) {
  2229. ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(16383u);
  2230. tag = p.first;
  2231. if (!p.second) goto handle_unusual;
  2232. switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
  2233. // map<int32, int32> map_int32_int32 = 1;
  2234. case 1: {
  2235. if (static_cast< ::google::protobuf::uint8>(tag) ==
  2236. static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
  2237. TestMap_MapInt32Int32Entry_DoNotUse::Parser< ::google::protobuf::internal::MapField<
  2238. TestMap_MapInt32Int32Entry_DoNotUse,
  2239. ::google::protobuf::int32, ::google::protobuf::int32,
  2240. ::google::protobuf::internal::WireFormatLite::TYPE_INT32,
  2241. ::google::protobuf::internal::WireFormatLite::TYPE_INT32,
  2242. 0 >,
  2243. ::google::protobuf::Map< ::google::protobuf::int32, ::google::protobuf::int32 > > parser(&map_int32_int32_);
  2244. DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
  2245. input, &parser));
  2246. } else {
  2247. goto handle_unusual;
  2248. }
  2249. break;
  2250. }
  2251. // map<int64, int64> map_int64_int64 = 2;
  2252. case 2: {
  2253. if (static_cast< ::google::protobuf::uint8>(tag) ==
  2254. static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) {
  2255. TestMap_MapInt64Int64Entry_DoNotUse::Parser< ::google::protobuf::internal::MapField<
  2256. TestMap_MapInt64Int64Entry_DoNotUse,
  2257. ::google::protobuf::int64, ::google::protobuf::int64,
  2258. ::google::protobuf::internal::WireFormatLite::TYPE_INT64,
  2259. ::google::protobuf::internal::WireFormatLite::TYPE_INT64,
  2260. 0 >,
  2261. ::google::protobuf::Map< ::google::protobuf::int64, ::google::protobuf::int64 > > parser(&map_int64_int64_);
  2262. DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
  2263. input, &parser));
  2264. } else {
  2265. goto handle_unusual;
  2266. }
  2267. break;
  2268. }
  2269. // map<uint32, uint32> map_uint32_uint32 = 3;
  2270. case 3: {
  2271. if (static_cast< ::google::protobuf::uint8>(tag) ==
  2272. static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) {
  2273. TestMap_MapUint32Uint32Entry_DoNotUse::Parser< ::google::protobuf::internal::MapField<
  2274. TestMap_MapUint32Uint32Entry_DoNotUse,
  2275. ::google::protobuf::uint32, ::google::protobuf::uint32,
  2276. ::google::protobuf::internal::WireFormatLite::TYPE_UINT32,
  2277. ::google::protobuf::internal::WireFormatLite::TYPE_UINT32,
  2278. 0 >,
  2279. ::google::protobuf::Map< ::google::protobuf::uint32, ::google::protobuf::uint32 > > parser(&map_uint32_uint32_);
  2280. DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
  2281. input, &parser));
  2282. } else {
  2283. goto handle_unusual;
  2284. }
  2285. break;
  2286. }
  2287. // map<uint64, uint64> map_uint64_uint64 = 4;
  2288. case 4: {
  2289. if (static_cast< ::google::protobuf::uint8>(tag) ==
  2290. static_cast< ::google::protobuf::uint8>(34u /* 34 & 0xFF */)) {
  2291. TestMap_MapUint64Uint64Entry_DoNotUse::Parser< ::google::protobuf::internal::MapField<
  2292. TestMap_MapUint64Uint64Entry_DoNotUse,
  2293. ::google::protobuf::uint64, ::google::protobuf::uint64,
  2294. ::google::protobuf::internal::WireFormatLite::TYPE_UINT64,
  2295. ::google::protobuf::internal::WireFormatLite::TYPE_UINT64,
  2296. 0 >,
  2297. ::google::protobuf::Map< ::google::protobuf::uint64, ::google::protobuf::uint64 > > parser(&map_uint64_uint64_);
  2298. DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
  2299. input, &parser));
  2300. } else {
  2301. goto handle_unusual;
  2302. }
  2303. break;
  2304. }
  2305. // map<sint32, sint32> map_sint32_sint32 = 5;
  2306. case 5: {
  2307. if (static_cast< ::google::protobuf::uint8>(tag) ==
  2308. static_cast< ::google::protobuf::uint8>(42u /* 42 & 0xFF */)) {
  2309. TestMap_MapSint32Sint32Entry_DoNotUse::Parser< ::google::protobuf::internal::MapField<
  2310. TestMap_MapSint32Sint32Entry_DoNotUse,
  2311. ::google::protobuf::int32, ::google::protobuf::int32,
  2312. ::google::protobuf::internal::WireFormatLite::TYPE_SINT32,
  2313. ::google::protobuf::internal::WireFormatLite::TYPE_SINT32,
  2314. 0 >,
  2315. ::google::protobuf::Map< ::google::protobuf::int32, ::google::protobuf::int32 > > parser(&map_sint32_sint32_);
  2316. DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
  2317. input, &parser));
  2318. } else {
  2319. goto handle_unusual;
  2320. }
  2321. break;
  2322. }
  2323. // map<sint64, sint64> map_sint64_sint64 = 6;
  2324. case 6: {
  2325. if (static_cast< ::google::protobuf::uint8>(tag) ==
  2326. static_cast< ::google::protobuf::uint8>(50u /* 50 & 0xFF */)) {
  2327. TestMap_MapSint64Sint64Entry_DoNotUse::Parser< ::google::protobuf::internal::MapField<
  2328. TestMap_MapSint64Sint64Entry_DoNotUse,
  2329. ::google::protobuf::int64, ::google::protobuf::int64,
  2330. ::google::protobuf::internal::WireFormatLite::TYPE_SINT64,
  2331. ::google::protobuf::internal::WireFormatLite::TYPE_SINT64,
  2332. 0 >,
  2333. ::google::protobuf::Map< ::google::protobuf::int64, ::google::protobuf::int64 > > parser(&map_sint64_sint64_);
  2334. DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
  2335. input, &parser));
  2336. } else {
  2337. goto handle_unusual;
  2338. }
  2339. break;
  2340. }
  2341. // map<fixed32, fixed32> map_fixed32_fixed32 = 7;
  2342. case 7: {
  2343. if (static_cast< ::google::protobuf::uint8>(tag) ==
  2344. static_cast< ::google::protobuf::uint8>(58u /* 58 & 0xFF */)) {
  2345. TestMap_MapFixed32Fixed32Entry_DoNotUse::Parser< ::google::protobuf::internal::MapField<
  2346. TestMap_MapFixed32Fixed32Entry_DoNotUse,
  2347. ::google::protobuf::uint32, ::google::protobuf::uint32,
  2348. ::google::protobuf::internal::WireFormatLite::TYPE_FIXED32,
  2349. ::google::protobuf::internal::WireFormatLite::TYPE_FIXED32,
  2350. 0 >,
  2351. ::google::protobuf::Map< ::google::protobuf::uint32, ::google::protobuf::uint32 > > parser(&map_fixed32_fixed32_);
  2352. DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
  2353. input, &parser));
  2354. } else {
  2355. goto handle_unusual;
  2356. }
  2357. break;
  2358. }
  2359. // map<fixed64, fixed64> map_fixed64_fixed64 = 8;
  2360. case 8: {
  2361. if (static_cast< ::google::protobuf::uint8>(tag) ==
  2362. static_cast< ::google::protobuf::uint8>(66u /* 66 & 0xFF */)) {
  2363. TestMap_MapFixed64Fixed64Entry_DoNotUse::Parser< ::google::protobuf::internal::MapField<
  2364. TestMap_MapFixed64Fixed64Entry_DoNotUse,
  2365. ::google::protobuf::uint64, ::google::protobuf::uint64,
  2366. ::google::protobuf::internal::WireFormatLite::TYPE_FIXED64,
  2367. ::google::protobuf::internal::WireFormatLite::TYPE_FIXED64,
  2368. 0 >,
  2369. ::google::protobuf::Map< ::google::protobuf::uint64, ::google::protobuf::uint64 > > parser(&map_fixed64_fixed64_);
  2370. DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
  2371. input, &parser));
  2372. } else {
  2373. goto handle_unusual;
  2374. }
  2375. break;
  2376. }
  2377. // map<sfixed32, sfixed32> map_sfixed32_sfixed32 = 9;
  2378. case 9: {
  2379. if (static_cast< ::google::protobuf::uint8>(tag) ==
  2380. static_cast< ::google::protobuf::uint8>(74u /* 74 & 0xFF */)) {
  2381. TestMap_MapSfixed32Sfixed32Entry_DoNotUse::Parser< ::google::protobuf::internal::MapField<
  2382. TestMap_MapSfixed32Sfixed32Entry_DoNotUse,
  2383. ::google::protobuf::int32, ::google::protobuf::int32,
  2384. ::google::protobuf::internal::WireFormatLite::TYPE_SFIXED32,
  2385. ::google::protobuf::internal::WireFormatLite::TYPE_SFIXED32,
  2386. 0 >,
  2387. ::google::protobuf::Map< ::google::protobuf::int32, ::google::protobuf::int32 > > parser(&map_sfixed32_sfixed32_);
  2388. DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
  2389. input, &parser));
  2390. } else {
  2391. goto handle_unusual;
  2392. }
  2393. break;
  2394. }
  2395. // map<sfixed64, sfixed64> map_sfixed64_sfixed64 = 10;
  2396. case 10: {
  2397. if (static_cast< ::google::protobuf::uint8>(tag) ==
  2398. static_cast< ::google::protobuf::uint8>(82u /* 82 & 0xFF */)) {
  2399. TestMap_MapSfixed64Sfixed64Entry_DoNotUse::Parser< ::google::protobuf::internal::MapField<
  2400. TestMap_MapSfixed64Sfixed64Entry_DoNotUse,
  2401. ::google::protobuf::int64, ::google::protobuf::int64,
  2402. ::google::protobuf::internal::WireFormatLite::TYPE_SFIXED64,
  2403. ::google::protobuf::internal::WireFormatLite::TYPE_SFIXED64,
  2404. 0 >,
  2405. ::google::protobuf::Map< ::google::protobuf::int64, ::google::protobuf::int64 > > parser(&map_sfixed64_sfixed64_);
  2406. DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
  2407. input, &parser));
  2408. } else {
  2409. goto handle_unusual;
  2410. }
  2411. break;
  2412. }
  2413. // map<int32, float> map_int32_float = 11;
  2414. case 11: {
  2415. if (static_cast< ::google::protobuf::uint8>(tag) ==
  2416. static_cast< ::google::protobuf::uint8>(90u /* 90 & 0xFF */)) {
  2417. TestMap_MapInt32FloatEntry_DoNotUse::Parser< ::google::protobuf::internal::MapField<
  2418. TestMap_MapInt32FloatEntry_DoNotUse,
  2419. ::google::protobuf::int32, float,
  2420. ::google::protobuf::internal::WireFormatLite::TYPE_INT32,
  2421. ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT,
  2422. 0 >,
  2423. ::google::protobuf::Map< ::google::protobuf::int32, float > > parser(&map_int32_float_);
  2424. DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
  2425. input, &parser));
  2426. } else {
  2427. goto handle_unusual;
  2428. }
  2429. break;
  2430. }
  2431. // map<int32, double> map_int32_double = 12;
  2432. case 12: {
  2433. if (static_cast< ::google::protobuf::uint8>(tag) ==
  2434. static_cast< ::google::protobuf::uint8>(98u /* 98 & 0xFF */)) {
  2435. TestMap_MapInt32DoubleEntry_DoNotUse::Parser< ::google::protobuf::internal::MapField<
  2436. TestMap_MapInt32DoubleEntry_DoNotUse,
  2437. ::google::protobuf::int32, double,
  2438. ::google::protobuf::internal::WireFormatLite::TYPE_INT32,
  2439. ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE,
  2440. 0 >,
  2441. ::google::protobuf::Map< ::google::protobuf::int32, double > > parser(&map_int32_double_);
  2442. DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
  2443. input, &parser));
  2444. } else {
  2445. goto handle_unusual;
  2446. }
  2447. break;
  2448. }
  2449. // map<bool, bool> map_bool_bool = 13;
  2450. case 13: {
  2451. if (static_cast< ::google::protobuf::uint8>(tag) ==
  2452. static_cast< ::google::protobuf::uint8>(106u /* 106 & 0xFF */)) {
  2453. TestMap_MapBoolBoolEntry_DoNotUse::Parser< ::google::protobuf::internal::MapField<
  2454. TestMap_MapBoolBoolEntry_DoNotUse,
  2455. bool, bool,
  2456. ::google::protobuf::internal::WireFormatLite::TYPE_BOOL,
  2457. ::google::protobuf::internal::WireFormatLite::TYPE_BOOL,
  2458. 0 >,
  2459. ::google::protobuf::Map< bool, bool > > parser(&map_bool_bool_);
  2460. DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
  2461. input, &parser));
  2462. } else {
  2463. goto handle_unusual;
  2464. }
  2465. break;
  2466. }
  2467. // map<string, string> map_string_string = 14;
  2468. case 14: {
  2469. if (static_cast< ::google::protobuf::uint8>(tag) ==
  2470. static_cast< ::google::protobuf::uint8>(114u /* 114 & 0xFF */)) {
  2471. TestMap_MapStringStringEntry_DoNotUse::Parser< ::google::protobuf::internal::MapField<
  2472. TestMap_MapStringStringEntry_DoNotUse,
  2473. ::std::string, ::std::string,
  2474. ::google::protobuf::internal::WireFormatLite::TYPE_STRING,
  2475. ::google::protobuf::internal::WireFormatLite::TYPE_STRING,
  2476. 0 >,
  2477. ::google::protobuf::Map< ::std::string, ::std::string > > parser(&map_string_string_);
  2478. DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
  2479. input, &parser));
  2480. DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
  2481. parser.key().data(), static_cast<int>(parser.key().length()),
  2482. ::google::protobuf::internal::WireFormatLite::PARSE,
  2483. "protobuf_unittest.TestMap.MapStringStringEntry.key"));
  2484. DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
  2485. parser.value().data(), static_cast<int>(parser.value().length()),
  2486. ::google::protobuf::internal::WireFormatLite::PARSE,
  2487. "protobuf_unittest.TestMap.MapStringStringEntry.value"));
  2488. } else {
  2489. goto handle_unusual;
  2490. }
  2491. break;
  2492. }
  2493. // map<int32, bytes> map_int32_bytes = 15;
  2494. case 15: {
  2495. if (static_cast< ::google::protobuf::uint8>(tag) ==
  2496. static_cast< ::google::protobuf::uint8>(122u /* 122 & 0xFF */)) {
  2497. TestMap_MapInt32BytesEntry_DoNotUse::Parser< ::google::protobuf::internal::MapField<
  2498. TestMap_MapInt32BytesEntry_DoNotUse,
  2499. ::google::protobuf::int32, ::std::string,
  2500. ::google::protobuf::internal::WireFormatLite::TYPE_INT32,
  2501. ::google::protobuf::internal::WireFormatLite::TYPE_BYTES,
  2502. 0 >,
  2503. ::google::protobuf::Map< ::google::protobuf::int32, ::std::string > > parser(&map_int32_bytes_);
  2504. DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
  2505. input, &parser));
  2506. } else {
  2507. goto handle_unusual;
  2508. }
  2509. break;
  2510. }
  2511. // map<int32, .protobuf_unittest.MapEnum> map_int32_enum = 16;
  2512. case 16: {
  2513. if (static_cast< ::google::protobuf::uint8>(tag) ==
  2514. static_cast< ::google::protobuf::uint8>(130u /* 130 & 0xFF */)) {
  2515. TestMap_MapInt32EnumEntry_DoNotUse::Parser< ::google::protobuf::internal::MapField<
  2516. TestMap_MapInt32EnumEntry_DoNotUse,
  2517. ::google::protobuf::int32, ::protobuf_unittest::MapEnum,
  2518. ::google::protobuf::internal::WireFormatLite::TYPE_INT32,
  2519. ::google::protobuf::internal::WireFormatLite::TYPE_ENUM,
  2520. 0 >,
  2521. ::google::protobuf::Map< ::google::protobuf::int32, ::protobuf_unittest::MapEnum > > parser(&map_int32_enum_);
  2522. DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
  2523. input, &parser));
  2524. } else {
  2525. goto handle_unusual;
  2526. }
  2527. break;
  2528. }
  2529. // map<int32, .protobuf_unittest.ForeignMessage> map_int32_foreign_message = 17;
  2530. case 17: {
  2531. if (static_cast< ::google::protobuf::uint8>(tag) ==
  2532. static_cast< ::google::protobuf::uint8>(138u /* 138 & 0xFF */)) {
  2533. TestMap_MapInt32ForeignMessageEntry_DoNotUse::Parser< ::google::protobuf::internal::MapField<
  2534. TestMap_MapInt32ForeignMessageEntry_DoNotUse,
  2535. ::google::protobuf::int32, ::protobuf_unittest::ForeignMessage,
  2536. ::google::protobuf::internal::WireFormatLite::TYPE_INT32,
  2537. ::google::protobuf::internal::WireFormatLite::TYPE_MESSAGE,
  2538. 0 >,
  2539. ::google::protobuf::Map< ::google::protobuf::int32, ::protobuf_unittest::ForeignMessage > > parser(&map_int32_foreign_message_);
  2540. DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
  2541. input, &parser));
  2542. } else {
  2543. goto handle_unusual;
  2544. }
  2545. break;
  2546. }
  2547. // map<string, .protobuf_unittest.ForeignMessage> map_string_foreign_message = 18;
  2548. case 18: {
  2549. if (static_cast< ::google::protobuf::uint8>(tag) ==
  2550. static_cast< ::google::protobuf::uint8>(146u /* 146 & 0xFF */)) {
  2551. TestMap_MapStringForeignMessageEntry_DoNotUse::Parser< ::google::protobuf::internal::MapField<
  2552. TestMap_MapStringForeignMessageEntry_DoNotUse,
  2553. ::std::string, ::protobuf_unittest::ForeignMessage,
  2554. ::google::protobuf::internal::WireFormatLite::TYPE_STRING,
  2555. ::google::protobuf::internal::WireFormatLite::TYPE_MESSAGE,
  2556. 0 >,
  2557. ::google::protobuf::Map< ::std::string, ::protobuf_unittest::ForeignMessage > > parser(&map_string_foreign_message_);
  2558. DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
  2559. input, &parser));
  2560. DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
  2561. parser.key().data(), static_cast<int>(parser.key().length()),
  2562. ::google::protobuf::internal::WireFormatLite::PARSE,
  2563. "protobuf_unittest.TestMap.MapStringForeignMessageEntry.key"));
  2564. } else {
  2565. goto handle_unusual;
  2566. }
  2567. break;
  2568. }
  2569. // map<int32, .protobuf_unittest.TestAllTypes> map_int32_all_types = 19;
  2570. case 19: {
  2571. if (static_cast< ::google::protobuf::uint8>(tag) ==
  2572. static_cast< ::google::protobuf::uint8>(154u /* 154 & 0xFF */)) {
  2573. TestMap_MapInt32AllTypesEntry_DoNotUse::Parser< ::google::protobuf::internal::MapField<
  2574. TestMap_MapInt32AllTypesEntry_DoNotUse,
  2575. ::google::protobuf::int32, ::protobuf_unittest::TestAllTypes,
  2576. ::google::protobuf::internal::WireFormatLite::TYPE_INT32,
  2577. ::google::protobuf::internal::WireFormatLite::TYPE_MESSAGE,
  2578. 0 >,
  2579. ::google::protobuf::Map< ::google::protobuf::int32, ::protobuf_unittest::TestAllTypes > > parser(&map_int32_all_types_);
  2580. DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
  2581. input, &parser));
  2582. } else {
  2583. goto handle_unusual;
  2584. }
  2585. break;
  2586. }
  2587. default: {
  2588. handle_unusual:
  2589. if (tag == 0) {
  2590. goto success;
  2591. }
  2592. DO_(::google::protobuf::internal::WireFormat::SkipField(
  2593. input, tag, _internal_metadata_.mutable_unknown_fields()));
  2594. break;
  2595. }
  2596. }
  2597. }
  2598. success:
  2599. // @@protoc_insertion_point(parse_success:protobuf_unittest.TestMap)
  2600. return true;
  2601. failure:
  2602. // @@protoc_insertion_point(parse_failure:protobuf_unittest.TestMap)
  2603. return false;
  2604. #undef DO_
  2605. }
  2606. void TestMap::SerializeWithCachedSizes(
  2607. ::google::protobuf::io::CodedOutputStream* output) const {
  2608. // @@protoc_insertion_point(serialize_start:protobuf_unittest.TestMap)
  2609. ::google::protobuf::uint32 cached_has_bits = 0;
  2610. (void) cached_has_bits;
  2611. // map<int32, int32> map_int32_int32 = 1;
  2612. if (!this->map_int32_int32().empty()) {
  2613. typedef ::google::protobuf::Map< ::google::protobuf::int32, ::google::protobuf::int32 >::const_pointer
  2614. ConstPtr;
  2615. typedef ::google::protobuf::internal::SortItem< ::google::protobuf::int32, ConstPtr > SortItem;
  2616. typedef ::google::protobuf::internal::CompareByFirstField<SortItem> Less;
  2617. if (output->IsSerializationDeterministic() &&
  2618. this->map_int32_int32().size() > 1) {
  2619. ::std::unique_ptr<SortItem[]> items(
  2620. new SortItem[this->map_int32_int32().size()]);
  2621. typedef ::google::protobuf::Map< ::google::protobuf::int32, ::google::protobuf::int32 >::size_type size_type;
  2622. size_type n = 0;
  2623. for (::google::protobuf::Map< ::google::protobuf::int32, ::google::protobuf::int32 >::const_iterator
  2624. it = this->map_int32_int32().begin();
  2625. it != this->map_int32_int32().end(); ++it, ++n) {
  2626. items[static_cast<ptrdiff_t>(n)] = SortItem(&*it);
  2627. }
  2628. ::std::sort(&items[0], &items[static_cast<ptrdiff_t>(n)], Less());
  2629. ::std::unique_ptr<TestMap_MapInt32Int32Entry_DoNotUse> entry;
  2630. for (size_type i = 0; i < n; i++) {
  2631. entry.reset(map_int32_int32_.NewEntryWrapper(
  2632. items[static_cast<ptrdiff_t>(i)].second->first, items[static_cast<ptrdiff_t>(i)].second->second));
  2633. ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
  2634. 1, *entry, output);
  2635. if (entry->GetArena() != NULL) {
  2636. entry.release();
  2637. }
  2638. }
  2639. } else {
  2640. ::std::unique_ptr<TestMap_MapInt32Int32Entry_DoNotUse> entry;
  2641. for (::google::protobuf::Map< ::google::protobuf::int32, ::google::protobuf::int32 >::const_iterator
  2642. it = this->map_int32_int32().begin();
  2643. it != this->map_int32_int32().end(); ++it) {
  2644. entry.reset(map_int32_int32_.NewEntryWrapper(
  2645. it->first, it->second));
  2646. ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
  2647. 1, *entry, output);
  2648. if (entry->GetArena() != NULL) {
  2649. entry.release();
  2650. }
  2651. }
  2652. }
  2653. }
  2654. // map<int64, int64> map_int64_int64 = 2;
  2655. if (!this->map_int64_int64().empty()) {
  2656. typedef ::google::protobuf::Map< ::google::protobuf::int64, ::google::protobuf::int64 >::const_pointer
  2657. ConstPtr;
  2658. typedef ::google::protobuf::internal::SortItem< ::google::protobuf::int64, ConstPtr > SortItem;
  2659. typedef ::google::protobuf::internal::CompareByFirstField<SortItem> Less;
  2660. if (output->IsSerializationDeterministic() &&
  2661. this->map_int64_int64().size() > 1) {
  2662. ::std::unique_ptr<SortItem[]> items(
  2663. new SortItem[this->map_int64_int64().size()]);
  2664. typedef ::google::protobuf::Map< ::google::protobuf::int64, ::google::protobuf::int64 >::size_type size_type;
  2665. size_type n = 0;
  2666. for (::google::protobuf::Map< ::google::protobuf::int64, ::google::protobuf::int64 >::const_iterator
  2667. it = this->map_int64_int64().begin();
  2668. it != this->map_int64_int64().end(); ++it, ++n) {
  2669. items[static_cast<ptrdiff_t>(n)] = SortItem(&*it);
  2670. }
  2671. ::std::sort(&items[0], &items[static_cast<ptrdiff_t>(n)], Less());
  2672. ::std::unique_ptr<TestMap_MapInt64Int64Entry_DoNotUse> entry;
  2673. for (size_type i = 0; i < n; i++) {
  2674. entry.reset(map_int64_int64_.NewEntryWrapper(
  2675. items[static_cast<ptrdiff_t>(i)].second->first, items[static_cast<ptrdiff_t>(i)].second->second));
  2676. ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
  2677. 2, *entry, output);
  2678. if (entry->GetArena() != NULL) {
  2679. entry.release();
  2680. }
  2681. }
  2682. } else {
  2683. ::std::unique_ptr<TestMap_MapInt64Int64Entry_DoNotUse> entry;
  2684. for (::google::protobuf::Map< ::google::protobuf::int64, ::google::protobuf::int64 >::const_iterator
  2685. it = this->map_int64_int64().begin();
  2686. it != this->map_int64_int64().end(); ++it) {
  2687. entry.reset(map_int64_int64_.NewEntryWrapper(
  2688. it->first, it->second));
  2689. ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
  2690. 2, *entry, output);
  2691. if (entry->GetArena() != NULL) {
  2692. entry.release();
  2693. }
  2694. }
  2695. }
  2696. }
  2697. // map<uint32, uint32> map_uint32_uint32 = 3;
  2698. if (!this->map_uint32_uint32().empty()) {
  2699. typedef ::google::protobuf::Map< ::google::protobuf::uint32, ::google::protobuf::uint32 >::const_pointer
  2700. ConstPtr;
  2701. typedef ::google::protobuf::internal::SortItem< ::google::protobuf::uint32, ConstPtr > SortItem;
  2702. typedef ::google::protobuf::internal::CompareByFirstField<SortItem> Less;
  2703. if (output->IsSerializationDeterministic() &&
  2704. this->map_uint32_uint32().size() > 1) {
  2705. ::std::unique_ptr<SortItem[]> items(
  2706. new SortItem[this->map_uint32_uint32().size()]);
  2707. typedef ::google::protobuf::Map< ::google::protobuf::uint32, ::google::protobuf::uint32 >::size_type size_type;
  2708. size_type n = 0;
  2709. for (::google::protobuf::Map< ::google::protobuf::uint32, ::google::protobuf::uint32 >::const_iterator
  2710. it = this->map_uint32_uint32().begin();
  2711. it != this->map_uint32_uint32().end(); ++it, ++n) {
  2712. items[static_cast<ptrdiff_t>(n)] = SortItem(&*it);
  2713. }
  2714. ::std::sort(&items[0], &items[static_cast<ptrdiff_t>(n)], Less());
  2715. ::std::unique_ptr<TestMap_MapUint32Uint32Entry_DoNotUse> entry;
  2716. for (size_type i = 0; i < n; i++) {
  2717. entry.reset(map_uint32_uint32_.NewEntryWrapper(
  2718. items[static_cast<ptrdiff_t>(i)].second->first, items[static_cast<ptrdiff_t>(i)].second->second));
  2719. ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
  2720. 3, *entry, output);
  2721. if (entry->GetArena() != NULL) {
  2722. entry.release();
  2723. }
  2724. }
  2725. } else {
  2726. ::std::unique_ptr<TestMap_MapUint32Uint32Entry_DoNotUse> entry;
  2727. for (::google::protobuf::Map< ::google::protobuf::uint32, ::google::protobuf::uint32 >::const_iterator
  2728. it = this->map_uint32_uint32().begin();
  2729. it != this->map_uint32_uint32().end(); ++it) {
  2730. entry.reset(map_uint32_uint32_.NewEntryWrapper(
  2731. it->first, it->second));
  2732. ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
  2733. 3, *entry, output);
  2734. if (entry->GetArena() != NULL) {
  2735. entry.release();
  2736. }
  2737. }
  2738. }
  2739. }
  2740. // map<uint64, uint64> map_uint64_uint64 = 4;
  2741. if (!this->map_uint64_uint64().empty()) {
  2742. typedef ::google::protobuf::Map< ::google::protobuf::uint64, ::google::protobuf::uint64 >::const_pointer
  2743. ConstPtr;
  2744. typedef ::google::protobuf::internal::SortItem< ::google::protobuf::uint64, ConstPtr > SortItem;
  2745. typedef ::google::protobuf::internal::CompareByFirstField<SortItem> Less;
  2746. if (output->IsSerializationDeterministic() &&
  2747. this->map_uint64_uint64().size() > 1) {
  2748. ::std::unique_ptr<SortItem[]> items(
  2749. new SortItem[this->map_uint64_uint64().size()]);
  2750. typedef ::google::protobuf::Map< ::google::protobuf::uint64, ::google::protobuf::uint64 >::size_type size_type;
  2751. size_type n = 0;
  2752. for (::google::protobuf::Map< ::google::protobuf::uint64, ::google::protobuf::uint64 >::const_iterator
  2753. it = this->map_uint64_uint64().begin();
  2754. it != this->map_uint64_uint64().end(); ++it, ++n) {
  2755. items[static_cast<ptrdiff_t>(n)] = SortItem(&*it);
  2756. }
  2757. ::std::sort(&items[0], &items[static_cast<ptrdiff_t>(n)], Less());
  2758. ::std::unique_ptr<TestMap_MapUint64Uint64Entry_DoNotUse> entry;
  2759. for (size_type i = 0; i < n; i++) {
  2760. entry.reset(map_uint64_uint64_.NewEntryWrapper(
  2761. items[static_cast<ptrdiff_t>(i)].second->first, items[static_cast<ptrdiff_t>(i)].second->second));
  2762. ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
  2763. 4, *entry, output);
  2764. if (entry->GetArena() != NULL) {
  2765. entry.release();
  2766. }
  2767. }
  2768. } else {
  2769. ::std::unique_ptr<TestMap_MapUint64Uint64Entry_DoNotUse> entry;
  2770. for (::google::protobuf::Map< ::google::protobuf::uint64, ::google::protobuf::uint64 >::const_iterator
  2771. it = this->map_uint64_uint64().begin();
  2772. it != this->map_uint64_uint64().end(); ++it) {
  2773. entry.reset(map_uint64_uint64_.NewEntryWrapper(
  2774. it->first, it->second));
  2775. ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
  2776. 4, *entry, output);
  2777. if (entry->GetArena() != NULL) {
  2778. entry.release();
  2779. }
  2780. }
  2781. }
  2782. }
  2783. // map<sint32, sint32> map_sint32_sint32 = 5;
  2784. if (!this->map_sint32_sint32().empty()) {
  2785. typedef ::google::protobuf::Map< ::google::protobuf::int32, ::google::protobuf::int32 >::const_pointer
  2786. ConstPtr;
  2787. typedef ::google::protobuf::internal::SortItem< ::google::protobuf::int32, ConstPtr > SortItem;
  2788. typedef ::google::protobuf::internal::CompareByFirstField<SortItem> Less;
  2789. if (output->IsSerializationDeterministic() &&
  2790. this->map_sint32_sint32().size() > 1) {
  2791. ::std::unique_ptr<SortItem[]> items(
  2792. new SortItem[this->map_sint32_sint32().size()]);
  2793. typedef ::google::protobuf::Map< ::google::protobuf::int32, ::google::protobuf::int32 >::size_type size_type;
  2794. size_type n = 0;
  2795. for (::google::protobuf::Map< ::google::protobuf::int32, ::google::protobuf::int32 >::const_iterator
  2796. it = this->map_sint32_sint32().begin();
  2797. it != this->map_sint32_sint32().end(); ++it, ++n) {
  2798. items[static_cast<ptrdiff_t>(n)] = SortItem(&*it);
  2799. }
  2800. ::std::sort(&items[0], &items[static_cast<ptrdiff_t>(n)], Less());
  2801. ::std::unique_ptr<TestMap_MapSint32Sint32Entry_DoNotUse> entry;
  2802. for (size_type i = 0; i < n; i++) {
  2803. entry.reset(map_sint32_sint32_.NewEntryWrapper(
  2804. items[static_cast<ptrdiff_t>(i)].second->first, items[static_cast<ptrdiff_t>(i)].second->second));
  2805. ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
  2806. 5, *entry, output);
  2807. if (entry->GetArena() != NULL) {
  2808. entry.release();
  2809. }
  2810. }
  2811. } else {
  2812. ::std::unique_ptr<TestMap_MapSint32Sint32Entry_DoNotUse> entry;
  2813. for (::google::protobuf::Map< ::google::protobuf::int32, ::google::protobuf::int32 >::const_iterator
  2814. it = this->map_sint32_sint32().begin();
  2815. it != this->map_sint32_sint32().end(); ++it) {
  2816. entry.reset(map_sint32_sint32_.NewEntryWrapper(
  2817. it->first, it->second));
  2818. ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
  2819. 5, *entry, output);
  2820. if (entry->GetArena() != NULL) {
  2821. entry.release();
  2822. }
  2823. }
  2824. }
  2825. }
  2826. // map<sint64, sint64> map_sint64_sint64 = 6;
  2827. if (!this->map_sint64_sint64().empty()) {
  2828. typedef ::google::protobuf::Map< ::google::protobuf::int64, ::google::protobuf::int64 >::const_pointer
  2829. ConstPtr;
  2830. typedef ::google::protobuf::internal::SortItem< ::google::protobuf::int64, ConstPtr > SortItem;
  2831. typedef ::google::protobuf::internal::CompareByFirstField<SortItem> Less;
  2832. if (output->IsSerializationDeterministic() &&
  2833. this->map_sint64_sint64().size() > 1) {
  2834. ::std::unique_ptr<SortItem[]> items(
  2835. new SortItem[this->map_sint64_sint64().size()]);
  2836. typedef ::google::protobuf::Map< ::google::protobuf::int64, ::google::protobuf::int64 >::size_type size_type;
  2837. size_type n = 0;
  2838. for (::google::protobuf::Map< ::google::protobuf::int64, ::google::protobuf::int64 >::const_iterator
  2839. it = this->map_sint64_sint64().begin();
  2840. it != this->map_sint64_sint64().end(); ++it, ++n) {
  2841. items[static_cast<ptrdiff_t>(n)] = SortItem(&*it);
  2842. }
  2843. ::std::sort(&items[0], &items[static_cast<ptrdiff_t>(n)], Less());
  2844. ::std::unique_ptr<TestMap_MapSint64Sint64Entry_DoNotUse> entry;
  2845. for (size_type i = 0; i < n; i++) {
  2846. entry.reset(map_sint64_sint64_.NewEntryWrapper(
  2847. items[static_cast<ptrdiff_t>(i)].second->first, items[static_cast<ptrdiff_t>(i)].second->second));
  2848. ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
  2849. 6, *entry, output);
  2850. if (entry->GetArena() != NULL) {
  2851. entry.release();
  2852. }
  2853. }
  2854. } else {
  2855. ::std::unique_ptr<TestMap_MapSint64Sint64Entry_DoNotUse> entry;
  2856. for (::google::protobuf::Map< ::google::protobuf::int64, ::google::protobuf::int64 >::const_iterator
  2857. it = this->map_sint64_sint64().begin();
  2858. it != this->map_sint64_sint64().end(); ++it) {
  2859. entry.reset(map_sint64_sint64_.NewEntryWrapper(
  2860. it->first, it->second));
  2861. ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
  2862. 6, *entry, output);
  2863. if (entry->GetArena() != NULL) {
  2864. entry.release();
  2865. }
  2866. }
  2867. }
  2868. }
  2869. // map<fixed32, fixed32> map_fixed32_fixed32 = 7;
  2870. if (!this->map_fixed32_fixed32().empty()) {
  2871. typedef ::google::protobuf::Map< ::google::protobuf::uint32, ::google::protobuf::uint32 >::const_pointer
  2872. ConstPtr;
  2873. typedef ::google::protobuf::internal::SortItem< ::google::protobuf::uint32, ConstPtr > SortItem;
  2874. typedef ::google::protobuf::internal::CompareByFirstField<SortItem> Less;
  2875. if (output->IsSerializationDeterministic() &&
  2876. this->map_fixed32_fixed32().size() > 1) {
  2877. ::std::unique_ptr<SortItem[]> items(
  2878. new SortItem[this->map_fixed32_fixed32().size()]);
  2879. typedef ::google::protobuf::Map< ::google::protobuf::uint32, ::google::protobuf::uint32 >::size_type size_type;
  2880. size_type n = 0;
  2881. for (::google::protobuf::Map< ::google::protobuf::uint32, ::google::protobuf::uint32 >::const_iterator
  2882. it = this->map_fixed32_fixed32().begin();
  2883. it != this->map_fixed32_fixed32().end(); ++it, ++n) {
  2884. items[static_cast<ptrdiff_t>(n)] = SortItem(&*it);
  2885. }
  2886. ::std::sort(&items[0], &items[static_cast<ptrdiff_t>(n)], Less());
  2887. ::std::unique_ptr<TestMap_MapFixed32Fixed32Entry_DoNotUse> entry;
  2888. for (size_type i = 0; i < n; i++) {
  2889. entry.reset(map_fixed32_fixed32_.NewEntryWrapper(
  2890. items[static_cast<ptrdiff_t>(i)].second->first, items[static_cast<ptrdiff_t>(i)].second->second));
  2891. ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
  2892. 7, *entry, output);
  2893. if (entry->GetArena() != NULL) {
  2894. entry.release();
  2895. }
  2896. }
  2897. } else {
  2898. ::std::unique_ptr<TestMap_MapFixed32Fixed32Entry_DoNotUse> entry;
  2899. for (::google::protobuf::Map< ::google::protobuf::uint32, ::google::protobuf::uint32 >::const_iterator
  2900. it = this->map_fixed32_fixed32().begin();
  2901. it != this->map_fixed32_fixed32().end(); ++it) {
  2902. entry.reset(map_fixed32_fixed32_.NewEntryWrapper(
  2903. it->first, it->second));
  2904. ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
  2905. 7, *entry, output);
  2906. if (entry->GetArena() != NULL) {
  2907. entry.release();
  2908. }
  2909. }
  2910. }
  2911. }
  2912. // map<fixed64, fixed64> map_fixed64_fixed64 = 8;
  2913. if (!this->map_fixed64_fixed64().empty()) {
  2914. typedef ::google::protobuf::Map< ::google::protobuf::uint64, ::google::protobuf::uint64 >::const_pointer
  2915. ConstPtr;
  2916. typedef ::google::protobuf::internal::SortItem< ::google::protobuf::uint64, ConstPtr > SortItem;
  2917. typedef ::google::protobuf::internal::CompareByFirstField<SortItem> Less;
  2918. if (output->IsSerializationDeterministic() &&
  2919. this->map_fixed64_fixed64().size() > 1) {
  2920. ::std::unique_ptr<SortItem[]> items(
  2921. new SortItem[this->map_fixed64_fixed64().size()]);
  2922. typedef ::google::protobuf::Map< ::google::protobuf::uint64, ::google::protobuf::uint64 >::size_type size_type;
  2923. size_type n = 0;
  2924. for (::google::protobuf::Map< ::google::protobuf::uint64, ::google::protobuf::uint64 >::const_iterator
  2925. it = this->map_fixed64_fixed64().begin();
  2926. it != this->map_fixed64_fixed64().end(); ++it, ++n) {
  2927. items[static_cast<ptrdiff_t>(n)] = SortItem(&*it);
  2928. }
  2929. ::std::sort(&items[0], &items[static_cast<ptrdiff_t>(n)], Less());
  2930. ::std::unique_ptr<TestMap_MapFixed64Fixed64Entry_DoNotUse> entry;
  2931. for (size_type i = 0; i < n; i++) {
  2932. entry.reset(map_fixed64_fixed64_.NewEntryWrapper(
  2933. items[static_cast<ptrdiff_t>(i)].second->first, items[static_cast<ptrdiff_t>(i)].second->second));
  2934. ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
  2935. 8, *entry, output);
  2936. if (entry->GetArena() != NULL) {
  2937. entry.release();
  2938. }
  2939. }
  2940. } else {
  2941. ::std::unique_ptr<TestMap_MapFixed64Fixed64Entry_DoNotUse> entry;
  2942. for (::google::protobuf::Map< ::google::protobuf::uint64, ::google::protobuf::uint64 >::const_iterator
  2943. it = this->map_fixed64_fixed64().begin();
  2944. it != this->map_fixed64_fixed64().end(); ++it) {
  2945. entry.reset(map_fixed64_fixed64_.NewEntryWrapper(
  2946. it->first, it->second));
  2947. ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
  2948. 8, *entry, output);
  2949. if (entry->GetArena() != NULL) {
  2950. entry.release();
  2951. }
  2952. }
  2953. }
  2954. }
  2955. // map<sfixed32, sfixed32> map_sfixed32_sfixed32 = 9;
  2956. if (!this->map_sfixed32_sfixed32().empty()) {
  2957. typedef ::google::protobuf::Map< ::google::protobuf::int32, ::google::protobuf::int32 >::const_pointer
  2958. ConstPtr;
  2959. typedef ::google::protobuf::internal::SortItem< ::google::protobuf::int32, ConstPtr > SortItem;
  2960. typedef ::google::protobuf::internal::CompareByFirstField<SortItem> Less;
  2961. if (output->IsSerializationDeterministic() &&
  2962. this->map_sfixed32_sfixed32().size() > 1) {
  2963. ::std::unique_ptr<SortItem[]> items(
  2964. new SortItem[this->map_sfixed32_sfixed32().size()]);
  2965. typedef ::google::protobuf::Map< ::google::protobuf::int32, ::google::protobuf::int32 >::size_type size_type;
  2966. size_type n = 0;
  2967. for (::google::protobuf::Map< ::google::protobuf::int32, ::google::protobuf::int32 >::const_iterator
  2968. it = this->map_sfixed32_sfixed32().begin();
  2969. it != this->map_sfixed32_sfixed32().end(); ++it, ++n) {
  2970. items[static_cast<ptrdiff_t>(n)] = SortItem(&*it);
  2971. }
  2972. ::std::sort(&items[0], &items[static_cast<ptrdiff_t>(n)], Less());
  2973. ::std::unique_ptr<TestMap_MapSfixed32Sfixed32Entry_DoNotUse> entry;
  2974. for (size_type i = 0; i < n; i++) {
  2975. entry.reset(map_sfixed32_sfixed32_.NewEntryWrapper(
  2976. items[static_cast<ptrdiff_t>(i)].second->first, items[static_cast<ptrdiff_t>(i)].second->second));
  2977. ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
  2978. 9, *entry, output);
  2979. if (entry->GetArena() != NULL) {
  2980. entry.release();
  2981. }
  2982. }
  2983. } else {
  2984. ::std::unique_ptr<TestMap_MapSfixed32Sfixed32Entry_DoNotUse> entry;
  2985. for (::google::protobuf::Map< ::google::protobuf::int32, ::google::protobuf::int32 >::const_iterator
  2986. it = this->map_sfixed32_sfixed32().begin();
  2987. it != this->map_sfixed32_sfixed32().end(); ++it) {
  2988. entry.reset(map_sfixed32_sfixed32_.NewEntryWrapper(
  2989. it->first, it->second));
  2990. ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
  2991. 9, *entry, output);
  2992. if (entry->GetArena() != NULL) {
  2993. entry.release();
  2994. }
  2995. }
  2996. }
  2997. }
  2998. // map<sfixed64, sfixed64> map_sfixed64_sfixed64 = 10;
  2999. if (!this->map_sfixed64_sfixed64().empty()) {
  3000. typedef ::google::protobuf::Map< ::google::protobuf::int64, ::google::protobuf::int64 >::const_pointer
  3001. ConstPtr;
  3002. typedef ::google::protobuf::internal::SortItem< ::google::protobuf::int64, ConstPtr > SortItem;
  3003. typedef ::google::protobuf::internal::CompareByFirstField<SortItem> Less;
  3004. if (output->IsSerializationDeterministic() &&
  3005. this->map_sfixed64_sfixed64().size() > 1) {
  3006. ::std::unique_ptr<SortItem[]> items(
  3007. new SortItem[this->map_sfixed64_sfixed64().size()]);
  3008. typedef ::google::protobuf::Map< ::google::protobuf::int64, ::google::protobuf::int64 >::size_type size_type;
  3009. size_type n = 0;
  3010. for (::google::protobuf::Map< ::google::protobuf::int64, ::google::protobuf::int64 >::const_iterator
  3011. it = this->map_sfixed64_sfixed64().begin();
  3012. it != this->map_sfixed64_sfixed64().end(); ++it, ++n) {
  3013. items[static_cast<ptrdiff_t>(n)] = SortItem(&*it);
  3014. }
  3015. ::std::sort(&items[0], &items[static_cast<ptrdiff_t>(n)], Less());
  3016. ::std::unique_ptr<TestMap_MapSfixed64Sfixed64Entry_DoNotUse> entry;
  3017. for (size_type i = 0; i < n; i++) {
  3018. entry.reset(map_sfixed64_sfixed64_.NewEntryWrapper(
  3019. items[static_cast<ptrdiff_t>(i)].second->first, items[static_cast<ptrdiff_t>(i)].second->second));
  3020. ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
  3021. 10, *entry, output);
  3022. if (entry->GetArena() != NULL) {
  3023. entry.release();
  3024. }
  3025. }
  3026. } else {
  3027. ::std::unique_ptr<TestMap_MapSfixed64Sfixed64Entry_DoNotUse> entry;
  3028. for (::google::protobuf::Map< ::google::protobuf::int64, ::google::protobuf::int64 >::const_iterator
  3029. it = this->map_sfixed64_sfixed64().begin();
  3030. it != this->map_sfixed64_sfixed64().end(); ++it) {
  3031. entry.reset(map_sfixed64_sfixed64_.NewEntryWrapper(
  3032. it->first, it->second));
  3033. ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
  3034. 10, *entry, output);
  3035. if (entry->GetArena() != NULL) {
  3036. entry.release();
  3037. }
  3038. }
  3039. }
  3040. }
  3041. // map<int32, float> map_int32_float = 11;
  3042. if (!this->map_int32_float().empty()) {
  3043. typedef ::google::protobuf::Map< ::google::protobuf::int32, float >::const_pointer
  3044. ConstPtr;
  3045. typedef ::google::protobuf::internal::SortItem< ::google::protobuf::int32, ConstPtr > SortItem;
  3046. typedef ::google::protobuf::internal::CompareByFirstField<SortItem> Less;
  3047. if (output->IsSerializationDeterministic() &&
  3048. this->map_int32_float().size() > 1) {
  3049. ::std::unique_ptr<SortItem[]> items(
  3050. new SortItem[this->map_int32_float().size()]);
  3051. typedef ::google::protobuf::Map< ::google::protobuf::int32, float >::size_type size_type;
  3052. size_type n = 0;
  3053. for (::google::protobuf::Map< ::google::protobuf::int32, float >::const_iterator
  3054. it = this->map_int32_float().begin();
  3055. it != this->map_int32_float().end(); ++it, ++n) {
  3056. items[static_cast<ptrdiff_t>(n)] = SortItem(&*it);
  3057. }
  3058. ::std::sort(&items[0], &items[static_cast<ptrdiff_t>(n)], Less());
  3059. ::std::unique_ptr<TestMap_MapInt32FloatEntry_DoNotUse> entry;
  3060. for (size_type i = 0; i < n; i++) {
  3061. entry.reset(map_int32_float_.NewEntryWrapper(
  3062. items[static_cast<ptrdiff_t>(i)].second->first, items[static_cast<ptrdiff_t>(i)].second->second));
  3063. ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
  3064. 11, *entry, output);
  3065. if (entry->GetArena() != NULL) {
  3066. entry.release();
  3067. }
  3068. }
  3069. } else {
  3070. ::std::unique_ptr<TestMap_MapInt32FloatEntry_DoNotUse> entry;
  3071. for (::google::protobuf::Map< ::google::protobuf::int32, float >::const_iterator
  3072. it = this->map_int32_float().begin();
  3073. it != this->map_int32_float().end(); ++it) {
  3074. entry.reset(map_int32_float_.NewEntryWrapper(
  3075. it->first, it->second));
  3076. ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
  3077. 11, *entry, output);
  3078. if (entry->GetArena() != NULL) {
  3079. entry.release();
  3080. }
  3081. }
  3082. }
  3083. }
  3084. // map<int32, double> map_int32_double = 12;
  3085. if (!this->map_int32_double().empty()) {
  3086. typedef ::google::protobuf::Map< ::google::protobuf::int32, double >::const_pointer
  3087. ConstPtr;
  3088. typedef ::google::protobuf::internal::SortItem< ::google::protobuf::int32, ConstPtr > SortItem;
  3089. typedef ::google::protobuf::internal::CompareByFirstField<SortItem> Less;
  3090. if (output->IsSerializationDeterministic() &&
  3091. this->map_int32_double().size() > 1) {
  3092. ::std::unique_ptr<SortItem[]> items(
  3093. new SortItem[this->map_int32_double().size()]);
  3094. typedef ::google::protobuf::Map< ::google::protobuf::int32, double >::size_type size_type;
  3095. size_type n = 0;
  3096. for (::google::protobuf::Map< ::google::protobuf::int32, double >::const_iterator
  3097. it = this->map_int32_double().begin();
  3098. it != this->map_int32_double().end(); ++it, ++n) {
  3099. items[static_cast<ptrdiff_t>(n)] = SortItem(&*it);
  3100. }
  3101. ::std::sort(&items[0], &items[static_cast<ptrdiff_t>(n)], Less());
  3102. ::std::unique_ptr<TestMap_MapInt32DoubleEntry_DoNotUse> entry;
  3103. for (size_type i = 0; i < n; i++) {
  3104. entry.reset(map_int32_double_.NewEntryWrapper(
  3105. items[static_cast<ptrdiff_t>(i)].second->first, items[static_cast<ptrdiff_t>(i)].second->second));
  3106. ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
  3107. 12, *entry, output);
  3108. if (entry->GetArena() != NULL) {
  3109. entry.release();
  3110. }
  3111. }
  3112. } else {
  3113. ::std::unique_ptr<TestMap_MapInt32DoubleEntry_DoNotUse> entry;
  3114. for (::google::protobuf::Map< ::google::protobuf::int32, double >::const_iterator
  3115. it = this->map_int32_double().begin();
  3116. it != this->map_int32_double().end(); ++it) {
  3117. entry.reset(map_int32_double_.NewEntryWrapper(
  3118. it->first, it->second));
  3119. ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
  3120. 12, *entry, output);
  3121. if (entry->GetArena() != NULL) {
  3122. entry.release();
  3123. }
  3124. }
  3125. }
  3126. }
  3127. // map<bool, bool> map_bool_bool = 13;
  3128. if (!this->map_bool_bool().empty()) {
  3129. typedef ::google::protobuf::Map< bool, bool >::const_pointer
  3130. ConstPtr;
  3131. typedef ::google::protobuf::internal::SortItem< bool, ConstPtr > SortItem;
  3132. typedef ::google::protobuf::internal::CompareByFirstField<SortItem> Less;
  3133. if (output->IsSerializationDeterministic() &&
  3134. this->map_bool_bool().size() > 1) {
  3135. ::std::unique_ptr<SortItem[]> items(
  3136. new SortItem[this->map_bool_bool().size()]);
  3137. typedef ::google::protobuf::Map< bool, bool >::size_type size_type;
  3138. size_type n = 0;
  3139. for (::google::protobuf::Map< bool, bool >::const_iterator
  3140. it = this->map_bool_bool().begin();
  3141. it != this->map_bool_bool().end(); ++it, ++n) {
  3142. items[static_cast<ptrdiff_t>(n)] = SortItem(&*it);
  3143. }
  3144. ::std::sort(&items[0], &items[static_cast<ptrdiff_t>(n)], Less());
  3145. ::std::unique_ptr<TestMap_MapBoolBoolEntry_DoNotUse> entry;
  3146. for (size_type i = 0; i < n; i++) {
  3147. entry.reset(map_bool_bool_.NewEntryWrapper(
  3148. items[static_cast<ptrdiff_t>(i)].second->first, items[static_cast<ptrdiff_t>(i)].second->second));
  3149. ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
  3150. 13, *entry, output);
  3151. if (entry->GetArena() != NULL) {
  3152. entry.release();
  3153. }
  3154. }
  3155. } else {
  3156. ::std::unique_ptr<TestMap_MapBoolBoolEntry_DoNotUse> entry;
  3157. for (::google::protobuf::Map< bool, bool >::const_iterator
  3158. it = this->map_bool_bool().begin();
  3159. it != this->map_bool_bool().end(); ++it) {
  3160. entry.reset(map_bool_bool_.NewEntryWrapper(
  3161. it->first, it->second));
  3162. ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
  3163. 13, *entry, output);
  3164. if (entry->GetArena() != NULL) {
  3165. entry.release();
  3166. }
  3167. }
  3168. }
  3169. }
  3170. // map<string, string> map_string_string = 14;
  3171. if (!this->map_string_string().empty()) {
  3172. typedef ::google::protobuf::Map< ::std::string, ::std::string >::const_pointer
  3173. ConstPtr;
  3174. typedef ConstPtr SortItem;
  3175. typedef ::google::protobuf::internal::CompareByDerefFirst<SortItem> Less;
  3176. struct Utf8Check {
  3177. static void Check(ConstPtr p) {
  3178. ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
  3179. p->first.data(), static_cast<int>(p->first.length()),
  3180. ::google::protobuf::internal::WireFormatLite::SERIALIZE,
  3181. "protobuf_unittest.TestMap.MapStringStringEntry.key");
  3182. ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
  3183. p->second.data(), static_cast<int>(p->second.length()),
  3184. ::google::protobuf::internal::WireFormatLite::SERIALIZE,
  3185. "protobuf_unittest.TestMap.MapStringStringEntry.value");
  3186. }
  3187. };
  3188. if (output->IsSerializationDeterministic() &&
  3189. this->map_string_string().size() > 1) {
  3190. ::std::unique_ptr<SortItem[]> items(
  3191. new SortItem[this->map_string_string().size()]);
  3192. typedef ::google::protobuf::Map< ::std::string, ::std::string >::size_type size_type;
  3193. size_type n = 0;
  3194. for (::google::protobuf::Map< ::std::string, ::std::string >::const_iterator
  3195. it = this->map_string_string().begin();
  3196. it != this->map_string_string().end(); ++it, ++n) {
  3197. items[static_cast<ptrdiff_t>(n)] = SortItem(&*it);
  3198. }
  3199. ::std::sort(&items[0], &items[static_cast<ptrdiff_t>(n)], Less());
  3200. ::std::unique_ptr<TestMap_MapStringStringEntry_DoNotUse> entry;
  3201. for (size_type i = 0; i < n; i++) {
  3202. entry.reset(map_string_string_.NewEntryWrapper(
  3203. items[static_cast<ptrdiff_t>(i)]->first, items[static_cast<ptrdiff_t>(i)]->second));
  3204. ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
  3205. 14, *entry, output);
  3206. if (entry->GetArena() != NULL) {
  3207. entry.release();
  3208. }
  3209. Utf8Check::Check(items[static_cast<ptrdiff_t>(i)]);
  3210. }
  3211. } else {
  3212. ::std::unique_ptr<TestMap_MapStringStringEntry_DoNotUse> entry;
  3213. for (::google::protobuf::Map< ::std::string, ::std::string >::const_iterator
  3214. it = this->map_string_string().begin();
  3215. it != this->map_string_string().end(); ++it) {
  3216. entry.reset(map_string_string_.NewEntryWrapper(
  3217. it->first, it->second));
  3218. ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
  3219. 14, *entry, output);
  3220. if (entry->GetArena() != NULL) {
  3221. entry.release();
  3222. }
  3223. Utf8Check::Check(&*it);
  3224. }
  3225. }
  3226. }
  3227. // map<int32, bytes> map_int32_bytes = 15;
  3228. if (!this->map_int32_bytes().empty()) {
  3229. typedef ::google::protobuf::Map< ::google::protobuf::int32, ::std::string >::const_pointer
  3230. ConstPtr;
  3231. typedef ::google::protobuf::internal::SortItem< ::google::protobuf::int32, ConstPtr > SortItem;
  3232. typedef ::google::protobuf::internal::CompareByFirstField<SortItem> Less;
  3233. if (output->IsSerializationDeterministic() &&
  3234. this->map_int32_bytes().size() > 1) {
  3235. ::std::unique_ptr<SortItem[]> items(
  3236. new SortItem[this->map_int32_bytes().size()]);
  3237. typedef ::google::protobuf::Map< ::google::protobuf::int32, ::std::string >::size_type size_type;
  3238. size_type n = 0;
  3239. for (::google::protobuf::Map< ::google::protobuf::int32, ::std::string >::const_iterator
  3240. it = this->map_int32_bytes().begin();
  3241. it != this->map_int32_bytes().end(); ++it, ++n) {
  3242. items[static_cast<ptrdiff_t>(n)] = SortItem(&*it);
  3243. }
  3244. ::std::sort(&items[0], &items[static_cast<ptrdiff_t>(n)], Less());
  3245. ::std::unique_ptr<TestMap_MapInt32BytesEntry_DoNotUse> entry;
  3246. for (size_type i = 0; i < n; i++) {
  3247. entry.reset(map_int32_bytes_.NewEntryWrapper(
  3248. items[static_cast<ptrdiff_t>(i)].second->first, items[static_cast<ptrdiff_t>(i)].second->second));
  3249. ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
  3250. 15, *entry, output);
  3251. if (entry->GetArena() != NULL) {
  3252. entry.release();
  3253. }
  3254. }
  3255. } else {
  3256. ::std::unique_ptr<TestMap_MapInt32BytesEntry_DoNotUse> entry;
  3257. for (::google::protobuf::Map< ::google::protobuf::int32, ::std::string >::const_iterator
  3258. it = this->map_int32_bytes().begin();
  3259. it != this->map_int32_bytes().end(); ++it) {
  3260. entry.reset(map_int32_bytes_.NewEntryWrapper(
  3261. it->first, it->second));
  3262. ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
  3263. 15, *entry, output);
  3264. if (entry->GetArena() != NULL) {
  3265. entry.release();
  3266. }
  3267. }
  3268. }
  3269. }
  3270. // map<int32, .protobuf_unittest.MapEnum> map_int32_enum = 16;
  3271. if (!this->map_int32_enum().empty()) {
  3272. typedef ::google::protobuf::Map< ::google::protobuf::int32, ::protobuf_unittest::MapEnum >::const_pointer
  3273. ConstPtr;
  3274. typedef ::google::protobuf::internal::SortItem< ::google::protobuf::int32, ConstPtr > SortItem;
  3275. typedef ::google::protobuf::internal::CompareByFirstField<SortItem> Less;
  3276. if (output->IsSerializationDeterministic() &&
  3277. this->map_int32_enum().size() > 1) {
  3278. ::std::unique_ptr<SortItem[]> items(
  3279. new SortItem[this->map_int32_enum().size()]);
  3280. typedef ::google::protobuf::Map< ::google::protobuf::int32, ::protobuf_unittest::MapEnum >::size_type size_type;
  3281. size_type n = 0;
  3282. for (::google::protobuf::Map< ::google::protobuf::int32, ::protobuf_unittest::MapEnum >::const_iterator
  3283. it = this->map_int32_enum().begin();
  3284. it != this->map_int32_enum().end(); ++it, ++n) {
  3285. items[static_cast<ptrdiff_t>(n)] = SortItem(&*it);
  3286. }
  3287. ::std::sort(&items[0], &items[static_cast<ptrdiff_t>(n)], Less());
  3288. ::std::unique_ptr<TestMap_MapInt32EnumEntry_DoNotUse> entry;
  3289. for (size_type i = 0; i < n; i++) {
  3290. entry.reset(map_int32_enum_.NewEnumEntryWrapper(
  3291. items[static_cast<ptrdiff_t>(i)].second->first, items[static_cast<ptrdiff_t>(i)].second->second));
  3292. ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
  3293. 16, *entry, output);
  3294. if (entry->GetArena() != NULL) {
  3295. entry.release();
  3296. }
  3297. }
  3298. } else {
  3299. ::std::unique_ptr<TestMap_MapInt32EnumEntry_DoNotUse> entry;
  3300. for (::google::protobuf::Map< ::google::protobuf::int32, ::protobuf_unittest::MapEnum >::const_iterator
  3301. it = this->map_int32_enum().begin();
  3302. it != this->map_int32_enum().end(); ++it) {
  3303. entry.reset(map_int32_enum_.NewEnumEntryWrapper(
  3304. it->first, it->second));
  3305. ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
  3306. 16, *entry, output);
  3307. if (entry->GetArena() != NULL) {
  3308. entry.release();
  3309. }
  3310. }
  3311. }
  3312. }
  3313. // map<int32, .protobuf_unittest.ForeignMessage> map_int32_foreign_message = 17;
  3314. if (!this->map_int32_foreign_message().empty()) {
  3315. typedef ::google::protobuf::Map< ::google::protobuf::int32, ::protobuf_unittest::ForeignMessage >::const_pointer
  3316. ConstPtr;
  3317. typedef ::google::protobuf::internal::SortItem< ::google::protobuf::int32, ConstPtr > SortItem;
  3318. typedef ::google::protobuf::internal::CompareByFirstField<SortItem> Less;
  3319. if (output->IsSerializationDeterministic() &&
  3320. this->map_int32_foreign_message().size() > 1) {
  3321. ::std::unique_ptr<SortItem[]> items(
  3322. new SortItem[this->map_int32_foreign_message().size()]);
  3323. typedef ::google::protobuf::Map< ::google::protobuf::int32, ::protobuf_unittest::ForeignMessage >::size_type size_type;
  3324. size_type n = 0;
  3325. for (::google::protobuf::Map< ::google::protobuf::int32, ::protobuf_unittest::ForeignMessage >::const_iterator
  3326. it = this->map_int32_foreign_message().begin();
  3327. it != this->map_int32_foreign_message().end(); ++it, ++n) {
  3328. items[static_cast<ptrdiff_t>(n)] = SortItem(&*it);
  3329. }
  3330. ::std::sort(&items[0], &items[static_cast<ptrdiff_t>(n)], Less());
  3331. ::std::unique_ptr<TestMap_MapInt32ForeignMessageEntry_DoNotUse> entry;
  3332. for (size_type i = 0; i < n; i++) {
  3333. entry.reset(map_int32_foreign_message_.NewEntryWrapper(
  3334. items[static_cast<ptrdiff_t>(i)].second->first, items[static_cast<ptrdiff_t>(i)].second->second));
  3335. ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
  3336. 17, *entry, output);
  3337. if (entry->GetArena() != NULL) {
  3338. entry.release();
  3339. }
  3340. }
  3341. } else {
  3342. ::std::unique_ptr<TestMap_MapInt32ForeignMessageEntry_DoNotUse> entry;
  3343. for (::google::protobuf::Map< ::google::protobuf::int32, ::protobuf_unittest::ForeignMessage >::const_iterator
  3344. it = this->map_int32_foreign_message().begin();
  3345. it != this->map_int32_foreign_message().end(); ++it) {
  3346. entry.reset(map_int32_foreign_message_.NewEntryWrapper(
  3347. it->first, it->second));
  3348. ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
  3349. 17, *entry, output);
  3350. if (entry->GetArena() != NULL) {
  3351. entry.release();
  3352. }
  3353. }
  3354. }
  3355. }
  3356. // map<string, .protobuf_unittest.ForeignMessage> map_string_foreign_message = 18;
  3357. if (!this->map_string_foreign_message().empty()) {
  3358. typedef ::google::protobuf::Map< ::std::string, ::protobuf_unittest::ForeignMessage >::const_pointer
  3359. ConstPtr;
  3360. typedef ConstPtr SortItem;
  3361. typedef ::google::protobuf::internal::CompareByDerefFirst<SortItem> Less;
  3362. struct Utf8Check {
  3363. static void Check(ConstPtr p) {
  3364. ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
  3365. p->first.data(), static_cast<int>(p->first.length()),
  3366. ::google::protobuf::internal::WireFormatLite::SERIALIZE,
  3367. "protobuf_unittest.TestMap.MapStringForeignMessageEntry.key");
  3368. }
  3369. };
  3370. if (output->IsSerializationDeterministic() &&
  3371. this->map_string_foreign_message().size() > 1) {
  3372. ::std::unique_ptr<SortItem[]> items(
  3373. new SortItem[this->map_string_foreign_message().size()]);
  3374. typedef ::google::protobuf::Map< ::std::string, ::protobuf_unittest::ForeignMessage >::size_type size_type;
  3375. size_type n = 0;
  3376. for (::google::protobuf::Map< ::std::string, ::protobuf_unittest::ForeignMessage >::const_iterator
  3377. it = this->map_string_foreign_message().begin();
  3378. it != this->map_string_foreign_message().end(); ++it, ++n) {
  3379. items[static_cast<ptrdiff_t>(n)] = SortItem(&*it);
  3380. }
  3381. ::std::sort(&items[0], &items[static_cast<ptrdiff_t>(n)], Less());
  3382. ::std::unique_ptr<TestMap_MapStringForeignMessageEntry_DoNotUse> entry;
  3383. for (size_type i = 0; i < n; i++) {
  3384. entry.reset(map_string_foreign_message_.NewEntryWrapper(
  3385. items[static_cast<ptrdiff_t>(i)]->first, items[static_cast<ptrdiff_t>(i)]->second));
  3386. ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
  3387. 18, *entry, output);
  3388. if (entry->GetArena() != NULL) {
  3389. entry.release();
  3390. }
  3391. Utf8Check::Check(items[static_cast<ptrdiff_t>(i)]);
  3392. }
  3393. } else {
  3394. ::std::unique_ptr<TestMap_MapStringForeignMessageEntry_DoNotUse> entry;
  3395. for (::google::protobuf::Map< ::std::string, ::protobuf_unittest::ForeignMessage >::const_iterator
  3396. it = this->map_string_foreign_message().begin();
  3397. it != this->map_string_foreign_message().end(); ++it) {
  3398. entry.reset(map_string_foreign_message_.NewEntryWrapper(
  3399. it->first, it->second));
  3400. ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
  3401. 18, *entry, output);
  3402. if (entry->GetArena() != NULL) {
  3403. entry.release();
  3404. }
  3405. Utf8Check::Check(&*it);
  3406. }
  3407. }
  3408. }
  3409. // map<int32, .protobuf_unittest.TestAllTypes> map_int32_all_types = 19;
  3410. if (!this->map_int32_all_types().empty()) {
  3411. typedef ::google::protobuf::Map< ::google::protobuf::int32, ::protobuf_unittest::TestAllTypes >::const_pointer
  3412. ConstPtr;
  3413. typedef ::google::protobuf::internal::SortItem< ::google::protobuf::int32, ConstPtr > SortItem;
  3414. typedef ::google::protobuf::internal::CompareByFirstField<SortItem> Less;
  3415. if (output->IsSerializationDeterministic() &&
  3416. this->map_int32_all_types().size() > 1) {
  3417. ::std::unique_ptr<SortItem[]> items(
  3418. new SortItem[this->map_int32_all_types().size()]);
  3419. typedef ::google::protobuf::Map< ::google::protobuf::int32, ::protobuf_unittest::TestAllTypes >::size_type size_type;
  3420. size_type n = 0;
  3421. for (::google::protobuf::Map< ::google::protobuf::int32, ::protobuf_unittest::TestAllTypes >::const_iterator
  3422. it = this->map_int32_all_types().begin();
  3423. it != this->map_int32_all_types().end(); ++it, ++n) {
  3424. items[static_cast<ptrdiff_t>(n)] = SortItem(&*it);
  3425. }
  3426. ::std::sort(&items[0], &items[static_cast<ptrdiff_t>(n)], Less());
  3427. ::std::unique_ptr<TestMap_MapInt32AllTypesEntry_DoNotUse> entry;
  3428. for (size_type i = 0; i < n; i++) {
  3429. entry.reset(map_int32_all_types_.NewEntryWrapper(
  3430. items[static_cast<ptrdiff_t>(i)].second->first, items[static_cast<ptrdiff_t>(i)].second->second));
  3431. ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
  3432. 19, *entry, output);
  3433. if (entry->GetArena() != NULL) {
  3434. entry.release();
  3435. }
  3436. }
  3437. } else {
  3438. ::std::unique_ptr<TestMap_MapInt32AllTypesEntry_DoNotUse> entry;
  3439. for (::google::protobuf::Map< ::google::protobuf::int32, ::protobuf_unittest::TestAllTypes >::const_iterator
  3440. it = this->map_int32_all_types().begin();
  3441. it != this->map_int32_all_types().end(); ++it) {
  3442. entry.reset(map_int32_all_types_.NewEntryWrapper(
  3443. it->first, it->second));
  3444. ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
  3445. 19, *entry, output);
  3446. if (entry->GetArena() != NULL) {
  3447. entry.release();
  3448. }
  3449. }
  3450. }
  3451. }
  3452. if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
  3453. ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
  3454. (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output);
  3455. }
  3456. // @@protoc_insertion_point(serialize_end:protobuf_unittest.TestMap)
  3457. }
  3458. ::google::protobuf::uint8* TestMap::InternalSerializeWithCachedSizesToArray(
  3459. bool deterministic, ::google::protobuf::uint8* target) const {
  3460. (void)deterministic; // Unused
  3461. // @@protoc_insertion_point(serialize_to_array_start:protobuf_unittest.TestMap)
  3462. ::google::protobuf::uint32 cached_has_bits = 0;
  3463. (void) cached_has_bits;
  3464. // map<int32, int32> map_int32_int32 = 1;
  3465. if (!this->map_int32_int32().empty()) {
  3466. typedef ::google::protobuf::Map< ::google::protobuf::int32, ::google::protobuf::int32 >::const_pointer
  3467. ConstPtr;
  3468. typedef ::google::protobuf::internal::SortItem< ::google::protobuf::int32, ConstPtr > SortItem;
  3469. typedef ::google::protobuf::internal::CompareByFirstField<SortItem> Less;
  3470. if (deterministic &&
  3471. this->map_int32_int32().size() > 1) {
  3472. ::std::unique_ptr<SortItem[]> items(
  3473. new SortItem[this->map_int32_int32().size()]);
  3474. typedef ::google::protobuf::Map< ::google::protobuf::int32, ::google::protobuf::int32 >::size_type size_type;
  3475. size_type n = 0;
  3476. for (::google::protobuf::Map< ::google::protobuf::int32, ::google::protobuf::int32 >::const_iterator
  3477. it = this->map_int32_int32().begin();
  3478. it != this->map_int32_int32().end(); ++it, ++n) {
  3479. items[static_cast<ptrdiff_t>(n)] = SortItem(&*it);
  3480. }
  3481. ::std::sort(&items[0], &items[static_cast<ptrdiff_t>(n)], Less());
  3482. ::std::unique_ptr<TestMap_MapInt32Int32Entry_DoNotUse> entry;
  3483. for (size_type i = 0; i < n; i++) {
  3484. entry.reset(map_int32_int32_.NewEntryWrapper(
  3485. items[static_cast<ptrdiff_t>(i)].second->first, items[static_cast<ptrdiff_t>(i)].second->second));
  3486. target = ::google::protobuf::internal::WireFormatLite::
  3487. InternalWriteMessageNoVirtualToArray(
  3488. 1, *entry, deterministic, target);
  3489. ;
  3490. if (entry->GetArena() != NULL) {
  3491. entry.release();
  3492. }
  3493. }
  3494. } else {
  3495. ::std::unique_ptr<TestMap_MapInt32Int32Entry_DoNotUse> entry;
  3496. for (::google::protobuf::Map< ::google::protobuf::int32, ::google::protobuf::int32 >::const_iterator
  3497. it = this->map_int32_int32().begin();
  3498. it != this->map_int32_int32().end(); ++it) {
  3499. entry.reset(map_int32_int32_.NewEntryWrapper(
  3500. it->first, it->second));
  3501. target = ::google::protobuf::internal::WireFormatLite::
  3502. InternalWriteMessageNoVirtualToArray(
  3503. 1, *entry, deterministic, target);
  3504. ;
  3505. if (entry->GetArena() != NULL) {
  3506. entry.release();
  3507. }
  3508. }
  3509. }
  3510. }
  3511. // map<int64, int64> map_int64_int64 = 2;
  3512. if (!this->map_int64_int64().empty()) {
  3513. typedef ::google::protobuf::Map< ::google::protobuf::int64, ::google::protobuf::int64 >::const_pointer
  3514. ConstPtr;
  3515. typedef ::google::protobuf::internal::SortItem< ::google::protobuf::int64, ConstPtr > SortItem;
  3516. typedef ::google::protobuf::internal::CompareByFirstField<SortItem> Less;
  3517. if (deterministic &&
  3518. this->map_int64_int64().size() > 1) {
  3519. ::std::unique_ptr<SortItem[]> items(
  3520. new SortItem[this->map_int64_int64().size()]);
  3521. typedef ::google::protobuf::Map< ::google::protobuf::int64, ::google::protobuf::int64 >::size_type size_type;
  3522. size_type n = 0;
  3523. for (::google::protobuf::Map< ::google::protobuf::int64, ::google::protobuf::int64 >::const_iterator
  3524. it = this->map_int64_int64().begin();
  3525. it != this->map_int64_int64().end(); ++it, ++n) {
  3526. items[static_cast<ptrdiff_t>(n)] = SortItem(&*it);
  3527. }
  3528. ::std::sort(&items[0], &items[static_cast<ptrdiff_t>(n)], Less());
  3529. ::std::unique_ptr<TestMap_MapInt64Int64Entry_DoNotUse> entry;
  3530. for (size_type i = 0; i < n; i++) {
  3531. entry.reset(map_int64_int64_.NewEntryWrapper(
  3532. items[static_cast<ptrdiff_t>(i)].second->first, items[static_cast<ptrdiff_t>(i)].second->second));
  3533. target = ::google::protobuf::internal::WireFormatLite::
  3534. InternalWriteMessageNoVirtualToArray(
  3535. 2, *entry, deterministic, target);
  3536. ;
  3537. if (entry->GetArena() != NULL) {
  3538. entry.release();
  3539. }
  3540. }
  3541. } else {
  3542. ::std::unique_ptr<TestMap_MapInt64Int64Entry_DoNotUse> entry;
  3543. for (::google::protobuf::Map< ::google::protobuf::int64, ::google::protobuf::int64 >::const_iterator
  3544. it = this->map_int64_int64().begin();
  3545. it != this->map_int64_int64().end(); ++it) {
  3546. entry.reset(map_int64_int64_.NewEntryWrapper(
  3547. it->first, it->second));
  3548. target = ::google::protobuf::internal::WireFormatLite::
  3549. InternalWriteMessageNoVirtualToArray(
  3550. 2, *entry, deterministic, target);
  3551. ;
  3552. if (entry->GetArena() != NULL) {
  3553. entry.release();
  3554. }
  3555. }
  3556. }
  3557. }
  3558. // map<uint32, uint32> map_uint32_uint32 = 3;
  3559. if (!this->map_uint32_uint32().empty()) {
  3560. typedef ::google::protobuf::Map< ::google::protobuf::uint32, ::google::protobuf::uint32 >::const_pointer
  3561. ConstPtr;
  3562. typedef ::google::protobuf::internal::SortItem< ::google::protobuf::uint32, ConstPtr > SortItem;
  3563. typedef ::google::protobuf::internal::CompareByFirstField<SortItem> Less;
  3564. if (deterministic &&
  3565. this->map_uint32_uint32().size() > 1) {
  3566. ::std::unique_ptr<SortItem[]> items(
  3567. new SortItem[this->map_uint32_uint32().size()]);
  3568. typedef ::google::protobuf::Map< ::google::protobuf::uint32, ::google::protobuf::uint32 >::size_type size_type;
  3569. size_type n = 0;
  3570. for (::google::protobuf::Map< ::google::protobuf::uint32, ::google::protobuf::uint32 >::const_iterator
  3571. it = this->map_uint32_uint32().begin();
  3572. it != this->map_uint32_uint32().end(); ++it, ++n) {
  3573. items[static_cast<ptrdiff_t>(n)] = SortItem(&*it);
  3574. }
  3575. ::std::sort(&items[0], &items[static_cast<ptrdiff_t>(n)], Less());
  3576. ::std::unique_ptr<TestMap_MapUint32Uint32Entry_DoNotUse> entry;
  3577. for (size_type i = 0; i < n; i++) {
  3578. entry.reset(map_uint32_uint32_.NewEntryWrapper(
  3579. items[static_cast<ptrdiff_t>(i)].second->first, items[static_cast<ptrdiff_t>(i)].second->second));
  3580. target = ::google::protobuf::internal::WireFormatLite::
  3581. InternalWriteMessageNoVirtualToArray(
  3582. 3, *entry, deterministic, target);
  3583. ;
  3584. if (entry->GetArena() != NULL) {
  3585. entry.release();
  3586. }
  3587. }
  3588. } else {
  3589. ::std::unique_ptr<TestMap_MapUint32Uint32Entry_DoNotUse> entry;
  3590. for (::google::protobuf::Map< ::google::protobuf::uint32, ::google::protobuf::uint32 >::const_iterator
  3591. it = this->map_uint32_uint32().begin();
  3592. it != this->map_uint32_uint32().end(); ++it) {
  3593. entry.reset(map_uint32_uint32_.NewEntryWrapper(
  3594. it->first, it->second));
  3595. target = ::google::protobuf::internal::WireFormatLite::
  3596. InternalWriteMessageNoVirtualToArray(
  3597. 3, *entry, deterministic, target);
  3598. ;
  3599. if (entry->GetArena() != NULL) {
  3600. entry.release();
  3601. }
  3602. }
  3603. }
  3604. }
  3605. // map<uint64, uint64> map_uint64_uint64 = 4;
  3606. if (!this->map_uint64_uint64().empty()) {
  3607. typedef ::google::protobuf::Map< ::google::protobuf::uint64, ::google::protobuf::uint64 >::const_pointer
  3608. ConstPtr;
  3609. typedef ::google::protobuf::internal::SortItem< ::google::protobuf::uint64, ConstPtr > SortItem;
  3610. typedef ::google::protobuf::internal::CompareByFirstField<SortItem> Less;
  3611. if (deterministic &&
  3612. this->map_uint64_uint64().size() > 1) {
  3613. ::std::unique_ptr<SortItem[]> items(
  3614. new SortItem[this->map_uint64_uint64().size()]);
  3615. typedef ::google::protobuf::Map< ::google::protobuf::uint64, ::google::protobuf::uint64 >::size_type size_type;
  3616. size_type n = 0;
  3617. for (::google::protobuf::Map< ::google::protobuf::uint64, ::google::protobuf::uint64 >::const_iterator
  3618. it = this->map_uint64_uint64().begin();
  3619. it != this->map_uint64_uint64().end(); ++it, ++n) {
  3620. items[static_cast<ptrdiff_t>(n)] = SortItem(&*it);
  3621. }
  3622. ::std::sort(&items[0], &items[static_cast<ptrdiff_t>(n)], Less());
  3623. ::std::unique_ptr<TestMap_MapUint64Uint64Entry_DoNotUse> entry;
  3624. for (size_type i = 0; i < n; i++) {
  3625. entry.reset(map_uint64_uint64_.NewEntryWrapper(
  3626. items[static_cast<ptrdiff_t>(i)].second->first, items[static_cast<ptrdiff_t>(i)].second->second));
  3627. target = ::google::protobuf::internal::WireFormatLite::
  3628. InternalWriteMessageNoVirtualToArray(
  3629. 4, *entry, deterministic, target);
  3630. ;
  3631. if (entry->GetArena() != NULL) {
  3632. entry.release();
  3633. }
  3634. }
  3635. } else {
  3636. ::std::unique_ptr<TestMap_MapUint64Uint64Entry_DoNotUse> entry;
  3637. for (::google::protobuf::Map< ::google::protobuf::uint64, ::google::protobuf::uint64 >::const_iterator
  3638. it = this->map_uint64_uint64().begin();
  3639. it != this->map_uint64_uint64().end(); ++it) {
  3640. entry.reset(map_uint64_uint64_.NewEntryWrapper(
  3641. it->first, it->second));
  3642. target = ::google::protobuf::internal::WireFormatLite::
  3643. InternalWriteMessageNoVirtualToArray(
  3644. 4, *entry, deterministic, target);
  3645. ;
  3646. if (entry->GetArena() != NULL) {
  3647. entry.release();
  3648. }
  3649. }
  3650. }
  3651. }
  3652. // map<sint32, sint32> map_sint32_sint32 = 5;
  3653. if (!this->map_sint32_sint32().empty()) {
  3654. typedef ::google::protobuf::Map< ::google::protobuf::int32, ::google::protobuf::int32 >::const_pointer
  3655. ConstPtr;
  3656. typedef ::google::protobuf::internal::SortItem< ::google::protobuf::int32, ConstPtr > SortItem;
  3657. typedef ::google::protobuf::internal::CompareByFirstField<SortItem> Less;
  3658. if (deterministic &&
  3659. this->map_sint32_sint32().size() > 1) {
  3660. ::std::unique_ptr<SortItem[]> items(
  3661. new SortItem[this->map_sint32_sint32().size()]);
  3662. typedef ::google::protobuf::Map< ::google::protobuf::int32, ::google::protobuf::int32 >::size_type size_type;
  3663. size_type n = 0;
  3664. for (::google::protobuf::Map< ::google::protobuf::int32, ::google::protobuf::int32 >::const_iterator
  3665. it = this->map_sint32_sint32().begin();
  3666. it != this->map_sint32_sint32().end(); ++it, ++n) {
  3667. items[static_cast<ptrdiff_t>(n)] = SortItem(&*it);
  3668. }
  3669. ::std::sort(&items[0], &items[static_cast<ptrdiff_t>(n)], Less());
  3670. ::std::unique_ptr<TestMap_MapSint32Sint32Entry_DoNotUse> entry;
  3671. for (size_type i = 0; i < n; i++) {
  3672. entry.reset(map_sint32_sint32_.NewEntryWrapper(
  3673. items[static_cast<ptrdiff_t>(i)].second->first, items[static_cast<ptrdiff_t>(i)].second->second));
  3674. target = ::google::protobuf::internal::WireFormatLite::
  3675. InternalWriteMessageNoVirtualToArray(
  3676. 5, *entry, deterministic, target);
  3677. ;
  3678. if (entry->GetArena() != NULL) {
  3679. entry.release();
  3680. }
  3681. }
  3682. } else {
  3683. ::std::unique_ptr<TestMap_MapSint32Sint32Entry_DoNotUse> entry;
  3684. for (::google::protobuf::Map< ::google::protobuf::int32, ::google::protobuf::int32 >::const_iterator
  3685. it = this->map_sint32_sint32().begin();
  3686. it != this->map_sint32_sint32().end(); ++it) {
  3687. entry.reset(map_sint32_sint32_.NewEntryWrapper(
  3688. it->first, it->second));
  3689. target = ::google::protobuf::internal::WireFormatLite::
  3690. InternalWriteMessageNoVirtualToArray(
  3691. 5, *entry, deterministic, target);
  3692. ;
  3693. if (entry->GetArena() != NULL) {
  3694. entry.release();
  3695. }
  3696. }
  3697. }
  3698. }
  3699. // map<sint64, sint64> map_sint64_sint64 = 6;
  3700. if (!this->map_sint64_sint64().empty()) {
  3701. typedef ::google::protobuf::Map< ::google::protobuf::int64, ::google::protobuf::int64 >::const_pointer
  3702. ConstPtr;
  3703. typedef ::google::protobuf::internal::SortItem< ::google::protobuf::int64, ConstPtr > SortItem;
  3704. typedef ::google::protobuf::internal::CompareByFirstField<SortItem> Less;
  3705. if (deterministic &&
  3706. this->map_sint64_sint64().size() > 1) {
  3707. ::std::unique_ptr<SortItem[]> items(
  3708. new SortItem[this->map_sint64_sint64().size()]);
  3709. typedef ::google::protobuf::Map< ::google::protobuf::int64, ::google::protobuf::int64 >::size_type size_type;
  3710. size_type n = 0;
  3711. for (::google::protobuf::Map< ::google::protobuf::int64, ::google::protobuf::int64 >::const_iterator
  3712. it = this->map_sint64_sint64().begin();
  3713. it != this->map_sint64_sint64().end(); ++it, ++n) {
  3714. items[static_cast<ptrdiff_t>(n)] = SortItem(&*it);
  3715. }
  3716. ::std::sort(&items[0], &items[static_cast<ptrdiff_t>(n)], Less());
  3717. ::std::unique_ptr<TestMap_MapSint64Sint64Entry_DoNotUse> entry;
  3718. for (size_type i = 0; i < n; i++) {
  3719. entry.reset(map_sint64_sint64_.NewEntryWrapper(
  3720. items[static_cast<ptrdiff_t>(i)].second->first, items[static_cast<ptrdiff_t>(i)].second->second));
  3721. target = ::google::protobuf::internal::WireFormatLite::
  3722. InternalWriteMessageNoVirtualToArray(
  3723. 6, *entry, deterministic, target);
  3724. ;
  3725. if (entry->GetArena() != NULL) {
  3726. entry.release();
  3727. }
  3728. }
  3729. } else {
  3730. ::std::unique_ptr<TestMap_MapSint64Sint64Entry_DoNotUse> entry;
  3731. for (::google::protobuf::Map< ::google::protobuf::int64, ::google::protobuf::int64 >::const_iterator
  3732. it = this->map_sint64_sint64().begin();
  3733. it != this->map_sint64_sint64().end(); ++it) {
  3734. entry.reset(map_sint64_sint64_.NewEntryWrapper(
  3735. it->first, it->second));
  3736. target = ::google::protobuf::internal::WireFormatLite::
  3737. InternalWriteMessageNoVirtualToArray(
  3738. 6, *entry, deterministic, target);
  3739. ;
  3740. if (entry->GetArena() != NULL) {
  3741. entry.release();
  3742. }
  3743. }
  3744. }
  3745. }
  3746. // map<fixed32, fixed32> map_fixed32_fixed32 = 7;
  3747. if (!this->map_fixed32_fixed32().empty()) {
  3748. typedef ::google::protobuf::Map< ::google::protobuf::uint32, ::google::protobuf::uint32 >::const_pointer
  3749. ConstPtr;
  3750. typedef ::google::protobuf::internal::SortItem< ::google::protobuf::uint32, ConstPtr > SortItem;
  3751. typedef ::google::protobuf::internal::CompareByFirstField<SortItem> Less;
  3752. if (deterministic &&
  3753. this->map_fixed32_fixed32().size() > 1) {
  3754. ::std::unique_ptr<SortItem[]> items(
  3755. new SortItem[this->map_fixed32_fixed32().size()]);
  3756. typedef ::google::protobuf::Map< ::google::protobuf::uint32, ::google::protobuf::uint32 >::size_type size_type;
  3757. size_type n = 0;
  3758. for (::google::protobuf::Map< ::google::protobuf::uint32, ::google::protobuf::uint32 >::const_iterator
  3759. it = this->map_fixed32_fixed32().begin();
  3760. it != this->map_fixed32_fixed32().end(); ++it, ++n) {
  3761. items[static_cast<ptrdiff_t>(n)] = SortItem(&*it);
  3762. }
  3763. ::std::sort(&items[0], &items[static_cast<ptrdiff_t>(n)], Less());
  3764. ::std::unique_ptr<TestMap_MapFixed32Fixed32Entry_DoNotUse> entry;
  3765. for (size_type i = 0; i < n; i++) {
  3766. entry.reset(map_fixed32_fixed32_.NewEntryWrapper(
  3767. items[static_cast<ptrdiff_t>(i)].second->first, items[static_cast<ptrdiff_t>(i)].second->second));
  3768. target = ::google::protobuf::internal::WireFormatLite::
  3769. InternalWriteMessageNoVirtualToArray(
  3770. 7, *entry, deterministic, target);
  3771. ;
  3772. if (entry->GetArena() != NULL) {
  3773. entry.release();
  3774. }
  3775. }
  3776. } else {
  3777. ::std::unique_ptr<TestMap_MapFixed32Fixed32Entry_DoNotUse> entry;
  3778. for (::google::protobuf::Map< ::google::protobuf::uint32, ::google::protobuf::uint32 >::const_iterator
  3779. it = this->map_fixed32_fixed32().begin();
  3780. it != this->map_fixed32_fixed32().end(); ++it) {
  3781. entry.reset(map_fixed32_fixed32_.NewEntryWrapper(
  3782. it->first, it->second));
  3783. target = ::google::protobuf::internal::WireFormatLite::
  3784. InternalWriteMessageNoVirtualToArray(
  3785. 7, *entry, deterministic, target);
  3786. ;
  3787. if (entry->GetArena() != NULL) {
  3788. entry.release();
  3789. }
  3790. }
  3791. }
  3792. }
  3793. // map<fixed64, fixed64> map_fixed64_fixed64 = 8;
  3794. if (!this->map_fixed64_fixed64().empty()) {
  3795. typedef ::google::protobuf::Map< ::google::protobuf::uint64, ::google::protobuf::uint64 >::const_pointer
  3796. ConstPtr;
  3797. typedef ::google::protobuf::internal::SortItem< ::google::protobuf::uint64, ConstPtr > SortItem;
  3798. typedef ::google::protobuf::internal::CompareByFirstField<SortItem> Less;
  3799. if (deterministic &&
  3800. this->map_fixed64_fixed64().size() > 1) {
  3801. ::std::unique_ptr<SortItem[]> items(
  3802. new SortItem[this->map_fixed64_fixed64().size()]);
  3803. typedef ::google::protobuf::Map< ::google::protobuf::uint64, ::google::protobuf::uint64 >::size_type size_type;
  3804. size_type n = 0;
  3805. for (::google::protobuf::Map< ::google::protobuf::uint64, ::google::protobuf::uint64 >::const_iterator
  3806. it = this->map_fixed64_fixed64().begin();
  3807. it != this->map_fixed64_fixed64().end(); ++it, ++n) {
  3808. items[static_cast<ptrdiff_t>(n)] = SortItem(&*it);
  3809. }
  3810. ::std::sort(&items[0], &items[static_cast<ptrdiff_t>(n)], Less());
  3811. ::std::unique_ptr<TestMap_MapFixed64Fixed64Entry_DoNotUse> entry;
  3812. for (size_type i = 0; i < n; i++) {
  3813. entry.reset(map_fixed64_fixed64_.NewEntryWrapper(
  3814. items[static_cast<ptrdiff_t>(i)].second->first, items[static_cast<ptrdiff_t>(i)].second->second));
  3815. target = ::google::protobuf::internal::WireFormatLite::
  3816. InternalWriteMessageNoVirtualToArray(
  3817. 8, *entry, deterministic, target);
  3818. ;
  3819. if (entry->GetArena() != NULL) {
  3820. entry.release();
  3821. }
  3822. }
  3823. } else {
  3824. ::std::unique_ptr<TestMap_MapFixed64Fixed64Entry_DoNotUse> entry;
  3825. for (::google::protobuf::Map< ::google::protobuf::uint64, ::google::protobuf::uint64 >::const_iterator
  3826. it = this->map_fixed64_fixed64().begin();
  3827. it != this->map_fixed64_fixed64().end(); ++it) {
  3828. entry.reset(map_fixed64_fixed64_.NewEntryWrapper(
  3829. it->first, it->second));
  3830. target = ::google::protobuf::internal::WireFormatLite::
  3831. InternalWriteMessageNoVirtualToArray(
  3832. 8, *entry, deterministic, target);
  3833. ;
  3834. if (entry->GetArena() != NULL) {
  3835. entry.release();
  3836. }
  3837. }
  3838. }
  3839. }
  3840. // map<sfixed32, sfixed32> map_sfixed32_sfixed32 = 9;
  3841. if (!this->map_sfixed32_sfixed32().empty()) {
  3842. typedef ::google::protobuf::Map< ::google::protobuf::int32, ::google::protobuf::int32 >::const_pointer
  3843. ConstPtr;
  3844. typedef ::google::protobuf::internal::SortItem< ::google::protobuf::int32, ConstPtr > SortItem;
  3845. typedef ::google::protobuf::internal::CompareByFirstField<SortItem> Less;
  3846. if (deterministic &&
  3847. this->map_sfixed32_sfixed32().size() > 1) {
  3848. ::std::unique_ptr<SortItem[]> items(
  3849. new SortItem[this->map_sfixed32_sfixed32().size()]);
  3850. typedef ::google::protobuf::Map< ::google::protobuf::int32, ::google::protobuf::int32 >::size_type size_type;
  3851. size_type n = 0;
  3852. for (::google::protobuf::Map< ::google::protobuf::int32, ::google::protobuf::int32 >::const_iterator
  3853. it = this->map_sfixed32_sfixed32().begin();
  3854. it != this->map_sfixed32_sfixed32().end(); ++it, ++n) {
  3855. items[static_cast<ptrdiff_t>(n)] = SortItem(&*it);
  3856. }
  3857. ::std::sort(&items[0], &items[static_cast<ptrdiff_t>(n)], Less());
  3858. ::std::unique_ptr<TestMap_MapSfixed32Sfixed32Entry_DoNotUse> entry;
  3859. for (size_type i = 0; i < n; i++) {
  3860. entry.reset(map_sfixed32_sfixed32_.NewEntryWrapper(
  3861. items[static_cast<ptrdiff_t>(i)].second->first, items[static_cast<ptrdiff_t>(i)].second->second));
  3862. target = ::google::protobuf::internal::WireFormatLite::
  3863. InternalWriteMessageNoVirtualToArray(
  3864. 9, *entry, deterministic, target);
  3865. ;
  3866. if (entry->GetArena() != NULL) {
  3867. entry.release();
  3868. }
  3869. }
  3870. } else {
  3871. ::std::unique_ptr<TestMap_MapSfixed32Sfixed32Entry_DoNotUse> entry;
  3872. for (::google::protobuf::Map< ::google::protobuf::int32, ::google::protobuf::int32 >::const_iterator
  3873. it = this->map_sfixed32_sfixed32().begin();
  3874. it != this->map_sfixed32_sfixed32().end(); ++it) {
  3875. entry.reset(map_sfixed32_sfixed32_.NewEntryWrapper(
  3876. it->first, it->second));
  3877. target = ::google::protobuf::internal::WireFormatLite::
  3878. InternalWriteMessageNoVirtualToArray(
  3879. 9, *entry, deterministic, target);
  3880. ;
  3881. if (entry->GetArena() != NULL) {
  3882. entry.release();
  3883. }
  3884. }
  3885. }
  3886. }
  3887. // map<sfixed64, sfixed64> map_sfixed64_sfixed64 = 10;
  3888. if (!this->map_sfixed64_sfixed64().empty()) {
  3889. typedef ::google::protobuf::Map< ::google::protobuf::int64, ::google::protobuf::int64 >::const_pointer
  3890. ConstPtr;
  3891. typedef ::google::protobuf::internal::SortItem< ::google::protobuf::int64, ConstPtr > SortItem;
  3892. typedef ::google::protobuf::internal::CompareByFirstField<SortItem> Less;
  3893. if (deterministic &&
  3894. this->map_sfixed64_sfixed64().size() > 1) {
  3895. ::std::unique_ptr<SortItem[]> items(
  3896. new SortItem[this->map_sfixed64_sfixed64().size()]);
  3897. typedef ::google::protobuf::Map< ::google::protobuf::int64, ::google::protobuf::int64 >::size_type size_type;
  3898. size_type n = 0;
  3899. for (::google::protobuf::Map< ::google::protobuf::int64, ::google::protobuf::int64 >::const_iterator
  3900. it = this->map_sfixed64_sfixed64().begin();
  3901. it != this->map_sfixed64_sfixed64().end(); ++it, ++n) {
  3902. items[static_cast<ptrdiff_t>(n)] = SortItem(&*it);
  3903. }
  3904. ::std::sort(&items[0], &items[static_cast<ptrdiff_t>(n)], Less());
  3905. ::std::unique_ptr<TestMap_MapSfixed64Sfixed64Entry_DoNotUse> entry;
  3906. for (size_type i = 0; i < n; i++) {
  3907. entry.reset(map_sfixed64_sfixed64_.NewEntryWrapper(
  3908. items[static_cast<ptrdiff_t>(i)].second->first, items[static_cast<ptrdiff_t>(i)].second->second));
  3909. target = ::google::protobuf::internal::WireFormatLite::
  3910. InternalWriteMessageNoVirtualToArray(
  3911. 10, *entry, deterministic, target);
  3912. ;
  3913. if (entry->GetArena() != NULL) {
  3914. entry.release();
  3915. }
  3916. }
  3917. } else {
  3918. ::std::unique_ptr<TestMap_MapSfixed64Sfixed64Entry_DoNotUse> entry;
  3919. for (::google::protobuf::Map< ::google::protobuf::int64, ::google::protobuf::int64 >::const_iterator
  3920. it = this->map_sfixed64_sfixed64().begin();
  3921. it != this->map_sfixed64_sfixed64().end(); ++it) {
  3922. entry.reset(map_sfixed64_sfixed64_.NewEntryWrapper(
  3923. it->first, it->second));
  3924. target = ::google::protobuf::internal::WireFormatLite::
  3925. InternalWriteMessageNoVirtualToArray(
  3926. 10, *entry, deterministic, target);
  3927. ;
  3928. if (entry->GetArena() != NULL) {
  3929. entry.release();
  3930. }
  3931. }
  3932. }
  3933. }
  3934. // map<int32, float> map_int32_float = 11;
  3935. if (!this->map_int32_float().empty()) {
  3936. typedef ::google::protobuf::Map< ::google::protobuf::int32, float >::const_pointer
  3937. ConstPtr;
  3938. typedef ::google::protobuf::internal::SortItem< ::google::protobuf::int32, ConstPtr > SortItem;
  3939. typedef ::google::protobuf::internal::CompareByFirstField<SortItem> Less;
  3940. if (deterministic &&
  3941. this->map_int32_float().size() > 1) {
  3942. ::std::unique_ptr<SortItem[]> items(
  3943. new SortItem[this->map_int32_float().size()]);
  3944. typedef ::google::protobuf::Map< ::google::protobuf::int32, float >::size_type size_type;
  3945. size_type n = 0;
  3946. for (::google::protobuf::Map< ::google::protobuf::int32, float >::const_iterator
  3947. it = this->map_int32_float().begin();
  3948. it != this->map_int32_float().end(); ++it, ++n) {
  3949. items[static_cast<ptrdiff_t>(n)] = SortItem(&*it);
  3950. }
  3951. ::std::sort(&items[0], &items[static_cast<ptrdiff_t>(n)], Less());
  3952. ::std::unique_ptr<TestMap_MapInt32FloatEntry_DoNotUse> entry;
  3953. for (size_type i = 0; i < n; i++) {
  3954. entry.reset(map_int32_float_.NewEntryWrapper(
  3955. items[static_cast<ptrdiff_t>(i)].second->first, items[static_cast<ptrdiff_t>(i)].second->second));
  3956. target = ::google::protobuf::internal::WireFormatLite::
  3957. InternalWriteMessageNoVirtualToArray(
  3958. 11, *entry, deterministic, target);
  3959. ;
  3960. if (entry->GetArena() != NULL) {
  3961. entry.release();
  3962. }
  3963. }
  3964. } else {
  3965. ::std::unique_ptr<TestMap_MapInt32FloatEntry_DoNotUse> entry;
  3966. for (::google::protobuf::Map< ::google::protobuf::int32, float >::const_iterator
  3967. it = this->map_int32_float().begin();
  3968. it != this->map_int32_float().end(); ++it) {
  3969. entry.reset(map_int32_float_.NewEntryWrapper(
  3970. it->first, it->second));
  3971. target = ::google::protobuf::internal::WireFormatLite::
  3972. InternalWriteMessageNoVirtualToArray(
  3973. 11, *entry, deterministic, target);
  3974. ;
  3975. if (entry->GetArena() != NULL) {
  3976. entry.release();
  3977. }
  3978. }
  3979. }
  3980. }
  3981. // map<int32, double> map_int32_double = 12;
  3982. if (!this->map_int32_double().empty()) {
  3983. typedef ::google::protobuf::Map< ::google::protobuf::int32, double >::const_pointer
  3984. ConstPtr;
  3985. typedef ::google::protobuf::internal::SortItem< ::google::protobuf::int32, ConstPtr > SortItem;
  3986. typedef ::google::protobuf::internal::CompareByFirstField<SortItem> Less;
  3987. if (deterministic &&
  3988. this->map_int32_double().size() > 1) {
  3989. ::std::unique_ptr<SortItem[]> items(
  3990. new SortItem[this->map_int32_double().size()]);
  3991. typedef ::google::protobuf::Map< ::google::protobuf::int32, double >::size_type size_type;
  3992. size_type n = 0;
  3993. for (::google::protobuf::Map< ::google::protobuf::int32, double >::const_iterator
  3994. it = this->map_int32_double().begin();
  3995. it != this->map_int32_double().end(); ++it, ++n) {
  3996. items[static_cast<ptrdiff_t>(n)] = SortItem(&*it);
  3997. }
  3998. ::std::sort(&items[0], &items[static_cast<ptrdiff_t>(n)], Less());
  3999. ::std::unique_ptr<TestMap_MapInt32DoubleEntry_DoNotUse> entry;
  4000. for (size_type i = 0; i < n; i++) {
  4001. entry.reset(map_int32_double_.NewEntryWrapper(
  4002. items[static_cast<ptrdiff_t>(i)].second->first, items[static_cast<ptrdiff_t>(i)].second->second));
  4003. target = ::google::protobuf::internal::WireFormatLite::
  4004. InternalWriteMessageNoVirtualToArray(
  4005. 12, *entry, deterministic, target);
  4006. ;
  4007. if (entry->GetArena() != NULL) {
  4008. entry.release();
  4009. }
  4010. }
  4011. } else {
  4012. ::std::unique_ptr<TestMap_MapInt32DoubleEntry_DoNotUse> entry;
  4013. for (::google::protobuf::Map< ::google::protobuf::int32, double >::const_iterator
  4014. it = this->map_int32_double().begin();
  4015. it != this->map_int32_double().end(); ++it) {
  4016. entry.reset(map_int32_double_.NewEntryWrapper(
  4017. it->first, it->second));
  4018. target = ::google::protobuf::internal::WireFormatLite::
  4019. InternalWriteMessageNoVirtualToArray(
  4020. 12, *entry, deterministic, target);
  4021. ;
  4022. if (entry->GetArena() != NULL) {
  4023. entry.release();
  4024. }
  4025. }
  4026. }
  4027. }
  4028. // map<bool, bool> map_bool_bool = 13;
  4029. if (!this->map_bool_bool().empty()) {
  4030. typedef ::google::protobuf::Map< bool, bool >::const_pointer
  4031. ConstPtr;
  4032. typedef ::google::protobuf::internal::SortItem< bool, ConstPtr > SortItem;
  4033. typedef ::google::protobuf::internal::CompareByFirstField<SortItem> Less;
  4034. if (deterministic &&
  4035. this->map_bool_bool().size() > 1) {
  4036. ::std::unique_ptr<SortItem[]> items(
  4037. new SortItem[this->map_bool_bool().size()]);
  4038. typedef ::google::protobuf::Map< bool, bool >::size_type size_type;
  4039. size_type n = 0;
  4040. for (::google::protobuf::Map< bool, bool >::const_iterator
  4041. it = this->map_bool_bool().begin();
  4042. it != this->map_bool_bool().end(); ++it, ++n) {
  4043. items[static_cast<ptrdiff_t>(n)] = SortItem(&*it);
  4044. }
  4045. ::std::sort(&items[0], &items[static_cast<ptrdiff_t>(n)], Less());
  4046. ::std::unique_ptr<TestMap_MapBoolBoolEntry_DoNotUse> entry;
  4047. for (size_type i = 0; i < n; i++) {
  4048. entry.reset(map_bool_bool_.NewEntryWrapper(
  4049. items[static_cast<ptrdiff_t>(i)].second->first, items[static_cast<ptrdiff_t>(i)].second->second));
  4050. target = ::google::protobuf::internal::WireFormatLite::
  4051. InternalWriteMessageNoVirtualToArray(
  4052. 13, *entry, deterministic, target);
  4053. ;
  4054. if (entry->GetArena() != NULL) {
  4055. entry.release();
  4056. }
  4057. }
  4058. } else {
  4059. ::std::unique_ptr<TestMap_MapBoolBoolEntry_DoNotUse> entry;
  4060. for (::google::protobuf::Map< bool, bool >::const_iterator
  4061. it = this->map_bool_bool().begin();
  4062. it != this->map_bool_bool().end(); ++it) {
  4063. entry.reset(map_bool_bool_.NewEntryWrapper(
  4064. it->first, it->second));
  4065. target = ::google::protobuf::internal::WireFormatLite::
  4066. InternalWriteMessageNoVirtualToArray(
  4067. 13, *entry, deterministic, target);
  4068. ;
  4069. if (entry->GetArena() != NULL) {
  4070. entry.release();
  4071. }
  4072. }
  4073. }
  4074. }
  4075. // map<string, string> map_string_string = 14;
  4076. if (!this->map_string_string().empty()) {
  4077. typedef ::google::protobuf::Map< ::std::string, ::std::string >::const_pointer
  4078. ConstPtr;
  4079. typedef ConstPtr SortItem;
  4080. typedef ::google::protobuf::internal::CompareByDerefFirst<SortItem> Less;
  4081. struct Utf8Check {
  4082. static void Check(ConstPtr p) {
  4083. ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
  4084. p->first.data(), static_cast<int>(p->first.length()),
  4085. ::google::protobuf::internal::WireFormatLite::SERIALIZE,
  4086. "protobuf_unittest.TestMap.MapStringStringEntry.key");
  4087. ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
  4088. p->second.data(), static_cast<int>(p->second.length()),
  4089. ::google::protobuf::internal::WireFormatLite::SERIALIZE,
  4090. "protobuf_unittest.TestMap.MapStringStringEntry.value");
  4091. }
  4092. };
  4093. if (deterministic &&
  4094. this->map_string_string().size() > 1) {
  4095. ::std::unique_ptr<SortItem[]> items(
  4096. new SortItem[this->map_string_string().size()]);
  4097. typedef ::google::protobuf::Map< ::std::string, ::std::string >::size_type size_type;
  4098. size_type n = 0;
  4099. for (::google::protobuf::Map< ::std::string, ::std::string >::const_iterator
  4100. it = this->map_string_string().begin();
  4101. it != this->map_string_string().end(); ++it, ++n) {
  4102. items[static_cast<ptrdiff_t>(n)] = SortItem(&*it);
  4103. }
  4104. ::std::sort(&items[0], &items[static_cast<ptrdiff_t>(n)], Less());
  4105. ::std::unique_ptr<TestMap_MapStringStringEntry_DoNotUse> entry;
  4106. for (size_type i = 0; i < n; i++) {
  4107. entry.reset(map_string_string_.NewEntryWrapper(
  4108. items[static_cast<ptrdiff_t>(i)]->first, items[static_cast<ptrdiff_t>(i)]->second));
  4109. target = ::google::protobuf::internal::WireFormatLite::
  4110. InternalWriteMessageNoVirtualToArray(
  4111. 14, *entry, deterministic, target);
  4112. ;
  4113. if (entry->GetArena() != NULL) {
  4114. entry.release();
  4115. }
  4116. Utf8Check::Check(items[static_cast<ptrdiff_t>(i)]);
  4117. }
  4118. } else {
  4119. ::std::unique_ptr<TestMap_MapStringStringEntry_DoNotUse> entry;
  4120. for (::google::protobuf::Map< ::std::string, ::std::string >::const_iterator
  4121. it = this->map_string_string().begin();
  4122. it != this->map_string_string().end(); ++it) {
  4123. entry.reset(map_string_string_.NewEntryWrapper(
  4124. it->first, it->second));
  4125. target = ::google::protobuf::internal::WireFormatLite::
  4126. InternalWriteMessageNoVirtualToArray(
  4127. 14, *entry, deterministic, target);
  4128. ;
  4129. if (entry->GetArena() != NULL) {
  4130. entry.release();
  4131. }
  4132. Utf8Check::Check(&*it);
  4133. }
  4134. }
  4135. }
  4136. // map<int32, bytes> map_int32_bytes = 15;
  4137. if (!this->map_int32_bytes().empty()) {
  4138. typedef ::google::protobuf::Map< ::google::protobuf::int32, ::std::string >::const_pointer
  4139. ConstPtr;
  4140. typedef ::google::protobuf::internal::SortItem< ::google::protobuf::int32, ConstPtr > SortItem;
  4141. typedef ::google::protobuf::internal::CompareByFirstField<SortItem> Less;
  4142. if (deterministic &&
  4143. this->map_int32_bytes().size() > 1) {
  4144. ::std::unique_ptr<SortItem[]> items(
  4145. new SortItem[this->map_int32_bytes().size()]);
  4146. typedef ::google::protobuf::Map< ::google::protobuf::int32, ::std::string >::size_type size_type;
  4147. size_type n = 0;
  4148. for (::google::protobuf::Map< ::google::protobuf::int32, ::std::string >::const_iterator
  4149. it = this->map_int32_bytes().begin();
  4150. it != this->map_int32_bytes().end(); ++it, ++n) {
  4151. items[static_cast<ptrdiff_t>(n)] = SortItem(&*it);
  4152. }
  4153. ::std::sort(&items[0], &items[static_cast<ptrdiff_t>(n)], Less());
  4154. ::std::unique_ptr<TestMap_MapInt32BytesEntry_DoNotUse> entry;
  4155. for (size_type i = 0; i < n; i++) {
  4156. entry.reset(map_int32_bytes_.NewEntryWrapper(
  4157. items[static_cast<ptrdiff_t>(i)].second->first, items[static_cast<ptrdiff_t>(i)].second->second));
  4158. target = ::google::protobuf::internal::WireFormatLite::
  4159. InternalWriteMessageNoVirtualToArray(
  4160. 15, *entry, deterministic, target);
  4161. ;
  4162. if (entry->GetArena() != NULL) {
  4163. entry.release();
  4164. }
  4165. }
  4166. } else {
  4167. ::std::unique_ptr<TestMap_MapInt32BytesEntry_DoNotUse> entry;
  4168. for (::google::protobuf::Map< ::google::protobuf::int32, ::std::string >::const_iterator
  4169. it = this->map_int32_bytes().begin();
  4170. it != this->map_int32_bytes().end(); ++it) {
  4171. entry.reset(map_int32_bytes_.NewEntryWrapper(
  4172. it->first, it->second));
  4173. target = ::google::protobuf::internal::WireFormatLite::
  4174. InternalWriteMessageNoVirtualToArray(
  4175. 15, *entry, deterministic, target);
  4176. ;
  4177. if (entry->GetArena() != NULL) {
  4178. entry.release();
  4179. }
  4180. }
  4181. }
  4182. }
  4183. // map<int32, .protobuf_unittest.MapEnum> map_int32_enum = 16;
  4184. if (!this->map_int32_enum().empty()) {
  4185. typedef ::google::protobuf::Map< ::google::protobuf::int32, ::protobuf_unittest::MapEnum >::const_pointer
  4186. ConstPtr;
  4187. typedef ::google::protobuf::internal::SortItem< ::google::protobuf::int32, ConstPtr > SortItem;
  4188. typedef ::google::protobuf::internal::CompareByFirstField<SortItem> Less;
  4189. if (deterministic &&
  4190. this->map_int32_enum().size() > 1) {
  4191. ::std::unique_ptr<SortItem[]> items(
  4192. new SortItem[this->map_int32_enum().size()]);
  4193. typedef ::google::protobuf::Map< ::google::protobuf::int32, ::protobuf_unittest::MapEnum >::size_type size_type;
  4194. size_type n = 0;
  4195. for (::google::protobuf::Map< ::google::protobuf::int32, ::protobuf_unittest::MapEnum >::const_iterator
  4196. it = this->map_int32_enum().begin();
  4197. it != this->map_int32_enum().end(); ++it, ++n) {
  4198. items[static_cast<ptrdiff_t>(n)] = SortItem(&*it);
  4199. }
  4200. ::std::sort(&items[0], &items[static_cast<ptrdiff_t>(n)], Less());
  4201. ::std::unique_ptr<TestMap_MapInt32EnumEntry_DoNotUse> entry;
  4202. for (size_type i = 0; i < n; i++) {
  4203. entry.reset(map_int32_enum_.NewEnumEntryWrapper(
  4204. items[static_cast<ptrdiff_t>(i)].second->first, items[static_cast<ptrdiff_t>(i)].second->second));
  4205. target = ::google::protobuf::internal::WireFormatLite::
  4206. InternalWriteMessageNoVirtualToArray(
  4207. 16, *entry, deterministic, target);
  4208. ;
  4209. if (entry->GetArena() != NULL) {
  4210. entry.release();
  4211. }
  4212. }
  4213. } else {
  4214. ::std::unique_ptr<TestMap_MapInt32EnumEntry_DoNotUse> entry;
  4215. for (::google::protobuf::Map< ::google::protobuf::int32, ::protobuf_unittest::MapEnum >::const_iterator
  4216. it = this->map_int32_enum().begin();
  4217. it != this->map_int32_enum().end(); ++it) {
  4218. entry.reset(map_int32_enum_.NewEnumEntryWrapper(
  4219. it->first, it->second));
  4220. target = ::google::protobuf::internal::WireFormatLite::
  4221. InternalWriteMessageNoVirtualToArray(
  4222. 16, *entry, deterministic, target);
  4223. ;
  4224. if (entry->GetArena() != NULL) {
  4225. entry.release();
  4226. }
  4227. }
  4228. }
  4229. }
  4230. // map<int32, .protobuf_unittest.ForeignMessage> map_int32_foreign_message = 17;
  4231. if (!this->map_int32_foreign_message().empty()) {
  4232. typedef ::google::protobuf::Map< ::google::protobuf::int32, ::protobuf_unittest::ForeignMessage >::const_pointer
  4233. ConstPtr;
  4234. typedef ::google::protobuf::internal::SortItem< ::google::protobuf::int32, ConstPtr > SortItem;
  4235. typedef ::google::protobuf::internal::CompareByFirstField<SortItem> Less;
  4236. if (deterministic &&
  4237. this->map_int32_foreign_message().size() > 1) {
  4238. ::std::unique_ptr<SortItem[]> items(
  4239. new SortItem[this->map_int32_foreign_message().size()]);
  4240. typedef ::google::protobuf::Map< ::google::protobuf::int32, ::protobuf_unittest::ForeignMessage >::size_type size_type;
  4241. size_type n = 0;
  4242. for (::google::protobuf::Map< ::google::protobuf::int32, ::protobuf_unittest::ForeignMessage >::const_iterator
  4243. it = this->map_int32_foreign_message().begin();
  4244. it != this->map_int32_foreign_message().end(); ++it, ++n) {
  4245. items[static_cast<ptrdiff_t>(n)] = SortItem(&*it);
  4246. }
  4247. ::std::sort(&items[0], &items[static_cast<ptrdiff_t>(n)], Less());
  4248. ::std::unique_ptr<TestMap_MapInt32ForeignMessageEntry_DoNotUse> entry;
  4249. for (size_type i = 0; i < n; i++) {
  4250. entry.reset(map_int32_foreign_message_.NewEntryWrapper(
  4251. items[static_cast<ptrdiff_t>(i)].second->first, items[static_cast<ptrdiff_t>(i)].second->second));
  4252. target = ::google::protobuf::internal::WireFormatLite::
  4253. InternalWriteMessageNoVirtualToArray(
  4254. 17, *entry, deterministic, target);
  4255. ;
  4256. if (entry->GetArena() != NULL) {
  4257. entry.release();
  4258. }
  4259. }
  4260. } else {
  4261. ::std::unique_ptr<TestMap_MapInt32ForeignMessageEntry_DoNotUse> entry;
  4262. for (::google::protobuf::Map< ::google::protobuf::int32, ::protobuf_unittest::ForeignMessage >::const_iterator
  4263. it = this->map_int32_foreign_message().begin();
  4264. it != this->map_int32_foreign_message().end(); ++it) {
  4265. entry.reset(map_int32_foreign_message_.NewEntryWrapper(
  4266. it->first, it->second));
  4267. target = ::google::protobuf::internal::WireFormatLite::
  4268. InternalWriteMessageNoVirtualToArray(
  4269. 17, *entry, deterministic, target);
  4270. ;
  4271. if (entry->GetArena() != NULL) {
  4272. entry.release();
  4273. }
  4274. }
  4275. }
  4276. }
  4277. // map<string, .protobuf_unittest.ForeignMessage> map_string_foreign_message = 18;
  4278. if (!this->map_string_foreign_message().empty()) {
  4279. typedef ::google::protobuf::Map< ::std::string, ::protobuf_unittest::ForeignMessage >::const_pointer
  4280. ConstPtr;
  4281. typedef ConstPtr SortItem;
  4282. typedef ::google::protobuf::internal::CompareByDerefFirst<SortItem> Less;
  4283. struct Utf8Check {
  4284. static void Check(ConstPtr p) {
  4285. ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
  4286. p->first.data(), static_cast<int>(p->first.length()),
  4287. ::google::protobuf::internal::WireFormatLite::SERIALIZE,
  4288. "protobuf_unittest.TestMap.MapStringForeignMessageEntry.key");
  4289. }
  4290. };
  4291. if (deterministic &&
  4292. this->map_string_foreign_message().size() > 1) {
  4293. ::std::unique_ptr<SortItem[]> items(
  4294. new SortItem[this->map_string_foreign_message().size()]);
  4295. typedef ::google::protobuf::Map< ::std::string, ::protobuf_unittest::ForeignMessage >::size_type size_type;
  4296. size_type n = 0;
  4297. for (::google::protobuf::Map< ::std::string, ::protobuf_unittest::ForeignMessage >::const_iterator
  4298. it = this->map_string_foreign_message().begin();
  4299. it != this->map_string_foreign_message().end(); ++it, ++n) {
  4300. items[static_cast<ptrdiff_t>(n)] = SortItem(&*it);
  4301. }
  4302. ::std::sort(&items[0], &items[static_cast<ptrdiff_t>(n)], Less());
  4303. ::std::unique_ptr<TestMap_MapStringForeignMessageEntry_DoNotUse> entry;
  4304. for (size_type i = 0; i < n; i++) {
  4305. entry.reset(map_string_foreign_message_.NewEntryWrapper(
  4306. items[static_cast<ptrdiff_t>(i)]->first, items[static_cast<ptrdiff_t>(i)]->second));
  4307. target = ::google::protobuf::internal::WireFormatLite::
  4308. InternalWriteMessageNoVirtualToArray(
  4309. 18, *entry, deterministic, target);
  4310. ;
  4311. if (entry->GetArena() != NULL) {
  4312. entry.release();
  4313. }
  4314. Utf8Check::Check(items[static_cast<ptrdiff_t>(i)]);
  4315. }
  4316. } else {
  4317. ::std::unique_ptr<TestMap_MapStringForeignMessageEntry_DoNotUse> entry;
  4318. for (::google::protobuf::Map< ::std::string, ::protobuf_unittest::ForeignMessage >::const_iterator
  4319. it = this->map_string_foreign_message().begin();
  4320. it != this->map_string_foreign_message().end(); ++it) {
  4321. entry.reset(map_string_foreign_message_.NewEntryWrapper(
  4322. it->first, it->second));
  4323. target = ::google::protobuf::internal::WireFormatLite::
  4324. InternalWriteMessageNoVirtualToArray(
  4325. 18, *entry, deterministic, target);
  4326. ;
  4327. if (entry->GetArena() != NULL) {
  4328. entry.release();
  4329. }
  4330. Utf8Check::Check(&*it);
  4331. }
  4332. }
  4333. }
  4334. // map<int32, .protobuf_unittest.TestAllTypes> map_int32_all_types = 19;
  4335. if (!this->map_int32_all_types().empty()) {
  4336. typedef ::google::protobuf::Map< ::google::protobuf::int32, ::protobuf_unittest::TestAllTypes >::const_pointer
  4337. ConstPtr;
  4338. typedef ::google::protobuf::internal::SortItem< ::google::protobuf::int32, ConstPtr > SortItem;
  4339. typedef ::google::protobuf::internal::CompareByFirstField<SortItem> Less;
  4340. if (deterministic &&
  4341. this->map_int32_all_types().size() > 1) {
  4342. ::std::unique_ptr<SortItem[]> items(
  4343. new SortItem[this->map_int32_all_types().size()]);
  4344. typedef ::google::protobuf::Map< ::google::protobuf::int32, ::protobuf_unittest::TestAllTypes >::size_type size_type;
  4345. size_type n = 0;
  4346. for (::google::protobuf::Map< ::google::protobuf::int32, ::protobuf_unittest::TestAllTypes >::const_iterator
  4347. it = this->map_int32_all_types().begin();
  4348. it != this->map_int32_all_types().end(); ++it, ++n) {
  4349. items[static_cast<ptrdiff_t>(n)] = SortItem(&*it);
  4350. }
  4351. ::std::sort(&items[0], &items[static_cast<ptrdiff_t>(n)], Less());
  4352. ::std::unique_ptr<TestMap_MapInt32AllTypesEntry_DoNotUse> entry;
  4353. for (size_type i = 0; i < n; i++) {
  4354. entry.reset(map_int32_all_types_.NewEntryWrapper(
  4355. items[static_cast<ptrdiff_t>(i)].second->first, items[static_cast<ptrdiff_t>(i)].second->second));
  4356. target = ::google::protobuf::internal::WireFormatLite::
  4357. InternalWriteMessageNoVirtualToArray(
  4358. 19, *entry, deterministic, target);
  4359. ;
  4360. if (entry->GetArena() != NULL) {
  4361. entry.release();
  4362. }
  4363. }
  4364. } else {
  4365. ::std::unique_ptr<TestMap_MapInt32AllTypesEntry_DoNotUse> entry;
  4366. for (::google::protobuf::Map< ::google::protobuf::int32, ::protobuf_unittest::TestAllTypes >::const_iterator
  4367. it = this->map_int32_all_types().begin();
  4368. it != this->map_int32_all_types().end(); ++it) {
  4369. entry.reset(map_int32_all_types_.NewEntryWrapper(
  4370. it->first, it->second));
  4371. target = ::google::protobuf::internal::WireFormatLite::
  4372. InternalWriteMessageNoVirtualToArray(
  4373. 19, *entry, deterministic, target);
  4374. ;
  4375. if (entry->GetArena() != NULL) {
  4376. entry.release();
  4377. }
  4378. }
  4379. }
  4380. }
  4381. if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
  4382. target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
  4383. (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target);
  4384. }
  4385. // @@protoc_insertion_point(serialize_to_array_end:protobuf_unittest.TestMap)
  4386. return target;
  4387. }
  4388. size_t TestMap::ByteSizeLong() const {
  4389. // @@protoc_insertion_point(message_byte_size_start:protobuf_unittest.TestMap)
  4390. size_t total_size = 0;
  4391. if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
  4392. total_size +=
  4393. ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
  4394. (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()));
  4395. }
  4396. // map<int32, int32> map_int32_int32 = 1;
  4397. total_size += 1 *
  4398. ::google::protobuf::internal::FromIntSize(this->map_int32_int32_size());
  4399. {
  4400. ::std::unique_ptr<TestMap_MapInt32Int32Entry_DoNotUse> entry;
  4401. for (::google::protobuf::Map< ::google::protobuf::int32, ::google::protobuf::int32 >::const_iterator
  4402. it = this->map_int32_int32().begin();
  4403. it != this->map_int32_int32().end(); ++it) {
  4404. if (entry.get() != NULL && entry->GetArena() != NULL) {
  4405. entry.release();
  4406. }
  4407. entry.reset(map_int32_int32_.NewEntryWrapper(it->first, it->second));
  4408. total_size += ::google::protobuf::internal::WireFormatLite::
  4409. MessageSizeNoVirtual(*entry);
  4410. }
  4411. if (entry.get() != NULL && entry->GetArena() != NULL) {
  4412. entry.release();
  4413. }
  4414. }
  4415. // map<int64, int64> map_int64_int64 = 2;
  4416. total_size += 1 *
  4417. ::google::protobuf::internal::FromIntSize(this->map_int64_int64_size());
  4418. {
  4419. ::std::unique_ptr<TestMap_MapInt64Int64Entry_DoNotUse> entry;
  4420. for (::google::protobuf::Map< ::google::protobuf::int64, ::google::protobuf::int64 >::const_iterator
  4421. it = this->map_int64_int64().begin();
  4422. it != this->map_int64_int64().end(); ++it) {
  4423. if (entry.get() != NULL && entry->GetArena() != NULL) {
  4424. entry.release();
  4425. }
  4426. entry.reset(map_int64_int64_.NewEntryWrapper(it->first, it->second));
  4427. total_size += ::google::protobuf::internal::WireFormatLite::
  4428. MessageSizeNoVirtual(*entry);
  4429. }
  4430. if (entry.get() != NULL && entry->GetArena() != NULL) {
  4431. entry.release();
  4432. }
  4433. }
  4434. // map<uint32, uint32> map_uint32_uint32 = 3;
  4435. total_size += 1 *
  4436. ::google::protobuf::internal::FromIntSize(this->map_uint32_uint32_size());
  4437. {
  4438. ::std::unique_ptr<TestMap_MapUint32Uint32Entry_DoNotUse> entry;
  4439. for (::google::protobuf::Map< ::google::protobuf::uint32, ::google::protobuf::uint32 >::const_iterator
  4440. it = this->map_uint32_uint32().begin();
  4441. it != this->map_uint32_uint32().end(); ++it) {
  4442. if (entry.get() != NULL && entry->GetArena() != NULL) {
  4443. entry.release();
  4444. }
  4445. entry.reset(map_uint32_uint32_.NewEntryWrapper(it->first, it->second));
  4446. total_size += ::google::protobuf::internal::WireFormatLite::
  4447. MessageSizeNoVirtual(*entry);
  4448. }
  4449. if (entry.get() != NULL && entry->GetArena() != NULL) {
  4450. entry.release();
  4451. }
  4452. }
  4453. // map<uint64, uint64> map_uint64_uint64 = 4;
  4454. total_size += 1 *
  4455. ::google::protobuf::internal::FromIntSize(this->map_uint64_uint64_size());
  4456. {
  4457. ::std::unique_ptr<TestMap_MapUint64Uint64Entry_DoNotUse> entry;
  4458. for (::google::protobuf::Map< ::google::protobuf::uint64, ::google::protobuf::uint64 >::const_iterator
  4459. it = this->map_uint64_uint64().begin();
  4460. it != this->map_uint64_uint64().end(); ++it) {
  4461. if (entry.get() != NULL && entry->GetArena() != NULL) {
  4462. entry.release();
  4463. }
  4464. entry.reset(map_uint64_uint64_.NewEntryWrapper(it->first, it->second));
  4465. total_size += ::google::protobuf::internal::WireFormatLite::
  4466. MessageSizeNoVirtual(*entry);
  4467. }
  4468. if (entry.get() != NULL && entry->GetArena() != NULL) {
  4469. entry.release();
  4470. }
  4471. }
  4472. // map<sint32, sint32> map_sint32_sint32 = 5;
  4473. total_size += 1 *
  4474. ::google::protobuf::internal::FromIntSize(this->map_sint32_sint32_size());
  4475. {
  4476. ::std::unique_ptr<TestMap_MapSint32Sint32Entry_DoNotUse> entry;
  4477. for (::google::protobuf::Map< ::google::protobuf::int32, ::google::protobuf::int32 >::const_iterator
  4478. it = this->map_sint32_sint32().begin();
  4479. it != this->map_sint32_sint32().end(); ++it) {
  4480. if (entry.get() != NULL && entry->GetArena() != NULL) {
  4481. entry.release();
  4482. }
  4483. entry.reset(map_sint32_sint32_.NewEntryWrapper(it->first, it->second));
  4484. total_size += ::google::protobuf::internal::WireFormatLite::
  4485. MessageSizeNoVirtual(*entry);
  4486. }
  4487. if (entry.get() != NULL && entry->GetArena() != NULL) {
  4488. entry.release();
  4489. }
  4490. }
  4491. // map<sint64, sint64> map_sint64_sint64 = 6;
  4492. total_size += 1 *
  4493. ::google::protobuf::internal::FromIntSize(this->map_sint64_sint64_size());
  4494. {
  4495. ::std::unique_ptr<TestMap_MapSint64Sint64Entry_DoNotUse> entry;
  4496. for (::google::protobuf::Map< ::google::protobuf::int64, ::google::protobuf::int64 >::const_iterator
  4497. it = this->map_sint64_sint64().begin();
  4498. it != this->map_sint64_sint64().end(); ++it) {
  4499. if (entry.get() != NULL && entry->GetArena() != NULL) {
  4500. entry.release();
  4501. }
  4502. entry.reset(map_sint64_sint64_.NewEntryWrapper(it->first, it->second));
  4503. total_size += ::google::protobuf::internal::WireFormatLite::
  4504. MessageSizeNoVirtual(*entry);
  4505. }
  4506. if (entry.get() != NULL && entry->GetArena() != NULL) {
  4507. entry.release();
  4508. }
  4509. }
  4510. // map<fixed32, fixed32> map_fixed32_fixed32 = 7;
  4511. total_size += 1 *
  4512. ::google::protobuf::internal::FromIntSize(this->map_fixed32_fixed32_size());
  4513. {
  4514. ::std::unique_ptr<TestMap_MapFixed32Fixed32Entry_DoNotUse> entry;
  4515. for (::google::protobuf::Map< ::google::protobuf::uint32, ::google::protobuf::uint32 >::const_iterator
  4516. it = this->map_fixed32_fixed32().begin();
  4517. it != this->map_fixed32_fixed32().end(); ++it) {
  4518. if (entry.get() != NULL && entry->GetArena() != NULL) {
  4519. entry.release();
  4520. }
  4521. entry.reset(map_fixed32_fixed32_.NewEntryWrapper(it->first, it->second));
  4522. total_size += ::google::protobuf::internal::WireFormatLite::
  4523. MessageSizeNoVirtual(*entry);
  4524. }
  4525. if (entry.get() != NULL && entry->GetArena() != NULL) {
  4526. entry.release();
  4527. }
  4528. }
  4529. // map<fixed64, fixed64> map_fixed64_fixed64 = 8;
  4530. total_size += 1 *
  4531. ::google::protobuf::internal::FromIntSize(this->map_fixed64_fixed64_size());
  4532. {
  4533. ::std::unique_ptr<TestMap_MapFixed64Fixed64Entry_DoNotUse> entry;
  4534. for (::google::protobuf::Map< ::google::protobuf::uint64, ::google::protobuf::uint64 >::const_iterator
  4535. it = this->map_fixed64_fixed64().begin();
  4536. it != this->map_fixed64_fixed64().end(); ++it) {
  4537. if (entry.get() != NULL && entry->GetArena() != NULL) {
  4538. entry.release();
  4539. }
  4540. entry.reset(map_fixed64_fixed64_.NewEntryWrapper(it->first, it->second));
  4541. total_size += ::google::protobuf::internal::WireFormatLite::
  4542. MessageSizeNoVirtual(*entry);
  4543. }
  4544. if (entry.get() != NULL && entry->GetArena() != NULL) {
  4545. entry.release();
  4546. }
  4547. }
  4548. // map<sfixed32, sfixed32> map_sfixed32_sfixed32 = 9;
  4549. total_size += 1 *
  4550. ::google::protobuf::internal::FromIntSize(this->map_sfixed32_sfixed32_size());
  4551. {
  4552. ::std::unique_ptr<TestMap_MapSfixed32Sfixed32Entry_DoNotUse> entry;
  4553. for (::google::protobuf::Map< ::google::protobuf::int32, ::google::protobuf::int32 >::const_iterator
  4554. it = this->map_sfixed32_sfixed32().begin();
  4555. it != this->map_sfixed32_sfixed32().end(); ++it) {
  4556. if (entry.get() != NULL && entry->GetArena() != NULL) {
  4557. entry.release();
  4558. }
  4559. entry.reset(map_sfixed32_sfixed32_.NewEntryWrapper(it->first, it->second));
  4560. total_size += ::google::protobuf::internal::WireFormatLite::
  4561. MessageSizeNoVirtual(*entry);
  4562. }
  4563. if (entry.get() != NULL && entry->GetArena() != NULL) {
  4564. entry.release();
  4565. }
  4566. }
  4567. // map<sfixed64, sfixed64> map_sfixed64_sfixed64 = 10;
  4568. total_size += 1 *
  4569. ::google::protobuf::internal::FromIntSize(this->map_sfixed64_sfixed64_size());
  4570. {
  4571. ::std::unique_ptr<TestMap_MapSfixed64Sfixed64Entry_DoNotUse> entry;
  4572. for (::google::protobuf::Map< ::google::protobuf::int64, ::google::protobuf::int64 >::const_iterator
  4573. it = this->map_sfixed64_sfixed64().begin();
  4574. it != this->map_sfixed64_sfixed64().end(); ++it) {
  4575. if (entry.get() != NULL && entry->GetArena() != NULL) {
  4576. entry.release();
  4577. }
  4578. entry.reset(map_sfixed64_sfixed64_.NewEntryWrapper(it->first, it->second));
  4579. total_size += ::google::protobuf::internal::WireFormatLite::
  4580. MessageSizeNoVirtual(*entry);
  4581. }
  4582. if (entry.get() != NULL && entry->GetArena() != NULL) {
  4583. entry.release();
  4584. }
  4585. }
  4586. // map<int32, float> map_int32_float = 11;
  4587. total_size += 1 *
  4588. ::google::protobuf::internal::FromIntSize(this->map_int32_float_size());
  4589. {
  4590. ::std::unique_ptr<TestMap_MapInt32FloatEntry_DoNotUse> entry;
  4591. for (::google::protobuf::Map< ::google::protobuf::int32, float >::const_iterator
  4592. it = this->map_int32_float().begin();
  4593. it != this->map_int32_float().end(); ++it) {
  4594. if (entry.get() != NULL && entry->GetArena() != NULL) {
  4595. entry.release();
  4596. }
  4597. entry.reset(map_int32_float_.NewEntryWrapper(it->first, it->second));
  4598. total_size += ::google::protobuf::internal::WireFormatLite::
  4599. MessageSizeNoVirtual(*entry);
  4600. }
  4601. if (entry.get() != NULL && entry->GetArena() != NULL) {
  4602. entry.release();
  4603. }
  4604. }
  4605. // map<int32, double> map_int32_double = 12;
  4606. total_size += 1 *
  4607. ::google::protobuf::internal::FromIntSize(this->map_int32_double_size());
  4608. {
  4609. ::std::unique_ptr<TestMap_MapInt32DoubleEntry_DoNotUse> entry;
  4610. for (::google::protobuf::Map< ::google::protobuf::int32, double >::const_iterator
  4611. it = this->map_int32_double().begin();
  4612. it != this->map_int32_double().end(); ++it) {
  4613. if (entry.get() != NULL && entry->GetArena() != NULL) {
  4614. entry.release();
  4615. }
  4616. entry.reset(map_int32_double_.NewEntryWrapper(it->first, it->second));
  4617. total_size += ::google::protobuf::internal::WireFormatLite::
  4618. MessageSizeNoVirtual(*entry);
  4619. }
  4620. if (entry.get() != NULL && entry->GetArena() != NULL) {
  4621. entry.release();
  4622. }
  4623. }
  4624. // map<bool, bool> map_bool_bool = 13;
  4625. total_size += 1 *
  4626. ::google::protobuf::internal::FromIntSize(this->map_bool_bool_size());
  4627. {
  4628. ::std::unique_ptr<TestMap_MapBoolBoolEntry_DoNotUse> entry;
  4629. for (::google::protobuf::Map< bool, bool >::const_iterator
  4630. it = this->map_bool_bool().begin();
  4631. it != this->map_bool_bool().end(); ++it) {
  4632. if (entry.get() != NULL && entry->GetArena() != NULL) {
  4633. entry.release();
  4634. }
  4635. entry.reset(map_bool_bool_.NewEntryWrapper(it->first, it->second));
  4636. total_size += ::google::protobuf::internal::WireFormatLite::
  4637. MessageSizeNoVirtual(*entry);
  4638. }
  4639. if (entry.get() != NULL && entry->GetArena() != NULL) {
  4640. entry.release();
  4641. }
  4642. }
  4643. // map<string, string> map_string_string = 14;
  4644. total_size += 1 *
  4645. ::google::protobuf::internal::FromIntSize(this->map_string_string_size());
  4646. {
  4647. ::std::unique_ptr<TestMap_MapStringStringEntry_DoNotUse> entry;
  4648. for (::google::protobuf::Map< ::std::string, ::std::string >::const_iterator
  4649. it = this->map_string_string().begin();
  4650. it != this->map_string_string().end(); ++it) {
  4651. if (entry.get() != NULL && entry->GetArena() != NULL) {
  4652. entry.release();
  4653. }
  4654. entry.reset(map_string_string_.NewEntryWrapper(it->first, it->second));
  4655. total_size += ::google::protobuf::internal::WireFormatLite::
  4656. MessageSizeNoVirtual(*entry);
  4657. }
  4658. if (entry.get() != NULL && entry->GetArena() != NULL) {
  4659. entry.release();
  4660. }
  4661. }
  4662. // map<int32, bytes> map_int32_bytes = 15;
  4663. total_size += 1 *
  4664. ::google::protobuf::internal::FromIntSize(this->map_int32_bytes_size());
  4665. {
  4666. ::std::unique_ptr<TestMap_MapInt32BytesEntry_DoNotUse> entry;
  4667. for (::google::protobuf::Map< ::google::protobuf::int32, ::std::string >::const_iterator
  4668. it = this->map_int32_bytes().begin();
  4669. it != this->map_int32_bytes().end(); ++it) {
  4670. if (entry.get() != NULL && entry->GetArena() != NULL) {
  4671. entry.release();
  4672. }
  4673. entry.reset(map_int32_bytes_.NewEntryWrapper(it->first, it->second));
  4674. total_size += ::google::protobuf::internal::WireFormatLite::
  4675. MessageSizeNoVirtual(*entry);
  4676. }
  4677. if (entry.get() != NULL && entry->GetArena() != NULL) {
  4678. entry.release();
  4679. }
  4680. }
  4681. // map<int32, .protobuf_unittest.MapEnum> map_int32_enum = 16;
  4682. total_size += 2 *
  4683. ::google::protobuf::internal::FromIntSize(this->map_int32_enum_size());
  4684. {
  4685. ::std::unique_ptr<TestMap_MapInt32EnumEntry_DoNotUse> entry;
  4686. for (::google::protobuf::Map< ::google::protobuf::int32, ::protobuf_unittest::MapEnum >::const_iterator
  4687. it = this->map_int32_enum().begin();
  4688. it != this->map_int32_enum().end(); ++it) {
  4689. if (entry.get() != NULL && entry->GetArena() != NULL) {
  4690. entry.release();
  4691. }
  4692. entry.reset(map_int32_enum_.NewEnumEntryWrapper(it->first, it->second));
  4693. total_size += ::google::protobuf::internal::WireFormatLite::
  4694. MessageSizeNoVirtual(*entry);
  4695. }
  4696. if (entry.get() != NULL && entry->GetArena() != NULL) {
  4697. entry.release();
  4698. }
  4699. }
  4700. // map<int32, .protobuf_unittest.ForeignMessage> map_int32_foreign_message = 17;
  4701. total_size += 2 *
  4702. ::google::protobuf::internal::FromIntSize(this->map_int32_foreign_message_size());
  4703. {
  4704. ::std::unique_ptr<TestMap_MapInt32ForeignMessageEntry_DoNotUse> entry;
  4705. for (::google::protobuf::Map< ::google::protobuf::int32, ::protobuf_unittest::ForeignMessage >::const_iterator
  4706. it = this->map_int32_foreign_message().begin();
  4707. it != this->map_int32_foreign_message().end(); ++it) {
  4708. if (entry.get() != NULL && entry->GetArena() != NULL) {
  4709. entry.release();
  4710. }
  4711. entry.reset(map_int32_foreign_message_.NewEntryWrapper(it->first, it->second));
  4712. total_size += ::google::protobuf::internal::WireFormatLite::
  4713. MessageSizeNoVirtual(*entry);
  4714. }
  4715. if (entry.get() != NULL && entry->GetArena() != NULL) {
  4716. entry.release();
  4717. }
  4718. }
  4719. // map<string, .protobuf_unittest.ForeignMessage> map_string_foreign_message = 18;
  4720. total_size += 2 *
  4721. ::google::protobuf::internal::FromIntSize(this->map_string_foreign_message_size());
  4722. {
  4723. ::std::unique_ptr<TestMap_MapStringForeignMessageEntry_DoNotUse> entry;
  4724. for (::google::protobuf::Map< ::std::string, ::protobuf_unittest::ForeignMessage >::const_iterator
  4725. it = this->map_string_foreign_message().begin();
  4726. it != this->map_string_foreign_message().end(); ++it) {
  4727. if (entry.get() != NULL && entry->GetArena() != NULL) {
  4728. entry.release();
  4729. }
  4730. entry.reset(map_string_foreign_message_.NewEntryWrapper(it->first, it->second));
  4731. total_size += ::google::protobuf::internal::WireFormatLite::
  4732. MessageSizeNoVirtual(*entry);
  4733. }
  4734. if (entry.get() != NULL && entry->GetArena() != NULL) {
  4735. entry.release();
  4736. }
  4737. }
  4738. // map<int32, .protobuf_unittest.TestAllTypes> map_int32_all_types = 19;
  4739. total_size += 2 *
  4740. ::google::protobuf::internal::FromIntSize(this->map_int32_all_types_size());
  4741. {
  4742. ::std::unique_ptr<TestMap_MapInt32AllTypesEntry_DoNotUse> entry;
  4743. for (::google::protobuf::Map< ::google::protobuf::int32, ::protobuf_unittest::TestAllTypes >::const_iterator
  4744. it = this->map_int32_all_types().begin();
  4745. it != this->map_int32_all_types().end(); ++it) {
  4746. if (entry.get() != NULL && entry->GetArena() != NULL) {
  4747. entry.release();
  4748. }
  4749. entry.reset(map_int32_all_types_.NewEntryWrapper(it->first, it->second));
  4750. total_size += ::google::protobuf::internal::WireFormatLite::
  4751. MessageSizeNoVirtual(*entry);
  4752. }
  4753. if (entry.get() != NULL && entry->GetArena() != NULL) {
  4754. entry.release();
  4755. }
  4756. }
  4757. int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
  4758. SetCachedSize(cached_size);
  4759. return total_size;
  4760. }
  4761. void TestMap::MergeFrom(const ::google::protobuf::Message& from) {
  4762. // @@protoc_insertion_point(generalized_merge_from_start:protobuf_unittest.TestMap)
  4763. GOOGLE_DCHECK_NE(&from, this);
  4764. const TestMap* source =
  4765. ::google::protobuf::internal::DynamicCastToGenerated<const TestMap>(
  4766. &from);
  4767. if (source == NULL) {
  4768. // @@protoc_insertion_point(generalized_merge_from_cast_fail:protobuf_unittest.TestMap)
  4769. ::google::protobuf::internal::ReflectionOps::Merge(from, this);
  4770. } else {
  4771. // @@protoc_insertion_point(generalized_merge_from_cast_success:protobuf_unittest.TestMap)
  4772. MergeFrom(*source);
  4773. }
  4774. }
  4775. void TestMap::MergeFrom(const TestMap& from) {
  4776. // @@protoc_insertion_point(class_specific_merge_from_start:protobuf_unittest.TestMap)
  4777. GOOGLE_DCHECK_NE(&from, this);
  4778. _internal_metadata_.MergeFrom(from._internal_metadata_);
  4779. ::google::protobuf::uint32 cached_has_bits = 0;
  4780. (void) cached_has_bits;
  4781. map_int32_int32_.MergeFrom(from.map_int32_int32_);
  4782. map_int64_int64_.MergeFrom(from.map_int64_int64_);
  4783. map_uint32_uint32_.MergeFrom(from.map_uint32_uint32_);
  4784. map_uint64_uint64_.MergeFrom(from.map_uint64_uint64_);
  4785. map_sint32_sint32_.MergeFrom(from.map_sint32_sint32_);
  4786. map_sint64_sint64_.MergeFrom(from.map_sint64_sint64_);
  4787. map_fixed32_fixed32_.MergeFrom(from.map_fixed32_fixed32_);
  4788. map_fixed64_fixed64_.MergeFrom(from.map_fixed64_fixed64_);
  4789. map_sfixed32_sfixed32_.MergeFrom(from.map_sfixed32_sfixed32_);
  4790. map_sfixed64_sfixed64_.MergeFrom(from.map_sfixed64_sfixed64_);
  4791. map_int32_float_.MergeFrom(from.map_int32_float_);
  4792. map_int32_double_.MergeFrom(from.map_int32_double_);
  4793. map_bool_bool_.MergeFrom(from.map_bool_bool_);
  4794. map_string_string_.MergeFrom(from.map_string_string_);
  4795. map_int32_bytes_.MergeFrom(from.map_int32_bytes_);
  4796. map_int32_enum_.MergeFrom(from.map_int32_enum_);
  4797. map_int32_foreign_message_.MergeFrom(from.map_int32_foreign_message_);
  4798. map_string_foreign_message_.MergeFrom(from.map_string_foreign_message_);
  4799. map_int32_all_types_.MergeFrom(from.map_int32_all_types_);
  4800. }
  4801. void TestMap::CopyFrom(const ::google::protobuf::Message& from) {
  4802. // @@protoc_insertion_point(generalized_copy_from_start:protobuf_unittest.TestMap)
  4803. if (&from == this) return;
  4804. Clear();
  4805. MergeFrom(from);
  4806. }
  4807. void TestMap::CopyFrom(const TestMap& from) {
  4808. // @@protoc_insertion_point(class_specific_copy_from_start:protobuf_unittest.TestMap)
  4809. if (&from == this) return;
  4810. Clear();
  4811. MergeFrom(from);
  4812. }
  4813. bool TestMap::IsInitialized() const {
  4814. return true;
  4815. }
  4816. void TestMap::Swap(TestMap* other) {
  4817. if (other == this) return;
  4818. if (GetArenaNoVirtual() == other->GetArenaNoVirtual()) {
  4819. InternalSwap(other);
  4820. } else {
  4821. TestMap* temp = New(GetArenaNoVirtual());
  4822. temp->MergeFrom(*other);
  4823. other->CopyFrom(*this);
  4824. InternalSwap(temp);
  4825. if (GetArenaNoVirtual() == NULL) {
  4826. delete temp;
  4827. }
  4828. }
  4829. }
  4830. void TestMap::UnsafeArenaSwap(TestMap* other) {
  4831. if (other == this) return;
  4832. GOOGLE_DCHECK(GetArenaNoVirtual() == other->GetArenaNoVirtual());
  4833. InternalSwap(other);
  4834. }
  4835. void TestMap::InternalSwap(TestMap* other) {
  4836. using std::swap;
  4837. map_int32_int32_.Swap(&other->map_int32_int32_);
  4838. map_int64_int64_.Swap(&other->map_int64_int64_);
  4839. map_uint32_uint32_.Swap(&other->map_uint32_uint32_);
  4840. map_uint64_uint64_.Swap(&other->map_uint64_uint64_);
  4841. map_sint32_sint32_.Swap(&other->map_sint32_sint32_);
  4842. map_sint64_sint64_.Swap(&other->map_sint64_sint64_);
  4843. map_fixed32_fixed32_.Swap(&other->map_fixed32_fixed32_);
  4844. map_fixed64_fixed64_.Swap(&other->map_fixed64_fixed64_);
  4845. map_sfixed32_sfixed32_.Swap(&other->map_sfixed32_sfixed32_);
  4846. map_sfixed64_sfixed64_.Swap(&other->map_sfixed64_sfixed64_);
  4847. map_int32_float_.Swap(&other->map_int32_float_);
  4848. map_int32_double_.Swap(&other->map_int32_double_);
  4849. map_bool_bool_.Swap(&other->map_bool_bool_);
  4850. map_string_string_.Swap(&other->map_string_string_);
  4851. map_int32_bytes_.Swap(&other->map_int32_bytes_);
  4852. map_int32_enum_.Swap(&other->map_int32_enum_);
  4853. map_int32_foreign_message_.Swap(&other->map_int32_foreign_message_);
  4854. map_string_foreign_message_.Swap(&other->map_string_foreign_message_);
  4855. map_int32_all_types_.Swap(&other->map_int32_all_types_);
  4856. _internal_metadata_.Swap(&other->_internal_metadata_);
  4857. }
  4858. ::google::protobuf::Metadata TestMap::GetMetadata() const {
  4859. protobuf_google_2fprotobuf_2fmap_5funittest_2eproto::protobuf_AssignDescriptorsOnce();
  4860. return ::protobuf_google_2fprotobuf_2fmap_5funittest_2eproto::file_level_metadata[kIndexInFileMessages];
  4861. }
  4862. // ===================================================================
  4863. void TestMapSubmessage::InitAsDefaultInstance() {
  4864. ::protobuf_unittest::_TestMapSubmessage_default_instance_._instance.get_mutable()->test_map_ = const_cast< ::protobuf_unittest::TestMap*>(
  4865. ::protobuf_unittest::TestMap::internal_default_instance());
  4866. }
  4867. void TestMapSubmessage::unsafe_arena_set_allocated_test_map(
  4868. ::protobuf_unittest::TestMap* test_map) {
  4869. if (GetArenaNoVirtual() == NULL) {
  4870. delete test_map_;
  4871. }
  4872. test_map_ = test_map;
  4873. if (test_map) {
  4874. } else {
  4875. }
  4876. // @@protoc_insertion_point(field_unsafe_arena_set_allocated:protobuf_unittest.TestMapSubmessage.test_map)
  4877. }
  4878. #if !defined(_MSC_VER) || _MSC_VER >= 1900
  4879. const int TestMapSubmessage::kTestMapFieldNumber;
  4880. #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
  4881. TestMapSubmessage::TestMapSubmessage()
  4882. : ::google::protobuf::Message(), _internal_metadata_(NULL) {
  4883. ::google::protobuf::internal::InitSCC(
  4884. &protobuf_google_2fprotobuf_2fmap_5funittest_2eproto::scc_info_TestMapSubmessage.base);
  4885. SharedCtor();
  4886. // @@protoc_insertion_point(constructor:protobuf_unittest.TestMapSubmessage)
  4887. }
  4888. TestMapSubmessage::TestMapSubmessage(::google::protobuf::Arena* arena)
  4889. : ::google::protobuf::Message(),
  4890. _internal_metadata_(arena) {
  4891. ::google::protobuf::internal::InitSCC(&protobuf_google_2fprotobuf_2fmap_5funittest_2eproto::scc_info_TestMapSubmessage.base);
  4892. SharedCtor();
  4893. RegisterArenaDtor(arena);
  4894. // @@protoc_insertion_point(arena_constructor:protobuf_unittest.TestMapSubmessage)
  4895. }
  4896. TestMapSubmessage::TestMapSubmessage(const TestMapSubmessage& from)
  4897. : ::google::protobuf::Message(),
  4898. _internal_metadata_(NULL) {
  4899. _internal_metadata_.MergeFrom(from._internal_metadata_);
  4900. if (from.has_test_map()) {
  4901. test_map_ = new ::protobuf_unittest::TestMap(*from.test_map_);
  4902. } else {
  4903. test_map_ = NULL;
  4904. }
  4905. // @@protoc_insertion_point(copy_constructor:protobuf_unittest.TestMapSubmessage)
  4906. }
  4907. void TestMapSubmessage::SharedCtor() {
  4908. test_map_ = NULL;
  4909. }
  4910. TestMapSubmessage::~TestMapSubmessage() {
  4911. // @@protoc_insertion_point(destructor:protobuf_unittest.TestMapSubmessage)
  4912. SharedDtor();
  4913. }
  4914. void TestMapSubmessage::SharedDtor() {
  4915. GOOGLE_DCHECK(GetArenaNoVirtual() == NULL);
  4916. if (this != internal_default_instance()) delete test_map_;
  4917. }
  4918. void TestMapSubmessage::ArenaDtor(void* object) {
  4919. TestMapSubmessage* _this = reinterpret_cast< TestMapSubmessage* >(object);
  4920. (void)_this;
  4921. }
  4922. void TestMapSubmessage::RegisterArenaDtor(::google::protobuf::Arena* arena) {
  4923. }
  4924. void TestMapSubmessage::SetCachedSize(int size) const {
  4925. _cached_size_.Set(size);
  4926. }
  4927. const ::google::protobuf::Descriptor* TestMapSubmessage::descriptor() {
  4928. ::protobuf_google_2fprotobuf_2fmap_5funittest_2eproto::protobuf_AssignDescriptorsOnce();
  4929. return ::protobuf_google_2fprotobuf_2fmap_5funittest_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
  4930. }
  4931. const TestMapSubmessage& TestMapSubmessage::default_instance() {
  4932. ::google::protobuf::internal::InitSCC(&protobuf_google_2fprotobuf_2fmap_5funittest_2eproto::scc_info_TestMapSubmessage.base);
  4933. return *internal_default_instance();
  4934. }
  4935. void TestMapSubmessage::Clear() {
  4936. // @@protoc_insertion_point(message_clear_start:protobuf_unittest.TestMapSubmessage)
  4937. ::google::protobuf::uint32 cached_has_bits = 0;
  4938. // Prevent compiler warnings about cached_has_bits being unused
  4939. (void) cached_has_bits;
  4940. if (GetArenaNoVirtual() == NULL && test_map_ != NULL) {
  4941. delete test_map_;
  4942. }
  4943. test_map_ = NULL;
  4944. _internal_metadata_.Clear();
  4945. }
  4946. bool TestMapSubmessage::MergePartialFromCodedStream(
  4947. ::google::protobuf::io::CodedInputStream* input) {
  4948. #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
  4949. ::google::protobuf::uint32 tag;
  4950. // @@protoc_insertion_point(parse_start:protobuf_unittest.TestMapSubmessage)
  4951. for (;;) {
  4952. ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
  4953. tag = p.first;
  4954. if (!p.second) goto handle_unusual;
  4955. switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
  4956. // .protobuf_unittest.TestMap test_map = 1;
  4957. case 1: {
  4958. if (static_cast< ::google::protobuf::uint8>(tag) ==
  4959. static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
  4960. DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
  4961. input, mutable_test_map()));
  4962. } else {
  4963. goto handle_unusual;
  4964. }
  4965. break;
  4966. }
  4967. default: {
  4968. handle_unusual:
  4969. if (tag == 0) {
  4970. goto success;
  4971. }
  4972. DO_(::google::protobuf::internal::WireFormat::SkipField(
  4973. input, tag, _internal_metadata_.mutable_unknown_fields()));
  4974. break;
  4975. }
  4976. }
  4977. }
  4978. success:
  4979. // @@protoc_insertion_point(parse_success:protobuf_unittest.TestMapSubmessage)
  4980. return true;
  4981. failure:
  4982. // @@protoc_insertion_point(parse_failure:protobuf_unittest.TestMapSubmessage)
  4983. return false;
  4984. #undef DO_
  4985. }
  4986. void TestMapSubmessage::SerializeWithCachedSizes(
  4987. ::google::protobuf::io::CodedOutputStream* output) const {
  4988. // @@protoc_insertion_point(serialize_start:protobuf_unittest.TestMapSubmessage)
  4989. ::google::protobuf::uint32 cached_has_bits = 0;
  4990. (void) cached_has_bits;
  4991. // .protobuf_unittest.TestMap test_map = 1;
  4992. if (this->has_test_map()) {
  4993. ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
  4994. 1, this->_internal_test_map(), output);
  4995. }
  4996. if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
  4997. ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
  4998. (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output);
  4999. }
  5000. // @@protoc_insertion_point(serialize_end:protobuf_unittest.TestMapSubmessage)
  5001. }
  5002. ::google::protobuf::uint8* TestMapSubmessage::InternalSerializeWithCachedSizesToArray(
  5003. bool deterministic, ::google::protobuf::uint8* target) const {
  5004. (void)deterministic; // Unused
  5005. // @@protoc_insertion_point(serialize_to_array_start:protobuf_unittest.TestMapSubmessage)
  5006. ::google::protobuf::uint32 cached_has_bits = 0;
  5007. (void) cached_has_bits;
  5008. // .protobuf_unittest.TestMap test_map = 1;
  5009. if (this->has_test_map()) {
  5010. target = ::google::protobuf::internal::WireFormatLite::
  5011. InternalWriteMessageToArray(
  5012. 1, this->_internal_test_map(), deterministic, target);
  5013. }
  5014. if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
  5015. target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
  5016. (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target);
  5017. }
  5018. // @@protoc_insertion_point(serialize_to_array_end:protobuf_unittest.TestMapSubmessage)
  5019. return target;
  5020. }
  5021. size_t TestMapSubmessage::ByteSizeLong() const {
  5022. // @@protoc_insertion_point(message_byte_size_start:protobuf_unittest.TestMapSubmessage)
  5023. size_t total_size = 0;
  5024. if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
  5025. total_size +=
  5026. ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
  5027. (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()));
  5028. }
  5029. // .protobuf_unittest.TestMap test_map = 1;
  5030. if (this->has_test_map()) {
  5031. total_size += 1 +
  5032. ::google::protobuf::internal::WireFormatLite::MessageSize(
  5033. *test_map_);
  5034. }
  5035. int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
  5036. SetCachedSize(cached_size);
  5037. return total_size;
  5038. }
  5039. void TestMapSubmessage::MergeFrom(const ::google::protobuf::Message& from) {
  5040. // @@protoc_insertion_point(generalized_merge_from_start:protobuf_unittest.TestMapSubmessage)
  5041. GOOGLE_DCHECK_NE(&from, this);
  5042. const TestMapSubmessage* source =
  5043. ::google::protobuf::internal::DynamicCastToGenerated<const TestMapSubmessage>(
  5044. &from);
  5045. if (source == NULL) {
  5046. // @@protoc_insertion_point(generalized_merge_from_cast_fail:protobuf_unittest.TestMapSubmessage)
  5047. ::google::protobuf::internal::ReflectionOps::Merge(from, this);
  5048. } else {
  5049. // @@protoc_insertion_point(generalized_merge_from_cast_success:protobuf_unittest.TestMapSubmessage)
  5050. MergeFrom(*source);
  5051. }
  5052. }
  5053. void TestMapSubmessage::MergeFrom(const TestMapSubmessage& from) {
  5054. // @@protoc_insertion_point(class_specific_merge_from_start:protobuf_unittest.TestMapSubmessage)
  5055. GOOGLE_DCHECK_NE(&from, this);
  5056. _internal_metadata_.MergeFrom(from._internal_metadata_);
  5057. ::google::protobuf::uint32 cached_has_bits = 0;
  5058. (void) cached_has_bits;
  5059. if (from.has_test_map()) {
  5060. mutable_test_map()->::protobuf_unittest::TestMap::MergeFrom(from.test_map());
  5061. }
  5062. }
  5063. void TestMapSubmessage::CopyFrom(const ::google::protobuf::Message& from) {
  5064. // @@protoc_insertion_point(generalized_copy_from_start:protobuf_unittest.TestMapSubmessage)
  5065. if (&from == this) return;
  5066. Clear();
  5067. MergeFrom(from);
  5068. }
  5069. void TestMapSubmessage::CopyFrom(const TestMapSubmessage& from) {
  5070. // @@protoc_insertion_point(class_specific_copy_from_start:protobuf_unittest.TestMapSubmessage)
  5071. if (&from == this) return;
  5072. Clear();
  5073. MergeFrom(from);
  5074. }
  5075. bool TestMapSubmessage::IsInitialized() const {
  5076. return true;
  5077. }
  5078. void TestMapSubmessage::Swap(TestMapSubmessage* other) {
  5079. if (other == this) return;
  5080. if (GetArenaNoVirtual() == other->GetArenaNoVirtual()) {
  5081. InternalSwap(other);
  5082. } else {
  5083. TestMapSubmessage* temp = New(GetArenaNoVirtual());
  5084. temp->MergeFrom(*other);
  5085. other->CopyFrom(*this);
  5086. InternalSwap(temp);
  5087. if (GetArenaNoVirtual() == NULL) {
  5088. delete temp;
  5089. }
  5090. }
  5091. }
  5092. void TestMapSubmessage::UnsafeArenaSwap(TestMapSubmessage* other) {
  5093. if (other == this) return;
  5094. GOOGLE_DCHECK(GetArenaNoVirtual() == other->GetArenaNoVirtual());
  5095. InternalSwap(other);
  5096. }
  5097. void TestMapSubmessage::InternalSwap(TestMapSubmessage* other) {
  5098. using std::swap;
  5099. swap(test_map_, other->test_map_);
  5100. _internal_metadata_.Swap(&other->_internal_metadata_);
  5101. }
  5102. ::google::protobuf::Metadata TestMapSubmessage::GetMetadata() const {
  5103. protobuf_google_2fprotobuf_2fmap_5funittest_2eproto::protobuf_AssignDescriptorsOnce();
  5104. return ::protobuf_google_2fprotobuf_2fmap_5funittest_2eproto::file_level_metadata[kIndexInFileMessages];
  5105. }
  5106. // ===================================================================
  5107. TestMessageMap_MapInt32MessageEntry_DoNotUse::TestMessageMap_MapInt32MessageEntry_DoNotUse() {}
  5108. TestMessageMap_MapInt32MessageEntry_DoNotUse::TestMessageMap_MapInt32MessageEntry_DoNotUse(::google::protobuf::Arena* arena) : SuperType(arena) {}
  5109. void TestMessageMap_MapInt32MessageEntry_DoNotUse::MergeFrom(const TestMessageMap_MapInt32MessageEntry_DoNotUse& other) {
  5110. MergeFromInternal(other);
  5111. }
  5112. ::google::protobuf::Metadata TestMessageMap_MapInt32MessageEntry_DoNotUse::GetMetadata() const {
  5113. ::protobuf_google_2fprotobuf_2fmap_5funittest_2eproto::protobuf_AssignDescriptorsOnce();
  5114. return ::protobuf_google_2fprotobuf_2fmap_5funittest_2eproto::file_level_metadata[21];
  5115. }
  5116. void TestMessageMap_MapInt32MessageEntry_DoNotUse::MergeFrom(
  5117. const ::google::protobuf::Message& other) {
  5118. ::google::protobuf::Message::MergeFrom(other);
  5119. }
  5120. // ===================================================================
  5121. void TestMessageMap::InitAsDefaultInstance() {
  5122. }
  5123. void TestMessageMap::clear_map_int32_message() {
  5124. map_int32_message_.Clear();
  5125. }
  5126. #if !defined(_MSC_VER) || _MSC_VER >= 1900
  5127. const int TestMessageMap::kMapInt32MessageFieldNumber;
  5128. #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
  5129. TestMessageMap::TestMessageMap()
  5130. : ::google::protobuf::Message(), _internal_metadata_(NULL) {
  5131. ::google::protobuf::internal::InitSCC(
  5132. &protobuf_google_2fprotobuf_2fmap_5funittest_2eproto::scc_info_TestMessageMap.base);
  5133. SharedCtor();
  5134. // @@protoc_insertion_point(constructor:protobuf_unittest.TestMessageMap)
  5135. }
  5136. TestMessageMap::TestMessageMap(::google::protobuf::Arena* arena)
  5137. : ::google::protobuf::Message(),
  5138. _internal_metadata_(arena),
  5139. map_int32_message_(arena) {
  5140. ::google::protobuf::internal::InitSCC(&protobuf_google_2fprotobuf_2fmap_5funittest_2eproto::scc_info_TestMessageMap.base);
  5141. SharedCtor();
  5142. RegisterArenaDtor(arena);
  5143. // @@protoc_insertion_point(arena_constructor:protobuf_unittest.TestMessageMap)
  5144. }
  5145. TestMessageMap::TestMessageMap(const TestMessageMap& from)
  5146. : ::google::protobuf::Message(),
  5147. _internal_metadata_(NULL) {
  5148. _internal_metadata_.MergeFrom(from._internal_metadata_);
  5149. map_int32_message_.MergeFrom(from.map_int32_message_);
  5150. // @@protoc_insertion_point(copy_constructor:protobuf_unittest.TestMessageMap)
  5151. }
  5152. void TestMessageMap::SharedCtor() {
  5153. }
  5154. TestMessageMap::~TestMessageMap() {
  5155. // @@protoc_insertion_point(destructor:protobuf_unittest.TestMessageMap)
  5156. SharedDtor();
  5157. }
  5158. void TestMessageMap::SharedDtor() {
  5159. GOOGLE_DCHECK(GetArenaNoVirtual() == NULL);
  5160. }
  5161. void TestMessageMap::ArenaDtor(void* object) {
  5162. TestMessageMap* _this = reinterpret_cast< TestMessageMap* >(object);
  5163. (void)_this;
  5164. }
  5165. void TestMessageMap::RegisterArenaDtor(::google::protobuf::Arena* arena) {
  5166. }
  5167. void TestMessageMap::SetCachedSize(int size) const {
  5168. _cached_size_.Set(size);
  5169. }
  5170. const ::google::protobuf::Descriptor* TestMessageMap::descriptor() {
  5171. ::protobuf_google_2fprotobuf_2fmap_5funittest_2eproto::protobuf_AssignDescriptorsOnce();
  5172. return ::protobuf_google_2fprotobuf_2fmap_5funittest_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
  5173. }
  5174. const TestMessageMap& TestMessageMap::default_instance() {
  5175. ::google::protobuf::internal::InitSCC(&protobuf_google_2fprotobuf_2fmap_5funittest_2eproto::scc_info_TestMessageMap.base);
  5176. return *internal_default_instance();
  5177. }
  5178. void TestMessageMap::Clear() {
  5179. // @@protoc_insertion_point(message_clear_start:protobuf_unittest.TestMessageMap)
  5180. ::google::protobuf::uint32 cached_has_bits = 0;
  5181. // Prevent compiler warnings about cached_has_bits being unused
  5182. (void) cached_has_bits;
  5183. map_int32_message_.Clear();
  5184. _internal_metadata_.Clear();
  5185. }
  5186. bool TestMessageMap::MergePartialFromCodedStream(
  5187. ::google::protobuf::io::CodedInputStream* input) {
  5188. #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
  5189. ::google::protobuf::uint32 tag;
  5190. // @@protoc_insertion_point(parse_start:protobuf_unittest.TestMessageMap)
  5191. for (;;) {
  5192. ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
  5193. tag = p.first;
  5194. if (!p.second) goto handle_unusual;
  5195. switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
  5196. // map<int32, .protobuf_unittest.TestAllTypes> map_int32_message = 1;
  5197. case 1: {
  5198. if (static_cast< ::google::protobuf::uint8>(tag) ==
  5199. static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
  5200. TestMessageMap_MapInt32MessageEntry_DoNotUse::Parser< ::google::protobuf::internal::MapField<
  5201. TestMessageMap_MapInt32MessageEntry_DoNotUse,
  5202. ::google::protobuf::int32, ::protobuf_unittest::TestAllTypes,
  5203. ::google::protobuf::internal::WireFormatLite::TYPE_INT32,
  5204. ::google::protobuf::internal::WireFormatLite::TYPE_MESSAGE,
  5205. 0 >,
  5206. ::google::protobuf::Map< ::google::protobuf::int32, ::protobuf_unittest::TestAllTypes > > parser(&map_int32_message_);
  5207. DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
  5208. input, &parser));
  5209. } else {
  5210. goto handle_unusual;
  5211. }
  5212. break;
  5213. }
  5214. default: {
  5215. handle_unusual:
  5216. if (tag == 0) {
  5217. goto success;
  5218. }
  5219. DO_(::google::protobuf::internal::WireFormat::SkipField(
  5220. input, tag, _internal_metadata_.mutable_unknown_fields()));
  5221. break;
  5222. }
  5223. }
  5224. }
  5225. success:
  5226. // @@protoc_insertion_point(parse_success:protobuf_unittest.TestMessageMap)
  5227. return true;
  5228. failure:
  5229. // @@protoc_insertion_point(parse_failure:protobuf_unittest.TestMessageMap)
  5230. return false;
  5231. #undef DO_
  5232. }
  5233. void TestMessageMap::SerializeWithCachedSizes(
  5234. ::google::protobuf::io::CodedOutputStream* output) const {
  5235. // @@protoc_insertion_point(serialize_start:protobuf_unittest.TestMessageMap)
  5236. ::google::protobuf::uint32 cached_has_bits = 0;
  5237. (void) cached_has_bits;
  5238. // map<int32, .protobuf_unittest.TestAllTypes> map_int32_message = 1;
  5239. if (!this->map_int32_message().empty()) {
  5240. typedef ::google::protobuf::Map< ::google::protobuf::int32, ::protobuf_unittest::TestAllTypes >::const_pointer
  5241. ConstPtr;
  5242. typedef ::google::protobuf::internal::SortItem< ::google::protobuf::int32, ConstPtr > SortItem;
  5243. typedef ::google::protobuf::internal::CompareByFirstField<SortItem> Less;
  5244. if (output->IsSerializationDeterministic() &&
  5245. this->map_int32_message().size() > 1) {
  5246. ::std::unique_ptr<SortItem[]> items(
  5247. new SortItem[this->map_int32_message().size()]);
  5248. typedef ::google::protobuf::Map< ::google::protobuf::int32, ::protobuf_unittest::TestAllTypes >::size_type size_type;
  5249. size_type n = 0;
  5250. for (::google::protobuf::Map< ::google::protobuf::int32, ::protobuf_unittest::TestAllTypes >::const_iterator
  5251. it = this->map_int32_message().begin();
  5252. it != this->map_int32_message().end(); ++it, ++n) {
  5253. items[static_cast<ptrdiff_t>(n)] = SortItem(&*it);
  5254. }
  5255. ::std::sort(&items[0], &items[static_cast<ptrdiff_t>(n)], Less());
  5256. ::std::unique_ptr<TestMessageMap_MapInt32MessageEntry_DoNotUse> entry;
  5257. for (size_type i = 0; i < n; i++) {
  5258. entry.reset(map_int32_message_.NewEntryWrapper(
  5259. items[static_cast<ptrdiff_t>(i)].second->first, items[static_cast<ptrdiff_t>(i)].second->second));
  5260. ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
  5261. 1, *entry, output);
  5262. if (entry->GetArena() != NULL) {
  5263. entry.release();
  5264. }
  5265. }
  5266. } else {
  5267. ::std::unique_ptr<TestMessageMap_MapInt32MessageEntry_DoNotUse> entry;
  5268. for (::google::protobuf::Map< ::google::protobuf::int32, ::protobuf_unittest::TestAllTypes >::const_iterator
  5269. it = this->map_int32_message().begin();
  5270. it != this->map_int32_message().end(); ++it) {
  5271. entry.reset(map_int32_message_.NewEntryWrapper(
  5272. it->first, it->second));
  5273. ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
  5274. 1, *entry, output);
  5275. if (entry->GetArena() != NULL) {
  5276. entry.release();
  5277. }
  5278. }
  5279. }
  5280. }
  5281. if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
  5282. ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
  5283. (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output);
  5284. }
  5285. // @@protoc_insertion_point(serialize_end:protobuf_unittest.TestMessageMap)
  5286. }
  5287. ::google::protobuf::uint8* TestMessageMap::InternalSerializeWithCachedSizesToArray(
  5288. bool deterministic, ::google::protobuf::uint8* target) const {
  5289. (void)deterministic; // Unused
  5290. // @@protoc_insertion_point(serialize_to_array_start:protobuf_unittest.TestMessageMap)
  5291. ::google::protobuf::uint32 cached_has_bits = 0;
  5292. (void) cached_has_bits;
  5293. // map<int32, .protobuf_unittest.TestAllTypes> map_int32_message = 1;
  5294. if (!this->map_int32_message().empty()) {
  5295. typedef ::google::protobuf::Map< ::google::protobuf::int32, ::protobuf_unittest::TestAllTypes >::const_pointer
  5296. ConstPtr;
  5297. typedef ::google::protobuf::internal::SortItem< ::google::protobuf::int32, ConstPtr > SortItem;
  5298. typedef ::google::protobuf::internal::CompareByFirstField<SortItem> Less;
  5299. if (deterministic &&
  5300. this->map_int32_message().size() > 1) {
  5301. ::std::unique_ptr<SortItem[]> items(
  5302. new SortItem[this->map_int32_message().size()]);
  5303. typedef ::google::protobuf::Map< ::google::protobuf::int32, ::protobuf_unittest::TestAllTypes >::size_type size_type;
  5304. size_type n = 0;
  5305. for (::google::protobuf::Map< ::google::protobuf::int32, ::protobuf_unittest::TestAllTypes >::const_iterator
  5306. it = this->map_int32_message().begin();
  5307. it != this->map_int32_message().end(); ++it, ++n) {
  5308. items[static_cast<ptrdiff_t>(n)] = SortItem(&*it);
  5309. }
  5310. ::std::sort(&items[0], &items[static_cast<ptrdiff_t>(n)], Less());
  5311. ::std::unique_ptr<TestMessageMap_MapInt32MessageEntry_DoNotUse> entry;
  5312. for (size_type i = 0; i < n; i++) {
  5313. entry.reset(map_int32_message_.NewEntryWrapper(
  5314. items[static_cast<ptrdiff_t>(i)].second->first, items[static_cast<ptrdiff_t>(i)].second->second));
  5315. target = ::google::protobuf::internal::WireFormatLite::
  5316. InternalWriteMessageNoVirtualToArray(
  5317. 1, *entry, deterministic, target);
  5318. ;
  5319. if (entry->GetArena() != NULL) {
  5320. entry.release();
  5321. }
  5322. }
  5323. } else {
  5324. ::std::unique_ptr<TestMessageMap_MapInt32MessageEntry_DoNotUse> entry;
  5325. for (::google::protobuf::Map< ::google::protobuf::int32, ::protobuf_unittest::TestAllTypes >::const_iterator
  5326. it = this->map_int32_message().begin();
  5327. it != this->map_int32_message().end(); ++it) {
  5328. entry.reset(map_int32_message_.NewEntryWrapper(
  5329. it->first, it->second));
  5330. target = ::google::protobuf::internal::WireFormatLite::
  5331. InternalWriteMessageNoVirtualToArray(
  5332. 1, *entry, deterministic, target);
  5333. ;
  5334. if (entry->GetArena() != NULL) {
  5335. entry.release();
  5336. }
  5337. }
  5338. }
  5339. }
  5340. if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
  5341. target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
  5342. (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target);
  5343. }
  5344. // @@protoc_insertion_point(serialize_to_array_end:protobuf_unittest.TestMessageMap)
  5345. return target;
  5346. }
  5347. size_t TestMessageMap::ByteSizeLong() const {
  5348. // @@protoc_insertion_point(message_byte_size_start:protobuf_unittest.TestMessageMap)
  5349. size_t total_size = 0;
  5350. if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
  5351. total_size +=
  5352. ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
  5353. (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()));
  5354. }
  5355. // map<int32, .protobuf_unittest.TestAllTypes> map_int32_message = 1;
  5356. total_size += 1 *
  5357. ::google::protobuf::internal::FromIntSize(this->map_int32_message_size());
  5358. {
  5359. ::std::unique_ptr<TestMessageMap_MapInt32MessageEntry_DoNotUse> entry;
  5360. for (::google::protobuf::Map< ::google::protobuf::int32, ::protobuf_unittest::TestAllTypes >::const_iterator
  5361. it = this->map_int32_message().begin();
  5362. it != this->map_int32_message().end(); ++it) {
  5363. if (entry.get() != NULL && entry->GetArena() != NULL) {
  5364. entry.release();
  5365. }
  5366. entry.reset(map_int32_message_.NewEntryWrapper(it->first, it->second));
  5367. total_size += ::google::protobuf::internal::WireFormatLite::
  5368. MessageSizeNoVirtual(*entry);
  5369. }
  5370. if (entry.get() != NULL && entry->GetArena() != NULL) {
  5371. entry.release();
  5372. }
  5373. }
  5374. int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
  5375. SetCachedSize(cached_size);
  5376. return total_size;
  5377. }
  5378. void TestMessageMap::MergeFrom(const ::google::protobuf::Message& from) {
  5379. // @@protoc_insertion_point(generalized_merge_from_start:protobuf_unittest.TestMessageMap)
  5380. GOOGLE_DCHECK_NE(&from, this);
  5381. const TestMessageMap* source =
  5382. ::google::protobuf::internal::DynamicCastToGenerated<const TestMessageMap>(
  5383. &from);
  5384. if (source == NULL) {
  5385. // @@protoc_insertion_point(generalized_merge_from_cast_fail:protobuf_unittest.TestMessageMap)
  5386. ::google::protobuf::internal::ReflectionOps::Merge(from, this);
  5387. } else {
  5388. // @@protoc_insertion_point(generalized_merge_from_cast_success:protobuf_unittest.TestMessageMap)
  5389. MergeFrom(*source);
  5390. }
  5391. }
  5392. void TestMessageMap::MergeFrom(const TestMessageMap& from) {
  5393. // @@protoc_insertion_point(class_specific_merge_from_start:protobuf_unittest.TestMessageMap)
  5394. GOOGLE_DCHECK_NE(&from, this);
  5395. _internal_metadata_.MergeFrom(from._internal_metadata_);
  5396. ::google::protobuf::uint32 cached_has_bits = 0;
  5397. (void) cached_has_bits;
  5398. map_int32_message_.MergeFrom(from.map_int32_message_);
  5399. }
  5400. void TestMessageMap::CopyFrom(const ::google::protobuf::Message& from) {
  5401. // @@protoc_insertion_point(generalized_copy_from_start:protobuf_unittest.TestMessageMap)
  5402. if (&from == this) return;
  5403. Clear();
  5404. MergeFrom(from);
  5405. }
  5406. void TestMessageMap::CopyFrom(const TestMessageMap& from) {
  5407. // @@protoc_insertion_point(class_specific_copy_from_start:protobuf_unittest.TestMessageMap)
  5408. if (&from == this) return;
  5409. Clear();
  5410. MergeFrom(from);
  5411. }
  5412. bool TestMessageMap::IsInitialized() const {
  5413. return true;
  5414. }
  5415. void TestMessageMap::Swap(TestMessageMap* other) {
  5416. if (other == this) return;
  5417. if (GetArenaNoVirtual() == other->GetArenaNoVirtual()) {
  5418. InternalSwap(other);
  5419. } else {
  5420. TestMessageMap* temp = New(GetArenaNoVirtual());
  5421. temp->MergeFrom(*other);
  5422. other->CopyFrom(*this);
  5423. InternalSwap(temp);
  5424. if (GetArenaNoVirtual() == NULL) {
  5425. delete temp;
  5426. }
  5427. }
  5428. }
  5429. void TestMessageMap::UnsafeArenaSwap(TestMessageMap* other) {
  5430. if (other == this) return;
  5431. GOOGLE_DCHECK(GetArenaNoVirtual() == other->GetArenaNoVirtual());
  5432. InternalSwap(other);
  5433. }
  5434. void TestMessageMap::InternalSwap(TestMessageMap* other) {
  5435. using std::swap;
  5436. map_int32_message_.Swap(&other->map_int32_message_);
  5437. _internal_metadata_.Swap(&other->_internal_metadata_);
  5438. }
  5439. ::google::protobuf::Metadata TestMessageMap::GetMetadata() const {
  5440. protobuf_google_2fprotobuf_2fmap_5funittest_2eproto::protobuf_AssignDescriptorsOnce();
  5441. return ::protobuf_google_2fprotobuf_2fmap_5funittest_2eproto::file_level_metadata[kIndexInFileMessages];
  5442. }
  5443. // ===================================================================
  5444. TestSameTypeMap_Map1Entry_DoNotUse::TestSameTypeMap_Map1Entry_DoNotUse() {}
  5445. TestSameTypeMap_Map1Entry_DoNotUse::TestSameTypeMap_Map1Entry_DoNotUse(::google::protobuf::Arena* arena) : SuperType(arena) {}
  5446. void TestSameTypeMap_Map1Entry_DoNotUse::MergeFrom(const TestSameTypeMap_Map1Entry_DoNotUse& other) {
  5447. MergeFromInternal(other);
  5448. }
  5449. ::google::protobuf::Metadata TestSameTypeMap_Map1Entry_DoNotUse::GetMetadata() const {
  5450. ::protobuf_google_2fprotobuf_2fmap_5funittest_2eproto::protobuf_AssignDescriptorsOnce();
  5451. return ::protobuf_google_2fprotobuf_2fmap_5funittest_2eproto::file_level_metadata[23];
  5452. }
  5453. void TestSameTypeMap_Map1Entry_DoNotUse::MergeFrom(
  5454. const ::google::protobuf::Message& other) {
  5455. ::google::protobuf::Message::MergeFrom(other);
  5456. }
  5457. // ===================================================================
  5458. TestSameTypeMap_Map2Entry_DoNotUse::TestSameTypeMap_Map2Entry_DoNotUse() {}
  5459. TestSameTypeMap_Map2Entry_DoNotUse::TestSameTypeMap_Map2Entry_DoNotUse(::google::protobuf::Arena* arena) : SuperType(arena) {}
  5460. void TestSameTypeMap_Map2Entry_DoNotUse::MergeFrom(const TestSameTypeMap_Map2Entry_DoNotUse& other) {
  5461. MergeFromInternal(other);
  5462. }
  5463. ::google::protobuf::Metadata TestSameTypeMap_Map2Entry_DoNotUse::GetMetadata() const {
  5464. ::protobuf_google_2fprotobuf_2fmap_5funittest_2eproto::protobuf_AssignDescriptorsOnce();
  5465. return ::protobuf_google_2fprotobuf_2fmap_5funittest_2eproto::file_level_metadata[24];
  5466. }
  5467. void TestSameTypeMap_Map2Entry_DoNotUse::MergeFrom(
  5468. const ::google::protobuf::Message& other) {
  5469. ::google::protobuf::Message::MergeFrom(other);
  5470. }
  5471. // ===================================================================
  5472. void TestSameTypeMap::InitAsDefaultInstance() {
  5473. }
  5474. #if !defined(_MSC_VER) || _MSC_VER >= 1900
  5475. const int TestSameTypeMap::kMap1FieldNumber;
  5476. const int TestSameTypeMap::kMap2FieldNumber;
  5477. #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
  5478. TestSameTypeMap::TestSameTypeMap()
  5479. : ::google::protobuf::Message(), _internal_metadata_(NULL) {
  5480. ::google::protobuf::internal::InitSCC(
  5481. &protobuf_google_2fprotobuf_2fmap_5funittest_2eproto::scc_info_TestSameTypeMap.base);
  5482. SharedCtor();
  5483. // @@protoc_insertion_point(constructor:protobuf_unittest.TestSameTypeMap)
  5484. }
  5485. TestSameTypeMap::TestSameTypeMap(::google::protobuf::Arena* arena)
  5486. : ::google::protobuf::Message(),
  5487. _internal_metadata_(arena),
  5488. map1_(arena),
  5489. map2_(arena) {
  5490. ::google::protobuf::internal::InitSCC(&protobuf_google_2fprotobuf_2fmap_5funittest_2eproto::scc_info_TestSameTypeMap.base);
  5491. SharedCtor();
  5492. RegisterArenaDtor(arena);
  5493. // @@protoc_insertion_point(arena_constructor:protobuf_unittest.TestSameTypeMap)
  5494. }
  5495. TestSameTypeMap::TestSameTypeMap(const TestSameTypeMap& from)
  5496. : ::google::protobuf::Message(),
  5497. _internal_metadata_(NULL) {
  5498. _internal_metadata_.MergeFrom(from._internal_metadata_);
  5499. map1_.MergeFrom(from.map1_);
  5500. map2_.MergeFrom(from.map2_);
  5501. // @@protoc_insertion_point(copy_constructor:protobuf_unittest.TestSameTypeMap)
  5502. }
  5503. void TestSameTypeMap::SharedCtor() {
  5504. }
  5505. TestSameTypeMap::~TestSameTypeMap() {
  5506. // @@protoc_insertion_point(destructor:protobuf_unittest.TestSameTypeMap)
  5507. SharedDtor();
  5508. }
  5509. void TestSameTypeMap::SharedDtor() {
  5510. GOOGLE_DCHECK(GetArenaNoVirtual() == NULL);
  5511. }
  5512. void TestSameTypeMap::ArenaDtor(void* object) {
  5513. TestSameTypeMap* _this = reinterpret_cast< TestSameTypeMap* >(object);
  5514. (void)_this;
  5515. }
  5516. void TestSameTypeMap::RegisterArenaDtor(::google::protobuf::Arena* arena) {
  5517. }
  5518. void TestSameTypeMap::SetCachedSize(int size) const {
  5519. _cached_size_.Set(size);
  5520. }
  5521. const ::google::protobuf::Descriptor* TestSameTypeMap::descriptor() {
  5522. ::protobuf_google_2fprotobuf_2fmap_5funittest_2eproto::protobuf_AssignDescriptorsOnce();
  5523. return ::protobuf_google_2fprotobuf_2fmap_5funittest_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
  5524. }
  5525. const TestSameTypeMap& TestSameTypeMap::default_instance() {
  5526. ::google::protobuf::internal::InitSCC(&protobuf_google_2fprotobuf_2fmap_5funittest_2eproto::scc_info_TestSameTypeMap.base);
  5527. return *internal_default_instance();
  5528. }
  5529. void TestSameTypeMap::Clear() {
  5530. // @@protoc_insertion_point(message_clear_start:protobuf_unittest.TestSameTypeMap)
  5531. ::google::protobuf::uint32 cached_has_bits = 0;
  5532. // Prevent compiler warnings about cached_has_bits being unused
  5533. (void) cached_has_bits;
  5534. map1_.Clear();
  5535. map2_.Clear();
  5536. _internal_metadata_.Clear();
  5537. }
  5538. bool TestSameTypeMap::MergePartialFromCodedStream(
  5539. ::google::protobuf::io::CodedInputStream* input) {
  5540. #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
  5541. ::google::protobuf::uint32 tag;
  5542. // @@protoc_insertion_point(parse_start:protobuf_unittest.TestSameTypeMap)
  5543. for (;;) {
  5544. ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
  5545. tag = p.first;
  5546. if (!p.second) goto handle_unusual;
  5547. switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
  5548. // map<int32, int32> map1 = 1;
  5549. case 1: {
  5550. if (static_cast< ::google::protobuf::uint8>(tag) ==
  5551. static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
  5552. TestSameTypeMap_Map1Entry_DoNotUse::Parser< ::google::protobuf::internal::MapField<
  5553. TestSameTypeMap_Map1Entry_DoNotUse,
  5554. ::google::protobuf::int32, ::google::protobuf::int32,
  5555. ::google::protobuf::internal::WireFormatLite::TYPE_INT32,
  5556. ::google::protobuf::internal::WireFormatLite::TYPE_INT32,
  5557. 0 >,
  5558. ::google::protobuf::Map< ::google::protobuf::int32, ::google::protobuf::int32 > > parser(&map1_);
  5559. DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
  5560. input, &parser));
  5561. } else {
  5562. goto handle_unusual;
  5563. }
  5564. break;
  5565. }
  5566. // map<int32, int32> map2 = 2;
  5567. case 2: {
  5568. if (static_cast< ::google::protobuf::uint8>(tag) ==
  5569. static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) {
  5570. TestSameTypeMap_Map2Entry_DoNotUse::Parser< ::google::protobuf::internal::MapField<
  5571. TestSameTypeMap_Map2Entry_DoNotUse,
  5572. ::google::protobuf::int32, ::google::protobuf::int32,
  5573. ::google::protobuf::internal::WireFormatLite::TYPE_INT32,
  5574. ::google::protobuf::internal::WireFormatLite::TYPE_INT32,
  5575. 0 >,
  5576. ::google::protobuf::Map< ::google::protobuf::int32, ::google::protobuf::int32 > > parser(&map2_);
  5577. DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
  5578. input, &parser));
  5579. } else {
  5580. goto handle_unusual;
  5581. }
  5582. break;
  5583. }
  5584. default: {
  5585. handle_unusual:
  5586. if (tag == 0) {
  5587. goto success;
  5588. }
  5589. DO_(::google::protobuf::internal::WireFormat::SkipField(
  5590. input, tag, _internal_metadata_.mutable_unknown_fields()));
  5591. break;
  5592. }
  5593. }
  5594. }
  5595. success:
  5596. // @@protoc_insertion_point(parse_success:protobuf_unittest.TestSameTypeMap)
  5597. return true;
  5598. failure:
  5599. // @@protoc_insertion_point(parse_failure:protobuf_unittest.TestSameTypeMap)
  5600. return false;
  5601. #undef DO_
  5602. }
  5603. void TestSameTypeMap::SerializeWithCachedSizes(
  5604. ::google::protobuf::io::CodedOutputStream* output) const {
  5605. // @@protoc_insertion_point(serialize_start:protobuf_unittest.TestSameTypeMap)
  5606. ::google::protobuf::uint32 cached_has_bits = 0;
  5607. (void) cached_has_bits;
  5608. // map<int32, int32> map1 = 1;
  5609. if (!this->map1().empty()) {
  5610. typedef ::google::protobuf::Map< ::google::protobuf::int32, ::google::protobuf::int32 >::const_pointer
  5611. ConstPtr;
  5612. typedef ::google::protobuf::internal::SortItem< ::google::protobuf::int32, ConstPtr > SortItem;
  5613. typedef ::google::protobuf::internal::CompareByFirstField<SortItem> Less;
  5614. if (output->IsSerializationDeterministic() &&
  5615. this->map1().size() > 1) {
  5616. ::std::unique_ptr<SortItem[]> items(
  5617. new SortItem[this->map1().size()]);
  5618. typedef ::google::protobuf::Map< ::google::protobuf::int32, ::google::protobuf::int32 >::size_type size_type;
  5619. size_type n = 0;
  5620. for (::google::protobuf::Map< ::google::protobuf::int32, ::google::protobuf::int32 >::const_iterator
  5621. it = this->map1().begin();
  5622. it != this->map1().end(); ++it, ++n) {
  5623. items[static_cast<ptrdiff_t>(n)] = SortItem(&*it);
  5624. }
  5625. ::std::sort(&items[0], &items[static_cast<ptrdiff_t>(n)], Less());
  5626. ::std::unique_ptr<TestSameTypeMap_Map1Entry_DoNotUse> entry;
  5627. for (size_type i = 0; i < n; i++) {
  5628. entry.reset(map1_.NewEntryWrapper(
  5629. items[static_cast<ptrdiff_t>(i)].second->first, items[static_cast<ptrdiff_t>(i)].second->second));
  5630. ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
  5631. 1, *entry, output);
  5632. if (entry->GetArena() != NULL) {
  5633. entry.release();
  5634. }
  5635. }
  5636. } else {
  5637. ::std::unique_ptr<TestSameTypeMap_Map1Entry_DoNotUse> entry;
  5638. for (::google::protobuf::Map< ::google::protobuf::int32, ::google::protobuf::int32 >::const_iterator
  5639. it = this->map1().begin();
  5640. it != this->map1().end(); ++it) {
  5641. entry.reset(map1_.NewEntryWrapper(
  5642. it->first, it->second));
  5643. ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
  5644. 1, *entry, output);
  5645. if (entry->GetArena() != NULL) {
  5646. entry.release();
  5647. }
  5648. }
  5649. }
  5650. }
  5651. // map<int32, int32> map2 = 2;
  5652. if (!this->map2().empty()) {
  5653. typedef ::google::protobuf::Map< ::google::protobuf::int32, ::google::protobuf::int32 >::const_pointer
  5654. ConstPtr;
  5655. typedef ::google::protobuf::internal::SortItem< ::google::protobuf::int32, ConstPtr > SortItem;
  5656. typedef ::google::protobuf::internal::CompareByFirstField<SortItem> Less;
  5657. if (output->IsSerializationDeterministic() &&
  5658. this->map2().size() > 1) {
  5659. ::std::unique_ptr<SortItem[]> items(
  5660. new SortItem[this->map2().size()]);
  5661. typedef ::google::protobuf::Map< ::google::protobuf::int32, ::google::protobuf::int32 >::size_type size_type;
  5662. size_type n = 0;
  5663. for (::google::protobuf::Map< ::google::protobuf::int32, ::google::protobuf::int32 >::const_iterator
  5664. it = this->map2().begin();
  5665. it != this->map2().end(); ++it, ++n) {
  5666. items[static_cast<ptrdiff_t>(n)] = SortItem(&*it);
  5667. }
  5668. ::std::sort(&items[0], &items[static_cast<ptrdiff_t>(n)], Less());
  5669. ::std::unique_ptr<TestSameTypeMap_Map2Entry_DoNotUse> entry;
  5670. for (size_type i = 0; i < n; i++) {
  5671. entry.reset(map2_.NewEntryWrapper(
  5672. items[static_cast<ptrdiff_t>(i)].second->first, items[static_cast<ptrdiff_t>(i)].second->second));
  5673. ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
  5674. 2, *entry, output);
  5675. if (entry->GetArena() != NULL) {
  5676. entry.release();
  5677. }
  5678. }
  5679. } else {
  5680. ::std::unique_ptr<TestSameTypeMap_Map2Entry_DoNotUse> entry;
  5681. for (::google::protobuf::Map< ::google::protobuf::int32, ::google::protobuf::int32 >::const_iterator
  5682. it = this->map2().begin();
  5683. it != this->map2().end(); ++it) {
  5684. entry.reset(map2_.NewEntryWrapper(
  5685. it->first, it->second));
  5686. ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
  5687. 2, *entry, output);
  5688. if (entry->GetArena() != NULL) {
  5689. entry.release();
  5690. }
  5691. }
  5692. }
  5693. }
  5694. if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
  5695. ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
  5696. (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output);
  5697. }
  5698. // @@protoc_insertion_point(serialize_end:protobuf_unittest.TestSameTypeMap)
  5699. }
  5700. ::google::protobuf::uint8* TestSameTypeMap::InternalSerializeWithCachedSizesToArray(
  5701. bool deterministic, ::google::protobuf::uint8* target) const {
  5702. (void)deterministic; // Unused
  5703. // @@protoc_insertion_point(serialize_to_array_start:protobuf_unittest.TestSameTypeMap)
  5704. ::google::protobuf::uint32 cached_has_bits = 0;
  5705. (void) cached_has_bits;
  5706. // map<int32, int32> map1 = 1;
  5707. if (!this->map1().empty()) {
  5708. typedef ::google::protobuf::Map< ::google::protobuf::int32, ::google::protobuf::int32 >::const_pointer
  5709. ConstPtr;
  5710. typedef ::google::protobuf::internal::SortItem< ::google::protobuf::int32, ConstPtr > SortItem;
  5711. typedef ::google::protobuf::internal::CompareByFirstField<SortItem> Less;
  5712. if (deterministic &&
  5713. this->map1().size() > 1) {
  5714. ::std::unique_ptr<SortItem[]> items(
  5715. new SortItem[this->map1().size()]);
  5716. typedef ::google::protobuf::Map< ::google::protobuf::int32, ::google::protobuf::int32 >::size_type size_type;
  5717. size_type n = 0;
  5718. for (::google::protobuf::Map< ::google::protobuf::int32, ::google::protobuf::int32 >::const_iterator
  5719. it = this->map1().begin();
  5720. it != this->map1().end(); ++it, ++n) {
  5721. items[static_cast<ptrdiff_t>(n)] = SortItem(&*it);
  5722. }
  5723. ::std::sort(&items[0], &items[static_cast<ptrdiff_t>(n)], Less());
  5724. ::std::unique_ptr<TestSameTypeMap_Map1Entry_DoNotUse> entry;
  5725. for (size_type i = 0; i < n; i++) {
  5726. entry.reset(map1_.NewEntryWrapper(
  5727. items[static_cast<ptrdiff_t>(i)].second->first, items[static_cast<ptrdiff_t>(i)].second->second));
  5728. target = ::google::protobuf::internal::WireFormatLite::
  5729. InternalWriteMessageNoVirtualToArray(
  5730. 1, *entry, deterministic, target);
  5731. ;
  5732. if (entry->GetArena() != NULL) {
  5733. entry.release();
  5734. }
  5735. }
  5736. } else {
  5737. ::std::unique_ptr<TestSameTypeMap_Map1Entry_DoNotUse> entry;
  5738. for (::google::protobuf::Map< ::google::protobuf::int32, ::google::protobuf::int32 >::const_iterator
  5739. it = this->map1().begin();
  5740. it != this->map1().end(); ++it) {
  5741. entry.reset(map1_.NewEntryWrapper(
  5742. it->first, it->second));
  5743. target = ::google::protobuf::internal::WireFormatLite::
  5744. InternalWriteMessageNoVirtualToArray(
  5745. 1, *entry, deterministic, target);
  5746. ;
  5747. if (entry->GetArena() != NULL) {
  5748. entry.release();
  5749. }
  5750. }
  5751. }
  5752. }
  5753. // map<int32, int32> map2 = 2;
  5754. if (!this->map2().empty()) {
  5755. typedef ::google::protobuf::Map< ::google::protobuf::int32, ::google::protobuf::int32 >::const_pointer
  5756. ConstPtr;
  5757. typedef ::google::protobuf::internal::SortItem< ::google::protobuf::int32, ConstPtr > SortItem;
  5758. typedef ::google::protobuf::internal::CompareByFirstField<SortItem> Less;
  5759. if (deterministic &&
  5760. this->map2().size() > 1) {
  5761. ::std::unique_ptr<SortItem[]> items(
  5762. new SortItem[this->map2().size()]);
  5763. typedef ::google::protobuf::Map< ::google::protobuf::int32, ::google::protobuf::int32 >::size_type size_type;
  5764. size_type n = 0;
  5765. for (::google::protobuf::Map< ::google::protobuf::int32, ::google::protobuf::int32 >::const_iterator
  5766. it = this->map2().begin();
  5767. it != this->map2().end(); ++it, ++n) {
  5768. items[static_cast<ptrdiff_t>(n)] = SortItem(&*it);
  5769. }
  5770. ::std::sort(&items[0], &items[static_cast<ptrdiff_t>(n)], Less());
  5771. ::std::unique_ptr<TestSameTypeMap_Map2Entry_DoNotUse> entry;
  5772. for (size_type i = 0; i < n; i++) {
  5773. entry.reset(map2_.NewEntryWrapper(
  5774. items[static_cast<ptrdiff_t>(i)].second->first, items[static_cast<ptrdiff_t>(i)].second->second));
  5775. target = ::google::protobuf::internal::WireFormatLite::
  5776. InternalWriteMessageNoVirtualToArray(
  5777. 2, *entry, deterministic, target);
  5778. ;
  5779. if (entry->GetArena() != NULL) {
  5780. entry.release();
  5781. }
  5782. }
  5783. } else {
  5784. ::std::unique_ptr<TestSameTypeMap_Map2Entry_DoNotUse> entry;
  5785. for (::google::protobuf::Map< ::google::protobuf::int32, ::google::protobuf::int32 >::const_iterator
  5786. it = this->map2().begin();
  5787. it != this->map2().end(); ++it) {
  5788. entry.reset(map2_.NewEntryWrapper(
  5789. it->first, it->second));
  5790. target = ::google::protobuf::internal::WireFormatLite::
  5791. InternalWriteMessageNoVirtualToArray(
  5792. 2, *entry, deterministic, target);
  5793. ;
  5794. if (entry->GetArena() != NULL) {
  5795. entry.release();
  5796. }
  5797. }
  5798. }
  5799. }
  5800. if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
  5801. target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
  5802. (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target);
  5803. }
  5804. // @@protoc_insertion_point(serialize_to_array_end:protobuf_unittest.TestSameTypeMap)
  5805. return target;
  5806. }
  5807. size_t TestSameTypeMap::ByteSizeLong() const {
  5808. // @@protoc_insertion_point(message_byte_size_start:protobuf_unittest.TestSameTypeMap)
  5809. size_t total_size = 0;
  5810. if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
  5811. total_size +=
  5812. ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
  5813. (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()));
  5814. }
  5815. // map<int32, int32> map1 = 1;
  5816. total_size += 1 *
  5817. ::google::protobuf::internal::FromIntSize(this->map1_size());
  5818. {
  5819. ::std::unique_ptr<TestSameTypeMap_Map1Entry_DoNotUse> entry;
  5820. for (::google::protobuf::Map< ::google::protobuf::int32, ::google::protobuf::int32 >::const_iterator
  5821. it = this->map1().begin();
  5822. it != this->map1().end(); ++it) {
  5823. if (entry.get() != NULL && entry->GetArena() != NULL) {
  5824. entry.release();
  5825. }
  5826. entry.reset(map1_.NewEntryWrapper(it->first, it->second));
  5827. total_size += ::google::protobuf::internal::WireFormatLite::
  5828. MessageSizeNoVirtual(*entry);
  5829. }
  5830. if (entry.get() != NULL && entry->GetArena() != NULL) {
  5831. entry.release();
  5832. }
  5833. }
  5834. // map<int32, int32> map2 = 2;
  5835. total_size += 1 *
  5836. ::google::protobuf::internal::FromIntSize(this->map2_size());
  5837. {
  5838. ::std::unique_ptr<TestSameTypeMap_Map2Entry_DoNotUse> entry;
  5839. for (::google::protobuf::Map< ::google::protobuf::int32, ::google::protobuf::int32 >::const_iterator
  5840. it = this->map2().begin();
  5841. it != this->map2().end(); ++it) {
  5842. if (entry.get() != NULL && entry->GetArena() != NULL) {
  5843. entry.release();
  5844. }
  5845. entry.reset(map2_.NewEntryWrapper(it->first, it->second));
  5846. total_size += ::google::protobuf::internal::WireFormatLite::
  5847. MessageSizeNoVirtual(*entry);
  5848. }
  5849. if (entry.get() != NULL && entry->GetArena() != NULL) {
  5850. entry.release();
  5851. }
  5852. }
  5853. int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
  5854. SetCachedSize(cached_size);
  5855. return total_size;
  5856. }
  5857. void TestSameTypeMap::MergeFrom(const ::google::protobuf::Message& from) {
  5858. // @@protoc_insertion_point(generalized_merge_from_start:protobuf_unittest.TestSameTypeMap)
  5859. GOOGLE_DCHECK_NE(&from, this);
  5860. const TestSameTypeMap* source =
  5861. ::google::protobuf::internal::DynamicCastToGenerated<const TestSameTypeMap>(
  5862. &from);
  5863. if (source == NULL) {
  5864. // @@protoc_insertion_point(generalized_merge_from_cast_fail:protobuf_unittest.TestSameTypeMap)
  5865. ::google::protobuf::internal::ReflectionOps::Merge(from, this);
  5866. } else {
  5867. // @@protoc_insertion_point(generalized_merge_from_cast_success:protobuf_unittest.TestSameTypeMap)
  5868. MergeFrom(*source);
  5869. }
  5870. }
  5871. void TestSameTypeMap::MergeFrom(const TestSameTypeMap& from) {
  5872. // @@protoc_insertion_point(class_specific_merge_from_start:protobuf_unittest.TestSameTypeMap)
  5873. GOOGLE_DCHECK_NE(&from, this);
  5874. _internal_metadata_.MergeFrom(from._internal_metadata_);
  5875. ::google::protobuf::uint32 cached_has_bits = 0;
  5876. (void) cached_has_bits;
  5877. map1_.MergeFrom(from.map1_);
  5878. map2_.MergeFrom(from.map2_);
  5879. }
  5880. void TestSameTypeMap::CopyFrom(const ::google::protobuf::Message& from) {
  5881. // @@protoc_insertion_point(generalized_copy_from_start:protobuf_unittest.TestSameTypeMap)
  5882. if (&from == this) return;
  5883. Clear();
  5884. MergeFrom(from);
  5885. }
  5886. void TestSameTypeMap::CopyFrom(const TestSameTypeMap& from) {
  5887. // @@protoc_insertion_point(class_specific_copy_from_start:protobuf_unittest.TestSameTypeMap)
  5888. if (&from == this) return;
  5889. Clear();
  5890. MergeFrom(from);
  5891. }
  5892. bool TestSameTypeMap::IsInitialized() const {
  5893. return true;
  5894. }
  5895. void TestSameTypeMap::Swap(TestSameTypeMap* other) {
  5896. if (other == this) return;
  5897. if (GetArenaNoVirtual() == other->GetArenaNoVirtual()) {
  5898. InternalSwap(other);
  5899. } else {
  5900. TestSameTypeMap* temp = New(GetArenaNoVirtual());
  5901. temp->MergeFrom(*other);
  5902. other->CopyFrom(*this);
  5903. InternalSwap(temp);
  5904. if (GetArenaNoVirtual() == NULL) {
  5905. delete temp;
  5906. }
  5907. }
  5908. }
  5909. void TestSameTypeMap::UnsafeArenaSwap(TestSameTypeMap* other) {
  5910. if (other == this) return;
  5911. GOOGLE_DCHECK(GetArenaNoVirtual() == other->GetArenaNoVirtual());
  5912. InternalSwap(other);
  5913. }
  5914. void TestSameTypeMap::InternalSwap(TestSameTypeMap* other) {
  5915. using std::swap;
  5916. map1_.Swap(&other->map1_);
  5917. map2_.Swap(&other->map2_);
  5918. _internal_metadata_.Swap(&other->_internal_metadata_);
  5919. }
  5920. ::google::protobuf::Metadata TestSameTypeMap::GetMetadata() const {
  5921. protobuf_google_2fprotobuf_2fmap_5funittest_2eproto::protobuf_AssignDescriptorsOnce();
  5922. return ::protobuf_google_2fprotobuf_2fmap_5funittest_2eproto::file_level_metadata[kIndexInFileMessages];
  5923. }
  5924. // ===================================================================
  5925. TestRequiredMessageMap_MapFieldEntry_DoNotUse::TestRequiredMessageMap_MapFieldEntry_DoNotUse() {}
  5926. TestRequiredMessageMap_MapFieldEntry_DoNotUse::TestRequiredMessageMap_MapFieldEntry_DoNotUse(::google::protobuf::Arena* arena) : SuperType(arena) {}
  5927. void TestRequiredMessageMap_MapFieldEntry_DoNotUse::MergeFrom(const TestRequiredMessageMap_MapFieldEntry_DoNotUse& other) {
  5928. MergeFromInternal(other);
  5929. }
  5930. ::google::protobuf::Metadata TestRequiredMessageMap_MapFieldEntry_DoNotUse::GetMetadata() const {
  5931. ::protobuf_google_2fprotobuf_2fmap_5funittest_2eproto::protobuf_AssignDescriptorsOnce();
  5932. return ::protobuf_google_2fprotobuf_2fmap_5funittest_2eproto::file_level_metadata[26];
  5933. }
  5934. void TestRequiredMessageMap_MapFieldEntry_DoNotUse::MergeFrom(
  5935. const ::google::protobuf::Message& other) {
  5936. ::google::protobuf::Message::MergeFrom(other);
  5937. }
  5938. // ===================================================================
  5939. void TestRequiredMessageMap::InitAsDefaultInstance() {
  5940. }
  5941. void TestRequiredMessageMap::clear_map_field() {
  5942. map_field_.Clear();
  5943. }
  5944. #if !defined(_MSC_VER) || _MSC_VER >= 1900
  5945. const int TestRequiredMessageMap::kMapFieldFieldNumber;
  5946. #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
  5947. TestRequiredMessageMap::TestRequiredMessageMap()
  5948. : ::google::protobuf::Message(), _internal_metadata_(NULL) {
  5949. ::google::protobuf::internal::InitSCC(
  5950. &protobuf_google_2fprotobuf_2fmap_5funittest_2eproto::scc_info_TestRequiredMessageMap.base);
  5951. SharedCtor();
  5952. // @@protoc_insertion_point(constructor:protobuf_unittest.TestRequiredMessageMap)
  5953. }
  5954. TestRequiredMessageMap::TestRequiredMessageMap(::google::protobuf::Arena* arena)
  5955. : ::google::protobuf::Message(),
  5956. _internal_metadata_(arena),
  5957. map_field_(arena) {
  5958. ::google::protobuf::internal::InitSCC(&protobuf_google_2fprotobuf_2fmap_5funittest_2eproto::scc_info_TestRequiredMessageMap.base);
  5959. SharedCtor();
  5960. RegisterArenaDtor(arena);
  5961. // @@protoc_insertion_point(arena_constructor:protobuf_unittest.TestRequiredMessageMap)
  5962. }
  5963. TestRequiredMessageMap::TestRequiredMessageMap(const TestRequiredMessageMap& from)
  5964. : ::google::protobuf::Message(),
  5965. _internal_metadata_(NULL) {
  5966. _internal_metadata_.MergeFrom(from._internal_metadata_);
  5967. map_field_.MergeFrom(from.map_field_);
  5968. // @@protoc_insertion_point(copy_constructor:protobuf_unittest.TestRequiredMessageMap)
  5969. }
  5970. void TestRequiredMessageMap::SharedCtor() {
  5971. }
  5972. TestRequiredMessageMap::~TestRequiredMessageMap() {
  5973. // @@protoc_insertion_point(destructor:protobuf_unittest.TestRequiredMessageMap)
  5974. SharedDtor();
  5975. }
  5976. void TestRequiredMessageMap::SharedDtor() {
  5977. GOOGLE_DCHECK(GetArenaNoVirtual() == NULL);
  5978. }
  5979. void TestRequiredMessageMap::ArenaDtor(void* object) {
  5980. TestRequiredMessageMap* _this = reinterpret_cast< TestRequiredMessageMap* >(object);
  5981. (void)_this;
  5982. }
  5983. void TestRequiredMessageMap::RegisterArenaDtor(::google::protobuf::Arena* arena) {
  5984. }
  5985. void TestRequiredMessageMap::SetCachedSize(int size) const {
  5986. _cached_size_.Set(size);
  5987. }
  5988. const ::google::protobuf::Descriptor* TestRequiredMessageMap::descriptor() {
  5989. ::protobuf_google_2fprotobuf_2fmap_5funittest_2eproto::protobuf_AssignDescriptorsOnce();
  5990. return ::protobuf_google_2fprotobuf_2fmap_5funittest_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
  5991. }
  5992. const TestRequiredMessageMap& TestRequiredMessageMap::default_instance() {
  5993. ::google::protobuf::internal::InitSCC(&protobuf_google_2fprotobuf_2fmap_5funittest_2eproto::scc_info_TestRequiredMessageMap.base);
  5994. return *internal_default_instance();
  5995. }
  5996. void TestRequiredMessageMap::Clear() {
  5997. // @@protoc_insertion_point(message_clear_start:protobuf_unittest.TestRequiredMessageMap)
  5998. ::google::protobuf::uint32 cached_has_bits = 0;
  5999. // Prevent compiler warnings about cached_has_bits being unused
  6000. (void) cached_has_bits;
  6001. map_field_.Clear();
  6002. _internal_metadata_.Clear();
  6003. }
  6004. bool TestRequiredMessageMap::MergePartialFromCodedStream(
  6005. ::google::protobuf::io::CodedInputStream* input) {
  6006. #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
  6007. ::google::protobuf::uint32 tag;
  6008. // @@protoc_insertion_point(parse_start:protobuf_unittest.TestRequiredMessageMap)
  6009. for (;;) {
  6010. ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
  6011. tag = p.first;
  6012. if (!p.second) goto handle_unusual;
  6013. switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
  6014. // map<int32, .protobuf_unittest.TestRequired> map_field = 1;
  6015. case 1: {
  6016. if (static_cast< ::google::protobuf::uint8>(tag) ==
  6017. static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
  6018. TestRequiredMessageMap_MapFieldEntry_DoNotUse::Parser< ::google::protobuf::internal::MapField<
  6019. TestRequiredMessageMap_MapFieldEntry_DoNotUse,
  6020. ::google::protobuf::int32, ::protobuf_unittest::TestRequired,
  6021. ::google::protobuf::internal::WireFormatLite::TYPE_INT32,
  6022. ::google::protobuf::internal::WireFormatLite::TYPE_MESSAGE,
  6023. 0 >,
  6024. ::google::protobuf::Map< ::google::protobuf::int32, ::protobuf_unittest::TestRequired > > parser(&map_field_);
  6025. DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
  6026. input, &parser));
  6027. } else {
  6028. goto handle_unusual;
  6029. }
  6030. break;
  6031. }
  6032. default: {
  6033. handle_unusual:
  6034. if (tag == 0) {
  6035. goto success;
  6036. }
  6037. DO_(::google::protobuf::internal::WireFormat::SkipField(
  6038. input, tag, _internal_metadata_.mutable_unknown_fields()));
  6039. break;
  6040. }
  6041. }
  6042. }
  6043. success:
  6044. // @@protoc_insertion_point(parse_success:protobuf_unittest.TestRequiredMessageMap)
  6045. return true;
  6046. failure:
  6047. // @@protoc_insertion_point(parse_failure:protobuf_unittest.TestRequiredMessageMap)
  6048. return false;
  6049. #undef DO_
  6050. }
  6051. void TestRequiredMessageMap::SerializeWithCachedSizes(
  6052. ::google::protobuf::io::CodedOutputStream* output) const {
  6053. // @@protoc_insertion_point(serialize_start:protobuf_unittest.TestRequiredMessageMap)
  6054. ::google::protobuf::uint32 cached_has_bits = 0;
  6055. (void) cached_has_bits;
  6056. // map<int32, .protobuf_unittest.TestRequired> map_field = 1;
  6057. if (!this->map_field().empty()) {
  6058. typedef ::google::protobuf::Map< ::google::protobuf::int32, ::protobuf_unittest::TestRequired >::const_pointer
  6059. ConstPtr;
  6060. typedef ::google::protobuf::internal::SortItem< ::google::protobuf::int32, ConstPtr > SortItem;
  6061. typedef ::google::protobuf::internal::CompareByFirstField<SortItem> Less;
  6062. if (output->IsSerializationDeterministic() &&
  6063. this->map_field().size() > 1) {
  6064. ::std::unique_ptr<SortItem[]> items(
  6065. new SortItem[this->map_field().size()]);
  6066. typedef ::google::protobuf::Map< ::google::protobuf::int32, ::protobuf_unittest::TestRequired >::size_type size_type;
  6067. size_type n = 0;
  6068. for (::google::protobuf::Map< ::google::protobuf::int32, ::protobuf_unittest::TestRequired >::const_iterator
  6069. it = this->map_field().begin();
  6070. it != this->map_field().end(); ++it, ++n) {
  6071. items[static_cast<ptrdiff_t>(n)] = SortItem(&*it);
  6072. }
  6073. ::std::sort(&items[0], &items[static_cast<ptrdiff_t>(n)], Less());
  6074. ::std::unique_ptr<TestRequiredMessageMap_MapFieldEntry_DoNotUse> entry;
  6075. for (size_type i = 0; i < n; i++) {
  6076. entry.reset(map_field_.NewEntryWrapper(
  6077. items[static_cast<ptrdiff_t>(i)].second->first, items[static_cast<ptrdiff_t>(i)].second->second));
  6078. ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
  6079. 1, *entry, output);
  6080. if (entry->GetArena() != NULL) {
  6081. entry.release();
  6082. }
  6083. }
  6084. } else {
  6085. ::std::unique_ptr<TestRequiredMessageMap_MapFieldEntry_DoNotUse> entry;
  6086. for (::google::protobuf::Map< ::google::protobuf::int32, ::protobuf_unittest::TestRequired >::const_iterator
  6087. it = this->map_field().begin();
  6088. it != this->map_field().end(); ++it) {
  6089. entry.reset(map_field_.NewEntryWrapper(
  6090. it->first, it->second));
  6091. ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
  6092. 1, *entry, output);
  6093. if (entry->GetArena() != NULL) {
  6094. entry.release();
  6095. }
  6096. }
  6097. }
  6098. }
  6099. if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
  6100. ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
  6101. (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output);
  6102. }
  6103. // @@protoc_insertion_point(serialize_end:protobuf_unittest.TestRequiredMessageMap)
  6104. }
  6105. ::google::protobuf::uint8* TestRequiredMessageMap::InternalSerializeWithCachedSizesToArray(
  6106. bool deterministic, ::google::protobuf::uint8* target) const {
  6107. (void)deterministic; // Unused
  6108. // @@protoc_insertion_point(serialize_to_array_start:protobuf_unittest.TestRequiredMessageMap)
  6109. ::google::protobuf::uint32 cached_has_bits = 0;
  6110. (void) cached_has_bits;
  6111. // map<int32, .protobuf_unittest.TestRequired> map_field = 1;
  6112. if (!this->map_field().empty()) {
  6113. typedef ::google::protobuf::Map< ::google::protobuf::int32, ::protobuf_unittest::TestRequired >::const_pointer
  6114. ConstPtr;
  6115. typedef ::google::protobuf::internal::SortItem< ::google::protobuf::int32, ConstPtr > SortItem;
  6116. typedef ::google::protobuf::internal::CompareByFirstField<SortItem> Less;
  6117. if (deterministic &&
  6118. this->map_field().size() > 1) {
  6119. ::std::unique_ptr<SortItem[]> items(
  6120. new SortItem[this->map_field().size()]);
  6121. typedef ::google::protobuf::Map< ::google::protobuf::int32, ::protobuf_unittest::TestRequired >::size_type size_type;
  6122. size_type n = 0;
  6123. for (::google::protobuf::Map< ::google::protobuf::int32, ::protobuf_unittest::TestRequired >::const_iterator
  6124. it = this->map_field().begin();
  6125. it != this->map_field().end(); ++it, ++n) {
  6126. items[static_cast<ptrdiff_t>(n)] = SortItem(&*it);
  6127. }
  6128. ::std::sort(&items[0], &items[static_cast<ptrdiff_t>(n)], Less());
  6129. ::std::unique_ptr<TestRequiredMessageMap_MapFieldEntry_DoNotUse> entry;
  6130. for (size_type i = 0; i < n; i++) {
  6131. entry.reset(map_field_.NewEntryWrapper(
  6132. items[static_cast<ptrdiff_t>(i)].second->first, items[static_cast<ptrdiff_t>(i)].second->second));
  6133. target = ::google::protobuf::internal::WireFormatLite::
  6134. InternalWriteMessageNoVirtualToArray(
  6135. 1, *entry, deterministic, target);
  6136. ;
  6137. if (entry->GetArena() != NULL) {
  6138. entry.release();
  6139. }
  6140. }
  6141. } else {
  6142. ::std::unique_ptr<TestRequiredMessageMap_MapFieldEntry_DoNotUse> entry;
  6143. for (::google::protobuf::Map< ::google::protobuf::int32, ::protobuf_unittest::TestRequired >::const_iterator
  6144. it = this->map_field().begin();
  6145. it != this->map_field().end(); ++it) {
  6146. entry.reset(map_field_.NewEntryWrapper(
  6147. it->first, it->second));
  6148. target = ::google::protobuf::internal::WireFormatLite::
  6149. InternalWriteMessageNoVirtualToArray(
  6150. 1, *entry, deterministic, target);
  6151. ;
  6152. if (entry->GetArena() != NULL) {
  6153. entry.release();
  6154. }
  6155. }
  6156. }
  6157. }
  6158. if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
  6159. target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
  6160. (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target);
  6161. }
  6162. // @@protoc_insertion_point(serialize_to_array_end:protobuf_unittest.TestRequiredMessageMap)
  6163. return target;
  6164. }
  6165. size_t TestRequiredMessageMap::ByteSizeLong() const {
  6166. // @@protoc_insertion_point(message_byte_size_start:protobuf_unittest.TestRequiredMessageMap)
  6167. size_t total_size = 0;
  6168. if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
  6169. total_size +=
  6170. ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
  6171. (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()));
  6172. }
  6173. // map<int32, .protobuf_unittest.TestRequired> map_field = 1;
  6174. total_size += 1 *
  6175. ::google::protobuf::internal::FromIntSize(this->map_field_size());
  6176. {
  6177. ::std::unique_ptr<TestRequiredMessageMap_MapFieldEntry_DoNotUse> entry;
  6178. for (::google::protobuf::Map< ::google::protobuf::int32, ::protobuf_unittest::TestRequired >::const_iterator
  6179. it = this->map_field().begin();
  6180. it != this->map_field().end(); ++it) {
  6181. if (entry.get() != NULL && entry->GetArena() != NULL) {
  6182. entry.release();
  6183. }
  6184. entry.reset(map_field_.NewEntryWrapper(it->first, it->second));
  6185. total_size += ::google::protobuf::internal::WireFormatLite::
  6186. MessageSizeNoVirtual(*entry);
  6187. }
  6188. if (entry.get() != NULL && entry->GetArena() != NULL) {
  6189. entry.release();
  6190. }
  6191. }
  6192. int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
  6193. SetCachedSize(cached_size);
  6194. return total_size;
  6195. }
  6196. void TestRequiredMessageMap::MergeFrom(const ::google::protobuf::Message& from) {
  6197. // @@protoc_insertion_point(generalized_merge_from_start:protobuf_unittest.TestRequiredMessageMap)
  6198. GOOGLE_DCHECK_NE(&from, this);
  6199. const TestRequiredMessageMap* source =
  6200. ::google::protobuf::internal::DynamicCastToGenerated<const TestRequiredMessageMap>(
  6201. &from);
  6202. if (source == NULL) {
  6203. // @@protoc_insertion_point(generalized_merge_from_cast_fail:protobuf_unittest.TestRequiredMessageMap)
  6204. ::google::protobuf::internal::ReflectionOps::Merge(from, this);
  6205. } else {
  6206. // @@protoc_insertion_point(generalized_merge_from_cast_success:protobuf_unittest.TestRequiredMessageMap)
  6207. MergeFrom(*source);
  6208. }
  6209. }
  6210. void TestRequiredMessageMap::MergeFrom(const TestRequiredMessageMap& from) {
  6211. // @@protoc_insertion_point(class_specific_merge_from_start:protobuf_unittest.TestRequiredMessageMap)
  6212. GOOGLE_DCHECK_NE(&from, this);
  6213. _internal_metadata_.MergeFrom(from._internal_metadata_);
  6214. ::google::protobuf::uint32 cached_has_bits = 0;
  6215. (void) cached_has_bits;
  6216. map_field_.MergeFrom(from.map_field_);
  6217. }
  6218. void TestRequiredMessageMap::CopyFrom(const ::google::protobuf::Message& from) {
  6219. // @@protoc_insertion_point(generalized_copy_from_start:protobuf_unittest.TestRequiredMessageMap)
  6220. if (&from == this) return;
  6221. Clear();
  6222. MergeFrom(from);
  6223. }
  6224. void TestRequiredMessageMap::CopyFrom(const TestRequiredMessageMap& from) {
  6225. // @@protoc_insertion_point(class_specific_copy_from_start:protobuf_unittest.TestRequiredMessageMap)
  6226. if (&from == this) return;
  6227. Clear();
  6228. MergeFrom(from);
  6229. }
  6230. bool TestRequiredMessageMap::IsInitialized() const {
  6231. if (!::google::protobuf::internal::AllAreInitialized(this->map_field())) return false;
  6232. return true;
  6233. }
  6234. void TestRequiredMessageMap::Swap(TestRequiredMessageMap* other) {
  6235. if (other == this) return;
  6236. if (GetArenaNoVirtual() == other->GetArenaNoVirtual()) {
  6237. InternalSwap(other);
  6238. } else {
  6239. TestRequiredMessageMap* temp = New(GetArenaNoVirtual());
  6240. temp->MergeFrom(*other);
  6241. other->CopyFrom(*this);
  6242. InternalSwap(temp);
  6243. if (GetArenaNoVirtual() == NULL) {
  6244. delete temp;
  6245. }
  6246. }
  6247. }
  6248. void TestRequiredMessageMap::UnsafeArenaSwap(TestRequiredMessageMap* other) {
  6249. if (other == this) return;
  6250. GOOGLE_DCHECK(GetArenaNoVirtual() == other->GetArenaNoVirtual());
  6251. InternalSwap(other);
  6252. }
  6253. void TestRequiredMessageMap::InternalSwap(TestRequiredMessageMap* other) {
  6254. using std::swap;
  6255. map_field_.Swap(&other->map_field_);
  6256. _internal_metadata_.Swap(&other->_internal_metadata_);
  6257. }
  6258. ::google::protobuf::Metadata TestRequiredMessageMap::GetMetadata() const {
  6259. protobuf_google_2fprotobuf_2fmap_5funittest_2eproto::protobuf_AssignDescriptorsOnce();
  6260. return ::protobuf_google_2fprotobuf_2fmap_5funittest_2eproto::file_level_metadata[kIndexInFileMessages];
  6261. }
  6262. // ===================================================================
  6263. TestArenaMap_MapInt32Int32Entry_DoNotUse::TestArenaMap_MapInt32Int32Entry_DoNotUse() {}
  6264. TestArenaMap_MapInt32Int32Entry_DoNotUse::TestArenaMap_MapInt32Int32Entry_DoNotUse(::google::protobuf::Arena* arena) : SuperType(arena) {}
  6265. void TestArenaMap_MapInt32Int32Entry_DoNotUse::MergeFrom(const TestArenaMap_MapInt32Int32Entry_DoNotUse& other) {
  6266. MergeFromInternal(other);
  6267. }
  6268. ::google::protobuf::Metadata TestArenaMap_MapInt32Int32Entry_DoNotUse::GetMetadata() const {
  6269. ::protobuf_google_2fprotobuf_2fmap_5funittest_2eproto::protobuf_AssignDescriptorsOnce();
  6270. return ::protobuf_google_2fprotobuf_2fmap_5funittest_2eproto::file_level_metadata[28];
  6271. }
  6272. void TestArenaMap_MapInt32Int32Entry_DoNotUse::MergeFrom(
  6273. const ::google::protobuf::Message& other) {
  6274. ::google::protobuf::Message::MergeFrom(other);
  6275. }
  6276. // ===================================================================
  6277. TestArenaMap_MapInt64Int64Entry_DoNotUse::TestArenaMap_MapInt64Int64Entry_DoNotUse() {}
  6278. TestArenaMap_MapInt64Int64Entry_DoNotUse::TestArenaMap_MapInt64Int64Entry_DoNotUse(::google::protobuf::Arena* arena) : SuperType(arena) {}
  6279. void TestArenaMap_MapInt64Int64Entry_DoNotUse::MergeFrom(const TestArenaMap_MapInt64Int64Entry_DoNotUse& other) {
  6280. MergeFromInternal(other);
  6281. }
  6282. ::google::protobuf::Metadata TestArenaMap_MapInt64Int64Entry_DoNotUse::GetMetadata() const {
  6283. ::protobuf_google_2fprotobuf_2fmap_5funittest_2eproto::protobuf_AssignDescriptorsOnce();
  6284. return ::protobuf_google_2fprotobuf_2fmap_5funittest_2eproto::file_level_metadata[29];
  6285. }
  6286. void TestArenaMap_MapInt64Int64Entry_DoNotUse::MergeFrom(
  6287. const ::google::protobuf::Message& other) {
  6288. ::google::protobuf::Message::MergeFrom(other);
  6289. }
  6290. // ===================================================================
  6291. TestArenaMap_MapUint32Uint32Entry_DoNotUse::TestArenaMap_MapUint32Uint32Entry_DoNotUse() {}
  6292. TestArenaMap_MapUint32Uint32Entry_DoNotUse::TestArenaMap_MapUint32Uint32Entry_DoNotUse(::google::protobuf::Arena* arena) : SuperType(arena) {}
  6293. void TestArenaMap_MapUint32Uint32Entry_DoNotUse::MergeFrom(const TestArenaMap_MapUint32Uint32Entry_DoNotUse& other) {
  6294. MergeFromInternal(other);
  6295. }
  6296. ::google::protobuf::Metadata TestArenaMap_MapUint32Uint32Entry_DoNotUse::GetMetadata() const {
  6297. ::protobuf_google_2fprotobuf_2fmap_5funittest_2eproto::protobuf_AssignDescriptorsOnce();
  6298. return ::protobuf_google_2fprotobuf_2fmap_5funittest_2eproto::file_level_metadata[30];
  6299. }
  6300. void TestArenaMap_MapUint32Uint32Entry_DoNotUse::MergeFrom(
  6301. const ::google::protobuf::Message& other) {
  6302. ::google::protobuf::Message::MergeFrom(other);
  6303. }
  6304. // ===================================================================
  6305. TestArenaMap_MapUint64Uint64Entry_DoNotUse::TestArenaMap_MapUint64Uint64Entry_DoNotUse() {}
  6306. TestArenaMap_MapUint64Uint64Entry_DoNotUse::TestArenaMap_MapUint64Uint64Entry_DoNotUse(::google::protobuf::Arena* arena) : SuperType(arena) {}
  6307. void TestArenaMap_MapUint64Uint64Entry_DoNotUse::MergeFrom(const TestArenaMap_MapUint64Uint64Entry_DoNotUse& other) {
  6308. MergeFromInternal(other);
  6309. }
  6310. ::google::protobuf::Metadata TestArenaMap_MapUint64Uint64Entry_DoNotUse::GetMetadata() const {
  6311. ::protobuf_google_2fprotobuf_2fmap_5funittest_2eproto::protobuf_AssignDescriptorsOnce();
  6312. return ::protobuf_google_2fprotobuf_2fmap_5funittest_2eproto::file_level_metadata[31];
  6313. }
  6314. void TestArenaMap_MapUint64Uint64Entry_DoNotUse::MergeFrom(
  6315. const ::google::protobuf::Message& other) {
  6316. ::google::protobuf::Message::MergeFrom(other);
  6317. }
  6318. // ===================================================================
  6319. TestArenaMap_MapSint32Sint32Entry_DoNotUse::TestArenaMap_MapSint32Sint32Entry_DoNotUse() {}
  6320. TestArenaMap_MapSint32Sint32Entry_DoNotUse::TestArenaMap_MapSint32Sint32Entry_DoNotUse(::google::protobuf::Arena* arena) : SuperType(arena) {}
  6321. void TestArenaMap_MapSint32Sint32Entry_DoNotUse::MergeFrom(const TestArenaMap_MapSint32Sint32Entry_DoNotUse& other) {
  6322. MergeFromInternal(other);
  6323. }
  6324. ::google::protobuf::Metadata TestArenaMap_MapSint32Sint32Entry_DoNotUse::GetMetadata() const {
  6325. ::protobuf_google_2fprotobuf_2fmap_5funittest_2eproto::protobuf_AssignDescriptorsOnce();
  6326. return ::protobuf_google_2fprotobuf_2fmap_5funittest_2eproto::file_level_metadata[32];
  6327. }
  6328. void TestArenaMap_MapSint32Sint32Entry_DoNotUse::MergeFrom(
  6329. const ::google::protobuf::Message& other) {
  6330. ::google::protobuf::Message::MergeFrom(other);
  6331. }
  6332. // ===================================================================
  6333. TestArenaMap_MapSint64Sint64Entry_DoNotUse::TestArenaMap_MapSint64Sint64Entry_DoNotUse() {}
  6334. TestArenaMap_MapSint64Sint64Entry_DoNotUse::TestArenaMap_MapSint64Sint64Entry_DoNotUse(::google::protobuf::Arena* arena) : SuperType(arena) {}
  6335. void TestArenaMap_MapSint64Sint64Entry_DoNotUse::MergeFrom(const TestArenaMap_MapSint64Sint64Entry_DoNotUse& other) {
  6336. MergeFromInternal(other);
  6337. }
  6338. ::google::protobuf::Metadata TestArenaMap_MapSint64Sint64Entry_DoNotUse::GetMetadata() const {
  6339. ::protobuf_google_2fprotobuf_2fmap_5funittest_2eproto::protobuf_AssignDescriptorsOnce();
  6340. return ::protobuf_google_2fprotobuf_2fmap_5funittest_2eproto::file_level_metadata[33];
  6341. }
  6342. void TestArenaMap_MapSint64Sint64Entry_DoNotUse::MergeFrom(
  6343. const ::google::protobuf::Message& other) {
  6344. ::google::protobuf::Message::MergeFrom(other);
  6345. }
  6346. // ===================================================================
  6347. TestArenaMap_MapFixed32Fixed32Entry_DoNotUse::TestArenaMap_MapFixed32Fixed32Entry_DoNotUse() {}
  6348. TestArenaMap_MapFixed32Fixed32Entry_DoNotUse::TestArenaMap_MapFixed32Fixed32Entry_DoNotUse(::google::protobuf::Arena* arena) : SuperType(arena) {}
  6349. void TestArenaMap_MapFixed32Fixed32Entry_DoNotUse::MergeFrom(const TestArenaMap_MapFixed32Fixed32Entry_DoNotUse& other) {
  6350. MergeFromInternal(other);
  6351. }
  6352. ::google::protobuf::Metadata TestArenaMap_MapFixed32Fixed32Entry_DoNotUse::GetMetadata() const {
  6353. ::protobuf_google_2fprotobuf_2fmap_5funittest_2eproto::protobuf_AssignDescriptorsOnce();
  6354. return ::protobuf_google_2fprotobuf_2fmap_5funittest_2eproto::file_level_metadata[34];
  6355. }
  6356. void TestArenaMap_MapFixed32Fixed32Entry_DoNotUse::MergeFrom(
  6357. const ::google::protobuf::Message& other) {
  6358. ::google::protobuf::Message::MergeFrom(other);
  6359. }
  6360. // ===================================================================
  6361. TestArenaMap_MapFixed64Fixed64Entry_DoNotUse::TestArenaMap_MapFixed64Fixed64Entry_DoNotUse() {}
  6362. TestArenaMap_MapFixed64Fixed64Entry_DoNotUse::TestArenaMap_MapFixed64Fixed64Entry_DoNotUse(::google::protobuf::Arena* arena) : SuperType(arena) {}
  6363. void TestArenaMap_MapFixed64Fixed64Entry_DoNotUse::MergeFrom(const TestArenaMap_MapFixed64Fixed64Entry_DoNotUse& other) {
  6364. MergeFromInternal(other);
  6365. }
  6366. ::google::protobuf::Metadata TestArenaMap_MapFixed64Fixed64Entry_DoNotUse::GetMetadata() const {
  6367. ::protobuf_google_2fprotobuf_2fmap_5funittest_2eproto::protobuf_AssignDescriptorsOnce();
  6368. return ::protobuf_google_2fprotobuf_2fmap_5funittest_2eproto::file_level_metadata[35];
  6369. }
  6370. void TestArenaMap_MapFixed64Fixed64Entry_DoNotUse::MergeFrom(
  6371. const ::google::protobuf::Message& other) {
  6372. ::google::protobuf::Message::MergeFrom(other);
  6373. }
  6374. // ===================================================================
  6375. TestArenaMap_MapSfixed32Sfixed32Entry_DoNotUse::TestArenaMap_MapSfixed32Sfixed32Entry_DoNotUse() {}
  6376. TestArenaMap_MapSfixed32Sfixed32Entry_DoNotUse::TestArenaMap_MapSfixed32Sfixed32Entry_DoNotUse(::google::protobuf::Arena* arena) : SuperType(arena) {}
  6377. void TestArenaMap_MapSfixed32Sfixed32Entry_DoNotUse::MergeFrom(const TestArenaMap_MapSfixed32Sfixed32Entry_DoNotUse& other) {
  6378. MergeFromInternal(other);
  6379. }
  6380. ::google::protobuf::Metadata TestArenaMap_MapSfixed32Sfixed32Entry_DoNotUse::GetMetadata() const {
  6381. ::protobuf_google_2fprotobuf_2fmap_5funittest_2eproto::protobuf_AssignDescriptorsOnce();
  6382. return ::protobuf_google_2fprotobuf_2fmap_5funittest_2eproto::file_level_metadata[36];
  6383. }
  6384. void TestArenaMap_MapSfixed32Sfixed32Entry_DoNotUse::MergeFrom(
  6385. const ::google::protobuf::Message& other) {
  6386. ::google::protobuf::Message::MergeFrom(other);
  6387. }
  6388. // ===================================================================
  6389. TestArenaMap_MapSfixed64Sfixed64Entry_DoNotUse::TestArenaMap_MapSfixed64Sfixed64Entry_DoNotUse() {}
  6390. TestArenaMap_MapSfixed64Sfixed64Entry_DoNotUse::TestArenaMap_MapSfixed64Sfixed64Entry_DoNotUse(::google::protobuf::Arena* arena) : SuperType(arena) {}
  6391. void TestArenaMap_MapSfixed64Sfixed64Entry_DoNotUse::MergeFrom(const TestArenaMap_MapSfixed64Sfixed64Entry_DoNotUse& other) {
  6392. MergeFromInternal(other);
  6393. }
  6394. ::google::protobuf::Metadata TestArenaMap_MapSfixed64Sfixed64Entry_DoNotUse::GetMetadata() const {
  6395. ::protobuf_google_2fprotobuf_2fmap_5funittest_2eproto::protobuf_AssignDescriptorsOnce();
  6396. return ::protobuf_google_2fprotobuf_2fmap_5funittest_2eproto::file_level_metadata[37];
  6397. }
  6398. void TestArenaMap_MapSfixed64Sfixed64Entry_DoNotUse::MergeFrom(
  6399. const ::google::protobuf::Message& other) {
  6400. ::google::protobuf::Message::MergeFrom(other);
  6401. }
  6402. // ===================================================================
  6403. TestArenaMap_MapInt32FloatEntry_DoNotUse::TestArenaMap_MapInt32FloatEntry_DoNotUse() {}
  6404. TestArenaMap_MapInt32FloatEntry_DoNotUse::TestArenaMap_MapInt32FloatEntry_DoNotUse(::google::protobuf::Arena* arena) : SuperType(arena) {}
  6405. void TestArenaMap_MapInt32FloatEntry_DoNotUse::MergeFrom(const TestArenaMap_MapInt32FloatEntry_DoNotUse& other) {
  6406. MergeFromInternal(other);
  6407. }
  6408. ::google::protobuf::Metadata TestArenaMap_MapInt32FloatEntry_DoNotUse::GetMetadata() const {
  6409. ::protobuf_google_2fprotobuf_2fmap_5funittest_2eproto::protobuf_AssignDescriptorsOnce();
  6410. return ::protobuf_google_2fprotobuf_2fmap_5funittest_2eproto::file_level_metadata[38];
  6411. }
  6412. void TestArenaMap_MapInt32FloatEntry_DoNotUse::MergeFrom(
  6413. const ::google::protobuf::Message& other) {
  6414. ::google::protobuf::Message::MergeFrom(other);
  6415. }
  6416. // ===================================================================
  6417. TestArenaMap_MapInt32DoubleEntry_DoNotUse::TestArenaMap_MapInt32DoubleEntry_DoNotUse() {}
  6418. TestArenaMap_MapInt32DoubleEntry_DoNotUse::TestArenaMap_MapInt32DoubleEntry_DoNotUse(::google::protobuf::Arena* arena) : SuperType(arena) {}
  6419. void TestArenaMap_MapInt32DoubleEntry_DoNotUse::MergeFrom(const TestArenaMap_MapInt32DoubleEntry_DoNotUse& other) {
  6420. MergeFromInternal(other);
  6421. }
  6422. ::google::protobuf::Metadata TestArenaMap_MapInt32DoubleEntry_DoNotUse::GetMetadata() const {
  6423. ::protobuf_google_2fprotobuf_2fmap_5funittest_2eproto::protobuf_AssignDescriptorsOnce();
  6424. return ::protobuf_google_2fprotobuf_2fmap_5funittest_2eproto::file_level_metadata[39];
  6425. }
  6426. void TestArenaMap_MapInt32DoubleEntry_DoNotUse::MergeFrom(
  6427. const ::google::protobuf::Message& other) {
  6428. ::google::protobuf::Message::MergeFrom(other);
  6429. }
  6430. // ===================================================================
  6431. TestArenaMap_MapBoolBoolEntry_DoNotUse::TestArenaMap_MapBoolBoolEntry_DoNotUse() {}
  6432. TestArenaMap_MapBoolBoolEntry_DoNotUse::TestArenaMap_MapBoolBoolEntry_DoNotUse(::google::protobuf::Arena* arena) : SuperType(arena) {}
  6433. void TestArenaMap_MapBoolBoolEntry_DoNotUse::MergeFrom(const TestArenaMap_MapBoolBoolEntry_DoNotUse& other) {
  6434. MergeFromInternal(other);
  6435. }
  6436. ::google::protobuf::Metadata TestArenaMap_MapBoolBoolEntry_DoNotUse::GetMetadata() const {
  6437. ::protobuf_google_2fprotobuf_2fmap_5funittest_2eproto::protobuf_AssignDescriptorsOnce();
  6438. return ::protobuf_google_2fprotobuf_2fmap_5funittest_2eproto::file_level_metadata[40];
  6439. }
  6440. void TestArenaMap_MapBoolBoolEntry_DoNotUse::MergeFrom(
  6441. const ::google::protobuf::Message& other) {
  6442. ::google::protobuf::Message::MergeFrom(other);
  6443. }
  6444. // ===================================================================
  6445. TestArenaMap_MapStringStringEntry_DoNotUse::TestArenaMap_MapStringStringEntry_DoNotUse() {}
  6446. TestArenaMap_MapStringStringEntry_DoNotUse::TestArenaMap_MapStringStringEntry_DoNotUse(::google::protobuf::Arena* arena) : SuperType(arena) {}
  6447. void TestArenaMap_MapStringStringEntry_DoNotUse::MergeFrom(const TestArenaMap_MapStringStringEntry_DoNotUse& other) {
  6448. MergeFromInternal(other);
  6449. }
  6450. ::google::protobuf::Metadata TestArenaMap_MapStringStringEntry_DoNotUse::GetMetadata() const {
  6451. ::protobuf_google_2fprotobuf_2fmap_5funittest_2eproto::protobuf_AssignDescriptorsOnce();
  6452. return ::protobuf_google_2fprotobuf_2fmap_5funittest_2eproto::file_level_metadata[41];
  6453. }
  6454. void TestArenaMap_MapStringStringEntry_DoNotUse::MergeFrom(
  6455. const ::google::protobuf::Message& other) {
  6456. ::google::protobuf::Message::MergeFrom(other);
  6457. }
  6458. // ===================================================================
  6459. TestArenaMap_MapInt32BytesEntry_DoNotUse::TestArenaMap_MapInt32BytesEntry_DoNotUse() {}
  6460. TestArenaMap_MapInt32BytesEntry_DoNotUse::TestArenaMap_MapInt32BytesEntry_DoNotUse(::google::protobuf::Arena* arena) : SuperType(arena) {}
  6461. void TestArenaMap_MapInt32BytesEntry_DoNotUse::MergeFrom(const TestArenaMap_MapInt32BytesEntry_DoNotUse& other) {
  6462. MergeFromInternal(other);
  6463. }
  6464. ::google::protobuf::Metadata TestArenaMap_MapInt32BytesEntry_DoNotUse::GetMetadata() const {
  6465. ::protobuf_google_2fprotobuf_2fmap_5funittest_2eproto::protobuf_AssignDescriptorsOnce();
  6466. return ::protobuf_google_2fprotobuf_2fmap_5funittest_2eproto::file_level_metadata[42];
  6467. }
  6468. void TestArenaMap_MapInt32BytesEntry_DoNotUse::MergeFrom(
  6469. const ::google::protobuf::Message& other) {
  6470. ::google::protobuf::Message::MergeFrom(other);
  6471. }
  6472. // ===================================================================
  6473. TestArenaMap_MapInt32EnumEntry_DoNotUse::TestArenaMap_MapInt32EnumEntry_DoNotUse() {}
  6474. TestArenaMap_MapInt32EnumEntry_DoNotUse::TestArenaMap_MapInt32EnumEntry_DoNotUse(::google::protobuf::Arena* arena) : SuperType(arena) {}
  6475. void TestArenaMap_MapInt32EnumEntry_DoNotUse::MergeFrom(const TestArenaMap_MapInt32EnumEntry_DoNotUse& other) {
  6476. MergeFromInternal(other);
  6477. }
  6478. ::google::protobuf::Metadata TestArenaMap_MapInt32EnumEntry_DoNotUse::GetMetadata() const {
  6479. ::protobuf_google_2fprotobuf_2fmap_5funittest_2eproto::protobuf_AssignDescriptorsOnce();
  6480. return ::protobuf_google_2fprotobuf_2fmap_5funittest_2eproto::file_level_metadata[43];
  6481. }
  6482. void TestArenaMap_MapInt32EnumEntry_DoNotUse::MergeFrom(
  6483. const ::google::protobuf::Message& other) {
  6484. ::google::protobuf::Message::MergeFrom(other);
  6485. }
  6486. // ===================================================================
  6487. TestArenaMap_MapInt32ForeignMessageEntry_DoNotUse::TestArenaMap_MapInt32ForeignMessageEntry_DoNotUse() {}
  6488. TestArenaMap_MapInt32ForeignMessageEntry_DoNotUse::TestArenaMap_MapInt32ForeignMessageEntry_DoNotUse(::google::protobuf::Arena* arena) : SuperType(arena) {}
  6489. void TestArenaMap_MapInt32ForeignMessageEntry_DoNotUse::MergeFrom(const TestArenaMap_MapInt32ForeignMessageEntry_DoNotUse& other) {
  6490. MergeFromInternal(other);
  6491. }
  6492. ::google::protobuf::Metadata TestArenaMap_MapInt32ForeignMessageEntry_DoNotUse::GetMetadata() const {
  6493. ::protobuf_google_2fprotobuf_2fmap_5funittest_2eproto::protobuf_AssignDescriptorsOnce();
  6494. return ::protobuf_google_2fprotobuf_2fmap_5funittest_2eproto::file_level_metadata[44];
  6495. }
  6496. void TestArenaMap_MapInt32ForeignMessageEntry_DoNotUse::MergeFrom(
  6497. const ::google::protobuf::Message& other) {
  6498. ::google::protobuf::Message::MergeFrom(other);
  6499. }
  6500. // ===================================================================
  6501. TestArenaMap_MapInt32ForeignMessageNoArenaEntry_DoNotUse::TestArenaMap_MapInt32ForeignMessageNoArenaEntry_DoNotUse() {}
  6502. TestArenaMap_MapInt32ForeignMessageNoArenaEntry_DoNotUse::TestArenaMap_MapInt32ForeignMessageNoArenaEntry_DoNotUse(::google::protobuf::Arena* arena) : SuperType(arena) {}
  6503. void TestArenaMap_MapInt32ForeignMessageNoArenaEntry_DoNotUse::MergeFrom(const TestArenaMap_MapInt32ForeignMessageNoArenaEntry_DoNotUse& other) {
  6504. MergeFromInternal(other);
  6505. }
  6506. ::google::protobuf::Metadata TestArenaMap_MapInt32ForeignMessageNoArenaEntry_DoNotUse::GetMetadata() const {
  6507. ::protobuf_google_2fprotobuf_2fmap_5funittest_2eproto::protobuf_AssignDescriptorsOnce();
  6508. return ::protobuf_google_2fprotobuf_2fmap_5funittest_2eproto::file_level_metadata[45];
  6509. }
  6510. void TestArenaMap_MapInt32ForeignMessageNoArenaEntry_DoNotUse::MergeFrom(
  6511. const ::google::protobuf::Message& other) {
  6512. ::google::protobuf::Message::MergeFrom(other);
  6513. }
  6514. // ===================================================================
  6515. void TestArenaMap::InitAsDefaultInstance() {
  6516. }
  6517. void TestArenaMap::clear_map_int32_foreign_message() {
  6518. map_int32_foreign_message_.Clear();
  6519. }
  6520. void TestArenaMap::clear_map_int32_foreign_message_no_arena() {
  6521. map_int32_foreign_message_no_arena_.Clear();
  6522. }
  6523. #if !defined(_MSC_VER) || _MSC_VER >= 1900
  6524. const int TestArenaMap::kMapInt32Int32FieldNumber;
  6525. const int TestArenaMap::kMapInt64Int64FieldNumber;
  6526. const int TestArenaMap::kMapUint32Uint32FieldNumber;
  6527. const int TestArenaMap::kMapUint64Uint64FieldNumber;
  6528. const int TestArenaMap::kMapSint32Sint32FieldNumber;
  6529. const int TestArenaMap::kMapSint64Sint64FieldNumber;
  6530. const int TestArenaMap::kMapFixed32Fixed32FieldNumber;
  6531. const int TestArenaMap::kMapFixed64Fixed64FieldNumber;
  6532. const int TestArenaMap::kMapSfixed32Sfixed32FieldNumber;
  6533. const int TestArenaMap::kMapSfixed64Sfixed64FieldNumber;
  6534. const int TestArenaMap::kMapInt32FloatFieldNumber;
  6535. const int TestArenaMap::kMapInt32DoubleFieldNumber;
  6536. const int TestArenaMap::kMapBoolBoolFieldNumber;
  6537. const int TestArenaMap::kMapStringStringFieldNumber;
  6538. const int TestArenaMap::kMapInt32BytesFieldNumber;
  6539. const int TestArenaMap::kMapInt32EnumFieldNumber;
  6540. const int TestArenaMap::kMapInt32ForeignMessageFieldNumber;
  6541. const int TestArenaMap::kMapInt32ForeignMessageNoArenaFieldNumber;
  6542. #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
  6543. TestArenaMap::TestArenaMap()
  6544. : ::google::protobuf::Message(), _internal_metadata_(NULL) {
  6545. ::google::protobuf::internal::InitSCC(
  6546. &protobuf_google_2fprotobuf_2fmap_5funittest_2eproto::scc_info_TestArenaMap.base);
  6547. SharedCtor();
  6548. // @@protoc_insertion_point(constructor:protobuf_unittest.TestArenaMap)
  6549. }
  6550. TestArenaMap::TestArenaMap(::google::protobuf::Arena* arena)
  6551. : ::google::protobuf::Message(),
  6552. _internal_metadata_(arena),
  6553. map_int32_int32_(arena),
  6554. map_int64_int64_(arena),
  6555. map_uint32_uint32_(arena),
  6556. map_uint64_uint64_(arena),
  6557. map_sint32_sint32_(arena),
  6558. map_sint64_sint64_(arena),
  6559. map_fixed32_fixed32_(arena),
  6560. map_fixed64_fixed64_(arena),
  6561. map_sfixed32_sfixed32_(arena),
  6562. map_sfixed64_sfixed64_(arena),
  6563. map_int32_float_(arena),
  6564. map_int32_double_(arena),
  6565. map_bool_bool_(arena),
  6566. map_string_string_(arena),
  6567. map_int32_bytes_(arena),
  6568. map_int32_enum_(arena),
  6569. map_int32_foreign_message_(arena),
  6570. map_int32_foreign_message_no_arena_(arena) {
  6571. ::google::protobuf::internal::InitSCC(&protobuf_google_2fprotobuf_2fmap_5funittest_2eproto::scc_info_TestArenaMap.base);
  6572. SharedCtor();
  6573. RegisterArenaDtor(arena);
  6574. // @@protoc_insertion_point(arena_constructor:protobuf_unittest.TestArenaMap)
  6575. }
  6576. TestArenaMap::TestArenaMap(const TestArenaMap& from)
  6577. : ::google::protobuf::Message(),
  6578. _internal_metadata_(NULL) {
  6579. _internal_metadata_.MergeFrom(from._internal_metadata_);
  6580. map_int32_int32_.MergeFrom(from.map_int32_int32_);
  6581. map_int64_int64_.MergeFrom(from.map_int64_int64_);
  6582. map_uint32_uint32_.MergeFrom(from.map_uint32_uint32_);
  6583. map_uint64_uint64_.MergeFrom(from.map_uint64_uint64_);
  6584. map_sint32_sint32_.MergeFrom(from.map_sint32_sint32_);
  6585. map_sint64_sint64_.MergeFrom(from.map_sint64_sint64_);
  6586. map_fixed32_fixed32_.MergeFrom(from.map_fixed32_fixed32_);
  6587. map_fixed64_fixed64_.MergeFrom(from.map_fixed64_fixed64_);
  6588. map_sfixed32_sfixed32_.MergeFrom(from.map_sfixed32_sfixed32_);
  6589. map_sfixed64_sfixed64_.MergeFrom(from.map_sfixed64_sfixed64_);
  6590. map_int32_float_.MergeFrom(from.map_int32_float_);
  6591. map_int32_double_.MergeFrom(from.map_int32_double_);
  6592. map_bool_bool_.MergeFrom(from.map_bool_bool_);
  6593. map_string_string_.MergeFrom(from.map_string_string_);
  6594. map_int32_bytes_.MergeFrom(from.map_int32_bytes_);
  6595. map_int32_enum_.MergeFrom(from.map_int32_enum_);
  6596. map_int32_foreign_message_.MergeFrom(from.map_int32_foreign_message_);
  6597. map_int32_foreign_message_no_arena_.MergeFrom(from.map_int32_foreign_message_no_arena_);
  6598. // @@protoc_insertion_point(copy_constructor:protobuf_unittest.TestArenaMap)
  6599. }
  6600. void TestArenaMap::SharedCtor() {
  6601. }
  6602. TestArenaMap::~TestArenaMap() {
  6603. // @@protoc_insertion_point(destructor:protobuf_unittest.TestArenaMap)
  6604. SharedDtor();
  6605. }
  6606. void TestArenaMap::SharedDtor() {
  6607. GOOGLE_DCHECK(GetArenaNoVirtual() == NULL);
  6608. }
  6609. void TestArenaMap::ArenaDtor(void* object) {
  6610. TestArenaMap* _this = reinterpret_cast< TestArenaMap* >(object);
  6611. (void)_this;
  6612. }
  6613. void TestArenaMap::RegisterArenaDtor(::google::protobuf::Arena* arena) {
  6614. }
  6615. void TestArenaMap::SetCachedSize(int size) const {
  6616. _cached_size_.Set(size);
  6617. }
  6618. const ::google::protobuf::Descriptor* TestArenaMap::descriptor() {
  6619. ::protobuf_google_2fprotobuf_2fmap_5funittest_2eproto::protobuf_AssignDescriptorsOnce();
  6620. return ::protobuf_google_2fprotobuf_2fmap_5funittest_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
  6621. }
  6622. const TestArenaMap& TestArenaMap::default_instance() {
  6623. ::google::protobuf::internal::InitSCC(&protobuf_google_2fprotobuf_2fmap_5funittest_2eproto::scc_info_TestArenaMap.base);
  6624. return *internal_default_instance();
  6625. }
  6626. void TestArenaMap::Clear() {
  6627. // @@protoc_insertion_point(message_clear_start:protobuf_unittest.TestArenaMap)
  6628. ::google::protobuf::uint32 cached_has_bits = 0;
  6629. // Prevent compiler warnings about cached_has_bits being unused
  6630. (void) cached_has_bits;
  6631. map_int32_int32_.Clear();
  6632. map_int64_int64_.Clear();
  6633. map_uint32_uint32_.Clear();
  6634. map_uint64_uint64_.Clear();
  6635. map_sint32_sint32_.Clear();
  6636. map_sint64_sint64_.Clear();
  6637. map_fixed32_fixed32_.Clear();
  6638. map_fixed64_fixed64_.Clear();
  6639. map_sfixed32_sfixed32_.Clear();
  6640. map_sfixed64_sfixed64_.Clear();
  6641. map_int32_float_.Clear();
  6642. map_int32_double_.Clear();
  6643. map_bool_bool_.Clear();
  6644. map_string_string_.Clear();
  6645. map_int32_bytes_.Clear();
  6646. map_int32_enum_.Clear();
  6647. map_int32_foreign_message_.Clear();
  6648. map_int32_foreign_message_no_arena_.Clear();
  6649. _internal_metadata_.Clear();
  6650. }
  6651. bool TestArenaMap::MergePartialFromCodedStream(
  6652. ::google::protobuf::io::CodedInputStream* input) {
  6653. #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
  6654. ::google::protobuf::uint32 tag;
  6655. // @@protoc_insertion_point(parse_start:protobuf_unittest.TestArenaMap)
  6656. for (;;) {
  6657. ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(16383u);
  6658. tag = p.first;
  6659. if (!p.second) goto handle_unusual;
  6660. switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
  6661. // map<int32, int32> map_int32_int32 = 1;
  6662. case 1: {
  6663. if (static_cast< ::google::protobuf::uint8>(tag) ==
  6664. static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
  6665. TestArenaMap_MapInt32Int32Entry_DoNotUse::Parser< ::google::protobuf::internal::MapField<
  6666. TestArenaMap_MapInt32Int32Entry_DoNotUse,
  6667. ::google::protobuf::int32, ::google::protobuf::int32,
  6668. ::google::protobuf::internal::WireFormatLite::TYPE_INT32,
  6669. ::google::protobuf::internal::WireFormatLite::TYPE_INT32,
  6670. 0 >,
  6671. ::google::protobuf::Map< ::google::protobuf::int32, ::google::protobuf::int32 > > parser(&map_int32_int32_);
  6672. DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
  6673. input, &parser));
  6674. } else {
  6675. goto handle_unusual;
  6676. }
  6677. break;
  6678. }
  6679. // map<int64, int64> map_int64_int64 = 2;
  6680. case 2: {
  6681. if (static_cast< ::google::protobuf::uint8>(tag) ==
  6682. static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) {
  6683. TestArenaMap_MapInt64Int64Entry_DoNotUse::Parser< ::google::protobuf::internal::MapField<
  6684. TestArenaMap_MapInt64Int64Entry_DoNotUse,
  6685. ::google::protobuf::int64, ::google::protobuf::int64,
  6686. ::google::protobuf::internal::WireFormatLite::TYPE_INT64,
  6687. ::google::protobuf::internal::WireFormatLite::TYPE_INT64,
  6688. 0 >,
  6689. ::google::protobuf::Map< ::google::protobuf::int64, ::google::protobuf::int64 > > parser(&map_int64_int64_);
  6690. DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
  6691. input, &parser));
  6692. } else {
  6693. goto handle_unusual;
  6694. }
  6695. break;
  6696. }
  6697. // map<uint32, uint32> map_uint32_uint32 = 3;
  6698. case 3: {
  6699. if (static_cast< ::google::protobuf::uint8>(tag) ==
  6700. static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) {
  6701. TestArenaMap_MapUint32Uint32Entry_DoNotUse::Parser< ::google::protobuf::internal::MapField<
  6702. TestArenaMap_MapUint32Uint32Entry_DoNotUse,
  6703. ::google::protobuf::uint32, ::google::protobuf::uint32,
  6704. ::google::protobuf::internal::WireFormatLite::TYPE_UINT32,
  6705. ::google::protobuf::internal::WireFormatLite::TYPE_UINT32,
  6706. 0 >,
  6707. ::google::protobuf::Map< ::google::protobuf::uint32, ::google::protobuf::uint32 > > parser(&map_uint32_uint32_);
  6708. DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
  6709. input, &parser));
  6710. } else {
  6711. goto handle_unusual;
  6712. }
  6713. break;
  6714. }
  6715. // map<uint64, uint64> map_uint64_uint64 = 4;
  6716. case 4: {
  6717. if (static_cast< ::google::protobuf::uint8>(tag) ==
  6718. static_cast< ::google::protobuf::uint8>(34u /* 34 & 0xFF */)) {
  6719. TestArenaMap_MapUint64Uint64Entry_DoNotUse::Parser< ::google::protobuf::internal::MapField<
  6720. TestArenaMap_MapUint64Uint64Entry_DoNotUse,
  6721. ::google::protobuf::uint64, ::google::protobuf::uint64,
  6722. ::google::protobuf::internal::WireFormatLite::TYPE_UINT64,
  6723. ::google::protobuf::internal::WireFormatLite::TYPE_UINT64,
  6724. 0 >,
  6725. ::google::protobuf::Map< ::google::protobuf::uint64, ::google::protobuf::uint64 > > parser(&map_uint64_uint64_);
  6726. DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
  6727. input, &parser));
  6728. } else {
  6729. goto handle_unusual;
  6730. }
  6731. break;
  6732. }
  6733. // map<sint32, sint32> map_sint32_sint32 = 5;
  6734. case 5: {
  6735. if (static_cast< ::google::protobuf::uint8>(tag) ==
  6736. static_cast< ::google::protobuf::uint8>(42u /* 42 & 0xFF */)) {
  6737. TestArenaMap_MapSint32Sint32Entry_DoNotUse::Parser< ::google::protobuf::internal::MapField<
  6738. TestArenaMap_MapSint32Sint32Entry_DoNotUse,
  6739. ::google::protobuf::int32, ::google::protobuf::int32,
  6740. ::google::protobuf::internal::WireFormatLite::TYPE_SINT32,
  6741. ::google::protobuf::internal::WireFormatLite::TYPE_SINT32,
  6742. 0 >,
  6743. ::google::protobuf::Map< ::google::protobuf::int32, ::google::protobuf::int32 > > parser(&map_sint32_sint32_);
  6744. DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
  6745. input, &parser));
  6746. } else {
  6747. goto handle_unusual;
  6748. }
  6749. break;
  6750. }
  6751. // map<sint64, sint64> map_sint64_sint64 = 6;
  6752. case 6: {
  6753. if (static_cast< ::google::protobuf::uint8>(tag) ==
  6754. static_cast< ::google::protobuf::uint8>(50u /* 50 & 0xFF */)) {
  6755. TestArenaMap_MapSint64Sint64Entry_DoNotUse::Parser< ::google::protobuf::internal::MapField<
  6756. TestArenaMap_MapSint64Sint64Entry_DoNotUse,
  6757. ::google::protobuf::int64, ::google::protobuf::int64,
  6758. ::google::protobuf::internal::WireFormatLite::TYPE_SINT64,
  6759. ::google::protobuf::internal::WireFormatLite::TYPE_SINT64,
  6760. 0 >,
  6761. ::google::protobuf::Map< ::google::protobuf::int64, ::google::protobuf::int64 > > parser(&map_sint64_sint64_);
  6762. DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
  6763. input, &parser));
  6764. } else {
  6765. goto handle_unusual;
  6766. }
  6767. break;
  6768. }
  6769. // map<fixed32, fixed32> map_fixed32_fixed32 = 7;
  6770. case 7: {
  6771. if (static_cast< ::google::protobuf::uint8>(tag) ==
  6772. static_cast< ::google::protobuf::uint8>(58u /* 58 & 0xFF */)) {
  6773. TestArenaMap_MapFixed32Fixed32Entry_DoNotUse::Parser< ::google::protobuf::internal::MapField<
  6774. TestArenaMap_MapFixed32Fixed32Entry_DoNotUse,
  6775. ::google::protobuf::uint32, ::google::protobuf::uint32,
  6776. ::google::protobuf::internal::WireFormatLite::TYPE_FIXED32,
  6777. ::google::protobuf::internal::WireFormatLite::TYPE_FIXED32,
  6778. 0 >,
  6779. ::google::protobuf::Map< ::google::protobuf::uint32, ::google::protobuf::uint32 > > parser(&map_fixed32_fixed32_);
  6780. DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
  6781. input, &parser));
  6782. } else {
  6783. goto handle_unusual;
  6784. }
  6785. break;
  6786. }
  6787. // map<fixed64, fixed64> map_fixed64_fixed64 = 8;
  6788. case 8: {
  6789. if (static_cast< ::google::protobuf::uint8>(tag) ==
  6790. static_cast< ::google::protobuf::uint8>(66u /* 66 & 0xFF */)) {
  6791. TestArenaMap_MapFixed64Fixed64Entry_DoNotUse::Parser< ::google::protobuf::internal::MapField<
  6792. TestArenaMap_MapFixed64Fixed64Entry_DoNotUse,
  6793. ::google::protobuf::uint64, ::google::protobuf::uint64,
  6794. ::google::protobuf::internal::WireFormatLite::TYPE_FIXED64,
  6795. ::google::protobuf::internal::WireFormatLite::TYPE_FIXED64,
  6796. 0 >,
  6797. ::google::protobuf::Map< ::google::protobuf::uint64, ::google::protobuf::uint64 > > parser(&map_fixed64_fixed64_);
  6798. DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
  6799. input, &parser));
  6800. } else {
  6801. goto handle_unusual;
  6802. }
  6803. break;
  6804. }
  6805. // map<sfixed32, sfixed32> map_sfixed32_sfixed32 = 9;
  6806. case 9: {
  6807. if (static_cast< ::google::protobuf::uint8>(tag) ==
  6808. static_cast< ::google::protobuf::uint8>(74u /* 74 & 0xFF */)) {
  6809. TestArenaMap_MapSfixed32Sfixed32Entry_DoNotUse::Parser< ::google::protobuf::internal::MapField<
  6810. TestArenaMap_MapSfixed32Sfixed32Entry_DoNotUse,
  6811. ::google::protobuf::int32, ::google::protobuf::int32,
  6812. ::google::protobuf::internal::WireFormatLite::TYPE_SFIXED32,
  6813. ::google::protobuf::internal::WireFormatLite::TYPE_SFIXED32,
  6814. 0 >,
  6815. ::google::protobuf::Map< ::google::protobuf::int32, ::google::protobuf::int32 > > parser(&map_sfixed32_sfixed32_);
  6816. DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
  6817. input, &parser));
  6818. } else {
  6819. goto handle_unusual;
  6820. }
  6821. break;
  6822. }
  6823. // map<sfixed64, sfixed64> map_sfixed64_sfixed64 = 10;
  6824. case 10: {
  6825. if (static_cast< ::google::protobuf::uint8>(tag) ==
  6826. static_cast< ::google::protobuf::uint8>(82u /* 82 & 0xFF */)) {
  6827. TestArenaMap_MapSfixed64Sfixed64Entry_DoNotUse::Parser< ::google::protobuf::internal::MapField<
  6828. TestArenaMap_MapSfixed64Sfixed64Entry_DoNotUse,
  6829. ::google::protobuf::int64, ::google::protobuf::int64,
  6830. ::google::protobuf::internal::WireFormatLite::TYPE_SFIXED64,
  6831. ::google::protobuf::internal::WireFormatLite::TYPE_SFIXED64,
  6832. 0 >,
  6833. ::google::protobuf::Map< ::google::protobuf::int64, ::google::protobuf::int64 > > parser(&map_sfixed64_sfixed64_);
  6834. DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
  6835. input, &parser));
  6836. } else {
  6837. goto handle_unusual;
  6838. }
  6839. break;
  6840. }
  6841. // map<int32, float> map_int32_float = 11;
  6842. case 11: {
  6843. if (static_cast< ::google::protobuf::uint8>(tag) ==
  6844. static_cast< ::google::protobuf::uint8>(90u /* 90 & 0xFF */)) {
  6845. TestArenaMap_MapInt32FloatEntry_DoNotUse::Parser< ::google::protobuf::internal::MapField<
  6846. TestArenaMap_MapInt32FloatEntry_DoNotUse,
  6847. ::google::protobuf::int32, float,
  6848. ::google::protobuf::internal::WireFormatLite::TYPE_INT32,
  6849. ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT,
  6850. 0 >,
  6851. ::google::protobuf::Map< ::google::protobuf::int32, float > > parser(&map_int32_float_);
  6852. DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
  6853. input, &parser));
  6854. } else {
  6855. goto handle_unusual;
  6856. }
  6857. break;
  6858. }
  6859. // map<int32, double> map_int32_double = 12;
  6860. case 12: {
  6861. if (static_cast< ::google::protobuf::uint8>(tag) ==
  6862. static_cast< ::google::protobuf::uint8>(98u /* 98 & 0xFF */)) {
  6863. TestArenaMap_MapInt32DoubleEntry_DoNotUse::Parser< ::google::protobuf::internal::MapField<
  6864. TestArenaMap_MapInt32DoubleEntry_DoNotUse,
  6865. ::google::protobuf::int32, double,
  6866. ::google::protobuf::internal::WireFormatLite::TYPE_INT32,
  6867. ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE,
  6868. 0 >,
  6869. ::google::protobuf::Map< ::google::protobuf::int32, double > > parser(&map_int32_double_);
  6870. DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
  6871. input, &parser));
  6872. } else {
  6873. goto handle_unusual;
  6874. }
  6875. break;
  6876. }
  6877. // map<bool, bool> map_bool_bool = 13;
  6878. case 13: {
  6879. if (static_cast< ::google::protobuf::uint8>(tag) ==
  6880. static_cast< ::google::protobuf::uint8>(106u /* 106 & 0xFF */)) {
  6881. TestArenaMap_MapBoolBoolEntry_DoNotUse::Parser< ::google::protobuf::internal::MapField<
  6882. TestArenaMap_MapBoolBoolEntry_DoNotUse,
  6883. bool, bool,
  6884. ::google::protobuf::internal::WireFormatLite::TYPE_BOOL,
  6885. ::google::protobuf::internal::WireFormatLite::TYPE_BOOL,
  6886. 0 >,
  6887. ::google::protobuf::Map< bool, bool > > parser(&map_bool_bool_);
  6888. DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
  6889. input, &parser));
  6890. } else {
  6891. goto handle_unusual;
  6892. }
  6893. break;
  6894. }
  6895. // map<string, string> map_string_string = 14;
  6896. case 14: {
  6897. if (static_cast< ::google::protobuf::uint8>(tag) ==
  6898. static_cast< ::google::protobuf::uint8>(114u /* 114 & 0xFF */)) {
  6899. TestArenaMap_MapStringStringEntry_DoNotUse::Parser< ::google::protobuf::internal::MapField<
  6900. TestArenaMap_MapStringStringEntry_DoNotUse,
  6901. ::std::string, ::std::string,
  6902. ::google::protobuf::internal::WireFormatLite::TYPE_STRING,
  6903. ::google::protobuf::internal::WireFormatLite::TYPE_STRING,
  6904. 0 >,
  6905. ::google::protobuf::Map< ::std::string, ::std::string > > parser(&map_string_string_);
  6906. DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
  6907. input, &parser));
  6908. DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
  6909. parser.key().data(), static_cast<int>(parser.key().length()),
  6910. ::google::protobuf::internal::WireFormatLite::PARSE,
  6911. "protobuf_unittest.TestArenaMap.MapStringStringEntry.key"));
  6912. DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
  6913. parser.value().data(), static_cast<int>(parser.value().length()),
  6914. ::google::protobuf::internal::WireFormatLite::PARSE,
  6915. "protobuf_unittest.TestArenaMap.MapStringStringEntry.value"));
  6916. } else {
  6917. goto handle_unusual;
  6918. }
  6919. break;
  6920. }
  6921. // map<int32, bytes> map_int32_bytes = 15;
  6922. case 15: {
  6923. if (static_cast< ::google::protobuf::uint8>(tag) ==
  6924. static_cast< ::google::protobuf::uint8>(122u /* 122 & 0xFF */)) {
  6925. TestArenaMap_MapInt32BytesEntry_DoNotUse::Parser< ::google::protobuf::internal::MapField<
  6926. TestArenaMap_MapInt32BytesEntry_DoNotUse,
  6927. ::google::protobuf::int32, ::std::string,
  6928. ::google::protobuf::internal::WireFormatLite::TYPE_INT32,
  6929. ::google::protobuf::internal::WireFormatLite::TYPE_BYTES,
  6930. 0 >,
  6931. ::google::protobuf::Map< ::google::protobuf::int32, ::std::string > > parser(&map_int32_bytes_);
  6932. DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
  6933. input, &parser));
  6934. } else {
  6935. goto handle_unusual;
  6936. }
  6937. break;
  6938. }
  6939. // map<int32, .protobuf_unittest.MapEnum> map_int32_enum = 16;
  6940. case 16: {
  6941. if (static_cast< ::google::protobuf::uint8>(tag) ==
  6942. static_cast< ::google::protobuf::uint8>(130u /* 130 & 0xFF */)) {
  6943. TestArenaMap_MapInt32EnumEntry_DoNotUse::Parser< ::google::protobuf::internal::MapField<
  6944. TestArenaMap_MapInt32EnumEntry_DoNotUse,
  6945. ::google::protobuf::int32, ::protobuf_unittest::MapEnum,
  6946. ::google::protobuf::internal::WireFormatLite::TYPE_INT32,
  6947. ::google::protobuf::internal::WireFormatLite::TYPE_ENUM,
  6948. 0 >,
  6949. ::google::protobuf::Map< ::google::protobuf::int32, ::protobuf_unittest::MapEnum > > parser(&map_int32_enum_);
  6950. DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
  6951. input, &parser));
  6952. } else {
  6953. goto handle_unusual;
  6954. }
  6955. break;
  6956. }
  6957. // map<int32, .protobuf_unittest.ForeignMessage> map_int32_foreign_message = 17;
  6958. case 17: {
  6959. if (static_cast< ::google::protobuf::uint8>(tag) ==
  6960. static_cast< ::google::protobuf::uint8>(138u /* 138 & 0xFF */)) {
  6961. TestArenaMap_MapInt32ForeignMessageEntry_DoNotUse::Parser< ::google::protobuf::internal::MapField<
  6962. TestArenaMap_MapInt32ForeignMessageEntry_DoNotUse,
  6963. ::google::protobuf::int32, ::protobuf_unittest::ForeignMessage,
  6964. ::google::protobuf::internal::WireFormatLite::TYPE_INT32,
  6965. ::google::protobuf::internal::WireFormatLite::TYPE_MESSAGE,
  6966. 0 >,
  6967. ::google::protobuf::Map< ::google::protobuf::int32, ::protobuf_unittest::ForeignMessage > > parser(&map_int32_foreign_message_);
  6968. DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
  6969. input, &parser));
  6970. } else {
  6971. goto handle_unusual;
  6972. }
  6973. break;
  6974. }
  6975. // map<int32, .protobuf_unittest_no_arena.ForeignMessage> map_int32_foreign_message_no_arena = 18;
  6976. case 18: {
  6977. if (static_cast< ::google::protobuf::uint8>(tag) ==
  6978. static_cast< ::google::protobuf::uint8>(146u /* 146 & 0xFF */)) {
  6979. TestArenaMap_MapInt32ForeignMessageNoArenaEntry_DoNotUse::Parser< ::google::protobuf::internal::MapField<
  6980. TestArenaMap_MapInt32ForeignMessageNoArenaEntry_DoNotUse,
  6981. ::google::protobuf::int32, ::protobuf_unittest_no_arena::ForeignMessage,
  6982. ::google::protobuf::internal::WireFormatLite::TYPE_INT32,
  6983. ::google::protobuf::internal::WireFormatLite::TYPE_MESSAGE,
  6984. 0 >,
  6985. ::google::protobuf::Map< ::google::protobuf::int32, ::protobuf_unittest_no_arena::ForeignMessage > > parser(&map_int32_foreign_message_no_arena_);
  6986. DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
  6987. input, &parser));
  6988. } else {
  6989. goto handle_unusual;
  6990. }
  6991. break;
  6992. }
  6993. default: {
  6994. handle_unusual:
  6995. if (tag == 0) {
  6996. goto success;
  6997. }
  6998. DO_(::google::protobuf::internal::WireFormat::SkipField(
  6999. input, tag, _internal_metadata_.mutable_unknown_fields()));
  7000. break;
  7001. }
  7002. }
  7003. }
  7004. success:
  7005. // @@protoc_insertion_point(parse_success:protobuf_unittest.TestArenaMap)
  7006. return true;
  7007. failure:
  7008. // @@protoc_insertion_point(parse_failure:protobuf_unittest.TestArenaMap)
  7009. return false;
  7010. #undef DO_
  7011. }
  7012. void TestArenaMap::SerializeWithCachedSizes(
  7013. ::google::protobuf::io::CodedOutputStream* output) const {
  7014. // @@protoc_insertion_point(serialize_start:protobuf_unittest.TestArenaMap)
  7015. ::google::protobuf::uint32 cached_has_bits = 0;
  7016. (void) cached_has_bits;
  7017. // map<int32, int32> map_int32_int32 = 1;
  7018. if (!this->map_int32_int32().empty()) {
  7019. typedef ::google::protobuf::Map< ::google::protobuf::int32, ::google::protobuf::int32 >::const_pointer
  7020. ConstPtr;
  7021. typedef ::google::protobuf::internal::SortItem< ::google::protobuf::int32, ConstPtr > SortItem;
  7022. typedef ::google::protobuf::internal::CompareByFirstField<SortItem> Less;
  7023. if (output->IsSerializationDeterministic() &&
  7024. this->map_int32_int32().size() > 1) {
  7025. ::std::unique_ptr<SortItem[]> items(
  7026. new SortItem[this->map_int32_int32().size()]);
  7027. typedef ::google::protobuf::Map< ::google::protobuf::int32, ::google::protobuf::int32 >::size_type size_type;
  7028. size_type n = 0;
  7029. for (::google::protobuf::Map< ::google::protobuf::int32, ::google::protobuf::int32 >::const_iterator
  7030. it = this->map_int32_int32().begin();
  7031. it != this->map_int32_int32().end(); ++it, ++n) {
  7032. items[static_cast<ptrdiff_t>(n)] = SortItem(&*it);
  7033. }
  7034. ::std::sort(&items[0], &items[static_cast<ptrdiff_t>(n)], Less());
  7035. ::std::unique_ptr<TestArenaMap_MapInt32Int32Entry_DoNotUse> entry;
  7036. for (size_type i = 0; i < n; i++) {
  7037. entry.reset(map_int32_int32_.NewEntryWrapper(
  7038. items[static_cast<ptrdiff_t>(i)].second->first, items[static_cast<ptrdiff_t>(i)].second->second));
  7039. ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
  7040. 1, *entry, output);
  7041. if (entry->GetArena() != NULL) {
  7042. entry.release();
  7043. }
  7044. }
  7045. } else {
  7046. ::std::unique_ptr<TestArenaMap_MapInt32Int32Entry_DoNotUse> entry;
  7047. for (::google::protobuf::Map< ::google::protobuf::int32, ::google::protobuf::int32 >::const_iterator
  7048. it = this->map_int32_int32().begin();
  7049. it != this->map_int32_int32().end(); ++it) {
  7050. entry.reset(map_int32_int32_.NewEntryWrapper(
  7051. it->first, it->second));
  7052. ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
  7053. 1, *entry, output);
  7054. if (entry->GetArena() != NULL) {
  7055. entry.release();
  7056. }
  7057. }
  7058. }
  7059. }
  7060. // map<int64, int64> map_int64_int64 = 2;
  7061. if (!this->map_int64_int64().empty()) {
  7062. typedef ::google::protobuf::Map< ::google::protobuf::int64, ::google::protobuf::int64 >::const_pointer
  7063. ConstPtr;
  7064. typedef ::google::protobuf::internal::SortItem< ::google::protobuf::int64, ConstPtr > SortItem;
  7065. typedef ::google::protobuf::internal::CompareByFirstField<SortItem> Less;
  7066. if (output->IsSerializationDeterministic() &&
  7067. this->map_int64_int64().size() > 1) {
  7068. ::std::unique_ptr<SortItem[]> items(
  7069. new SortItem[this->map_int64_int64().size()]);
  7070. typedef ::google::protobuf::Map< ::google::protobuf::int64, ::google::protobuf::int64 >::size_type size_type;
  7071. size_type n = 0;
  7072. for (::google::protobuf::Map< ::google::protobuf::int64, ::google::protobuf::int64 >::const_iterator
  7073. it = this->map_int64_int64().begin();
  7074. it != this->map_int64_int64().end(); ++it, ++n) {
  7075. items[static_cast<ptrdiff_t>(n)] = SortItem(&*it);
  7076. }
  7077. ::std::sort(&items[0], &items[static_cast<ptrdiff_t>(n)], Less());
  7078. ::std::unique_ptr<TestArenaMap_MapInt64Int64Entry_DoNotUse> entry;
  7079. for (size_type i = 0; i < n; i++) {
  7080. entry.reset(map_int64_int64_.NewEntryWrapper(
  7081. items[static_cast<ptrdiff_t>(i)].second->first, items[static_cast<ptrdiff_t>(i)].second->second));
  7082. ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
  7083. 2, *entry, output);
  7084. if (entry->GetArena() != NULL) {
  7085. entry.release();
  7086. }
  7087. }
  7088. } else {
  7089. ::std::unique_ptr<TestArenaMap_MapInt64Int64Entry_DoNotUse> entry;
  7090. for (::google::protobuf::Map< ::google::protobuf::int64, ::google::protobuf::int64 >::const_iterator
  7091. it = this->map_int64_int64().begin();
  7092. it != this->map_int64_int64().end(); ++it) {
  7093. entry.reset(map_int64_int64_.NewEntryWrapper(
  7094. it->first, it->second));
  7095. ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
  7096. 2, *entry, output);
  7097. if (entry->GetArena() != NULL) {
  7098. entry.release();
  7099. }
  7100. }
  7101. }
  7102. }
  7103. // map<uint32, uint32> map_uint32_uint32 = 3;
  7104. if (!this->map_uint32_uint32().empty()) {
  7105. typedef ::google::protobuf::Map< ::google::protobuf::uint32, ::google::protobuf::uint32 >::const_pointer
  7106. ConstPtr;
  7107. typedef ::google::protobuf::internal::SortItem< ::google::protobuf::uint32, ConstPtr > SortItem;
  7108. typedef ::google::protobuf::internal::CompareByFirstField<SortItem> Less;
  7109. if (output->IsSerializationDeterministic() &&
  7110. this->map_uint32_uint32().size() > 1) {
  7111. ::std::unique_ptr<SortItem[]> items(
  7112. new SortItem[this->map_uint32_uint32().size()]);
  7113. typedef ::google::protobuf::Map< ::google::protobuf::uint32, ::google::protobuf::uint32 >::size_type size_type;
  7114. size_type n = 0;
  7115. for (::google::protobuf::Map< ::google::protobuf::uint32, ::google::protobuf::uint32 >::const_iterator
  7116. it = this->map_uint32_uint32().begin();
  7117. it != this->map_uint32_uint32().end(); ++it, ++n) {
  7118. items[static_cast<ptrdiff_t>(n)] = SortItem(&*it);
  7119. }
  7120. ::std::sort(&items[0], &items[static_cast<ptrdiff_t>(n)], Less());
  7121. ::std::unique_ptr<TestArenaMap_MapUint32Uint32Entry_DoNotUse> entry;
  7122. for (size_type i = 0; i < n; i++) {
  7123. entry.reset(map_uint32_uint32_.NewEntryWrapper(
  7124. items[static_cast<ptrdiff_t>(i)].second->first, items[static_cast<ptrdiff_t>(i)].second->second));
  7125. ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
  7126. 3, *entry, output);
  7127. if (entry->GetArena() != NULL) {
  7128. entry.release();
  7129. }
  7130. }
  7131. } else {
  7132. ::std::unique_ptr<TestArenaMap_MapUint32Uint32Entry_DoNotUse> entry;
  7133. for (::google::protobuf::Map< ::google::protobuf::uint32, ::google::protobuf::uint32 >::const_iterator
  7134. it = this->map_uint32_uint32().begin();
  7135. it != this->map_uint32_uint32().end(); ++it) {
  7136. entry.reset(map_uint32_uint32_.NewEntryWrapper(
  7137. it->first, it->second));
  7138. ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
  7139. 3, *entry, output);
  7140. if (entry->GetArena() != NULL) {
  7141. entry.release();
  7142. }
  7143. }
  7144. }
  7145. }
  7146. // map<uint64, uint64> map_uint64_uint64 = 4;
  7147. if (!this->map_uint64_uint64().empty()) {
  7148. typedef ::google::protobuf::Map< ::google::protobuf::uint64, ::google::protobuf::uint64 >::const_pointer
  7149. ConstPtr;
  7150. typedef ::google::protobuf::internal::SortItem< ::google::protobuf::uint64, ConstPtr > SortItem;
  7151. typedef ::google::protobuf::internal::CompareByFirstField<SortItem> Less;
  7152. if (output->IsSerializationDeterministic() &&
  7153. this->map_uint64_uint64().size() > 1) {
  7154. ::std::unique_ptr<SortItem[]> items(
  7155. new SortItem[this->map_uint64_uint64().size()]);
  7156. typedef ::google::protobuf::Map< ::google::protobuf::uint64, ::google::protobuf::uint64 >::size_type size_type;
  7157. size_type n = 0;
  7158. for (::google::protobuf::Map< ::google::protobuf::uint64, ::google::protobuf::uint64 >::const_iterator
  7159. it = this->map_uint64_uint64().begin();
  7160. it != this->map_uint64_uint64().end(); ++it, ++n) {
  7161. items[static_cast<ptrdiff_t>(n)] = SortItem(&*it);
  7162. }
  7163. ::std::sort(&items[0], &items[static_cast<ptrdiff_t>(n)], Less());
  7164. ::std::unique_ptr<TestArenaMap_MapUint64Uint64Entry_DoNotUse> entry;
  7165. for (size_type i = 0; i < n; i++) {
  7166. entry.reset(map_uint64_uint64_.NewEntryWrapper(
  7167. items[static_cast<ptrdiff_t>(i)].second->first, items[static_cast<ptrdiff_t>(i)].second->second));
  7168. ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
  7169. 4, *entry, output);
  7170. if (entry->GetArena() != NULL) {
  7171. entry.release();
  7172. }
  7173. }
  7174. } else {
  7175. ::std::unique_ptr<TestArenaMap_MapUint64Uint64Entry_DoNotUse> entry;
  7176. for (::google::protobuf::Map< ::google::protobuf::uint64, ::google::protobuf::uint64 >::const_iterator
  7177. it = this->map_uint64_uint64().begin();
  7178. it != this->map_uint64_uint64().end(); ++it) {
  7179. entry.reset(map_uint64_uint64_.NewEntryWrapper(
  7180. it->first, it->second));
  7181. ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
  7182. 4, *entry, output);
  7183. if (entry->GetArena() != NULL) {
  7184. entry.release();
  7185. }
  7186. }
  7187. }
  7188. }
  7189. // map<sint32, sint32> map_sint32_sint32 = 5;
  7190. if (!this->map_sint32_sint32().empty()) {
  7191. typedef ::google::protobuf::Map< ::google::protobuf::int32, ::google::protobuf::int32 >::const_pointer
  7192. ConstPtr;
  7193. typedef ::google::protobuf::internal::SortItem< ::google::protobuf::int32, ConstPtr > SortItem;
  7194. typedef ::google::protobuf::internal::CompareByFirstField<SortItem> Less;
  7195. if (output->IsSerializationDeterministic() &&
  7196. this->map_sint32_sint32().size() > 1) {
  7197. ::std::unique_ptr<SortItem[]> items(
  7198. new SortItem[this->map_sint32_sint32().size()]);
  7199. typedef ::google::protobuf::Map< ::google::protobuf::int32, ::google::protobuf::int32 >::size_type size_type;
  7200. size_type n = 0;
  7201. for (::google::protobuf::Map< ::google::protobuf::int32, ::google::protobuf::int32 >::const_iterator
  7202. it = this->map_sint32_sint32().begin();
  7203. it != this->map_sint32_sint32().end(); ++it, ++n) {
  7204. items[static_cast<ptrdiff_t>(n)] = SortItem(&*it);
  7205. }
  7206. ::std::sort(&items[0], &items[static_cast<ptrdiff_t>(n)], Less());
  7207. ::std::unique_ptr<TestArenaMap_MapSint32Sint32Entry_DoNotUse> entry;
  7208. for (size_type i = 0; i < n; i++) {
  7209. entry.reset(map_sint32_sint32_.NewEntryWrapper(
  7210. items[static_cast<ptrdiff_t>(i)].second->first, items[static_cast<ptrdiff_t>(i)].second->second));
  7211. ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
  7212. 5, *entry, output);
  7213. if (entry->GetArena() != NULL) {
  7214. entry.release();
  7215. }
  7216. }
  7217. } else {
  7218. ::std::unique_ptr<TestArenaMap_MapSint32Sint32Entry_DoNotUse> entry;
  7219. for (::google::protobuf::Map< ::google::protobuf::int32, ::google::protobuf::int32 >::const_iterator
  7220. it = this->map_sint32_sint32().begin();
  7221. it != this->map_sint32_sint32().end(); ++it) {
  7222. entry.reset(map_sint32_sint32_.NewEntryWrapper(
  7223. it->first, it->second));
  7224. ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
  7225. 5, *entry, output);
  7226. if (entry->GetArena() != NULL) {
  7227. entry.release();
  7228. }
  7229. }
  7230. }
  7231. }
  7232. // map<sint64, sint64> map_sint64_sint64 = 6;
  7233. if (!this->map_sint64_sint64().empty()) {
  7234. typedef ::google::protobuf::Map< ::google::protobuf::int64, ::google::protobuf::int64 >::const_pointer
  7235. ConstPtr;
  7236. typedef ::google::protobuf::internal::SortItem< ::google::protobuf::int64, ConstPtr > SortItem;
  7237. typedef ::google::protobuf::internal::CompareByFirstField<SortItem> Less;
  7238. if (output->IsSerializationDeterministic() &&
  7239. this->map_sint64_sint64().size() > 1) {
  7240. ::std::unique_ptr<SortItem[]> items(
  7241. new SortItem[this->map_sint64_sint64().size()]);
  7242. typedef ::google::protobuf::Map< ::google::protobuf::int64, ::google::protobuf::int64 >::size_type size_type;
  7243. size_type n = 0;
  7244. for (::google::protobuf::Map< ::google::protobuf::int64, ::google::protobuf::int64 >::const_iterator
  7245. it = this->map_sint64_sint64().begin();
  7246. it != this->map_sint64_sint64().end(); ++it, ++n) {
  7247. items[static_cast<ptrdiff_t>(n)] = SortItem(&*it);
  7248. }
  7249. ::std::sort(&items[0], &items[static_cast<ptrdiff_t>(n)], Less());
  7250. ::std::unique_ptr<TestArenaMap_MapSint64Sint64Entry_DoNotUse> entry;
  7251. for (size_type i = 0; i < n; i++) {
  7252. entry.reset(map_sint64_sint64_.NewEntryWrapper(
  7253. items[static_cast<ptrdiff_t>(i)].second->first, items[static_cast<ptrdiff_t>(i)].second->second));
  7254. ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
  7255. 6, *entry, output);
  7256. if (entry->GetArena() != NULL) {
  7257. entry.release();
  7258. }
  7259. }
  7260. } else {
  7261. ::std::unique_ptr<TestArenaMap_MapSint64Sint64Entry_DoNotUse> entry;
  7262. for (::google::protobuf::Map< ::google::protobuf::int64, ::google::protobuf::int64 >::const_iterator
  7263. it = this->map_sint64_sint64().begin();
  7264. it != this->map_sint64_sint64().end(); ++it) {
  7265. entry.reset(map_sint64_sint64_.NewEntryWrapper(
  7266. it->first, it->second));
  7267. ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
  7268. 6, *entry, output);
  7269. if (entry->GetArena() != NULL) {
  7270. entry.release();
  7271. }
  7272. }
  7273. }
  7274. }
  7275. // map<fixed32, fixed32> map_fixed32_fixed32 = 7;
  7276. if (!this->map_fixed32_fixed32().empty()) {
  7277. typedef ::google::protobuf::Map< ::google::protobuf::uint32, ::google::protobuf::uint32 >::const_pointer
  7278. ConstPtr;
  7279. typedef ::google::protobuf::internal::SortItem< ::google::protobuf::uint32, ConstPtr > SortItem;
  7280. typedef ::google::protobuf::internal::CompareByFirstField<SortItem> Less;
  7281. if (output->IsSerializationDeterministic() &&
  7282. this->map_fixed32_fixed32().size() > 1) {
  7283. ::std::unique_ptr<SortItem[]> items(
  7284. new SortItem[this->map_fixed32_fixed32().size()]);
  7285. typedef ::google::protobuf::Map< ::google::protobuf::uint32, ::google::protobuf::uint32 >::size_type size_type;
  7286. size_type n = 0;
  7287. for (::google::protobuf::Map< ::google::protobuf::uint32, ::google::protobuf::uint32 >::const_iterator
  7288. it = this->map_fixed32_fixed32().begin();
  7289. it != this->map_fixed32_fixed32().end(); ++it, ++n) {
  7290. items[static_cast<ptrdiff_t>(n)] = SortItem(&*it);
  7291. }
  7292. ::std::sort(&items[0], &items[static_cast<ptrdiff_t>(n)], Less());
  7293. ::std::unique_ptr<TestArenaMap_MapFixed32Fixed32Entry_DoNotUse> entry;
  7294. for (size_type i = 0; i < n; i++) {
  7295. entry.reset(map_fixed32_fixed32_.NewEntryWrapper(
  7296. items[static_cast<ptrdiff_t>(i)].second->first, items[static_cast<ptrdiff_t>(i)].second->second));
  7297. ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
  7298. 7, *entry, output);
  7299. if (entry->GetArena() != NULL) {
  7300. entry.release();
  7301. }
  7302. }
  7303. } else {
  7304. ::std::unique_ptr<TestArenaMap_MapFixed32Fixed32Entry_DoNotUse> entry;
  7305. for (::google::protobuf::Map< ::google::protobuf::uint32, ::google::protobuf::uint32 >::const_iterator
  7306. it = this->map_fixed32_fixed32().begin();
  7307. it != this->map_fixed32_fixed32().end(); ++it) {
  7308. entry.reset(map_fixed32_fixed32_.NewEntryWrapper(
  7309. it->first, it->second));
  7310. ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
  7311. 7, *entry, output);
  7312. if (entry->GetArena() != NULL) {
  7313. entry.release();
  7314. }
  7315. }
  7316. }
  7317. }
  7318. // map<fixed64, fixed64> map_fixed64_fixed64 = 8;
  7319. if (!this->map_fixed64_fixed64().empty()) {
  7320. typedef ::google::protobuf::Map< ::google::protobuf::uint64, ::google::protobuf::uint64 >::const_pointer
  7321. ConstPtr;
  7322. typedef ::google::protobuf::internal::SortItem< ::google::protobuf::uint64, ConstPtr > SortItem;
  7323. typedef ::google::protobuf::internal::CompareByFirstField<SortItem> Less;
  7324. if (output->IsSerializationDeterministic() &&
  7325. this->map_fixed64_fixed64().size() > 1) {
  7326. ::std::unique_ptr<SortItem[]> items(
  7327. new SortItem[this->map_fixed64_fixed64().size()]);
  7328. typedef ::google::protobuf::Map< ::google::protobuf::uint64, ::google::protobuf::uint64 >::size_type size_type;
  7329. size_type n = 0;
  7330. for (::google::protobuf::Map< ::google::protobuf::uint64, ::google::protobuf::uint64 >::const_iterator
  7331. it = this->map_fixed64_fixed64().begin();
  7332. it != this->map_fixed64_fixed64().end(); ++it, ++n) {
  7333. items[static_cast<ptrdiff_t>(n)] = SortItem(&*it);
  7334. }
  7335. ::std::sort(&items[0], &items[static_cast<ptrdiff_t>(n)], Less());
  7336. ::std::unique_ptr<TestArenaMap_MapFixed64Fixed64Entry_DoNotUse> entry;
  7337. for (size_type i = 0; i < n; i++) {
  7338. entry.reset(map_fixed64_fixed64_.NewEntryWrapper(
  7339. items[static_cast<ptrdiff_t>(i)].second->first, items[static_cast<ptrdiff_t>(i)].second->second));
  7340. ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
  7341. 8, *entry, output);
  7342. if (entry->GetArena() != NULL) {
  7343. entry.release();
  7344. }
  7345. }
  7346. } else {
  7347. ::std::unique_ptr<TestArenaMap_MapFixed64Fixed64Entry_DoNotUse> entry;
  7348. for (::google::protobuf::Map< ::google::protobuf::uint64, ::google::protobuf::uint64 >::const_iterator
  7349. it = this->map_fixed64_fixed64().begin();
  7350. it != this->map_fixed64_fixed64().end(); ++it) {
  7351. entry.reset(map_fixed64_fixed64_.NewEntryWrapper(
  7352. it->first, it->second));
  7353. ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
  7354. 8, *entry, output);
  7355. if (entry->GetArena() != NULL) {
  7356. entry.release();
  7357. }
  7358. }
  7359. }
  7360. }
  7361. // map<sfixed32, sfixed32> map_sfixed32_sfixed32 = 9;
  7362. if (!this->map_sfixed32_sfixed32().empty()) {
  7363. typedef ::google::protobuf::Map< ::google::protobuf::int32, ::google::protobuf::int32 >::const_pointer
  7364. ConstPtr;
  7365. typedef ::google::protobuf::internal::SortItem< ::google::protobuf::int32, ConstPtr > SortItem;
  7366. typedef ::google::protobuf::internal::CompareByFirstField<SortItem> Less;
  7367. if (output->IsSerializationDeterministic() &&
  7368. this->map_sfixed32_sfixed32().size() > 1) {
  7369. ::std::unique_ptr<SortItem[]> items(
  7370. new SortItem[this->map_sfixed32_sfixed32().size()]);
  7371. typedef ::google::protobuf::Map< ::google::protobuf::int32, ::google::protobuf::int32 >::size_type size_type;
  7372. size_type n = 0;
  7373. for (::google::protobuf::Map< ::google::protobuf::int32, ::google::protobuf::int32 >::const_iterator
  7374. it = this->map_sfixed32_sfixed32().begin();
  7375. it != this->map_sfixed32_sfixed32().end(); ++it, ++n) {
  7376. items[static_cast<ptrdiff_t>(n)] = SortItem(&*it);
  7377. }
  7378. ::std::sort(&items[0], &items[static_cast<ptrdiff_t>(n)], Less());
  7379. ::std::unique_ptr<TestArenaMap_MapSfixed32Sfixed32Entry_DoNotUse> entry;
  7380. for (size_type i = 0; i < n; i++) {
  7381. entry.reset(map_sfixed32_sfixed32_.NewEntryWrapper(
  7382. items[static_cast<ptrdiff_t>(i)].second->first, items[static_cast<ptrdiff_t>(i)].second->second));
  7383. ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
  7384. 9, *entry, output);
  7385. if (entry->GetArena() != NULL) {
  7386. entry.release();
  7387. }
  7388. }
  7389. } else {
  7390. ::std::unique_ptr<TestArenaMap_MapSfixed32Sfixed32Entry_DoNotUse> entry;
  7391. for (::google::protobuf::Map< ::google::protobuf::int32, ::google::protobuf::int32 >::const_iterator
  7392. it = this->map_sfixed32_sfixed32().begin();
  7393. it != this->map_sfixed32_sfixed32().end(); ++it) {
  7394. entry.reset(map_sfixed32_sfixed32_.NewEntryWrapper(
  7395. it->first, it->second));
  7396. ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
  7397. 9, *entry, output);
  7398. if (entry->GetArena() != NULL) {
  7399. entry.release();
  7400. }
  7401. }
  7402. }
  7403. }
  7404. // map<sfixed64, sfixed64> map_sfixed64_sfixed64 = 10;
  7405. if (!this->map_sfixed64_sfixed64().empty()) {
  7406. typedef ::google::protobuf::Map< ::google::protobuf::int64, ::google::protobuf::int64 >::const_pointer
  7407. ConstPtr;
  7408. typedef ::google::protobuf::internal::SortItem< ::google::protobuf::int64, ConstPtr > SortItem;
  7409. typedef ::google::protobuf::internal::CompareByFirstField<SortItem> Less;
  7410. if (output->IsSerializationDeterministic() &&
  7411. this->map_sfixed64_sfixed64().size() > 1) {
  7412. ::std::unique_ptr<SortItem[]> items(
  7413. new SortItem[this->map_sfixed64_sfixed64().size()]);
  7414. typedef ::google::protobuf::Map< ::google::protobuf::int64, ::google::protobuf::int64 >::size_type size_type;
  7415. size_type n = 0;
  7416. for (::google::protobuf::Map< ::google::protobuf::int64, ::google::protobuf::int64 >::const_iterator
  7417. it = this->map_sfixed64_sfixed64().begin();
  7418. it != this->map_sfixed64_sfixed64().end(); ++it, ++n) {
  7419. items[static_cast<ptrdiff_t>(n)] = SortItem(&*it);
  7420. }
  7421. ::std::sort(&items[0], &items[static_cast<ptrdiff_t>(n)], Less());
  7422. ::std::unique_ptr<TestArenaMap_MapSfixed64Sfixed64Entry_DoNotUse> entry;
  7423. for (size_type i = 0; i < n; i++) {
  7424. entry.reset(map_sfixed64_sfixed64_.NewEntryWrapper(
  7425. items[static_cast<ptrdiff_t>(i)].second->first, items[static_cast<ptrdiff_t>(i)].second->second));
  7426. ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
  7427. 10, *entry, output);
  7428. if (entry->GetArena() != NULL) {
  7429. entry.release();
  7430. }
  7431. }
  7432. } else {
  7433. ::std::unique_ptr<TestArenaMap_MapSfixed64Sfixed64Entry_DoNotUse> entry;
  7434. for (::google::protobuf::Map< ::google::protobuf::int64, ::google::protobuf::int64 >::const_iterator
  7435. it = this->map_sfixed64_sfixed64().begin();
  7436. it != this->map_sfixed64_sfixed64().end(); ++it) {
  7437. entry.reset(map_sfixed64_sfixed64_.NewEntryWrapper(
  7438. it->first, it->second));
  7439. ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
  7440. 10, *entry, output);
  7441. if (entry->GetArena() != NULL) {
  7442. entry.release();
  7443. }
  7444. }
  7445. }
  7446. }
  7447. // map<int32, float> map_int32_float = 11;
  7448. if (!this->map_int32_float().empty()) {
  7449. typedef ::google::protobuf::Map< ::google::protobuf::int32, float >::const_pointer
  7450. ConstPtr;
  7451. typedef ::google::protobuf::internal::SortItem< ::google::protobuf::int32, ConstPtr > SortItem;
  7452. typedef ::google::protobuf::internal::CompareByFirstField<SortItem> Less;
  7453. if (output->IsSerializationDeterministic() &&
  7454. this->map_int32_float().size() > 1) {
  7455. ::std::unique_ptr<SortItem[]> items(
  7456. new SortItem[this->map_int32_float().size()]);
  7457. typedef ::google::protobuf::Map< ::google::protobuf::int32, float >::size_type size_type;
  7458. size_type n = 0;
  7459. for (::google::protobuf::Map< ::google::protobuf::int32, float >::const_iterator
  7460. it = this->map_int32_float().begin();
  7461. it != this->map_int32_float().end(); ++it, ++n) {
  7462. items[static_cast<ptrdiff_t>(n)] = SortItem(&*it);
  7463. }
  7464. ::std::sort(&items[0], &items[static_cast<ptrdiff_t>(n)], Less());
  7465. ::std::unique_ptr<TestArenaMap_MapInt32FloatEntry_DoNotUse> entry;
  7466. for (size_type i = 0; i < n; i++) {
  7467. entry.reset(map_int32_float_.NewEntryWrapper(
  7468. items[static_cast<ptrdiff_t>(i)].second->first, items[static_cast<ptrdiff_t>(i)].second->second));
  7469. ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
  7470. 11, *entry, output);
  7471. if (entry->GetArena() != NULL) {
  7472. entry.release();
  7473. }
  7474. }
  7475. } else {
  7476. ::std::unique_ptr<TestArenaMap_MapInt32FloatEntry_DoNotUse> entry;
  7477. for (::google::protobuf::Map< ::google::protobuf::int32, float >::const_iterator
  7478. it = this->map_int32_float().begin();
  7479. it != this->map_int32_float().end(); ++it) {
  7480. entry.reset(map_int32_float_.NewEntryWrapper(
  7481. it->first, it->second));
  7482. ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
  7483. 11, *entry, output);
  7484. if (entry->GetArena() != NULL) {
  7485. entry.release();
  7486. }
  7487. }
  7488. }
  7489. }
  7490. // map<int32, double> map_int32_double = 12;
  7491. if (!this->map_int32_double().empty()) {
  7492. typedef ::google::protobuf::Map< ::google::protobuf::int32, double >::const_pointer
  7493. ConstPtr;
  7494. typedef ::google::protobuf::internal::SortItem< ::google::protobuf::int32, ConstPtr > SortItem;
  7495. typedef ::google::protobuf::internal::CompareByFirstField<SortItem> Less;
  7496. if (output->IsSerializationDeterministic() &&
  7497. this->map_int32_double().size() > 1) {
  7498. ::std::unique_ptr<SortItem[]> items(
  7499. new SortItem[this->map_int32_double().size()]);
  7500. typedef ::google::protobuf::Map< ::google::protobuf::int32, double >::size_type size_type;
  7501. size_type n = 0;
  7502. for (::google::protobuf::Map< ::google::protobuf::int32, double >::const_iterator
  7503. it = this->map_int32_double().begin();
  7504. it != this->map_int32_double().end(); ++it, ++n) {
  7505. items[static_cast<ptrdiff_t>(n)] = SortItem(&*it);
  7506. }
  7507. ::std::sort(&items[0], &items[static_cast<ptrdiff_t>(n)], Less());
  7508. ::std::unique_ptr<TestArenaMap_MapInt32DoubleEntry_DoNotUse> entry;
  7509. for (size_type i = 0; i < n; i++) {
  7510. entry.reset(map_int32_double_.NewEntryWrapper(
  7511. items[static_cast<ptrdiff_t>(i)].second->first, items[static_cast<ptrdiff_t>(i)].second->second));
  7512. ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
  7513. 12, *entry, output);
  7514. if (entry->GetArena() != NULL) {
  7515. entry.release();
  7516. }
  7517. }
  7518. } else {
  7519. ::std::unique_ptr<TestArenaMap_MapInt32DoubleEntry_DoNotUse> entry;
  7520. for (::google::protobuf::Map< ::google::protobuf::int32, double >::const_iterator
  7521. it = this->map_int32_double().begin();
  7522. it != this->map_int32_double().end(); ++it) {
  7523. entry.reset(map_int32_double_.NewEntryWrapper(
  7524. it->first, it->second));
  7525. ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
  7526. 12, *entry, output);
  7527. if (entry->GetArena() != NULL) {
  7528. entry.release();
  7529. }
  7530. }
  7531. }
  7532. }
  7533. // map<bool, bool> map_bool_bool = 13;
  7534. if (!this->map_bool_bool().empty()) {
  7535. typedef ::google::protobuf::Map< bool, bool >::const_pointer
  7536. ConstPtr;
  7537. typedef ::google::protobuf::internal::SortItem< bool, ConstPtr > SortItem;
  7538. typedef ::google::protobuf::internal::CompareByFirstField<SortItem> Less;
  7539. if (output->IsSerializationDeterministic() &&
  7540. this->map_bool_bool().size() > 1) {
  7541. ::std::unique_ptr<SortItem[]> items(
  7542. new SortItem[this->map_bool_bool().size()]);
  7543. typedef ::google::protobuf::Map< bool, bool >::size_type size_type;
  7544. size_type n = 0;
  7545. for (::google::protobuf::Map< bool, bool >::const_iterator
  7546. it = this->map_bool_bool().begin();
  7547. it != this->map_bool_bool().end(); ++it, ++n) {
  7548. items[static_cast<ptrdiff_t>(n)] = SortItem(&*it);
  7549. }
  7550. ::std::sort(&items[0], &items[static_cast<ptrdiff_t>(n)], Less());
  7551. ::std::unique_ptr<TestArenaMap_MapBoolBoolEntry_DoNotUse> entry;
  7552. for (size_type i = 0; i < n; i++) {
  7553. entry.reset(map_bool_bool_.NewEntryWrapper(
  7554. items[static_cast<ptrdiff_t>(i)].second->first, items[static_cast<ptrdiff_t>(i)].second->second));
  7555. ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
  7556. 13, *entry, output);
  7557. if (entry->GetArena() != NULL) {
  7558. entry.release();
  7559. }
  7560. }
  7561. } else {
  7562. ::std::unique_ptr<TestArenaMap_MapBoolBoolEntry_DoNotUse> entry;
  7563. for (::google::protobuf::Map< bool, bool >::const_iterator
  7564. it = this->map_bool_bool().begin();
  7565. it != this->map_bool_bool().end(); ++it) {
  7566. entry.reset(map_bool_bool_.NewEntryWrapper(
  7567. it->first, it->second));
  7568. ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
  7569. 13, *entry, output);
  7570. if (entry->GetArena() != NULL) {
  7571. entry.release();
  7572. }
  7573. }
  7574. }
  7575. }
  7576. // map<string, string> map_string_string = 14;
  7577. if (!this->map_string_string().empty()) {
  7578. typedef ::google::protobuf::Map< ::std::string, ::std::string >::const_pointer
  7579. ConstPtr;
  7580. typedef ConstPtr SortItem;
  7581. typedef ::google::protobuf::internal::CompareByDerefFirst<SortItem> Less;
  7582. struct Utf8Check {
  7583. static void Check(ConstPtr p) {
  7584. ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
  7585. p->first.data(), static_cast<int>(p->first.length()),
  7586. ::google::protobuf::internal::WireFormatLite::SERIALIZE,
  7587. "protobuf_unittest.TestArenaMap.MapStringStringEntry.key");
  7588. ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
  7589. p->second.data(), static_cast<int>(p->second.length()),
  7590. ::google::protobuf::internal::WireFormatLite::SERIALIZE,
  7591. "protobuf_unittest.TestArenaMap.MapStringStringEntry.value");
  7592. }
  7593. };
  7594. if (output->IsSerializationDeterministic() &&
  7595. this->map_string_string().size() > 1) {
  7596. ::std::unique_ptr<SortItem[]> items(
  7597. new SortItem[this->map_string_string().size()]);
  7598. typedef ::google::protobuf::Map< ::std::string, ::std::string >::size_type size_type;
  7599. size_type n = 0;
  7600. for (::google::protobuf::Map< ::std::string, ::std::string >::const_iterator
  7601. it = this->map_string_string().begin();
  7602. it != this->map_string_string().end(); ++it, ++n) {
  7603. items[static_cast<ptrdiff_t>(n)] = SortItem(&*it);
  7604. }
  7605. ::std::sort(&items[0], &items[static_cast<ptrdiff_t>(n)], Less());
  7606. ::std::unique_ptr<TestArenaMap_MapStringStringEntry_DoNotUse> entry;
  7607. for (size_type i = 0; i < n; i++) {
  7608. entry.reset(map_string_string_.NewEntryWrapper(
  7609. items[static_cast<ptrdiff_t>(i)]->first, items[static_cast<ptrdiff_t>(i)]->second));
  7610. ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
  7611. 14, *entry, output);
  7612. if (entry->GetArena() != NULL) {
  7613. entry.release();
  7614. }
  7615. Utf8Check::Check(items[static_cast<ptrdiff_t>(i)]);
  7616. }
  7617. } else {
  7618. ::std::unique_ptr<TestArenaMap_MapStringStringEntry_DoNotUse> entry;
  7619. for (::google::protobuf::Map< ::std::string, ::std::string >::const_iterator
  7620. it = this->map_string_string().begin();
  7621. it != this->map_string_string().end(); ++it) {
  7622. entry.reset(map_string_string_.NewEntryWrapper(
  7623. it->first, it->second));
  7624. ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
  7625. 14, *entry, output);
  7626. if (entry->GetArena() != NULL) {
  7627. entry.release();
  7628. }
  7629. Utf8Check::Check(&*it);
  7630. }
  7631. }
  7632. }
  7633. // map<int32, bytes> map_int32_bytes = 15;
  7634. if (!this->map_int32_bytes().empty()) {
  7635. typedef ::google::protobuf::Map< ::google::protobuf::int32, ::std::string >::const_pointer
  7636. ConstPtr;
  7637. typedef ::google::protobuf::internal::SortItem< ::google::protobuf::int32, ConstPtr > SortItem;
  7638. typedef ::google::protobuf::internal::CompareByFirstField<SortItem> Less;
  7639. if (output->IsSerializationDeterministic() &&
  7640. this->map_int32_bytes().size() > 1) {
  7641. ::std::unique_ptr<SortItem[]> items(
  7642. new SortItem[this->map_int32_bytes().size()]);
  7643. typedef ::google::protobuf::Map< ::google::protobuf::int32, ::std::string >::size_type size_type;
  7644. size_type n = 0;
  7645. for (::google::protobuf::Map< ::google::protobuf::int32, ::std::string >::const_iterator
  7646. it = this->map_int32_bytes().begin();
  7647. it != this->map_int32_bytes().end(); ++it, ++n) {
  7648. items[static_cast<ptrdiff_t>(n)] = SortItem(&*it);
  7649. }
  7650. ::std::sort(&items[0], &items[static_cast<ptrdiff_t>(n)], Less());
  7651. ::std::unique_ptr<TestArenaMap_MapInt32BytesEntry_DoNotUse> entry;
  7652. for (size_type i = 0; i < n; i++) {
  7653. entry.reset(map_int32_bytes_.NewEntryWrapper(
  7654. items[static_cast<ptrdiff_t>(i)].second->first, items[static_cast<ptrdiff_t>(i)].second->second));
  7655. ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
  7656. 15, *entry, output);
  7657. if (entry->GetArena() != NULL) {
  7658. entry.release();
  7659. }
  7660. }
  7661. } else {
  7662. ::std::unique_ptr<TestArenaMap_MapInt32BytesEntry_DoNotUse> entry;
  7663. for (::google::protobuf::Map< ::google::protobuf::int32, ::std::string >::const_iterator
  7664. it = this->map_int32_bytes().begin();
  7665. it != this->map_int32_bytes().end(); ++it) {
  7666. entry.reset(map_int32_bytes_.NewEntryWrapper(
  7667. it->first, it->second));
  7668. ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
  7669. 15, *entry, output);
  7670. if (entry->GetArena() != NULL) {
  7671. entry.release();
  7672. }
  7673. }
  7674. }
  7675. }
  7676. // map<int32, .protobuf_unittest.MapEnum> map_int32_enum = 16;
  7677. if (!this->map_int32_enum().empty()) {
  7678. typedef ::google::protobuf::Map< ::google::protobuf::int32, ::protobuf_unittest::MapEnum >::const_pointer
  7679. ConstPtr;
  7680. typedef ::google::protobuf::internal::SortItem< ::google::protobuf::int32, ConstPtr > SortItem;
  7681. typedef ::google::protobuf::internal::CompareByFirstField<SortItem> Less;
  7682. if (output->IsSerializationDeterministic() &&
  7683. this->map_int32_enum().size() > 1) {
  7684. ::std::unique_ptr<SortItem[]> items(
  7685. new SortItem[this->map_int32_enum().size()]);
  7686. typedef ::google::protobuf::Map< ::google::protobuf::int32, ::protobuf_unittest::MapEnum >::size_type size_type;
  7687. size_type n = 0;
  7688. for (::google::protobuf::Map< ::google::protobuf::int32, ::protobuf_unittest::MapEnum >::const_iterator
  7689. it = this->map_int32_enum().begin();
  7690. it != this->map_int32_enum().end(); ++it, ++n) {
  7691. items[static_cast<ptrdiff_t>(n)] = SortItem(&*it);
  7692. }
  7693. ::std::sort(&items[0], &items[static_cast<ptrdiff_t>(n)], Less());
  7694. ::std::unique_ptr<TestArenaMap_MapInt32EnumEntry_DoNotUse> entry;
  7695. for (size_type i = 0; i < n; i++) {
  7696. entry.reset(map_int32_enum_.NewEnumEntryWrapper(
  7697. items[static_cast<ptrdiff_t>(i)].second->first, items[static_cast<ptrdiff_t>(i)].second->second));
  7698. ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
  7699. 16, *entry, output);
  7700. if (entry->GetArena() != NULL) {
  7701. entry.release();
  7702. }
  7703. }
  7704. } else {
  7705. ::std::unique_ptr<TestArenaMap_MapInt32EnumEntry_DoNotUse> entry;
  7706. for (::google::protobuf::Map< ::google::protobuf::int32, ::protobuf_unittest::MapEnum >::const_iterator
  7707. it = this->map_int32_enum().begin();
  7708. it != this->map_int32_enum().end(); ++it) {
  7709. entry.reset(map_int32_enum_.NewEnumEntryWrapper(
  7710. it->first, it->second));
  7711. ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
  7712. 16, *entry, output);
  7713. if (entry->GetArena() != NULL) {
  7714. entry.release();
  7715. }
  7716. }
  7717. }
  7718. }
  7719. // map<int32, .protobuf_unittest.ForeignMessage> map_int32_foreign_message = 17;
  7720. if (!this->map_int32_foreign_message().empty()) {
  7721. typedef ::google::protobuf::Map< ::google::protobuf::int32, ::protobuf_unittest::ForeignMessage >::const_pointer
  7722. ConstPtr;
  7723. typedef ::google::protobuf::internal::SortItem< ::google::protobuf::int32, ConstPtr > SortItem;
  7724. typedef ::google::protobuf::internal::CompareByFirstField<SortItem> Less;
  7725. if (output->IsSerializationDeterministic() &&
  7726. this->map_int32_foreign_message().size() > 1) {
  7727. ::std::unique_ptr<SortItem[]> items(
  7728. new SortItem[this->map_int32_foreign_message().size()]);
  7729. typedef ::google::protobuf::Map< ::google::protobuf::int32, ::protobuf_unittest::ForeignMessage >::size_type size_type;
  7730. size_type n = 0;
  7731. for (::google::protobuf::Map< ::google::protobuf::int32, ::protobuf_unittest::ForeignMessage >::const_iterator
  7732. it = this->map_int32_foreign_message().begin();
  7733. it != this->map_int32_foreign_message().end(); ++it, ++n) {
  7734. items[static_cast<ptrdiff_t>(n)] = SortItem(&*it);
  7735. }
  7736. ::std::sort(&items[0], &items[static_cast<ptrdiff_t>(n)], Less());
  7737. ::std::unique_ptr<TestArenaMap_MapInt32ForeignMessageEntry_DoNotUse> entry;
  7738. for (size_type i = 0; i < n; i++) {
  7739. entry.reset(map_int32_foreign_message_.NewEntryWrapper(
  7740. items[static_cast<ptrdiff_t>(i)].second->first, items[static_cast<ptrdiff_t>(i)].second->second));
  7741. ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
  7742. 17, *entry, output);
  7743. if (entry->GetArena() != NULL) {
  7744. entry.release();
  7745. }
  7746. }
  7747. } else {
  7748. ::std::unique_ptr<TestArenaMap_MapInt32ForeignMessageEntry_DoNotUse> entry;
  7749. for (::google::protobuf::Map< ::google::protobuf::int32, ::protobuf_unittest::ForeignMessage >::const_iterator
  7750. it = this->map_int32_foreign_message().begin();
  7751. it != this->map_int32_foreign_message().end(); ++it) {
  7752. entry.reset(map_int32_foreign_message_.NewEntryWrapper(
  7753. it->first, it->second));
  7754. ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
  7755. 17, *entry, output);
  7756. if (entry->GetArena() != NULL) {
  7757. entry.release();
  7758. }
  7759. }
  7760. }
  7761. }
  7762. // map<int32, .protobuf_unittest_no_arena.ForeignMessage> map_int32_foreign_message_no_arena = 18;
  7763. if (!this->map_int32_foreign_message_no_arena().empty()) {
  7764. typedef ::google::protobuf::Map< ::google::protobuf::int32, ::protobuf_unittest_no_arena::ForeignMessage >::const_pointer
  7765. ConstPtr;
  7766. typedef ::google::protobuf::internal::SortItem< ::google::protobuf::int32, ConstPtr > SortItem;
  7767. typedef ::google::protobuf::internal::CompareByFirstField<SortItem> Less;
  7768. if (output->IsSerializationDeterministic() &&
  7769. this->map_int32_foreign_message_no_arena().size() > 1) {
  7770. ::std::unique_ptr<SortItem[]> items(
  7771. new SortItem[this->map_int32_foreign_message_no_arena().size()]);
  7772. typedef ::google::protobuf::Map< ::google::protobuf::int32, ::protobuf_unittest_no_arena::ForeignMessage >::size_type size_type;
  7773. size_type n = 0;
  7774. for (::google::protobuf::Map< ::google::protobuf::int32, ::protobuf_unittest_no_arena::ForeignMessage >::const_iterator
  7775. it = this->map_int32_foreign_message_no_arena().begin();
  7776. it != this->map_int32_foreign_message_no_arena().end(); ++it, ++n) {
  7777. items[static_cast<ptrdiff_t>(n)] = SortItem(&*it);
  7778. }
  7779. ::std::sort(&items[0], &items[static_cast<ptrdiff_t>(n)], Less());
  7780. ::std::unique_ptr<TestArenaMap_MapInt32ForeignMessageNoArenaEntry_DoNotUse> entry;
  7781. for (size_type i = 0; i < n; i++) {
  7782. entry.reset(map_int32_foreign_message_no_arena_.NewEntryWrapper(
  7783. items[static_cast<ptrdiff_t>(i)].second->first, items[static_cast<ptrdiff_t>(i)].second->second));
  7784. ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
  7785. 18, *entry, output);
  7786. if (entry->GetArena() != NULL) {
  7787. entry.release();
  7788. }
  7789. }
  7790. } else {
  7791. ::std::unique_ptr<TestArenaMap_MapInt32ForeignMessageNoArenaEntry_DoNotUse> entry;
  7792. for (::google::protobuf::Map< ::google::protobuf::int32, ::protobuf_unittest_no_arena::ForeignMessage >::const_iterator
  7793. it = this->map_int32_foreign_message_no_arena().begin();
  7794. it != this->map_int32_foreign_message_no_arena().end(); ++it) {
  7795. entry.reset(map_int32_foreign_message_no_arena_.NewEntryWrapper(
  7796. it->first, it->second));
  7797. ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
  7798. 18, *entry, output);
  7799. if (entry->GetArena() != NULL) {
  7800. entry.release();
  7801. }
  7802. }
  7803. }
  7804. }
  7805. if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
  7806. ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
  7807. (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output);
  7808. }
  7809. // @@protoc_insertion_point(serialize_end:protobuf_unittest.TestArenaMap)
  7810. }
  7811. ::google::protobuf::uint8* TestArenaMap::InternalSerializeWithCachedSizesToArray(
  7812. bool deterministic, ::google::protobuf::uint8* target) const {
  7813. (void)deterministic; // Unused
  7814. // @@protoc_insertion_point(serialize_to_array_start:protobuf_unittest.TestArenaMap)
  7815. ::google::protobuf::uint32 cached_has_bits = 0;
  7816. (void) cached_has_bits;
  7817. // map<int32, int32> map_int32_int32 = 1;
  7818. if (!this->map_int32_int32().empty()) {
  7819. typedef ::google::protobuf::Map< ::google::protobuf::int32, ::google::protobuf::int32 >::const_pointer
  7820. ConstPtr;
  7821. typedef ::google::protobuf::internal::SortItem< ::google::protobuf::int32, ConstPtr > SortItem;
  7822. typedef ::google::protobuf::internal::CompareByFirstField<SortItem> Less;
  7823. if (deterministic &&
  7824. this->map_int32_int32().size() > 1) {
  7825. ::std::unique_ptr<SortItem[]> items(
  7826. new SortItem[this->map_int32_int32().size()]);
  7827. typedef ::google::protobuf::Map< ::google::protobuf::int32, ::google::protobuf::int32 >::size_type size_type;
  7828. size_type n = 0;
  7829. for (::google::protobuf::Map< ::google::protobuf::int32, ::google::protobuf::int32 >::const_iterator
  7830. it = this->map_int32_int32().begin();
  7831. it != this->map_int32_int32().end(); ++it, ++n) {
  7832. items[static_cast<ptrdiff_t>(n)] = SortItem(&*it);
  7833. }
  7834. ::std::sort(&items[0], &items[static_cast<ptrdiff_t>(n)], Less());
  7835. ::std::unique_ptr<TestArenaMap_MapInt32Int32Entry_DoNotUse> entry;
  7836. for (size_type i = 0; i < n; i++) {
  7837. entry.reset(map_int32_int32_.NewEntryWrapper(
  7838. items[static_cast<ptrdiff_t>(i)].second->first, items[static_cast<ptrdiff_t>(i)].second->second));
  7839. target = ::google::protobuf::internal::WireFormatLite::
  7840. InternalWriteMessageNoVirtualToArray(
  7841. 1, *entry, deterministic, target);
  7842. ;
  7843. if (entry->GetArena() != NULL) {
  7844. entry.release();
  7845. }
  7846. }
  7847. } else {
  7848. ::std::unique_ptr<TestArenaMap_MapInt32Int32Entry_DoNotUse> entry;
  7849. for (::google::protobuf::Map< ::google::protobuf::int32, ::google::protobuf::int32 >::const_iterator
  7850. it = this->map_int32_int32().begin();
  7851. it != this->map_int32_int32().end(); ++it) {
  7852. entry.reset(map_int32_int32_.NewEntryWrapper(
  7853. it->first, it->second));
  7854. target = ::google::protobuf::internal::WireFormatLite::
  7855. InternalWriteMessageNoVirtualToArray(
  7856. 1, *entry, deterministic, target);
  7857. ;
  7858. if (entry->GetArena() != NULL) {
  7859. entry.release();
  7860. }
  7861. }
  7862. }
  7863. }
  7864. // map<int64, int64> map_int64_int64 = 2;
  7865. if (!this->map_int64_int64().empty()) {
  7866. typedef ::google::protobuf::Map< ::google::protobuf::int64, ::google::protobuf::int64 >::const_pointer
  7867. ConstPtr;
  7868. typedef ::google::protobuf::internal::SortItem< ::google::protobuf::int64, ConstPtr > SortItem;
  7869. typedef ::google::protobuf::internal::CompareByFirstField<SortItem> Less;
  7870. if (deterministic &&
  7871. this->map_int64_int64().size() > 1) {
  7872. ::std::unique_ptr<SortItem[]> items(
  7873. new SortItem[this->map_int64_int64().size()]);
  7874. typedef ::google::protobuf::Map< ::google::protobuf::int64, ::google::protobuf::int64 >::size_type size_type;
  7875. size_type n = 0;
  7876. for (::google::protobuf::Map< ::google::protobuf::int64, ::google::protobuf::int64 >::const_iterator
  7877. it = this->map_int64_int64().begin();
  7878. it != this->map_int64_int64().end(); ++it, ++n) {
  7879. items[static_cast<ptrdiff_t>(n)] = SortItem(&*it);
  7880. }
  7881. ::std::sort(&items[0], &items[static_cast<ptrdiff_t>(n)], Less());
  7882. ::std::unique_ptr<TestArenaMap_MapInt64Int64Entry_DoNotUse> entry;
  7883. for (size_type i = 0; i < n; i++) {
  7884. entry.reset(map_int64_int64_.NewEntryWrapper(
  7885. items[static_cast<ptrdiff_t>(i)].second->first, items[static_cast<ptrdiff_t>(i)].second->second));
  7886. target = ::google::protobuf::internal::WireFormatLite::
  7887. InternalWriteMessageNoVirtualToArray(
  7888. 2, *entry, deterministic, target);
  7889. ;
  7890. if (entry->GetArena() != NULL) {
  7891. entry.release();
  7892. }
  7893. }
  7894. } else {
  7895. ::std::unique_ptr<TestArenaMap_MapInt64Int64Entry_DoNotUse> entry;
  7896. for (::google::protobuf::Map< ::google::protobuf::int64, ::google::protobuf::int64 >::const_iterator
  7897. it = this->map_int64_int64().begin();
  7898. it != this->map_int64_int64().end(); ++it) {
  7899. entry.reset(map_int64_int64_.NewEntryWrapper(
  7900. it->first, it->second));
  7901. target = ::google::protobuf::internal::WireFormatLite::
  7902. InternalWriteMessageNoVirtualToArray(
  7903. 2, *entry, deterministic, target);
  7904. ;
  7905. if (entry->GetArena() != NULL) {
  7906. entry.release();
  7907. }
  7908. }
  7909. }
  7910. }
  7911. // map<uint32, uint32> map_uint32_uint32 = 3;
  7912. if (!this->map_uint32_uint32().empty()) {
  7913. typedef ::google::protobuf::Map< ::google::protobuf::uint32, ::google::protobuf::uint32 >::const_pointer
  7914. ConstPtr;
  7915. typedef ::google::protobuf::internal::SortItem< ::google::protobuf::uint32, ConstPtr > SortItem;
  7916. typedef ::google::protobuf::internal::CompareByFirstField<SortItem> Less;
  7917. if (deterministic &&
  7918. this->map_uint32_uint32().size() > 1) {
  7919. ::std::unique_ptr<SortItem[]> items(
  7920. new SortItem[this->map_uint32_uint32().size()]);
  7921. typedef ::google::protobuf::Map< ::google::protobuf::uint32, ::google::protobuf::uint32 >::size_type size_type;
  7922. size_type n = 0;
  7923. for (::google::protobuf::Map< ::google::protobuf::uint32, ::google::protobuf::uint32 >::const_iterator
  7924. it = this->map_uint32_uint32().begin();
  7925. it != this->map_uint32_uint32().end(); ++it, ++n) {
  7926. items[static_cast<ptrdiff_t>(n)] = SortItem(&*it);
  7927. }
  7928. ::std::sort(&items[0], &items[static_cast<ptrdiff_t>(n)], Less());
  7929. ::std::unique_ptr<TestArenaMap_MapUint32Uint32Entry_DoNotUse> entry;
  7930. for (size_type i = 0; i < n; i++) {
  7931. entry.reset(map_uint32_uint32_.NewEntryWrapper(
  7932. items[static_cast<ptrdiff_t>(i)].second->first, items[static_cast<ptrdiff_t>(i)].second->second));
  7933. target = ::google::protobuf::internal::WireFormatLite::
  7934. InternalWriteMessageNoVirtualToArray(
  7935. 3, *entry, deterministic, target);
  7936. ;
  7937. if (entry->GetArena() != NULL) {
  7938. entry.release();
  7939. }
  7940. }
  7941. } else {
  7942. ::std::unique_ptr<TestArenaMap_MapUint32Uint32Entry_DoNotUse> entry;
  7943. for (::google::protobuf::Map< ::google::protobuf::uint32, ::google::protobuf::uint32 >::const_iterator
  7944. it = this->map_uint32_uint32().begin();
  7945. it != this->map_uint32_uint32().end(); ++it) {
  7946. entry.reset(map_uint32_uint32_.NewEntryWrapper(
  7947. it->first, it->second));
  7948. target = ::google::protobuf::internal::WireFormatLite::
  7949. InternalWriteMessageNoVirtualToArray(
  7950. 3, *entry, deterministic, target);
  7951. ;
  7952. if (entry->GetArena() != NULL) {
  7953. entry.release();
  7954. }
  7955. }
  7956. }
  7957. }
  7958. // map<uint64, uint64> map_uint64_uint64 = 4;
  7959. if (!this->map_uint64_uint64().empty()) {
  7960. typedef ::google::protobuf::Map< ::google::protobuf::uint64, ::google::protobuf::uint64 >::const_pointer
  7961. ConstPtr;
  7962. typedef ::google::protobuf::internal::SortItem< ::google::protobuf::uint64, ConstPtr > SortItem;
  7963. typedef ::google::protobuf::internal::CompareByFirstField<SortItem> Less;
  7964. if (deterministic &&
  7965. this->map_uint64_uint64().size() > 1) {
  7966. ::std::unique_ptr<SortItem[]> items(
  7967. new SortItem[this->map_uint64_uint64().size()]);
  7968. typedef ::google::protobuf::Map< ::google::protobuf::uint64, ::google::protobuf::uint64 >::size_type size_type;
  7969. size_type n = 0;
  7970. for (::google::protobuf::Map< ::google::protobuf::uint64, ::google::protobuf::uint64 >::const_iterator
  7971. it = this->map_uint64_uint64().begin();
  7972. it != this->map_uint64_uint64().end(); ++it, ++n) {
  7973. items[static_cast<ptrdiff_t>(n)] = SortItem(&*it);
  7974. }
  7975. ::std::sort(&items[0], &items[static_cast<ptrdiff_t>(n)], Less());
  7976. ::std::unique_ptr<TestArenaMap_MapUint64Uint64Entry_DoNotUse> entry;
  7977. for (size_type i = 0; i < n; i++) {
  7978. entry.reset(map_uint64_uint64_.NewEntryWrapper(
  7979. items[static_cast<ptrdiff_t>(i)].second->first, items[static_cast<ptrdiff_t>(i)].second->second));
  7980. target = ::google::protobuf::internal::WireFormatLite::
  7981. InternalWriteMessageNoVirtualToArray(
  7982. 4, *entry, deterministic, target);
  7983. ;
  7984. if (entry->GetArena() != NULL) {
  7985. entry.release();
  7986. }
  7987. }
  7988. } else {
  7989. ::std::unique_ptr<TestArenaMap_MapUint64Uint64Entry_DoNotUse> entry;
  7990. for (::google::protobuf::Map< ::google::protobuf::uint64, ::google::protobuf::uint64 >::const_iterator
  7991. it = this->map_uint64_uint64().begin();
  7992. it != this->map_uint64_uint64().end(); ++it) {
  7993. entry.reset(map_uint64_uint64_.NewEntryWrapper(
  7994. it->first, it->second));
  7995. target = ::google::protobuf::internal::WireFormatLite::
  7996. InternalWriteMessageNoVirtualToArray(
  7997. 4, *entry, deterministic, target);
  7998. ;
  7999. if (entry->GetArena() != NULL) {
  8000. entry.release();
  8001. }
  8002. }
  8003. }
  8004. }
  8005. // map<sint32, sint32> map_sint32_sint32 = 5;
  8006. if (!this->map_sint32_sint32().empty()) {
  8007. typedef ::google::protobuf::Map< ::google::protobuf::int32, ::google::protobuf::int32 >::const_pointer
  8008. ConstPtr;
  8009. typedef ::google::protobuf::internal::SortItem< ::google::protobuf::int32, ConstPtr > SortItem;
  8010. typedef ::google::protobuf::internal::CompareByFirstField<SortItem> Less;
  8011. if (deterministic &&
  8012. this->map_sint32_sint32().size() > 1) {
  8013. ::std::unique_ptr<SortItem[]> items(
  8014. new SortItem[this->map_sint32_sint32().size()]);
  8015. typedef ::google::protobuf::Map< ::google::protobuf::int32, ::google::protobuf::int32 >::size_type size_type;
  8016. size_type n = 0;
  8017. for (::google::protobuf::Map< ::google::protobuf::int32, ::google::protobuf::int32 >::const_iterator
  8018. it = this->map_sint32_sint32().begin();
  8019. it != this->map_sint32_sint32().end(); ++it, ++n) {
  8020. items[static_cast<ptrdiff_t>(n)] = SortItem(&*it);
  8021. }
  8022. ::std::sort(&items[0], &items[static_cast<ptrdiff_t>(n)], Less());
  8023. ::std::unique_ptr<TestArenaMap_MapSint32Sint32Entry_DoNotUse> entry;
  8024. for (size_type i = 0; i < n; i++) {
  8025. entry.reset(map_sint32_sint32_.NewEntryWrapper(
  8026. items[static_cast<ptrdiff_t>(i)].second->first, items[static_cast<ptrdiff_t>(i)].second->second));
  8027. target = ::google::protobuf::internal::WireFormatLite::
  8028. InternalWriteMessageNoVirtualToArray(
  8029. 5, *entry, deterministic, target);
  8030. ;
  8031. if (entry->GetArena() != NULL) {
  8032. entry.release();
  8033. }
  8034. }
  8035. } else {
  8036. ::std::unique_ptr<TestArenaMap_MapSint32Sint32Entry_DoNotUse> entry;
  8037. for (::google::protobuf::Map< ::google::protobuf::int32, ::google::protobuf::int32 >::const_iterator
  8038. it = this->map_sint32_sint32().begin();
  8039. it != this->map_sint32_sint32().end(); ++it) {
  8040. entry.reset(map_sint32_sint32_.NewEntryWrapper(
  8041. it->first, it->second));
  8042. target = ::google::protobuf::internal::WireFormatLite::
  8043. InternalWriteMessageNoVirtualToArray(
  8044. 5, *entry, deterministic, target);
  8045. ;
  8046. if (entry->GetArena() != NULL) {
  8047. entry.release();
  8048. }
  8049. }
  8050. }
  8051. }
  8052. // map<sint64, sint64> map_sint64_sint64 = 6;
  8053. if (!this->map_sint64_sint64().empty()) {
  8054. typedef ::google::protobuf::Map< ::google::protobuf::int64, ::google::protobuf::int64 >::const_pointer
  8055. ConstPtr;
  8056. typedef ::google::protobuf::internal::SortItem< ::google::protobuf::int64, ConstPtr > SortItem;
  8057. typedef ::google::protobuf::internal::CompareByFirstField<SortItem> Less;
  8058. if (deterministic &&
  8059. this->map_sint64_sint64().size() > 1) {
  8060. ::std::unique_ptr<SortItem[]> items(
  8061. new SortItem[this->map_sint64_sint64().size()]);
  8062. typedef ::google::protobuf::Map< ::google::protobuf::int64, ::google::protobuf::int64 >::size_type size_type;
  8063. size_type n = 0;
  8064. for (::google::protobuf::Map< ::google::protobuf::int64, ::google::protobuf::int64 >::const_iterator
  8065. it = this->map_sint64_sint64().begin();
  8066. it != this->map_sint64_sint64().end(); ++it, ++n) {
  8067. items[static_cast<ptrdiff_t>(n)] = SortItem(&*it);
  8068. }
  8069. ::std::sort(&items[0], &items[static_cast<ptrdiff_t>(n)], Less());
  8070. ::std::unique_ptr<TestArenaMap_MapSint64Sint64Entry_DoNotUse> entry;
  8071. for (size_type i = 0; i < n; i++) {
  8072. entry.reset(map_sint64_sint64_.NewEntryWrapper(
  8073. items[static_cast<ptrdiff_t>(i)].second->first, items[static_cast<ptrdiff_t>(i)].second->second));
  8074. target = ::google::protobuf::internal::WireFormatLite::
  8075. InternalWriteMessageNoVirtualToArray(
  8076. 6, *entry, deterministic, target);
  8077. ;
  8078. if (entry->GetArena() != NULL) {
  8079. entry.release();
  8080. }
  8081. }
  8082. } else {
  8083. ::std::unique_ptr<TestArenaMap_MapSint64Sint64Entry_DoNotUse> entry;
  8084. for (::google::protobuf::Map< ::google::protobuf::int64, ::google::protobuf::int64 >::const_iterator
  8085. it = this->map_sint64_sint64().begin();
  8086. it != this->map_sint64_sint64().end(); ++it) {
  8087. entry.reset(map_sint64_sint64_.NewEntryWrapper(
  8088. it->first, it->second));
  8089. target = ::google::protobuf::internal::WireFormatLite::
  8090. InternalWriteMessageNoVirtualToArray(
  8091. 6, *entry, deterministic, target);
  8092. ;
  8093. if (entry->GetArena() != NULL) {
  8094. entry.release();
  8095. }
  8096. }
  8097. }
  8098. }
  8099. // map<fixed32, fixed32> map_fixed32_fixed32 = 7;
  8100. if (!this->map_fixed32_fixed32().empty()) {
  8101. typedef ::google::protobuf::Map< ::google::protobuf::uint32, ::google::protobuf::uint32 >::const_pointer
  8102. ConstPtr;
  8103. typedef ::google::protobuf::internal::SortItem< ::google::protobuf::uint32, ConstPtr > SortItem;
  8104. typedef ::google::protobuf::internal::CompareByFirstField<SortItem> Less;
  8105. if (deterministic &&
  8106. this->map_fixed32_fixed32().size() > 1) {
  8107. ::std::unique_ptr<SortItem[]> items(
  8108. new SortItem[this->map_fixed32_fixed32().size()]);
  8109. typedef ::google::protobuf::Map< ::google::protobuf::uint32, ::google::protobuf::uint32 >::size_type size_type;
  8110. size_type n = 0;
  8111. for (::google::protobuf::Map< ::google::protobuf::uint32, ::google::protobuf::uint32 >::const_iterator
  8112. it = this->map_fixed32_fixed32().begin();
  8113. it != this->map_fixed32_fixed32().end(); ++it, ++n) {
  8114. items[static_cast<ptrdiff_t>(n)] = SortItem(&*it);
  8115. }
  8116. ::std::sort(&items[0], &items[static_cast<ptrdiff_t>(n)], Less());
  8117. ::std::unique_ptr<TestArenaMap_MapFixed32Fixed32Entry_DoNotUse> entry;
  8118. for (size_type i = 0; i < n; i++) {
  8119. entry.reset(map_fixed32_fixed32_.NewEntryWrapper(
  8120. items[static_cast<ptrdiff_t>(i)].second->first, items[static_cast<ptrdiff_t>(i)].second->second));
  8121. target = ::google::protobuf::internal::WireFormatLite::
  8122. InternalWriteMessageNoVirtualToArray(
  8123. 7, *entry, deterministic, target);
  8124. ;
  8125. if (entry->GetArena() != NULL) {
  8126. entry.release();
  8127. }
  8128. }
  8129. } else {
  8130. ::std::unique_ptr<TestArenaMap_MapFixed32Fixed32Entry_DoNotUse> entry;
  8131. for (::google::protobuf::Map< ::google::protobuf::uint32, ::google::protobuf::uint32 >::const_iterator
  8132. it = this->map_fixed32_fixed32().begin();
  8133. it != this->map_fixed32_fixed32().end(); ++it) {
  8134. entry.reset(map_fixed32_fixed32_.NewEntryWrapper(
  8135. it->first, it->second));
  8136. target = ::google::protobuf::internal::WireFormatLite::
  8137. InternalWriteMessageNoVirtualToArray(
  8138. 7, *entry, deterministic, target);
  8139. ;
  8140. if (entry->GetArena() != NULL) {
  8141. entry.release();
  8142. }
  8143. }
  8144. }
  8145. }
  8146. // map<fixed64, fixed64> map_fixed64_fixed64 = 8;
  8147. if (!this->map_fixed64_fixed64().empty()) {
  8148. typedef ::google::protobuf::Map< ::google::protobuf::uint64, ::google::protobuf::uint64 >::const_pointer
  8149. ConstPtr;
  8150. typedef ::google::protobuf::internal::SortItem< ::google::protobuf::uint64, ConstPtr > SortItem;
  8151. typedef ::google::protobuf::internal::CompareByFirstField<SortItem> Less;
  8152. if (deterministic &&
  8153. this->map_fixed64_fixed64().size() > 1) {
  8154. ::std::unique_ptr<SortItem[]> items(
  8155. new SortItem[this->map_fixed64_fixed64().size()]);
  8156. typedef ::google::protobuf::Map< ::google::protobuf::uint64, ::google::protobuf::uint64 >::size_type size_type;
  8157. size_type n = 0;
  8158. for (::google::protobuf::Map< ::google::protobuf::uint64, ::google::protobuf::uint64 >::const_iterator
  8159. it = this->map_fixed64_fixed64().begin();
  8160. it != this->map_fixed64_fixed64().end(); ++it, ++n) {
  8161. items[static_cast<ptrdiff_t>(n)] = SortItem(&*it);
  8162. }
  8163. ::std::sort(&items[0], &items[static_cast<ptrdiff_t>(n)], Less());
  8164. ::std::unique_ptr<TestArenaMap_MapFixed64Fixed64Entry_DoNotUse> entry;
  8165. for (size_type i = 0; i < n; i++) {
  8166. entry.reset(map_fixed64_fixed64_.NewEntryWrapper(
  8167. items[static_cast<ptrdiff_t>(i)].second->first, items[static_cast<ptrdiff_t>(i)].second->second));
  8168. target = ::google::protobuf::internal::WireFormatLite::
  8169. InternalWriteMessageNoVirtualToArray(
  8170. 8, *entry, deterministic, target);
  8171. ;
  8172. if (entry->GetArena() != NULL) {
  8173. entry.release();
  8174. }
  8175. }
  8176. } else {
  8177. ::std::unique_ptr<TestArenaMap_MapFixed64Fixed64Entry_DoNotUse> entry;
  8178. for (::google::protobuf::Map< ::google::protobuf::uint64, ::google::protobuf::uint64 >::const_iterator
  8179. it = this->map_fixed64_fixed64().begin();
  8180. it != this->map_fixed64_fixed64().end(); ++it) {
  8181. entry.reset(map_fixed64_fixed64_.NewEntryWrapper(
  8182. it->first, it->second));
  8183. target = ::google::protobuf::internal::WireFormatLite::
  8184. InternalWriteMessageNoVirtualToArray(
  8185. 8, *entry, deterministic, target);
  8186. ;
  8187. if (entry->GetArena() != NULL) {
  8188. entry.release();
  8189. }
  8190. }
  8191. }
  8192. }
  8193. // map<sfixed32, sfixed32> map_sfixed32_sfixed32 = 9;
  8194. if (!this->map_sfixed32_sfixed32().empty()) {
  8195. typedef ::google::protobuf::Map< ::google::protobuf::int32, ::google::protobuf::int32 >::const_pointer
  8196. ConstPtr;
  8197. typedef ::google::protobuf::internal::SortItem< ::google::protobuf::int32, ConstPtr > SortItem;
  8198. typedef ::google::protobuf::internal::CompareByFirstField<SortItem> Less;
  8199. if (deterministic &&
  8200. this->map_sfixed32_sfixed32().size() > 1) {
  8201. ::std::unique_ptr<SortItem[]> items(
  8202. new SortItem[this->map_sfixed32_sfixed32().size()]);
  8203. typedef ::google::protobuf::Map< ::google::protobuf::int32, ::google::protobuf::int32 >::size_type size_type;
  8204. size_type n = 0;
  8205. for (::google::protobuf::Map< ::google::protobuf::int32, ::google::protobuf::int32 >::const_iterator
  8206. it = this->map_sfixed32_sfixed32().begin();
  8207. it != this->map_sfixed32_sfixed32().end(); ++it, ++n) {
  8208. items[static_cast<ptrdiff_t>(n)] = SortItem(&*it);
  8209. }
  8210. ::std::sort(&items[0], &items[static_cast<ptrdiff_t>(n)], Less());
  8211. ::std::unique_ptr<TestArenaMap_MapSfixed32Sfixed32Entry_DoNotUse> entry;
  8212. for (size_type i = 0; i < n; i++) {
  8213. entry.reset(map_sfixed32_sfixed32_.NewEntryWrapper(
  8214. items[static_cast<ptrdiff_t>(i)].second->first, items[static_cast<ptrdiff_t>(i)].second->second));
  8215. target = ::google::protobuf::internal::WireFormatLite::
  8216. InternalWriteMessageNoVirtualToArray(
  8217. 9, *entry, deterministic, target);
  8218. ;
  8219. if (entry->GetArena() != NULL) {
  8220. entry.release();
  8221. }
  8222. }
  8223. } else {
  8224. ::std::unique_ptr<TestArenaMap_MapSfixed32Sfixed32Entry_DoNotUse> entry;
  8225. for (::google::protobuf::Map< ::google::protobuf::int32, ::google::protobuf::int32 >::const_iterator
  8226. it = this->map_sfixed32_sfixed32().begin();
  8227. it != this->map_sfixed32_sfixed32().end(); ++it) {
  8228. entry.reset(map_sfixed32_sfixed32_.NewEntryWrapper(
  8229. it->first, it->second));
  8230. target = ::google::protobuf::internal::WireFormatLite::
  8231. InternalWriteMessageNoVirtualToArray(
  8232. 9, *entry, deterministic, target);
  8233. ;
  8234. if (entry->GetArena() != NULL) {
  8235. entry.release();
  8236. }
  8237. }
  8238. }
  8239. }
  8240. // map<sfixed64, sfixed64> map_sfixed64_sfixed64 = 10;
  8241. if (!this->map_sfixed64_sfixed64().empty()) {
  8242. typedef ::google::protobuf::Map< ::google::protobuf::int64, ::google::protobuf::int64 >::const_pointer
  8243. ConstPtr;
  8244. typedef ::google::protobuf::internal::SortItem< ::google::protobuf::int64, ConstPtr > SortItem;
  8245. typedef ::google::protobuf::internal::CompareByFirstField<SortItem> Less;
  8246. if (deterministic &&
  8247. this->map_sfixed64_sfixed64().size() > 1) {
  8248. ::std::unique_ptr<SortItem[]> items(
  8249. new SortItem[this->map_sfixed64_sfixed64().size()]);
  8250. typedef ::google::protobuf::Map< ::google::protobuf::int64, ::google::protobuf::int64 >::size_type size_type;
  8251. size_type n = 0;
  8252. for (::google::protobuf::Map< ::google::protobuf::int64, ::google::protobuf::int64 >::const_iterator
  8253. it = this->map_sfixed64_sfixed64().begin();
  8254. it != this->map_sfixed64_sfixed64().end(); ++it, ++n) {
  8255. items[static_cast<ptrdiff_t>(n)] = SortItem(&*it);
  8256. }
  8257. ::std::sort(&items[0], &items[static_cast<ptrdiff_t>(n)], Less());
  8258. ::std::unique_ptr<TestArenaMap_MapSfixed64Sfixed64Entry_DoNotUse> entry;
  8259. for (size_type i = 0; i < n; i++) {
  8260. entry.reset(map_sfixed64_sfixed64_.NewEntryWrapper(
  8261. items[static_cast<ptrdiff_t>(i)].second->first, items[static_cast<ptrdiff_t>(i)].second->second));
  8262. target = ::google::protobuf::internal::WireFormatLite::
  8263. InternalWriteMessageNoVirtualToArray(
  8264. 10, *entry, deterministic, target);
  8265. ;
  8266. if (entry->GetArena() != NULL) {
  8267. entry.release();
  8268. }
  8269. }
  8270. } else {
  8271. ::std::unique_ptr<TestArenaMap_MapSfixed64Sfixed64Entry_DoNotUse> entry;
  8272. for (::google::protobuf::Map< ::google::protobuf::int64, ::google::protobuf::int64 >::const_iterator
  8273. it = this->map_sfixed64_sfixed64().begin();
  8274. it != this->map_sfixed64_sfixed64().end(); ++it) {
  8275. entry.reset(map_sfixed64_sfixed64_.NewEntryWrapper(
  8276. it->first, it->second));
  8277. target = ::google::protobuf::internal::WireFormatLite::
  8278. InternalWriteMessageNoVirtualToArray(
  8279. 10, *entry, deterministic, target);
  8280. ;
  8281. if (entry->GetArena() != NULL) {
  8282. entry.release();
  8283. }
  8284. }
  8285. }
  8286. }
  8287. // map<int32, float> map_int32_float = 11;
  8288. if (!this->map_int32_float().empty()) {
  8289. typedef ::google::protobuf::Map< ::google::protobuf::int32, float >::const_pointer
  8290. ConstPtr;
  8291. typedef ::google::protobuf::internal::SortItem< ::google::protobuf::int32, ConstPtr > SortItem;
  8292. typedef ::google::protobuf::internal::CompareByFirstField<SortItem> Less;
  8293. if (deterministic &&
  8294. this->map_int32_float().size() > 1) {
  8295. ::std::unique_ptr<SortItem[]> items(
  8296. new SortItem[this->map_int32_float().size()]);
  8297. typedef ::google::protobuf::Map< ::google::protobuf::int32, float >::size_type size_type;
  8298. size_type n = 0;
  8299. for (::google::protobuf::Map< ::google::protobuf::int32, float >::const_iterator
  8300. it = this->map_int32_float().begin();
  8301. it != this->map_int32_float().end(); ++it, ++n) {
  8302. items[static_cast<ptrdiff_t>(n)] = SortItem(&*it);
  8303. }
  8304. ::std::sort(&items[0], &items[static_cast<ptrdiff_t>(n)], Less());
  8305. ::std::unique_ptr<TestArenaMap_MapInt32FloatEntry_DoNotUse> entry;
  8306. for (size_type i = 0; i < n; i++) {
  8307. entry.reset(map_int32_float_.NewEntryWrapper(
  8308. items[static_cast<ptrdiff_t>(i)].second->first, items[static_cast<ptrdiff_t>(i)].second->second));
  8309. target = ::google::protobuf::internal::WireFormatLite::
  8310. InternalWriteMessageNoVirtualToArray(
  8311. 11, *entry, deterministic, target);
  8312. ;
  8313. if (entry->GetArena() != NULL) {
  8314. entry.release();
  8315. }
  8316. }
  8317. } else {
  8318. ::std::unique_ptr<TestArenaMap_MapInt32FloatEntry_DoNotUse> entry;
  8319. for (::google::protobuf::Map< ::google::protobuf::int32, float >::const_iterator
  8320. it = this->map_int32_float().begin();
  8321. it != this->map_int32_float().end(); ++it) {
  8322. entry.reset(map_int32_float_.NewEntryWrapper(
  8323. it->first, it->second));
  8324. target = ::google::protobuf::internal::WireFormatLite::
  8325. InternalWriteMessageNoVirtualToArray(
  8326. 11, *entry, deterministic, target);
  8327. ;
  8328. if (entry->GetArena() != NULL) {
  8329. entry.release();
  8330. }
  8331. }
  8332. }
  8333. }
  8334. // map<int32, double> map_int32_double = 12;
  8335. if (!this->map_int32_double().empty()) {
  8336. typedef ::google::protobuf::Map< ::google::protobuf::int32, double >::const_pointer
  8337. ConstPtr;
  8338. typedef ::google::protobuf::internal::SortItem< ::google::protobuf::int32, ConstPtr > SortItem;
  8339. typedef ::google::protobuf::internal::CompareByFirstField<SortItem> Less;
  8340. if (deterministic &&
  8341. this->map_int32_double().size() > 1) {
  8342. ::std::unique_ptr<SortItem[]> items(
  8343. new SortItem[this->map_int32_double().size()]);
  8344. typedef ::google::protobuf::Map< ::google::protobuf::int32, double >::size_type size_type;
  8345. size_type n = 0;
  8346. for (::google::protobuf::Map< ::google::protobuf::int32, double >::const_iterator
  8347. it = this->map_int32_double().begin();
  8348. it != this->map_int32_double().end(); ++it, ++n) {
  8349. items[static_cast<ptrdiff_t>(n)] = SortItem(&*it);
  8350. }
  8351. ::std::sort(&items[0], &items[static_cast<ptrdiff_t>(n)], Less());
  8352. ::std::unique_ptr<TestArenaMap_MapInt32DoubleEntry_DoNotUse> entry;
  8353. for (size_type i = 0; i < n; i++) {
  8354. entry.reset(map_int32_double_.NewEntryWrapper(
  8355. items[static_cast<ptrdiff_t>(i)].second->first, items[static_cast<ptrdiff_t>(i)].second->second));
  8356. target = ::google::protobuf::internal::WireFormatLite::
  8357. InternalWriteMessageNoVirtualToArray(
  8358. 12, *entry, deterministic, target);
  8359. ;
  8360. if (entry->GetArena() != NULL) {
  8361. entry.release();
  8362. }
  8363. }
  8364. } else {
  8365. ::std::unique_ptr<TestArenaMap_MapInt32DoubleEntry_DoNotUse> entry;
  8366. for (::google::protobuf::Map< ::google::protobuf::int32, double >::const_iterator
  8367. it = this->map_int32_double().begin();
  8368. it != this->map_int32_double().end(); ++it) {
  8369. entry.reset(map_int32_double_.NewEntryWrapper(
  8370. it->first, it->second));
  8371. target = ::google::protobuf::internal::WireFormatLite::
  8372. InternalWriteMessageNoVirtualToArray(
  8373. 12, *entry, deterministic, target);
  8374. ;
  8375. if (entry->GetArena() != NULL) {
  8376. entry.release();
  8377. }
  8378. }
  8379. }
  8380. }
  8381. // map<bool, bool> map_bool_bool = 13;
  8382. if (!this->map_bool_bool().empty()) {
  8383. typedef ::google::protobuf::Map< bool, bool >::const_pointer
  8384. ConstPtr;
  8385. typedef ::google::protobuf::internal::SortItem< bool, ConstPtr > SortItem;
  8386. typedef ::google::protobuf::internal::CompareByFirstField<SortItem> Less;
  8387. if (deterministic &&
  8388. this->map_bool_bool().size() > 1) {
  8389. ::std::unique_ptr<SortItem[]> items(
  8390. new SortItem[this->map_bool_bool().size()]);
  8391. typedef ::google::protobuf::Map< bool, bool >::size_type size_type;
  8392. size_type n = 0;
  8393. for (::google::protobuf::Map< bool, bool >::const_iterator
  8394. it = this->map_bool_bool().begin();
  8395. it != this->map_bool_bool().end(); ++it, ++n) {
  8396. items[static_cast<ptrdiff_t>(n)] = SortItem(&*it);
  8397. }
  8398. ::std::sort(&items[0], &items[static_cast<ptrdiff_t>(n)], Less());
  8399. ::std::unique_ptr<TestArenaMap_MapBoolBoolEntry_DoNotUse> entry;
  8400. for (size_type i = 0; i < n; i++) {
  8401. entry.reset(map_bool_bool_.NewEntryWrapper(
  8402. items[static_cast<ptrdiff_t>(i)].second->first, items[static_cast<ptrdiff_t>(i)].second->second));
  8403. target = ::google::protobuf::internal::WireFormatLite::
  8404. InternalWriteMessageNoVirtualToArray(
  8405. 13, *entry, deterministic, target);
  8406. ;
  8407. if (entry->GetArena() != NULL) {
  8408. entry.release();
  8409. }
  8410. }
  8411. } else {
  8412. ::std::unique_ptr<TestArenaMap_MapBoolBoolEntry_DoNotUse> entry;
  8413. for (::google::protobuf::Map< bool, bool >::const_iterator
  8414. it = this->map_bool_bool().begin();
  8415. it != this->map_bool_bool().end(); ++it) {
  8416. entry.reset(map_bool_bool_.NewEntryWrapper(
  8417. it->first, it->second));
  8418. target = ::google::protobuf::internal::WireFormatLite::
  8419. InternalWriteMessageNoVirtualToArray(
  8420. 13, *entry, deterministic, target);
  8421. ;
  8422. if (entry->GetArena() != NULL) {
  8423. entry.release();
  8424. }
  8425. }
  8426. }
  8427. }
  8428. // map<string, string> map_string_string = 14;
  8429. if (!this->map_string_string().empty()) {
  8430. typedef ::google::protobuf::Map< ::std::string, ::std::string >::const_pointer
  8431. ConstPtr;
  8432. typedef ConstPtr SortItem;
  8433. typedef ::google::protobuf::internal::CompareByDerefFirst<SortItem> Less;
  8434. struct Utf8Check {
  8435. static void Check(ConstPtr p) {
  8436. ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
  8437. p->first.data(), static_cast<int>(p->first.length()),
  8438. ::google::protobuf::internal::WireFormatLite::SERIALIZE,
  8439. "protobuf_unittest.TestArenaMap.MapStringStringEntry.key");
  8440. ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
  8441. p->second.data(), static_cast<int>(p->second.length()),
  8442. ::google::protobuf::internal::WireFormatLite::SERIALIZE,
  8443. "protobuf_unittest.TestArenaMap.MapStringStringEntry.value");
  8444. }
  8445. };
  8446. if (deterministic &&
  8447. this->map_string_string().size() > 1) {
  8448. ::std::unique_ptr<SortItem[]> items(
  8449. new SortItem[this->map_string_string().size()]);
  8450. typedef ::google::protobuf::Map< ::std::string, ::std::string >::size_type size_type;
  8451. size_type n = 0;
  8452. for (::google::protobuf::Map< ::std::string, ::std::string >::const_iterator
  8453. it = this->map_string_string().begin();
  8454. it != this->map_string_string().end(); ++it, ++n) {
  8455. items[static_cast<ptrdiff_t>(n)] = SortItem(&*it);
  8456. }
  8457. ::std::sort(&items[0], &items[static_cast<ptrdiff_t>(n)], Less());
  8458. ::std::unique_ptr<TestArenaMap_MapStringStringEntry_DoNotUse> entry;
  8459. for (size_type i = 0; i < n; i++) {
  8460. entry.reset(map_string_string_.NewEntryWrapper(
  8461. items[static_cast<ptrdiff_t>(i)]->first, items[static_cast<ptrdiff_t>(i)]->second));
  8462. target = ::google::protobuf::internal::WireFormatLite::
  8463. InternalWriteMessageNoVirtualToArray(
  8464. 14, *entry, deterministic, target);
  8465. ;
  8466. if (entry->GetArena() != NULL) {
  8467. entry.release();
  8468. }
  8469. Utf8Check::Check(items[static_cast<ptrdiff_t>(i)]);
  8470. }
  8471. } else {
  8472. ::std::unique_ptr<TestArenaMap_MapStringStringEntry_DoNotUse> entry;
  8473. for (::google::protobuf::Map< ::std::string, ::std::string >::const_iterator
  8474. it = this->map_string_string().begin();
  8475. it != this->map_string_string().end(); ++it) {
  8476. entry.reset(map_string_string_.NewEntryWrapper(
  8477. it->first, it->second));
  8478. target = ::google::protobuf::internal::WireFormatLite::
  8479. InternalWriteMessageNoVirtualToArray(
  8480. 14, *entry, deterministic, target);
  8481. ;
  8482. if (entry->GetArena() != NULL) {
  8483. entry.release();
  8484. }
  8485. Utf8Check::Check(&*it);
  8486. }
  8487. }
  8488. }
  8489. // map<int32, bytes> map_int32_bytes = 15;
  8490. if (!this->map_int32_bytes().empty()) {
  8491. typedef ::google::protobuf::Map< ::google::protobuf::int32, ::std::string >::const_pointer
  8492. ConstPtr;
  8493. typedef ::google::protobuf::internal::SortItem< ::google::protobuf::int32, ConstPtr > SortItem;
  8494. typedef ::google::protobuf::internal::CompareByFirstField<SortItem> Less;
  8495. if (deterministic &&
  8496. this->map_int32_bytes().size() > 1) {
  8497. ::std::unique_ptr<SortItem[]> items(
  8498. new SortItem[this->map_int32_bytes().size()]);
  8499. typedef ::google::protobuf::Map< ::google::protobuf::int32, ::std::string >::size_type size_type;
  8500. size_type n = 0;
  8501. for (::google::protobuf::Map< ::google::protobuf::int32, ::std::string >::const_iterator
  8502. it = this->map_int32_bytes().begin();
  8503. it != this->map_int32_bytes().end(); ++it, ++n) {
  8504. items[static_cast<ptrdiff_t>(n)] = SortItem(&*it);
  8505. }
  8506. ::std::sort(&items[0], &items[static_cast<ptrdiff_t>(n)], Less());
  8507. ::std::unique_ptr<TestArenaMap_MapInt32BytesEntry_DoNotUse> entry;
  8508. for (size_type i = 0; i < n; i++) {
  8509. entry.reset(map_int32_bytes_.NewEntryWrapper(
  8510. items[static_cast<ptrdiff_t>(i)].second->first, items[static_cast<ptrdiff_t>(i)].second->second));
  8511. target = ::google::protobuf::internal::WireFormatLite::
  8512. InternalWriteMessageNoVirtualToArray(
  8513. 15, *entry, deterministic, target);
  8514. ;
  8515. if (entry->GetArena() != NULL) {
  8516. entry.release();
  8517. }
  8518. }
  8519. } else {
  8520. ::std::unique_ptr<TestArenaMap_MapInt32BytesEntry_DoNotUse> entry;
  8521. for (::google::protobuf::Map< ::google::protobuf::int32, ::std::string >::const_iterator
  8522. it = this->map_int32_bytes().begin();
  8523. it != this->map_int32_bytes().end(); ++it) {
  8524. entry.reset(map_int32_bytes_.NewEntryWrapper(
  8525. it->first, it->second));
  8526. target = ::google::protobuf::internal::WireFormatLite::
  8527. InternalWriteMessageNoVirtualToArray(
  8528. 15, *entry, deterministic, target);
  8529. ;
  8530. if (entry->GetArena() != NULL) {
  8531. entry.release();
  8532. }
  8533. }
  8534. }
  8535. }
  8536. // map<int32, .protobuf_unittest.MapEnum> map_int32_enum = 16;
  8537. if (!this->map_int32_enum().empty()) {
  8538. typedef ::google::protobuf::Map< ::google::protobuf::int32, ::protobuf_unittest::MapEnum >::const_pointer
  8539. ConstPtr;
  8540. typedef ::google::protobuf::internal::SortItem< ::google::protobuf::int32, ConstPtr > SortItem;
  8541. typedef ::google::protobuf::internal::CompareByFirstField<SortItem> Less;
  8542. if (deterministic &&
  8543. this->map_int32_enum().size() > 1) {
  8544. ::std::unique_ptr<SortItem[]> items(
  8545. new SortItem[this->map_int32_enum().size()]);
  8546. typedef ::google::protobuf::Map< ::google::protobuf::int32, ::protobuf_unittest::MapEnum >::size_type size_type;
  8547. size_type n = 0;
  8548. for (::google::protobuf::Map< ::google::protobuf::int32, ::protobuf_unittest::MapEnum >::const_iterator
  8549. it = this->map_int32_enum().begin();
  8550. it != this->map_int32_enum().end(); ++it, ++n) {
  8551. items[static_cast<ptrdiff_t>(n)] = SortItem(&*it);
  8552. }
  8553. ::std::sort(&items[0], &items[static_cast<ptrdiff_t>(n)], Less());
  8554. ::std::unique_ptr<TestArenaMap_MapInt32EnumEntry_DoNotUse> entry;
  8555. for (size_type i = 0; i < n; i++) {
  8556. entry.reset(map_int32_enum_.NewEnumEntryWrapper(
  8557. items[static_cast<ptrdiff_t>(i)].second->first, items[static_cast<ptrdiff_t>(i)].second->second));
  8558. target = ::google::protobuf::internal::WireFormatLite::
  8559. InternalWriteMessageNoVirtualToArray(
  8560. 16, *entry, deterministic, target);
  8561. ;
  8562. if (entry->GetArena() != NULL) {
  8563. entry.release();
  8564. }
  8565. }
  8566. } else {
  8567. ::std::unique_ptr<TestArenaMap_MapInt32EnumEntry_DoNotUse> entry;
  8568. for (::google::protobuf::Map< ::google::protobuf::int32, ::protobuf_unittest::MapEnum >::const_iterator
  8569. it = this->map_int32_enum().begin();
  8570. it != this->map_int32_enum().end(); ++it) {
  8571. entry.reset(map_int32_enum_.NewEnumEntryWrapper(
  8572. it->first, it->second));
  8573. target = ::google::protobuf::internal::WireFormatLite::
  8574. InternalWriteMessageNoVirtualToArray(
  8575. 16, *entry, deterministic, target);
  8576. ;
  8577. if (entry->GetArena() != NULL) {
  8578. entry.release();
  8579. }
  8580. }
  8581. }
  8582. }
  8583. // map<int32, .protobuf_unittest.ForeignMessage> map_int32_foreign_message = 17;
  8584. if (!this->map_int32_foreign_message().empty()) {
  8585. typedef ::google::protobuf::Map< ::google::protobuf::int32, ::protobuf_unittest::ForeignMessage >::const_pointer
  8586. ConstPtr;
  8587. typedef ::google::protobuf::internal::SortItem< ::google::protobuf::int32, ConstPtr > SortItem;
  8588. typedef ::google::protobuf::internal::CompareByFirstField<SortItem> Less;
  8589. if (deterministic &&
  8590. this->map_int32_foreign_message().size() > 1) {
  8591. ::std::unique_ptr<SortItem[]> items(
  8592. new SortItem[this->map_int32_foreign_message().size()]);
  8593. typedef ::google::protobuf::Map< ::google::protobuf::int32, ::protobuf_unittest::ForeignMessage >::size_type size_type;
  8594. size_type n = 0;
  8595. for (::google::protobuf::Map< ::google::protobuf::int32, ::protobuf_unittest::ForeignMessage >::const_iterator
  8596. it = this->map_int32_foreign_message().begin();
  8597. it != this->map_int32_foreign_message().end(); ++it, ++n) {
  8598. items[static_cast<ptrdiff_t>(n)] = SortItem(&*it);
  8599. }
  8600. ::std::sort(&items[0], &items[static_cast<ptrdiff_t>(n)], Less());
  8601. ::std::unique_ptr<TestArenaMap_MapInt32ForeignMessageEntry_DoNotUse> entry;
  8602. for (size_type i = 0; i < n; i++) {
  8603. entry.reset(map_int32_foreign_message_.NewEntryWrapper(
  8604. items[static_cast<ptrdiff_t>(i)].second->first, items[static_cast<ptrdiff_t>(i)].second->second));
  8605. target = ::google::protobuf::internal::WireFormatLite::
  8606. InternalWriteMessageNoVirtualToArray(
  8607. 17, *entry, deterministic, target);
  8608. ;
  8609. if (entry->GetArena() != NULL) {
  8610. entry.release();
  8611. }
  8612. }
  8613. } else {
  8614. ::std::unique_ptr<TestArenaMap_MapInt32ForeignMessageEntry_DoNotUse> entry;
  8615. for (::google::protobuf::Map< ::google::protobuf::int32, ::protobuf_unittest::ForeignMessage >::const_iterator
  8616. it = this->map_int32_foreign_message().begin();
  8617. it != this->map_int32_foreign_message().end(); ++it) {
  8618. entry.reset(map_int32_foreign_message_.NewEntryWrapper(
  8619. it->first, it->second));
  8620. target = ::google::protobuf::internal::WireFormatLite::
  8621. InternalWriteMessageNoVirtualToArray(
  8622. 17, *entry, deterministic, target);
  8623. ;
  8624. if (entry->GetArena() != NULL) {
  8625. entry.release();
  8626. }
  8627. }
  8628. }
  8629. }
  8630. // map<int32, .protobuf_unittest_no_arena.ForeignMessage> map_int32_foreign_message_no_arena = 18;
  8631. if (!this->map_int32_foreign_message_no_arena().empty()) {
  8632. typedef ::google::protobuf::Map< ::google::protobuf::int32, ::protobuf_unittest_no_arena::ForeignMessage >::const_pointer
  8633. ConstPtr;
  8634. typedef ::google::protobuf::internal::SortItem< ::google::protobuf::int32, ConstPtr > SortItem;
  8635. typedef ::google::protobuf::internal::CompareByFirstField<SortItem> Less;
  8636. if (deterministic &&
  8637. this->map_int32_foreign_message_no_arena().size() > 1) {
  8638. ::std::unique_ptr<SortItem[]> items(
  8639. new SortItem[this->map_int32_foreign_message_no_arena().size()]);
  8640. typedef ::google::protobuf::Map< ::google::protobuf::int32, ::protobuf_unittest_no_arena::ForeignMessage >::size_type size_type;
  8641. size_type n = 0;
  8642. for (::google::protobuf::Map< ::google::protobuf::int32, ::protobuf_unittest_no_arena::ForeignMessage >::const_iterator
  8643. it = this->map_int32_foreign_message_no_arena().begin();
  8644. it != this->map_int32_foreign_message_no_arena().end(); ++it, ++n) {
  8645. items[static_cast<ptrdiff_t>(n)] = SortItem(&*it);
  8646. }
  8647. ::std::sort(&items[0], &items[static_cast<ptrdiff_t>(n)], Less());
  8648. ::std::unique_ptr<TestArenaMap_MapInt32ForeignMessageNoArenaEntry_DoNotUse> entry;
  8649. for (size_type i = 0; i < n; i++) {
  8650. entry.reset(map_int32_foreign_message_no_arena_.NewEntryWrapper(
  8651. items[static_cast<ptrdiff_t>(i)].second->first, items[static_cast<ptrdiff_t>(i)].second->second));
  8652. target = ::google::protobuf::internal::WireFormatLite::
  8653. InternalWriteMessageNoVirtualToArray(
  8654. 18, *entry, deterministic, target);
  8655. ;
  8656. if (entry->GetArena() != NULL) {
  8657. entry.release();
  8658. }
  8659. }
  8660. } else {
  8661. ::std::unique_ptr<TestArenaMap_MapInt32ForeignMessageNoArenaEntry_DoNotUse> entry;
  8662. for (::google::protobuf::Map< ::google::protobuf::int32, ::protobuf_unittest_no_arena::ForeignMessage >::const_iterator
  8663. it = this->map_int32_foreign_message_no_arena().begin();
  8664. it != this->map_int32_foreign_message_no_arena().end(); ++it) {
  8665. entry.reset(map_int32_foreign_message_no_arena_.NewEntryWrapper(
  8666. it->first, it->second));
  8667. target = ::google::protobuf::internal::WireFormatLite::
  8668. InternalWriteMessageNoVirtualToArray(
  8669. 18, *entry, deterministic, target);
  8670. ;
  8671. if (entry->GetArena() != NULL) {
  8672. entry.release();
  8673. }
  8674. }
  8675. }
  8676. }
  8677. if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
  8678. target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
  8679. (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target);
  8680. }
  8681. // @@protoc_insertion_point(serialize_to_array_end:protobuf_unittest.TestArenaMap)
  8682. return target;
  8683. }
  8684. size_t TestArenaMap::ByteSizeLong() const {
  8685. // @@protoc_insertion_point(message_byte_size_start:protobuf_unittest.TestArenaMap)
  8686. size_t total_size = 0;
  8687. if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
  8688. total_size +=
  8689. ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
  8690. (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()));
  8691. }
  8692. // map<int32, int32> map_int32_int32 = 1;
  8693. total_size += 1 *
  8694. ::google::protobuf::internal::FromIntSize(this->map_int32_int32_size());
  8695. {
  8696. ::std::unique_ptr<TestArenaMap_MapInt32Int32Entry_DoNotUse> entry;
  8697. for (::google::protobuf::Map< ::google::protobuf::int32, ::google::protobuf::int32 >::const_iterator
  8698. it = this->map_int32_int32().begin();
  8699. it != this->map_int32_int32().end(); ++it) {
  8700. if (entry.get() != NULL && entry->GetArena() != NULL) {
  8701. entry.release();
  8702. }
  8703. entry.reset(map_int32_int32_.NewEntryWrapper(it->first, it->second));
  8704. total_size += ::google::protobuf::internal::WireFormatLite::
  8705. MessageSizeNoVirtual(*entry);
  8706. }
  8707. if (entry.get() != NULL && entry->GetArena() != NULL) {
  8708. entry.release();
  8709. }
  8710. }
  8711. // map<int64, int64> map_int64_int64 = 2;
  8712. total_size += 1 *
  8713. ::google::protobuf::internal::FromIntSize(this->map_int64_int64_size());
  8714. {
  8715. ::std::unique_ptr<TestArenaMap_MapInt64Int64Entry_DoNotUse> entry;
  8716. for (::google::protobuf::Map< ::google::protobuf::int64, ::google::protobuf::int64 >::const_iterator
  8717. it = this->map_int64_int64().begin();
  8718. it != this->map_int64_int64().end(); ++it) {
  8719. if (entry.get() != NULL && entry->GetArena() != NULL) {
  8720. entry.release();
  8721. }
  8722. entry.reset(map_int64_int64_.NewEntryWrapper(it->first, it->second));
  8723. total_size += ::google::protobuf::internal::WireFormatLite::
  8724. MessageSizeNoVirtual(*entry);
  8725. }
  8726. if (entry.get() != NULL && entry->GetArena() != NULL) {
  8727. entry.release();
  8728. }
  8729. }
  8730. // map<uint32, uint32> map_uint32_uint32 = 3;
  8731. total_size += 1 *
  8732. ::google::protobuf::internal::FromIntSize(this->map_uint32_uint32_size());
  8733. {
  8734. ::std::unique_ptr<TestArenaMap_MapUint32Uint32Entry_DoNotUse> entry;
  8735. for (::google::protobuf::Map< ::google::protobuf::uint32, ::google::protobuf::uint32 >::const_iterator
  8736. it = this->map_uint32_uint32().begin();
  8737. it != this->map_uint32_uint32().end(); ++it) {
  8738. if (entry.get() != NULL && entry->GetArena() != NULL) {
  8739. entry.release();
  8740. }
  8741. entry.reset(map_uint32_uint32_.NewEntryWrapper(it->first, it->second));
  8742. total_size += ::google::protobuf::internal::WireFormatLite::
  8743. MessageSizeNoVirtual(*entry);
  8744. }
  8745. if (entry.get() != NULL && entry->GetArena() != NULL) {
  8746. entry.release();
  8747. }
  8748. }
  8749. // map<uint64, uint64> map_uint64_uint64 = 4;
  8750. total_size += 1 *
  8751. ::google::protobuf::internal::FromIntSize(this->map_uint64_uint64_size());
  8752. {
  8753. ::std::unique_ptr<TestArenaMap_MapUint64Uint64Entry_DoNotUse> entry;
  8754. for (::google::protobuf::Map< ::google::protobuf::uint64, ::google::protobuf::uint64 >::const_iterator
  8755. it = this->map_uint64_uint64().begin();
  8756. it != this->map_uint64_uint64().end(); ++it) {
  8757. if (entry.get() != NULL && entry->GetArena() != NULL) {
  8758. entry.release();
  8759. }
  8760. entry.reset(map_uint64_uint64_.NewEntryWrapper(it->first, it->second));
  8761. total_size += ::google::protobuf::internal::WireFormatLite::
  8762. MessageSizeNoVirtual(*entry);
  8763. }
  8764. if (entry.get() != NULL && entry->GetArena() != NULL) {
  8765. entry.release();
  8766. }
  8767. }
  8768. // map<sint32, sint32> map_sint32_sint32 = 5;
  8769. total_size += 1 *
  8770. ::google::protobuf::internal::FromIntSize(this->map_sint32_sint32_size());
  8771. {
  8772. ::std::unique_ptr<TestArenaMap_MapSint32Sint32Entry_DoNotUse> entry;
  8773. for (::google::protobuf::Map< ::google::protobuf::int32, ::google::protobuf::int32 >::const_iterator
  8774. it = this->map_sint32_sint32().begin();
  8775. it != this->map_sint32_sint32().end(); ++it) {
  8776. if (entry.get() != NULL && entry->GetArena() != NULL) {
  8777. entry.release();
  8778. }
  8779. entry.reset(map_sint32_sint32_.NewEntryWrapper(it->first, it->second));
  8780. total_size += ::google::protobuf::internal::WireFormatLite::
  8781. MessageSizeNoVirtual(*entry);
  8782. }
  8783. if (entry.get() != NULL && entry->GetArena() != NULL) {
  8784. entry.release();
  8785. }
  8786. }
  8787. // map<sint64, sint64> map_sint64_sint64 = 6;
  8788. total_size += 1 *
  8789. ::google::protobuf::internal::FromIntSize(this->map_sint64_sint64_size());
  8790. {
  8791. ::std::unique_ptr<TestArenaMap_MapSint64Sint64Entry_DoNotUse> entry;
  8792. for (::google::protobuf::Map< ::google::protobuf::int64, ::google::protobuf::int64 >::const_iterator
  8793. it = this->map_sint64_sint64().begin();
  8794. it != this->map_sint64_sint64().end(); ++it) {
  8795. if (entry.get() != NULL && entry->GetArena() != NULL) {
  8796. entry.release();
  8797. }
  8798. entry.reset(map_sint64_sint64_.NewEntryWrapper(it->first, it->second));
  8799. total_size += ::google::protobuf::internal::WireFormatLite::
  8800. MessageSizeNoVirtual(*entry);
  8801. }
  8802. if (entry.get() != NULL && entry->GetArena() != NULL) {
  8803. entry.release();
  8804. }
  8805. }
  8806. // map<fixed32, fixed32> map_fixed32_fixed32 = 7;
  8807. total_size += 1 *
  8808. ::google::protobuf::internal::FromIntSize(this->map_fixed32_fixed32_size());
  8809. {
  8810. ::std::unique_ptr<TestArenaMap_MapFixed32Fixed32Entry_DoNotUse> entry;
  8811. for (::google::protobuf::Map< ::google::protobuf::uint32, ::google::protobuf::uint32 >::const_iterator
  8812. it = this->map_fixed32_fixed32().begin();
  8813. it != this->map_fixed32_fixed32().end(); ++it) {
  8814. if (entry.get() != NULL && entry->GetArena() != NULL) {
  8815. entry.release();
  8816. }
  8817. entry.reset(map_fixed32_fixed32_.NewEntryWrapper(it->first, it->second));
  8818. total_size += ::google::protobuf::internal::WireFormatLite::
  8819. MessageSizeNoVirtual(*entry);
  8820. }
  8821. if (entry.get() != NULL && entry->GetArena() != NULL) {
  8822. entry.release();
  8823. }
  8824. }
  8825. // map<fixed64, fixed64> map_fixed64_fixed64 = 8;
  8826. total_size += 1 *
  8827. ::google::protobuf::internal::FromIntSize(this->map_fixed64_fixed64_size());
  8828. {
  8829. ::std::unique_ptr<TestArenaMap_MapFixed64Fixed64Entry_DoNotUse> entry;
  8830. for (::google::protobuf::Map< ::google::protobuf::uint64, ::google::protobuf::uint64 >::const_iterator
  8831. it = this->map_fixed64_fixed64().begin();
  8832. it != this->map_fixed64_fixed64().end(); ++it) {
  8833. if (entry.get() != NULL && entry->GetArena() != NULL) {
  8834. entry.release();
  8835. }
  8836. entry.reset(map_fixed64_fixed64_.NewEntryWrapper(it->first, it->second));
  8837. total_size += ::google::protobuf::internal::WireFormatLite::
  8838. MessageSizeNoVirtual(*entry);
  8839. }
  8840. if (entry.get() != NULL && entry->GetArena() != NULL) {
  8841. entry.release();
  8842. }
  8843. }
  8844. // map<sfixed32, sfixed32> map_sfixed32_sfixed32 = 9;
  8845. total_size += 1 *
  8846. ::google::protobuf::internal::FromIntSize(this->map_sfixed32_sfixed32_size());
  8847. {
  8848. ::std::unique_ptr<TestArenaMap_MapSfixed32Sfixed32Entry_DoNotUse> entry;
  8849. for (::google::protobuf::Map< ::google::protobuf::int32, ::google::protobuf::int32 >::const_iterator
  8850. it = this->map_sfixed32_sfixed32().begin();
  8851. it != this->map_sfixed32_sfixed32().end(); ++it) {
  8852. if (entry.get() != NULL && entry->GetArena() != NULL) {
  8853. entry.release();
  8854. }
  8855. entry.reset(map_sfixed32_sfixed32_.NewEntryWrapper(it->first, it->second));
  8856. total_size += ::google::protobuf::internal::WireFormatLite::
  8857. MessageSizeNoVirtual(*entry);
  8858. }
  8859. if (entry.get() != NULL && entry->GetArena() != NULL) {
  8860. entry.release();
  8861. }
  8862. }
  8863. // map<sfixed64, sfixed64> map_sfixed64_sfixed64 = 10;
  8864. total_size += 1 *
  8865. ::google::protobuf::internal::FromIntSize(this->map_sfixed64_sfixed64_size());
  8866. {
  8867. ::std::unique_ptr<TestArenaMap_MapSfixed64Sfixed64Entry_DoNotUse> entry;
  8868. for (::google::protobuf::Map< ::google::protobuf::int64, ::google::protobuf::int64 >::const_iterator
  8869. it = this->map_sfixed64_sfixed64().begin();
  8870. it != this->map_sfixed64_sfixed64().end(); ++it) {
  8871. if (entry.get() != NULL && entry->GetArena() != NULL) {
  8872. entry.release();
  8873. }
  8874. entry.reset(map_sfixed64_sfixed64_.NewEntryWrapper(it->first, it->second));
  8875. total_size += ::google::protobuf::internal::WireFormatLite::
  8876. MessageSizeNoVirtual(*entry);
  8877. }
  8878. if (entry.get() != NULL && entry->GetArena() != NULL) {
  8879. entry.release();
  8880. }
  8881. }
  8882. // map<int32, float> map_int32_float = 11;
  8883. total_size += 1 *
  8884. ::google::protobuf::internal::FromIntSize(this->map_int32_float_size());
  8885. {
  8886. ::std::unique_ptr<TestArenaMap_MapInt32FloatEntry_DoNotUse> entry;
  8887. for (::google::protobuf::Map< ::google::protobuf::int32, float >::const_iterator
  8888. it = this->map_int32_float().begin();
  8889. it != this->map_int32_float().end(); ++it) {
  8890. if (entry.get() != NULL && entry->GetArena() != NULL) {
  8891. entry.release();
  8892. }
  8893. entry.reset(map_int32_float_.NewEntryWrapper(it->first, it->second));
  8894. total_size += ::google::protobuf::internal::WireFormatLite::
  8895. MessageSizeNoVirtual(*entry);
  8896. }
  8897. if (entry.get() != NULL && entry->GetArena() != NULL) {
  8898. entry.release();
  8899. }
  8900. }
  8901. // map<int32, double> map_int32_double = 12;
  8902. total_size += 1 *
  8903. ::google::protobuf::internal::FromIntSize(this->map_int32_double_size());
  8904. {
  8905. ::std::unique_ptr<TestArenaMap_MapInt32DoubleEntry_DoNotUse> entry;
  8906. for (::google::protobuf::Map< ::google::protobuf::int32, double >::const_iterator
  8907. it = this->map_int32_double().begin();
  8908. it != this->map_int32_double().end(); ++it) {
  8909. if (entry.get() != NULL && entry->GetArena() != NULL) {
  8910. entry.release();
  8911. }
  8912. entry.reset(map_int32_double_.NewEntryWrapper(it->first, it->second));
  8913. total_size += ::google::protobuf::internal::WireFormatLite::
  8914. MessageSizeNoVirtual(*entry);
  8915. }
  8916. if (entry.get() != NULL && entry->GetArena() != NULL) {
  8917. entry.release();
  8918. }
  8919. }
  8920. // map<bool, bool> map_bool_bool = 13;
  8921. total_size += 1 *
  8922. ::google::protobuf::internal::FromIntSize(this->map_bool_bool_size());
  8923. {
  8924. ::std::unique_ptr<TestArenaMap_MapBoolBoolEntry_DoNotUse> entry;
  8925. for (::google::protobuf::Map< bool, bool >::const_iterator
  8926. it = this->map_bool_bool().begin();
  8927. it != this->map_bool_bool().end(); ++it) {
  8928. if (entry.get() != NULL && entry->GetArena() != NULL) {
  8929. entry.release();
  8930. }
  8931. entry.reset(map_bool_bool_.NewEntryWrapper(it->first, it->second));
  8932. total_size += ::google::protobuf::internal::WireFormatLite::
  8933. MessageSizeNoVirtual(*entry);
  8934. }
  8935. if (entry.get() != NULL && entry->GetArena() != NULL) {
  8936. entry.release();
  8937. }
  8938. }
  8939. // map<string, string> map_string_string = 14;
  8940. total_size += 1 *
  8941. ::google::protobuf::internal::FromIntSize(this->map_string_string_size());
  8942. {
  8943. ::std::unique_ptr<TestArenaMap_MapStringStringEntry_DoNotUse> entry;
  8944. for (::google::protobuf::Map< ::std::string, ::std::string >::const_iterator
  8945. it = this->map_string_string().begin();
  8946. it != this->map_string_string().end(); ++it) {
  8947. if (entry.get() != NULL && entry->GetArena() != NULL) {
  8948. entry.release();
  8949. }
  8950. entry.reset(map_string_string_.NewEntryWrapper(it->first, it->second));
  8951. total_size += ::google::protobuf::internal::WireFormatLite::
  8952. MessageSizeNoVirtual(*entry);
  8953. }
  8954. if (entry.get() != NULL && entry->GetArena() != NULL) {
  8955. entry.release();
  8956. }
  8957. }
  8958. // map<int32, bytes> map_int32_bytes = 15;
  8959. total_size += 1 *
  8960. ::google::protobuf::internal::FromIntSize(this->map_int32_bytes_size());
  8961. {
  8962. ::std::unique_ptr<TestArenaMap_MapInt32BytesEntry_DoNotUse> entry;
  8963. for (::google::protobuf::Map< ::google::protobuf::int32, ::std::string >::const_iterator
  8964. it = this->map_int32_bytes().begin();
  8965. it != this->map_int32_bytes().end(); ++it) {
  8966. if (entry.get() != NULL && entry->GetArena() != NULL) {
  8967. entry.release();
  8968. }
  8969. entry.reset(map_int32_bytes_.NewEntryWrapper(it->first, it->second));
  8970. total_size += ::google::protobuf::internal::WireFormatLite::
  8971. MessageSizeNoVirtual(*entry);
  8972. }
  8973. if (entry.get() != NULL && entry->GetArena() != NULL) {
  8974. entry.release();
  8975. }
  8976. }
  8977. // map<int32, .protobuf_unittest.MapEnum> map_int32_enum = 16;
  8978. total_size += 2 *
  8979. ::google::protobuf::internal::FromIntSize(this->map_int32_enum_size());
  8980. {
  8981. ::std::unique_ptr<TestArenaMap_MapInt32EnumEntry_DoNotUse> entry;
  8982. for (::google::protobuf::Map< ::google::protobuf::int32, ::protobuf_unittest::MapEnum >::const_iterator
  8983. it = this->map_int32_enum().begin();
  8984. it != this->map_int32_enum().end(); ++it) {
  8985. if (entry.get() != NULL && entry->GetArena() != NULL) {
  8986. entry.release();
  8987. }
  8988. entry.reset(map_int32_enum_.NewEnumEntryWrapper(it->first, it->second));
  8989. total_size += ::google::protobuf::internal::WireFormatLite::
  8990. MessageSizeNoVirtual(*entry);
  8991. }
  8992. if (entry.get() != NULL && entry->GetArena() != NULL) {
  8993. entry.release();
  8994. }
  8995. }
  8996. // map<int32, .protobuf_unittest.ForeignMessage> map_int32_foreign_message = 17;
  8997. total_size += 2 *
  8998. ::google::protobuf::internal::FromIntSize(this->map_int32_foreign_message_size());
  8999. {
  9000. ::std::unique_ptr<TestArenaMap_MapInt32ForeignMessageEntry_DoNotUse> entry;
  9001. for (::google::protobuf::Map< ::google::protobuf::int32, ::protobuf_unittest::ForeignMessage >::const_iterator
  9002. it = this->map_int32_foreign_message().begin();
  9003. it != this->map_int32_foreign_message().end(); ++it) {
  9004. if (entry.get() != NULL && entry->GetArena() != NULL) {
  9005. entry.release();
  9006. }
  9007. entry.reset(map_int32_foreign_message_.NewEntryWrapper(it->first, it->second));
  9008. total_size += ::google::protobuf::internal::WireFormatLite::
  9009. MessageSizeNoVirtual(*entry);
  9010. }
  9011. if (entry.get() != NULL && entry->GetArena() != NULL) {
  9012. entry.release();
  9013. }
  9014. }
  9015. // map<int32, .protobuf_unittest_no_arena.ForeignMessage> map_int32_foreign_message_no_arena = 18;
  9016. total_size += 2 *
  9017. ::google::protobuf::internal::FromIntSize(this->map_int32_foreign_message_no_arena_size());
  9018. {
  9019. ::std::unique_ptr<TestArenaMap_MapInt32ForeignMessageNoArenaEntry_DoNotUse> entry;
  9020. for (::google::protobuf::Map< ::google::protobuf::int32, ::protobuf_unittest_no_arena::ForeignMessage >::const_iterator
  9021. it = this->map_int32_foreign_message_no_arena().begin();
  9022. it != this->map_int32_foreign_message_no_arena().end(); ++it) {
  9023. if (entry.get() != NULL && entry->GetArena() != NULL) {
  9024. entry.release();
  9025. }
  9026. entry.reset(map_int32_foreign_message_no_arena_.NewEntryWrapper(it->first, it->second));
  9027. total_size += ::google::protobuf::internal::WireFormatLite::
  9028. MessageSizeNoVirtual(*entry);
  9029. }
  9030. if (entry.get() != NULL && entry->GetArena() != NULL) {
  9031. entry.release();
  9032. }
  9033. }
  9034. int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
  9035. SetCachedSize(cached_size);
  9036. return total_size;
  9037. }
  9038. void TestArenaMap::MergeFrom(const ::google::protobuf::Message& from) {
  9039. // @@protoc_insertion_point(generalized_merge_from_start:protobuf_unittest.TestArenaMap)
  9040. GOOGLE_DCHECK_NE(&from, this);
  9041. const TestArenaMap* source =
  9042. ::google::protobuf::internal::DynamicCastToGenerated<const TestArenaMap>(
  9043. &from);
  9044. if (source == NULL) {
  9045. // @@protoc_insertion_point(generalized_merge_from_cast_fail:protobuf_unittest.TestArenaMap)
  9046. ::google::protobuf::internal::ReflectionOps::Merge(from, this);
  9047. } else {
  9048. // @@protoc_insertion_point(generalized_merge_from_cast_success:protobuf_unittest.TestArenaMap)
  9049. MergeFrom(*source);
  9050. }
  9051. }
  9052. void TestArenaMap::MergeFrom(const TestArenaMap& from) {
  9053. // @@protoc_insertion_point(class_specific_merge_from_start:protobuf_unittest.TestArenaMap)
  9054. GOOGLE_DCHECK_NE(&from, this);
  9055. _internal_metadata_.MergeFrom(from._internal_metadata_);
  9056. ::google::protobuf::uint32 cached_has_bits = 0;
  9057. (void) cached_has_bits;
  9058. map_int32_int32_.MergeFrom(from.map_int32_int32_);
  9059. map_int64_int64_.MergeFrom(from.map_int64_int64_);
  9060. map_uint32_uint32_.MergeFrom(from.map_uint32_uint32_);
  9061. map_uint64_uint64_.MergeFrom(from.map_uint64_uint64_);
  9062. map_sint32_sint32_.MergeFrom(from.map_sint32_sint32_);
  9063. map_sint64_sint64_.MergeFrom(from.map_sint64_sint64_);
  9064. map_fixed32_fixed32_.MergeFrom(from.map_fixed32_fixed32_);
  9065. map_fixed64_fixed64_.MergeFrom(from.map_fixed64_fixed64_);
  9066. map_sfixed32_sfixed32_.MergeFrom(from.map_sfixed32_sfixed32_);
  9067. map_sfixed64_sfixed64_.MergeFrom(from.map_sfixed64_sfixed64_);
  9068. map_int32_float_.MergeFrom(from.map_int32_float_);
  9069. map_int32_double_.MergeFrom(from.map_int32_double_);
  9070. map_bool_bool_.MergeFrom(from.map_bool_bool_);
  9071. map_string_string_.MergeFrom(from.map_string_string_);
  9072. map_int32_bytes_.MergeFrom(from.map_int32_bytes_);
  9073. map_int32_enum_.MergeFrom(from.map_int32_enum_);
  9074. map_int32_foreign_message_.MergeFrom(from.map_int32_foreign_message_);
  9075. map_int32_foreign_message_no_arena_.MergeFrom(from.map_int32_foreign_message_no_arena_);
  9076. }
  9077. void TestArenaMap::CopyFrom(const ::google::protobuf::Message& from) {
  9078. // @@protoc_insertion_point(generalized_copy_from_start:protobuf_unittest.TestArenaMap)
  9079. if (&from == this) return;
  9080. Clear();
  9081. MergeFrom(from);
  9082. }
  9083. void TestArenaMap::CopyFrom(const TestArenaMap& from) {
  9084. // @@protoc_insertion_point(class_specific_copy_from_start:protobuf_unittest.TestArenaMap)
  9085. if (&from == this) return;
  9086. Clear();
  9087. MergeFrom(from);
  9088. }
  9089. bool TestArenaMap::IsInitialized() const {
  9090. return true;
  9091. }
  9092. void TestArenaMap::Swap(TestArenaMap* other) {
  9093. if (other == this) return;
  9094. if (GetArenaNoVirtual() == other->GetArenaNoVirtual()) {
  9095. InternalSwap(other);
  9096. } else {
  9097. TestArenaMap* temp = New(GetArenaNoVirtual());
  9098. temp->MergeFrom(*other);
  9099. other->CopyFrom(*this);
  9100. InternalSwap(temp);
  9101. if (GetArenaNoVirtual() == NULL) {
  9102. delete temp;
  9103. }
  9104. }
  9105. }
  9106. void TestArenaMap::UnsafeArenaSwap(TestArenaMap* other) {
  9107. if (other == this) return;
  9108. GOOGLE_DCHECK(GetArenaNoVirtual() == other->GetArenaNoVirtual());
  9109. InternalSwap(other);
  9110. }
  9111. void TestArenaMap::InternalSwap(TestArenaMap* other) {
  9112. using std::swap;
  9113. map_int32_int32_.Swap(&other->map_int32_int32_);
  9114. map_int64_int64_.Swap(&other->map_int64_int64_);
  9115. map_uint32_uint32_.Swap(&other->map_uint32_uint32_);
  9116. map_uint64_uint64_.Swap(&other->map_uint64_uint64_);
  9117. map_sint32_sint32_.Swap(&other->map_sint32_sint32_);
  9118. map_sint64_sint64_.Swap(&other->map_sint64_sint64_);
  9119. map_fixed32_fixed32_.Swap(&other->map_fixed32_fixed32_);
  9120. map_fixed64_fixed64_.Swap(&other->map_fixed64_fixed64_);
  9121. map_sfixed32_sfixed32_.Swap(&other->map_sfixed32_sfixed32_);
  9122. map_sfixed64_sfixed64_.Swap(&other->map_sfixed64_sfixed64_);
  9123. map_int32_float_.Swap(&other->map_int32_float_);
  9124. map_int32_double_.Swap(&other->map_int32_double_);
  9125. map_bool_bool_.Swap(&other->map_bool_bool_);
  9126. map_string_string_.Swap(&other->map_string_string_);
  9127. map_int32_bytes_.Swap(&other->map_int32_bytes_);
  9128. map_int32_enum_.Swap(&other->map_int32_enum_);
  9129. map_int32_foreign_message_.Swap(&other->map_int32_foreign_message_);
  9130. map_int32_foreign_message_no_arena_.Swap(&other->map_int32_foreign_message_no_arena_);
  9131. _internal_metadata_.Swap(&other->_internal_metadata_);
  9132. }
  9133. ::google::protobuf::Metadata TestArenaMap::GetMetadata() const {
  9134. protobuf_google_2fprotobuf_2fmap_5funittest_2eproto::protobuf_AssignDescriptorsOnce();
  9135. return ::protobuf_google_2fprotobuf_2fmap_5funittest_2eproto::file_level_metadata[kIndexInFileMessages];
  9136. }
  9137. // ===================================================================
  9138. MessageContainingEnumCalledType_TypeEntry_DoNotUse::MessageContainingEnumCalledType_TypeEntry_DoNotUse() {}
  9139. MessageContainingEnumCalledType_TypeEntry_DoNotUse::MessageContainingEnumCalledType_TypeEntry_DoNotUse(::google::protobuf::Arena* arena) : SuperType(arena) {}
  9140. void MessageContainingEnumCalledType_TypeEntry_DoNotUse::MergeFrom(const MessageContainingEnumCalledType_TypeEntry_DoNotUse& other) {
  9141. MergeFromInternal(other);
  9142. }
  9143. ::google::protobuf::Metadata MessageContainingEnumCalledType_TypeEntry_DoNotUse::GetMetadata() const {
  9144. ::protobuf_google_2fprotobuf_2fmap_5funittest_2eproto::protobuf_AssignDescriptorsOnce();
  9145. return ::protobuf_google_2fprotobuf_2fmap_5funittest_2eproto::file_level_metadata[47];
  9146. }
  9147. void MessageContainingEnumCalledType_TypeEntry_DoNotUse::MergeFrom(
  9148. const ::google::protobuf::Message& other) {
  9149. ::google::protobuf::Message::MergeFrom(other);
  9150. }
  9151. // ===================================================================
  9152. void MessageContainingEnumCalledType::InitAsDefaultInstance() {
  9153. }
  9154. #if !defined(_MSC_VER) || _MSC_VER >= 1900
  9155. const int MessageContainingEnumCalledType::kTypeFieldNumber;
  9156. #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
  9157. MessageContainingEnumCalledType::MessageContainingEnumCalledType()
  9158. : ::google::protobuf::Message(), _internal_metadata_(NULL) {
  9159. ::google::protobuf::internal::InitSCC(
  9160. &protobuf_google_2fprotobuf_2fmap_5funittest_2eproto::scc_info_MessageContainingEnumCalledType.base);
  9161. SharedCtor();
  9162. // @@protoc_insertion_point(constructor:protobuf_unittest.MessageContainingEnumCalledType)
  9163. }
  9164. MessageContainingEnumCalledType::MessageContainingEnumCalledType(::google::protobuf::Arena* arena)
  9165. : ::google::protobuf::Message(),
  9166. _internal_metadata_(arena),
  9167. type_(arena) {
  9168. ::google::protobuf::internal::InitSCC(&protobuf_google_2fprotobuf_2fmap_5funittest_2eproto::scc_info_MessageContainingEnumCalledType.base);
  9169. SharedCtor();
  9170. RegisterArenaDtor(arena);
  9171. // @@protoc_insertion_point(arena_constructor:protobuf_unittest.MessageContainingEnumCalledType)
  9172. }
  9173. MessageContainingEnumCalledType::MessageContainingEnumCalledType(const MessageContainingEnumCalledType& from)
  9174. : ::google::protobuf::Message(),
  9175. _internal_metadata_(NULL) {
  9176. _internal_metadata_.MergeFrom(from._internal_metadata_);
  9177. type_.MergeFrom(from.type_);
  9178. // @@protoc_insertion_point(copy_constructor:protobuf_unittest.MessageContainingEnumCalledType)
  9179. }
  9180. void MessageContainingEnumCalledType::SharedCtor() {
  9181. }
  9182. MessageContainingEnumCalledType::~MessageContainingEnumCalledType() {
  9183. // @@protoc_insertion_point(destructor:protobuf_unittest.MessageContainingEnumCalledType)
  9184. SharedDtor();
  9185. }
  9186. void MessageContainingEnumCalledType::SharedDtor() {
  9187. GOOGLE_DCHECK(GetArenaNoVirtual() == NULL);
  9188. }
  9189. void MessageContainingEnumCalledType::ArenaDtor(void* object) {
  9190. MessageContainingEnumCalledType* _this = reinterpret_cast< MessageContainingEnumCalledType* >(object);
  9191. (void)_this;
  9192. }
  9193. void MessageContainingEnumCalledType::RegisterArenaDtor(::google::protobuf::Arena* arena) {
  9194. }
  9195. void MessageContainingEnumCalledType::SetCachedSize(int size) const {
  9196. _cached_size_.Set(size);
  9197. }
  9198. const ::google::protobuf::Descriptor* MessageContainingEnumCalledType::descriptor() {
  9199. ::protobuf_google_2fprotobuf_2fmap_5funittest_2eproto::protobuf_AssignDescriptorsOnce();
  9200. return ::protobuf_google_2fprotobuf_2fmap_5funittest_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
  9201. }
  9202. const MessageContainingEnumCalledType& MessageContainingEnumCalledType::default_instance() {
  9203. ::google::protobuf::internal::InitSCC(&protobuf_google_2fprotobuf_2fmap_5funittest_2eproto::scc_info_MessageContainingEnumCalledType.base);
  9204. return *internal_default_instance();
  9205. }
  9206. void MessageContainingEnumCalledType::Clear() {
  9207. // @@protoc_insertion_point(message_clear_start:protobuf_unittest.MessageContainingEnumCalledType)
  9208. ::google::protobuf::uint32 cached_has_bits = 0;
  9209. // Prevent compiler warnings about cached_has_bits being unused
  9210. (void) cached_has_bits;
  9211. type_.Clear();
  9212. _internal_metadata_.Clear();
  9213. }
  9214. bool MessageContainingEnumCalledType::MergePartialFromCodedStream(
  9215. ::google::protobuf::io::CodedInputStream* input) {
  9216. #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
  9217. ::google::protobuf::uint32 tag;
  9218. // @@protoc_insertion_point(parse_start:protobuf_unittest.MessageContainingEnumCalledType)
  9219. for (;;) {
  9220. ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
  9221. tag = p.first;
  9222. if (!p.second) goto handle_unusual;
  9223. switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
  9224. // map<string, .protobuf_unittest.MessageContainingEnumCalledType> type = 1;
  9225. case 1: {
  9226. if (static_cast< ::google::protobuf::uint8>(tag) ==
  9227. static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
  9228. MessageContainingEnumCalledType_TypeEntry_DoNotUse::Parser< ::google::protobuf::internal::MapField<
  9229. MessageContainingEnumCalledType_TypeEntry_DoNotUse,
  9230. ::std::string, ::protobuf_unittest::MessageContainingEnumCalledType,
  9231. ::google::protobuf::internal::WireFormatLite::TYPE_STRING,
  9232. ::google::protobuf::internal::WireFormatLite::TYPE_MESSAGE,
  9233. 0 >,
  9234. ::google::protobuf::Map< ::std::string, ::protobuf_unittest::MessageContainingEnumCalledType > > parser(&type_);
  9235. DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
  9236. input, &parser));
  9237. DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
  9238. parser.key().data(), static_cast<int>(parser.key().length()),
  9239. ::google::protobuf::internal::WireFormatLite::PARSE,
  9240. "protobuf_unittest.MessageContainingEnumCalledType.TypeEntry.key"));
  9241. } else {
  9242. goto handle_unusual;
  9243. }
  9244. break;
  9245. }
  9246. default: {
  9247. handle_unusual:
  9248. if (tag == 0) {
  9249. goto success;
  9250. }
  9251. DO_(::google::protobuf::internal::WireFormat::SkipField(
  9252. input, tag, _internal_metadata_.mutable_unknown_fields()));
  9253. break;
  9254. }
  9255. }
  9256. }
  9257. success:
  9258. // @@protoc_insertion_point(parse_success:protobuf_unittest.MessageContainingEnumCalledType)
  9259. return true;
  9260. failure:
  9261. // @@protoc_insertion_point(parse_failure:protobuf_unittest.MessageContainingEnumCalledType)
  9262. return false;
  9263. #undef DO_
  9264. }
  9265. void MessageContainingEnumCalledType::SerializeWithCachedSizes(
  9266. ::google::protobuf::io::CodedOutputStream* output) const {
  9267. // @@protoc_insertion_point(serialize_start:protobuf_unittest.MessageContainingEnumCalledType)
  9268. ::google::protobuf::uint32 cached_has_bits = 0;
  9269. (void) cached_has_bits;
  9270. // map<string, .protobuf_unittest.MessageContainingEnumCalledType> type = 1;
  9271. if (!this->type().empty()) {
  9272. typedef ::google::protobuf::Map< ::std::string, ::protobuf_unittest::MessageContainingEnumCalledType >::const_pointer
  9273. ConstPtr;
  9274. typedef ConstPtr SortItem;
  9275. typedef ::google::protobuf::internal::CompareByDerefFirst<SortItem> Less;
  9276. struct Utf8Check {
  9277. static void Check(ConstPtr p) {
  9278. ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
  9279. p->first.data(), static_cast<int>(p->first.length()),
  9280. ::google::protobuf::internal::WireFormatLite::SERIALIZE,
  9281. "protobuf_unittest.MessageContainingEnumCalledType.TypeEntry.key");
  9282. }
  9283. };
  9284. if (output->IsSerializationDeterministic() &&
  9285. this->type().size() > 1) {
  9286. ::std::unique_ptr<SortItem[]> items(
  9287. new SortItem[this->type().size()]);
  9288. typedef ::google::protobuf::Map< ::std::string, ::protobuf_unittest::MessageContainingEnumCalledType >::size_type size_type;
  9289. size_type n = 0;
  9290. for (::google::protobuf::Map< ::std::string, ::protobuf_unittest::MessageContainingEnumCalledType >::const_iterator
  9291. it = this->type().begin();
  9292. it != this->type().end(); ++it, ++n) {
  9293. items[static_cast<ptrdiff_t>(n)] = SortItem(&*it);
  9294. }
  9295. ::std::sort(&items[0], &items[static_cast<ptrdiff_t>(n)], Less());
  9296. ::std::unique_ptr<MessageContainingEnumCalledType_TypeEntry_DoNotUse> entry;
  9297. for (size_type i = 0; i < n; i++) {
  9298. entry.reset(type_.NewEntryWrapper(
  9299. items[static_cast<ptrdiff_t>(i)]->first, items[static_cast<ptrdiff_t>(i)]->second));
  9300. ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
  9301. 1, *entry, output);
  9302. if (entry->GetArena() != NULL) {
  9303. entry.release();
  9304. }
  9305. Utf8Check::Check(items[static_cast<ptrdiff_t>(i)]);
  9306. }
  9307. } else {
  9308. ::std::unique_ptr<MessageContainingEnumCalledType_TypeEntry_DoNotUse> entry;
  9309. for (::google::protobuf::Map< ::std::string, ::protobuf_unittest::MessageContainingEnumCalledType >::const_iterator
  9310. it = this->type().begin();
  9311. it != this->type().end(); ++it) {
  9312. entry.reset(type_.NewEntryWrapper(
  9313. it->first, it->second));
  9314. ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
  9315. 1, *entry, output);
  9316. if (entry->GetArena() != NULL) {
  9317. entry.release();
  9318. }
  9319. Utf8Check::Check(&*it);
  9320. }
  9321. }
  9322. }
  9323. if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
  9324. ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
  9325. (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output);
  9326. }
  9327. // @@protoc_insertion_point(serialize_end:protobuf_unittest.MessageContainingEnumCalledType)
  9328. }
  9329. ::google::protobuf::uint8* MessageContainingEnumCalledType::InternalSerializeWithCachedSizesToArray(
  9330. bool deterministic, ::google::protobuf::uint8* target) const {
  9331. (void)deterministic; // Unused
  9332. // @@protoc_insertion_point(serialize_to_array_start:protobuf_unittest.MessageContainingEnumCalledType)
  9333. ::google::protobuf::uint32 cached_has_bits = 0;
  9334. (void) cached_has_bits;
  9335. // map<string, .protobuf_unittest.MessageContainingEnumCalledType> type = 1;
  9336. if (!this->type().empty()) {
  9337. typedef ::google::protobuf::Map< ::std::string, ::protobuf_unittest::MessageContainingEnumCalledType >::const_pointer
  9338. ConstPtr;
  9339. typedef ConstPtr SortItem;
  9340. typedef ::google::protobuf::internal::CompareByDerefFirst<SortItem> Less;
  9341. struct Utf8Check {
  9342. static void Check(ConstPtr p) {
  9343. ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
  9344. p->first.data(), static_cast<int>(p->first.length()),
  9345. ::google::protobuf::internal::WireFormatLite::SERIALIZE,
  9346. "protobuf_unittest.MessageContainingEnumCalledType.TypeEntry.key");
  9347. }
  9348. };
  9349. if (deterministic &&
  9350. this->type().size() > 1) {
  9351. ::std::unique_ptr<SortItem[]> items(
  9352. new SortItem[this->type().size()]);
  9353. typedef ::google::protobuf::Map< ::std::string, ::protobuf_unittest::MessageContainingEnumCalledType >::size_type size_type;
  9354. size_type n = 0;
  9355. for (::google::protobuf::Map< ::std::string, ::protobuf_unittest::MessageContainingEnumCalledType >::const_iterator
  9356. it = this->type().begin();
  9357. it != this->type().end(); ++it, ++n) {
  9358. items[static_cast<ptrdiff_t>(n)] = SortItem(&*it);
  9359. }
  9360. ::std::sort(&items[0], &items[static_cast<ptrdiff_t>(n)], Less());
  9361. ::std::unique_ptr<MessageContainingEnumCalledType_TypeEntry_DoNotUse> entry;
  9362. for (size_type i = 0; i < n; i++) {
  9363. entry.reset(type_.NewEntryWrapper(
  9364. items[static_cast<ptrdiff_t>(i)]->first, items[static_cast<ptrdiff_t>(i)]->second));
  9365. target = ::google::protobuf::internal::WireFormatLite::
  9366. InternalWriteMessageNoVirtualToArray(
  9367. 1, *entry, deterministic, target);
  9368. ;
  9369. if (entry->GetArena() != NULL) {
  9370. entry.release();
  9371. }
  9372. Utf8Check::Check(items[static_cast<ptrdiff_t>(i)]);
  9373. }
  9374. } else {
  9375. ::std::unique_ptr<MessageContainingEnumCalledType_TypeEntry_DoNotUse> entry;
  9376. for (::google::protobuf::Map< ::std::string, ::protobuf_unittest::MessageContainingEnumCalledType >::const_iterator
  9377. it = this->type().begin();
  9378. it != this->type().end(); ++it) {
  9379. entry.reset(type_.NewEntryWrapper(
  9380. it->first, it->second));
  9381. target = ::google::protobuf::internal::WireFormatLite::
  9382. InternalWriteMessageNoVirtualToArray(
  9383. 1, *entry, deterministic, target);
  9384. ;
  9385. if (entry->GetArena() != NULL) {
  9386. entry.release();
  9387. }
  9388. Utf8Check::Check(&*it);
  9389. }
  9390. }
  9391. }
  9392. if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
  9393. target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
  9394. (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target);
  9395. }
  9396. // @@protoc_insertion_point(serialize_to_array_end:protobuf_unittest.MessageContainingEnumCalledType)
  9397. return target;
  9398. }
  9399. size_t MessageContainingEnumCalledType::ByteSizeLong() const {
  9400. // @@protoc_insertion_point(message_byte_size_start:protobuf_unittest.MessageContainingEnumCalledType)
  9401. size_t total_size = 0;
  9402. if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
  9403. total_size +=
  9404. ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
  9405. (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()));
  9406. }
  9407. // map<string, .protobuf_unittest.MessageContainingEnumCalledType> type = 1;
  9408. total_size += 1 *
  9409. ::google::protobuf::internal::FromIntSize(this->type_size());
  9410. {
  9411. ::std::unique_ptr<MessageContainingEnumCalledType_TypeEntry_DoNotUse> entry;
  9412. for (::google::protobuf::Map< ::std::string, ::protobuf_unittest::MessageContainingEnumCalledType >::const_iterator
  9413. it = this->type().begin();
  9414. it != this->type().end(); ++it) {
  9415. if (entry.get() != NULL && entry->GetArena() != NULL) {
  9416. entry.release();
  9417. }
  9418. entry.reset(type_.NewEntryWrapper(it->first, it->second));
  9419. total_size += ::google::protobuf::internal::WireFormatLite::
  9420. MessageSizeNoVirtual(*entry);
  9421. }
  9422. if (entry.get() != NULL && entry->GetArena() != NULL) {
  9423. entry.release();
  9424. }
  9425. }
  9426. int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
  9427. SetCachedSize(cached_size);
  9428. return total_size;
  9429. }
  9430. void MessageContainingEnumCalledType::MergeFrom(const ::google::protobuf::Message& from) {
  9431. // @@protoc_insertion_point(generalized_merge_from_start:protobuf_unittest.MessageContainingEnumCalledType)
  9432. GOOGLE_DCHECK_NE(&from, this);
  9433. const MessageContainingEnumCalledType* source =
  9434. ::google::protobuf::internal::DynamicCastToGenerated<const MessageContainingEnumCalledType>(
  9435. &from);
  9436. if (source == NULL) {
  9437. // @@protoc_insertion_point(generalized_merge_from_cast_fail:protobuf_unittest.MessageContainingEnumCalledType)
  9438. ::google::protobuf::internal::ReflectionOps::Merge(from, this);
  9439. } else {
  9440. // @@protoc_insertion_point(generalized_merge_from_cast_success:protobuf_unittest.MessageContainingEnumCalledType)
  9441. MergeFrom(*source);
  9442. }
  9443. }
  9444. void MessageContainingEnumCalledType::MergeFrom(const MessageContainingEnumCalledType& from) {
  9445. // @@protoc_insertion_point(class_specific_merge_from_start:protobuf_unittest.MessageContainingEnumCalledType)
  9446. GOOGLE_DCHECK_NE(&from, this);
  9447. _internal_metadata_.MergeFrom(from._internal_metadata_);
  9448. ::google::protobuf::uint32 cached_has_bits = 0;
  9449. (void) cached_has_bits;
  9450. type_.MergeFrom(from.type_);
  9451. }
  9452. void MessageContainingEnumCalledType::CopyFrom(const ::google::protobuf::Message& from) {
  9453. // @@protoc_insertion_point(generalized_copy_from_start:protobuf_unittest.MessageContainingEnumCalledType)
  9454. if (&from == this) return;
  9455. Clear();
  9456. MergeFrom(from);
  9457. }
  9458. void MessageContainingEnumCalledType::CopyFrom(const MessageContainingEnumCalledType& from) {
  9459. // @@protoc_insertion_point(class_specific_copy_from_start:protobuf_unittest.MessageContainingEnumCalledType)
  9460. if (&from == this) return;
  9461. Clear();
  9462. MergeFrom(from);
  9463. }
  9464. bool MessageContainingEnumCalledType::IsInitialized() const {
  9465. return true;
  9466. }
  9467. void MessageContainingEnumCalledType::Swap(MessageContainingEnumCalledType* other) {
  9468. if (other == this) return;
  9469. if (GetArenaNoVirtual() == other->GetArenaNoVirtual()) {
  9470. InternalSwap(other);
  9471. } else {
  9472. MessageContainingEnumCalledType* temp = New(GetArenaNoVirtual());
  9473. temp->MergeFrom(*other);
  9474. other->CopyFrom(*this);
  9475. InternalSwap(temp);
  9476. if (GetArenaNoVirtual() == NULL) {
  9477. delete temp;
  9478. }
  9479. }
  9480. }
  9481. void MessageContainingEnumCalledType::UnsafeArenaSwap(MessageContainingEnumCalledType* other) {
  9482. if (other == this) return;
  9483. GOOGLE_DCHECK(GetArenaNoVirtual() == other->GetArenaNoVirtual());
  9484. InternalSwap(other);
  9485. }
  9486. void MessageContainingEnumCalledType::InternalSwap(MessageContainingEnumCalledType* other) {
  9487. using std::swap;
  9488. type_.Swap(&other->type_);
  9489. _internal_metadata_.Swap(&other->_internal_metadata_);
  9490. }
  9491. ::google::protobuf::Metadata MessageContainingEnumCalledType::GetMetadata() const {
  9492. protobuf_google_2fprotobuf_2fmap_5funittest_2eproto::protobuf_AssignDescriptorsOnce();
  9493. return ::protobuf_google_2fprotobuf_2fmap_5funittest_2eproto::file_level_metadata[kIndexInFileMessages];
  9494. }
  9495. // ===================================================================
  9496. MessageContainingMapCalledEntry_EntryEntry_DoNotUse::MessageContainingMapCalledEntry_EntryEntry_DoNotUse() {}
  9497. MessageContainingMapCalledEntry_EntryEntry_DoNotUse::MessageContainingMapCalledEntry_EntryEntry_DoNotUse(::google::protobuf::Arena* arena) : SuperType(arena) {}
  9498. void MessageContainingMapCalledEntry_EntryEntry_DoNotUse::MergeFrom(const MessageContainingMapCalledEntry_EntryEntry_DoNotUse& other) {
  9499. MergeFromInternal(other);
  9500. }
  9501. ::google::protobuf::Metadata MessageContainingMapCalledEntry_EntryEntry_DoNotUse::GetMetadata() const {
  9502. ::protobuf_google_2fprotobuf_2fmap_5funittest_2eproto::protobuf_AssignDescriptorsOnce();
  9503. return ::protobuf_google_2fprotobuf_2fmap_5funittest_2eproto::file_level_metadata[49];
  9504. }
  9505. void MessageContainingMapCalledEntry_EntryEntry_DoNotUse::MergeFrom(
  9506. const ::google::protobuf::Message& other) {
  9507. ::google::protobuf::Message::MergeFrom(other);
  9508. }
  9509. // ===================================================================
  9510. void MessageContainingMapCalledEntry::InitAsDefaultInstance() {
  9511. }
  9512. #if !defined(_MSC_VER) || _MSC_VER >= 1900
  9513. const int MessageContainingMapCalledEntry::kEntryFieldNumber;
  9514. #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
  9515. MessageContainingMapCalledEntry::MessageContainingMapCalledEntry()
  9516. : ::google::protobuf::Message(), _internal_metadata_(NULL) {
  9517. ::google::protobuf::internal::InitSCC(
  9518. &protobuf_google_2fprotobuf_2fmap_5funittest_2eproto::scc_info_MessageContainingMapCalledEntry.base);
  9519. SharedCtor();
  9520. // @@protoc_insertion_point(constructor:protobuf_unittest.MessageContainingMapCalledEntry)
  9521. }
  9522. MessageContainingMapCalledEntry::MessageContainingMapCalledEntry(::google::protobuf::Arena* arena)
  9523. : ::google::protobuf::Message(),
  9524. _internal_metadata_(arena),
  9525. entry_(arena) {
  9526. ::google::protobuf::internal::InitSCC(&protobuf_google_2fprotobuf_2fmap_5funittest_2eproto::scc_info_MessageContainingMapCalledEntry.base);
  9527. SharedCtor();
  9528. RegisterArenaDtor(arena);
  9529. // @@protoc_insertion_point(arena_constructor:protobuf_unittest.MessageContainingMapCalledEntry)
  9530. }
  9531. MessageContainingMapCalledEntry::MessageContainingMapCalledEntry(const MessageContainingMapCalledEntry& from)
  9532. : ::google::protobuf::Message(),
  9533. _internal_metadata_(NULL) {
  9534. _internal_metadata_.MergeFrom(from._internal_metadata_);
  9535. entry_.MergeFrom(from.entry_);
  9536. // @@protoc_insertion_point(copy_constructor:protobuf_unittest.MessageContainingMapCalledEntry)
  9537. }
  9538. void MessageContainingMapCalledEntry::SharedCtor() {
  9539. }
  9540. MessageContainingMapCalledEntry::~MessageContainingMapCalledEntry() {
  9541. // @@protoc_insertion_point(destructor:protobuf_unittest.MessageContainingMapCalledEntry)
  9542. SharedDtor();
  9543. }
  9544. void MessageContainingMapCalledEntry::SharedDtor() {
  9545. GOOGLE_DCHECK(GetArenaNoVirtual() == NULL);
  9546. }
  9547. void MessageContainingMapCalledEntry::ArenaDtor(void* object) {
  9548. MessageContainingMapCalledEntry* _this = reinterpret_cast< MessageContainingMapCalledEntry* >(object);
  9549. (void)_this;
  9550. }
  9551. void MessageContainingMapCalledEntry::RegisterArenaDtor(::google::protobuf::Arena* arena) {
  9552. }
  9553. void MessageContainingMapCalledEntry::SetCachedSize(int size) const {
  9554. _cached_size_.Set(size);
  9555. }
  9556. const ::google::protobuf::Descriptor* MessageContainingMapCalledEntry::descriptor() {
  9557. ::protobuf_google_2fprotobuf_2fmap_5funittest_2eproto::protobuf_AssignDescriptorsOnce();
  9558. return ::protobuf_google_2fprotobuf_2fmap_5funittest_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
  9559. }
  9560. const MessageContainingMapCalledEntry& MessageContainingMapCalledEntry::default_instance() {
  9561. ::google::protobuf::internal::InitSCC(&protobuf_google_2fprotobuf_2fmap_5funittest_2eproto::scc_info_MessageContainingMapCalledEntry.base);
  9562. return *internal_default_instance();
  9563. }
  9564. void MessageContainingMapCalledEntry::Clear() {
  9565. // @@protoc_insertion_point(message_clear_start:protobuf_unittest.MessageContainingMapCalledEntry)
  9566. ::google::protobuf::uint32 cached_has_bits = 0;
  9567. // Prevent compiler warnings about cached_has_bits being unused
  9568. (void) cached_has_bits;
  9569. entry_.Clear();
  9570. _internal_metadata_.Clear();
  9571. }
  9572. bool MessageContainingMapCalledEntry::MergePartialFromCodedStream(
  9573. ::google::protobuf::io::CodedInputStream* input) {
  9574. #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
  9575. ::google::protobuf::uint32 tag;
  9576. // @@protoc_insertion_point(parse_start:protobuf_unittest.MessageContainingMapCalledEntry)
  9577. for (;;) {
  9578. ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
  9579. tag = p.first;
  9580. if (!p.second) goto handle_unusual;
  9581. switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
  9582. // map<int32, int32> entry = 1;
  9583. case 1: {
  9584. if (static_cast< ::google::protobuf::uint8>(tag) ==
  9585. static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
  9586. MessageContainingMapCalledEntry_EntryEntry_DoNotUse::Parser< ::google::protobuf::internal::MapField<
  9587. MessageContainingMapCalledEntry_EntryEntry_DoNotUse,
  9588. ::google::protobuf::int32, ::google::protobuf::int32,
  9589. ::google::protobuf::internal::WireFormatLite::TYPE_INT32,
  9590. ::google::protobuf::internal::WireFormatLite::TYPE_INT32,
  9591. 0 >,
  9592. ::google::protobuf::Map< ::google::protobuf::int32, ::google::protobuf::int32 > > parser(&entry_);
  9593. DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
  9594. input, &parser));
  9595. } else {
  9596. goto handle_unusual;
  9597. }
  9598. break;
  9599. }
  9600. default: {
  9601. handle_unusual:
  9602. if (tag == 0) {
  9603. goto success;
  9604. }
  9605. DO_(::google::protobuf::internal::WireFormat::SkipField(
  9606. input, tag, _internal_metadata_.mutable_unknown_fields()));
  9607. break;
  9608. }
  9609. }
  9610. }
  9611. success:
  9612. // @@protoc_insertion_point(parse_success:protobuf_unittest.MessageContainingMapCalledEntry)
  9613. return true;
  9614. failure:
  9615. // @@protoc_insertion_point(parse_failure:protobuf_unittest.MessageContainingMapCalledEntry)
  9616. return false;
  9617. #undef DO_
  9618. }
  9619. void MessageContainingMapCalledEntry::SerializeWithCachedSizes(
  9620. ::google::protobuf::io::CodedOutputStream* output) const {
  9621. // @@protoc_insertion_point(serialize_start:protobuf_unittest.MessageContainingMapCalledEntry)
  9622. ::google::protobuf::uint32 cached_has_bits = 0;
  9623. (void) cached_has_bits;
  9624. // map<int32, int32> entry = 1;
  9625. if (!this->entry().empty()) {
  9626. typedef ::google::protobuf::Map< ::google::protobuf::int32, ::google::protobuf::int32 >::const_pointer
  9627. ConstPtr;
  9628. typedef ::google::protobuf::internal::SortItem< ::google::protobuf::int32, ConstPtr > SortItem;
  9629. typedef ::google::protobuf::internal::CompareByFirstField<SortItem> Less;
  9630. if (output->IsSerializationDeterministic() &&
  9631. this->entry().size() > 1) {
  9632. ::std::unique_ptr<SortItem[]> items(
  9633. new SortItem[this->entry().size()]);
  9634. typedef ::google::protobuf::Map< ::google::protobuf::int32, ::google::protobuf::int32 >::size_type size_type;
  9635. size_type n = 0;
  9636. for (::google::protobuf::Map< ::google::protobuf::int32, ::google::protobuf::int32 >::const_iterator
  9637. it = this->entry().begin();
  9638. it != this->entry().end(); ++it, ++n) {
  9639. items[static_cast<ptrdiff_t>(n)] = SortItem(&*it);
  9640. }
  9641. ::std::sort(&items[0], &items[static_cast<ptrdiff_t>(n)], Less());
  9642. ::std::unique_ptr<MessageContainingMapCalledEntry_EntryEntry_DoNotUse> entry;
  9643. for (size_type i = 0; i < n; i++) {
  9644. entry.reset(entry_.NewEntryWrapper(
  9645. items[static_cast<ptrdiff_t>(i)].second->first, items[static_cast<ptrdiff_t>(i)].second->second));
  9646. ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
  9647. 1, *entry, output);
  9648. if (entry->GetArena() != NULL) {
  9649. entry.release();
  9650. }
  9651. }
  9652. } else {
  9653. ::std::unique_ptr<MessageContainingMapCalledEntry_EntryEntry_DoNotUse> entry;
  9654. for (::google::protobuf::Map< ::google::protobuf::int32, ::google::protobuf::int32 >::const_iterator
  9655. it = this->entry().begin();
  9656. it != this->entry().end(); ++it) {
  9657. entry.reset(entry_.NewEntryWrapper(
  9658. it->first, it->second));
  9659. ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
  9660. 1, *entry, output);
  9661. if (entry->GetArena() != NULL) {
  9662. entry.release();
  9663. }
  9664. }
  9665. }
  9666. }
  9667. if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
  9668. ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
  9669. (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output);
  9670. }
  9671. // @@protoc_insertion_point(serialize_end:protobuf_unittest.MessageContainingMapCalledEntry)
  9672. }
  9673. ::google::protobuf::uint8* MessageContainingMapCalledEntry::InternalSerializeWithCachedSizesToArray(
  9674. bool deterministic, ::google::protobuf::uint8* target) const {
  9675. (void)deterministic; // Unused
  9676. // @@protoc_insertion_point(serialize_to_array_start:protobuf_unittest.MessageContainingMapCalledEntry)
  9677. ::google::protobuf::uint32 cached_has_bits = 0;
  9678. (void) cached_has_bits;
  9679. // map<int32, int32> entry = 1;
  9680. if (!this->entry().empty()) {
  9681. typedef ::google::protobuf::Map< ::google::protobuf::int32, ::google::protobuf::int32 >::const_pointer
  9682. ConstPtr;
  9683. typedef ::google::protobuf::internal::SortItem< ::google::protobuf::int32, ConstPtr > SortItem;
  9684. typedef ::google::protobuf::internal::CompareByFirstField<SortItem> Less;
  9685. if (deterministic &&
  9686. this->entry().size() > 1) {
  9687. ::std::unique_ptr<SortItem[]> items(
  9688. new SortItem[this->entry().size()]);
  9689. typedef ::google::protobuf::Map< ::google::protobuf::int32, ::google::protobuf::int32 >::size_type size_type;
  9690. size_type n = 0;
  9691. for (::google::protobuf::Map< ::google::protobuf::int32, ::google::protobuf::int32 >::const_iterator
  9692. it = this->entry().begin();
  9693. it != this->entry().end(); ++it, ++n) {
  9694. items[static_cast<ptrdiff_t>(n)] = SortItem(&*it);
  9695. }
  9696. ::std::sort(&items[0], &items[static_cast<ptrdiff_t>(n)], Less());
  9697. ::std::unique_ptr<MessageContainingMapCalledEntry_EntryEntry_DoNotUse> entry;
  9698. for (size_type i = 0; i < n; i++) {
  9699. entry.reset(entry_.NewEntryWrapper(
  9700. items[static_cast<ptrdiff_t>(i)].second->first, items[static_cast<ptrdiff_t>(i)].second->second));
  9701. target = ::google::protobuf::internal::WireFormatLite::
  9702. InternalWriteMessageNoVirtualToArray(
  9703. 1, *entry, deterministic, target);
  9704. ;
  9705. if (entry->GetArena() != NULL) {
  9706. entry.release();
  9707. }
  9708. }
  9709. } else {
  9710. ::std::unique_ptr<MessageContainingMapCalledEntry_EntryEntry_DoNotUse> entry;
  9711. for (::google::protobuf::Map< ::google::protobuf::int32, ::google::protobuf::int32 >::const_iterator
  9712. it = this->entry().begin();
  9713. it != this->entry().end(); ++it) {
  9714. entry.reset(entry_.NewEntryWrapper(
  9715. it->first, it->second));
  9716. target = ::google::protobuf::internal::WireFormatLite::
  9717. InternalWriteMessageNoVirtualToArray(
  9718. 1, *entry, deterministic, target);
  9719. ;
  9720. if (entry->GetArena() != NULL) {
  9721. entry.release();
  9722. }
  9723. }
  9724. }
  9725. }
  9726. if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
  9727. target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
  9728. (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target);
  9729. }
  9730. // @@protoc_insertion_point(serialize_to_array_end:protobuf_unittest.MessageContainingMapCalledEntry)
  9731. return target;
  9732. }
  9733. size_t MessageContainingMapCalledEntry::ByteSizeLong() const {
  9734. // @@protoc_insertion_point(message_byte_size_start:protobuf_unittest.MessageContainingMapCalledEntry)
  9735. size_t total_size = 0;
  9736. if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
  9737. total_size +=
  9738. ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
  9739. (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()));
  9740. }
  9741. // map<int32, int32> entry = 1;
  9742. total_size += 1 *
  9743. ::google::protobuf::internal::FromIntSize(this->entry_size());
  9744. {
  9745. ::std::unique_ptr<MessageContainingMapCalledEntry_EntryEntry_DoNotUse> entry;
  9746. for (::google::protobuf::Map< ::google::protobuf::int32, ::google::protobuf::int32 >::const_iterator
  9747. it = this->entry().begin();
  9748. it != this->entry().end(); ++it) {
  9749. if (entry.get() != NULL && entry->GetArena() != NULL) {
  9750. entry.release();
  9751. }
  9752. entry.reset(entry_.NewEntryWrapper(it->first, it->second));
  9753. total_size += ::google::protobuf::internal::WireFormatLite::
  9754. MessageSizeNoVirtual(*entry);
  9755. }
  9756. if (entry.get() != NULL && entry->GetArena() != NULL) {
  9757. entry.release();
  9758. }
  9759. }
  9760. int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
  9761. SetCachedSize(cached_size);
  9762. return total_size;
  9763. }
  9764. void MessageContainingMapCalledEntry::MergeFrom(const ::google::protobuf::Message& from) {
  9765. // @@protoc_insertion_point(generalized_merge_from_start:protobuf_unittest.MessageContainingMapCalledEntry)
  9766. GOOGLE_DCHECK_NE(&from, this);
  9767. const MessageContainingMapCalledEntry* source =
  9768. ::google::protobuf::internal::DynamicCastToGenerated<const MessageContainingMapCalledEntry>(
  9769. &from);
  9770. if (source == NULL) {
  9771. // @@protoc_insertion_point(generalized_merge_from_cast_fail:protobuf_unittest.MessageContainingMapCalledEntry)
  9772. ::google::protobuf::internal::ReflectionOps::Merge(from, this);
  9773. } else {
  9774. // @@protoc_insertion_point(generalized_merge_from_cast_success:protobuf_unittest.MessageContainingMapCalledEntry)
  9775. MergeFrom(*source);
  9776. }
  9777. }
  9778. void MessageContainingMapCalledEntry::MergeFrom(const MessageContainingMapCalledEntry& from) {
  9779. // @@protoc_insertion_point(class_specific_merge_from_start:protobuf_unittest.MessageContainingMapCalledEntry)
  9780. GOOGLE_DCHECK_NE(&from, this);
  9781. _internal_metadata_.MergeFrom(from._internal_metadata_);
  9782. ::google::protobuf::uint32 cached_has_bits = 0;
  9783. (void) cached_has_bits;
  9784. entry_.MergeFrom(from.entry_);
  9785. }
  9786. void MessageContainingMapCalledEntry::CopyFrom(const ::google::protobuf::Message& from) {
  9787. // @@protoc_insertion_point(generalized_copy_from_start:protobuf_unittest.MessageContainingMapCalledEntry)
  9788. if (&from == this) return;
  9789. Clear();
  9790. MergeFrom(from);
  9791. }
  9792. void MessageContainingMapCalledEntry::CopyFrom(const MessageContainingMapCalledEntry& from) {
  9793. // @@protoc_insertion_point(class_specific_copy_from_start:protobuf_unittest.MessageContainingMapCalledEntry)
  9794. if (&from == this) return;
  9795. Clear();
  9796. MergeFrom(from);
  9797. }
  9798. bool MessageContainingMapCalledEntry::IsInitialized() const {
  9799. return true;
  9800. }
  9801. void MessageContainingMapCalledEntry::Swap(MessageContainingMapCalledEntry* other) {
  9802. if (other == this) return;
  9803. if (GetArenaNoVirtual() == other->GetArenaNoVirtual()) {
  9804. InternalSwap(other);
  9805. } else {
  9806. MessageContainingMapCalledEntry* temp = New(GetArenaNoVirtual());
  9807. temp->MergeFrom(*other);
  9808. other->CopyFrom(*this);
  9809. InternalSwap(temp);
  9810. if (GetArenaNoVirtual() == NULL) {
  9811. delete temp;
  9812. }
  9813. }
  9814. }
  9815. void MessageContainingMapCalledEntry::UnsafeArenaSwap(MessageContainingMapCalledEntry* other) {
  9816. if (other == this) return;
  9817. GOOGLE_DCHECK(GetArenaNoVirtual() == other->GetArenaNoVirtual());
  9818. InternalSwap(other);
  9819. }
  9820. void MessageContainingMapCalledEntry::InternalSwap(MessageContainingMapCalledEntry* other) {
  9821. using std::swap;
  9822. entry_.Swap(&other->entry_);
  9823. _internal_metadata_.Swap(&other->_internal_metadata_);
  9824. }
  9825. ::google::protobuf::Metadata MessageContainingMapCalledEntry::GetMetadata() const {
  9826. protobuf_google_2fprotobuf_2fmap_5funittest_2eproto::protobuf_AssignDescriptorsOnce();
  9827. return ::protobuf_google_2fprotobuf_2fmap_5funittest_2eproto::file_level_metadata[kIndexInFileMessages];
  9828. }
  9829. // ===================================================================
  9830. TestRecursiveMapMessage_AEntry_DoNotUse::TestRecursiveMapMessage_AEntry_DoNotUse() {}
  9831. TestRecursiveMapMessage_AEntry_DoNotUse::TestRecursiveMapMessage_AEntry_DoNotUse(::google::protobuf::Arena* arena) : SuperType(arena) {}
  9832. void TestRecursiveMapMessage_AEntry_DoNotUse::MergeFrom(const TestRecursiveMapMessage_AEntry_DoNotUse& other) {
  9833. MergeFromInternal(other);
  9834. }
  9835. ::google::protobuf::Metadata TestRecursiveMapMessage_AEntry_DoNotUse::GetMetadata() const {
  9836. ::protobuf_google_2fprotobuf_2fmap_5funittest_2eproto::protobuf_AssignDescriptorsOnce();
  9837. return ::protobuf_google_2fprotobuf_2fmap_5funittest_2eproto::file_level_metadata[51];
  9838. }
  9839. void TestRecursiveMapMessage_AEntry_DoNotUse::MergeFrom(
  9840. const ::google::protobuf::Message& other) {
  9841. ::google::protobuf::Message::MergeFrom(other);
  9842. }
  9843. // ===================================================================
  9844. void TestRecursiveMapMessage::InitAsDefaultInstance() {
  9845. }
  9846. #if !defined(_MSC_VER) || _MSC_VER >= 1900
  9847. const int TestRecursiveMapMessage::kAFieldNumber;
  9848. #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
  9849. TestRecursiveMapMessage::TestRecursiveMapMessage()
  9850. : ::google::protobuf::Message(), _internal_metadata_(NULL) {
  9851. ::google::protobuf::internal::InitSCC(
  9852. &protobuf_google_2fprotobuf_2fmap_5funittest_2eproto::scc_info_TestRecursiveMapMessage.base);
  9853. SharedCtor();
  9854. // @@protoc_insertion_point(constructor:protobuf_unittest.TestRecursiveMapMessage)
  9855. }
  9856. TestRecursiveMapMessage::TestRecursiveMapMessage(::google::protobuf::Arena* arena)
  9857. : ::google::protobuf::Message(),
  9858. _internal_metadata_(arena),
  9859. a_(arena) {
  9860. ::google::protobuf::internal::InitSCC(&protobuf_google_2fprotobuf_2fmap_5funittest_2eproto::scc_info_TestRecursiveMapMessage.base);
  9861. SharedCtor();
  9862. RegisterArenaDtor(arena);
  9863. // @@protoc_insertion_point(arena_constructor:protobuf_unittest.TestRecursiveMapMessage)
  9864. }
  9865. TestRecursiveMapMessage::TestRecursiveMapMessage(const TestRecursiveMapMessage& from)
  9866. : ::google::protobuf::Message(),
  9867. _internal_metadata_(NULL) {
  9868. _internal_metadata_.MergeFrom(from._internal_metadata_);
  9869. a_.MergeFrom(from.a_);
  9870. // @@protoc_insertion_point(copy_constructor:protobuf_unittest.TestRecursiveMapMessage)
  9871. }
  9872. void TestRecursiveMapMessage::SharedCtor() {
  9873. }
  9874. TestRecursiveMapMessage::~TestRecursiveMapMessage() {
  9875. // @@protoc_insertion_point(destructor:protobuf_unittest.TestRecursiveMapMessage)
  9876. SharedDtor();
  9877. }
  9878. void TestRecursiveMapMessage::SharedDtor() {
  9879. GOOGLE_DCHECK(GetArenaNoVirtual() == NULL);
  9880. }
  9881. void TestRecursiveMapMessage::ArenaDtor(void* object) {
  9882. TestRecursiveMapMessage* _this = reinterpret_cast< TestRecursiveMapMessage* >(object);
  9883. (void)_this;
  9884. }
  9885. void TestRecursiveMapMessage::RegisterArenaDtor(::google::protobuf::Arena* arena) {
  9886. }
  9887. void TestRecursiveMapMessage::SetCachedSize(int size) const {
  9888. _cached_size_.Set(size);
  9889. }
  9890. const ::google::protobuf::Descriptor* TestRecursiveMapMessage::descriptor() {
  9891. ::protobuf_google_2fprotobuf_2fmap_5funittest_2eproto::protobuf_AssignDescriptorsOnce();
  9892. return ::protobuf_google_2fprotobuf_2fmap_5funittest_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
  9893. }
  9894. const TestRecursiveMapMessage& TestRecursiveMapMessage::default_instance() {
  9895. ::google::protobuf::internal::InitSCC(&protobuf_google_2fprotobuf_2fmap_5funittest_2eproto::scc_info_TestRecursiveMapMessage.base);
  9896. return *internal_default_instance();
  9897. }
  9898. void TestRecursiveMapMessage::Clear() {
  9899. // @@protoc_insertion_point(message_clear_start:protobuf_unittest.TestRecursiveMapMessage)
  9900. ::google::protobuf::uint32 cached_has_bits = 0;
  9901. // Prevent compiler warnings about cached_has_bits being unused
  9902. (void) cached_has_bits;
  9903. a_.Clear();
  9904. _internal_metadata_.Clear();
  9905. }
  9906. bool TestRecursiveMapMessage::MergePartialFromCodedStream(
  9907. ::google::protobuf::io::CodedInputStream* input) {
  9908. #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
  9909. ::google::protobuf::uint32 tag;
  9910. // @@protoc_insertion_point(parse_start:protobuf_unittest.TestRecursiveMapMessage)
  9911. for (;;) {
  9912. ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
  9913. tag = p.first;
  9914. if (!p.second) goto handle_unusual;
  9915. switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
  9916. // map<string, .protobuf_unittest.TestRecursiveMapMessage> a = 1;
  9917. case 1: {
  9918. if (static_cast< ::google::protobuf::uint8>(tag) ==
  9919. static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
  9920. TestRecursiveMapMessage_AEntry_DoNotUse::Parser< ::google::protobuf::internal::MapField<
  9921. TestRecursiveMapMessage_AEntry_DoNotUse,
  9922. ::std::string, ::protobuf_unittest::TestRecursiveMapMessage,
  9923. ::google::protobuf::internal::WireFormatLite::TYPE_STRING,
  9924. ::google::protobuf::internal::WireFormatLite::TYPE_MESSAGE,
  9925. 0 >,
  9926. ::google::protobuf::Map< ::std::string, ::protobuf_unittest::TestRecursiveMapMessage > > parser(&a_);
  9927. DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
  9928. input, &parser));
  9929. DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
  9930. parser.key().data(), static_cast<int>(parser.key().length()),
  9931. ::google::protobuf::internal::WireFormatLite::PARSE,
  9932. "protobuf_unittest.TestRecursiveMapMessage.AEntry.key"));
  9933. } else {
  9934. goto handle_unusual;
  9935. }
  9936. break;
  9937. }
  9938. default: {
  9939. handle_unusual:
  9940. if (tag == 0) {
  9941. goto success;
  9942. }
  9943. DO_(::google::protobuf::internal::WireFormat::SkipField(
  9944. input, tag, _internal_metadata_.mutable_unknown_fields()));
  9945. break;
  9946. }
  9947. }
  9948. }
  9949. success:
  9950. // @@protoc_insertion_point(parse_success:protobuf_unittest.TestRecursiveMapMessage)
  9951. return true;
  9952. failure:
  9953. // @@protoc_insertion_point(parse_failure:protobuf_unittest.TestRecursiveMapMessage)
  9954. return false;
  9955. #undef DO_
  9956. }
  9957. void TestRecursiveMapMessage::SerializeWithCachedSizes(
  9958. ::google::protobuf::io::CodedOutputStream* output) const {
  9959. // @@protoc_insertion_point(serialize_start:protobuf_unittest.TestRecursiveMapMessage)
  9960. ::google::protobuf::uint32 cached_has_bits = 0;
  9961. (void) cached_has_bits;
  9962. // map<string, .protobuf_unittest.TestRecursiveMapMessage> a = 1;
  9963. if (!this->a().empty()) {
  9964. typedef ::google::protobuf::Map< ::std::string, ::protobuf_unittest::TestRecursiveMapMessage >::const_pointer
  9965. ConstPtr;
  9966. typedef ConstPtr SortItem;
  9967. typedef ::google::protobuf::internal::CompareByDerefFirst<SortItem> Less;
  9968. struct Utf8Check {
  9969. static void Check(ConstPtr p) {
  9970. ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
  9971. p->first.data(), static_cast<int>(p->first.length()),
  9972. ::google::protobuf::internal::WireFormatLite::SERIALIZE,
  9973. "protobuf_unittest.TestRecursiveMapMessage.AEntry.key");
  9974. }
  9975. };
  9976. if (output->IsSerializationDeterministic() &&
  9977. this->a().size() > 1) {
  9978. ::std::unique_ptr<SortItem[]> items(
  9979. new SortItem[this->a().size()]);
  9980. typedef ::google::protobuf::Map< ::std::string, ::protobuf_unittest::TestRecursiveMapMessage >::size_type size_type;
  9981. size_type n = 0;
  9982. for (::google::protobuf::Map< ::std::string, ::protobuf_unittest::TestRecursiveMapMessage >::const_iterator
  9983. it = this->a().begin();
  9984. it != this->a().end(); ++it, ++n) {
  9985. items[static_cast<ptrdiff_t>(n)] = SortItem(&*it);
  9986. }
  9987. ::std::sort(&items[0], &items[static_cast<ptrdiff_t>(n)], Less());
  9988. ::std::unique_ptr<TestRecursiveMapMessage_AEntry_DoNotUse> entry;
  9989. for (size_type i = 0; i < n; i++) {
  9990. entry.reset(a_.NewEntryWrapper(
  9991. items[static_cast<ptrdiff_t>(i)]->first, items[static_cast<ptrdiff_t>(i)]->second));
  9992. ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
  9993. 1, *entry, output);
  9994. if (entry->GetArena() != NULL) {
  9995. entry.release();
  9996. }
  9997. Utf8Check::Check(items[static_cast<ptrdiff_t>(i)]);
  9998. }
  9999. } else {
  10000. ::std::unique_ptr<TestRecursiveMapMessage_AEntry_DoNotUse> entry;
  10001. for (::google::protobuf::Map< ::std::string, ::protobuf_unittest::TestRecursiveMapMessage >::const_iterator
  10002. it = this->a().begin();
  10003. it != this->a().end(); ++it) {
  10004. entry.reset(a_.NewEntryWrapper(
  10005. it->first, it->second));
  10006. ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
  10007. 1, *entry, output);
  10008. if (entry->GetArena() != NULL) {
  10009. entry.release();
  10010. }
  10011. Utf8Check::Check(&*it);
  10012. }
  10013. }
  10014. }
  10015. if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
  10016. ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
  10017. (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output);
  10018. }
  10019. // @@protoc_insertion_point(serialize_end:protobuf_unittest.TestRecursiveMapMessage)
  10020. }
  10021. ::google::protobuf::uint8* TestRecursiveMapMessage::InternalSerializeWithCachedSizesToArray(
  10022. bool deterministic, ::google::protobuf::uint8* target) const {
  10023. (void)deterministic; // Unused
  10024. // @@protoc_insertion_point(serialize_to_array_start:protobuf_unittest.TestRecursiveMapMessage)
  10025. ::google::protobuf::uint32 cached_has_bits = 0;
  10026. (void) cached_has_bits;
  10027. // map<string, .protobuf_unittest.TestRecursiveMapMessage> a = 1;
  10028. if (!this->a().empty()) {
  10029. typedef ::google::protobuf::Map< ::std::string, ::protobuf_unittest::TestRecursiveMapMessage >::const_pointer
  10030. ConstPtr;
  10031. typedef ConstPtr SortItem;
  10032. typedef ::google::protobuf::internal::CompareByDerefFirst<SortItem> Less;
  10033. struct Utf8Check {
  10034. static void Check(ConstPtr p) {
  10035. ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
  10036. p->first.data(), static_cast<int>(p->first.length()),
  10037. ::google::protobuf::internal::WireFormatLite::SERIALIZE,
  10038. "protobuf_unittest.TestRecursiveMapMessage.AEntry.key");
  10039. }
  10040. };
  10041. if (deterministic &&
  10042. this->a().size() > 1) {
  10043. ::std::unique_ptr<SortItem[]> items(
  10044. new SortItem[this->a().size()]);
  10045. typedef ::google::protobuf::Map< ::std::string, ::protobuf_unittest::TestRecursiveMapMessage >::size_type size_type;
  10046. size_type n = 0;
  10047. for (::google::protobuf::Map< ::std::string, ::protobuf_unittest::TestRecursiveMapMessage >::const_iterator
  10048. it = this->a().begin();
  10049. it != this->a().end(); ++it, ++n) {
  10050. items[static_cast<ptrdiff_t>(n)] = SortItem(&*it);
  10051. }
  10052. ::std::sort(&items[0], &items[static_cast<ptrdiff_t>(n)], Less());
  10053. ::std::unique_ptr<TestRecursiveMapMessage_AEntry_DoNotUse> entry;
  10054. for (size_type i = 0; i < n; i++) {
  10055. entry.reset(a_.NewEntryWrapper(
  10056. items[static_cast<ptrdiff_t>(i)]->first, items[static_cast<ptrdiff_t>(i)]->second));
  10057. target = ::google::protobuf::internal::WireFormatLite::
  10058. InternalWriteMessageNoVirtualToArray(
  10059. 1, *entry, deterministic, target);
  10060. ;
  10061. if (entry->GetArena() != NULL) {
  10062. entry.release();
  10063. }
  10064. Utf8Check::Check(items[static_cast<ptrdiff_t>(i)]);
  10065. }
  10066. } else {
  10067. ::std::unique_ptr<TestRecursiveMapMessage_AEntry_DoNotUse> entry;
  10068. for (::google::protobuf::Map< ::std::string, ::protobuf_unittest::TestRecursiveMapMessage >::const_iterator
  10069. it = this->a().begin();
  10070. it != this->a().end(); ++it) {
  10071. entry.reset(a_.NewEntryWrapper(
  10072. it->first, it->second));
  10073. target = ::google::protobuf::internal::WireFormatLite::
  10074. InternalWriteMessageNoVirtualToArray(
  10075. 1, *entry, deterministic, target);
  10076. ;
  10077. if (entry->GetArena() != NULL) {
  10078. entry.release();
  10079. }
  10080. Utf8Check::Check(&*it);
  10081. }
  10082. }
  10083. }
  10084. if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
  10085. target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
  10086. (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target);
  10087. }
  10088. // @@protoc_insertion_point(serialize_to_array_end:protobuf_unittest.TestRecursiveMapMessage)
  10089. return target;
  10090. }
  10091. size_t TestRecursiveMapMessage::ByteSizeLong() const {
  10092. // @@protoc_insertion_point(message_byte_size_start:protobuf_unittest.TestRecursiveMapMessage)
  10093. size_t total_size = 0;
  10094. if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
  10095. total_size +=
  10096. ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
  10097. (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()));
  10098. }
  10099. // map<string, .protobuf_unittest.TestRecursiveMapMessage> a = 1;
  10100. total_size += 1 *
  10101. ::google::protobuf::internal::FromIntSize(this->a_size());
  10102. {
  10103. ::std::unique_ptr<TestRecursiveMapMessage_AEntry_DoNotUse> entry;
  10104. for (::google::protobuf::Map< ::std::string, ::protobuf_unittest::TestRecursiveMapMessage >::const_iterator
  10105. it = this->a().begin();
  10106. it != this->a().end(); ++it) {
  10107. if (entry.get() != NULL && entry->GetArena() != NULL) {
  10108. entry.release();
  10109. }
  10110. entry.reset(a_.NewEntryWrapper(it->first, it->second));
  10111. total_size += ::google::protobuf::internal::WireFormatLite::
  10112. MessageSizeNoVirtual(*entry);
  10113. }
  10114. if (entry.get() != NULL && entry->GetArena() != NULL) {
  10115. entry.release();
  10116. }
  10117. }
  10118. int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
  10119. SetCachedSize(cached_size);
  10120. return total_size;
  10121. }
  10122. void TestRecursiveMapMessage::MergeFrom(const ::google::protobuf::Message& from) {
  10123. // @@protoc_insertion_point(generalized_merge_from_start:protobuf_unittest.TestRecursiveMapMessage)
  10124. GOOGLE_DCHECK_NE(&from, this);
  10125. const TestRecursiveMapMessage* source =
  10126. ::google::protobuf::internal::DynamicCastToGenerated<const TestRecursiveMapMessage>(
  10127. &from);
  10128. if (source == NULL) {
  10129. // @@protoc_insertion_point(generalized_merge_from_cast_fail:protobuf_unittest.TestRecursiveMapMessage)
  10130. ::google::protobuf::internal::ReflectionOps::Merge(from, this);
  10131. } else {
  10132. // @@protoc_insertion_point(generalized_merge_from_cast_success:protobuf_unittest.TestRecursiveMapMessage)
  10133. MergeFrom(*source);
  10134. }
  10135. }
  10136. void TestRecursiveMapMessage::MergeFrom(const TestRecursiveMapMessage& from) {
  10137. // @@protoc_insertion_point(class_specific_merge_from_start:protobuf_unittest.TestRecursiveMapMessage)
  10138. GOOGLE_DCHECK_NE(&from, this);
  10139. _internal_metadata_.MergeFrom(from._internal_metadata_);
  10140. ::google::protobuf::uint32 cached_has_bits = 0;
  10141. (void) cached_has_bits;
  10142. a_.MergeFrom(from.a_);
  10143. }
  10144. void TestRecursiveMapMessage::CopyFrom(const ::google::protobuf::Message& from) {
  10145. // @@protoc_insertion_point(generalized_copy_from_start:protobuf_unittest.TestRecursiveMapMessage)
  10146. if (&from == this) return;
  10147. Clear();
  10148. MergeFrom(from);
  10149. }
  10150. void TestRecursiveMapMessage::CopyFrom(const TestRecursiveMapMessage& from) {
  10151. // @@protoc_insertion_point(class_specific_copy_from_start:protobuf_unittest.TestRecursiveMapMessage)
  10152. if (&from == this) return;
  10153. Clear();
  10154. MergeFrom(from);
  10155. }
  10156. bool TestRecursiveMapMessage::IsInitialized() const {
  10157. return true;
  10158. }
  10159. void TestRecursiveMapMessage::Swap(TestRecursiveMapMessage* other) {
  10160. if (other == this) return;
  10161. if (GetArenaNoVirtual() == other->GetArenaNoVirtual()) {
  10162. InternalSwap(other);
  10163. } else {
  10164. TestRecursiveMapMessage* temp = New(GetArenaNoVirtual());
  10165. temp->MergeFrom(*other);
  10166. other->CopyFrom(*this);
  10167. InternalSwap(temp);
  10168. if (GetArenaNoVirtual() == NULL) {
  10169. delete temp;
  10170. }
  10171. }
  10172. }
  10173. void TestRecursiveMapMessage::UnsafeArenaSwap(TestRecursiveMapMessage* other) {
  10174. if (other == this) return;
  10175. GOOGLE_DCHECK(GetArenaNoVirtual() == other->GetArenaNoVirtual());
  10176. InternalSwap(other);
  10177. }
  10178. void TestRecursiveMapMessage::InternalSwap(TestRecursiveMapMessage* other) {
  10179. using std::swap;
  10180. a_.Swap(&other->a_);
  10181. _internal_metadata_.Swap(&other->_internal_metadata_);
  10182. }
  10183. ::google::protobuf::Metadata TestRecursiveMapMessage::GetMetadata() const {
  10184. protobuf_google_2fprotobuf_2fmap_5funittest_2eproto::protobuf_AssignDescriptorsOnce();
  10185. return ::protobuf_google_2fprotobuf_2fmap_5funittest_2eproto::file_level_metadata[kIndexInFileMessages];
  10186. }
  10187. // @@protoc_insertion_point(namespace_scope)
  10188. } // namespace protobuf_unittest
  10189. namespace google {
  10190. namespace protobuf {
  10191. template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::protobuf_unittest::TestMap_MapInt32Int32Entry_DoNotUse* Arena::CreateMaybeMessage< ::protobuf_unittest::TestMap_MapInt32Int32Entry_DoNotUse >(Arena* arena) {
  10192. return Arena::CreateMessageInternal< ::protobuf_unittest::TestMap_MapInt32Int32Entry_DoNotUse >(arena);
  10193. }
  10194. template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::protobuf_unittest::TestMap_MapInt64Int64Entry_DoNotUse* Arena::CreateMaybeMessage< ::protobuf_unittest::TestMap_MapInt64Int64Entry_DoNotUse >(Arena* arena) {
  10195. return Arena::CreateMessageInternal< ::protobuf_unittest::TestMap_MapInt64Int64Entry_DoNotUse >(arena);
  10196. }
  10197. template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::protobuf_unittest::TestMap_MapUint32Uint32Entry_DoNotUse* Arena::CreateMaybeMessage< ::protobuf_unittest::TestMap_MapUint32Uint32Entry_DoNotUse >(Arena* arena) {
  10198. return Arena::CreateMessageInternal< ::protobuf_unittest::TestMap_MapUint32Uint32Entry_DoNotUse >(arena);
  10199. }
  10200. template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::protobuf_unittest::TestMap_MapUint64Uint64Entry_DoNotUse* Arena::CreateMaybeMessage< ::protobuf_unittest::TestMap_MapUint64Uint64Entry_DoNotUse >(Arena* arena) {
  10201. return Arena::CreateMessageInternal< ::protobuf_unittest::TestMap_MapUint64Uint64Entry_DoNotUse >(arena);
  10202. }
  10203. template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::protobuf_unittest::TestMap_MapSint32Sint32Entry_DoNotUse* Arena::CreateMaybeMessage< ::protobuf_unittest::TestMap_MapSint32Sint32Entry_DoNotUse >(Arena* arena) {
  10204. return Arena::CreateMessageInternal< ::protobuf_unittest::TestMap_MapSint32Sint32Entry_DoNotUse >(arena);
  10205. }
  10206. template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::protobuf_unittest::TestMap_MapSint64Sint64Entry_DoNotUse* Arena::CreateMaybeMessage< ::protobuf_unittest::TestMap_MapSint64Sint64Entry_DoNotUse >(Arena* arena) {
  10207. return Arena::CreateMessageInternal< ::protobuf_unittest::TestMap_MapSint64Sint64Entry_DoNotUse >(arena);
  10208. }
  10209. template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::protobuf_unittest::TestMap_MapFixed32Fixed32Entry_DoNotUse* Arena::CreateMaybeMessage< ::protobuf_unittest::TestMap_MapFixed32Fixed32Entry_DoNotUse >(Arena* arena) {
  10210. return Arena::CreateMessageInternal< ::protobuf_unittest::TestMap_MapFixed32Fixed32Entry_DoNotUse >(arena);
  10211. }
  10212. template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::protobuf_unittest::TestMap_MapFixed64Fixed64Entry_DoNotUse* Arena::CreateMaybeMessage< ::protobuf_unittest::TestMap_MapFixed64Fixed64Entry_DoNotUse >(Arena* arena) {
  10213. return Arena::CreateMessageInternal< ::protobuf_unittest::TestMap_MapFixed64Fixed64Entry_DoNotUse >(arena);
  10214. }
  10215. template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::protobuf_unittest::TestMap_MapSfixed32Sfixed32Entry_DoNotUse* Arena::CreateMaybeMessage< ::protobuf_unittest::TestMap_MapSfixed32Sfixed32Entry_DoNotUse >(Arena* arena) {
  10216. return Arena::CreateMessageInternal< ::protobuf_unittest::TestMap_MapSfixed32Sfixed32Entry_DoNotUse >(arena);
  10217. }
  10218. template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::protobuf_unittest::TestMap_MapSfixed64Sfixed64Entry_DoNotUse* Arena::CreateMaybeMessage< ::protobuf_unittest::TestMap_MapSfixed64Sfixed64Entry_DoNotUse >(Arena* arena) {
  10219. return Arena::CreateMessageInternal< ::protobuf_unittest::TestMap_MapSfixed64Sfixed64Entry_DoNotUse >(arena);
  10220. }
  10221. template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::protobuf_unittest::TestMap_MapInt32FloatEntry_DoNotUse* Arena::CreateMaybeMessage< ::protobuf_unittest::TestMap_MapInt32FloatEntry_DoNotUse >(Arena* arena) {
  10222. return Arena::CreateMessageInternal< ::protobuf_unittest::TestMap_MapInt32FloatEntry_DoNotUse >(arena);
  10223. }
  10224. template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::protobuf_unittest::TestMap_MapInt32DoubleEntry_DoNotUse* Arena::CreateMaybeMessage< ::protobuf_unittest::TestMap_MapInt32DoubleEntry_DoNotUse >(Arena* arena) {
  10225. return Arena::CreateMessageInternal< ::protobuf_unittest::TestMap_MapInt32DoubleEntry_DoNotUse >(arena);
  10226. }
  10227. template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::protobuf_unittest::TestMap_MapBoolBoolEntry_DoNotUse* Arena::CreateMaybeMessage< ::protobuf_unittest::TestMap_MapBoolBoolEntry_DoNotUse >(Arena* arena) {
  10228. return Arena::CreateMessageInternal< ::protobuf_unittest::TestMap_MapBoolBoolEntry_DoNotUse >(arena);
  10229. }
  10230. template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::protobuf_unittest::TestMap_MapStringStringEntry_DoNotUse* Arena::CreateMaybeMessage< ::protobuf_unittest::TestMap_MapStringStringEntry_DoNotUse >(Arena* arena) {
  10231. return Arena::CreateMessageInternal< ::protobuf_unittest::TestMap_MapStringStringEntry_DoNotUse >(arena);
  10232. }
  10233. template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::protobuf_unittest::TestMap_MapInt32BytesEntry_DoNotUse* Arena::CreateMaybeMessage< ::protobuf_unittest::TestMap_MapInt32BytesEntry_DoNotUse >(Arena* arena) {
  10234. return Arena::CreateMessageInternal< ::protobuf_unittest::TestMap_MapInt32BytesEntry_DoNotUse >(arena);
  10235. }
  10236. template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::protobuf_unittest::TestMap_MapInt32EnumEntry_DoNotUse* Arena::CreateMaybeMessage< ::protobuf_unittest::TestMap_MapInt32EnumEntry_DoNotUse >(Arena* arena) {
  10237. return Arena::CreateMessageInternal< ::protobuf_unittest::TestMap_MapInt32EnumEntry_DoNotUse >(arena);
  10238. }
  10239. template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::protobuf_unittest::TestMap_MapInt32ForeignMessageEntry_DoNotUse* Arena::CreateMaybeMessage< ::protobuf_unittest::TestMap_MapInt32ForeignMessageEntry_DoNotUse >(Arena* arena) {
  10240. return Arena::CreateMessageInternal< ::protobuf_unittest::TestMap_MapInt32ForeignMessageEntry_DoNotUse >(arena);
  10241. }
  10242. template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::protobuf_unittest::TestMap_MapStringForeignMessageEntry_DoNotUse* Arena::CreateMaybeMessage< ::protobuf_unittest::TestMap_MapStringForeignMessageEntry_DoNotUse >(Arena* arena) {
  10243. return Arena::CreateMessageInternal< ::protobuf_unittest::TestMap_MapStringForeignMessageEntry_DoNotUse >(arena);
  10244. }
  10245. template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::protobuf_unittest::TestMap_MapInt32AllTypesEntry_DoNotUse* Arena::CreateMaybeMessage< ::protobuf_unittest::TestMap_MapInt32AllTypesEntry_DoNotUse >(Arena* arena) {
  10246. return Arena::CreateMessageInternal< ::protobuf_unittest::TestMap_MapInt32AllTypesEntry_DoNotUse >(arena);
  10247. }
  10248. template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::protobuf_unittest::TestMap* Arena::CreateMaybeMessage< ::protobuf_unittest::TestMap >(Arena* arena) {
  10249. return Arena::CreateMessageInternal< ::protobuf_unittest::TestMap >(arena);
  10250. }
  10251. template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::protobuf_unittest::TestMapSubmessage* Arena::CreateMaybeMessage< ::protobuf_unittest::TestMapSubmessage >(Arena* arena) {
  10252. return Arena::CreateMessageInternal< ::protobuf_unittest::TestMapSubmessage >(arena);
  10253. }
  10254. template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::protobuf_unittest::TestMessageMap_MapInt32MessageEntry_DoNotUse* Arena::CreateMaybeMessage< ::protobuf_unittest::TestMessageMap_MapInt32MessageEntry_DoNotUse >(Arena* arena) {
  10255. return Arena::CreateMessageInternal< ::protobuf_unittest::TestMessageMap_MapInt32MessageEntry_DoNotUse >(arena);
  10256. }
  10257. template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::protobuf_unittest::TestMessageMap* Arena::CreateMaybeMessage< ::protobuf_unittest::TestMessageMap >(Arena* arena) {
  10258. return Arena::CreateMessageInternal< ::protobuf_unittest::TestMessageMap >(arena);
  10259. }
  10260. template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::protobuf_unittest::TestSameTypeMap_Map1Entry_DoNotUse* Arena::CreateMaybeMessage< ::protobuf_unittest::TestSameTypeMap_Map1Entry_DoNotUse >(Arena* arena) {
  10261. return Arena::CreateMessageInternal< ::protobuf_unittest::TestSameTypeMap_Map1Entry_DoNotUse >(arena);
  10262. }
  10263. template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::protobuf_unittest::TestSameTypeMap_Map2Entry_DoNotUse* Arena::CreateMaybeMessage< ::protobuf_unittest::TestSameTypeMap_Map2Entry_DoNotUse >(Arena* arena) {
  10264. return Arena::CreateMessageInternal< ::protobuf_unittest::TestSameTypeMap_Map2Entry_DoNotUse >(arena);
  10265. }
  10266. template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::protobuf_unittest::TestSameTypeMap* Arena::CreateMaybeMessage< ::protobuf_unittest::TestSameTypeMap >(Arena* arena) {
  10267. return Arena::CreateMessageInternal< ::protobuf_unittest::TestSameTypeMap >(arena);
  10268. }
  10269. template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::protobuf_unittest::TestRequiredMessageMap_MapFieldEntry_DoNotUse* Arena::CreateMaybeMessage< ::protobuf_unittest::TestRequiredMessageMap_MapFieldEntry_DoNotUse >(Arena* arena) {
  10270. return Arena::CreateMessageInternal< ::protobuf_unittest::TestRequiredMessageMap_MapFieldEntry_DoNotUse >(arena);
  10271. }
  10272. template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::protobuf_unittest::TestRequiredMessageMap* Arena::CreateMaybeMessage< ::protobuf_unittest::TestRequiredMessageMap >(Arena* arena) {
  10273. return Arena::CreateMessageInternal< ::protobuf_unittest::TestRequiredMessageMap >(arena);
  10274. }
  10275. template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::protobuf_unittest::TestArenaMap_MapInt32Int32Entry_DoNotUse* Arena::CreateMaybeMessage< ::protobuf_unittest::TestArenaMap_MapInt32Int32Entry_DoNotUse >(Arena* arena) {
  10276. return Arena::CreateMessageInternal< ::protobuf_unittest::TestArenaMap_MapInt32Int32Entry_DoNotUse >(arena);
  10277. }
  10278. template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::protobuf_unittest::TestArenaMap_MapInt64Int64Entry_DoNotUse* Arena::CreateMaybeMessage< ::protobuf_unittest::TestArenaMap_MapInt64Int64Entry_DoNotUse >(Arena* arena) {
  10279. return Arena::CreateMessageInternal< ::protobuf_unittest::TestArenaMap_MapInt64Int64Entry_DoNotUse >(arena);
  10280. }
  10281. template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::protobuf_unittest::TestArenaMap_MapUint32Uint32Entry_DoNotUse* Arena::CreateMaybeMessage< ::protobuf_unittest::TestArenaMap_MapUint32Uint32Entry_DoNotUse >(Arena* arena) {
  10282. return Arena::CreateMessageInternal< ::protobuf_unittest::TestArenaMap_MapUint32Uint32Entry_DoNotUse >(arena);
  10283. }
  10284. template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::protobuf_unittest::TestArenaMap_MapUint64Uint64Entry_DoNotUse* Arena::CreateMaybeMessage< ::protobuf_unittest::TestArenaMap_MapUint64Uint64Entry_DoNotUse >(Arena* arena) {
  10285. return Arena::CreateMessageInternal< ::protobuf_unittest::TestArenaMap_MapUint64Uint64Entry_DoNotUse >(arena);
  10286. }
  10287. template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::protobuf_unittest::TestArenaMap_MapSint32Sint32Entry_DoNotUse* Arena::CreateMaybeMessage< ::protobuf_unittest::TestArenaMap_MapSint32Sint32Entry_DoNotUse >(Arena* arena) {
  10288. return Arena::CreateMessageInternal< ::protobuf_unittest::TestArenaMap_MapSint32Sint32Entry_DoNotUse >(arena);
  10289. }
  10290. template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::protobuf_unittest::TestArenaMap_MapSint64Sint64Entry_DoNotUse* Arena::CreateMaybeMessage< ::protobuf_unittest::TestArenaMap_MapSint64Sint64Entry_DoNotUse >(Arena* arena) {
  10291. return Arena::CreateMessageInternal< ::protobuf_unittest::TestArenaMap_MapSint64Sint64Entry_DoNotUse >(arena);
  10292. }
  10293. template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::protobuf_unittest::TestArenaMap_MapFixed32Fixed32Entry_DoNotUse* Arena::CreateMaybeMessage< ::protobuf_unittest::TestArenaMap_MapFixed32Fixed32Entry_DoNotUse >(Arena* arena) {
  10294. return Arena::CreateMessageInternal< ::protobuf_unittest::TestArenaMap_MapFixed32Fixed32Entry_DoNotUse >(arena);
  10295. }
  10296. template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::protobuf_unittest::TestArenaMap_MapFixed64Fixed64Entry_DoNotUse* Arena::CreateMaybeMessage< ::protobuf_unittest::TestArenaMap_MapFixed64Fixed64Entry_DoNotUse >(Arena* arena) {
  10297. return Arena::CreateMessageInternal< ::protobuf_unittest::TestArenaMap_MapFixed64Fixed64Entry_DoNotUse >(arena);
  10298. }
  10299. template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::protobuf_unittest::TestArenaMap_MapSfixed32Sfixed32Entry_DoNotUse* Arena::CreateMaybeMessage< ::protobuf_unittest::TestArenaMap_MapSfixed32Sfixed32Entry_DoNotUse >(Arena* arena) {
  10300. return Arena::CreateMessageInternal< ::protobuf_unittest::TestArenaMap_MapSfixed32Sfixed32Entry_DoNotUse >(arena);
  10301. }
  10302. template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::protobuf_unittest::TestArenaMap_MapSfixed64Sfixed64Entry_DoNotUse* Arena::CreateMaybeMessage< ::protobuf_unittest::TestArenaMap_MapSfixed64Sfixed64Entry_DoNotUse >(Arena* arena) {
  10303. return Arena::CreateMessageInternal< ::protobuf_unittest::TestArenaMap_MapSfixed64Sfixed64Entry_DoNotUse >(arena);
  10304. }
  10305. template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::protobuf_unittest::TestArenaMap_MapInt32FloatEntry_DoNotUse* Arena::CreateMaybeMessage< ::protobuf_unittest::TestArenaMap_MapInt32FloatEntry_DoNotUse >(Arena* arena) {
  10306. return Arena::CreateMessageInternal< ::protobuf_unittest::TestArenaMap_MapInt32FloatEntry_DoNotUse >(arena);
  10307. }
  10308. template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::protobuf_unittest::TestArenaMap_MapInt32DoubleEntry_DoNotUse* Arena::CreateMaybeMessage< ::protobuf_unittest::TestArenaMap_MapInt32DoubleEntry_DoNotUse >(Arena* arena) {
  10309. return Arena::CreateMessageInternal< ::protobuf_unittest::TestArenaMap_MapInt32DoubleEntry_DoNotUse >(arena);
  10310. }
  10311. template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::protobuf_unittest::TestArenaMap_MapBoolBoolEntry_DoNotUse* Arena::CreateMaybeMessage< ::protobuf_unittest::TestArenaMap_MapBoolBoolEntry_DoNotUse >(Arena* arena) {
  10312. return Arena::CreateMessageInternal< ::protobuf_unittest::TestArenaMap_MapBoolBoolEntry_DoNotUse >(arena);
  10313. }
  10314. template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::protobuf_unittest::TestArenaMap_MapStringStringEntry_DoNotUse* Arena::CreateMaybeMessage< ::protobuf_unittest::TestArenaMap_MapStringStringEntry_DoNotUse >(Arena* arena) {
  10315. return Arena::CreateMessageInternal< ::protobuf_unittest::TestArenaMap_MapStringStringEntry_DoNotUse >(arena);
  10316. }
  10317. template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::protobuf_unittest::TestArenaMap_MapInt32BytesEntry_DoNotUse* Arena::CreateMaybeMessage< ::protobuf_unittest::TestArenaMap_MapInt32BytesEntry_DoNotUse >(Arena* arena) {
  10318. return Arena::CreateMessageInternal< ::protobuf_unittest::TestArenaMap_MapInt32BytesEntry_DoNotUse >(arena);
  10319. }
  10320. template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::protobuf_unittest::TestArenaMap_MapInt32EnumEntry_DoNotUse* Arena::CreateMaybeMessage< ::protobuf_unittest::TestArenaMap_MapInt32EnumEntry_DoNotUse >(Arena* arena) {
  10321. return Arena::CreateMessageInternal< ::protobuf_unittest::TestArenaMap_MapInt32EnumEntry_DoNotUse >(arena);
  10322. }
  10323. template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::protobuf_unittest::TestArenaMap_MapInt32ForeignMessageEntry_DoNotUse* Arena::CreateMaybeMessage< ::protobuf_unittest::TestArenaMap_MapInt32ForeignMessageEntry_DoNotUse >(Arena* arena) {
  10324. return Arena::CreateMessageInternal< ::protobuf_unittest::TestArenaMap_MapInt32ForeignMessageEntry_DoNotUse >(arena);
  10325. }
  10326. template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::protobuf_unittest::TestArenaMap_MapInt32ForeignMessageNoArenaEntry_DoNotUse* Arena::CreateMaybeMessage< ::protobuf_unittest::TestArenaMap_MapInt32ForeignMessageNoArenaEntry_DoNotUse >(Arena* arena) {
  10327. return Arena::CreateMessageInternal< ::protobuf_unittest::TestArenaMap_MapInt32ForeignMessageNoArenaEntry_DoNotUse >(arena);
  10328. }
  10329. template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::protobuf_unittest::TestArenaMap* Arena::CreateMaybeMessage< ::protobuf_unittest::TestArenaMap >(Arena* arena) {
  10330. return Arena::CreateMessageInternal< ::protobuf_unittest::TestArenaMap >(arena);
  10331. }
  10332. template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::protobuf_unittest::MessageContainingEnumCalledType_TypeEntry_DoNotUse* Arena::CreateMaybeMessage< ::protobuf_unittest::MessageContainingEnumCalledType_TypeEntry_DoNotUse >(Arena* arena) {
  10333. return Arena::CreateMessageInternal< ::protobuf_unittest::MessageContainingEnumCalledType_TypeEntry_DoNotUse >(arena);
  10334. }
  10335. template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::protobuf_unittest::MessageContainingEnumCalledType* Arena::CreateMaybeMessage< ::protobuf_unittest::MessageContainingEnumCalledType >(Arena* arena) {
  10336. return Arena::CreateMessageInternal< ::protobuf_unittest::MessageContainingEnumCalledType >(arena);
  10337. }
  10338. template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::protobuf_unittest::MessageContainingMapCalledEntry_EntryEntry_DoNotUse* Arena::CreateMaybeMessage< ::protobuf_unittest::MessageContainingMapCalledEntry_EntryEntry_DoNotUse >(Arena* arena) {
  10339. return Arena::CreateMessageInternal< ::protobuf_unittest::MessageContainingMapCalledEntry_EntryEntry_DoNotUse >(arena);
  10340. }
  10341. template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::protobuf_unittest::MessageContainingMapCalledEntry* Arena::CreateMaybeMessage< ::protobuf_unittest::MessageContainingMapCalledEntry >(Arena* arena) {
  10342. return Arena::CreateMessageInternal< ::protobuf_unittest::MessageContainingMapCalledEntry >(arena);
  10343. }
  10344. template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::protobuf_unittest::TestRecursiveMapMessage_AEntry_DoNotUse* Arena::CreateMaybeMessage< ::protobuf_unittest::TestRecursiveMapMessage_AEntry_DoNotUse >(Arena* arena) {
  10345. return Arena::CreateMessageInternal< ::protobuf_unittest::TestRecursiveMapMessage_AEntry_DoNotUse >(arena);
  10346. }
  10347. template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::protobuf_unittest::TestRecursiveMapMessage* Arena::CreateMaybeMessage< ::protobuf_unittest::TestRecursiveMapMessage >(Arena* arena) {
  10348. return Arena::CreateMessageInternal< ::protobuf_unittest::TestRecursiveMapMessage >(arena);
  10349. }
  10350. } // namespace protobuf
  10351. } // namespace google
  10352. // @@protoc_insertion_point(global_scope)