123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166 |
- // Generated by the protocol buffer compiler. DO NOT EDIT!
- // source: google/protobuf/map_unittest.proto
- #include <google/protobuf/map_unittest.pb.h>
- #include <algorithm>
- #include <google/protobuf/stubs/common.h>
- #include <google/protobuf/stubs/port.h>
- #include <google/protobuf/io/coded_stream.h>
- #include <google/protobuf/wire_format_lite_inl.h>
- #include <google/protobuf/descriptor.h>
- #include <google/protobuf/generated_message_reflection.h>
- #include <google/protobuf/reflection_ops.h>
- #include <google/protobuf/wire_format.h>
- // This is a temporary google only hack
- #ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
- #include "third_party/protobuf/version.h"
- #endif
- // @@protoc_insertion_point(includes)
- namespace protobuf_google_2fprotobuf_2fmap_5funittest_2eproto {
- extern PROTOBUF_INTERNAL_EXPORT_protobuf_google_2fprotobuf_2fmap_5funittest_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_MessageContainingEnumCalledType;
- extern PROTOBUF_INTERNAL_EXPORT_protobuf_google_2fprotobuf_2fmap_5funittest_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_MessageContainingMapCalledEntry_EntryEntry_DoNotUse;
- extern PROTOBUF_INTERNAL_EXPORT_protobuf_google_2fprotobuf_2fmap_5funittest_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_TestArenaMap_MapBoolBoolEntry_DoNotUse;
- extern PROTOBUF_INTERNAL_EXPORT_protobuf_google_2fprotobuf_2fmap_5funittest_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_TestArenaMap_MapFixed32Fixed32Entry_DoNotUse;
- extern PROTOBUF_INTERNAL_EXPORT_protobuf_google_2fprotobuf_2fmap_5funittest_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_TestArenaMap_MapFixed64Fixed64Entry_DoNotUse;
- extern PROTOBUF_INTERNAL_EXPORT_protobuf_google_2fprotobuf_2fmap_5funittest_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_TestArenaMap_MapInt32BytesEntry_DoNotUse;
- extern PROTOBUF_INTERNAL_EXPORT_protobuf_google_2fprotobuf_2fmap_5funittest_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_TestArenaMap_MapInt32DoubleEntry_DoNotUse;
- extern PROTOBUF_INTERNAL_EXPORT_protobuf_google_2fprotobuf_2fmap_5funittest_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_TestArenaMap_MapInt32EnumEntry_DoNotUse;
- extern PROTOBUF_INTERNAL_EXPORT_protobuf_google_2fprotobuf_2fmap_5funittest_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_TestArenaMap_MapInt32FloatEntry_DoNotUse;
- extern PROTOBUF_INTERNAL_EXPORT_protobuf_google_2fprotobuf_2fmap_5funittest_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_TestArenaMap_MapInt32Int32Entry_DoNotUse;
- extern PROTOBUF_INTERNAL_EXPORT_protobuf_google_2fprotobuf_2fmap_5funittest_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_TestArenaMap_MapInt64Int64Entry_DoNotUse;
- extern PROTOBUF_INTERNAL_EXPORT_protobuf_google_2fprotobuf_2fmap_5funittest_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_TestArenaMap_MapSfixed32Sfixed32Entry_DoNotUse;
- extern PROTOBUF_INTERNAL_EXPORT_protobuf_google_2fprotobuf_2fmap_5funittest_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_TestArenaMap_MapSfixed64Sfixed64Entry_DoNotUse;
- extern PROTOBUF_INTERNAL_EXPORT_protobuf_google_2fprotobuf_2fmap_5funittest_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_TestArenaMap_MapSint32Sint32Entry_DoNotUse;
- extern PROTOBUF_INTERNAL_EXPORT_protobuf_google_2fprotobuf_2fmap_5funittest_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_TestArenaMap_MapSint64Sint64Entry_DoNotUse;
- extern PROTOBUF_INTERNAL_EXPORT_protobuf_google_2fprotobuf_2fmap_5funittest_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_TestArenaMap_MapStringStringEntry_DoNotUse;
- extern PROTOBUF_INTERNAL_EXPORT_protobuf_google_2fprotobuf_2fmap_5funittest_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_TestArenaMap_MapUint32Uint32Entry_DoNotUse;
- extern PROTOBUF_INTERNAL_EXPORT_protobuf_google_2fprotobuf_2fmap_5funittest_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_TestArenaMap_MapUint64Uint64Entry_DoNotUse;
- extern PROTOBUF_INTERNAL_EXPORT_protobuf_google_2fprotobuf_2fmap_5funittest_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_TestMap_MapBoolBoolEntry_DoNotUse;
- extern PROTOBUF_INTERNAL_EXPORT_protobuf_google_2fprotobuf_2fmap_5funittest_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_TestMap_MapFixed32Fixed32Entry_DoNotUse;
- extern PROTOBUF_INTERNAL_EXPORT_protobuf_google_2fprotobuf_2fmap_5funittest_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_TestMap_MapFixed64Fixed64Entry_DoNotUse;
- extern PROTOBUF_INTERNAL_EXPORT_protobuf_google_2fprotobuf_2fmap_5funittest_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_TestMap_MapInt32BytesEntry_DoNotUse;
- extern PROTOBUF_INTERNAL_EXPORT_protobuf_google_2fprotobuf_2fmap_5funittest_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_TestMap_MapInt32DoubleEntry_DoNotUse;
- extern PROTOBUF_INTERNAL_EXPORT_protobuf_google_2fprotobuf_2fmap_5funittest_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_TestMap_MapInt32EnumEntry_DoNotUse;
- extern PROTOBUF_INTERNAL_EXPORT_protobuf_google_2fprotobuf_2fmap_5funittest_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_TestMap_MapInt32FloatEntry_DoNotUse;
- extern PROTOBUF_INTERNAL_EXPORT_protobuf_google_2fprotobuf_2fmap_5funittest_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_TestMap_MapInt32Int32Entry_DoNotUse;
- extern PROTOBUF_INTERNAL_EXPORT_protobuf_google_2fprotobuf_2fmap_5funittest_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_TestMap_MapInt64Int64Entry_DoNotUse;
- extern PROTOBUF_INTERNAL_EXPORT_protobuf_google_2fprotobuf_2fmap_5funittest_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_TestMap_MapSfixed32Sfixed32Entry_DoNotUse;
- extern PROTOBUF_INTERNAL_EXPORT_protobuf_google_2fprotobuf_2fmap_5funittest_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_TestMap_MapSfixed64Sfixed64Entry_DoNotUse;
- extern PROTOBUF_INTERNAL_EXPORT_protobuf_google_2fprotobuf_2fmap_5funittest_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_TestMap_MapSint32Sint32Entry_DoNotUse;
- extern PROTOBUF_INTERNAL_EXPORT_protobuf_google_2fprotobuf_2fmap_5funittest_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_TestMap_MapSint64Sint64Entry_DoNotUse;
- extern PROTOBUF_INTERNAL_EXPORT_protobuf_google_2fprotobuf_2fmap_5funittest_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_TestMap_MapStringStringEntry_DoNotUse;
- extern PROTOBUF_INTERNAL_EXPORT_protobuf_google_2fprotobuf_2fmap_5funittest_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_TestMap_MapUint32Uint32Entry_DoNotUse;
- extern PROTOBUF_INTERNAL_EXPORT_protobuf_google_2fprotobuf_2fmap_5funittest_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_TestMap_MapUint64Uint64Entry_DoNotUse;
- extern PROTOBUF_INTERNAL_EXPORT_protobuf_google_2fprotobuf_2fmap_5funittest_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_TestRecursiveMapMessage;
- extern PROTOBUF_INTERNAL_EXPORT_protobuf_google_2fprotobuf_2fmap_5funittest_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_TestSameTypeMap_Map1Entry_DoNotUse;
- extern PROTOBUF_INTERNAL_EXPORT_protobuf_google_2fprotobuf_2fmap_5funittest_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_TestSameTypeMap_Map2Entry_DoNotUse;
- extern PROTOBUF_INTERNAL_EXPORT_protobuf_google_2fprotobuf_2fmap_5funittest_2eproto ::google::protobuf::internal::SCCInfo<19> scc_info_TestMap;
- extern PROTOBUF_INTERNAL_EXPORT_protobuf_google_2fprotobuf_2fmap_5funittest_2eproto ::google::protobuf::internal::SCCInfo<1> scc_info_TestArenaMap_MapInt32ForeignMessageEntry_DoNotUse;
- extern PROTOBUF_INTERNAL_EXPORT_protobuf_google_2fprotobuf_2fmap_5funittest_2eproto ::google::protobuf::internal::SCCInfo<1> scc_info_TestArenaMap_MapInt32ForeignMessageNoArenaEntry_DoNotUse;
- extern PROTOBUF_INTERNAL_EXPORT_protobuf_google_2fprotobuf_2fmap_5funittest_2eproto ::google::protobuf::internal::SCCInfo<1> scc_info_TestMap_MapInt32AllTypesEntry_DoNotUse;
- extern PROTOBUF_INTERNAL_EXPORT_protobuf_google_2fprotobuf_2fmap_5funittest_2eproto ::google::protobuf::internal::SCCInfo<1> scc_info_TestMap_MapInt32ForeignMessageEntry_DoNotUse;
- extern PROTOBUF_INTERNAL_EXPORT_protobuf_google_2fprotobuf_2fmap_5funittest_2eproto ::google::protobuf::internal::SCCInfo<1> scc_info_TestMap_MapStringForeignMessageEntry_DoNotUse;
- extern PROTOBUF_INTERNAL_EXPORT_protobuf_google_2fprotobuf_2fmap_5funittest_2eproto ::google::protobuf::internal::SCCInfo<1> scc_info_TestMessageMap_MapInt32MessageEntry_DoNotUse;
- extern PROTOBUF_INTERNAL_EXPORT_protobuf_google_2fprotobuf_2fmap_5funittest_2eproto ::google::protobuf::internal::SCCInfo<1> scc_info_TestRequiredMessageMap_MapFieldEntry_DoNotUse;
- } // namespace protobuf_google_2fprotobuf_2fmap_5funittest_2eproto
- namespace protobuf_google_2fprotobuf_2funittest_2eproto {
- extern PROTOBUF_INTERNAL_EXPORT_protobuf_google_2fprotobuf_2funittest_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_ForeignMessage;
- extern PROTOBUF_INTERNAL_EXPORT_protobuf_google_2fprotobuf_2funittest_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_TestRequired;
- extern PROTOBUF_INTERNAL_EXPORT_protobuf_google_2fprotobuf_2funittest_2eproto ::google::protobuf::internal::SCCInfo<6> scc_info_TestAllTypes;
- } // namespace protobuf_google_2fprotobuf_2funittest_2eproto
- namespace protobuf_google_2fprotobuf_2funittest_5fno_5farena_2eproto {
- extern PROTOBUF_INTERNAL_EXPORT_protobuf_google_2fprotobuf_2funittest_5fno_5farena_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_ForeignMessage;
- } // namespace protobuf_google_2fprotobuf_2funittest_5fno_5farena_2eproto
- namespace protobuf_unittest {
- class TestMap_MapInt32Int32Entry_DoNotUseDefaultTypeInternal {
- public:
- ::google::protobuf::internal::ExplicitlyConstructed<TestMap_MapInt32Int32Entry_DoNotUse>
- _instance;
- } _TestMap_MapInt32Int32Entry_DoNotUse_default_instance_;
- class TestMap_MapInt64Int64Entry_DoNotUseDefaultTypeInternal {
- public:
- ::google::protobuf::internal::ExplicitlyConstructed<TestMap_MapInt64Int64Entry_DoNotUse>
- _instance;
- } _TestMap_MapInt64Int64Entry_DoNotUse_default_instance_;
- class TestMap_MapUint32Uint32Entry_DoNotUseDefaultTypeInternal {
- public:
- ::google::protobuf::internal::ExplicitlyConstructed<TestMap_MapUint32Uint32Entry_DoNotUse>
- _instance;
- } _TestMap_MapUint32Uint32Entry_DoNotUse_default_instance_;
- class TestMap_MapUint64Uint64Entry_DoNotUseDefaultTypeInternal {
- public:
- ::google::protobuf::internal::ExplicitlyConstructed<TestMap_MapUint64Uint64Entry_DoNotUse>
- _instance;
- } _TestMap_MapUint64Uint64Entry_DoNotUse_default_instance_;
- class TestMap_MapSint32Sint32Entry_DoNotUseDefaultTypeInternal {
- public:
- ::google::protobuf::internal::ExplicitlyConstructed<TestMap_MapSint32Sint32Entry_DoNotUse>
- _instance;
- } _TestMap_MapSint32Sint32Entry_DoNotUse_default_instance_;
- class TestMap_MapSint64Sint64Entry_DoNotUseDefaultTypeInternal {
- public:
- ::google::protobuf::internal::ExplicitlyConstructed<TestMap_MapSint64Sint64Entry_DoNotUse>
- _instance;
- } _TestMap_MapSint64Sint64Entry_DoNotUse_default_instance_;
- class TestMap_MapFixed32Fixed32Entry_DoNotUseDefaultTypeInternal {
- public:
- ::google::protobuf::internal::ExplicitlyConstructed<TestMap_MapFixed32Fixed32Entry_DoNotUse>
- _instance;
- } _TestMap_MapFixed32Fixed32Entry_DoNotUse_default_instance_;
- class TestMap_MapFixed64Fixed64Entry_DoNotUseDefaultTypeInternal {
- public:
- ::google::protobuf::internal::ExplicitlyConstructed<TestMap_MapFixed64Fixed64Entry_DoNotUse>
- _instance;
- } _TestMap_MapFixed64Fixed64Entry_DoNotUse_default_instance_;
- class TestMap_MapSfixed32Sfixed32Entry_DoNotUseDefaultTypeInternal {
- public:
- ::google::protobuf::internal::ExplicitlyConstructed<TestMap_MapSfixed32Sfixed32Entry_DoNotUse>
- _instance;
- } _TestMap_MapSfixed32Sfixed32Entry_DoNotUse_default_instance_;
- class TestMap_MapSfixed64Sfixed64Entry_DoNotUseDefaultTypeInternal {
- public:
- ::google::protobuf::internal::ExplicitlyConstructed<TestMap_MapSfixed64Sfixed64Entry_DoNotUse>
- _instance;
- } _TestMap_MapSfixed64Sfixed64Entry_DoNotUse_default_instance_;
- class TestMap_MapInt32FloatEntry_DoNotUseDefaultTypeInternal {
- public:
- ::google::protobuf::internal::ExplicitlyConstructed<TestMap_MapInt32FloatEntry_DoNotUse>
- _instance;
- } _TestMap_MapInt32FloatEntry_DoNotUse_default_instance_;
- class TestMap_MapInt32DoubleEntry_DoNotUseDefaultTypeInternal {
- public:
- ::google::protobuf::internal::ExplicitlyConstructed<TestMap_MapInt32DoubleEntry_DoNotUse>
- _instance;
- } _TestMap_MapInt32DoubleEntry_DoNotUse_default_instance_;
- class TestMap_MapBoolBoolEntry_DoNotUseDefaultTypeInternal {
- public:
- ::google::protobuf::internal::ExplicitlyConstructed<TestMap_MapBoolBoolEntry_DoNotUse>
- _instance;
- } _TestMap_MapBoolBoolEntry_DoNotUse_default_instance_;
- class TestMap_MapStringStringEntry_DoNotUseDefaultTypeInternal {
- public:
- ::google::protobuf::internal::ExplicitlyConstructed<TestMap_MapStringStringEntry_DoNotUse>
- _instance;
- } _TestMap_MapStringStringEntry_DoNotUse_default_instance_;
- class TestMap_MapInt32BytesEntry_DoNotUseDefaultTypeInternal {
- public:
- ::google::protobuf::internal::ExplicitlyConstructed<TestMap_MapInt32BytesEntry_DoNotUse>
- _instance;
- } _TestMap_MapInt32BytesEntry_DoNotUse_default_instance_;
- class TestMap_MapInt32EnumEntry_DoNotUseDefaultTypeInternal {
- public:
- ::google::protobuf::internal::ExplicitlyConstructed<TestMap_MapInt32EnumEntry_DoNotUse>
- _instance;
- } _TestMap_MapInt32EnumEntry_DoNotUse_default_instance_;
- class TestMap_MapInt32ForeignMessageEntry_DoNotUseDefaultTypeInternal {
- public:
- ::google::protobuf::internal::ExplicitlyConstructed<TestMap_MapInt32ForeignMessageEntry_DoNotUse>
- _instance;
- } _TestMap_MapInt32ForeignMessageEntry_DoNotUse_default_instance_;
- class TestMap_MapStringForeignMessageEntry_DoNotUseDefaultTypeInternal {
- public:
- ::google::protobuf::internal::ExplicitlyConstructed<TestMap_MapStringForeignMessageEntry_DoNotUse>
- _instance;
- } _TestMap_MapStringForeignMessageEntry_DoNotUse_default_instance_;
- class TestMap_MapInt32AllTypesEntry_DoNotUseDefaultTypeInternal {
- public:
- ::google::protobuf::internal::ExplicitlyConstructed<TestMap_MapInt32AllTypesEntry_DoNotUse>
- _instance;
- } _TestMap_MapInt32AllTypesEntry_DoNotUse_default_instance_;
- class TestMapDefaultTypeInternal {
- public:
- ::google::protobuf::internal::ExplicitlyConstructed<TestMap>
- _instance;
- } _TestMap_default_instance_;
- class TestMapSubmessageDefaultTypeInternal {
- public:
- ::google::protobuf::internal::ExplicitlyConstructed<TestMapSubmessage>
- _instance;
- } _TestMapSubmessage_default_instance_;
- class TestMessageMap_MapInt32MessageEntry_DoNotUseDefaultTypeInternal {
- public:
- ::google::protobuf::internal::ExplicitlyConstructed<TestMessageMap_MapInt32MessageEntry_DoNotUse>
- _instance;
- } _TestMessageMap_MapInt32MessageEntry_DoNotUse_default_instance_;
- class TestMessageMapDefaultTypeInternal {
- public:
- ::google::protobuf::internal::ExplicitlyConstructed<TestMessageMap>
- _instance;
- } _TestMessageMap_default_instance_;
- class TestSameTypeMap_Map1Entry_DoNotUseDefaultTypeInternal {
- public:
- ::google::protobuf::internal::ExplicitlyConstructed<TestSameTypeMap_Map1Entry_DoNotUse>
- _instance;
- } _TestSameTypeMap_Map1Entry_DoNotUse_default_instance_;
- class TestSameTypeMap_Map2Entry_DoNotUseDefaultTypeInternal {
- public:
- ::google::protobuf::internal::ExplicitlyConstructed<TestSameTypeMap_Map2Entry_DoNotUse>
- _instance;
- } _TestSameTypeMap_Map2Entry_DoNotUse_default_instance_;
- class TestSameTypeMapDefaultTypeInternal {
- public:
- ::google::protobuf::internal::ExplicitlyConstructed<TestSameTypeMap>
- _instance;
- } _TestSameTypeMap_default_instance_;
- class TestRequiredMessageMap_MapFieldEntry_DoNotUseDefaultTypeInternal {
- public:
- ::google::protobuf::internal::ExplicitlyConstructed<TestRequiredMessageMap_MapFieldEntry_DoNotUse>
- _instance;
- } _TestRequiredMessageMap_MapFieldEntry_DoNotUse_default_instance_;
- class TestRequiredMessageMapDefaultTypeInternal {
- public:
- ::google::protobuf::internal::ExplicitlyConstructed<TestRequiredMessageMap>
- _instance;
- } _TestRequiredMessageMap_default_instance_;
- class TestArenaMap_MapInt32Int32Entry_DoNotUseDefaultTypeInternal {
- public:
- ::google::protobuf::internal::ExplicitlyConstructed<TestArenaMap_MapInt32Int32Entry_DoNotUse>
- _instance;
- } _TestArenaMap_MapInt32Int32Entry_DoNotUse_default_instance_;
- class TestArenaMap_MapInt64Int64Entry_DoNotUseDefaultTypeInternal {
- public:
- ::google::protobuf::internal::ExplicitlyConstructed<TestArenaMap_MapInt64Int64Entry_DoNotUse>
- _instance;
- } _TestArenaMap_MapInt64Int64Entry_DoNotUse_default_instance_;
- class TestArenaMap_MapUint32Uint32Entry_DoNotUseDefaultTypeInternal {
- public:
- ::google::protobuf::internal::ExplicitlyConstructed<TestArenaMap_MapUint32Uint32Entry_DoNotUse>
- _instance;
- } _TestArenaMap_MapUint32Uint32Entry_DoNotUse_default_instance_;
- class TestArenaMap_MapUint64Uint64Entry_DoNotUseDefaultTypeInternal {
- public:
- ::google::protobuf::internal::ExplicitlyConstructed<TestArenaMap_MapUint64Uint64Entry_DoNotUse>
- _instance;
- } _TestArenaMap_MapUint64Uint64Entry_DoNotUse_default_instance_;
- class TestArenaMap_MapSint32Sint32Entry_DoNotUseDefaultTypeInternal {
- public:
- ::google::protobuf::internal::ExplicitlyConstructed<TestArenaMap_MapSint32Sint32Entry_DoNotUse>
- _instance;
- } _TestArenaMap_MapSint32Sint32Entry_DoNotUse_default_instance_;
- class TestArenaMap_MapSint64Sint64Entry_DoNotUseDefaultTypeInternal {
- public:
- ::google::protobuf::internal::ExplicitlyConstructed<TestArenaMap_MapSint64Sint64Entry_DoNotUse>
- _instance;
- } _TestArenaMap_MapSint64Sint64Entry_DoNotUse_default_instance_;
- class TestArenaMap_MapFixed32Fixed32Entry_DoNotUseDefaultTypeInternal {
- public:
- ::google::protobuf::internal::ExplicitlyConstructed<TestArenaMap_MapFixed32Fixed32Entry_DoNotUse>
- _instance;
- } _TestArenaMap_MapFixed32Fixed32Entry_DoNotUse_default_instance_;
- class TestArenaMap_MapFixed64Fixed64Entry_DoNotUseDefaultTypeInternal {
- public:
- ::google::protobuf::internal::ExplicitlyConstructed<TestArenaMap_MapFixed64Fixed64Entry_DoNotUse>
- _instance;
- } _TestArenaMap_MapFixed64Fixed64Entry_DoNotUse_default_instance_;
- class TestArenaMap_MapSfixed32Sfixed32Entry_DoNotUseDefaultTypeInternal {
- public:
- ::google::protobuf::internal::ExplicitlyConstructed<TestArenaMap_MapSfixed32Sfixed32Entry_DoNotUse>
- _instance;
- } _TestArenaMap_MapSfixed32Sfixed32Entry_DoNotUse_default_instance_;
- class TestArenaMap_MapSfixed64Sfixed64Entry_DoNotUseDefaultTypeInternal {
- public:
- ::google::protobuf::internal::ExplicitlyConstructed<TestArenaMap_MapSfixed64Sfixed64Entry_DoNotUse>
- _instance;
- } _TestArenaMap_MapSfixed64Sfixed64Entry_DoNotUse_default_instance_;
- class TestArenaMap_MapInt32FloatEntry_DoNotUseDefaultTypeInternal {
- public:
- ::google::protobuf::internal::ExplicitlyConstructed<TestArenaMap_MapInt32FloatEntry_DoNotUse>
- _instance;
- } _TestArenaMap_MapInt32FloatEntry_DoNotUse_default_instance_;
- class TestArenaMap_MapInt32DoubleEntry_DoNotUseDefaultTypeInternal {
- public:
- ::google::protobuf::internal::ExplicitlyConstructed<TestArenaMap_MapInt32DoubleEntry_DoNotUse>
- _instance;
- } _TestArenaMap_MapInt32DoubleEntry_DoNotUse_default_instance_;
- class TestArenaMap_MapBoolBoolEntry_DoNotUseDefaultTypeInternal {
- public:
- ::google::protobuf::internal::ExplicitlyConstructed<TestArenaMap_MapBoolBoolEntry_DoNotUse>
- _instance;
- } _TestArenaMap_MapBoolBoolEntry_DoNotUse_default_instance_;
- class TestArenaMap_MapStringStringEntry_DoNotUseDefaultTypeInternal {
- public:
- ::google::protobuf::internal::ExplicitlyConstructed<TestArenaMap_MapStringStringEntry_DoNotUse>
- _instance;
- } _TestArenaMap_MapStringStringEntry_DoNotUse_default_instance_;
- class TestArenaMap_MapInt32BytesEntry_DoNotUseDefaultTypeInternal {
- public:
- ::google::protobuf::internal::ExplicitlyConstructed<TestArenaMap_MapInt32BytesEntry_DoNotUse>
- _instance;
- } _TestArenaMap_MapInt32BytesEntry_DoNotUse_default_instance_;
- class TestArenaMap_MapInt32EnumEntry_DoNotUseDefaultTypeInternal {
- public:
- ::google::protobuf::internal::ExplicitlyConstructed<TestArenaMap_MapInt32EnumEntry_DoNotUse>
- _instance;
- } _TestArenaMap_MapInt32EnumEntry_DoNotUse_default_instance_;
- class TestArenaMap_MapInt32ForeignMessageEntry_DoNotUseDefaultTypeInternal {
- public:
- ::google::protobuf::internal::ExplicitlyConstructed<TestArenaMap_MapInt32ForeignMessageEntry_DoNotUse>
- _instance;
- } _TestArenaMap_MapInt32ForeignMessageEntry_DoNotUse_default_instance_;
- class TestArenaMap_MapInt32ForeignMessageNoArenaEntry_DoNotUseDefaultTypeInternal {
- public:
- ::google::protobuf::internal::ExplicitlyConstructed<TestArenaMap_MapInt32ForeignMessageNoArenaEntry_DoNotUse>
- _instance;
- } _TestArenaMap_MapInt32ForeignMessageNoArenaEntry_DoNotUse_default_instance_;
- class TestArenaMapDefaultTypeInternal {
- public:
- ::google::protobuf::internal::ExplicitlyConstructed<TestArenaMap>
- _instance;
- } _TestArenaMap_default_instance_;
- class MessageContainingEnumCalledType_TypeEntry_DoNotUseDefaultTypeInternal {
- public:
- ::google::protobuf::internal::ExplicitlyConstructed<MessageContainingEnumCalledType_TypeEntry_DoNotUse>
- _instance;
- } _MessageContainingEnumCalledType_TypeEntry_DoNotUse_default_instance_;
- class MessageContainingEnumCalledTypeDefaultTypeInternal {
- public:
- ::google::protobuf::internal::ExplicitlyConstructed<MessageContainingEnumCalledType>
- _instance;
- } _MessageContainingEnumCalledType_default_instance_;
- class MessageContainingMapCalledEntry_EntryEntry_DoNotUseDefaultTypeInternal {
- public:
- ::google::protobuf::internal::ExplicitlyConstructed<MessageContainingMapCalledEntry_EntryEntry_DoNotUse>
- _instance;
- } _MessageContainingMapCalledEntry_EntryEntry_DoNotUse_default_instance_;
- class MessageContainingMapCalledEntryDefaultTypeInternal {
- public:
- ::google::protobuf::internal::ExplicitlyConstructed<MessageContainingMapCalledEntry>
- _instance;
- } _MessageContainingMapCalledEntry_default_instance_;
- class TestRecursiveMapMessage_AEntry_DoNotUseDefaultTypeInternal {
- public:
- ::google::protobuf::internal::ExplicitlyConstructed<TestRecursiveMapMessage_AEntry_DoNotUse>
- _instance;
- } _TestRecursiveMapMessage_AEntry_DoNotUse_default_instance_;
- class TestRecursiveMapMessageDefaultTypeInternal {
- public:
- ::google::protobuf::internal::ExplicitlyConstructed<TestRecursiveMapMessage>
- _instance;
- } _TestRecursiveMapMessage_default_instance_;
- } // namespace protobuf_unittest
- namespace protobuf_google_2fprotobuf_2fmap_5funittest_2eproto {
- static void InitDefaultsTestMap_MapInt32Int32Entry_DoNotUse() {
- GOOGLE_PROTOBUF_VERIFY_VERSION;
- {
- void* ptr = &::protobuf_unittest::_TestMap_MapInt32Int32Entry_DoNotUse_default_instance_;
- new (ptr) ::protobuf_unittest::TestMap_MapInt32Int32Entry_DoNotUse();
- }
- ::protobuf_unittest::TestMap_MapInt32Int32Entry_DoNotUse::InitAsDefaultInstance();
- }
- ::google::protobuf::internal::SCCInfo<0> scc_info_TestMap_MapInt32Int32Entry_DoNotUse =
- {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsTestMap_MapInt32Int32Entry_DoNotUse}, {}};
- static void InitDefaultsTestMap_MapInt64Int64Entry_DoNotUse() {
- GOOGLE_PROTOBUF_VERIFY_VERSION;
- {
- void* ptr = &::protobuf_unittest::_TestMap_MapInt64Int64Entry_DoNotUse_default_instance_;
- new (ptr) ::protobuf_unittest::TestMap_MapInt64Int64Entry_DoNotUse();
- }
- ::protobuf_unittest::TestMap_MapInt64Int64Entry_DoNotUse::InitAsDefaultInstance();
- }
- ::google::protobuf::internal::SCCInfo<0> scc_info_TestMap_MapInt64Int64Entry_DoNotUse =
- {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsTestMap_MapInt64Int64Entry_DoNotUse}, {}};
- static void InitDefaultsTestMap_MapUint32Uint32Entry_DoNotUse() {
- GOOGLE_PROTOBUF_VERIFY_VERSION;
- {
- void* ptr = &::protobuf_unittest::_TestMap_MapUint32Uint32Entry_DoNotUse_default_instance_;
- new (ptr) ::protobuf_unittest::TestMap_MapUint32Uint32Entry_DoNotUse();
- }
- ::protobuf_unittest::TestMap_MapUint32Uint32Entry_DoNotUse::InitAsDefaultInstance();
- }
- ::google::protobuf::internal::SCCInfo<0> scc_info_TestMap_MapUint32Uint32Entry_DoNotUse =
- {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsTestMap_MapUint32Uint32Entry_DoNotUse}, {}};
- static void InitDefaultsTestMap_MapUint64Uint64Entry_DoNotUse() {
- GOOGLE_PROTOBUF_VERIFY_VERSION;
- {
- void* ptr = &::protobuf_unittest::_TestMap_MapUint64Uint64Entry_DoNotUse_default_instance_;
- new (ptr) ::protobuf_unittest::TestMap_MapUint64Uint64Entry_DoNotUse();
- }
- ::protobuf_unittest::TestMap_MapUint64Uint64Entry_DoNotUse::InitAsDefaultInstance();
- }
- ::google::protobuf::internal::SCCInfo<0> scc_info_TestMap_MapUint64Uint64Entry_DoNotUse =
- {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsTestMap_MapUint64Uint64Entry_DoNotUse}, {}};
- static void InitDefaultsTestMap_MapSint32Sint32Entry_DoNotUse() {
- GOOGLE_PROTOBUF_VERIFY_VERSION;
- {
- void* ptr = &::protobuf_unittest::_TestMap_MapSint32Sint32Entry_DoNotUse_default_instance_;
- new (ptr) ::protobuf_unittest::TestMap_MapSint32Sint32Entry_DoNotUse();
- }
- ::protobuf_unittest::TestMap_MapSint32Sint32Entry_DoNotUse::InitAsDefaultInstance();
- }
- ::google::protobuf::internal::SCCInfo<0> scc_info_TestMap_MapSint32Sint32Entry_DoNotUse =
- {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsTestMap_MapSint32Sint32Entry_DoNotUse}, {}};
- static void InitDefaultsTestMap_MapSint64Sint64Entry_DoNotUse() {
- GOOGLE_PROTOBUF_VERIFY_VERSION;
- {
- void* ptr = &::protobuf_unittest::_TestMap_MapSint64Sint64Entry_DoNotUse_default_instance_;
- new (ptr) ::protobuf_unittest::TestMap_MapSint64Sint64Entry_DoNotUse();
- }
- ::protobuf_unittest::TestMap_MapSint64Sint64Entry_DoNotUse::InitAsDefaultInstance();
- }
- ::google::protobuf::internal::SCCInfo<0> scc_info_TestMap_MapSint64Sint64Entry_DoNotUse =
- {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsTestMap_MapSint64Sint64Entry_DoNotUse}, {}};
- static void InitDefaultsTestMap_MapFixed32Fixed32Entry_DoNotUse() {
- GOOGLE_PROTOBUF_VERIFY_VERSION;
- {
- void* ptr = &::protobuf_unittest::_TestMap_MapFixed32Fixed32Entry_DoNotUse_default_instance_;
- new (ptr) ::protobuf_unittest::TestMap_MapFixed32Fixed32Entry_DoNotUse();
- }
- ::protobuf_unittest::TestMap_MapFixed32Fixed32Entry_DoNotUse::InitAsDefaultInstance();
- }
- ::google::protobuf::internal::SCCInfo<0> scc_info_TestMap_MapFixed32Fixed32Entry_DoNotUse =
- {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsTestMap_MapFixed32Fixed32Entry_DoNotUse}, {}};
- static void InitDefaultsTestMap_MapFixed64Fixed64Entry_DoNotUse() {
- GOOGLE_PROTOBUF_VERIFY_VERSION;
- {
- void* ptr = &::protobuf_unittest::_TestMap_MapFixed64Fixed64Entry_DoNotUse_default_instance_;
- new (ptr) ::protobuf_unittest::TestMap_MapFixed64Fixed64Entry_DoNotUse();
- }
- ::protobuf_unittest::TestMap_MapFixed64Fixed64Entry_DoNotUse::InitAsDefaultInstance();
- }
- ::google::protobuf::internal::SCCInfo<0> scc_info_TestMap_MapFixed64Fixed64Entry_DoNotUse =
- {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsTestMap_MapFixed64Fixed64Entry_DoNotUse}, {}};
- static void InitDefaultsTestMap_MapSfixed32Sfixed32Entry_DoNotUse() {
- GOOGLE_PROTOBUF_VERIFY_VERSION;
- {
- void* ptr = &::protobuf_unittest::_TestMap_MapSfixed32Sfixed32Entry_DoNotUse_default_instance_;
- new (ptr) ::protobuf_unittest::TestMap_MapSfixed32Sfixed32Entry_DoNotUse();
- }
- ::protobuf_unittest::TestMap_MapSfixed32Sfixed32Entry_DoNotUse::InitAsDefaultInstance();
- }
- ::google::protobuf::internal::SCCInfo<0> scc_info_TestMap_MapSfixed32Sfixed32Entry_DoNotUse =
- {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsTestMap_MapSfixed32Sfixed32Entry_DoNotUse}, {}};
- static void InitDefaultsTestMap_MapSfixed64Sfixed64Entry_DoNotUse() {
- GOOGLE_PROTOBUF_VERIFY_VERSION;
- {
- void* ptr = &::protobuf_unittest::_TestMap_MapSfixed64Sfixed64Entry_DoNotUse_default_instance_;
- new (ptr) ::protobuf_unittest::TestMap_MapSfixed64Sfixed64Entry_DoNotUse();
- }
- ::protobuf_unittest::TestMap_MapSfixed64Sfixed64Entry_DoNotUse::InitAsDefaultInstance();
- }
- ::google::protobuf::internal::SCCInfo<0> scc_info_TestMap_MapSfixed64Sfixed64Entry_DoNotUse =
- {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsTestMap_MapSfixed64Sfixed64Entry_DoNotUse}, {}};
- static void InitDefaultsTestMap_MapInt32FloatEntry_DoNotUse() {
- GOOGLE_PROTOBUF_VERIFY_VERSION;
- {
- void* ptr = &::protobuf_unittest::_TestMap_MapInt32FloatEntry_DoNotUse_default_instance_;
- new (ptr) ::protobuf_unittest::TestMap_MapInt32FloatEntry_DoNotUse();
- }
- ::protobuf_unittest::TestMap_MapInt32FloatEntry_DoNotUse::InitAsDefaultInstance();
- }
- ::google::protobuf::internal::SCCInfo<0> scc_info_TestMap_MapInt32FloatEntry_DoNotUse =
- {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsTestMap_MapInt32FloatEntry_DoNotUse}, {}};
- static void InitDefaultsTestMap_MapInt32DoubleEntry_DoNotUse() {
- GOOGLE_PROTOBUF_VERIFY_VERSION;
- {
- void* ptr = &::protobuf_unittest::_TestMap_MapInt32DoubleEntry_DoNotUse_default_instance_;
- new (ptr) ::protobuf_unittest::TestMap_MapInt32DoubleEntry_DoNotUse();
- }
- ::protobuf_unittest::TestMap_MapInt32DoubleEntry_DoNotUse::InitAsDefaultInstance();
- }
- ::google::protobuf::internal::SCCInfo<0> scc_info_TestMap_MapInt32DoubleEntry_DoNotUse =
- {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsTestMap_MapInt32DoubleEntry_DoNotUse}, {}};
- static void InitDefaultsTestMap_MapBoolBoolEntry_DoNotUse() {
- GOOGLE_PROTOBUF_VERIFY_VERSION;
- {
- void* ptr = &::protobuf_unittest::_TestMap_MapBoolBoolEntry_DoNotUse_default_instance_;
- new (ptr) ::protobuf_unittest::TestMap_MapBoolBoolEntry_DoNotUse();
- }
- ::protobuf_unittest::TestMap_MapBoolBoolEntry_DoNotUse::InitAsDefaultInstance();
- }
- ::google::protobuf::internal::SCCInfo<0> scc_info_TestMap_MapBoolBoolEntry_DoNotUse =
- {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsTestMap_MapBoolBoolEntry_DoNotUse}, {}};
- static void InitDefaultsTestMap_MapStringStringEntry_DoNotUse() {
- GOOGLE_PROTOBUF_VERIFY_VERSION;
- {
- void* ptr = &::protobuf_unittest::_TestMap_MapStringStringEntry_DoNotUse_default_instance_;
- new (ptr) ::protobuf_unittest::TestMap_MapStringStringEntry_DoNotUse();
- }
- ::protobuf_unittest::TestMap_MapStringStringEntry_DoNotUse::InitAsDefaultInstance();
- }
- ::google::protobuf::internal::SCCInfo<0> scc_info_TestMap_MapStringStringEntry_DoNotUse =
- {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsTestMap_MapStringStringEntry_DoNotUse}, {}};
- static void InitDefaultsTestMap_MapInt32BytesEntry_DoNotUse() {
- GOOGLE_PROTOBUF_VERIFY_VERSION;
- {
- void* ptr = &::protobuf_unittest::_TestMap_MapInt32BytesEntry_DoNotUse_default_instance_;
- new (ptr) ::protobuf_unittest::TestMap_MapInt32BytesEntry_DoNotUse();
- }
- ::protobuf_unittest::TestMap_MapInt32BytesEntry_DoNotUse::InitAsDefaultInstance();
- }
- ::google::protobuf::internal::SCCInfo<0> scc_info_TestMap_MapInt32BytesEntry_DoNotUse =
- {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsTestMap_MapInt32BytesEntry_DoNotUse}, {}};
- static void InitDefaultsTestMap_MapInt32EnumEntry_DoNotUse() {
- GOOGLE_PROTOBUF_VERIFY_VERSION;
- {
- void* ptr = &::protobuf_unittest::_TestMap_MapInt32EnumEntry_DoNotUse_default_instance_;
- new (ptr) ::protobuf_unittest::TestMap_MapInt32EnumEntry_DoNotUse();
- }
- ::protobuf_unittest::TestMap_MapInt32EnumEntry_DoNotUse::InitAsDefaultInstance();
- }
- ::google::protobuf::internal::SCCInfo<0> scc_info_TestMap_MapInt32EnumEntry_DoNotUse =
- {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsTestMap_MapInt32EnumEntry_DoNotUse}, {}};
- static void InitDefaultsTestMap_MapInt32ForeignMessageEntry_DoNotUse() {
- GOOGLE_PROTOBUF_VERIFY_VERSION;
- {
- void* ptr = &::protobuf_unittest::_TestMap_MapInt32ForeignMessageEntry_DoNotUse_default_instance_;
- new (ptr) ::protobuf_unittest::TestMap_MapInt32ForeignMessageEntry_DoNotUse();
- }
- ::protobuf_unittest::TestMap_MapInt32ForeignMessageEntry_DoNotUse::InitAsDefaultInstance();
- }
- ::google::protobuf::internal::SCCInfo<1> scc_info_TestMap_MapInt32ForeignMessageEntry_DoNotUse =
- {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsTestMap_MapInt32ForeignMessageEntry_DoNotUse}, {
- &protobuf_google_2fprotobuf_2funittest_2eproto::scc_info_ForeignMessage.base,}};
- static void InitDefaultsTestMap_MapStringForeignMessageEntry_DoNotUse() {
- GOOGLE_PROTOBUF_VERIFY_VERSION;
- {
- void* ptr = &::protobuf_unittest::_TestMap_MapStringForeignMessageEntry_DoNotUse_default_instance_;
- new (ptr) ::protobuf_unittest::TestMap_MapStringForeignMessageEntry_DoNotUse();
- }
- ::protobuf_unittest::TestMap_MapStringForeignMessageEntry_DoNotUse::InitAsDefaultInstance();
- }
- ::google::protobuf::internal::SCCInfo<1> scc_info_TestMap_MapStringForeignMessageEntry_DoNotUse =
- {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsTestMap_MapStringForeignMessageEntry_DoNotUse}, {
- &protobuf_google_2fprotobuf_2funittest_2eproto::scc_info_ForeignMessage.base,}};
- static void InitDefaultsTestMap_MapInt32AllTypesEntry_DoNotUse() {
- GOOGLE_PROTOBUF_VERIFY_VERSION;
- {
- void* ptr = &::protobuf_unittest::_TestMap_MapInt32AllTypesEntry_DoNotUse_default_instance_;
- new (ptr) ::protobuf_unittest::TestMap_MapInt32AllTypesEntry_DoNotUse();
- }
- ::protobuf_unittest::TestMap_MapInt32AllTypesEntry_DoNotUse::InitAsDefaultInstance();
- }
- ::google::protobuf::internal::SCCInfo<1> scc_info_TestMap_MapInt32AllTypesEntry_DoNotUse =
- {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsTestMap_MapInt32AllTypesEntry_DoNotUse}, {
- &protobuf_google_2fprotobuf_2funittest_2eproto::scc_info_TestAllTypes.base,}};
- static void InitDefaultsTestMap() {
- GOOGLE_PROTOBUF_VERIFY_VERSION;
- {
- void* ptr = &::protobuf_unittest::_TestMap_default_instance_;
- new (ptr) ::protobuf_unittest::TestMap();
- ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
- }
- ::protobuf_unittest::TestMap::InitAsDefaultInstance();
- }
- ::google::protobuf::internal::SCCInfo<19> scc_info_TestMap =
- {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 19, InitDefaultsTestMap}, {
- &protobuf_google_2fprotobuf_2fmap_5funittest_2eproto::scc_info_TestMap_MapInt32Int32Entry_DoNotUse.base,
- &protobuf_google_2fprotobuf_2fmap_5funittest_2eproto::scc_info_TestMap_MapInt64Int64Entry_DoNotUse.base,
- &protobuf_google_2fprotobuf_2fmap_5funittest_2eproto::scc_info_TestMap_MapUint32Uint32Entry_DoNotUse.base,
- &protobuf_google_2fprotobuf_2fmap_5funittest_2eproto::scc_info_TestMap_MapUint64Uint64Entry_DoNotUse.base,
- &protobuf_google_2fprotobuf_2fmap_5funittest_2eproto::scc_info_TestMap_MapSint32Sint32Entry_DoNotUse.base,
- &protobuf_google_2fprotobuf_2fmap_5funittest_2eproto::scc_info_TestMap_MapSint64Sint64Entry_DoNotUse.base,
- &protobuf_google_2fprotobuf_2fmap_5funittest_2eproto::scc_info_TestMap_MapFixed32Fixed32Entry_DoNotUse.base,
- &protobuf_google_2fprotobuf_2fmap_5funittest_2eproto::scc_info_TestMap_MapFixed64Fixed64Entry_DoNotUse.base,
- &protobuf_google_2fprotobuf_2fmap_5funittest_2eproto::scc_info_TestMap_MapSfixed32Sfixed32Entry_DoNotUse.base,
- &protobuf_google_2fprotobuf_2fmap_5funittest_2eproto::scc_info_TestMap_MapSfixed64Sfixed64Entry_DoNotUse.base,
- &protobuf_google_2fprotobuf_2fmap_5funittest_2eproto::scc_info_TestMap_MapInt32FloatEntry_DoNotUse.base,
- &protobuf_google_2fprotobuf_2fmap_5funittest_2eproto::scc_info_TestMap_MapInt32DoubleEntry_DoNotUse.base,
- &protobuf_google_2fprotobuf_2fmap_5funittest_2eproto::scc_info_TestMap_MapBoolBoolEntry_DoNotUse.base,
- &protobuf_google_2fprotobuf_2fmap_5funittest_2eproto::scc_info_TestMap_MapStringStringEntry_DoNotUse.base,
- &protobuf_google_2fprotobuf_2fmap_5funittest_2eproto::scc_info_TestMap_MapInt32BytesEntry_DoNotUse.base,
- &protobuf_google_2fprotobuf_2fmap_5funittest_2eproto::scc_info_TestMap_MapInt32EnumEntry_DoNotUse.base,
- &protobuf_google_2fprotobuf_2fmap_5funittest_2eproto::scc_info_TestMap_MapInt32ForeignMessageEntry_DoNotUse.base,
- &protobuf_google_2fprotobuf_2fmap_5funittest_2eproto::scc_info_TestMap_MapStringForeignMessageEntry_DoNotUse.base,
- &protobuf_google_2fprotobuf_2fmap_5funittest_2eproto::scc_info_TestMap_MapInt32AllTypesEntry_DoNotUse.base,}};
- static void InitDefaultsTestMapSubmessage() {
- GOOGLE_PROTOBUF_VERIFY_VERSION;
- {
- void* ptr = &::protobuf_unittest::_TestMapSubmessage_default_instance_;
- new (ptr) ::protobuf_unittest::TestMapSubmessage();
- ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
- }
- ::protobuf_unittest::TestMapSubmessage::InitAsDefaultInstance();
- }
- ::google::protobuf::internal::SCCInfo<1> scc_info_TestMapSubmessage =
- {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsTestMapSubmessage}, {
- &protobuf_google_2fprotobuf_2fmap_5funittest_2eproto::scc_info_TestMap.base,}};
- static void InitDefaultsTestMessageMap_MapInt32MessageEntry_DoNotUse() {
- GOOGLE_PROTOBUF_VERIFY_VERSION;
- {
- void* ptr = &::protobuf_unittest::_TestMessageMap_MapInt32MessageEntry_DoNotUse_default_instance_;
- new (ptr) ::protobuf_unittest::TestMessageMap_MapInt32MessageEntry_DoNotUse();
- }
- ::protobuf_unittest::TestMessageMap_MapInt32MessageEntry_DoNotUse::InitAsDefaultInstance();
- }
- ::google::protobuf::internal::SCCInfo<1> scc_info_TestMessageMap_MapInt32MessageEntry_DoNotUse =
- {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsTestMessageMap_MapInt32MessageEntry_DoNotUse}, {
- &protobuf_google_2fprotobuf_2funittest_2eproto::scc_info_TestAllTypes.base,}};
- static void InitDefaultsTestMessageMap() {
- GOOGLE_PROTOBUF_VERIFY_VERSION;
- {
- void* ptr = &::protobuf_unittest::_TestMessageMap_default_instance_;
- new (ptr) ::protobuf_unittest::TestMessageMap();
- ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
- }
- ::protobuf_unittest::TestMessageMap::InitAsDefaultInstance();
- }
- ::google::protobuf::internal::SCCInfo<1> scc_info_TestMessageMap =
- {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsTestMessageMap}, {
- &protobuf_google_2fprotobuf_2fmap_5funittest_2eproto::scc_info_TestMessageMap_MapInt32MessageEntry_DoNotUse.base,}};
- static void InitDefaultsTestSameTypeMap_Map1Entry_DoNotUse() {
- GOOGLE_PROTOBUF_VERIFY_VERSION;
- {
- void* ptr = &::protobuf_unittest::_TestSameTypeMap_Map1Entry_DoNotUse_default_instance_;
- new (ptr) ::protobuf_unittest::TestSameTypeMap_Map1Entry_DoNotUse();
- }
- ::protobuf_unittest::TestSameTypeMap_Map1Entry_DoNotUse::InitAsDefaultInstance();
- }
- ::google::protobuf::internal::SCCInfo<0> scc_info_TestSameTypeMap_Map1Entry_DoNotUse =
- {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsTestSameTypeMap_Map1Entry_DoNotUse}, {}};
- static void InitDefaultsTestSameTypeMap_Map2Entry_DoNotUse() {
- GOOGLE_PROTOBUF_VERIFY_VERSION;
- {
- void* ptr = &::protobuf_unittest::_TestSameTypeMap_Map2Entry_DoNotUse_default_instance_;
- new (ptr) ::protobuf_unittest::TestSameTypeMap_Map2Entry_DoNotUse();
- }
- ::protobuf_unittest::TestSameTypeMap_Map2Entry_DoNotUse::InitAsDefaultInstance();
- }
- ::google::protobuf::internal::SCCInfo<0> scc_info_TestSameTypeMap_Map2Entry_DoNotUse =
- {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsTestSameTypeMap_Map2Entry_DoNotUse}, {}};
- static void InitDefaultsTestSameTypeMap() {
- GOOGLE_PROTOBUF_VERIFY_VERSION;
- {
- void* ptr = &::protobuf_unittest::_TestSameTypeMap_default_instance_;
- new (ptr) ::protobuf_unittest::TestSameTypeMap();
- ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
- }
- ::protobuf_unittest::TestSameTypeMap::InitAsDefaultInstance();
- }
- ::google::protobuf::internal::SCCInfo<2> scc_info_TestSameTypeMap =
- {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 2, InitDefaultsTestSameTypeMap}, {
- &protobuf_google_2fprotobuf_2fmap_5funittest_2eproto::scc_info_TestSameTypeMap_Map1Entry_DoNotUse.base,
- &protobuf_google_2fprotobuf_2fmap_5funittest_2eproto::scc_info_TestSameTypeMap_Map2Entry_DoNotUse.base,}};
- static void InitDefaultsTestRequiredMessageMap_MapFieldEntry_DoNotUse() {
- GOOGLE_PROTOBUF_VERIFY_VERSION;
- {
- void* ptr = &::protobuf_unittest::_TestRequiredMessageMap_MapFieldEntry_DoNotUse_default_instance_;
- new (ptr) ::protobuf_unittest::TestRequiredMessageMap_MapFieldEntry_DoNotUse();
- }
- ::protobuf_unittest::TestRequiredMessageMap_MapFieldEntry_DoNotUse::InitAsDefaultInstance();
- }
- ::google::protobuf::internal::SCCInfo<1> scc_info_TestRequiredMessageMap_MapFieldEntry_DoNotUse =
- {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsTestRequiredMessageMap_MapFieldEntry_DoNotUse}, {
- &protobuf_google_2fprotobuf_2funittest_2eproto::scc_info_TestRequired.base,}};
- static void InitDefaultsTestRequiredMessageMap() {
- GOOGLE_PROTOBUF_VERIFY_VERSION;
- {
- void* ptr = &::protobuf_unittest::_TestRequiredMessageMap_default_instance_;
- new (ptr) ::protobuf_unittest::TestRequiredMessageMap();
- ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
- }
- ::protobuf_unittest::TestRequiredMessageMap::InitAsDefaultInstance();
- }
- ::google::protobuf::internal::SCCInfo<1> scc_info_TestRequiredMessageMap =
- {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsTestRequiredMessageMap}, {
- &protobuf_google_2fprotobuf_2fmap_5funittest_2eproto::scc_info_TestRequiredMessageMap_MapFieldEntry_DoNotUse.base,}};
- static void InitDefaultsTestArenaMap_MapInt32Int32Entry_DoNotUse() {
- GOOGLE_PROTOBUF_VERIFY_VERSION;
- {
- void* ptr = &::protobuf_unittest::_TestArenaMap_MapInt32Int32Entry_DoNotUse_default_instance_;
- new (ptr) ::protobuf_unittest::TestArenaMap_MapInt32Int32Entry_DoNotUse();
- }
- ::protobuf_unittest::TestArenaMap_MapInt32Int32Entry_DoNotUse::InitAsDefaultInstance();
- }
- ::google::protobuf::internal::SCCInfo<0> scc_info_TestArenaMap_MapInt32Int32Entry_DoNotUse =
- {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsTestArenaMap_MapInt32Int32Entry_DoNotUse}, {}};
- static void InitDefaultsTestArenaMap_MapInt64Int64Entry_DoNotUse() {
- GOOGLE_PROTOBUF_VERIFY_VERSION;
- {
- void* ptr = &::protobuf_unittest::_TestArenaMap_MapInt64Int64Entry_DoNotUse_default_instance_;
- new (ptr) ::protobuf_unittest::TestArenaMap_MapInt64Int64Entry_DoNotUse();
- }
- ::protobuf_unittest::TestArenaMap_MapInt64Int64Entry_DoNotUse::InitAsDefaultInstance();
- }
- ::google::protobuf::internal::SCCInfo<0> scc_info_TestArenaMap_MapInt64Int64Entry_DoNotUse =
- {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsTestArenaMap_MapInt64Int64Entry_DoNotUse}, {}};
- static void InitDefaultsTestArenaMap_MapUint32Uint32Entry_DoNotUse() {
- GOOGLE_PROTOBUF_VERIFY_VERSION;
- {
- void* ptr = &::protobuf_unittest::_TestArenaMap_MapUint32Uint32Entry_DoNotUse_default_instance_;
- new (ptr) ::protobuf_unittest::TestArenaMap_MapUint32Uint32Entry_DoNotUse();
- }
- ::protobuf_unittest::TestArenaMap_MapUint32Uint32Entry_DoNotUse::InitAsDefaultInstance();
- }
- ::google::protobuf::internal::SCCInfo<0> scc_info_TestArenaMap_MapUint32Uint32Entry_DoNotUse =
- {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsTestArenaMap_MapUint32Uint32Entry_DoNotUse}, {}};
- static void InitDefaultsTestArenaMap_MapUint64Uint64Entry_DoNotUse() {
- GOOGLE_PROTOBUF_VERIFY_VERSION;
- {
- void* ptr = &::protobuf_unittest::_TestArenaMap_MapUint64Uint64Entry_DoNotUse_default_instance_;
- new (ptr) ::protobuf_unittest::TestArenaMap_MapUint64Uint64Entry_DoNotUse();
- }
- ::protobuf_unittest::TestArenaMap_MapUint64Uint64Entry_DoNotUse::InitAsDefaultInstance();
- }
- ::google::protobuf::internal::SCCInfo<0> scc_info_TestArenaMap_MapUint64Uint64Entry_DoNotUse =
- {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsTestArenaMap_MapUint64Uint64Entry_DoNotUse}, {}};
- static void InitDefaultsTestArenaMap_MapSint32Sint32Entry_DoNotUse() {
- GOOGLE_PROTOBUF_VERIFY_VERSION;
- {
- void* ptr = &::protobuf_unittest::_TestArenaMap_MapSint32Sint32Entry_DoNotUse_default_instance_;
- new (ptr) ::protobuf_unittest::TestArenaMap_MapSint32Sint32Entry_DoNotUse();
- }
- ::protobuf_unittest::TestArenaMap_MapSint32Sint32Entry_DoNotUse::InitAsDefaultInstance();
- }
- ::google::protobuf::internal::SCCInfo<0> scc_info_TestArenaMap_MapSint32Sint32Entry_DoNotUse =
- {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsTestArenaMap_MapSint32Sint32Entry_DoNotUse}, {}};
- static void InitDefaultsTestArenaMap_MapSint64Sint64Entry_DoNotUse() {
- GOOGLE_PROTOBUF_VERIFY_VERSION;
- {
- void* ptr = &::protobuf_unittest::_TestArenaMap_MapSint64Sint64Entry_DoNotUse_default_instance_;
- new (ptr) ::protobuf_unittest::TestArenaMap_MapSint64Sint64Entry_DoNotUse();
- }
- ::protobuf_unittest::TestArenaMap_MapSint64Sint64Entry_DoNotUse::InitAsDefaultInstance();
- }
- ::google::protobuf::internal::SCCInfo<0> scc_info_TestArenaMap_MapSint64Sint64Entry_DoNotUse =
- {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsTestArenaMap_MapSint64Sint64Entry_DoNotUse}, {}};
- static void InitDefaultsTestArenaMap_MapFixed32Fixed32Entry_DoNotUse() {
- GOOGLE_PROTOBUF_VERIFY_VERSION;
- {
- void* ptr = &::protobuf_unittest::_TestArenaMap_MapFixed32Fixed32Entry_DoNotUse_default_instance_;
- new (ptr) ::protobuf_unittest::TestArenaMap_MapFixed32Fixed32Entry_DoNotUse();
- }
- ::protobuf_unittest::TestArenaMap_MapFixed32Fixed32Entry_DoNotUse::InitAsDefaultInstance();
- }
- ::google::protobuf::internal::SCCInfo<0> scc_info_TestArenaMap_MapFixed32Fixed32Entry_DoNotUse =
- {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsTestArenaMap_MapFixed32Fixed32Entry_DoNotUse}, {}};
- static void InitDefaultsTestArenaMap_MapFixed64Fixed64Entry_DoNotUse() {
- GOOGLE_PROTOBUF_VERIFY_VERSION;
- {
- void* ptr = &::protobuf_unittest::_TestArenaMap_MapFixed64Fixed64Entry_DoNotUse_default_instance_;
- new (ptr) ::protobuf_unittest::TestArenaMap_MapFixed64Fixed64Entry_DoNotUse();
- }
- ::protobuf_unittest::TestArenaMap_MapFixed64Fixed64Entry_DoNotUse::InitAsDefaultInstance();
- }
- ::google::protobuf::internal::SCCInfo<0> scc_info_TestArenaMap_MapFixed64Fixed64Entry_DoNotUse =
- {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsTestArenaMap_MapFixed64Fixed64Entry_DoNotUse}, {}};
- static void InitDefaultsTestArenaMap_MapSfixed32Sfixed32Entry_DoNotUse() {
- GOOGLE_PROTOBUF_VERIFY_VERSION;
- {
- void* ptr = &::protobuf_unittest::_TestArenaMap_MapSfixed32Sfixed32Entry_DoNotUse_default_instance_;
- new (ptr) ::protobuf_unittest::TestArenaMap_MapSfixed32Sfixed32Entry_DoNotUse();
- }
- ::protobuf_unittest::TestArenaMap_MapSfixed32Sfixed32Entry_DoNotUse::InitAsDefaultInstance();
- }
- ::google::protobuf::internal::SCCInfo<0> scc_info_TestArenaMap_MapSfixed32Sfixed32Entry_DoNotUse =
- {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsTestArenaMap_MapSfixed32Sfixed32Entry_DoNotUse}, {}};
- static void InitDefaultsTestArenaMap_MapSfixed64Sfixed64Entry_DoNotUse() {
- GOOGLE_PROTOBUF_VERIFY_VERSION;
- {
- void* ptr = &::protobuf_unittest::_TestArenaMap_MapSfixed64Sfixed64Entry_DoNotUse_default_instance_;
- new (ptr) ::protobuf_unittest::TestArenaMap_MapSfixed64Sfixed64Entry_DoNotUse();
- }
- ::protobuf_unittest::TestArenaMap_MapSfixed64Sfixed64Entry_DoNotUse::InitAsDefaultInstance();
- }
- ::google::protobuf::internal::SCCInfo<0> scc_info_TestArenaMap_MapSfixed64Sfixed64Entry_DoNotUse =
- {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsTestArenaMap_MapSfixed64Sfixed64Entry_DoNotUse}, {}};
- static void InitDefaultsTestArenaMap_MapInt32FloatEntry_DoNotUse() {
- GOOGLE_PROTOBUF_VERIFY_VERSION;
- {
- void* ptr = &::protobuf_unittest::_TestArenaMap_MapInt32FloatEntry_DoNotUse_default_instance_;
- new (ptr) ::protobuf_unittest::TestArenaMap_MapInt32FloatEntry_DoNotUse();
- }
- ::protobuf_unittest::TestArenaMap_MapInt32FloatEntry_DoNotUse::InitAsDefaultInstance();
- }
- ::google::protobuf::internal::SCCInfo<0> scc_info_TestArenaMap_MapInt32FloatEntry_DoNotUse =
- {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsTestArenaMap_MapInt32FloatEntry_DoNotUse}, {}};
- static void InitDefaultsTestArenaMap_MapInt32DoubleEntry_DoNotUse() {
- GOOGLE_PROTOBUF_VERIFY_VERSION;
- {
- void* ptr = &::protobuf_unittest::_TestArenaMap_MapInt32DoubleEntry_DoNotUse_default_instance_;
- new (ptr) ::protobuf_unittest::TestArenaMap_MapInt32DoubleEntry_DoNotUse();
- }
- ::protobuf_unittest::TestArenaMap_MapInt32DoubleEntry_DoNotUse::InitAsDefaultInstance();
- }
- ::google::protobuf::internal::SCCInfo<0> scc_info_TestArenaMap_MapInt32DoubleEntry_DoNotUse =
- {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsTestArenaMap_MapInt32DoubleEntry_DoNotUse}, {}};
- static void InitDefaultsTestArenaMap_MapBoolBoolEntry_DoNotUse() {
- GOOGLE_PROTOBUF_VERIFY_VERSION;
- {
- void* ptr = &::protobuf_unittest::_TestArenaMap_MapBoolBoolEntry_DoNotUse_default_instance_;
- new (ptr) ::protobuf_unittest::TestArenaMap_MapBoolBoolEntry_DoNotUse();
- }
- ::protobuf_unittest::TestArenaMap_MapBoolBoolEntry_DoNotUse::InitAsDefaultInstance();
- }
- ::google::protobuf::internal::SCCInfo<0> scc_info_TestArenaMap_MapBoolBoolEntry_DoNotUse =
- {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsTestArenaMap_MapBoolBoolEntry_DoNotUse}, {}};
- static void InitDefaultsTestArenaMap_MapStringStringEntry_DoNotUse() {
- GOOGLE_PROTOBUF_VERIFY_VERSION;
- {
- void* ptr = &::protobuf_unittest::_TestArenaMap_MapStringStringEntry_DoNotUse_default_instance_;
- new (ptr) ::protobuf_unittest::TestArenaMap_MapStringStringEntry_DoNotUse();
- }
- ::protobuf_unittest::TestArenaMap_MapStringStringEntry_DoNotUse::InitAsDefaultInstance();
- }
- ::google::protobuf::internal::SCCInfo<0> scc_info_TestArenaMap_MapStringStringEntry_DoNotUse =
- {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsTestArenaMap_MapStringStringEntry_DoNotUse}, {}};
- static void InitDefaultsTestArenaMap_MapInt32BytesEntry_DoNotUse() {
- GOOGLE_PROTOBUF_VERIFY_VERSION;
- {
- void* ptr = &::protobuf_unittest::_TestArenaMap_MapInt32BytesEntry_DoNotUse_default_instance_;
- new (ptr) ::protobuf_unittest::TestArenaMap_MapInt32BytesEntry_DoNotUse();
- }
- ::protobuf_unittest::TestArenaMap_MapInt32BytesEntry_DoNotUse::InitAsDefaultInstance();
- }
- ::google::protobuf::internal::SCCInfo<0> scc_info_TestArenaMap_MapInt32BytesEntry_DoNotUse =
- {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsTestArenaMap_MapInt32BytesEntry_DoNotUse}, {}};
- static void InitDefaultsTestArenaMap_MapInt32EnumEntry_DoNotUse() {
- GOOGLE_PROTOBUF_VERIFY_VERSION;
- {
- void* ptr = &::protobuf_unittest::_TestArenaMap_MapInt32EnumEntry_DoNotUse_default_instance_;
- new (ptr) ::protobuf_unittest::TestArenaMap_MapInt32EnumEntry_DoNotUse();
- }
- ::protobuf_unittest::TestArenaMap_MapInt32EnumEntry_DoNotUse::InitAsDefaultInstance();
- }
- ::google::protobuf::internal::SCCInfo<0> scc_info_TestArenaMap_MapInt32EnumEntry_DoNotUse =
- {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsTestArenaMap_MapInt32EnumEntry_DoNotUse}, {}};
- static void InitDefaultsTestArenaMap_MapInt32ForeignMessageEntry_DoNotUse() {
- GOOGLE_PROTOBUF_VERIFY_VERSION;
- {
- void* ptr = &::protobuf_unittest::_TestArenaMap_MapInt32ForeignMessageEntry_DoNotUse_default_instance_;
- new (ptr) ::protobuf_unittest::TestArenaMap_MapInt32ForeignMessageEntry_DoNotUse();
- }
- ::protobuf_unittest::TestArenaMap_MapInt32ForeignMessageEntry_DoNotUse::InitAsDefaultInstance();
- }
- ::google::protobuf::internal::SCCInfo<1> scc_info_TestArenaMap_MapInt32ForeignMessageEntry_DoNotUse =
- {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsTestArenaMap_MapInt32ForeignMessageEntry_DoNotUse}, {
- &protobuf_google_2fprotobuf_2funittest_2eproto::scc_info_ForeignMessage.base,}};
- static void InitDefaultsTestArenaMap_MapInt32ForeignMessageNoArenaEntry_DoNotUse() {
- GOOGLE_PROTOBUF_VERIFY_VERSION;
- {
- void* ptr = &::protobuf_unittest::_TestArenaMap_MapInt32ForeignMessageNoArenaEntry_DoNotUse_default_instance_;
- new (ptr) ::protobuf_unittest::TestArenaMap_MapInt32ForeignMessageNoArenaEntry_DoNotUse();
- }
- ::protobuf_unittest::TestArenaMap_MapInt32ForeignMessageNoArenaEntry_DoNotUse::InitAsDefaultInstance();
- }
- ::google::protobuf::internal::SCCInfo<1> scc_info_TestArenaMap_MapInt32ForeignMessageNoArenaEntry_DoNotUse =
- {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsTestArenaMap_MapInt32ForeignMessageNoArenaEntry_DoNotUse}, {
- &protobuf_google_2fprotobuf_2funittest_5fno_5farena_2eproto::scc_info_ForeignMessage.base,}};
- static void InitDefaultsTestArenaMap() {
- GOOGLE_PROTOBUF_VERIFY_VERSION;
- {
- void* ptr = &::protobuf_unittest::_TestArenaMap_default_instance_;
- new (ptr) ::protobuf_unittest::TestArenaMap();
- ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
- }
- ::protobuf_unittest::TestArenaMap::InitAsDefaultInstance();
- }
- ::google::protobuf::internal::SCCInfo<18> scc_info_TestArenaMap =
- {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 18, InitDefaultsTestArenaMap}, {
- &protobuf_google_2fprotobuf_2fmap_5funittest_2eproto::scc_info_TestArenaMap_MapInt32Int32Entry_DoNotUse.base,
- &protobuf_google_2fprotobuf_2fmap_5funittest_2eproto::scc_info_TestArenaMap_MapInt64Int64Entry_DoNotUse.base,
- &protobuf_google_2fprotobuf_2fmap_5funittest_2eproto::scc_info_TestArenaMap_MapUint32Uint32Entry_DoNotUse.base,
- &protobuf_google_2fprotobuf_2fmap_5funittest_2eproto::scc_info_TestArenaMap_MapUint64Uint64Entry_DoNotUse.base,
- &protobuf_google_2fprotobuf_2fmap_5funittest_2eproto::scc_info_TestArenaMap_MapSint32Sint32Entry_DoNotUse.base,
- &protobuf_google_2fprotobuf_2fmap_5funittest_2eproto::scc_info_TestArenaMap_MapSint64Sint64Entry_DoNotUse.base,
- &protobuf_google_2fprotobuf_2fmap_5funittest_2eproto::scc_info_TestArenaMap_MapFixed32Fixed32Entry_DoNotUse.base,
- &protobuf_google_2fprotobuf_2fmap_5funittest_2eproto::scc_info_TestArenaMap_MapFixed64Fixed64Entry_DoNotUse.base,
- &protobuf_google_2fprotobuf_2fmap_5funittest_2eproto::scc_info_TestArenaMap_MapSfixed32Sfixed32Entry_DoNotUse.base,
- &protobuf_google_2fprotobuf_2fmap_5funittest_2eproto::scc_info_TestArenaMap_MapSfixed64Sfixed64Entry_DoNotUse.base,
- &protobuf_google_2fprotobuf_2fmap_5funittest_2eproto::scc_info_TestArenaMap_MapInt32FloatEntry_DoNotUse.base,
- &protobuf_google_2fprotobuf_2fmap_5funittest_2eproto::scc_info_TestArenaMap_MapInt32DoubleEntry_DoNotUse.base,
- &protobuf_google_2fprotobuf_2fmap_5funittest_2eproto::scc_info_TestArenaMap_MapBoolBoolEntry_DoNotUse.base,
- &protobuf_google_2fprotobuf_2fmap_5funittest_2eproto::scc_info_TestArenaMap_MapStringStringEntry_DoNotUse.base,
- &protobuf_google_2fprotobuf_2fmap_5funittest_2eproto::scc_info_TestArenaMap_MapInt32BytesEntry_DoNotUse.base,
- &protobuf_google_2fprotobuf_2fmap_5funittest_2eproto::scc_info_TestArenaMap_MapInt32EnumEntry_DoNotUse.base,
- &protobuf_google_2fprotobuf_2fmap_5funittest_2eproto::scc_info_TestArenaMap_MapInt32ForeignMessageEntry_DoNotUse.base,
- &protobuf_google_2fprotobuf_2fmap_5funittest_2eproto::scc_info_TestArenaMap_MapInt32ForeignMessageNoArenaEntry_DoNotUse.base,}};
- static void InitDefaultsMessageContainingEnumCalledType() {
- GOOGLE_PROTOBUF_VERIFY_VERSION;
- {
- void* ptr = &::protobuf_unittest::_MessageContainingEnumCalledType_TypeEntry_DoNotUse_default_instance_;
- new (ptr) ::protobuf_unittest::MessageContainingEnumCalledType_TypeEntry_DoNotUse();
- }
- {
- void* ptr = &::protobuf_unittest::_MessageContainingEnumCalledType_default_instance_;
- new (ptr) ::protobuf_unittest::MessageContainingEnumCalledType();
- ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
- }
- ::protobuf_unittest::MessageContainingEnumCalledType_TypeEntry_DoNotUse::InitAsDefaultInstance();
- ::protobuf_unittest::MessageContainingEnumCalledType::InitAsDefaultInstance();
- }
- ::google::protobuf::internal::SCCInfo<0> scc_info_MessageContainingEnumCalledType =
- {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsMessageContainingEnumCalledType}, {}};
- static void InitDefaultsMessageContainingMapCalledEntry_EntryEntry_DoNotUse() {
- GOOGLE_PROTOBUF_VERIFY_VERSION;
- {
- void* ptr = &::protobuf_unittest::_MessageContainingMapCalledEntry_EntryEntry_DoNotUse_default_instance_;
- new (ptr) ::protobuf_unittest::MessageContainingMapCalledEntry_EntryEntry_DoNotUse();
- }
- ::protobuf_unittest::MessageContainingMapCalledEntry_EntryEntry_DoNotUse::InitAsDefaultInstance();
- }
- ::google::protobuf::internal::SCCInfo<0> scc_info_MessageContainingMapCalledEntry_EntryEntry_DoNotUse =
- {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsMessageContainingMapCalledEntry_EntryEntry_DoNotUse}, {}};
- static void InitDefaultsMessageContainingMapCalledEntry() {
- GOOGLE_PROTOBUF_VERIFY_VERSION;
- {
- void* ptr = &::protobuf_unittest::_MessageContainingMapCalledEntry_default_instance_;
- new (ptr) ::protobuf_unittest::MessageContainingMapCalledEntry();
- ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
- }
- ::protobuf_unittest::MessageContainingMapCalledEntry::InitAsDefaultInstance();
- }
- ::google::protobuf::internal::SCCInfo<1> scc_info_MessageContainingMapCalledEntry =
- {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsMessageContainingMapCalledEntry}, {
- &protobuf_google_2fprotobuf_2fmap_5funittest_2eproto::scc_info_MessageContainingMapCalledEntry_EntryEntry_DoNotUse.base,}};
- static void InitDefaultsTestRecursiveMapMessage() {
- GOOGLE_PROTOBUF_VERIFY_VERSION;
- {
- void* ptr = &::protobuf_unittest::_TestRecursiveMapMessage_AEntry_DoNotUse_default_instance_;
- new (ptr) ::protobuf_unittest::TestRecursiveMapMessage_AEntry_DoNotUse();
- }
- {
- void* ptr = &::protobuf_unittest::_TestRecursiveMapMessage_default_instance_;
- new (ptr) ::protobuf_unittest::TestRecursiveMapMessage();
- ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
- }
- ::protobuf_unittest::TestRecursiveMapMessage_AEntry_DoNotUse::InitAsDefaultInstance();
- ::protobuf_unittest::TestRecursiveMapMessage::InitAsDefaultInstance();
- }
- ::google::protobuf::internal::SCCInfo<0> scc_info_TestRecursiveMapMessage =
- {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsTestRecursiveMapMessage}, {}};
- void InitDefaults() {
- ::google::protobuf::internal::InitSCC(&scc_info_TestMap_MapInt32Int32Entry_DoNotUse.base);
- ::google::protobuf::internal::InitSCC(&scc_info_TestMap_MapInt64Int64Entry_DoNotUse.base);
- ::google::protobuf::internal::InitSCC(&scc_info_TestMap_MapUint32Uint32Entry_DoNotUse.base);
- ::google::protobuf::internal::InitSCC(&scc_info_TestMap_MapUint64Uint64Entry_DoNotUse.base);
- ::google::protobuf::internal::InitSCC(&scc_info_TestMap_MapSint32Sint32Entry_DoNotUse.base);
- ::google::protobuf::internal::InitSCC(&scc_info_TestMap_MapSint64Sint64Entry_DoNotUse.base);
- ::google::protobuf::internal::InitSCC(&scc_info_TestMap_MapFixed32Fixed32Entry_DoNotUse.base);
- ::google::protobuf::internal::InitSCC(&scc_info_TestMap_MapFixed64Fixed64Entry_DoNotUse.base);
- ::google::protobuf::internal::InitSCC(&scc_info_TestMap_MapSfixed32Sfixed32Entry_DoNotUse.base);
- ::google::protobuf::internal::InitSCC(&scc_info_TestMap_MapSfixed64Sfixed64Entry_DoNotUse.base);
- ::google::protobuf::internal::InitSCC(&scc_info_TestMap_MapInt32FloatEntry_DoNotUse.base);
- ::google::protobuf::internal::InitSCC(&scc_info_TestMap_MapInt32DoubleEntry_DoNotUse.base);
- ::google::protobuf::internal::InitSCC(&scc_info_TestMap_MapBoolBoolEntry_DoNotUse.base);
- ::google::protobuf::internal::InitSCC(&scc_info_TestMap_MapStringStringEntry_DoNotUse.base);
- ::google::protobuf::internal::InitSCC(&scc_info_TestMap_MapInt32BytesEntry_DoNotUse.base);
- ::google::protobuf::internal::InitSCC(&scc_info_TestMap_MapInt32EnumEntry_DoNotUse.base);
- ::google::protobuf::internal::InitSCC(&scc_info_TestMap_MapInt32ForeignMessageEntry_DoNotUse.base);
- ::google::protobuf::internal::InitSCC(&scc_info_TestMap_MapStringForeignMessageEntry_DoNotUse.base);
- ::google::protobuf::internal::InitSCC(&scc_info_TestMap_MapInt32AllTypesEntry_DoNotUse.base);
- ::google::protobuf::internal::InitSCC(&scc_info_TestMap.base);
- ::google::protobuf::internal::InitSCC(&scc_info_TestMapSubmessage.base);
- ::google::protobuf::internal::InitSCC(&scc_info_TestMessageMap_MapInt32MessageEntry_DoNotUse.base);
- ::google::protobuf::internal::InitSCC(&scc_info_TestMessageMap.base);
- ::google::protobuf::internal::InitSCC(&scc_info_TestSameTypeMap_Map1Entry_DoNotUse.base);
- ::google::protobuf::internal::InitSCC(&scc_info_TestSameTypeMap_Map2Entry_DoNotUse.base);
- ::google::protobuf::internal::InitSCC(&scc_info_TestSameTypeMap.base);
- ::google::protobuf::internal::InitSCC(&scc_info_TestRequiredMessageMap_MapFieldEntry_DoNotUse.base);
- ::google::protobuf::internal::InitSCC(&scc_info_TestRequiredMessageMap.base);
- ::google::protobuf::internal::InitSCC(&scc_info_TestArenaMap_MapInt32Int32Entry_DoNotUse.base);
- ::google::protobuf::internal::InitSCC(&scc_info_TestArenaMap_MapInt64Int64Entry_DoNotUse.base);
- ::google::protobuf::internal::InitSCC(&scc_info_TestArenaMap_MapUint32Uint32Entry_DoNotUse.base);
- ::google::protobuf::internal::InitSCC(&scc_info_TestArenaMap_MapUint64Uint64Entry_DoNotUse.base);
- ::google::protobuf::internal::InitSCC(&scc_info_TestArenaMap_MapSint32Sint32Entry_DoNotUse.base);
- ::google::protobuf::internal::InitSCC(&scc_info_TestArenaMap_MapSint64Sint64Entry_DoNotUse.base);
- ::google::protobuf::internal::InitSCC(&scc_info_TestArenaMap_MapFixed32Fixed32Entry_DoNotUse.base);
- ::google::protobuf::internal::InitSCC(&scc_info_TestArenaMap_MapFixed64Fixed64Entry_DoNotUse.base);
- ::google::protobuf::internal::InitSCC(&scc_info_TestArenaMap_MapSfixed32Sfixed32Entry_DoNotUse.base);
- ::google::protobuf::internal::InitSCC(&scc_info_TestArenaMap_MapSfixed64Sfixed64Entry_DoNotUse.base);
- ::google::protobuf::internal::InitSCC(&scc_info_TestArenaMap_MapInt32FloatEntry_DoNotUse.base);
- ::google::protobuf::internal::InitSCC(&scc_info_TestArenaMap_MapInt32DoubleEntry_DoNotUse.base);
- ::google::protobuf::internal::InitSCC(&scc_info_TestArenaMap_MapBoolBoolEntry_DoNotUse.base);
- ::google::protobuf::internal::InitSCC(&scc_info_TestArenaMap_MapStringStringEntry_DoNotUse.base);
- ::google::protobuf::internal::InitSCC(&scc_info_TestArenaMap_MapInt32BytesEntry_DoNotUse.base);
- ::google::protobuf::internal::InitSCC(&scc_info_TestArenaMap_MapInt32EnumEntry_DoNotUse.base);
- ::google::protobuf::internal::InitSCC(&scc_info_TestArenaMap_MapInt32ForeignMessageEntry_DoNotUse.base);
- ::google::protobuf::internal::InitSCC(&scc_info_TestArenaMap_MapInt32ForeignMessageNoArenaEntry_DoNotUse.base);
- ::google::protobuf::internal::InitSCC(&scc_info_TestArenaMap.base);
- ::google::protobuf::internal::InitSCC(&scc_info_MessageContainingEnumCalledType.base);
- ::google::protobuf::internal::InitSCC(&scc_info_MessageContainingMapCalledEntry_EntryEntry_DoNotUse.base);
- ::google::protobuf::internal::InitSCC(&scc_info_MessageContainingMapCalledEntry.base);
- ::google::protobuf::internal::InitSCC(&scc_info_TestRecursiveMapMessage.base);
- }
- ::google::protobuf::Metadata file_level_metadata[53];
- const ::google::protobuf::EnumDescriptor* file_level_enum_descriptors[2];
- const ::google::protobuf::uint32 TableStruct::offsets[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::TestMap_MapInt32Int32Entry_DoNotUse, _has_bits_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::TestMap_MapInt32Int32Entry_DoNotUse, _internal_metadata_),
- ~0u, // no _extensions_
- ~0u, // no _oneof_case_
- ~0u, // no _weak_field_map_
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::TestMap_MapInt32Int32Entry_DoNotUse, key_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::TestMap_MapInt32Int32Entry_DoNotUse, value_),
- 0,
- 1,
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::TestMap_MapInt64Int64Entry_DoNotUse, _has_bits_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::TestMap_MapInt64Int64Entry_DoNotUse, _internal_metadata_),
- ~0u, // no _extensions_
- ~0u, // no _oneof_case_
- ~0u, // no _weak_field_map_
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::TestMap_MapInt64Int64Entry_DoNotUse, key_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::TestMap_MapInt64Int64Entry_DoNotUse, value_),
- 0,
- 1,
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::TestMap_MapUint32Uint32Entry_DoNotUse, _has_bits_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::TestMap_MapUint32Uint32Entry_DoNotUse, _internal_metadata_),
- ~0u, // no _extensions_
- ~0u, // no _oneof_case_
- ~0u, // no _weak_field_map_
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::TestMap_MapUint32Uint32Entry_DoNotUse, key_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::TestMap_MapUint32Uint32Entry_DoNotUse, value_),
- 0,
- 1,
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::TestMap_MapUint64Uint64Entry_DoNotUse, _has_bits_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::TestMap_MapUint64Uint64Entry_DoNotUse, _internal_metadata_),
- ~0u, // no _extensions_
- ~0u, // no _oneof_case_
- ~0u, // no _weak_field_map_
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::TestMap_MapUint64Uint64Entry_DoNotUse, key_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::TestMap_MapUint64Uint64Entry_DoNotUse, value_),
- 0,
- 1,
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::TestMap_MapSint32Sint32Entry_DoNotUse, _has_bits_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::TestMap_MapSint32Sint32Entry_DoNotUse, _internal_metadata_),
- ~0u, // no _extensions_
- ~0u, // no _oneof_case_
- ~0u, // no _weak_field_map_
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::TestMap_MapSint32Sint32Entry_DoNotUse, key_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::TestMap_MapSint32Sint32Entry_DoNotUse, value_),
- 0,
- 1,
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::TestMap_MapSint64Sint64Entry_DoNotUse, _has_bits_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::TestMap_MapSint64Sint64Entry_DoNotUse, _internal_metadata_),
- ~0u, // no _extensions_
- ~0u, // no _oneof_case_
- ~0u, // no _weak_field_map_
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::TestMap_MapSint64Sint64Entry_DoNotUse, key_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::TestMap_MapSint64Sint64Entry_DoNotUse, value_),
- 0,
- 1,
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::TestMap_MapFixed32Fixed32Entry_DoNotUse, _has_bits_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::TestMap_MapFixed32Fixed32Entry_DoNotUse, _internal_metadata_),
- ~0u, // no _extensions_
- ~0u, // no _oneof_case_
- ~0u, // no _weak_field_map_
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::TestMap_MapFixed32Fixed32Entry_DoNotUse, key_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::TestMap_MapFixed32Fixed32Entry_DoNotUse, value_),
- 0,
- 1,
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::TestMap_MapFixed64Fixed64Entry_DoNotUse, _has_bits_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::TestMap_MapFixed64Fixed64Entry_DoNotUse, _internal_metadata_),
- ~0u, // no _extensions_
- ~0u, // no _oneof_case_
- ~0u, // no _weak_field_map_
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::TestMap_MapFixed64Fixed64Entry_DoNotUse, key_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::TestMap_MapFixed64Fixed64Entry_DoNotUse, value_),
- 0,
- 1,
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::TestMap_MapSfixed32Sfixed32Entry_DoNotUse, _has_bits_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::TestMap_MapSfixed32Sfixed32Entry_DoNotUse, _internal_metadata_),
- ~0u, // no _extensions_
- ~0u, // no _oneof_case_
- ~0u, // no _weak_field_map_
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::TestMap_MapSfixed32Sfixed32Entry_DoNotUse, key_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::TestMap_MapSfixed32Sfixed32Entry_DoNotUse, value_),
- 0,
- 1,
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::TestMap_MapSfixed64Sfixed64Entry_DoNotUse, _has_bits_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::TestMap_MapSfixed64Sfixed64Entry_DoNotUse, _internal_metadata_),
- ~0u, // no _extensions_
- ~0u, // no _oneof_case_
- ~0u, // no _weak_field_map_
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::TestMap_MapSfixed64Sfixed64Entry_DoNotUse, key_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::TestMap_MapSfixed64Sfixed64Entry_DoNotUse, value_),
- 0,
- 1,
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::TestMap_MapInt32FloatEntry_DoNotUse, _has_bits_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::TestMap_MapInt32FloatEntry_DoNotUse, _internal_metadata_),
- ~0u, // no _extensions_
- ~0u, // no _oneof_case_
- ~0u, // no _weak_field_map_
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::TestMap_MapInt32FloatEntry_DoNotUse, key_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::TestMap_MapInt32FloatEntry_DoNotUse, value_),
- 0,
- 1,
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::TestMap_MapInt32DoubleEntry_DoNotUse, _has_bits_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::TestMap_MapInt32DoubleEntry_DoNotUse, _internal_metadata_),
- ~0u, // no _extensions_
- ~0u, // no _oneof_case_
- ~0u, // no _weak_field_map_
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::TestMap_MapInt32DoubleEntry_DoNotUse, key_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::TestMap_MapInt32DoubleEntry_DoNotUse, value_),
- 0,
- 1,
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::TestMap_MapBoolBoolEntry_DoNotUse, _has_bits_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::TestMap_MapBoolBoolEntry_DoNotUse, _internal_metadata_),
- ~0u, // no _extensions_
- ~0u, // no _oneof_case_
- ~0u, // no _weak_field_map_
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::TestMap_MapBoolBoolEntry_DoNotUse, key_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::TestMap_MapBoolBoolEntry_DoNotUse, value_),
- 0,
- 1,
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::TestMap_MapStringStringEntry_DoNotUse, _has_bits_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::TestMap_MapStringStringEntry_DoNotUse, _internal_metadata_),
- ~0u, // no _extensions_
- ~0u, // no _oneof_case_
- ~0u, // no _weak_field_map_
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::TestMap_MapStringStringEntry_DoNotUse, key_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::TestMap_MapStringStringEntry_DoNotUse, value_),
- 0,
- 1,
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::TestMap_MapInt32BytesEntry_DoNotUse, _has_bits_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::TestMap_MapInt32BytesEntry_DoNotUse, _internal_metadata_),
- ~0u, // no _extensions_
- ~0u, // no _oneof_case_
- ~0u, // no _weak_field_map_
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::TestMap_MapInt32BytesEntry_DoNotUse, key_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::TestMap_MapInt32BytesEntry_DoNotUse, value_),
- 0,
- 1,
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::TestMap_MapInt32EnumEntry_DoNotUse, _has_bits_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::TestMap_MapInt32EnumEntry_DoNotUse, _internal_metadata_),
- ~0u, // no _extensions_
- ~0u, // no _oneof_case_
- ~0u, // no _weak_field_map_
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::TestMap_MapInt32EnumEntry_DoNotUse, key_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::TestMap_MapInt32EnumEntry_DoNotUse, value_),
- 0,
- 1,
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::TestMap_MapInt32ForeignMessageEntry_DoNotUse, _has_bits_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::TestMap_MapInt32ForeignMessageEntry_DoNotUse, _internal_metadata_),
- ~0u, // no _extensions_
- ~0u, // no _oneof_case_
- ~0u, // no _weak_field_map_
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::TestMap_MapInt32ForeignMessageEntry_DoNotUse, key_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::TestMap_MapInt32ForeignMessageEntry_DoNotUse, value_),
- 0,
- 1,
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::TestMap_MapStringForeignMessageEntry_DoNotUse, _has_bits_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::TestMap_MapStringForeignMessageEntry_DoNotUse, _internal_metadata_),
- ~0u, // no _extensions_
- ~0u, // no _oneof_case_
- ~0u, // no _weak_field_map_
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::TestMap_MapStringForeignMessageEntry_DoNotUse, key_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::TestMap_MapStringForeignMessageEntry_DoNotUse, value_),
- 0,
- 1,
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::TestMap_MapInt32AllTypesEntry_DoNotUse, _has_bits_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::TestMap_MapInt32AllTypesEntry_DoNotUse, _internal_metadata_),
- ~0u, // no _extensions_
- ~0u, // no _oneof_case_
- ~0u, // no _weak_field_map_
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::TestMap_MapInt32AllTypesEntry_DoNotUse, key_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::TestMap_MapInt32AllTypesEntry_DoNotUse, value_),
- 0,
- 1,
- ~0u, // no _has_bits_
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::TestMap, _internal_metadata_),
- ~0u, // no _extensions_
- ~0u, // no _oneof_case_
- ~0u, // no _weak_field_map_
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::TestMap, map_int32_int32_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::TestMap, map_int64_int64_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::TestMap, map_uint32_uint32_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::TestMap, map_uint64_uint64_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::TestMap, map_sint32_sint32_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::TestMap, map_sint64_sint64_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::TestMap, map_fixed32_fixed32_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::TestMap, map_fixed64_fixed64_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::TestMap, map_sfixed32_sfixed32_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::TestMap, map_sfixed64_sfixed64_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::TestMap, map_int32_float_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::TestMap, map_int32_double_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::TestMap, map_bool_bool_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::TestMap, map_string_string_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::TestMap, map_int32_bytes_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::TestMap, map_int32_enum_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::TestMap, map_int32_foreign_message_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::TestMap, map_string_foreign_message_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::TestMap, map_int32_all_types_),
- ~0u, // no _has_bits_
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::TestMapSubmessage, _internal_metadata_),
- ~0u, // no _extensions_
- ~0u, // no _oneof_case_
- ~0u, // no _weak_field_map_
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::TestMapSubmessage, test_map_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::TestMessageMap_MapInt32MessageEntry_DoNotUse, _has_bits_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::TestMessageMap_MapInt32MessageEntry_DoNotUse, _internal_metadata_),
- ~0u, // no _extensions_
- ~0u, // no _oneof_case_
- ~0u, // no _weak_field_map_
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::TestMessageMap_MapInt32MessageEntry_DoNotUse, key_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::TestMessageMap_MapInt32MessageEntry_DoNotUse, value_),
- 0,
- 1,
- ~0u, // no _has_bits_
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::TestMessageMap, _internal_metadata_),
- ~0u, // no _extensions_
- ~0u, // no _oneof_case_
- ~0u, // no _weak_field_map_
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::TestMessageMap, map_int32_message_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::TestSameTypeMap_Map1Entry_DoNotUse, _has_bits_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::TestSameTypeMap_Map1Entry_DoNotUse, _internal_metadata_),
- ~0u, // no _extensions_
- ~0u, // no _oneof_case_
- ~0u, // no _weak_field_map_
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::TestSameTypeMap_Map1Entry_DoNotUse, key_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::TestSameTypeMap_Map1Entry_DoNotUse, value_),
- 0,
- 1,
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::TestSameTypeMap_Map2Entry_DoNotUse, _has_bits_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::TestSameTypeMap_Map2Entry_DoNotUse, _internal_metadata_),
- ~0u, // no _extensions_
- ~0u, // no _oneof_case_
- ~0u, // no _weak_field_map_
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::TestSameTypeMap_Map2Entry_DoNotUse, key_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::TestSameTypeMap_Map2Entry_DoNotUse, value_),
- 0,
- 1,
- ~0u, // no _has_bits_
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::TestSameTypeMap, _internal_metadata_),
- ~0u, // no _extensions_
- ~0u, // no _oneof_case_
- ~0u, // no _weak_field_map_
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::TestSameTypeMap, map1_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::TestSameTypeMap, map2_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::TestRequiredMessageMap_MapFieldEntry_DoNotUse, _has_bits_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::TestRequiredMessageMap_MapFieldEntry_DoNotUse, _internal_metadata_),
- ~0u, // no _extensions_
- ~0u, // no _oneof_case_
- ~0u, // no _weak_field_map_
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::TestRequiredMessageMap_MapFieldEntry_DoNotUse, key_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::TestRequiredMessageMap_MapFieldEntry_DoNotUse, value_),
- 0,
- 1,
- ~0u, // no _has_bits_
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::TestRequiredMessageMap, _internal_metadata_),
- ~0u, // no _extensions_
- ~0u, // no _oneof_case_
- ~0u, // no _weak_field_map_
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::TestRequiredMessageMap, map_field_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::TestArenaMap_MapInt32Int32Entry_DoNotUse, _has_bits_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::TestArenaMap_MapInt32Int32Entry_DoNotUse, _internal_metadata_),
- ~0u, // no _extensions_
- ~0u, // no _oneof_case_
- ~0u, // no _weak_field_map_
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::TestArenaMap_MapInt32Int32Entry_DoNotUse, key_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::TestArenaMap_MapInt32Int32Entry_DoNotUse, value_),
- 0,
- 1,
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::TestArenaMap_MapInt64Int64Entry_DoNotUse, _has_bits_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::TestArenaMap_MapInt64Int64Entry_DoNotUse, _internal_metadata_),
- ~0u, // no _extensions_
- ~0u, // no _oneof_case_
- ~0u, // no _weak_field_map_
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::TestArenaMap_MapInt64Int64Entry_DoNotUse, key_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::TestArenaMap_MapInt64Int64Entry_DoNotUse, value_),
- 0,
- 1,
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::TestArenaMap_MapUint32Uint32Entry_DoNotUse, _has_bits_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::TestArenaMap_MapUint32Uint32Entry_DoNotUse, _internal_metadata_),
- ~0u, // no _extensions_
- ~0u, // no _oneof_case_
- ~0u, // no _weak_field_map_
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::TestArenaMap_MapUint32Uint32Entry_DoNotUse, key_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::TestArenaMap_MapUint32Uint32Entry_DoNotUse, value_),
- 0,
- 1,
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::TestArenaMap_MapUint64Uint64Entry_DoNotUse, _has_bits_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::TestArenaMap_MapUint64Uint64Entry_DoNotUse, _internal_metadata_),
- ~0u, // no _extensions_
- ~0u, // no _oneof_case_
- ~0u, // no _weak_field_map_
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::TestArenaMap_MapUint64Uint64Entry_DoNotUse, key_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::TestArenaMap_MapUint64Uint64Entry_DoNotUse, value_),
- 0,
- 1,
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::TestArenaMap_MapSint32Sint32Entry_DoNotUse, _has_bits_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::TestArenaMap_MapSint32Sint32Entry_DoNotUse, _internal_metadata_),
- ~0u, // no _extensions_
- ~0u, // no _oneof_case_
- ~0u, // no _weak_field_map_
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::TestArenaMap_MapSint32Sint32Entry_DoNotUse, key_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::TestArenaMap_MapSint32Sint32Entry_DoNotUse, value_),
- 0,
- 1,
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::TestArenaMap_MapSint64Sint64Entry_DoNotUse, _has_bits_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::TestArenaMap_MapSint64Sint64Entry_DoNotUse, _internal_metadata_),
- ~0u, // no _extensions_
- ~0u, // no _oneof_case_
- ~0u, // no _weak_field_map_
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::TestArenaMap_MapSint64Sint64Entry_DoNotUse, key_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::TestArenaMap_MapSint64Sint64Entry_DoNotUse, value_),
- 0,
- 1,
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::TestArenaMap_MapFixed32Fixed32Entry_DoNotUse, _has_bits_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::TestArenaMap_MapFixed32Fixed32Entry_DoNotUse, _internal_metadata_),
- ~0u, // no _extensions_
- ~0u, // no _oneof_case_
- ~0u, // no _weak_field_map_
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::TestArenaMap_MapFixed32Fixed32Entry_DoNotUse, key_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::TestArenaMap_MapFixed32Fixed32Entry_DoNotUse, value_),
- 0,
- 1,
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::TestArenaMap_MapFixed64Fixed64Entry_DoNotUse, _has_bits_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::TestArenaMap_MapFixed64Fixed64Entry_DoNotUse, _internal_metadata_),
- ~0u, // no _extensions_
- ~0u, // no _oneof_case_
- ~0u, // no _weak_field_map_
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::TestArenaMap_MapFixed64Fixed64Entry_DoNotUse, key_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::TestArenaMap_MapFixed64Fixed64Entry_DoNotUse, value_),
- 0,
- 1,
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::TestArenaMap_MapSfixed32Sfixed32Entry_DoNotUse, _has_bits_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::TestArenaMap_MapSfixed32Sfixed32Entry_DoNotUse, _internal_metadata_),
- ~0u, // no _extensions_
- ~0u, // no _oneof_case_
- ~0u, // no _weak_field_map_
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::TestArenaMap_MapSfixed32Sfixed32Entry_DoNotUse, key_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::TestArenaMap_MapSfixed32Sfixed32Entry_DoNotUse, value_),
- 0,
- 1,
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::TestArenaMap_MapSfixed64Sfixed64Entry_DoNotUse, _has_bits_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::TestArenaMap_MapSfixed64Sfixed64Entry_DoNotUse, _internal_metadata_),
- ~0u, // no _extensions_
- ~0u, // no _oneof_case_
- ~0u, // no _weak_field_map_
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::TestArenaMap_MapSfixed64Sfixed64Entry_DoNotUse, key_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::TestArenaMap_MapSfixed64Sfixed64Entry_DoNotUse, value_),
- 0,
- 1,
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::TestArenaMap_MapInt32FloatEntry_DoNotUse, _has_bits_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::TestArenaMap_MapInt32FloatEntry_DoNotUse, _internal_metadata_),
- ~0u, // no _extensions_
- ~0u, // no _oneof_case_
- ~0u, // no _weak_field_map_
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::TestArenaMap_MapInt32FloatEntry_DoNotUse, key_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::TestArenaMap_MapInt32FloatEntry_DoNotUse, value_),
- 0,
- 1,
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::TestArenaMap_MapInt32DoubleEntry_DoNotUse, _has_bits_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::TestArenaMap_MapInt32DoubleEntry_DoNotUse, _internal_metadata_),
- ~0u, // no _extensions_
- ~0u, // no _oneof_case_
- ~0u, // no _weak_field_map_
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::TestArenaMap_MapInt32DoubleEntry_DoNotUse, key_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::TestArenaMap_MapInt32DoubleEntry_DoNotUse, value_),
- 0,
- 1,
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::TestArenaMap_MapBoolBoolEntry_DoNotUse, _has_bits_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::TestArenaMap_MapBoolBoolEntry_DoNotUse, _internal_metadata_),
- ~0u, // no _extensions_
- ~0u, // no _oneof_case_
- ~0u, // no _weak_field_map_
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::TestArenaMap_MapBoolBoolEntry_DoNotUse, key_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::TestArenaMap_MapBoolBoolEntry_DoNotUse, value_),
- 0,
- 1,
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::TestArenaMap_MapStringStringEntry_DoNotUse, _has_bits_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::TestArenaMap_MapStringStringEntry_DoNotUse, _internal_metadata_),
- ~0u, // no _extensions_
- ~0u, // no _oneof_case_
- ~0u, // no _weak_field_map_
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::TestArenaMap_MapStringStringEntry_DoNotUse, key_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::TestArenaMap_MapStringStringEntry_DoNotUse, value_),
- 0,
- 1,
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::TestArenaMap_MapInt32BytesEntry_DoNotUse, _has_bits_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::TestArenaMap_MapInt32BytesEntry_DoNotUse, _internal_metadata_),
- ~0u, // no _extensions_
- ~0u, // no _oneof_case_
- ~0u, // no _weak_field_map_
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::TestArenaMap_MapInt32BytesEntry_DoNotUse, key_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::TestArenaMap_MapInt32BytesEntry_DoNotUse, value_),
- 0,
- 1,
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::TestArenaMap_MapInt32EnumEntry_DoNotUse, _has_bits_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::TestArenaMap_MapInt32EnumEntry_DoNotUse, _internal_metadata_),
- ~0u, // no _extensions_
- ~0u, // no _oneof_case_
- ~0u, // no _weak_field_map_
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::TestArenaMap_MapInt32EnumEntry_DoNotUse, key_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::TestArenaMap_MapInt32EnumEntry_DoNotUse, value_),
- 0,
- 1,
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::TestArenaMap_MapInt32ForeignMessageEntry_DoNotUse, _has_bits_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::TestArenaMap_MapInt32ForeignMessageEntry_DoNotUse, _internal_metadata_),
- ~0u, // no _extensions_
- ~0u, // no _oneof_case_
- ~0u, // no _weak_field_map_
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::TestArenaMap_MapInt32ForeignMessageEntry_DoNotUse, key_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::TestArenaMap_MapInt32ForeignMessageEntry_DoNotUse, value_),
- 0,
- 1,
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::TestArenaMap_MapInt32ForeignMessageNoArenaEntry_DoNotUse, _has_bits_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::TestArenaMap_MapInt32ForeignMessageNoArenaEntry_DoNotUse, _internal_metadata_),
- ~0u, // no _extensions_
- ~0u, // no _oneof_case_
- ~0u, // no _weak_field_map_
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::TestArenaMap_MapInt32ForeignMessageNoArenaEntry_DoNotUse, key_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::TestArenaMap_MapInt32ForeignMessageNoArenaEntry_DoNotUse, value_),
- 0,
- 1,
- ~0u, // no _has_bits_
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::TestArenaMap, _internal_metadata_),
- ~0u, // no _extensions_
- ~0u, // no _oneof_case_
- ~0u, // no _weak_field_map_
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::TestArenaMap, map_int32_int32_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::TestArenaMap, map_int64_int64_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::TestArenaMap, map_uint32_uint32_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::TestArenaMap, map_uint64_uint64_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::TestArenaMap, map_sint32_sint32_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::TestArenaMap, map_sint64_sint64_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::TestArenaMap, map_fixed32_fixed32_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::TestArenaMap, map_fixed64_fixed64_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::TestArenaMap, map_sfixed32_sfixed32_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::TestArenaMap, map_sfixed64_sfixed64_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::TestArenaMap, map_int32_float_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::TestArenaMap, map_int32_double_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::TestArenaMap, map_bool_bool_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::TestArenaMap, map_string_string_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::TestArenaMap, map_int32_bytes_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::TestArenaMap, map_int32_enum_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::TestArenaMap, map_int32_foreign_message_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::TestArenaMap, map_int32_foreign_message_no_arena_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::MessageContainingEnumCalledType_TypeEntry_DoNotUse, _has_bits_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::MessageContainingEnumCalledType_TypeEntry_DoNotUse, _internal_metadata_),
- ~0u, // no _extensions_
- ~0u, // no _oneof_case_
- ~0u, // no _weak_field_map_
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::MessageContainingEnumCalledType_TypeEntry_DoNotUse, key_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::MessageContainingEnumCalledType_TypeEntry_DoNotUse, value_),
- 0,
- 1,
- ~0u, // no _has_bits_
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::MessageContainingEnumCalledType, _internal_metadata_),
- ~0u, // no _extensions_
- ~0u, // no _oneof_case_
- ~0u, // no _weak_field_map_
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::MessageContainingEnumCalledType, type_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::MessageContainingMapCalledEntry_EntryEntry_DoNotUse, _has_bits_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::MessageContainingMapCalledEntry_EntryEntry_DoNotUse, _internal_metadata_),
- ~0u, // no _extensions_
- ~0u, // no _oneof_case_
- ~0u, // no _weak_field_map_
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::MessageContainingMapCalledEntry_EntryEntry_DoNotUse, key_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::MessageContainingMapCalledEntry_EntryEntry_DoNotUse, value_),
- 0,
- 1,
- ~0u, // no _has_bits_
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::MessageContainingMapCalledEntry, _internal_metadata_),
- ~0u, // no _extensions_
- ~0u, // no _oneof_case_
- ~0u, // no _weak_field_map_
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::MessageContainingMapCalledEntry, entry_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::TestRecursiveMapMessage_AEntry_DoNotUse, _has_bits_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::TestRecursiveMapMessage_AEntry_DoNotUse, _internal_metadata_),
- ~0u, // no _extensions_
- ~0u, // no _oneof_case_
- ~0u, // no _weak_field_map_
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::TestRecursiveMapMessage_AEntry_DoNotUse, key_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::TestRecursiveMapMessage_AEntry_DoNotUse, value_),
- 0,
- 1,
- ~0u, // no _has_bits_
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::TestRecursiveMapMessage, _internal_metadata_),
- ~0u, // no _extensions_
- ~0u, // no _oneof_case_
- ~0u, // no _weak_field_map_
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::TestRecursiveMapMessage, a_),
- };
- static const ::google::protobuf::internal::MigrationSchema schemas[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
- { 0, 7, sizeof(::protobuf_unittest::TestMap_MapInt32Int32Entry_DoNotUse)},
- { 9, 16, sizeof(::protobuf_unittest::TestMap_MapInt64Int64Entry_DoNotUse)},
- { 18, 25, sizeof(::protobuf_unittest::TestMap_MapUint32Uint32Entry_DoNotUse)},
- { 27, 34, sizeof(::protobuf_unittest::TestMap_MapUint64Uint64Entry_DoNotUse)},
- { 36, 43, sizeof(::protobuf_unittest::TestMap_MapSint32Sint32Entry_DoNotUse)},
- { 45, 52, sizeof(::protobuf_unittest::TestMap_MapSint64Sint64Entry_DoNotUse)},
- { 54, 61, sizeof(::protobuf_unittest::TestMap_MapFixed32Fixed32Entry_DoNotUse)},
- { 63, 70, sizeof(::protobuf_unittest::TestMap_MapFixed64Fixed64Entry_DoNotUse)},
- { 72, 79, sizeof(::protobuf_unittest::TestMap_MapSfixed32Sfixed32Entry_DoNotUse)},
- { 81, 88, sizeof(::protobuf_unittest::TestMap_MapSfixed64Sfixed64Entry_DoNotUse)},
- { 90, 97, sizeof(::protobuf_unittest::TestMap_MapInt32FloatEntry_DoNotUse)},
- { 99, 106, sizeof(::protobuf_unittest::TestMap_MapInt32DoubleEntry_DoNotUse)},
- { 108, 115, sizeof(::protobuf_unittest::TestMap_MapBoolBoolEntry_DoNotUse)},
- { 117, 124, sizeof(::protobuf_unittest::TestMap_MapStringStringEntry_DoNotUse)},
- { 126, 133, sizeof(::protobuf_unittest::TestMap_MapInt32BytesEntry_DoNotUse)},
- { 135, 142, sizeof(::protobuf_unittest::TestMap_MapInt32EnumEntry_DoNotUse)},
- { 144, 151, sizeof(::protobuf_unittest::TestMap_MapInt32ForeignMessageEntry_DoNotUse)},
- { 153, 160, sizeof(::protobuf_unittest::TestMap_MapStringForeignMessageEntry_DoNotUse)},
- { 162, 169, sizeof(::protobuf_unittest::TestMap_MapInt32AllTypesEntry_DoNotUse)},
- { 171, -1, sizeof(::protobuf_unittest::TestMap)},
- { 195, -1, sizeof(::protobuf_unittest::TestMapSubmessage)},
- { 201, 208, sizeof(::protobuf_unittest::TestMessageMap_MapInt32MessageEntry_DoNotUse)},
- { 210, -1, sizeof(::protobuf_unittest::TestMessageMap)},
- { 216, 223, sizeof(::protobuf_unittest::TestSameTypeMap_Map1Entry_DoNotUse)},
- { 225, 232, sizeof(::protobuf_unittest::TestSameTypeMap_Map2Entry_DoNotUse)},
- { 234, -1, sizeof(::protobuf_unittest::TestSameTypeMap)},
- { 241, 248, sizeof(::protobuf_unittest::TestRequiredMessageMap_MapFieldEntry_DoNotUse)},
- { 250, -1, sizeof(::protobuf_unittest::TestRequiredMessageMap)},
- { 256, 263, sizeof(::protobuf_unittest::TestArenaMap_MapInt32Int32Entry_DoNotUse)},
- { 265, 272, sizeof(::protobuf_unittest::TestArenaMap_MapInt64Int64Entry_DoNotUse)},
- { 274, 281, sizeof(::protobuf_unittest::TestArenaMap_MapUint32Uint32Entry_DoNotUse)},
- { 283, 290, sizeof(::protobuf_unittest::TestArenaMap_MapUint64Uint64Entry_DoNotUse)},
- { 292, 299, sizeof(::protobuf_unittest::TestArenaMap_MapSint32Sint32Entry_DoNotUse)},
- { 301, 308, sizeof(::protobuf_unittest::TestArenaMap_MapSint64Sint64Entry_DoNotUse)},
- { 310, 317, sizeof(::protobuf_unittest::TestArenaMap_MapFixed32Fixed32Entry_DoNotUse)},
- { 319, 326, sizeof(::protobuf_unittest::TestArenaMap_MapFixed64Fixed64Entry_DoNotUse)},
- { 328, 335, sizeof(::protobuf_unittest::TestArenaMap_MapSfixed32Sfixed32Entry_DoNotUse)},
- { 337, 344, sizeof(::protobuf_unittest::TestArenaMap_MapSfixed64Sfixed64Entry_DoNotUse)},
- { 346, 353, sizeof(::protobuf_unittest::TestArenaMap_MapInt32FloatEntry_DoNotUse)},
- { 355, 362, sizeof(::protobuf_unittest::TestArenaMap_MapInt32DoubleEntry_DoNotUse)},
- { 364, 371, sizeof(::protobuf_unittest::TestArenaMap_MapBoolBoolEntry_DoNotUse)},
- { 373, 380, sizeof(::protobuf_unittest::TestArenaMap_MapStringStringEntry_DoNotUse)},
- { 382, 389, sizeof(::protobuf_unittest::TestArenaMap_MapInt32BytesEntry_DoNotUse)},
- { 391, 398, sizeof(::protobuf_unittest::TestArenaMap_MapInt32EnumEntry_DoNotUse)},
- { 400, 407, sizeof(::protobuf_unittest::TestArenaMap_MapInt32ForeignMessageEntry_DoNotUse)},
- { 409, 416, sizeof(::protobuf_unittest::TestArenaMap_MapInt32ForeignMessageNoArenaEntry_DoNotUse)},
- { 418, -1, sizeof(::protobuf_unittest::TestArenaMap)},
- { 441, 448, sizeof(::protobuf_unittest::MessageContainingEnumCalledType_TypeEntry_DoNotUse)},
- { 450, -1, sizeof(::protobuf_unittest::MessageContainingEnumCalledType)},
- { 456, 463, sizeof(::protobuf_unittest::MessageContainingMapCalledEntry_EntryEntry_DoNotUse)},
- { 465, -1, sizeof(::protobuf_unittest::MessageContainingMapCalledEntry)},
- { 471, 478, sizeof(::protobuf_unittest::TestRecursiveMapMessage_AEntry_DoNotUse)},
- { 480, -1, sizeof(::protobuf_unittest::TestRecursiveMapMessage)},
- };
- static ::google::protobuf::Message const * const file_default_instances[] = {
- reinterpret_cast<const ::google::protobuf::Message*>(&::protobuf_unittest::_TestMap_MapInt32Int32Entry_DoNotUse_default_instance_),
- reinterpret_cast<const ::google::protobuf::Message*>(&::protobuf_unittest::_TestMap_MapInt64Int64Entry_DoNotUse_default_instance_),
- reinterpret_cast<const ::google::protobuf::Message*>(&::protobuf_unittest::_TestMap_MapUint32Uint32Entry_DoNotUse_default_instance_),
- reinterpret_cast<const ::google::protobuf::Message*>(&::protobuf_unittest::_TestMap_MapUint64Uint64Entry_DoNotUse_default_instance_),
- reinterpret_cast<const ::google::protobuf::Message*>(&::protobuf_unittest::_TestMap_MapSint32Sint32Entry_DoNotUse_default_instance_),
- reinterpret_cast<const ::google::protobuf::Message*>(&::protobuf_unittest::_TestMap_MapSint64Sint64Entry_DoNotUse_default_instance_),
- reinterpret_cast<const ::google::protobuf::Message*>(&::protobuf_unittest::_TestMap_MapFixed32Fixed32Entry_DoNotUse_default_instance_),
- reinterpret_cast<const ::google::protobuf::Message*>(&::protobuf_unittest::_TestMap_MapFixed64Fixed64Entry_DoNotUse_default_instance_),
- reinterpret_cast<const ::google::protobuf::Message*>(&::protobuf_unittest::_TestMap_MapSfixed32Sfixed32Entry_DoNotUse_default_instance_),
- reinterpret_cast<const ::google::protobuf::Message*>(&::protobuf_unittest::_TestMap_MapSfixed64Sfixed64Entry_DoNotUse_default_instance_),
- reinterpret_cast<const ::google::protobuf::Message*>(&::protobuf_unittest::_TestMap_MapInt32FloatEntry_DoNotUse_default_instance_),
- reinterpret_cast<const ::google::protobuf::Message*>(&::protobuf_unittest::_TestMap_MapInt32DoubleEntry_DoNotUse_default_instance_),
- reinterpret_cast<const ::google::protobuf::Message*>(&::protobuf_unittest::_TestMap_MapBoolBoolEntry_DoNotUse_default_instance_),
- reinterpret_cast<const ::google::protobuf::Message*>(&::protobuf_unittest::_TestMap_MapStringStringEntry_DoNotUse_default_instance_),
- reinterpret_cast<const ::google::protobuf::Message*>(&::protobuf_unittest::_TestMap_MapInt32BytesEntry_DoNotUse_default_instance_),
- reinterpret_cast<const ::google::protobuf::Message*>(&::protobuf_unittest::_TestMap_MapInt32EnumEntry_DoNotUse_default_instance_),
- reinterpret_cast<const ::google::protobuf::Message*>(&::protobuf_unittest::_TestMap_MapInt32ForeignMessageEntry_DoNotUse_default_instance_),
- reinterpret_cast<const ::google::protobuf::Message*>(&::protobuf_unittest::_TestMap_MapStringForeignMessageEntry_DoNotUse_default_instance_),
- reinterpret_cast<const ::google::protobuf::Message*>(&::protobuf_unittest::_TestMap_MapInt32AllTypesEntry_DoNotUse_default_instance_),
- reinterpret_cast<const ::google::protobuf::Message*>(&::protobuf_unittest::_TestMap_default_instance_),
- reinterpret_cast<const ::google::protobuf::Message*>(&::protobuf_unittest::_TestMapSubmessage_default_instance_),
- reinterpret_cast<const ::google::protobuf::Message*>(&::protobuf_unittest::_TestMessageMap_MapInt32MessageEntry_DoNotUse_default_instance_),
- reinterpret_cast<const ::google::protobuf::Message*>(&::protobuf_unittest::_TestMessageMap_default_instance_),
- reinterpret_cast<const ::google::protobuf::Message*>(&::protobuf_unittest::_TestSameTypeMap_Map1Entry_DoNotUse_default_instance_),
- reinterpret_cast<const ::google::protobuf::Message*>(&::protobuf_unittest::_TestSameTypeMap_Map2Entry_DoNotUse_default_instance_),
- reinterpret_cast<const ::google::protobuf::Message*>(&::protobuf_unittest::_TestSameTypeMap_default_instance_),
- reinterpret_cast<const ::google::protobuf::Message*>(&::protobuf_unittest::_TestRequiredMessageMap_MapFieldEntry_DoNotUse_default_instance_),
- reinterpret_cast<const ::google::protobuf::Message*>(&::protobuf_unittest::_TestRequiredMessageMap_default_instance_),
- reinterpret_cast<const ::google::protobuf::Message*>(&::protobuf_unittest::_TestArenaMap_MapInt32Int32Entry_DoNotUse_default_instance_),
- reinterpret_cast<const ::google::protobuf::Message*>(&::protobuf_unittest::_TestArenaMap_MapInt64Int64Entry_DoNotUse_default_instance_),
- reinterpret_cast<const ::google::protobuf::Message*>(&::protobuf_unittest::_TestArenaMap_MapUint32Uint32Entry_DoNotUse_default_instance_),
- reinterpret_cast<const ::google::protobuf::Message*>(&::protobuf_unittest::_TestArenaMap_MapUint64Uint64Entry_DoNotUse_default_instance_),
- reinterpret_cast<const ::google::protobuf::Message*>(&::protobuf_unittest::_TestArenaMap_MapSint32Sint32Entry_DoNotUse_default_instance_),
- reinterpret_cast<const ::google::protobuf::Message*>(&::protobuf_unittest::_TestArenaMap_MapSint64Sint64Entry_DoNotUse_default_instance_),
- reinterpret_cast<const ::google::protobuf::Message*>(&::protobuf_unittest::_TestArenaMap_MapFixed32Fixed32Entry_DoNotUse_default_instance_),
- reinterpret_cast<const ::google::protobuf::Message*>(&::protobuf_unittest::_TestArenaMap_MapFixed64Fixed64Entry_DoNotUse_default_instance_),
- reinterpret_cast<const ::google::protobuf::Message*>(&::protobuf_unittest::_TestArenaMap_MapSfixed32Sfixed32Entry_DoNotUse_default_instance_),
- reinterpret_cast<const ::google::protobuf::Message*>(&::protobuf_unittest::_TestArenaMap_MapSfixed64Sfixed64Entry_DoNotUse_default_instance_),
- reinterpret_cast<const ::google::protobuf::Message*>(&::protobuf_unittest::_TestArenaMap_MapInt32FloatEntry_DoNotUse_default_instance_),
- reinterpret_cast<const ::google::protobuf::Message*>(&::protobuf_unittest::_TestArenaMap_MapInt32DoubleEntry_DoNotUse_default_instance_),
- reinterpret_cast<const ::google::protobuf::Message*>(&::protobuf_unittest::_TestArenaMap_MapBoolBoolEntry_DoNotUse_default_instance_),
- reinterpret_cast<const ::google::protobuf::Message*>(&::protobuf_unittest::_TestArenaMap_MapStringStringEntry_DoNotUse_default_instance_),
- reinterpret_cast<const ::google::protobuf::Message*>(&::protobuf_unittest::_TestArenaMap_MapInt32BytesEntry_DoNotUse_default_instance_),
- reinterpret_cast<const ::google::protobuf::Message*>(&::protobuf_unittest::_TestArenaMap_MapInt32EnumEntry_DoNotUse_default_instance_),
- reinterpret_cast<const ::google::protobuf::Message*>(&::protobuf_unittest::_TestArenaMap_MapInt32ForeignMessageEntry_DoNotUse_default_instance_),
- reinterpret_cast<const ::google::protobuf::Message*>(&::protobuf_unittest::_TestArenaMap_MapInt32ForeignMessageNoArenaEntry_DoNotUse_default_instance_),
- reinterpret_cast<const ::google::protobuf::Message*>(&::protobuf_unittest::_TestArenaMap_default_instance_),
- reinterpret_cast<const ::google::protobuf::Message*>(&::protobuf_unittest::_MessageContainingEnumCalledType_TypeEntry_DoNotUse_default_instance_),
- reinterpret_cast<const ::google::protobuf::Message*>(&::protobuf_unittest::_MessageContainingEnumCalledType_default_instance_),
- reinterpret_cast<const ::google::protobuf::Message*>(&::protobuf_unittest::_MessageContainingMapCalledEntry_EntryEntry_DoNotUse_default_instance_),
- reinterpret_cast<const ::google::protobuf::Message*>(&::protobuf_unittest::_MessageContainingMapCalledEntry_default_instance_),
- reinterpret_cast<const ::google::protobuf::Message*>(&::protobuf_unittest::_TestRecursiveMapMessage_AEntry_DoNotUse_default_instance_),
- reinterpret_cast<const ::google::protobuf::Message*>(&::protobuf_unittest::_TestRecursiveMapMessage_default_instance_),
- };
- void protobuf_AssignDescriptors() {
- AddDescriptors();
- AssignDescriptors(
- "google/protobuf/map_unittest.proto", schemas, file_default_instances, TableStruct::offsets,
- file_level_metadata, file_level_enum_descriptors, NULL);
- }
- void protobuf_AssignDescriptorsOnce() {
- static ::google::protobuf::internal::once_flag once;
- ::google::protobuf::internal::call_once(once, protobuf_AssignDescriptors);
- }
- void protobuf_RegisterTypes(const ::std::string&) GOOGLE_PROTOBUF_ATTRIBUTE_COLD;
- void protobuf_RegisterTypes(const ::std::string&) {
- protobuf_AssignDescriptorsOnce();
- ::google::protobuf::internal::RegisterAllTypes(file_level_metadata, 53);
- }
- void AddDescriptorsImpl() {
- InitDefaults();
- static const char descriptor[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
- "\n\"google/protobuf/map_unittest.proto\022\021pr"
- "otobuf_unittest\032\036google/protobuf/unittes"
- "t.proto\032\'google/protobuf/unittest_no_are"
- "na.proto\"\377\024\n\007TestMap\022F\n\017map_int32_int32\030"
- "\001 \003(\0132-.protobuf_unittest.TestMap.MapInt"
- "32Int32Entry\022F\n\017map_int64_int64\030\002 \003(\0132-."
- "protobuf_unittest.TestMap.MapInt64Int64E"
- "ntry\022J\n\021map_uint32_uint32\030\003 \003(\0132/.protob"
- "uf_unittest.TestMap.MapUint32Uint32Entry"
- "\022J\n\021map_uint64_uint64\030\004 \003(\0132/.protobuf_u"
- "nittest.TestMap.MapUint64Uint64Entry\022J\n\021"
- "map_sint32_sint32\030\005 \003(\0132/.protobuf_unitt"
- "est.TestMap.MapSint32Sint32Entry\022J\n\021map_"
- "sint64_sint64\030\006 \003(\0132/.protobuf_unittest."
- "TestMap.MapSint64Sint64Entry\022N\n\023map_fixe"
- "d32_fixed32\030\007 \003(\01321.protobuf_unittest.Te"
- "stMap.MapFixed32Fixed32Entry\022N\n\023map_fixe"
- "d64_fixed64\030\010 \003(\01321.protobuf_unittest.Te"
- "stMap.MapFixed64Fixed64Entry\022R\n\025map_sfix"
- "ed32_sfixed32\030\t \003(\01323.protobuf_unittest."
- "TestMap.MapSfixed32Sfixed32Entry\022R\n\025map_"
- "sfixed64_sfixed64\030\n \003(\01323.protobuf_unitt"
- "est.TestMap.MapSfixed64Sfixed64Entry\022F\n\017"
- "map_int32_float\030\013 \003(\0132-.protobuf_unittes"
- "t.TestMap.MapInt32FloatEntry\022H\n\020map_int3"
- "2_double\030\014 \003(\0132..protobuf_unittest.TestM"
- "ap.MapInt32DoubleEntry\022B\n\rmap_bool_bool\030"
- "\r \003(\0132+.protobuf_unittest.TestMap.MapBoo"
- "lBoolEntry\022J\n\021map_string_string\030\016 \003(\0132/."
- "protobuf_unittest.TestMap.MapStringStrin"
- "gEntry\022F\n\017map_int32_bytes\030\017 \003(\0132-.protob"
- "uf_unittest.TestMap.MapInt32BytesEntry\022D"
- "\n\016map_int32_enum\030\020 \003(\0132,.protobuf_unitte"
- "st.TestMap.MapInt32EnumEntry\022Y\n\031map_int3"
- "2_foreign_message\030\021 \003(\01326.protobuf_unitt"
- "est.TestMap.MapInt32ForeignMessageEntry\022"
- "[\n\032map_string_foreign_message\030\022 \003(\01327.pr"
- "otobuf_unittest.TestMap.MapStringForeign"
- "MessageEntry\022M\n\023map_int32_all_types\030\023 \003("
- "\01320.protobuf_unittest.TestMap.MapInt32Al"
- "lTypesEntry\0324\n\022MapInt32Int32Entry\022\013\n\003key"
- "\030\001 \001(\005\022\r\n\005value\030\002 \001(\005:\0028\001\0324\n\022MapInt64Int"
- "64Entry\022\013\n\003key\030\001 \001(\003\022\r\n\005value\030\002 \001(\003:\0028\001\032"
- "6\n\024MapUint32Uint32Entry\022\013\n\003key\030\001 \001(\r\022\r\n\005"
- "value\030\002 \001(\r:\0028\001\0326\n\024MapUint64Uint64Entry\022"
- "\013\n\003key\030\001 \001(\004\022\r\n\005value\030\002 \001(\004:\0028\001\0326\n\024MapSi"
- "nt32Sint32Entry\022\013\n\003key\030\001 \001(\021\022\r\n\005value\030\002 "
- "\001(\021:\0028\001\0326\n\024MapSint64Sint64Entry\022\013\n\003key\030\001"
- " \001(\022\022\r\n\005value\030\002 \001(\022:\0028\001\0328\n\026MapFixed32Fix"
- "ed32Entry\022\013\n\003key\030\001 \001(\007\022\r\n\005value\030\002 \001(\007:\0028"
- "\001\0328\n\026MapFixed64Fixed64Entry\022\013\n\003key\030\001 \001(\006"
- "\022\r\n\005value\030\002 \001(\006:\0028\001\032:\n\030MapSfixed32Sfixed"
- "32Entry\022\013\n\003key\030\001 \001(\017\022\r\n\005value\030\002 \001(\017:\0028\001\032"
- ":\n\030MapSfixed64Sfixed64Entry\022\013\n\003key\030\001 \001(\020"
- "\022\r\n\005value\030\002 \001(\020:\0028\001\0324\n\022MapInt32FloatEntr"
- "y\022\013\n\003key\030\001 \001(\005\022\r\n\005value\030\002 \001(\002:\0028\001\0325\n\023Map"
- "Int32DoubleEntry\022\013\n\003key\030\001 \001(\005\022\r\n\005value\030\002"
- " \001(\001:\0028\001\0322\n\020MapBoolBoolEntry\022\013\n\003key\030\001 \001("
- "\010\022\r\n\005value\030\002 \001(\010:\0028\001\0326\n\024MapStringStringE"
- "ntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\0324\n\022"
- "MapInt32BytesEntry\022\013\n\003key\030\001 \001(\005\022\r\n\005value"
- "\030\002 \001(\014:\0028\001\032O\n\021MapInt32EnumEntry\022\013\n\003key\030\001"
- " \001(\005\022)\n\005value\030\002 \001(\0162\032.protobuf_unittest."
- "MapEnum:\0028\001\032`\n\033MapInt32ForeignMessageEnt"
- "ry\022\013\n\003key\030\001 \001(\005\0220\n\005value\030\002 \001(\0132!.protobu"
- "f_unittest.ForeignMessage:\0028\001\032a\n\034MapStri"
- "ngForeignMessageEntry\022\013\n\003key\030\001 \001(\t\0220\n\005va"
- "lue\030\002 \001(\0132!.protobuf_unittest.ForeignMes"
- "sage:\0028\001\032X\n\025MapInt32AllTypesEntry\022\013\n\003key"
- "\030\001 \001(\005\022.\n\005value\030\002 \001(\0132\037.protobuf_unittes"
- "t.TestAllTypes:\0028\001\"A\n\021TestMapSubmessage\022"
- ",\n\010test_map\030\001 \001(\0132\032.protobuf_unittest.Te"
- "stMap\"\274\001\n\016TestMessageMap\022Q\n\021map_int32_me"
- "ssage\030\001 \003(\01326.protobuf_unittest.TestMess"
- "ageMap.MapInt32MessageEntry\032W\n\024MapInt32M"
- "essageEntry\022\013\n\003key\030\001 \001(\005\022.\n\005value\030\002 \001(\0132"
- "\037.protobuf_unittest.TestAllTypes:\0028\001\"\343\001\n"
- "\017TestSameTypeMap\022:\n\004map1\030\001 \003(\0132,.protobu"
- "f_unittest.TestSameTypeMap.Map1Entry\022:\n\004"
- "map2\030\002 \003(\0132,.protobuf_unittest.TestSameT"
- "ypeMap.Map2Entry\032+\n\tMap1Entry\022\013\n\003key\030\001 \001"
- "(\005\022\r\n\005value\030\002 \001(\005:\0028\001\032+\n\tMap2Entry\022\013\n\003ke"
- "y\030\001 \001(\005\022\r\n\005value\030\002 \001(\005:\0028\001\"\266\001\n\026TestRequi"
- "redMessageMap\022J\n\tmap_field\030\001 \003(\01327.proto"
- "buf_unittest.TestRequiredMessageMap.MapF"
- "ieldEntry\032P\n\rMapFieldEntry\022\013\n\003key\030\001 \001(\005\022"
- ".\n\005value\030\002 \001(\0132\037.protobuf_unittest.TestR"
- "equired:\0028\001\"\322\024\n\014TestArenaMap\022K\n\017map_int3"
- "2_int32\030\001 \003(\01322.protobuf_unittest.TestAr"
- "enaMap.MapInt32Int32Entry\022K\n\017map_int64_i"
- "nt64\030\002 \003(\01322.protobuf_unittest.TestArena"
- "Map.MapInt64Int64Entry\022O\n\021map_uint32_uin"
- "t32\030\003 \003(\01324.protobuf_unittest.TestArenaM"
- "ap.MapUint32Uint32Entry\022O\n\021map_uint64_ui"
- "nt64\030\004 \003(\01324.protobuf_unittest.TestArena"
- "Map.MapUint64Uint64Entry\022O\n\021map_sint32_s"
- "int32\030\005 \003(\01324.protobuf_unittest.TestAren"
- "aMap.MapSint32Sint32Entry\022O\n\021map_sint64_"
- "sint64\030\006 \003(\01324.protobuf_unittest.TestAre"
- "naMap.MapSint64Sint64Entry\022S\n\023map_fixed3"
- "2_fixed32\030\007 \003(\01326.protobuf_unittest.Test"
- "ArenaMap.MapFixed32Fixed32Entry\022S\n\023map_f"
- "ixed64_fixed64\030\010 \003(\01326.protobuf_unittest"
- ".TestArenaMap.MapFixed64Fixed64Entry\022W\n\025"
- "map_sfixed32_sfixed32\030\t \003(\01328.protobuf_u"
- "nittest.TestArenaMap.MapSfixed32Sfixed32"
- "Entry\022W\n\025map_sfixed64_sfixed64\030\n \003(\01328.p"
- "rotobuf_unittest.TestArenaMap.MapSfixed6"
- "4Sfixed64Entry\022K\n\017map_int32_float\030\013 \003(\0132"
- "2.protobuf_unittest.TestArenaMap.MapInt3"
- "2FloatEntry\022M\n\020map_int32_double\030\014 \003(\01323."
- "protobuf_unittest.TestArenaMap.MapInt32D"
- "oubleEntry\022G\n\rmap_bool_bool\030\r \003(\01320.prot"
- "obuf_unittest.TestArenaMap.MapBoolBoolEn"
- "try\022O\n\021map_string_string\030\016 \003(\01324.protobu"
- "f_unittest.TestArenaMap.MapStringStringE"
- "ntry\022K\n\017map_int32_bytes\030\017 \003(\01322.protobuf"
- "_unittest.TestArenaMap.MapInt32BytesEntr"
- "y\022I\n\016map_int32_enum\030\020 \003(\01321.protobuf_uni"
- "ttest.TestArenaMap.MapInt32EnumEntry\022^\n\031"
- "map_int32_foreign_message\030\021 \003(\0132;.protob"
- "uf_unittest.TestArenaMap.MapInt32Foreign"
- "MessageEntry\022n\n\"map_int32_foreign_messag"
- "e_no_arena\030\022 \003(\0132B.protobuf_unittest.Tes"
- "tArenaMap.MapInt32ForeignMessageNoArenaE"
- "ntry\0324\n\022MapInt32Int32Entry\022\013\n\003key\030\001 \001(\005\022"
- "\r\n\005value\030\002 \001(\005:\0028\001\0324\n\022MapInt64Int64Entry"
- "\022\013\n\003key\030\001 \001(\003\022\r\n\005value\030\002 \001(\003:\0028\001\0326\n\024MapU"
- "int32Uint32Entry\022\013\n\003key\030\001 \001(\r\022\r\n\005value\030\002"
- " \001(\r:\0028\001\0326\n\024MapUint64Uint64Entry\022\013\n\003key\030"
- "\001 \001(\004\022\r\n\005value\030\002 \001(\004:\0028\001\0326\n\024MapSint32Sin"
- "t32Entry\022\013\n\003key\030\001 \001(\021\022\r\n\005value\030\002 \001(\021:\0028\001"
- "\0326\n\024MapSint64Sint64Entry\022\013\n\003key\030\001 \001(\022\022\r\n"
- "\005value\030\002 \001(\022:\0028\001\0328\n\026MapFixed32Fixed32Ent"
- "ry\022\013\n\003key\030\001 \001(\007\022\r\n\005value\030\002 \001(\007:\0028\001\0328\n\026Ma"
- "pFixed64Fixed64Entry\022\013\n\003key\030\001 \001(\006\022\r\n\005val"
- "ue\030\002 \001(\006:\0028\001\032:\n\030MapSfixed32Sfixed32Entry"
- "\022\013\n\003key\030\001 \001(\017\022\r\n\005value\030\002 \001(\017:\0028\001\032:\n\030MapS"
- "fixed64Sfixed64Entry\022\013\n\003key\030\001 \001(\020\022\r\n\005val"
- "ue\030\002 \001(\020:\0028\001\0324\n\022MapInt32FloatEntry\022\013\n\003ke"
- "y\030\001 \001(\005\022\r\n\005value\030\002 \001(\002:\0028\001\0325\n\023MapInt32Do"
- "ubleEntry\022\013\n\003key\030\001 \001(\005\022\r\n\005value\030\002 \001(\001:\0028"
- "\001\0322\n\020MapBoolBoolEntry\022\013\n\003key\030\001 \001(\010\022\r\n\005va"
- "lue\030\002 \001(\010:\0028\001\0326\n\024MapStringStringEntry\022\013\n"
- "\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\0324\n\022MapInt3"
- "2BytesEntry\022\013\n\003key\030\001 \001(\005\022\r\n\005value\030\002 \001(\014:"
- "\0028\001\032O\n\021MapInt32EnumEntry\022\013\n\003key\030\001 \001(\005\022)\n"
- "\005value\030\002 \001(\0162\032.protobuf_unittest.MapEnum"
- ":\0028\001\032`\n\033MapInt32ForeignMessageEntry\022\013\n\003k"
- "ey\030\001 \001(\005\0220\n\005value\030\002 \001(\0132!.protobuf_unitt"
- "est.ForeignMessage:\0028\001\032p\n\"MapInt32Foreig"
- "nMessageNoArenaEntry\022\013\n\003key\030\001 \001(\005\0229\n\005val"
- "ue\030\002 \001(\0132*.protobuf_unittest_no_arena.Fo"
- "reignMessage:\0028\001\"\344\001\n\037MessageContainingEn"
- "umCalledType\022J\n\004type\030\001 \003(\0132<.protobuf_un"
- "ittest.MessageContainingEnumCalledType.T"
- "ypeEntry\032_\n\tTypeEntry\022\013\n\003key\030\001 \001(\t\022A\n\005va"
- "lue\030\002 \001(\01322.protobuf_unittest.MessageCon"
- "tainingEnumCalledType:\0028\001\"\024\n\004Type\022\014\n\010TYP"
- "E_FOO\020\000\"\235\001\n\037MessageContainingMapCalledEn"
- "try\022L\n\005entry\030\001 \003(\0132=.protobuf_unittest.M"
- "essageContainingMapCalledEntry.EntryEntr"
- "y\032,\n\nEntryEntry\022\013\n\003key\030\001 \001(\005\022\r\n\005value\030\002 "
- "\001(\005:\0028\001\"\255\001\n\027TestRecursiveMapMessage\022<\n\001a"
- "\030\001 \003(\01321.protobuf_unittest.TestRecursive"
- "MapMessage.AEntry\032T\n\006AEntry\022\013\n\003key\030\001 \001(\t"
- "\0229\n\005value\030\002 \001(\0132*.protobuf_unittest.Test"
- "RecursiveMapMessage:\0028\001*\?\n\007MapEnum\022\020\n\014MA"
- "P_ENUM_FOO\020\000\022\020\n\014MAP_ENUM_BAR\020\001\022\020\n\014MAP_EN"
- "UM_BAZ\020\002B\003\370\001\001b\006proto3"
- };
- ::google::protobuf::DescriptorPool::InternalAddGeneratedFile(
- descriptor, 6781);
- ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile(
- "google/protobuf/map_unittest.proto", &protobuf_RegisterTypes);
- ::protobuf_google_2fprotobuf_2funittest_2eproto::AddDescriptors();
- ::protobuf_google_2fprotobuf_2funittest_5fno_5farena_2eproto::AddDescriptors();
- }
- void AddDescriptors() {
- static ::google::protobuf::internal::once_flag once;
- ::google::protobuf::internal::call_once(once, AddDescriptorsImpl);
- }
- // Force AddDescriptors() to be called at dynamic initialization time.
- struct StaticDescriptorInitializer {
- StaticDescriptorInitializer() {
- AddDescriptors();
- }
- } static_descriptor_initializer;
- } // namespace protobuf_google_2fprotobuf_2fmap_5funittest_2eproto
- namespace protobuf_unittest {
- const ::google::protobuf::EnumDescriptor* MessageContainingEnumCalledType_Type_descriptor() {
- protobuf_google_2fprotobuf_2fmap_5funittest_2eproto::protobuf_AssignDescriptorsOnce();
- return protobuf_google_2fprotobuf_2fmap_5funittest_2eproto::file_level_enum_descriptors[0];
- }
- bool MessageContainingEnumCalledType_Type_IsValid(int value) {
- switch (value) {
- case 0:
- return true;
- default:
- return false;
- }
- }
- #if !defined(_MSC_VER) || _MSC_VER >= 1900
- const MessageContainingEnumCalledType_Type MessageContainingEnumCalledType::TYPE_FOO;
- const MessageContainingEnumCalledType_Type MessageContainingEnumCalledType::Type_MIN;
- const MessageContainingEnumCalledType_Type MessageContainingEnumCalledType::Type_MAX;
- const int MessageContainingEnumCalledType::Type_ARRAYSIZE;
- #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
- const ::google::protobuf::EnumDescriptor* MapEnum_descriptor() {
- protobuf_google_2fprotobuf_2fmap_5funittest_2eproto::protobuf_AssignDescriptorsOnce();
- return protobuf_google_2fprotobuf_2fmap_5funittest_2eproto::file_level_enum_descriptors[1];
- }
- bool MapEnum_IsValid(int value) {
- switch (value) {
- case 0:
- case 1:
- case 2:
- return true;
- default:
- return false;
- }
- }
- // ===================================================================
- TestMap_MapInt32Int32Entry_DoNotUse::TestMap_MapInt32Int32Entry_DoNotUse() {}
- TestMap_MapInt32Int32Entry_DoNotUse::TestMap_MapInt32Int32Entry_DoNotUse(::google::protobuf::Arena* arena) : SuperType(arena) {}
- void TestMap_MapInt32Int32Entry_DoNotUse::MergeFrom(const TestMap_MapInt32Int32Entry_DoNotUse& other) {
- MergeFromInternal(other);
- }
- ::google::protobuf::Metadata TestMap_MapInt32Int32Entry_DoNotUse::GetMetadata() const {
- ::protobuf_google_2fprotobuf_2fmap_5funittest_2eproto::protobuf_AssignDescriptorsOnce();
- return ::protobuf_google_2fprotobuf_2fmap_5funittest_2eproto::file_level_metadata[0];
- }
- void TestMap_MapInt32Int32Entry_DoNotUse::MergeFrom(
- const ::google::protobuf::Message& other) {
- ::google::protobuf::Message::MergeFrom(other);
- }
- // ===================================================================
- TestMap_MapInt64Int64Entry_DoNotUse::TestMap_MapInt64Int64Entry_DoNotUse() {}
- TestMap_MapInt64Int64Entry_DoNotUse::TestMap_MapInt64Int64Entry_DoNotUse(::google::protobuf::Arena* arena) : SuperType(arena) {}
- void TestMap_MapInt64Int64Entry_DoNotUse::MergeFrom(const TestMap_MapInt64Int64Entry_DoNotUse& other) {
- MergeFromInternal(other);
- }
- ::google::protobuf::Metadata TestMap_MapInt64Int64Entry_DoNotUse::GetMetadata() const {
- ::protobuf_google_2fprotobuf_2fmap_5funittest_2eproto::protobuf_AssignDescriptorsOnce();
- return ::protobuf_google_2fprotobuf_2fmap_5funittest_2eproto::file_level_metadata[1];
- }
- void TestMap_MapInt64Int64Entry_DoNotUse::MergeFrom(
- const ::google::protobuf::Message& other) {
- ::google::protobuf::Message::MergeFrom(other);
- }
- // ===================================================================
- TestMap_MapUint32Uint32Entry_DoNotUse::TestMap_MapUint32Uint32Entry_DoNotUse() {}
- TestMap_MapUint32Uint32Entry_DoNotUse::TestMap_MapUint32Uint32Entry_DoNotUse(::google::protobuf::Arena* arena) : SuperType(arena) {}
- void TestMap_MapUint32Uint32Entry_DoNotUse::MergeFrom(const TestMap_MapUint32Uint32Entry_DoNotUse& other) {
- MergeFromInternal(other);
- }
- ::google::protobuf::Metadata TestMap_MapUint32Uint32Entry_DoNotUse::GetMetadata() const {
- ::protobuf_google_2fprotobuf_2fmap_5funittest_2eproto::protobuf_AssignDescriptorsOnce();
- return ::protobuf_google_2fprotobuf_2fmap_5funittest_2eproto::file_level_metadata[2];
- }
- void TestMap_MapUint32Uint32Entry_DoNotUse::MergeFrom(
- const ::google::protobuf::Message& other) {
- ::google::protobuf::Message::MergeFrom(other);
- }
- // ===================================================================
- TestMap_MapUint64Uint64Entry_DoNotUse::TestMap_MapUint64Uint64Entry_DoNotUse() {}
- TestMap_MapUint64Uint64Entry_DoNotUse::TestMap_MapUint64Uint64Entry_DoNotUse(::google::protobuf::Arena* arena) : SuperType(arena) {}
- void TestMap_MapUint64Uint64Entry_DoNotUse::MergeFrom(const TestMap_MapUint64Uint64Entry_DoNotUse& other) {
- MergeFromInternal(other);
- }
- ::google::protobuf::Metadata TestMap_MapUint64Uint64Entry_DoNotUse::GetMetadata() const {
- ::protobuf_google_2fprotobuf_2fmap_5funittest_2eproto::protobuf_AssignDescriptorsOnce();
- return ::protobuf_google_2fprotobuf_2fmap_5funittest_2eproto::file_level_metadata[3];
- }
- void TestMap_MapUint64Uint64Entry_DoNotUse::MergeFrom(
- const ::google::protobuf::Message& other) {
- ::google::protobuf::Message::MergeFrom(other);
- }
- // ===================================================================
- TestMap_MapSint32Sint32Entry_DoNotUse::TestMap_MapSint32Sint32Entry_DoNotUse() {}
- TestMap_MapSint32Sint32Entry_DoNotUse::TestMap_MapSint32Sint32Entry_DoNotUse(::google::protobuf::Arena* arena) : SuperType(arena) {}
- void TestMap_MapSint32Sint32Entry_DoNotUse::MergeFrom(const TestMap_MapSint32Sint32Entry_DoNotUse& other) {
- MergeFromInternal(other);
- }
- ::google::protobuf::Metadata TestMap_MapSint32Sint32Entry_DoNotUse::GetMetadata() const {
- ::protobuf_google_2fprotobuf_2fmap_5funittest_2eproto::protobuf_AssignDescriptorsOnce();
- return ::protobuf_google_2fprotobuf_2fmap_5funittest_2eproto::file_level_metadata[4];
- }
- void TestMap_MapSint32Sint32Entry_DoNotUse::MergeFrom(
- const ::google::protobuf::Message& other) {
- ::google::protobuf::Message::MergeFrom(other);
- }
- // ===================================================================
- TestMap_MapSint64Sint64Entry_DoNotUse::TestMap_MapSint64Sint64Entry_DoNotUse() {}
- TestMap_MapSint64Sint64Entry_DoNotUse::TestMap_MapSint64Sint64Entry_DoNotUse(::google::protobuf::Arena* arena) : SuperType(arena) {}
- void TestMap_MapSint64Sint64Entry_DoNotUse::MergeFrom(const TestMap_MapSint64Sint64Entry_DoNotUse& other) {
- MergeFromInternal(other);
- }
- ::google::protobuf::Metadata TestMap_MapSint64Sint64Entry_DoNotUse::GetMetadata() const {
- ::protobuf_google_2fprotobuf_2fmap_5funittest_2eproto::protobuf_AssignDescriptorsOnce();
- return ::protobuf_google_2fprotobuf_2fmap_5funittest_2eproto::file_level_metadata[5];
- }
- void TestMap_MapSint64Sint64Entry_DoNotUse::MergeFrom(
- const ::google::protobuf::Message& other) {
- ::google::protobuf::Message::MergeFrom(other);
- }
- // ===================================================================
- TestMap_MapFixed32Fixed32Entry_DoNotUse::TestMap_MapFixed32Fixed32Entry_DoNotUse() {}
- TestMap_MapFixed32Fixed32Entry_DoNotUse::TestMap_MapFixed32Fixed32Entry_DoNotUse(::google::protobuf::Arena* arena) : SuperType(arena) {}
- void TestMap_MapFixed32Fixed32Entry_DoNotUse::MergeFrom(const TestMap_MapFixed32Fixed32Entry_DoNotUse& other) {
- MergeFromInternal(other);
- }
- ::google::protobuf::Metadata TestMap_MapFixed32Fixed32Entry_DoNotUse::GetMetadata() const {
- ::protobuf_google_2fprotobuf_2fmap_5funittest_2eproto::protobuf_AssignDescriptorsOnce();
- return ::protobuf_google_2fprotobuf_2fmap_5funittest_2eproto::file_level_metadata[6];
- }
- void TestMap_MapFixed32Fixed32Entry_DoNotUse::MergeFrom(
- const ::google::protobuf::Message& other) {
- ::google::protobuf::Message::MergeFrom(other);
- }
- // ===================================================================
- TestMap_MapFixed64Fixed64Entry_DoNotUse::TestMap_MapFixed64Fixed64Entry_DoNotUse() {}
- TestMap_MapFixed64Fixed64Entry_DoNotUse::TestMap_MapFixed64Fixed64Entry_DoNotUse(::google::protobuf::Arena* arena) : SuperType(arena) {}
- void TestMap_MapFixed64Fixed64Entry_DoNotUse::MergeFrom(const TestMap_MapFixed64Fixed64Entry_DoNotUse& other) {
- MergeFromInternal(other);
- }
- ::google::protobuf::Metadata TestMap_MapFixed64Fixed64Entry_DoNotUse::GetMetadata() const {
- ::protobuf_google_2fprotobuf_2fmap_5funittest_2eproto::protobuf_AssignDescriptorsOnce();
- return ::protobuf_google_2fprotobuf_2fmap_5funittest_2eproto::file_level_metadata[7];
- }
- void TestMap_MapFixed64Fixed64Entry_DoNotUse::MergeFrom(
- const ::google::protobuf::Message& other) {
- ::google::protobuf::Message::MergeFrom(other);
- }
- // ===================================================================
- TestMap_MapSfixed32Sfixed32Entry_DoNotUse::TestMap_MapSfixed32Sfixed32Entry_DoNotUse() {}
- TestMap_MapSfixed32Sfixed32Entry_DoNotUse::TestMap_MapSfixed32Sfixed32Entry_DoNotUse(::google::protobuf::Arena* arena) : SuperType(arena) {}
- void TestMap_MapSfixed32Sfixed32Entry_DoNotUse::MergeFrom(const TestMap_MapSfixed32Sfixed32Entry_DoNotUse& other) {
- MergeFromInternal(other);
- }
- ::google::protobuf::Metadata TestMap_MapSfixed32Sfixed32Entry_DoNotUse::GetMetadata() const {
- ::protobuf_google_2fprotobuf_2fmap_5funittest_2eproto::protobuf_AssignDescriptorsOnce();
- return ::protobuf_google_2fprotobuf_2fmap_5funittest_2eproto::file_level_metadata[8];
- }
- void TestMap_MapSfixed32Sfixed32Entry_DoNotUse::MergeFrom(
- const ::google::protobuf::Message& other) {
- ::google::protobuf::Message::MergeFrom(other);
- }
- // ===================================================================
- TestMap_MapSfixed64Sfixed64Entry_DoNotUse::TestMap_MapSfixed64Sfixed64Entry_DoNotUse() {}
- TestMap_MapSfixed64Sfixed64Entry_DoNotUse::TestMap_MapSfixed64Sfixed64Entry_DoNotUse(::google::protobuf::Arena* arena) : SuperType(arena) {}
- void TestMap_MapSfixed64Sfixed64Entry_DoNotUse::MergeFrom(const TestMap_MapSfixed64Sfixed64Entry_DoNotUse& other) {
- MergeFromInternal(other);
- }
- ::google::protobuf::Metadata TestMap_MapSfixed64Sfixed64Entry_DoNotUse::GetMetadata() const {
- ::protobuf_google_2fprotobuf_2fmap_5funittest_2eproto::protobuf_AssignDescriptorsOnce();
- return ::protobuf_google_2fprotobuf_2fmap_5funittest_2eproto::file_level_metadata[9];
- }
- void TestMap_MapSfixed64Sfixed64Entry_DoNotUse::MergeFrom(
- const ::google::protobuf::Message& other) {
- ::google::protobuf::Message::MergeFrom(other);
- }
- // ===================================================================
- TestMap_MapInt32FloatEntry_DoNotUse::TestMap_MapInt32FloatEntry_DoNotUse() {}
- TestMap_MapInt32FloatEntry_DoNotUse::TestMap_MapInt32FloatEntry_DoNotUse(::google::protobuf::Arena* arena) : SuperType(arena) {}
- void TestMap_MapInt32FloatEntry_DoNotUse::MergeFrom(const TestMap_MapInt32FloatEntry_DoNotUse& other) {
- MergeFromInternal(other);
- }
- ::google::protobuf::Metadata TestMap_MapInt32FloatEntry_DoNotUse::GetMetadata() const {
- ::protobuf_google_2fprotobuf_2fmap_5funittest_2eproto::protobuf_AssignDescriptorsOnce();
- return ::protobuf_google_2fprotobuf_2fmap_5funittest_2eproto::file_level_metadata[10];
- }
- void TestMap_MapInt32FloatEntry_DoNotUse::MergeFrom(
- const ::google::protobuf::Message& other) {
- ::google::protobuf::Message::MergeFrom(other);
- }
- // ===================================================================
- TestMap_MapInt32DoubleEntry_DoNotUse::TestMap_MapInt32DoubleEntry_DoNotUse() {}
- TestMap_MapInt32DoubleEntry_DoNotUse::TestMap_MapInt32DoubleEntry_DoNotUse(::google::protobuf::Arena* arena) : SuperType(arena) {}
- void TestMap_MapInt32DoubleEntry_DoNotUse::MergeFrom(const TestMap_MapInt32DoubleEntry_DoNotUse& other) {
- MergeFromInternal(other);
- }
- ::google::protobuf::Metadata TestMap_MapInt32DoubleEntry_DoNotUse::GetMetadata() const {
- ::protobuf_google_2fprotobuf_2fmap_5funittest_2eproto::protobuf_AssignDescriptorsOnce();
- return ::protobuf_google_2fprotobuf_2fmap_5funittest_2eproto::file_level_metadata[11];
- }
- void TestMap_MapInt32DoubleEntry_DoNotUse::MergeFrom(
- const ::google::protobuf::Message& other) {
- ::google::protobuf::Message::MergeFrom(other);
- }
- // ===================================================================
- TestMap_MapBoolBoolEntry_DoNotUse::TestMap_MapBoolBoolEntry_DoNotUse() {}
- TestMap_MapBoolBoolEntry_DoNotUse::TestMap_MapBoolBoolEntry_DoNotUse(::google::protobuf::Arena* arena) : SuperType(arena) {}
- void TestMap_MapBoolBoolEntry_DoNotUse::MergeFrom(const TestMap_MapBoolBoolEntry_DoNotUse& other) {
- MergeFromInternal(other);
- }
- ::google::protobuf::Metadata TestMap_MapBoolBoolEntry_DoNotUse::GetMetadata() const {
- ::protobuf_google_2fprotobuf_2fmap_5funittest_2eproto::protobuf_AssignDescriptorsOnce();
- return ::protobuf_google_2fprotobuf_2fmap_5funittest_2eproto::file_level_metadata[12];
- }
- void TestMap_MapBoolBoolEntry_DoNotUse::MergeFrom(
- const ::google::protobuf::Message& other) {
- ::google::protobuf::Message::MergeFrom(other);
- }
- // ===================================================================
- TestMap_MapStringStringEntry_DoNotUse::TestMap_MapStringStringEntry_DoNotUse() {}
- TestMap_MapStringStringEntry_DoNotUse::TestMap_MapStringStringEntry_DoNotUse(::google::protobuf::Arena* arena) : SuperType(arena) {}
- void TestMap_MapStringStringEntry_DoNotUse::MergeFrom(const TestMap_MapStringStringEntry_DoNotUse& other) {
- MergeFromInternal(other);
- }
- ::google::protobuf::Metadata TestMap_MapStringStringEntry_DoNotUse::GetMetadata() const {
- ::protobuf_google_2fprotobuf_2fmap_5funittest_2eproto::protobuf_AssignDescriptorsOnce();
- return ::protobuf_google_2fprotobuf_2fmap_5funittest_2eproto::file_level_metadata[13];
- }
- void TestMap_MapStringStringEntry_DoNotUse::MergeFrom(
- const ::google::protobuf::Message& other) {
- ::google::protobuf::Message::MergeFrom(other);
- }
- // ===================================================================
- TestMap_MapInt32BytesEntry_DoNotUse::TestMap_MapInt32BytesEntry_DoNotUse() {}
- TestMap_MapInt32BytesEntry_DoNotUse::TestMap_MapInt32BytesEntry_DoNotUse(::google::protobuf::Arena* arena) : SuperType(arena) {}
- void TestMap_MapInt32BytesEntry_DoNotUse::MergeFrom(const TestMap_MapInt32BytesEntry_DoNotUse& other) {
- MergeFromInternal(other);
- }
- ::google::protobuf::Metadata TestMap_MapInt32BytesEntry_DoNotUse::GetMetadata() const {
- ::protobuf_google_2fprotobuf_2fmap_5funittest_2eproto::protobuf_AssignDescriptorsOnce();
- return ::protobuf_google_2fprotobuf_2fmap_5funittest_2eproto::file_level_metadata[14];
- }
- void TestMap_MapInt32BytesEntry_DoNotUse::MergeFrom(
- const ::google::protobuf::Message& other) {
- ::google::protobuf::Message::MergeFrom(other);
- }
- // ===================================================================
- TestMap_MapInt32EnumEntry_DoNotUse::TestMap_MapInt32EnumEntry_DoNotUse() {}
- TestMap_MapInt32EnumEntry_DoNotUse::TestMap_MapInt32EnumEntry_DoNotUse(::google::protobuf::Arena* arena) : SuperType(arena) {}
- void TestMap_MapInt32EnumEntry_DoNotUse::MergeFrom(const TestMap_MapInt32EnumEntry_DoNotUse& other) {
- MergeFromInternal(other);
- }
- ::google::protobuf::Metadata TestMap_MapInt32EnumEntry_DoNotUse::GetMetadata() const {
- ::protobuf_google_2fprotobuf_2fmap_5funittest_2eproto::protobuf_AssignDescriptorsOnce();
- return ::protobuf_google_2fprotobuf_2fmap_5funittest_2eproto::file_level_metadata[15];
- }
- void TestMap_MapInt32EnumEntry_DoNotUse::MergeFrom(
- const ::google::protobuf::Message& other) {
- ::google::protobuf::Message::MergeFrom(other);
- }
- // ===================================================================
- TestMap_MapInt32ForeignMessageEntry_DoNotUse::TestMap_MapInt32ForeignMessageEntry_DoNotUse() {}
- TestMap_MapInt32ForeignMessageEntry_DoNotUse::TestMap_MapInt32ForeignMessageEntry_DoNotUse(::google::protobuf::Arena* arena) : SuperType(arena) {}
- void TestMap_MapInt32ForeignMessageEntry_DoNotUse::MergeFrom(const TestMap_MapInt32ForeignMessageEntry_DoNotUse& other) {
- MergeFromInternal(other);
- }
- ::google::protobuf::Metadata TestMap_MapInt32ForeignMessageEntry_DoNotUse::GetMetadata() const {
- ::protobuf_google_2fprotobuf_2fmap_5funittest_2eproto::protobuf_AssignDescriptorsOnce();
- return ::protobuf_google_2fprotobuf_2fmap_5funittest_2eproto::file_level_metadata[16];
- }
- void TestMap_MapInt32ForeignMessageEntry_DoNotUse::MergeFrom(
- const ::google::protobuf::Message& other) {
- ::google::protobuf::Message::MergeFrom(other);
- }
- // ===================================================================
- TestMap_MapStringForeignMessageEntry_DoNotUse::TestMap_MapStringForeignMessageEntry_DoNotUse() {}
- TestMap_MapStringForeignMessageEntry_DoNotUse::TestMap_MapStringForeignMessageEntry_DoNotUse(::google::protobuf::Arena* arena) : SuperType(arena) {}
- void TestMap_MapStringForeignMessageEntry_DoNotUse::MergeFrom(const TestMap_MapStringForeignMessageEntry_DoNotUse& other) {
- MergeFromInternal(other);
- }
- ::google::protobuf::Metadata TestMap_MapStringForeignMessageEntry_DoNotUse::GetMetadata() const {
- ::protobuf_google_2fprotobuf_2fmap_5funittest_2eproto::protobuf_AssignDescriptorsOnce();
- return ::protobuf_google_2fprotobuf_2fmap_5funittest_2eproto::file_level_metadata[17];
- }
- void TestMap_MapStringForeignMessageEntry_DoNotUse::MergeFrom(
- const ::google::protobuf::Message& other) {
- ::google::protobuf::Message::MergeFrom(other);
- }
- // ===================================================================
- TestMap_MapInt32AllTypesEntry_DoNotUse::TestMap_MapInt32AllTypesEntry_DoNotUse() {}
- TestMap_MapInt32AllTypesEntry_DoNotUse::TestMap_MapInt32AllTypesEntry_DoNotUse(::google::protobuf::Arena* arena) : SuperType(arena) {}
- void TestMap_MapInt32AllTypesEntry_DoNotUse::MergeFrom(const TestMap_MapInt32AllTypesEntry_DoNotUse& other) {
- MergeFromInternal(other);
- }
- ::google::protobuf::Metadata TestMap_MapInt32AllTypesEntry_DoNotUse::GetMetadata() const {
- ::protobuf_google_2fprotobuf_2fmap_5funittest_2eproto::protobuf_AssignDescriptorsOnce();
- return ::protobuf_google_2fprotobuf_2fmap_5funittest_2eproto::file_level_metadata[18];
- }
- void TestMap_MapInt32AllTypesEntry_DoNotUse::MergeFrom(
- const ::google::protobuf::Message& other) {
- ::google::protobuf::Message::MergeFrom(other);
- }
- // ===================================================================
- void TestMap::InitAsDefaultInstance() {
- }
- void TestMap::clear_map_int32_foreign_message() {
- map_int32_foreign_message_.Clear();
- }
- void TestMap::clear_map_string_foreign_message() {
- map_string_foreign_message_.Clear();
- }
- void TestMap::clear_map_int32_all_types() {
- map_int32_all_types_.Clear();
- }
- #if !defined(_MSC_VER) || _MSC_VER >= 1900
- const int TestMap::kMapInt32Int32FieldNumber;
- const int TestMap::kMapInt64Int64FieldNumber;
- const int TestMap::kMapUint32Uint32FieldNumber;
- const int TestMap::kMapUint64Uint64FieldNumber;
- const int TestMap::kMapSint32Sint32FieldNumber;
- const int TestMap::kMapSint64Sint64FieldNumber;
- const int TestMap::kMapFixed32Fixed32FieldNumber;
- const int TestMap::kMapFixed64Fixed64FieldNumber;
- const int TestMap::kMapSfixed32Sfixed32FieldNumber;
- const int TestMap::kMapSfixed64Sfixed64FieldNumber;
- const int TestMap::kMapInt32FloatFieldNumber;
- const int TestMap::kMapInt32DoubleFieldNumber;
- const int TestMap::kMapBoolBoolFieldNumber;
- const int TestMap::kMapStringStringFieldNumber;
- const int TestMap::kMapInt32BytesFieldNumber;
- const int TestMap::kMapInt32EnumFieldNumber;
- const int TestMap::kMapInt32ForeignMessageFieldNumber;
- const int TestMap::kMapStringForeignMessageFieldNumber;
- const int TestMap::kMapInt32AllTypesFieldNumber;
- #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
- TestMap::TestMap()
- : ::google::protobuf::Message(), _internal_metadata_(NULL) {
- ::google::protobuf::internal::InitSCC(
- &protobuf_google_2fprotobuf_2fmap_5funittest_2eproto::scc_info_TestMap.base);
- SharedCtor();
- // @@protoc_insertion_point(constructor:protobuf_unittest.TestMap)
- }
- TestMap::TestMap(::google::protobuf::Arena* arena)
- : ::google::protobuf::Message(),
- _internal_metadata_(arena),
- map_int32_int32_(arena),
- map_int64_int64_(arena),
- map_uint32_uint32_(arena),
- map_uint64_uint64_(arena),
- map_sint32_sint32_(arena),
- map_sint64_sint64_(arena),
- map_fixed32_fixed32_(arena),
- map_fixed64_fixed64_(arena),
- map_sfixed32_sfixed32_(arena),
- map_sfixed64_sfixed64_(arena),
- map_int32_float_(arena),
- map_int32_double_(arena),
- map_bool_bool_(arena),
- map_string_string_(arena),
- map_int32_bytes_(arena),
- map_int32_enum_(arena),
- map_int32_foreign_message_(arena),
- map_string_foreign_message_(arena),
- map_int32_all_types_(arena) {
- ::google::protobuf::internal::InitSCC(&protobuf_google_2fprotobuf_2fmap_5funittest_2eproto::scc_info_TestMap.base);
- SharedCtor();
- RegisterArenaDtor(arena);
- // @@protoc_insertion_point(arena_constructor:protobuf_unittest.TestMap)
- }
- TestMap::TestMap(const TestMap& from)
- : ::google::protobuf::Message(),
- _internal_metadata_(NULL) {
- _internal_metadata_.MergeFrom(from._internal_metadata_);
- map_int32_int32_.MergeFrom(from.map_int32_int32_);
- map_int64_int64_.MergeFrom(from.map_int64_int64_);
- map_uint32_uint32_.MergeFrom(from.map_uint32_uint32_);
- map_uint64_uint64_.MergeFrom(from.map_uint64_uint64_);
- map_sint32_sint32_.MergeFrom(from.map_sint32_sint32_);
- map_sint64_sint64_.MergeFrom(from.map_sint64_sint64_);
- map_fixed32_fixed32_.MergeFrom(from.map_fixed32_fixed32_);
- map_fixed64_fixed64_.MergeFrom(from.map_fixed64_fixed64_);
- map_sfixed32_sfixed32_.MergeFrom(from.map_sfixed32_sfixed32_);
- map_sfixed64_sfixed64_.MergeFrom(from.map_sfixed64_sfixed64_);
- map_int32_float_.MergeFrom(from.map_int32_float_);
- map_int32_double_.MergeFrom(from.map_int32_double_);
- map_bool_bool_.MergeFrom(from.map_bool_bool_);
- map_string_string_.MergeFrom(from.map_string_string_);
- map_int32_bytes_.MergeFrom(from.map_int32_bytes_);
- map_int32_enum_.MergeFrom(from.map_int32_enum_);
- map_int32_foreign_message_.MergeFrom(from.map_int32_foreign_message_);
- map_string_foreign_message_.MergeFrom(from.map_string_foreign_message_);
- map_int32_all_types_.MergeFrom(from.map_int32_all_types_);
- // @@protoc_insertion_point(copy_constructor:protobuf_unittest.TestMap)
- }
- void TestMap::SharedCtor() {
- }
- TestMap::~TestMap() {
- // @@protoc_insertion_point(destructor:protobuf_unittest.TestMap)
- SharedDtor();
- }
- void TestMap::SharedDtor() {
- GOOGLE_DCHECK(GetArenaNoVirtual() == NULL);
- }
- void TestMap::ArenaDtor(void* object) {
- TestMap* _this = reinterpret_cast< TestMap* >(object);
- (void)_this;
- }
- void TestMap::RegisterArenaDtor(::google::protobuf::Arena* arena) {
- }
- void TestMap::SetCachedSize(int size) const {
- _cached_size_.Set(size);
- }
- const ::google::protobuf::Descriptor* TestMap::descriptor() {
- ::protobuf_google_2fprotobuf_2fmap_5funittest_2eproto::protobuf_AssignDescriptorsOnce();
- return ::protobuf_google_2fprotobuf_2fmap_5funittest_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
- }
- const TestMap& TestMap::default_instance() {
- ::google::protobuf::internal::InitSCC(&protobuf_google_2fprotobuf_2fmap_5funittest_2eproto::scc_info_TestMap.base);
- return *internal_default_instance();
- }
- void TestMap::Clear() {
- // @@protoc_insertion_point(message_clear_start:protobuf_unittest.TestMap)
- ::google::protobuf::uint32 cached_has_bits = 0;
- // Prevent compiler warnings about cached_has_bits being unused
- (void) cached_has_bits;
- map_int32_int32_.Clear();
- map_int64_int64_.Clear();
- map_uint32_uint32_.Clear();
- map_uint64_uint64_.Clear();
- map_sint32_sint32_.Clear();
- map_sint64_sint64_.Clear();
- map_fixed32_fixed32_.Clear();
- map_fixed64_fixed64_.Clear();
- map_sfixed32_sfixed32_.Clear();
- map_sfixed64_sfixed64_.Clear();
- map_int32_float_.Clear();
- map_int32_double_.Clear();
- map_bool_bool_.Clear();
- map_string_string_.Clear();
- map_int32_bytes_.Clear();
- map_int32_enum_.Clear();
- map_int32_foreign_message_.Clear();
- map_string_foreign_message_.Clear();
- map_int32_all_types_.Clear();
- _internal_metadata_.Clear();
- }
- bool TestMap::MergePartialFromCodedStream(
- ::google::protobuf::io::CodedInputStream* input) {
- #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
- ::google::protobuf::uint32 tag;
- // @@protoc_insertion_point(parse_start:protobuf_unittest.TestMap)
- for (;;) {
- ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(16383u);
- tag = p.first;
- if (!p.second) goto handle_unusual;
- switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
- // map<int32, int32> map_int32_int32 = 1;
- case 1: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
- TestMap_MapInt32Int32Entry_DoNotUse::Parser< ::google::protobuf::internal::MapField<
- TestMap_MapInt32Int32Entry_DoNotUse,
- ::google::protobuf::int32, ::google::protobuf::int32,
- ::google::protobuf::internal::WireFormatLite::TYPE_INT32,
- ::google::protobuf::internal::WireFormatLite::TYPE_INT32,
- 0 >,
- ::google::protobuf::Map< ::google::protobuf::int32, ::google::protobuf::int32 > > parser(&map_int32_int32_);
- DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
- input, &parser));
- } else {
- goto handle_unusual;
- }
- break;
- }
- // map<int64, int64> map_int64_int64 = 2;
- case 2: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) {
- TestMap_MapInt64Int64Entry_DoNotUse::Parser< ::google::protobuf::internal::MapField<
- TestMap_MapInt64Int64Entry_DoNotUse,
- ::google::protobuf::int64, ::google::protobuf::int64,
- ::google::protobuf::internal::WireFormatLite::TYPE_INT64,
- ::google::protobuf::internal::WireFormatLite::TYPE_INT64,
- 0 >,
- ::google::protobuf::Map< ::google::protobuf::int64, ::google::protobuf::int64 > > parser(&map_int64_int64_);
- DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
- input, &parser));
- } else {
- goto handle_unusual;
- }
- break;
- }
- // map<uint32, uint32> map_uint32_uint32 = 3;
- case 3: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) {
- TestMap_MapUint32Uint32Entry_DoNotUse::Parser< ::google::protobuf::internal::MapField<
- TestMap_MapUint32Uint32Entry_DoNotUse,
- ::google::protobuf::uint32, ::google::protobuf::uint32,
- ::google::protobuf::internal::WireFormatLite::TYPE_UINT32,
- ::google::protobuf::internal::WireFormatLite::TYPE_UINT32,
- 0 >,
- ::google::protobuf::Map< ::google::protobuf::uint32, ::google::protobuf::uint32 > > parser(&map_uint32_uint32_);
- DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
- input, &parser));
- } else {
- goto handle_unusual;
- }
- break;
- }
- // map<uint64, uint64> map_uint64_uint64 = 4;
- case 4: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(34u /* 34 & 0xFF */)) {
- TestMap_MapUint64Uint64Entry_DoNotUse::Parser< ::google::protobuf::internal::MapField<
- TestMap_MapUint64Uint64Entry_DoNotUse,
- ::google::protobuf::uint64, ::google::protobuf::uint64,
- ::google::protobuf::internal::WireFormatLite::TYPE_UINT64,
- ::google::protobuf::internal::WireFormatLite::TYPE_UINT64,
- 0 >,
- ::google::protobuf::Map< ::google::protobuf::uint64, ::google::protobuf::uint64 > > parser(&map_uint64_uint64_);
- DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
- input, &parser));
- } else {
- goto handle_unusual;
- }
- break;
- }
- // map<sint32, sint32> map_sint32_sint32 = 5;
- case 5: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(42u /* 42 & 0xFF */)) {
- TestMap_MapSint32Sint32Entry_DoNotUse::Parser< ::google::protobuf::internal::MapField<
- TestMap_MapSint32Sint32Entry_DoNotUse,
- ::google::protobuf::int32, ::google::protobuf::int32,
- ::google::protobuf::internal::WireFormatLite::TYPE_SINT32,
- ::google::protobuf::internal::WireFormatLite::TYPE_SINT32,
- 0 >,
- ::google::protobuf::Map< ::google::protobuf::int32, ::google::protobuf::int32 > > parser(&map_sint32_sint32_);
- DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
- input, &parser));
- } else {
- goto handle_unusual;
- }
- break;
- }
- // map<sint64, sint64> map_sint64_sint64 = 6;
- case 6: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(50u /* 50 & 0xFF */)) {
- TestMap_MapSint64Sint64Entry_DoNotUse::Parser< ::google::protobuf::internal::MapField<
- TestMap_MapSint64Sint64Entry_DoNotUse,
- ::google::protobuf::int64, ::google::protobuf::int64,
- ::google::protobuf::internal::WireFormatLite::TYPE_SINT64,
- ::google::protobuf::internal::WireFormatLite::TYPE_SINT64,
- 0 >,
- ::google::protobuf::Map< ::google::protobuf::int64, ::google::protobuf::int64 > > parser(&map_sint64_sint64_);
- DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
- input, &parser));
- } else {
- goto handle_unusual;
- }
- break;
- }
- // map<fixed32, fixed32> map_fixed32_fixed32 = 7;
- case 7: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(58u /* 58 & 0xFF */)) {
- TestMap_MapFixed32Fixed32Entry_DoNotUse::Parser< ::google::protobuf::internal::MapField<
- TestMap_MapFixed32Fixed32Entry_DoNotUse,
- ::google::protobuf::uint32, ::google::protobuf::uint32,
- ::google::protobuf::internal::WireFormatLite::TYPE_FIXED32,
- ::google::protobuf::internal::WireFormatLite::TYPE_FIXED32,
- 0 >,
- ::google::protobuf::Map< ::google::protobuf::uint32, ::google::protobuf::uint32 > > parser(&map_fixed32_fixed32_);
- DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
- input, &parser));
- } else {
- goto handle_unusual;
- }
- break;
- }
- // map<fixed64, fixed64> map_fixed64_fixed64 = 8;
- case 8: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(66u /* 66 & 0xFF */)) {
- TestMap_MapFixed64Fixed64Entry_DoNotUse::Parser< ::google::protobuf::internal::MapField<
- TestMap_MapFixed64Fixed64Entry_DoNotUse,
- ::google::protobuf::uint64, ::google::protobuf::uint64,
- ::google::protobuf::internal::WireFormatLite::TYPE_FIXED64,
- ::google::protobuf::internal::WireFormatLite::TYPE_FIXED64,
- 0 >,
- ::google::protobuf::Map< ::google::protobuf::uint64, ::google::protobuf::uint64 > > parser(&map_fixed64_fixed64_);
- DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
- input, &parser));
- } else {
- goto handle_unusual;
- }
- break;
- }
- // map<sfixed32, sfixed32> map_sfixed32_sfixed32 = 9;
- case 9: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(74u /* 74 & 0xFF */)) {
- TestMap_MapSfixed32Sfixed32Entry_DoNotUse::Parser< ::google::protobuf::internal::MapField<
- TestMap_MapSfixed32Sfixed32Entry_DoNotUse,
- ::google::protobuf::int32, ::google::protobuf::int32,
- ::google::protobuf::internal::WireFormatLite::TYPE_SFIXED32,
- ::google::protobuf::internal::WireFormatLite::TYPE_SFIXED32,
- 0 >,
- ::google::protobuf::Map< ::google::protobuf::int32, ::google::protobuf::int32 > > parser(&map_sfixed32_sfixed32_);
- DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
- input, &parser));
- } else {
- goto handle_unusual;
- }
- break;
- }
- // map<sfixed64, sfixed64> map_sfixed64_sfixed64 = 10;
- case 10: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(82u /* 82 & 0xFF */)) {
- TestMap_MapSfixed64Sfixed64Entry_DoNotUse::Parser< ::google::protobuf::internal::MapField<
- TestMap_MapSfixed64Sfixed64Entry_DoNotUse,
- ::google::protobuf::int64, ::google::protobuf::int64,
- ::google::protobuf::internal::WireFormatLite::TYPE_SFIXED64,
- ::google::protobuf::internal::WireFormatLite::TYPE_SFIXED64,
- 0 >,
- ::google::protobuf::Map< ::google::protobuf::int64, ::google::protobuf::int64 > > parser(&map_sfixed64_sfixed64_);
- DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
- input, &parser));
- } else {
- goto handle_unusual;
- }
- break;
- }
- // map<int32, float> map_int32_float = 11;
- case 11: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(90u /* 90 & 0xFF */)) {
- TestMap_MapInt32FloatEntry_DoNotUse::Parser< ::google::protobuf::internal::MapField<
- TestMap_MapInt32FloatEntry_DoNotUse,
- ::google::protobuf::int32, float,
- ::google::protobuf::internal::WireFormatLite::TYPE_INT32,
- ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT,
- 0 >,
- ::google::protobuf::Map< ::google::protobuf::int32, float > > parser(&map_int32_float_);
- DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
- input, &parser));
- } else {
- goto handle_unusual;
- }
- break;
- }
- // map<int32, double> map_int32_double = 12;
- case 12: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(98u /* 98 & 0xFF */)) {
- TestMap_MapInt32DoubleEntry_DoNotUse::Parser< ::google::protobuf::internal::MapField<
- TestMap_MapInt32DoubleEntry_DoNotUse,
- ::google::protobuf::int32, double,
- ::google::protobuf::internal::WireFormatLite::TYPE_INT32,
- ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE,
- 0 >,
- ::google::protobuf::Map< ::google::protobuf::int32, double > > parser(&map_int32_double_);
- DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
- input, &parser));
- } else {
- goto handle_unusual;
- }
- break;
- }
- // map<bool, bool> map_bool_bool = 13;
- case 13: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(106u /* 106 & 0xFF */)) {
- TestMap_MapBoolBoolEntry_DoNotUse::Parser< ::google::protobuf::internal::MapField<
- TestMap_MapBoolBoolEntry_DoNotUse,
- bool, bool,
- ::google::protobuf::internal::WireFormatLite::TYPE_BOOL,
- ::google::protobuf::internal::WireFormatLite::TYPE_BOOL,
- 0 >,
- ::google::protobuf::Map< bool, bool > > parser(&map_bool_bool_);
- DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
- input, &parser));
- } else {
- goto handle_unusual;
- }
- break;
- }
- // map<string, string> map_string_string = 14;
- case 14: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(114u /* 114 & 0xFF */)) {
- TestMap_MapStringStringEntry_DoNotUse::Parser< ::google::protobuf::internal::MapField<
- TestMap_MapStringStringEntry_DoNotUse,
- ::std::string, ::std::string,
- ::google::protobuf::internal::WireFormatLite::TYPE_STRING,
- ::google::protobuf::internal::WireFormatLite::TYPE_STRING,
- 0 >,
- ::google::protobuf::Map< ::std::string, ::std::string > > parser(&map_string_string_);
- DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
- input, &parser));
- DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
- parser.key().data(), static_cast<int>(parser.key().length()),
- ::google::protobuf::internal::WireFormatLite::PARSE,
- "protobuf_unittest.TestMap.MapStringStringEntry.key"));
- DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
- parser.value().data(), static_cast<int>(parser.value().length()),
- ::google::protobuf::internal::WireFormatLite::PARSE,
- "protobuf_unittest.TestMap.MapStringStringEntry.value"));
- } else {
- goto handle_unusual;
- }
- break;
- }
- // map<int32, bytes> map_int32_bytes = 15;
- case 15: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(122u /* 122 & 0xFF */)) {
- TestMap_MapInt32BytesEntry_DoNotUse::Parser< ::google::protobuf::internal::MapField<
- TestMap_MapInt32BytesEntry_DoNotUse,
- ::google::protobuf::int32, ::std::string,
- ::google::protobuf::internal::WireFormatLite::TYPE_INT32,
- ::google::protobuf::internal::WireFormatLite::TYPE_BYTES,
- 0 >,
- ::google::protobuf::Map< ::google::protobuf::int32, ::std::string > > parser(&map_int32_bytes_);
- DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
- input, &parser));
- } else {
- goto handle_unusual;
- }
- break;
- }
- // map<int32, .protobuf_unittest.MapEnum> map_int32_enum = 16;
- case 16: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(130u /* 130 & 0xFF */)) {
- TestMap_MapInt32EnumEntry_DoNotUse::Parser< ::google::protobuf::internal::MapField<
- TestMap_MapInt32EnumEntry_DoNotUse,
- ::google::protobuf::int32, ::protobuf_unittest::MapEnum,
- ::google::protobuf::internal::WireFormatLite::TYPE_INT32,
- ::google::protobuf::internal::WireFormatLite::TYPE_ENUM,
- 0 >,
- ::google::protobuf::Map< ::google::protobuf::int32, ::protobuf_unittest::MapEnum > > parser(&map_int32_enum_);
- DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
- input, &parser));
- } else {
- goto handle_unusual;
- }
- break;
- }
- // map<int32, .protobuf_unittest.ForeignMessage> map_int32_foreign_message = 17;
- case 17: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(138u /* 138 & 0xFF */)) {
- TestMap_MapInt32ForeignMessageEntry_DoNotUse::Parser< ::google::protobuf::internal::MapField<
- TestMap_MapInt32ForeignMessageEntry_DoNotUse,
- ::google::protobuf::int32, ::protobuf_unittest::ForeignMessage,
- ::google::protobuf::internal::WireFormatLite::TYPE_INT32,
- ::google::protobuf::internal::WireFormatLite::TYPE_MESSAGE,
- 0 >,
- ::google::protobuf::Map< ::google::protobuf::int32, ::protobuf_unittest::ForeignMessage > > parser(&map_int32_foreign_message_);
- DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
- input, &parser));
- } else {
- goto handle_unusual;
- }
- break;
- }
- // map<string, .protobuf_unittest.ForeignMessage> map_string_foreign_message = 18;
- case 18: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(146u /* 146 & 0xFF */)) {
- TestMap_MapStringForeignMessageEntry_DoNotUse::Parser< ::google::protobuf::internal::MapField<
- TestMap_MapStringForeignMessageEntry_DoNotUse,
- ::std::string, ::protobuf_unittest::ForeignMessage,
- ::google::protobuf::internal::WireFormatLite::TYPE_STRING,
- ::google::protobuf::internal::WireFormatLite::TYPE_MESSAGE,
- 0 >,
- ::google::protobuf::Map< ::std::string, ::protobuf_unittest::ForeignMessage > > parser(&map_string_foreign_message_);
- DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
- input, &parser));
- DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
- parser.key().data(), static_cast<int>(parser.key().length()),
- ::google::protobuf::internal::WireFormatLite::PARSE,
- "protobuf_unittest.TestMap.MapStringForeignMessageEntry.key"));
- } else {
- goto handle_unusual;
- }
- break;
- }
- // map<int32, .protobuf_unittest.TestAllTypes> map_int32_all_types = 19;
- case 19: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(154u /* 154 & 0xFF */)) {
- TestMap_MapInt32AllTypesEntry_DoNotUse::Parser< ::google::protobuf::internal::MapField<
- TestMap_MapInt32AllTypesEntry_DoNotUse,
- ::google::protobuf::int32, ::protobuf_unittest::TestAllTypes,
- ::google::protobuf::internal::WireFormatLite::TYPE_INT32,
- ::google::protobuf::internal::WireFormatLite::TYPE_MESSAGE,
- 0 >,
- ::google::protobuf::Map< ::google::protobuf::int32, ::protobuf_unittest::TestAllTypes > > parser(&map_int32_all_types_);
- DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
- input, &parser));
- } else {
- goto handle_unusual;
- }
- break;
- }
- default: {
- handle_unusual:
- if (tag == 0) {
- goto success;
- }
- DO_(::google::protobuf::internal::WireFormat::SkipField(
- input, tag, _internal_metadata_.mutable_unknown_fields()));
- break;
- }
- }
- }
- success:
- // @@protoc_insertion_point(parse_success:protobuf_unittest.TestMap)
- return true;
- failure:
- // @@protoc_insertion_point(parse_failure:protobuf_unittest.TestMap)
- return false;
- #undef DO_
- }
- void TestMap::SerializeWithCachedSizes(
- ::google::protobuf::io::CodedOutputStream* output) const {
- // @@protoc_insertion_point(serialize_start:protobuf_unittest.TestMap)
- ::google::protobuf::uint32 cached_has_bits = 0;
- (void) cached_has_bits;
- // map<int32, int32> map_int32_int32 = 1;
- if (!this->map_int32_int32().empty()) {
- typedef ::google::protobuf::Map< ::google::protobuf::int32, ::google::protobuf::int32 >::const_pointer
- ConstPtr;
- typedef ::google::protobuf::internal::SortItem< ::google::protobuf::int32, ConstPtr > SortItem;
- typedef ::google::protobuf::internal::CompareByFirstField<SortItem> Less;
- if (output->IsSerializationDeterministic() &&
- this->map_int32_int32().size() > 1) {
- ::std::unique_ptr<SortItem[]> items(
- new SortItem[this->map_int32_int32().size()]);
- typedef ::google::protobuf::Map< ::google::protobuf::int32, ::google::protobuf::int32 >::size_type size_type;
- size_type n = 0;
- for (::google::protobuf::Map< ::google::protobuf::int32, ::google::protobuf::int32 >::const_iterator
- it = this->map_int32_int32().begin();
- it != this->map_int32_int32().end(); ++it, ++n) {
- items[static_cast<ptrdiff_t>(n)] = SortItem(&*it);
- }
- ::std::sort(&items[0], &items[static_cast<ptrdiff_t>(n)], Less());
- ::std::unique_ptr<TestMap_MapInt32Int32Entry_DoNotUse> entry;
- for (size_type i = 0; i < n; i++) {
- entry.reset(map_int32_int32_.NewEntryWrapper(
- items[static_cast<ptrdiff_t>(i)].second->first, items[static_cast<ptrdiff_t>(i)].second->second));
- ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
- 1, *entry, output);
- if (entry->GetArena() != NULL) {
- entry.release();
- }
- }
- } else {
- ::std::unique_ptr<TestMap_MapInt32Int32Entry_DoNotUse> entry;
- for (::google::protobuf::Map< ::google::protobuf::int32, ::google::protobuf::int32 >::const_iterator
- it = this->map_int32_int32().begin();
- it != this->map_int32_int32().end(); ++it) {
- entry.reset(map_int32_int32_.NewEntryWrapper(
- it->first, it->second));
- ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
- 1, *entry, output);
- if (entry->GetArena() != NULL) {
- entry.release();
- }
- }
- }
- }
- // map<int64, int64> map_int64_int64 = 2;
- if (!this->map_int64_int64().empty()) {
- typedef ::google::protobuf::Map< ::google::protobuf::int64, ::google::protobuf::int64 >::const_pointer
- ConstPtr;
- typedef ::google::protobuf::internal::SortItem< ::google::protobuf::int64, ConstPtr > SortItem;
- typedef ::google::protobuf::internal::CompareByFirstField<SortItem> Less;
- if (output->IsSerializationDeterministic() &&
- this->map_int64_int64().size() > 1) {
- ::std::unique_ptr<SortItem[]> items(
- new SortItem[this->map_int64_int64().size()]);
- typedef ::google::protobuf::Map< ::google::protobuf::int64, ::google::protobuf::int64 >::size_type size_type;
- size_type n = 0;
- for (::google::protobuf::Map< ::google::protobuf::int64, ::google::protobuf::int64 >::const_iterator
- it = this->map_int64_int64().begin();
- it != this->map_int64_int64().end(); ++it, ++n) {
- items[static_cast<ptrdiff_t>(n)] = SortItem(&*it);
- }
- ::std::sort(&items[0], &items[static_cast<ptrdiff_t>(n)], Less());
- ::std::unique_ptr<TestMap_MapInt64Int64Entry_DoNotUse> entry;
- for (size_type i = 0; i < n; i++) {
- entry.reset(map_int64_int64_.NewEntryWrapper(
- items[static_cast<ptrdiff_t>(i)].second->first, items[static_cast<ptrdiff_t>(i)].second->second));
- ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
- 2, *entry, output);
- if (entry->GetArena() != NULL) {
- entry.release();
- }
- }
- } else {
- ::std::unique_ptr<TestMap_MapInt64Int64Entry_DoNotUse> entry;
- for (::google::protobuf::Map< ::google::protobuf::int64, ::google::protobuf::int64 >::const_iterator
- it = this->map_int64_int64().begin();
- it != this->map_int64_int64().end(); ++it) {
- entry.reset(map_int64_int64_.NewEntryWrapper(
- it->first, it->second));
- ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
- 2, *entry, output);
- if (entry->GetArena() != NULL) {
- entry.release();
- }
- }
- }
- }
- // map<uint32, uint32> map_uint32_uint32 = 3;
- if (!this->map_uint32_uint32().empty()) {
- typedef ::google::protobuf::Map< ::google::protobuf::uint32, ::google::protobuf::uint32 >::const_pointer
- ConstPtr;
- typedef ::google::protobuf::internal::SortItem< ::google::protobuf::uint32, ConstPtr > SortItem;
- typedef ::google::protobuf::internal::CompareByFirstField<SortItem> Less;
- if (output->IsSerializationDeterministic() &&
- this->map_uint32_uint32().size() > 1) {
- ::std::unique_ptr<SortItem[]> items(
- new SortItem[this->map_uint32_uint32().size()]);
- typedef ::google::protobuf::Map< ::google::protobuf::uint32, ::google::protobuf::uint32 >::size_type size_type;
- size_type n = 0;
- for (::google::protobuf::Map< ::google::protobuf::uint32, ::google::protobuf::uint32 >::const_iterator
- it = this->map_uint32_uint32().begin();
- it != this->map_uint32_uint32().end(); ++it, ++n) {
- items[static_cast<ptrdiff_t>(n)] = SortItem(&*it);
- }
- ::std::sort(&items[0], &items[static_cast<ptrdiff_t>(n)], Less());
- ::std::unique_ptr<TestMap_MapUint32Uint32Entry_DoNotUse> entry;
- for (size_type i = 0; i < n; i++) {
- entry.reset(map_uint32_uint32_.NewEntryWrapper(
- items[static_cast<ptrdiff_t>(i)].second->first, items[static_cast<ptrdiff_t>(i)].second->second));
- ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
- 3, *entry, output);
- if (entry->GetArena() != NULL) {
- entry.release();
- }
- }
- } else {
- ::std::unique_ptr<TestMap_MapUint32Uint32Entry_DoNotUse> entry;
- for (::google::protobuf::Map< ::google::protobuf::uint32, ::google::protobuf::uint32 >::const_iterator
- it = this->map_uint32_uint32().begin();
- it != this->map_uint32_uint32().end(); ++it) {
- entry.reset(map_uint32_uint32_.NewEntryWrapper(
- it->first, it->second));
- ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
- 3, *entry, output);
- if (entry->GetArena() != NULL) {
- entry.release();
- }
- }
- }
- }
- // map<uint64, uint64> map_uint64_uint64 = 4;
- if (!this->map_uint64_uint64().empty()) {
- typedef ::google::protobuf::Map< ::google::protobuf::uint64, ::google::protobuf::uint64 >::const_pointer
- ConstPtr;
- typedef ::google::protobuf::internal::SortItem< ::google::protobuf::uint64, ConstPtr > SortItem;
- typedef ::google::protobuf::internal::CompareByFirstField<SortItem> Less;
- if (output->IsSerializationDeterministic() &&
- this->map_uint64_uint64().size() > 1) {
- ::std::unique_ptr<SortItem[]> items(
- new SortItem[this->map_uint64_uint64().size()]);
- typedef ::google::protobuf::Map< ::google::protobuf::uint64, ::google::protobuf::uint64 >::size_type size_type;
- size_type n = 0;
- for (::google::protobuf::Map< ::google::protobuf::uint64, ::google::protobuf::uint64 >::const_iterator
- it = this->map_uint64_uint64().begin();
- it != this->map_uint64_uint64().end(); ++it, ++n) {
- items[static_cast<ptrdiff_t>(n)] = SortItem(&*it);
- }
- ::std::sort(&items[0], &items[static_cast<ptrdiff_t>(n)], Less());
- ::std::unique_ptr<TestMap_MapUint64Uint64Entry_DoNotUse> entry;
- for (size_type i = 0; i < n; i++) {
- entry.reset(map_uint64_uint64_.NewEntryWrapper(
- items[static_cast<ptrdiff_t>(i)].second->first, items[static_cast<ptrdiff_t>(i)].second->second));
- ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
- 4, *entry, output);
- if (entry->GetArena() != NULL) {
- entry.release();
- }
- }
- } else {
- ::std::unique_ptr<TestMap_MapUint64Uint64Entry_DoNotUse> entry;
- for (::google::protobuf::Map< ::google::protobuf::uint64, ::google::protobuf::uint64 >::const_iterator
- it = this->map_uint64_uint64().begin();
- it != this->map_uint64_uint64().end(); ++it) {
- entry.reset(map_uint64_uint64_.NewEntryWrapper(
- it->first, it->second));
- ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
- 4, *entry, output);
- if (entry->GetArena() != NULL) {
- entry.release();
- }
- }
- }
- }
- // map<sint32, sint32> map_sint32_sint32 = 5;
- if (!this->map_sint32_sint32().empty()) {
- typedef ::google::protobuf::Map< ::google::protobuf::int32, ::google::protobuf::int32 >::const_pointer
- ConstPtr;
- typedef ::google::protobuf::internal::SortItem< ::google::protobuf::int32, ConstPtr > SortItem;
- typedef ::google::protobuf::internal::CompareByFirstField<SortItem> Less;
- if (output->IsSerializationDeterministic() &&
- this->map_sint32_sint32().size() > 1) {
- ::std::unique_ptr<SortItem[]> items(
- new SortItem[this->map_sint32_sint32().size()]);
- typedef ::google::protobuf::Map< ::google::protobuf::int32, ::google::protobuf::int32 >::size_type size_type;
- size_type n = 0;
- for (::google::protobuf::Map< ::google::protobuf::int32, ::google::protobuf::int32 >::const_iterator
- it = this->map_sint32_sint32().begin();
- it != this->map_sint32_sint32().end(); ++it, ++n) {
- items[static_cast<ptrdiff_t>(n)] = SortItem(&*it);
- }
- ::std::sort(&items[0], &items[static_cast<ptrdiff_t>(n)], Less());
- ::std::unique_ptr<TestMap_MapSint32Sint32Entry_DoNotUse> entry;
- for (size_type i = 0; i < n; i++) {
- entry.reset(map_sint32_sint32_.NewEntryWrapper(
- items[static_cast<ptrdiff_t>(i)].second->first, items[static_cast<ptrdiff_t>(i)].second->second));
- ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
- 5, *entry, output);
- if (entry->GetArena() != NULL) {
- entry.release();
- }
- }
- } else {
- ::std::unique_ptr<TestMap_MapSint32Sint32Entry_DoNotUse> entry;
- for (::google::protobuf::Map< ::google::protobuf::int32, ::google::protobuf::int32 >::const_iterator
- it = this->map_sint32_sint32().begin();
- it != this->map_sint32_sint32().end(); ++it) {
- entry.reset(map_sint32_sint32_.NewEntryWrapper(
- it->first, it->second));
- ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
- 5, *entry, output);
- if (entry->GetArena() != NULL) {
- entry.release();
- }
- }
- }
- }
- // map<sint64, sint64> map_sint64_sint64 = 6;
- if (!this->map_sint64_sint64().empty()) {
- typedef ::google::protobuf::Map< ::google::protobuf::int64, ::google::protobuf::int64 >::const_pointer
- ConstPtr;
- typedef ::google::protobuf::internal::SortItem< ::google::protobuf::int64, ConstPtr > SortItem;
- typedef ::google::protobuf::internal::CompareByFirstField<SortItem> Less;
- if (output->IsSerializationDeterministic() &&
- this->map_sint64_sint64().size() > 1) {
- ::std::unique_ptr<SortItem[]> items(
- new SortItem[this->map_sint64_sint64().size()]);
- typedef ::google::protobuf::Map< ::google::protobuf::int64, ::google::protobuf::int64 >::size_type size_type;
- size_type n = 0;
- for (::google::protobuf::Map< ::google::protobuf::int64, ::google::protobuf::int64 >::const_iterator
- it = this->map_sint64_sint64().begin();
- it != this->map_sint64_sint64().end(); ++it, ++n) {
- items[static_cast<ptrdiff_t>(n)] = SortItem(&*it);
- }
- ::std::sort(&items[0], &items[static_cast<ptrdiff_t>(n)], Less());
- ::std::unique_ptr<TestMap_MapSint64Sint64Entry_DoNotUse> entry;
- for (size_type i = 0; i < n; i++) {
- entry.reset(map_sint64_sint64_.NewEntryWrapper(
- items[static_cast<ptrdiff_t>(i)].second->first, items[static_cast<ptrdiff_t>(i)].second->second));
- ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
- 6, *entry, output);
- if (entry->GetArena() != NULL) {
- entry.release();
- }
- }
- } else {
- ::std::unique_ptr<TestMap_MapSint64Sint64Entry_DoNotUse> entry;
- for (::google::protobuf::Map< ::google::protobuf::int64, ::google::protobuf::int64 >::const_iterator
- it = this->map_sint64_sint64().begin();
- it != this->map_sint64_sint64().end(); ++it) {
- entry.reset(map_sint64_sint64_.NewEntryWrapper(
- it->first, it->second));
- ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
- 6, *entry, output);
- if (entry->GetArena() != NULL) {
- entry.release();
- }
- }
- }
- }
- // map<fixed32, fixed32> map_fixed32_fixed32 = 7;
- if (!this->map_fixed32_fixed32().empty()) {
- typedef ::google::protobuf::Map< ::google::protobuf::uint32, ::google::protobuf::uint32 >::const_pointer
- ConstPtr;
- typedef ::google::protobuf::internal::SortItem< ::google::protobuf::uint32, ConstPtr > SortItem;
- typedef ::google::protobuf::internal::CompareByFirstField<SortItem> Less;
- if (output->IsSerializationDeterministic() &&
- this->map_fixed32_fixed32().size() > 1) {
- ::std::unique_ptr<SortItem[]> items(
- new SortItem[this->map_fixed32_fixed32().size()]);
- typedef ::google::protobuf::Map< ::google::protobuf::uint32, ::google::protobuf::uint32 >::size_type size_type;
- size_type n = 0;
- for (::google::protobuf::Map< ::google::protobuf::uint32, ::google::protobuf::uint32 >::const_iterator
- it = this->map_fixed32_fixed32().begin();
- it != this->map_fixed32_fixed32().end(); ++it, ++n) {
- items[static_cast<ptrdiff_t>(n)] = SortItem(&*it);
- }
- ::std::sort(&items[0], &items[static_cast<ptrdiff_t>(n)], Less());
- ::std::unique_ptr<TestMap_MapFixed32Fixed32Entry_DoNotUse> entry;
- for (size_type i = 0; i < n; i++) {
- entry.reset(map_fixed32_fixed32_.NewEntryWrapper(
- items[static_cast<ptrdiff_t>(i)].second->first, items[static_cast<ptrdiff_t>(i)].second->second));
- ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
- 7, *entry, output);
- if (entry->GetArena() != NULL) {
- entry.release();
- }
- }
- } else {
- ::std::unique_ptr<TestMap_MapFixed32Fixed32Entry_DoNotUse> entry;
- for (::google::protobuf::Map< ::google::protobuf::uint32, ::google::protobuf::uint32 >::const_iterator
- it = this->map_fixed32_fixed32().begin();
- it != this->map_fixed32_fixed32().end(); ++it) {
- entry.reset(map_fixed32_fixed32_.NewEntryWrapper(
- it->first, it->second));
- ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
- 7, *entry, output);
- if (entry->GetArena() != NULL) {
- entry.release();
- }
- }
- }
- }
- // map<fixed64, fixed64> map_fixed64_fixed64 = 8;
- if (!this->map_fixed64_fixed64().empty()) {
- typedef ::google::protobuf::Map< ::google::protobuf::uint64, ::google::protobuf::uint64 >::const_pointer
- ConstPtr;
- typedef ::google::protobuf::internal::SortItem< ::google::protobuf::uint64, ConstPtr > SortItem;
- typedef ::google::protobuf::internal::CompareByFirstField<SortItem> Less;
- if (output->IsSerializationDeterministic() &&
- this->map_fixed64_fixed64().size() > 1) {
- ::std::unique_ptr<SortItem[]> items(
- new SortItem[this->map_fixed64_fixed64().size()]);
- typedef ::google::protobuf::Map< ::google::protobuf::uint64, ::google::protobuf::uint64 >::size_type size_type;
- size_type n = 0;
- for (::google::protobuf::Map< ::google::protobuf::uint64, ::google::protobuf::uint64 >::const_iterator
- it = this->map_fixed64_fixed64().begin();
- it != this->map_fixed64_fixed64().end(); ++it, ++n) {
- items[static_cast<ptrdiff_t>(n)] = SortItem(&*it);
- }
- ::std::sort(&items[0], &items[static_cast<ptrdiff_t>(n)], Less());
- ::std::unique_ptr<TestMap_MapFixed64Fixed64Entry_DoNotUse> entry;
- for (size_type i = 0; i < n; i++) {
- entry.reset(map_fixed64_fixed64_.NewEntryWrapper(
- items[static_cast<ptrdiff_t>(i)].second->first, items[static_cast<ptrdiff_t>(i)].second->second));
- ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
- 8, *entry, output);
- if (entry->GetArena() != NULL) {
- entry.release();
- }
- }
- } else {
- ::std::unique_ptr<TestMap_MapFixed64Fixed64Entry_DoNotUse> entry;
- for (::google::protobuf::Map< ::google::protobuf::uint64, ::google::protobuf::uint64 >::const_iterator
- it = this->map_fixed64_fixed64().begin();
- it != this->map_fixed64_fixed64().end(); ++it) {
- entry.reset(map_fixed64_fixed64_.NewEntryWrapper(
- it->first, it->second));
- ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
- 8, *entry, output);
- if (entry->GetArena() != NULL) {
- entry.release();
- }
- }
- }
- }
- // map<sfixed32, sfixed32> map_sfixed32_sfixed32 = 9;
- if (!this->map_sfixed32_sfixed32().empty()) {
- typedef ::google::protobuf::Map< ::google::protobuf::int32, ::google::protobuf::int32 >::const_pointer
- ConstPtr;
- typedef ::google::protobuf::internal::SortItem< ::google::protobuf::int32, ConstPtr > SortItem;
- typedef ::google::protobuf::internal::CompareByFirstField<SortItem> Less;
- if (output->IsSerializationDeterministic() &&
- this->map_sfixed32_sfixed32().size() > 1) {
- ::std::unique_ptr<SortItem[]> items(
- new SortItem[this->map_sfixed32_sfixed32().size()]);
- typedef ::google::protobuf::Map< ::google::protobuf::int32, ::google::protobuf::int32 >::size_type size_type;
- size_type n = 0;
- for (::google::protobuf::Map< ::google::protobuf::int32, ::google::protobuf::int32 >::const_iterator
- it = this->map_sfixed32_sfixed32().begin();
- it != this->map_sfixed32_sfixed32().end(); ++it, ++n) {
- items[static_cast<ptrdiff_t>(n)] = SortItem(&*it);
- }
- ::std::sort(&items[0], &items[static_cast<ptrdiff_t>(n)], Less());
- ::std::unique_ptr<TestMap_MapSfixed32Sfixed32Entry_DoNotUse> entry;
- for (size_type i = 0; i < n; i++) {
- entry.reset(map_sfixed32_sfixed32_.NewEntryWrapper(
- items[static_cast<ptrdiff_t>(i)].second->first, items[static_cast<ptrdiff_t>(i)].second->second));
- ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
- 9, *entry, output);
- if (entry->GetArena() != NULL) {
- entry.release();
- }
- }
- } else {
- ::std::unique_ptr<TestMap_MapSfixed32Sfixed32Entry_DoNotUse> entry;
- for (::google::protobuf::Map< ::google::protobuf::int32, ::google::protobuf::int32 >::const_iterator
- it = this->map_sfixed32_sfixed32().begin();
- it != this->map_sfixed32_sfixed32().end(); ++it) {
- entry.reset(map_sfixed32_sfixed32_.NewEntryWrapper(
- it->first, it->second));
- ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
- 9, *entry, output);
- if (entry->GetArena() != NULL) {
- entry.release();
- }
- }
- }
- }
- // map<sfixed64, sfixed64> map_sfixed64_sfixed64 = 10;
- if (!this->map_sfixed64_sfixed64().empty()) {
- typedef ::google::protobuf::Map< ::google::protobuf::int64, ::google::protobuf::int64 >::const_pointer
- ConstPtr;
- typedef ::google::protobuf::internal::SortItem< ::google::protobuf::int64, ConstPtr > SortItem;
- typedef ::google::protobuf::internal::CompareByFirstField<SortItem> Less;
- if (output->IsSerializationDeterministic() &&
- this->map_sfixed64_sfixed64().size() > 1) {
- ::std::unique_ptr<SortItem[]> items(
- new SortItem[this->map_sfixed64_sfixed64().size()]);
- typedef ::google::protobuf::Map< ::google::protobuf::int64, ::google::protobuf::int64 >::size_type size_type;
- size_type n = 0;
- for (::google::protobuf::Map< ::google::protobuf::int64, ::google::protobuf::int64 >::const_iterator
- it = this->map_sfixed64_sfixed64().begin();
- it != this->map_sfixed64_sfixed64().end(); ++it, ++n) {
- items[static_cast<ptrdiff_t>(n)] = SortItem(&*it);
- }
- ::std::sort(&items[0], &items[static_cast<ptrdiff_t>(n)], Less());
- ::std::unique_ptr<TestMap_MapSfixed64Sfixed64Entry_DoNotUse> entry;
- for (size_type i = 0; i < n; i++) {
- entry.reset(map_sfixed64_sfixed64_.NewEntryWrapper(
- items[static_cast<ptrdiff_t>(i)].second->first, items[static_cast<ptrdiff_t>(i)].second->second));
- ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
- 10, *entry, output);
- if (entry->GetArena() != NULL) {
- entry.release();
- }
- }
- } else {
- ::std::unique_ptr<TestMap_MapSfixed64Sfixed64Entry_DoNotUse> entry;
- for (::google::protobuf::Map< ::google::protobuf::int64, ::google::protobuf::int64 >::const_iterator
- it = this->map_sfixed64_sfixed64().begin();
- it != this->map_sfixed64_sfixed64().end(); ++it) {
- entry.reset(map_sfixed64_sfixed64_.NewEntryWrapper(
- it->first, it->second));
- ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
- 10, *entry, output);
- if (entry->GetArena() != NULL) {
- entry.release();
- }
- }
- }
- }
- // map<int32, float> map_int32_float = 11;
- if (!this->map_int32_float().empty()) {
- typedef ::google::protobuf::Map< ::google::protobuf::int32, float >::const_pointer
- ConstPtr;
- typedef ::google::protobuf::internal::SortItem< ::google::protobuf::int32, ConstPtr > SortItem;
- typedef ::google::protobuf::internal::CompareByFirstField<SortItem> Less;
- if (output->IsSerializationDeterministic() &&
- this->map_int32_float().size() > 1) {
- ::std::unique_ptr<SortItem[]> items(
- new SortItem[this->map_int32_float().size()]);
- typedef ::google::protobuf::Map< ::google::protobuf::int32, float >::size_type size_type;
- size_type n = 0;
- for (::google::protobuf::Map< ::google::protobuf::int32, float >::const_iterator
- it = this->map_int32_float().begin();
- it != this->map_int32_float().end(); ++it, ++n) {
- items[static_cast<ptrdiff_t>(n)] = SortItem(&*it);
- }
- ::std::sort(&items[0], &items[static_cast<ptrdiff_t>(n)], Less());
- ::std::unique_ptr<TestMap_MapInt32FloatEntry_DoNotUse> entry;
- for (size_type i = 0; i < n; i++) {
- entry.reset(map_int32_float_.NewEntryWrapper(
- items[static_cast<ptrdiff_t>(i)].second->first, items[static_cast<ptrdiff_t>(i)].second->second));
- ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
- 11, *entry, output);
- if (entry->GetArena() != NULL) {
- entry.release();
- }
- }
- } else {
- ::std::unique_ptr<TestMap_MapInt32FloatEntry_DoNotUse> entry;
- for (::google::protobuf::Map< ::google::protobuf::int32, float >::const_iterator
- it = this->map_int32_float().begin();
- it != this->map_int32_float().end(); ++it) {
- entry.reset(map_int32_float_.NewEntryWrapper(
- it->first, it->second));
- ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
- 11, *entry, output);
- if (entry->GetArena() != NULL) {
- entry.release();
- }
- }
- }
- }
- // map<int32, double> map_int32_double = 12;
- if (!this->map_int32_double().empty()) {
- typedef ::google::protobuf::Map< ::google::protobuf::int32, double >::const_pointer
- ConstPtr;
- typedef ::google::protobuf::internal::SortItem< ::google::protobuf::int32, ConstPtr > SortItem;
- typedef ::google::protobuf::internal::CompareByFirstField<SortItem> Less;
- if (output->IsSerializationDeterministic() &&
- this->map_int32_double().size() > 1) {
- ::std::unique_ptr<SortItem[]> items(
- new SortItem[this->map_int32_double().size()]);
- typedef ::google::protobuf::Map< ::google::protobuf::int32, double >::size_type size_type;
- size_type n = 0;
- for (::google::protobuf::Map< ::google::protobuf::int32, double >::const_iterator
- it = this->map_int32_double().begin();
- it != this->map_int32_double().end(); ++it, ++n) {
- items[static_cast<ptrdiff_t>(n)] = SortItem(&*it);
- }
- ::std::sort(&items[0], &items[static_cast<ptrdiff_t>(n)], Less());
- ::std::unique_ptr<TestMap_MapInt32DoubleEntry_DoNotUse> entry;
- for (size_type i = 0; i < n; i++) {
- entry.reset(map_int32_double_.NewEntryWrapper(
- items[static_cast<ptrdiff_t>(i)].second->first, items[static_cast<ptrdiff_t>(i)].second->second));
- ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
- 12, *entry, output);
- if (entry->GetArena() != NULL) {
- entry.release();
- }
- }
- } else {
- ::std::unique_ptr<TestMap_MapInt32DoubleEntry_DoNotUse> entry;
- for (::google::protobuf::Map< ::google::protobuf::int32, double >::const_iterator
- it = this->map_int32_double().begin();
- it != this->map_int32_double().end(); ++it) {
- entry.reset(map_int32_double_.NewEntryWrapper(
- it->first, it->second));
- ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
- 12, *entry, output);
- if (entry->GetArena() != NULL) {
- entry.release();
- }
- }
- }
- }
- // map<bool, bool> map_bool_bool = 13;
- if (!this->map_bool_bool().empty()) {
- typedef ::google::protobuf::Map< bool, bool >::const_pointer
- ConstPtr;
- typedef ::google::protobuf::internal::SortItem< bool, ConstPtr > SortItem;
- typedef ::google::protobuf::internal::CompareByFirstField<SortItem> Less;
- if (output->IsSerializationDeterministic() &&
- this->map_bool_bool().size() > 1) {
- ::std::unique_ptr<SortItem[]> items(
- new SortItem[this->map_bool_bool().size()]);
- typedef ::google::protobuf::Map< bool, bool >::size_type size_type;
- size_type n = 0;
- for (::google::protobuf::Map< bool, bool >::const_iterator
- it = this->map_bool_bool().begin();
- it != this->map_bool_bool().end(); ++it, ++n) {
- items[static_cast<ptrdiff_t>(n)] = SortItem(&*it);
- }
- ::std::sort(&items[0], &items[static_cast<ptrdiff_t>(n)], Less());
- ::std::unique_ptr<TestMap_MapBoolBoolEntry_DoNotUse> entry;
- for (size_type i = 0; i < n; i++) {
- entry.reset(map_bool_bool_.NewEntryWrapper(
- items[static_cast<ptrdiff_t>(i)].second->first, items[static_cast<ptrdiff_t>(i)].second->second));
- ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
- 13, *entry, output);
- if (entry->GetArena() != NULL) {
- entry.release();
- }
- }
- } else {
- ::std::unique_ptr<TestMap_MapBoolBoolEntry_DoNotUse> entry;
- for (::google::protobuf::Map< bool, bool >::const_iterator
- it = this->map_bool_bool().begin();
- it != this->map_bool_bool().end(); ++it) {
- entry.reset(map_bool_bool_.NewEntryWrapper(
- it->first, it->second));
- ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
- 13, *entry, output);
- if (entry->GetArena() != NULL) {
- entry.release();
- }
- }
- }
- }
- // map<string, string> map_string_string = 14;
- if (!this->map_string_string().empty()) {
- typedef ::google::protobuf::Map< ::std::string, ::std::string >::const_pointer
- ConstPtr;
- typedef ConstPtr SortItem;
- typedef ::google::protobuf::internal::CompareByDerefFirst<SortItem> Less;
- struct Utf8Check {
- static void Check(ConstPtr p) {
- ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
- p->first.data(), static_cast<int>(p->first.length()),
- ::google::protobuf::internal::WireFormatLite::SERIALIZE,
- "protobuf_unittest.TestMap.MapStringStringEntry.key");
- ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
- p->second.data(), static_cast<int>(p->second.length()),
- ::google::protobuf::internal::WireFormatLite::SERIALIZE,
- "protobuf_unittest.TestMap.MapStringStringEntry.value");
- }
- };
- if (output->IsSerializationDeterministic() &&
- this->map_string_string().size() > 1) {
- ::std::unique_ptr<SortItem[]> items(
- new SortItem[this->map_string_string().size()]);
- typedef ::google::protobuf::Map< ::std::string, ::std::string >::size_type size_type;
- size_type n = 0;
- for (::google::protobuf::Map< ::std::string, ::std::string >::const_iterator
- it = this->map_string_string().begin();
- it != this->map_string_string().end(); ++it, ++n) {
- items[static_cast<ptrdiff_t>(n)] = SortItem(&*it);
- }
- ::std::sort(&items[0], &items[static_cast<ptrdiff_t>(n)], Less());
- ::std::unique_ptr<TestMap_MapStringStringEntry_DoNotUse> entry;
- for (size_type i = 0; i < n; i++) {
- entry.reset(map_string_string_.NewEntryWrapper(
- items[static_cast<ptrdiff_t>(i)]->first, items[static_cast<ptrdiff_t>(i)]->second));
- ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
- 14, *entry, output);
- if (entry->GetArena() != NULL) {
- entry.release();
- }
- Utf8Check::Check(items[static_cast<ptrdiff_t>(i)]);
- }
- } else {
- ::std::unique_ptr<TestMap_MapStringStringEntry_DoNotUse> entry;
- for (::google::protobuf::Map< ::std::string, ::std::string >::const_iterator
- it = this->map_string_string().begin();
- it != this->map_string_string().end(); ++it) {
- entry.reset(map_string_string_.NewEntryWrapper(
- it->first, it->second));
- ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
- 14, *entry, output);
- if (entry->GetArena() != NULL) {
- entry.release();
- }
- Utf8Check::Check(&*it);
- }
- }
- }
- // map<int32, bytes> map_int32_bytes = 15;
- if (!this->map_int32_bytes().empty()) {
- typedef ::google::protobuf::Map< ::google::protobuf::int32, ::std::string >::const_pointer
- ConstPtr;
- typedef ::google::protobuf::internal::SortItem< ::google::protobuf::int32, ConstPtr > SortItem;
- typedef ::google::protobuf::internal::CompareByFirstField<SortItem> Less;
- if (output->IsSerializationDeterministic() &&
- this->map_int32_bytes().size() > 1) {
- ::std::unique_ptr<SortItem[]> items(
- new SortItem[this->map_int32_bytes().size()]);
- typedef ::google::protobuf::Map< ::google::protobuf::int32, ::std::string >::size_type size_type;
- size_type n = 0;
- for (::google::protobuf::Map< ::google::protobuf::int32, ::std::string >::const_iterator
- it = this->map_int32_bytes().begin();
- it != this->map_int32_bytes().end(); ++it, ++n) {
- items[static_cast<ptrdiff_t>(n)] = SortItem(&*it);
- }
- ::std::sort(&items[0], &items[static_cast<ptrdiff_t>(n)], Less());
- ::std::unique_ptr<TestMap_MapInt32BytesEntry_DoNotUse> entry;
- for (size_type i = 0; i < n; i++) {
- entry.reset(map_int32_bytes_.NewEntryWrapper(
- items[static_cast<ptrdiff_t>(i)].second->first, items[static_cast<ptrdiff_t>(i)].second->second));
- ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
- 15, *entry, output);
- if (entry->GetArena() != NULL) {
- entry.release();
- }
- }
- } else {
- ::std::unique_ptr<TestMap_MapInt32BytesEntry_DoNotUse> entry;
- for (::google::protobuf::Map< ::google::protobuf::int32, ::std::string >::const_iterator
- it = this->map_int32_bytes().begin();
- it != this->map_int32_bytes().end(); ++it) {
- entry.reset(map_int32_bytes_.NewEntryWrapper(
- it->first, it->second));
- ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
- 15, *entry, output);
- if (entry->GetArena() != NULL) {
- entry.release();
- }
- }
- }
- }
- // map<int32, .protobuf_unittest.MapEnum> map_int32_enum = 16;
- if (!this->map_int32_enum().empty()) {
- typedef ::google::protobuf::Map< ::google::protobuf::int32, ::protobuf_unittest::MapEnum >::const_pointer
- ConstPtr;
- typedef ::google::protobuf::internal::SortItem< ::google::protobuf::int32, ConstPtr > SortItem;
- typedef ::google::protobuf::internal::CompareByFirstField<SortItem> Less;
- if (output->IsSerializationDeterministic() &&
- this->map_int32_enum().size() > 1) {
- ::std::unique_ptr<SortItem[]> items(
- new SortItem[this->map_int32_enum().size()]);
- typedef ::google::protobuf::Map< ::google::protobuf::int32, ::protobuf_unittest::MapEnum >::size_type size_type;
- size_type n = 0;
- for (::google::protobuf::Map< ::google::protobuf::int32, ::protobuf_unittest::MapEnum >::const_iterator
- it = this->map_int32_enum().begin();
- it != this->map_int32_enum().end(); ++it, ++n) {
- items[static_cast<ptrdiff_t>(n)] = SortItem(&*it);
- }
- ::std::sort(&items[0], &items[static_cast<ptrdiff_t>(n)], Less());
- ::std::unique_ptr<TestMap_MapInt32EnumEntry_DoNotUse> entry;
- for (size_type i = 0; i < n; i++) {
- entry.reset(map_int32_enum_.NewEnumEntryWrapper(
- items[static_cast<ptrdiff_t>(i)].second->first, items[static_cast<ptrdiff_t>(i)].second->second));
- ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
- 16, *entry, output);
- if (entry->GetArena() != NULL) {
- entry.release();
- }
- }
- } else {
- ::std::unique_ptr<TestMap_MapInt32EnumEntry_DoNotUse> entry;
- for (::google::protobuf::Map< ::google::protobuf::int32, ::protobuf_unittest::MapEnum >::const_iterator
- it = this->map_int32_enum().begin();
- it != this->map_int32_enum().end(); ++it) {
- entry.reset(map_int32_enum_.NewEnumEntryWrapper(
- it->first, it->second));
- ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
- 16, *entry, output);
- if (entry->GetArena() != NULL) {
- entry.release();
- }
- }
- }
- }
- // map<int32, .protobuf_unittest.ForeignMessage> map_int32_foreign_message = 17;
- if (!this->map_int32_foreign_message().empty()) {
- typedef ::google::protobuf::Map< ::google::protobuf::int32, ::protobuf_unittest::ForeignMessage >::const_pointer
- ConstPtr;
- typedef ::google::protobuf::internal::SortItem< ::google::protobuf::int32, ConstPtr > SortItem;
- typedef ::google::protobuf::internal::CompareByFirstField<SortItem> Less;
- if (output->IsSerializationDeterministic() &&
- this->map_int32_foreign_message().size() > 1) {
- ::std::unique_ptr<SortItem[]> items(
- new SortItem[this->map_int32_foreign_message().size()]);
- typedef ::google::protobuf::Map< ::google::protobuf::int32, ::protobuf_unittest::ForeignMessage >::size_type size_type;
- size_type n = 0;
- for (::google::protobuf::Map< ::google::protobuf::int32, ::protobuf_unittest::ForeignMessage >::const_iterator
- it = this->map_int32_foreign_message().begin();
- it != this->map_int32_foreign_message().end(); ++it, ++n) {
- items[static_cast<ptrdiff_t>(n)] = SortItem(&*it);
- }
- ::std::sort(&items[0], &items[static_cast<ptrdiff_t>(n)], Less());
- ::std::unique_ptr<TestMap_MapInt32ForeignMessageEntry_DoNotUse> entry;
- for (size_type i = 0; i < n; i++) {
- entry.reset(map_int32_foreign_message_.NewEntryWrapper(
- items[static_cast<ptrdiff_t>(i)].second->first, items[static_cast<ptrdiff_t>(i)].second->second));
- ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
- 17, *entry, output);
- if (entry->GetArena() != NULL) {
- entry.release();
- }
- }
- } else {
- ::std::unique_ptr<TestMap_MapInt32ForeignMessageEntry_DoNotUse> entry;
- for (::google::protobuf::Map< ::google::protobuf::int32, ::protobuf_unittest::ForeignMessage >::const_iterator
- it = this->map_int32_foreign_message().begin();
- it != this->map_int32_foreign_message().end(); ++it) {
- entry.reset(map_int32_foreign_message_.NewEntryWrapper(
- it->first, it->second));
- ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
- 17, *entry, output);
- if (entry->GetArena() != NULL) {
- entry.release();
- }
- }
- }
- }
- // map<string, .protobuf_unittest.ForeignMessage> map_string_foreign_message = 18;
- if (!this->map_string_foreign_message().empty()) {
- typedef ::google::protobuf::Map< ::std::string, ::protobuf_unittest::ForeignMessage >::const_pointer
- ConstPtr;
- typedef ConstPtr SortItem;
- typedef ::google::protobuf::internal::CompareByDerefFirst<SortItem> Less;
- struct Utf8Check {
- static void Check(ConstPtr p) {
- ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
- p->first.data(), static_cast<int>(p->first.length()),
- ::google::protobuf::internal::WireFormatLite::SERIALIZE,
- "protobuf_unittest.TestMap.MapStringForeignMessageEntry.key");
- }
- };
- if (output->IsSerializationDeterministic() &&
- this->map_string_foreign_message().size() > 1) {
- ::std::unique_ptr<SortItem[]> items(
- new SortItem[this->map_string_foreign_message().size()]);
- typedef ::google::protobuf::Map< ::std::string, ::protobuf_unittest::ForeignMessage >::size_type size_type;
- size_type n = 0;
- for (::google::protobuf::Map< ::std::string, ::protobuf_unittest::ForeignMessage >::const_iterator
- it = this->map_string_foreign_message().begin();
- it != this->map_string_foreign_message().end(); ++it, ++n) {
- items[static_cast<ptrdiff_t>(n)] = SortItem(&*it);
- }
- ::std::sort(&items[0], &items[static_cast<ptrdiff_t>(n)], Less());
- ::std::unique_ptr<TestMap_MapStringForeignMessageEntry_DoNotUse> entry;
- for (size_type i = 0; i < n; i++) {
- entry.reset(map_string_foreign_message_.NewEntryWrapper(
- items[static_cast<ptrdiff_t>(i)]->first, items[static_cast<ptrdiff_t>(i)]->second));
- ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
- 18, *entry, output);
- if (entry->GetArena() != NULL) {
- entry.release();
- }
- Utf8Check::Check(items[static_cast<ptrdiff_t>(i)]);
- }
- } else {
- ::std::unique_ptr<TestMap_MapStringForeignMessageEntry_DoNotUse> entry;
- for (::google::protobuf::Map< ::std::string, ::protobuf_unittest::ForeignMessage >::const_iterator
- it = this->map_string_foreign_message().begin();
- it != this->map_string_foreign_message().end(); ++it) {
- entry.reset(map_string_foreign_message_.NewEntryWrapper(
- it->first, it->second));
- ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
- 18, *entry, output);
- if (entry->GetArena() != NULL) {
- entry.release();
- }
- Utf8Check::Check(&*it);
- }
- }
- }
- // map<int32, .protobuf_unittest.TestAllTypes> map_int32_all_types = 19;
- if (!this->map_int32_all_types().empty()) {
- typedef ::google::protobuf::Map< ::google::protobuf::int32, ::protobuf_unittest::TestAllTypes >::const_pointer
- ConstPtr;
- typedef ::google::protobuf::internal::SortItem< ::google::protobuf::int32, ConstPtr > SortItem;
- typedef ::google::protobuf::internal::CompareByFirstField<SortItem> Less;
- if (output->IsSerializationDeterministic() &&
- this->map_int32_all_types().size() > 1) {
- ::std::unique_ptr<SortItem[]> items(
- new SortItem[this->map_int32_all_types().size()]);
- typedef ::google::protobuf::Map< ::google::protobuf::int32, ::protobuf_unittest::TestAllTypes >::size_type size_type;
- size_type n = 0;
- for (::google::protobuf::Map< ::google::protobuf::int32, ::protobuf_unittest::TestAllTypes >::const_iterator
- it = this->map_int32_all_types().begin();
- it != this->map_int32_all_types().end(); ++it, ++n) {
- items[static_cast<ptrdiff_t>(n)] = SortItem(&*it);
- }
- ::std::sort(&items[0], &items[static_cast<ptrdiff_t>(n)], Less());
- ::std::unique_ptr<TestMap_MapInt32AllTypesEntry_DoNotUse> entry;
- for (size_type i = 0; i < n; i++) {
- entry.reset(map_int32_all_types_.NewEntryWrapper(
- items[static_cast<ptrdiff_t>(i)].second->first, items[static_cast<ptrdiff_t>(i)].second->second));
- ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
- 19, *entry, output);
- if (entry->GetArena() != NULL) {
- entry.release();
- }
- }
- } else {
- ::std::unique_ptr<TestMap_MapInt32AllTypesEntry_DoNotUse> entry;
- for (::google::protobuf::Map< ::google::protobuf::int32, ::protobuf_unittest::TestAllTypes >::const_iterator
- it = this->map_int32_all_types().begin();
- it != this->map_int32_all_types().end(); ++it) {
- entry.reset(map_int32_all_types_.NewEntryWrapper(
- it->first, it->second));
- ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
- 19, *entry, output);
- if (entry->GetArena() != NULL) {
- entry.release();
- }
- }
- }
- }
- if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
- ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
- (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output);
- }
- // @@protoc_insertion_point(serialize_end:protobuf_unittest.TestMap)
- }
- ::google::protobuf::uint8* TestMap::InternalSerializeWithCachedSizesToArray(
- bool deterministic, ::google::protobuf::uint8* target) const {
- (void)deterministic; // Unused
- // @@protoc_insertion_point(serialize_to_array_start:protobuf_unittest.TestMap)
- ::google::protobuf::uint32 cached_has_bits = 0;
- (void) cached_has_bits;
- // map<int32, int32> map_int32_int32 = 1;
- if (!this->map_int32_int32().empty()) {
- typedef ::google::protobuf::Map< ::google::protobuf::int32, ::google::protobuf::int32 >::const_pointer
- ConstPtr;
- typedef ::google::protobuf::internal::SortItem< ::google::protobuf::int32, ConstPtr > SortItem;
- typedef ::google::protobuf::internal::CompareByFirstField<SortItem> Less;
- if (deterministic &&
- this->map_int32_int32().size() > 1) {
- ::std::unique_ptr<SortItem[]> items(
- new SortItem[this->map_int32_int32().size()]);
- typedef ::google::protobuf::Map< ::google::protobuf::int32, ::google::protobuf::int32 >::size_type size_type;
- size_type n = 0;
- for (::google::protobuf::Map< ::google::protobuf::int32, ::google::protobuf::int32 >::const_iterator
- it = this->map_int32_int32().begin();
- it != this->map_int32_int32().end(); ++it, ++n) {
- items[static_cast<ptrdiff_t>(n)] = SortItem(&*it);
- }
- ::std::sort(&items[0], &items[static_cast<ptrdiff_t>(n)], Less());
- ::std::unique_ptr<TestMap_MapInt32Int32Entry_DoNotUse> entry;
- for (size_type i = 0; i < n; i++) {
- entry.reset(map_int32_int32_.NewEntryWrapper(
- items[static_cast<ptrdiff_t>(i)].second->first, items[static_cast<ptrdiff_t>(i)].second->second));
- target = ::google::protobuf::internal::WireFormatLite::
- InternalWriteMessageNoVirtualToArray(
- 1, *entry, deterministic, target);
- ;
- if (entry->GetArena() != NULL) {
- entry.release();
- }
- }
- } else {
- ::std::unique_ptr<TestMap_MapInt32Int32Entry_DoNotUse> entry;
- for (::google::protobuf::Map< ::google::protobuf::int32, ::google::protobuf::int32 >::const_iterator
- it = this->map_int32_int32().begin();
- it != this->map_int32_int32().end(); ++it) {
- entry.reset(map_int32_int32_.NewEntryWrapper(
- it->first, it->second));
- target = ::google::protobuf::internal::WireFormatLite::
- InternalWriteMessageNoVirtualToArray(
- 1, *entry, deterministic, target);
- ;
- if (entry->GetArena() != NULL) {
- entry.release();
- }
- }
- }
- }
- // map<int64, int64> map_int64_int64 = 2;
- if (!this->map_int64_int64().empty()) {
- typedef ::google::protobuf::Map< ::google::protobuf::int64, ::google::protobuf::int64 >::const_pointer
- ConstPtr;
- typedef ::google::protobuf::internal::SortItem< ::google::protobuf::int64, ConstPtr > SortItem;
- typedef ::google::protobuf::internal::CompareByFirstField<SortItem> Less;
- if (deterministic &&
- this->map_int64_int64().size() > 1) {
- ::std::unique_ptr<SortItem[]> items(
- new SortItem[this->map_int64_int64().size()]);
- typedef ::google::protobuf::Map< ::google::protobuf::int64, ::google::protobuf::int64 >::size_type size_type;
- size_type n = 0;
- for (::google::protobuf::Map< ::google::protobuf::int64, ::google::protobuf::int64 >::const_iterator
- it = this->map_int64_int64().begin();
- it != this->map_int64_int64().end(); ++it, ++n) {
- items[static_cast<ptrdiff_t>(n)] = SortItem(&*it);
- }
- ::std::sort(&items[0], &items[static_cast<ptrdiff_t>(n)], Less());
- ::std::unique_ptr<TestMap_MapInt64Int64Entry_DoNotUse> entry;
- for (size_type i = 0; i < n; i++) {
- entry.reset(map_int64_int64_.NewEntryWrapper(
- items[static_cast<ptrdiff_t>(i)].second->first, items[static_cast<ptrdiff_t>(i)].second->second));
- target = ::google::protobuf::internal::WireFormatLite::
- InternalWriteMessageNoVirtualToArray(
- 2, *entry, deterministic, target);
- ;
- if (entry->GetArena() != NULL) {
- entry.release();
- }
- }
- } else {
- ::std::unique_ptr<TestMap_MapInt64Int64Entry_DoNotUse> entry;
- for (::google::protobuf::Map< ::google::protobuf::int64, ::google::protobuf::int64 >::const_iterator
- it = this->map_int64_int64().begin();
- it != this->map_int64_int64().end(); ++it) {
- entry.reset(map_int64_int64_.NewEntryWrapper(
- it->first, it->second));
- target = ::google::protobuf::internal::WireFormatLite::
- InternalWriteMessageNoVirtualToArray(
- 2, *entry, deterministic, target);
- ;
- if (entry->GetArena() != NULL) {
- entry.release();
- }
- }
- }
- }
- // map<uint32, uint32> map_uint32_uint32 = 3;
- if (!this->map_uint32_uint32().empty()) {
- typedef ::google::protobuf::Map< ::google::protobuf::uint32, ::google::protobuf::uint32 >::const_pointer
- ConstPtr;
- typedef ::google::protobuf::internal::SortItem< ::google::protobuf::uint32, ConstPtr > SortItem;
- typedef ::google::protobuf::internal::CompareByFirstField<SortItem> Less;
- if (deterministic &&
- this->map_uint32_uint32().size() > 1) {
- ::std::unique_ptr<SortItem[]> items(
- new SortItem[this->map_uint32_uint32().size()]);
- typedef ::google::protobuf::Map< ::google::protobuf::uint32, ::google::protobuf::uint32 >::size_type size_type;
- size_type n = 0;
- for (::google::protobuf::Map< ::google::protobuf::uint32, ::google::protobuf::uint32 >::const_iterator
- it = this->map_uint32_uint32().begin();
- it != this->map_uint32_uint32().end(); ++it, ++n) {
- items[static_cast<ptrdiff_t>(n)] = SortItem(&*it);
- }
- ::std::sort(&items[0], &items[static_cast<ptrdiff_t>(n)], Less());
- ::std::unique_ptr<TestMap_MapUint32Uint32Entry_DoNotUse> entry;
- for (size_type i = 0; i < n; i++) {
- entry.reset(map_uint32_uint32_.NewEntryWrapper(
- items[static_cast<ptrdiff_t>(i)].second->first, items[static_cast<ptrdiff_t>(i)].second->second));
- target = ::google::protobuf::internal::WireFormatLite::
- InternalWriteMessageNoVirtualToArray(
- 3, *entry, deterministic, target);
- ;
- if (entry->GetArena() != NULL) {
- entry.release();
- }
- }
- } else {
- ::std::unique_ptr<TestMap_MapUint32Uint32Entry_DoNotUse> entry;
- for (::google::protobuf::Map< ::google::protobuf::uint32, ::google::protobuf::uint32 >::const_iterator
- it = this->map_uint32_uint32().begin();
- it != this->map_uint32_uint32().end(); ++it) {
- entry.reset(map_uint32_uint32_.NewEntryWrapper(
- it->first, it->second));
- target = ::google::protobuf::internal::WireFormatLite::
- InternalWriteMessageNoVirtualToArray(
- 3, *entry, deterministic, target);
- ;
- if (entry->GetArena() != NULL) {
- entry.release();
- }
- }
- }
- }
- // map<uint64, uint64> map_uint64_uint64 = 4;
- if (!this->map_uint64_uint64().empty()) {
- typedef ::google::protobuf::Map< ::google::protobuf::uint64, ::google::protobuf::uint64 >::const_pointer
- ConstPtr;
- typedef ::google::protobuf::internal::SortItem< ::google::protobuf::uint64, ConstPtr > SortItem;
- typedef ::google::protobuf::internal::CompareByFirstField<SortItem> Less;
- if (deterministic &&
- this->map_uint64_uint64().size() > 1) {
- ::std::unique_ptr<SortItem[]> items(
- new SortItem[this->map_uint64_uint64().size()]);
- typedef ::google::protobuf::Map< ::google::protobuf::uint64, ::google::protobuf::uint64 >::size_type size_type;
- size_type n = 0;
- for (::google::protobuf::Map< ::google::protobuf::uint64, ::google::protobuf::uint64 >::const_iterator
- it = this->map_uint64_uint64().begin();
- it != this->map_uint64_uint64().end(); ++it, ++n) {
- items[static_cast<ptrdiff_t>(n)] = SortItem(&*it);
- }
- ::std::sort(&items[0], &items[static_cast<ptrdiff_t>(n)], Less());
- ::std::unique_ptr<TestMap_MapUint64Uint64Entry_DoNotUse> entry;
- for (size_type i = 0; i < n; i++) {
- entry.reset(map_uint64_uint64_.NewEntryWrapper(
- items[static_cast<ptrdiff_t>(i)].second->first, items[static_cast<ptrdiff_t>(i)].second->second));
- target = ::google::protobuf::internal::WireFormatLite::
- InternalWriteMessageNoVirtualToArray(
- 4, *entry, deterministic, target);
- ;
- if (entry->GetArena() != NULL) {
- entry.release();
- }
- }
- } else {
- ::std::unique_ptr<TestMap_MapUint64Uint64Entry_DoNotUse> entry;
- for (::google::protobuf::Map< ::google::protobuf::uint64, ::google::protobuf::uint64 >::const_iterator
- it = this->map_uint64_uint64().begin();
- it != this->map_uint64_uint64().end(); ++it) {
- entry.reset(map_uint64_uint64_.NewEntryWrapper(
- it->first, it->second));
- target = ::google::protobuf::internal::WireFormatLite::
- InternalWriteMessageNoVirtualToArray(
- 4, *entry, deterministic, target);
- ;
- if (entry->GetArena() != NULL) {
- entry.release();
- }
- }
- }
- }
- // map<sint32, sint32> map_sint32_sint32 = 5;
- if (!this->map_sint32_sint32().empty()) {
- typedef ::google::protobuf::Map< ::google::protobuf::int32, ::google::protobuf::int32 >::const_pointer
- ConstPtr;
- typedef ::google::protobuf::internal::SortItem< ::google::protobuf::int32, ConstPtr > SortItem;
- typedef ::google::protobuf::internal::CompareByFirstField<SortItem> Less;
- if (deterministic &&
- this->map_sint32_sint32().size() > 1) {
- ::std::unique_ptr<SortItem[]> items(
- new SortItem[this->map_sint32_sint32().size()]);
- typedef ::google::protobuf::Map< ::google::protobuf::int32, ::google::protobuf::int32 >::size_type size_type;
- size_type n = 0;
- for (::google::protobuf::Map< ::google::protobuf::int32, ::google::protobuf::int32 >::const_iterator
- it = this->map_sint32_sint32().begin();
- it != this->map_sint32_sint32().end(); ++it, ++n) {
- items[static_cast<ptrdiff_t>(n)] = SortItem(&*it);
- }
- ::std::sort(&items[0], &items[static_cast<ptrdiff_t>(n)], Less());
- ::std::unique_ptr<TestMap_MapSint32Sint32Entry_DoNotUse> entry;
- for (size_type i = 0; i < n; i++) {
- entry.reset(map_sint32_sint32_.NewEntryWrapper(
- items[static_cast<ptrdiff_t>(i)].second->first, items[static_cast<ptrdiff_t>(i)].second->second));
- target = ::google::protobuf::internal::WireFormatLite::
- InternalWriteMessageNoVirtualToArray(
- 5, *entry, deterministic, target);
- ;
- if (entry->GetArena() != NULL) {
- entry.release();
- }
- }
- } else {
- ::std::unique_ptr<TestMap_MapSint32Sint32Entry_DoNotUse> entry;
- for (::google::protobuf::Map< ::google::protobuf::int32, ::google::protobuf::int32 >::const_iterator
- it = this->map_sint32_sint32().begin();
- it != this->map_sint32_sint32().end(); ++it) {
- entry.reset(map_sint32_sint32_.NewEntryWrapper(
- it->first, it->second));
- target = ::google::protobuf::internal::WireFormatLite::
- InternalWriteMessageNoVirtualToArray(
- 5, *entry, deterministic, target);
- ;
- if (entry->GetArena() != NULL) {
- entry.release();
- }
- }
- }
- }
- // map<sint64, sint64> map_sint64_sint64 = 6;
- if (!this->map_sint64_sint64().empty()) {
- typedef ::google::protobuf::Map< ::google::protobuf::int64, ::google::protobuf::int64 >::const_pointer
- ConstPtr;
- typedef ::google::protobuf::internal::SortItem< ::google::protobuf::int64, ConstPtr > SortItem;
- typedef ::google::protobuf::internal::CompareByFirstField<SortItem> Less;
- if (deterministic &&
- this->map_sint64_sint64().size() > 1) {
- ::std::unique_ptr<SortItem[]> items(
- new SortItem[this->map_sint64_sint64().size()]);
- typedef ::google::protobuf::Map< ::google::protobuf::int64, ::google::protobuf::int64 >::size_type size_type;
- size_type n = 0;
- for (::google::protobuf::Map< ::google::protobuf::int64, ::google::protobuf::int64 >::const_iterator
- it = this->map_sint64_sint64().begin();
- it != this->map_sint64_sint64().end(); ++it, ++n) {
- items[static_cast<ptrdiff_t>(n)] = SortItem(&*it);
- }
- ::std::sort(&items[0], &items[static_cast<ptrdiff_t>(n)], Less());
- ::std::unique_ptr<TestMap_MapSint64Sint64Entry_DoNotUse> entry;
- for (size_type i = 0; i < n; i++) {
- entry.reset(map_sint64_sint64_.NewEntryWrapper(
- items[static_cast<ptrdiff_t>(i)].second->first, items[static_cast<ptrdiff_t>(i)].second->second));
- target = ::google::protobuf::internal::WireFormatLite::
- InternalWriteMessageNoVirtualToArray(
- 6, *entry, deterministic, target);
- ;
- if (entry->GetArena() != NULL) {
- entry.release();
- }
- }
- } else {
- ::std::unique_ptr<TestMap_MapSint64Sint64Entry_DoNotUse> entry;
- for (::google::protobuf::Map< ::google::protobuf::int64, ::google::protobuf::int64 >::const_iterator
- it = this->map_sint64_sint64().begin();
- it != this->map_sint64_sint64().end(); ++it) {
- entry.reset(map_sint64_sint64_.NewEntryWrapper(
- it->first, it->second));
- target = ::google::protobuf::internal::WireFormatLite::
- InternalWriteMessageNoVirtualToArray(
- 6, *entry, deterministic, target);
- ;
- if (entry->GetArena() != NULL) {
- entry.release();
- }
- }
- }
- }
- // map<fixed32, fixed32> map_fixed32_fixed32 = 7;
- if (!this->map_fixed32_fixed32().empty()) {
- typedef ::google::protobuf::Map< ::google::protobuf::uint32, ::google::protobuf::uint32 >::const_pointer
- ConstPtr;
- typedef ::google::protobuf::internal::SortItem< ::google::protobuf::uint32, ConstPtr > SortItem;
- typedef ::google::protobuf::internal::CompareByFirstField<SortItem> Less;
- if (deterministic &&
- this->map_fixed32_fixed32().size() > 1) {
- ::std::unique_ptr<SortItem[]> items(
- new SortItem[this->map_fixed32_fixed32().size()]);
- typedef ::google::protobuf::Map< ::google::protobuf::uint32, ::google::protobuf::uint32 >::size_type size_type;
- size_type n = 0;
- for (::google::protobuf::Map< ::google::protobuf::uint32, ::google::protobuf::uint32 >::const_iterator
- it = this->map_fixed32_fixed32().begin();
- it != this->map_fixed32_fixed32().end(); ++it, ++n) {
- items[static_cast<ptrdiff_t>(n)] = SortItem(&*it);
- }
- ::std::sort(&items[0], &items[static_cast<ptrdiff_t>(n)], Less());
- ::std::unique_ptr<TestMap_MapFixed32Fixed32Entry_DoNotUse> entry;
- for (size_type i = 0; i < n; i++) {
- entry.reset(map_fixed32_fixed32_.NewEntryWrapper(
- items[static_cast<ptrdiff_t>(i)].second->first, items[static_cast<ptrdiff_t>(i)].second->second));
- target = ::google::protobuf::internal::WireFormatLite::
- InternalWriteMessageNoVirtualToArray(
- 7, *entry, deterministic, target);
- ;
- if (entry->GetArena() != NULL) {
- entry.release();
- }
- }
- } else {
- ::std::unique_ptr<TestMap_MapFixed32Fixed32Entry_DoNotUse> entry;
- for (::google::protobuf::Map< ::google::protobuf::uint32, ::google::protobuf::uint32 >::const_iterator
- it = this->map_fixed32_fixed32().begin();
- it != this->map_fixed32_fixed32().end(); ++it) {
- entry.reset(map_fixed32_fixed32_.NewEntryWrapper(
- it->first, it->second));
- target = ::google::protobuf::internal::WireFormatLite::
- InternalWriteMessageNoVirtualToArray(
- 7, *entry, deterministic, target);
- ;
- if (entry->GetArena() != NULL) {
- entry.release();
- }
- }
- }
- }
- // map<fixed64, fixed64> map_fixed64_fixed64 = 8;
- if (!this->map_fixed64_fixed64().empty()) {
- typedef ::google::protobuf::Map< ::google::protobuf::uint64, ::google::protobuf::uint64 >::const_pointer
- ConstPtr;
- typedef ::google::protobuf::internal::SortItem< ::google::protobuf::uint64, ConstPtr > SortItem;
- typedef ::google::protobuf::internal::CompareByFirstField<SortItem> Less;
- if (deterministic &&
- this->map_fixed64_fixed64().size() > 1) {
- ::std::unique_ptr<SortItem[]> items(
- new SortItem[this->map_fixed64_fixed64().size()]);
- typedef ::google::protobuf::Map< ::google::protobuf::uint64, ::google::protobuf::uint64 >::size_type size_type;
- size_type n = 0;
- for (::google::protobuf::Map< ::google::protobuf::uint64, ::google::protobuf::uint64 >::const_iterator
- it = this->map_fixed64_fixed64().begin();
- it != this->map_fixed64_fixed64().end(); ++it, ++n) {
- items[static_cast<ptrdiff_t>(n)] = SortItem(&*it);
- }
- ::std::sort(&items[0], &items[static_cast<ptrdiff_t>(n)], Less());
- ::std::unique_ptr<TestMap_MapFixed64Fixed64Entry_DoNotUse> entry;
- for (size_type i = 0; i < n; i++) {
- entry.reset(map_fixed64_fixed64_.NewEntryWrapper(
- items[static_cast<ptrdiff_t>(i)].second->first, items[static_cast<ptrdiff_t>(i)].second->second));
- target = ::google::protobuf::internal::WireFormatLite::
- InternalWriteMessageNoVirtualToArray(
- 8, *entry, deterministic, target);
- ;
- if (entry->GetArena() != NULL) {
- entry.release();
- }
- }
- } else {
- ::std::unique_ptr<TestMap_MapFixed64Fixed64Entry_DoNotUse> entry;
- for (::google::protobuf::Map< ::google::protobuf::uint64, ::google::protobuf::uint64 >::const_iterator
- it = this->map_fixed64_fixed64().begin();
- it != this->map_fixed64_fixed64().end(); ++it) {
- entry.reset(map_fixed64_fixed64_.NewEntryWrapper(
- it->first, it->second));
- target = ::google::protobuf::internal::WireFormatLite::
- InternalWriteMessageNoVirtualToArray(
- 8, *entry, deterministic, target);
- ;
- if (entry->GetArena() != NULL) {
- entry.release();
- }
- }
- }
- }
- // map<sfixed32, sfixed32> map_sfixed32_sfixed32 = 9;
- if (!this->map_sfixed32_sfixed32().empty()) {
- typedef ::google::protobuf::Map< ::google::protobuf::int32, ::google::protobuf::int32 >::const_pointer
- ConstPtr;
- typedef ::google::protobuf::internal::SortItem< ::google::protobuf::int32, ConstPtr > SortItem;
- typedef ::google::protobuf::internal::CompareByFirstField<SortItem> Less;
- if (deterministic &&
- this->map_sfixed32_sfixed32().size() > 1) {
- ::std::unique_ptr<SortItem[]> items(
- new SortItem[this->map_sfixed32_sfixed32().size()]);
- typedef ::google::protobuf::Map< ::google::protobuf::int32, ::google::protobuf::int32 >::size_type size_type;
- size_type n = 0;
- for (::google::protobuf::Map< ::google::protobuf::int32, ::google::protobuf::int32 >::const_iterator
- it = this->map_sfixed32_sfixed32().begin();
- it != this->map_sfixed32_sfixed32().end(); ++it, ++n) {
- items[static_cast<ptrdiff_t>(n)] = SortItem(&*it);
- }
- ::std::sort(&items[0], &items[static_cast<ptrdiff_t>(n)], Less());
- ::std::unique_ptr<TestMap_MapSfixed32Sfixed32Entry_DoNotUse> entry;
- for (size_type i = 0; i < n; i++) {
- entry.reset(map_sfixed32_sfixed32_.NewEntryWrapper(
- items[static_cast<ptrdiff_t>(i)].second->first, items[static_cast<ptrdiff_t>(i)].second->second));
- target = ::google::protobuf::internal::WireFormatLite::
- InternalWriteMessageNoVirtualToArray(
- 9, *entry, deterministic, target);
- ;
- if (entry->GetArena() != NULL) {
- entry.release();
- }
- }
- } else {
- ::std::unique_ptr<TestMap_MapSfixed32Sfixed32Entry_DoNotUse> entry;
- for (::google::protobuf::Map< ::google::protobuf::int32, ::google::protobuf::int32 >::const_iterator
- it = this->map_sfixed32_sfixed32().begin();
- it != this->map_sfixed32_sfixed32().end(); ++it) {
- entry.reset(map_sfixed32_sfixed32_.NewEntryWrapper(
- it->first, it->second));
- target = ::google::protobuf::internal::WireFormatLite::
- InternalWriteMessageNoVirtualToArray(
- 9, *entry, deterministic, target);
- ;
- if (entry->GetArena() != NULL) {
- entry.release();
- }
- }
- }
- }
- // map<sfixed64, sfixed64> map_sfixed64_sfixed64 = 10;
- if (!this->map_sfixed64_sfixed64().empty()) {
- typedef ::google::protobuf::Map< ::google::protobuf::int64, ::google::protobuf::int64 >::const_pointer
- ConstPtr;
- typedef ::google::protobuf::internal::SortItem< ::google::protobuf::int64, ConstPtr > SortItem;
- typedef ::google::protobuf::internal::CompareByFirstField<SortItem> Less;
- if (deterministic &&
- this->map_sfixed64_sfixed64().size() > 1) {
- ::std::unique_ptr<SortItem[]> items(
- new SortItem[this->map_sfixed64_sfixed64().size()]);
- typedef ::google::protobuf::Map< ::google::protobuf::int64, ::google::protobuf::int64 >::size_type size_type;
- size_type n = 0;
- for (::google::protobuf::Map< ::google::protobuf::int64, ::google::protobuf::int64 >::const_iterator
- it = this->map_sfixed64_sfixed64().begin();
- it != this->map_sfixed64_sfixed64().end(); ++it, ++n) {
- items[static_cast<ptrdiff_t>(n)] = SortItem(&*it);
- }
- ::std::sort(&items[0], &items[static_cast<ptrdiff_t>(n)], Less());
- ::std::unique_ptr<TestMap_MapSfixed64Sfixed64Entry_DoNotUse> entry;
- for (size_type i = 0; i < n; i++) {
- entry.reset(map_sfixed64_sfixed64_.NewEntryWrapper(
- items[static_cast<ptrdiff_t>(i)].second->first, items[static_cast<ptrdiff_t>(i)].second->second));
- target = ::google::protobuf::internal::WireFormatLite::
- InternalWriteMessageNoVirtualToArray(
- 10, *entry, deterministic, target);
- ;
- if (entry->GetArena() != NULL) {
- entry.release();
- }
- }
- } else {
- ::std::unique_ptr<TestMap_MapSfixed64Sfixed64Entry_DoNotUse> entry;
- for (::google::protobuf::Map< ::google::protobuf::int64, ::google::protobuf::int64 >::const_iterator
- it = this->map_sfixed64_sfixed64().begin();
- it != this->map_sfixed64_sfixed64().end(); ++it) {
- entry.reset(map_sfixed64_sfixed64_.NewEntryWrapper(
- it->first, it->second));
- target = ::google::protobuf::internal::WireFormatLite::
- InternalWriteMessageNoVirtualToArray(
- 10, *entry, deterministic, target);
- ;
- if (entry->GetArena() != NULL) {
- entry.release();
- }
- }
- }
- }
- // map<int32, float> map_int32_float = 11;
- if (!this->map_int32_float().empty()) {
- typedef ::google::protobuf::Map< ::google::protobuf::int32, float >::const_pointer
- ConstPtr;
- typedef ::google::protobuf::internal::SortItem< ::google::protobuf::int32, ConstPtr > SortItem;
- typedef ::google::protobuf::internal::CompareByFirstField<SortItem> Less;
- if (deterministic &&
- this->map_int32_float().size() > 1) {
- ::std::unique_ptr<SortItem[]> items(
- new SortItem[this->map_int32_float().size()]);
- typedef ::google::protobuf::Map< ::google::protobuf::int32, float >::size_type size_type;
- size_type n = 0;
- for (::google::protobuf::Map< ::google::protobuf::int32, float >::const_iterator
- it = this->map_int32_float().begin();
- it != this->map_int32_float().end(); ++it, ++n) {
- items[static_cast<ptrdiff_t>(n)] = SortItem(&*it);
- }
- ::std::sort(&items[0], &items[static_cast<ptrdiff_t>(n)], Less());
- ::std::unique_ptr<TestMap_MapInt32FloatEntry_DoNotUse> entry;
- for (size_type i = 0; i < n; i++) {
- entry.reset(map_int32_float_.NewEntryWrapper(
- items[static_cast<ptrdiff_t>(i)].second->first, items[static_cast<ptrdiff_t>(i)].second->second));
- target = ::google::protobuf::internal::WireFormatLite::
- InternalWriteMessageNoVirtualToArray(
- 11, *entry, deterministic, target);
- ;
- if (entry->GetArena() != NULL) {
- entry.release();
- }
- }
- } else {
- ::std::unique_ptr<TestMap_MapInt32FloatEntry_DoNotUse> entry;
- for (::google::protobuf::Map< ::google::protobuf::int32, float >::const_iterator
- it = this->map_int32_float().begin();
- it != this->map_int32_float().end(); ++it) {
- entry.reset(map_int32_float_.NewEntryWrapper(
- it->first, it->second));
- target = ::google::protobuf::internal::WireFormatLite::
- InternalWriteMessageNoVirtualToArray(
- 11, *entry, deterministic, target);
- ;
- if (entry->GetArena() != NULL) {
- entry.release();
- }
- }
- }
- }
- // map<int32, double> map_int32_double = 12;
- if (!this->map_int32_double().empty()) {
- typedef ::google::protobuf::Map< ::google::protobuf::int32, double >::const_pointer
- ConstPtr;
- typedef ::google::protobuf::internal::SortItem< ::google::protobuf::int32, ConstPtr > SortItem;
- typedef ::google::protobuf::internal::CompareByFirstField<SortItem> Less;
- if (deterministic &&
- this->map_int32_double().size() > 1) {
- ::std::unique_ptr<SortItem[]> items(
- new SortItem[this->map_int32_double().size()]);
- typedef ::google::protobuf::Map< ::google::protobuf::int32, double >::size_type size_type;
- size_type n = 0;
- for (::google::protobuf::Map< ::google::protobuf::int32, double >::const_iterator
- it = this->map_int32_double().begin();
- it != this->map_int32_double().end(); ++it, ++n) {
- items[static_cast<ptrdiff_t>(n)] = SortItem(&*it);
- }
- ::std::sort(&items[0], &items[static_cast<ptrdiff_t>(n)], Less());
- ::std::unique_ptr<TestMap_MapInt32DoubleEntry_DoNotUse> entry;
- for (size_type i = 0; i < n; i++) {
- entry.reset(map_int32_double_.NewEntryWrapper(
- items[static_cast<ptrdiff_t>(i)].second->first, items[static_cast<ptrdiff_t>(i)].second->second));
- target = ::google::protobuf::internal::WireFormatLite::
- InternalWriteMessageNoVirtualToArray(
- 12, *entry, deterministic, target);
- ;
- if (entry->GetArena() != NULL) {
- entry.release();
- }
- }
- } else {
- ::std::unique_ptr<TestMap_MapInt32DoubleEntry_DoNotUse> entry;
- for (::google::protobuf::Map< ::google::protobuf::int32, double >::const_iterator
- it = this->map_int32_double().begin();
- it != this->map_int32_double().end(); ++it) {
- entry.reset(map_int32_double_.NewEntryWrapper(
- it->first, it->second));
- target = ::google::protobuf::internal::WireFormatLite::
- InternalWriteMessageNoVirtualToArray(
- 12, *entry, deterministic, target);
- ;
- if (entry->GetArena() != NULL) {
- entry.release();
- }
- }
- }
- }
- // map<bool, bool> map_bool_bool = 13;
- if (!this->map_bool_bool().empty()) {
- typedef ::google::protobuf::Map< bool, bool >::const_pointer
- ConstPtr;
- typedef ::google::protobuf::internal::SortItem< bool, ConstPtr > SortItem;
- typedef ::google::protobuf::internal::CompareByFirstField<SortItem> Less;
- if (deterministic &&
- this->map_bool_bool().size() > 1) {
- ::std::unique_ptr<SortItem[]> items(
- new SortItem[this->map_bool_bool().size()]);
- typedef ::google::protobuf::Map< bool, bool >::size_type size_type;
- size_type n = 0;
- for (::google::protobuf::Map< bool, bool >::const_iterator
- it = this->map_bool_bool().begin();
- it != this->map_bool_bool().end(); ++it, ++n) {
- items[static_cast<ptrdiff_t>(n)] = SortItem(&*it);
- }
- ::std::sort(&items[0], &items[static_cast<ptrdiff_t>(n)], Less());
- ::std::unique_ptr<TestMap_MapBoolBoolEntry_DoNotUse> entry;
- for (size_type i = 0; i < n; i++) {
- entry.reset(map_bool_bool_.NewEntryWrapper(
- items[static_cast<ptrdiff_t>(i)].second->first, items[static_cast<ptrdiff_t>(i)].second->second));
- target = ::google::protobuf::internal::WireFormatLite::
- InternalWriteMessageNoVirtualToArray(
- 13, *entry, deterministic, target);
- ;
- if (entry->GetArena() != NULL) {
- entry.release();
- }
- }
- } else {
- ::std::unique_ptr<TestMap_MapBoolBoolEntry_DoNotUse> entry;
- for (::google::protobuf::Map< bool, bool >::const_iterator
- it = this->map_bool_bool().begin();
- it != this->map_bool_bool().end(); ++it) {
- entry.reset(map_bool_bool_.NewEntryWrapper(
- it->first, it->second));
- target = ::google::protobuf::internal::WireFormatLite::
- InternalWriteMessageNoVirtualToArray(
- 13, *entry, deterministic, target);
- ;
- if (entry->GetArena() != NULL) {
- entry.release();
- }
- }
- }
- }
- // map<string, string> map_string_string = 14;
- if (!this->map_string_string().empty()) {
- typedef ::google::protobuf::Map< ::std::string, ::std::string >::const_pointer
- ConstPtr;
- typedef ConstPtr SortItem;
- typedef ::google::protobuf::internal::CompareByDerefFirst<SortItem> Less;
- struct Utf8Check {
- static void Check(ConstPtr p) {
- ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
- p->first.data(), static_cast<int>(p->first.length()),
- ::google::protobuf::internal::WireFormatLite::SERIALIZE,
- "protobuf_unittest.TestMap.MapStringStringEntry.key");
- ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
- p->second.data(), static_cast<int>(p->second.length()),
- ::google::protobuf::internal::WireFormatLite::SERIALIZE,
- "protobuf_unittest.TestMap.MapStringStringEntry.value");
- }
- };
- if (deterministic &&
- this->map_string_string().size() > 1) {
- ::std::unique_ptr<SortItem[]> items(
- new SortItem[this->map_string_string().size()]);
- typedef ::google::protobuf::Map< ::std::string, ::std::string >::size_type size_type;
- size_type n = 0;
- for (::google::protobuf::Map< ::std::string, ::std::string >::const_iterator
- it = this->map_string_string().begin();
- it != this->map_string_string().end(); ++it, ++n) {
- items[static_cast<ptrdiff_t>(n)] = SortItem(&*it);
- }
- ::std::sort(&items[0], &items[static_cast<ptrdiff_t>(n)], Less());
- ::std::unique_ptr<TestMap_MapStringStringEntry_DoNotUse> entry;
- for (size_type i = 0; i < n; i++) {
- entry.reset(map_string_string_.NewEntryWrapper(
- items[static_cast<ptrdiff_t>(i)]->first, items[static_cast<ptrdiff_t>(i)]->second));
- target = ::google::protobuf::internal::WireFormatLite::
- InternalWriteMessageNoVirtualToArray(
- 14, *entry, deterministic, target);
- ;
- if (entry->GetArena() != NULL) {
- entry.release();
- }
- Utf8Check::Check(items[static_cast<ptrdiff_t>(i)]);
- }
- } else {
- ::std::unique_ptr<TestMap_MapStringStringEntry_DoNotUse> entry;
- for (::google::protobuf::Map< ::std::string, ::std::string >::const_iterator
- it = this->map_string_string().begin();
- it != this->map_string_string().end(); ++it) {
- entry.reset(map_string_string_.NewEntryWrapper(
- it->first, it->second));
- target = ::google::protobuf::internal::WireFormatLite::
- InternalWriteMessageNoVirtualToArray(
- 14, *entry, deterministic, target);
- ;
- if (entry->GetArena() != NULL) {
- entry.release();
- }
- Utf8Check::Check(&*it);
- }
- }
- }
- // map<int32, bytes> map_int32_bytes = 15;
- if (!this->map_int32_bytes().empty()) {
- typedef ::google::protobuf::Map< ::google::protobuf::int32, ::std::string >::const_pointer
- ConstPtr;
- typedef ::google::protobuf::internal::SortItem< ::google::protobuf::int32, ConstPtr > SortItem;
- typedef ::google::protobuf::internal::CompareByFirstField<SortItem> Less;
- if (deterministic &&
- this->map_int32_bytes().size() > 1) {
- ::std::unique_ptr<SortItem[]> items(
- new SortItem[this->map_int32_bytes().size()]);
- typedef ::google::protobuf::Map< ::google::protobuf::int32, ::std::string >::size_type size_type;
- size_type n = 0;
- for (::google::protobuf::Map< ::google::protobuf::int32, ::std::string >::const_iterator
- it = this->map_int32_bytes().begin();
- it != this->map_int32_bytes().end(); ++it, ++n) {
- items[static_cast<ptrdiff_t>(n)] = SortItem(&*it);
- }
- ::std::sort(&items[0], &items[static_cast<ptrdiff_t>(n)], Less());
- ::std::unique_ptr<TestMap_MapInt32BytesEntry_DoNotUse> entry;
- for (size_type i = 0; i < n; i++) {
- entry.reset(map_int32_bytes_.NewEntryWrapper(
- items[static_cast<ptrdiff_t>(i)].second->first, items[static_cast<ptrdiff_t>(i)].second->second));
- target = ::google::protobuf::internal::WireFormatLite::
- InternalWriteMessageNoVirtualToArray(
- 15, *entry, deterministic, target);
- ;
- if (entry->GetArena() != NULL) {
- entry.release();
- }
- }
- } else {
- ::std::unique_ptr<TestMap_MapInt32BytesEntry_DoNotUse> entry;
- for (::google::protobuf::Map< ::google::protobuf::int32, ::std::string >::const_iterator
- it = this->map_int32_bytes().begin();
- it != this->map_int32_bytes().end(); ++it) {
- entry.reset(map_int32_bytes_.NewEntryWrapper(
- it->first, it->second));
- target = ::google::protobuf::internal::WireFormatLite::
- InternalWriteMessageNoVirtualToArray(
- 15, *entry, deterministic, target);
- ;
- if (entry->GetArena() != NULL) {
- entry.release();
- }
- }
- }
- }
- // map<int32, .protobuf_unittest.MapEnum> map_int32_enum = 16;
- if (!this->map_int32_enum().empty()) {
- typedef ::google::protobuf::Map< ::google::protobuf::int32, ::protobuf_unittest::MapEnum >::const_pointer
- ConstPtr;
- typedef ::google::protobuf::internal::SortItem< ::google::protobuf::int32, ConstPtr > SortItem;
- typedef ::google::protobuf::internal::CompareByFirstField<SortItem> Less;
- if (deterministic &&
- this->map_int32_enum().size() > 1) {
- ::std::unique_ptr<SortItem[]> items(
- new SortItem[this->map_int32_enum().size()]);
- typedef ::google::protobuf::Map< ::google::protobuf::int32, ::protobuf_unittest::MapEnum >::size_type size_type;
- size_type n = 0;
- for (::google::protobuf::Map< ::google::protobuf::int32, ::protobuf_unittest::MapEnum >::const_iterator
- it = this->map_int32_enum().begin();
- it != this->map_int32_enum().end(); ++it, ++n) {
- items[static_cast<ptrdiff_t>(n)] = SortItem(&*it);
- }
- ::std::sort(&items[0], &items[static_cast<ptrdiff_t>(n)], Less());
- ::std::unique_ptr<TestMap_MapInt32EnumEntry_DoNotUse> entry;
- for (size_type i = 0; i < n; i++) {
- entry.reset(map_int32_enum_.NewEnumEntryWrapper(
- items[static_cast<ptrdiff_t>(i)].second->first, items[static_cast<ptrdiff_t>(i)].second->second));
- target = ::google::protobuf::internal::WireFormatLite::
- InternalWriteMessageNoVirtualToArray(
- 16, *entry, deterministic, target);
- ;
- if (entry->GetArena() != NULL) {
- entry.release();
- }
- }
- } else {
- ::std::unique_ptr<TestMap_MapInt32EnumEntry_DoNotUse> entry;
- for (::google::protobuf::Map< ::google::protobuf::int32, ::protobuf_unittest::MapEnum >::const_iterator
- it = this->map_int32_enum().begin();
- it != this->map_int32_enum().end(); ++it) {
- entry.reset(map_int32_enum_.NewEnumEntryWrapper(
- it->first, it->second));
- target = ::google::protobuf::internal::WireFormatLite::
- InternalWriteMessageNoVirtualToArray(
- 16, *entry, deterministic, target);
- ;
- if (entry->GetArena() != NULL) {
- entry.release();
- }
- }
- }
- }
- // map<int32, .protobuf_unittest.ForeignMessage> map_int32_foreign_message = 17;
- if (!this->map_int32_foreign_message().empty()) {
- typedef ::google::protobuf::Map< ::google::protobuf::int32, ::protobuf_unittest::ForeignMessage >::const_pointer
- ConstPtr;
- typedef ::google::protobuf::internal::SortItem< ::google::protobuf::int32, ConstPtr > SortItem;
- typedef ::google::protobuf::internal::CompareByFirstField<SortItem> Less;
- if (deterministic &&
- this->map_int32_foreign_message().size() > 1) {
- ::std::unique_ptr<SortItem[]> items(
- new SortItem[this->map_int32_foreign_message().size()]);
- typedef ::google::protobuf::Map< ::google::protobuf::int32, ::protobuf_unittest::ForeignMessage >::size_type size_type;
- size_type n = 0;
- for (::google::protobuf::Map< ::google::protobuf::int32, ::protobuf_unittest::ForeignMessage >::const_iterator
- it = this->map_int32_foreign_message().begin();
- it != this->map_int32_foreign_message().end(); ++it, ++n) {
- items[static_cast<ptrdiff_t>(n)] = SortItem(&*it);
- }
- ::std::sort(&items[0], &items[static_cast<ptrdiff_t>(n)], Less());
- ::std::unique_ptr<TestMap_MapInt32ForeignMessageEntry_DoNotUse> entry;
- for (size_type i = 0; i < n; i++) {
- entry.reset(map_int32_foreign_message_.NewEntryWrapper(
- items[static_cast<ptrdiff_t>(i)].second->first, items[static_cast<ptrdiff_t>(i)].second->second));
- target = ::google::protobuf::internal::WireFormatLite::
- InternalWriteMessageNoVirtualToArray(
- 17, *entry, deterministic, target);
- ;
- if (entry->GetArena() != NULL) {
- entry.release();
- }
- }
- } else {
- ::std::unique_ptr<TestMap_MapInt32ForeignMessageEntry_DoNotUse> entry;
- for (::google::protobuf::Map< ::google::protobuf::int32, ::protobuf_unittest::ForeignMessage >::const_iterator
- it = this->map_int32_foreign_message().begin();
- it != this->map_int32_foreign_message().end(); ++it) {
- entry.reset(map_int32_foreign_message_.NewEntryWrapper(
- it->first, it->second));
- target = ::google::protobuf::internal::WireFormatLite::
- InternalWriteMessageNoVirtualToArray(
- 17, *entry, deterministic, target);
- ;
- if (entry->GetArena() != NULL) {
- entry.release();
- }
- }
- }
- }
- // map<string, .protobuf_unittest.ForeignMessage> map_string_foreign_message = 18;
- if (!this->map_string_foreign_message().empty()) {
- typedef ::google::protobuf::Map< ::std::string, ::protobuf_unittest::ForeignMessage >::const_pointer
- ConstPtr;
- typedef ConstPtr SortItem;
- typedef ::google::protobuf::internal::CompareByDerefFirst<SortItem> Less;
- struct Utf8Check {
- static void Check(ConstPtr p) {
- ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
- p->first.data(), static_cast<int>(p->first.length()),
- ::google::protobuf::internal::WireFormatLite::SERIALIZE,
- "protobuf_unittest.TestMap.MapStringForeignMessageEntry.key");
- }
- };
- if (deterministic &&
- this->map_string_foreign_message().size() > 1) {
- ::std::unique_ptr<SortItem[]> items(
- new SortItem[this->map_string_foreign_message().size()]);
- typedef ::google::protobuf::Map< ::std::string, ::protobuf_unittest::ForeignMessage >::size_type size_type;
- size_type n = 0;
- for (::google::protobuf::Map< ::std::string, ::protobuf_unittest::ForeignMessage >::const_iterator
- it = this->map_string_foreign_message().begin();
- it != this->map_string_foreign_message().end(); ++it, ++n) {
- items[static_cast<ptrdiff_t>(n)] = SortItem(&*it);
- }
- ::std::sort(&items[0], &items[static_cast<ptrdiff_t>(n)], Less());
- ::std::unique_ptr<TestMap_MapStringForeignMessageEntry_DoNotUse> entry;
- for (size_type i = 0; i < n; i++) {
- entry.reset(map_string_foreign_message_.NewEntryWrapper(
- items[static_cast<ptrdiff_t>(i)]->first, items[static_cast<ptrdiff_t>(i)]->second));
- target = ::google::protobuf::internal::WireFormatLite::
- InternalWriteMessageNoVirtualToArray(
- 18, *entry, deterministic, target);
- ;
- if (entry->GetArena() != NULL) {
- entry.release();
- }
- Utf8Check::Check(items[static_cast<ptrdiff_t>(i)]);
- }
- } else {
- ::std::unique_ptr<TestMap_MapStringForeignMessageEntry_DoNotUse> entry;
- for (::google::protobuf::Map< ::std::string, ::protobuf_unittest::ForeignMessage >::const_iterator
- it = this->map_string_foreign_message().begin();
- it != this->map_string_foreign_message().end(); ++it) {
- entry.reset(map_string_foreign_message_.NewEntryWrapper(
- it->first, it->second));
- target = ::google::protobuf::internal::WireFormatLite::
- InternalWriteMessageNoVirtualToArray(
- 18, *entry, deterministic, target);
- ;
- if (entry->GetArena() != NULL) {
- entry.release();
- }
- Utf8Check::Check(&*it);
- }
- }
- }
- // map<int32, .protobuf_unittest.TestAllTypes> map_int32_all_types = 19;
- if (!this->map_int32_all_types().empty()) {
- typedef ::google::protobuf::Map< ::google::protobuf::int32, ::protobuf_unittest::TestAllTypes >::const_pointer
- ConstPtr;
- typedef ::google::protobuf::internal::SortItem< ::google::protobuf::int32, ConstPtr > SortItem;
- typedef ::google::protobuf::internal::CompareByFirstField<SortItem> Less;
- if (deterministic &&
- this->map_int32_all_types().size() > 1) {
- ::std::unique_ptr<SortItem[]> items(
- new SortItem[this->map_int32_all_types().size()]);
- typedef ::google::protobuf::Map< ::google::protobuf::int32, ::protobuf_unittest::TestAllTypes >::size_type size_type;
- size_type n = 0;
- for (::google::protobuf::Map< ::google::protobuf::int32, ::protobuf_unittest::TestAllTypes >::const_iterator
- it = this->map_int32_all_types().begin();
- it != this->map_int32_all_types().end(); ++it, ++n) {
- items[static_cast<ptrdiff_t>(n)] = SortItem(&*it);
- }
- ::std::sort(&items[0], &items[static_cast<ptrdiff_t>(n)], Less());
- ::std::unique_ptr<TestMap_MapInt32AllTypesEntry_DoNotUse> entry;
- for (size_type i = 0; i < n; i++) {
- entry.reset(map_int32_all_types_.NewEntryWrapper(
- items[static_cast<ptrdiff_t>(i)].second->first, items[static_cast<ptrdiff_t>(i)].second->second));
- target = ::google::protobuf::internal::WireFormatLite::
- InternalWriteMessageNoVirtualToArray(
- 19, *entry, deterministic, target);
- ;
- if (entry->GetArena() != NULL) {
- entry.release();
- }
- }
- } else {
- ::std::unique_ptr<TestMap_MapInt32AllTypesEntry_DoNotUse> entry;
- for (::google::protobuf::Map< ::google::protobuf::int32, ::protobuf_unittest::TestAllTypes >::const_iterator
- it = this->map_int32_all_types().begin();
- it != this->map_int32_all_types().end(); ++it) {
- entry.reset(map_int32_all_types_.NewEntryWrapper(
- it->first, it->second));
- target = ::google::protobuf::internal::WireFormatLite::
- InternalWriteMessageNoVirtualToArray(
- 19, *entry, deterministic, target);
- ;
- if (entry->GetArena() != NULL) {
- entry.release();
- }
- }
- }
- }
- if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
- target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
- (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target);
- }
- // @@protoc_insertion_point(serialize_to_array_end:protobuf_unittest.TestMap)
- return target;
- }
- size_t TestMap::ByteSizeLong() const {
- // @@protoc_insertion_point(message_byte_size_start:protobuf_unittest.TestMap)
- size_t total_size = 0;
- if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
- total_size +=
- ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
- (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()));
- }
- // map<int32, int32> map_int32_int32 = 1;
- total_size += 1 *
- ::google::protobuf::internal::FromIntSize(this->map_int32_int32_size());
- {
- ::std::unique_ptr<TestMap_MapInt32Int32Entry_DoNotUse> entry;
- for (::google::protobuf::Map< ::google::protobuf::int32, ::google::protobuf::int32 >::const_iterator
- it = this->map_int32_int32().begin();
- it != this->map_int32_int32().end(); ++it) {
- if (entry.get() != NULL && entry->GetArena() != NULL) {
- entry.release();
- }
- entry.reset(map_int32_int32_.NewEntryWrapper(it->first, it->second));
- total_size += ::google::protobuf::internal::WireFormatLite::
- MessageSizeNoVirtual(*entry);
- }
- if (entry.get() != NULL && entry->GetArena() != NULL) {
- entry.release();
- }
- }
- // map<int64, int64> map_int64_int64 = 2;
- total_size += 1 *
- ::google::protobuf::internal::FromIntSize(this->map_int64_int64_size());
- {
- ::std::unique_ptr<TestMap_MapInt64Int64Entry_DoNotUse> entry;
- for (::google::protobuf::Map< ::google::protobuf::int64, ::google::protobuf::int64 >::const_iterator
- it = this->map_int64_int64().begin();
- it != this->map_int64_int64().end(); ++it) {
- if (entry.get() != NULL && entry->GetArena() != NULL) {
- entry.release();
- }
- entry.reset(map_int64_int64_.NewEntryWrapper(it->first, it->second));
- total_size += ::google::protobuf::internal::WireFormatLite::
- MessageSizeNoVirtual(*entry);
- }
- if (entry.get() != NULL && entry->GetArena() != NULL) {
- entry.release();
- }
- }
- // map<uint32, uint32> map_uint32_uint32 = 3;
- total_size += 1 *
- ::google::protobuf::internal::FromIntSize(this->map_uint32_uint32_size());
- {
- ::std::unique_ptr<TestMap_MapUint32Uint32Entry_DoNotUse> entry;
- for (::google::protobuf::Map< ::google::protobuf::uint32, ::google::protobuf::uint32 >::const_iterator
- it = this->map_uint32_uint32().begin();
- it != this->map_uint32_uint32().end(); ++it) {
- if (entry.get() != NULL && entry->GetArena() != NULL) {
- entry.release();
- }
- entry.reset(map_uint32_uint32_.NewEntryWrapper(it->first, it->second));
- total_size += ::google::protobuf::internal::WireFormatLite::
- MessageSizeNoVirtual(*entry);
- }
- if (entry.get() != NULL && entry->GetArena() != NULL) {
- entry.release();
- }
- }
- // map<uint64, uint64> map_uint64_uint64 = 4;
- total_size += 1 *
- ::google::protobuf::internal::FromIntSize(this->map_uint64_uint64_size());
- {
- ::std::unique_ptr<TestMap_MapUint64Uint64Entry_DoNotUse> entry;
- for (::google::protobuf::Map< ::google::protobuf::uint64, ::google::protobuf::uint64 >::const_iterator
- it = this->map_uint64_uint64().begin();
- it != this->map_uint64_uint64().end(); ++it) {
- if (entry.get() != NULL && entry->GetArena() != NULL) {
- entry.release();
- }
- entry.reset(map_uint64_uint64_.NewEntryWrapper(it->first, it->second));
- total_size += ::google::protobuf::internal::WireFormatLite::
- MessageSizeNoVirtual(*entry);
- }
- if (entry.get() != NULL && entry->GetArena() != NULL) {
- entry.release();
- }
- }
- // map<sint32, sint32> map_sint32_sint32 = 5;
- total_size += 1 *
- ::google::protobuf::internal::FromIntSize(this->map_sint32_sint32_size());
- {
- ::std::unique_ptr<TestMap_MapSint32Sint32Entry_DoNotUse> entry;
- for (::google::protobuf::Map< ::google::protobuf::int32, ::google::protobuf::int32 >::const_iterator
- it = this->map_sint32_sint32().begin();
- it != this->map_sint32_sint32().end(); ++it) {
- if (entry.get() != NULL && entry->GetArena() != NULL) {
- entry.release();
- }
- entry.reset(map_sint32_sint32_.NewEntryWrapper(it->first, it->second));
- total_size += ::google::protobuf::internal::WireFormatLite::
- MessageSizeNoVirtual(*entry);
- }
- if (entry.get() != NULL && entry->GetArena() != NULL) {
- entry.release();
- }
- }
- // map<sint64, sint64> map_sint64_sint64 = 6;
- total_size += 1 *
- ::google::protobuf::internal::FromIntSize(this->map_sint64_sint64_size());
- {
- ::std::unique_ptr<TestMap_MapSint64Sint64Entry_DoNotUse> entry;
- for (::google::protobuf::Map< ::google::protobuf::int64, ::google::protobuf::int64 >::const_iterator
- it = this->map_sint64_sint64().begin();
- it != this->map_sint64_sint64().end(); ++it) {
- if (entry.get() != NULL && entry->GetArena() != NULL) {
- entry.release();
- }
- entry.reset(map_sint64_sint64_.NewEntryWrapper(it->first, it->second));
- total_size += ::google::protobuf::internal::WireFormatLite::
- MessageSizeNoVirtual(*entry);
- }
- if (entry.get() != NULL && entry->GetArena() != NULL) {
- entry.release();
- }
- }
- // map<fixed32, fixed32> map_fixed32_fixed32 = 7;
- total_size += 1 *
- ::google::protobuf::internal::FromIntSize(this->map_fixed32_fixed32_size());
- {
- ::std::unique_ptr<TestMap_MapFixed32Fixed32Entry_DoNotUse> entry;
- for (::google::protobuf::Map< ::google::protobuf::uint32, ::google::protobuf::uint32 >::const_iterator
- it = this->map_fixed32_fixed32().begin();
- it != this->map_fixed32_fixed32().end(); ++it) {
- if (entry.get() != NULL && entry->GetArena() != NULL) {
- entry.release();
- }
- entry.reset(map_fixed32_fixed32_.NewEntryWrapper(it->first, it->second));
- total_size += ::google::protobuf::internal::WireFormatLite::
- MessageSizeNoVirtual(*entry);
- }
- if (entry.get() != NULL && entry->GetArena() != NULL) {
- entry.release();
- }
- }
- // map<fixed64, fixed64> map_fixed64_fixed64 = 8;
- total_size += 1 *
- ::google::protobuf::internal::FromIntSize(this->map_fixed64_fixed64_size());
- {
- ::std::unique_ptr<TestMap_MapFixed64Fixed64Entry_DoNotUse> entry;
- for (::google::protobuf::Map< ::google::protobuf::uint64, ::google::protobuf::uint64 >::const_iterator
- it = this->map_fixed64_fixed64().begin();
- it != this->map_fixed64_fixed64().end(); ++it) {
- if (entry.get() != NULL && entry->GetArena() != NULL) {
- entry.release();
- }
- entry.reset(map_fixed64_fixed64_.NewEntryWrapper(it->first, it->second));
- total_size += ::google::protobuf::internal::WireFormatLite::
- MessageSizeNoVirtual(*entry);
- }
- if (entry.get() != NULL && entry->GetArena() != NULL) {
- entry.release();
- }
- }
- // map<sfixed32, sfixed32> map_sfixed32_sfixed32 = 9;
- total_size += 1 *
- ::google::protobuf::internal::FromIntSize(this->map_sfixed32_sfixed32_size());
- {
- ::std::unique_ptr<TestMap_MapSfixed32Sfixed32Entry_DoNotUse> entry;
- for (::google::protobuf::Map< ::google::protobuf::int32, ::google::protobuf::int32 >::const_iterator
- it = this->map_sfixed32_sfixed32().begin();
- it != this->map_sfixed32_sfixed32().end(); ++it) {
- if (entry.get() != NULL && entry->GetArena() != NULL) {
- entry.release();
- }
- entry.reset(map_sfixed32_sfixed32_.NewEntryWrapper(it->first, it->second));
- total_size += ::google::protobuf::internal::WireFormatLite::
- MessageSizeNoVirtual(*entry);
- }
- if (entry.get() != NULL && entry->GetArena() != NULL) {
- entry.release();
- }
- }
- // map<sfixed64, sfixed64> map_sfixed64_sfixed64 = 10;
- total_size += 1 *
- ::google::protobuf::internal::FromIntSize(this->map_sfixed64_sfixed64_size());
- {
- ::std::unique_ptr<TestMap_MapSfixed64Sfixed64Entry_DoNotUse> entry;
- for (::google::protobuf::Map< ::google::protobuf::int64, ::google::protobuf::int64 >::const_iterator
- it = this->map_sfixed64_sfixed64().begin();
- it != this->map_sfixed64_sfixed64().end(); ++it) {
- if (entry.get() != NULL && entry->GetArena() != NULL) {
- entry.release();
- }
- entry.reset(map_sfixed64_sfixed64_.NewEntryWrapper(it->first, it->second));
- total_size += ::google::protobuf::internal::WireFormatLite::
- MessageSizeNoVirtual(*entry);
- }
- if (entry.get() != NULL && entry->GetArena() != NULL) {
- entry.release();
- }
- }
- // map<int32, float> map_int32_float = 11;
- total_size += 1 *
- ::google::protobuf::internal::FromIntSize(this->map_int32_float_size());
- {
- ::std::unique_ptr<TestMap_MapInt32FloatEntry_DoNotUse> entry;
- for (::google::protobuf::Map< ::google::protobuf::int32, float >::const_iterator
- it = this->map_int32_float().begin();
- it != this->map_int32_float().end(); ++it) {
- if (entry.get() != NULL && entry->GetArena() != NULL) {
- entry.release();
- }
- entry.reset(map_int32_float_.NewEntryWrapper(it->first, it->second));
- total_size += ::google::protobuf::internal::WireFormatLite::
- MessageSizeNoVirtual(*entry);
- }
- if (entry.get() != NULL && entry->GetArena() != NULL) {
- entry.release();
- }
- }
- // map<int32, double> map_int32_double = 12;
- total_size += 1 *
- ::google::protobuf::internal::FromIntSize(this->map_int32_double_size());
- {
- ::std::unique_ptr<TestMap_MapInt32DoubleEntry_DoNotUse> entry;
- for (::google::protobuf::Map< ::google::protobuf::int32, double >::const_iterator
- it = this->map_int32_double().begin();
- it != this->map_int32_double().end(); ++it) {
- if (entry.get() != NULL && entry->GetArena() != NULL) {
- entry.release();
- }
- entry.reset(map_int32_double_.NewEntryWrapper(it->first, it->second));
- total_size += ::google::protobuf::internal::WireFormatLite::
- MessageSizeNoVirtual(*entry);
- }
- if (entry.get() != NULL && entry->GetArena() != NULL) {
- entry.release();
- }
- }
- // map<bool, bool> map_bool_bool = 13;
- total_size += 1 *
- ::google::protobuf::internal::FromIntSize(this->map_bool_bool_size());
- {
- ::std::unique_ptr<TestMap_MapBoolBoolEntry_DoNotUse> entry;
- for (::google::protobuf::Map< bool, bool >::const_iterator
- it = this->map_bool_bool().begin();
- it != this->map_bool_bool().end(); ++it) {
- if (entry.get() != NULL && entry->GetArena() != NULL) {
- entry.release();
- }
- entry.reset(map_bool_bool_.NewEntryWrapper(it->first, it->second));
- total_size += ::google::protobuf::internal::WireFormatLite::
- MessageSizeNoVirtual(*entry);
- }
- if (entry.get() != NULL && entry->GetArena() != NULL) {
- entry.release();
- }
- }
- // map<string, string> map_string_string = 14;
- total_size += 1 *
- ::google::protobuf::internal::FromIntSize(this->map_string_string_size());
- {
- ::std::unique_ptr<TestMap_MapStringStringEntry_DoNotUse> entry;
- for (::google::protobuf::Map< ::std::string, ::std::string >::const_iterator
- it = this->map_string_string().begin();
- it != this->map_string_string().end(); ++it) {
- if (entry.get() != NULL && entry->GetArena() != NULL) {
- entry.release();
- }
- entry.reset(map_string_string_.NewEntryWrapper(it->first, it->second));
- total_size += ::google::protobuf::internal::WireFormatLite::
- MessageSizeNoVirtual(*entry);
- }
- if (entry.get() != NULL && entry->GetArena() != NULL) {
- entry.release();
- }
- }
- // map<int32, bytes> map_int32_bytes = 15;
- total_size += 1 *
- ::google::protobuf::internal::FromIntSize(this->map_int32_bytes_size());
- {
- ::std::unique_ptr<TestMap_MapInt32BytesEntry_DoNotUse> entry;
- for (::google::protobuf::Map< ::google::protobuf::int32, ::std::string >::const_iterator
- it = this->map_int32_bytes().begin();
- it != this->map_int32_bytes().end(); ++it) {
- if (entry.get() != NULL && entry->GetArena() != NULL) {
- entry.release();
- }
- entry.reset(map_int32_bytes_.NewEntryWrapper(it->first, it->second));
- total_size += ::google::protobuf::internal::WireFormatLite::
- MessageSizeNoVirtual(*entry);
- }
- if (entry.get() != NULL && entry->GetArena() != NULL) {
- entry.release();
- }
- }
- // map<int32, .protobuf_unittest.MapEnum> map_int32_enum = 16;
- total_size += 2 *
- ::google::protobuf::internal::FromIntSize(this->map_int32_enum_size());
- {
- ::std::unique_ptr<TestMap_MapInt32EnumEntry_DoNotUse> entry;
- for (::google::protobuf::Map< ::google::protobuf::int32, ::protobuf_unittest::MapEnum >::const_iterator
- it = this->map_int32_enum().begin();
- it != this->map_int32_enum().end(); ++it) {
- if (entry.get() != NULL && entry->GetArena() != NULL) {
- entry.release();
- }
- entry.reset(map_int32_enum_.NewEnumEntryWrapper(it->first, it->second));
- total_size += ::google::protobuf::internal::WireFormatLite::
- MessageSizeNoVirtual(*entry);
- }
- if (entry.get() != NULL && entry->GetArena() != NULL) {
- entry.release();
- }
- }
- // map<int32, .protobuf_unittest.ForeignMessage> map_int32_foreign_message = 17;
- total_size += 2 *
- ::google::protobuf::internal::FromIntSize(this->map_int32_foreign_message_size());
- {
- ::std::unique_ptr<TestMap_MapInt32ForeignMessageEntry_DoNotUse> entry;
- for (::google::protobuf::Map< ::google::protobuf::int32, ::protobuf_unittest::ForeignMessage >::const_iterator
- it = this->map_int32_foreign_message().begin();
- it != this->map_int32_foreign_message().end(); ++it) {
- if (entry.get() != NULL && entry->GetArena() != NULL) {
- entry.release();
- }
- entry.reset(map_int32_foreign_message_.NewEntryWrapper(it->first, it->second));
- total_size += ::google::protobuf::internal::WireFormatLite::
- MessageSizeNoVirtual(*entry);
- }
- if (entry.get() != NULL && entry->GetArena() != NULL) {
- entry.release();
- }
- }
- // map<string, .protobuf_unittest.ForeignMessage> map_string_foreign_message = 18;
- total_size += 2 *
- ::google::protobuf::internal::FromIntSize(this->map_string_foreign_message_size());
- {
- ::std::unique_ptr<TestMap_MapStringForeignMessageEntry_DoNotUse> entry;
- for (::google::protobuf::Map< ::std::string, ::protobuf_unittest::ForeignMessage >::const_iterator
- it = this->map_string_foreign_message().begin();
- it != this->map_string_foreign_message().end(); ++it) {
- if (entry.get() != NULL && entry->GetArena() != NULL) {
- entry.release();
- }
- entry.reset(map_string_foreign_message_.NewEntryWrapper(it->first, it->second));
- total_size += ::google::protobuf::internal::WireFormatLite::
- MessageSizeNoVirtual(*entry);
- }
- if (entry.get() != NULL && entry->GetArena() != NULL) {
- entry.release();
- }
- }
- // map<int32, .protobuf_unittest.TestAllTypes> map_int32_all_types = 19;
- total_size += 2 *
- ::google::protobuf::internal::FromIntSize(this->map_int32_all_types_size());
- {
- ::std::unique_ptr<TestMap_MapInt32AllTypesEntry_DoNotUse> entry;
- for (::google::protobuf::Map< ::google::protobuf::int32, ::protobuf_unittest::TestAllTypes >::const_iterator
- it = this->map_int32_all_types().begin();
- it != this->map_int32_all_types().end(); ++it) {
- if (entry.get() != NULL && entry->GetArena() != NULL) {
- entry.release();
- }
- entry.reset(map_int32_all_types_.NewEntryWrapper(it->first, it->second));
- total_size += ::google::protobuf::internal::WireFormatLite::
- MessageSizeNoVirtual(*entry);
- }
- if (entry.get() != NULL && entry->GetArena() != NULL) {
- entry.release();
- }
- }
- int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
- SetCachedSize(cached_size);
- return total_size;
- }
- void TestMap::MergeFrom(const ::google::protobuf::Message& from) {
- // @@protoc_insertion_point(generalized_merge_from_start:protobuf_unittest.TestMap)
- GOOGLE_DCHECK_NE(&from, this);
- const TestMap* source =
- ::google::protobuf::internal::DynamicCastToGenerated<const TestMap>(
- &from);
- if (source == NULL) {
- // @@protoc_insertion_point(generalized_merge_from_cast_fail:protobuf_unittest.TestMap)
- ::google::protobuf::internal::ReflectionOps::Merge(from, this);
- } else {
- // @@protoc_insertion_point(generalized_merge_from_cast_success:protobuf_unittest.TestMap)
- MergeFrom(*source);
- }
- }
- void TestMap::MergeFrom(const TestMap& from) {
- // @@protoc_insertion_point(class_specific_merge_from_start:protobuf_unittest.TestMap)
- GOOGLE_DCHECK_NE(&from, this);
- _internal_metadata_.MergeFrom(from._internal_metadata_);
- ::google::protobuf::uint32 cached_has_bits = 0;
- (void) cached_has_bits;
- map_int32_int32_.MergeFrom(from.map_int32_int32_);
- map_int64_int64_.MergeFrom(from.map_int64_int64_);
- map_uint32_uint32_.MergeFrom(from.map_uint32_uint32_);
- map_uint64_uint64_.MergeFrom(from.map_uint64_uint64_);
- map_sint32_sint32_.MergeFrom(from.map_sint32_sint32_);
- map_sint64_sint64_.MergeFrom(from.map_sint64_sint64_);
- map_fixed32_fixed32_.MergeFrom(from.map_fixed32_fixed32_);
- map_fixed64_fixed64_.MergeFrom(from.map_fixed64_fixed64_);
- map_sfixed32_sfixed32_.MergeFrom(from.map_sfixed32_sfixed32_);
- map_sfixed64_sfixed64_.MergeFrom(from.map_sfixed64_sfixed64_);
- map_int32_float_.MergeFrom(from.map_int32_float_);
- map_int32_double_.MergeFrom(from.map_int32_double_);
- map_bool_bool_.MergeFrom(from.map_bool_bool_);
- map_string_string_.MergeFrom(from.map_string_string_);
- map_int32_bytes_.MergeFrom(from.map_int32_bytes_);
- map_int32_enum_.MergeFrom(from.map_int32_enum_);
- map_int32_foreign_message_.MergeFrom(from.map_int32_foreign_message_);
- map_string_foreign_message_.MergeFrom(from.map_string_foreign_message_);
- map_int32_all_types_.MergeFrom(from.map_int32_all_types_);
- }
- void TestMap::CopyFrom(const ::google::protobuf::Message& from) {
- // @@protoc_insertion_point(generalized_copy_from_start:protobuf_unittest.TestMap)
- if (&from == this) return;
- Clear();
- MergeFrom(from);
- }
- void TestMap::CopyFrom(const TestMap& from) {
- // @@protoc_insertion_point(class_specific_copy_from_start:protobuf_unittest.TestMap)
- if (&from == this) return;
- Clear();
- MergeFrom(from);
- }
- bool TestMap::IsInitialized() const {
- return true;
- }
- void TestMap::Swap(TestMap* other) {
- if (other == this) return;
- if (GetArenaNoVirtual() == other->GetArenaNoVirtual()) {
- InternalSwap(other);
- } else {
- TestMap* temp = New(GetArenaNoVirtual());
- temp->MergeFrom(*other);
- other->CopyFrom(*this);
- InternalSwap(temp);
- if (GetArenaNoVirtual() == NULL) {
- delete temp;
- }
- }
- }
- void TestMap::UnsafeArenaSwap(TestMap* other) {
- if (other == this) return;
- GOOGLE_DCHECK(GetArenaNoVirtual() == other->GetArenaNoVirtual());
- InternalSwap(other);
- }
- void TestMap::InternalSwap(TestMap* other) {
- using std::swap;
- map_int32_int32_.Swap(&other->map_int32_int32_);
- map_int64_int64_.Swap(&other->map_int64_int64_);
- map_uint32_uint32_.Swap(&other->map_uint32_uint32_);
- map_uint64_uint64_.Swap(&other->map_uint64_uint64_);
- map_sint32_sint32_.Swap(&other->map_sint32_sint32_);
- map_sint64_sint64_.Swap(&other->map_sint64_sint64_);
- map_fixed32_fixed32_.Swap(&other->map_fixed32_fixed32_);
- map_fixed64_fixed64_.Swap(&other->map_fixed64_fixed64_);
- map_sfixed32_sfixed32_.Swap(&other->map_sfixed32_sfixed32_);
- map_sfixed64_sfixed64_.Swap(&other->map_sfixed64_sfixed64_);
- map_int32_float_.Swap(&other->map_int32_float_);
- map_int32_double_.Swap(&other->map_int32_double_);
- map_bool_bool_.Swap(&other->map_bool_bool_);
- map_string_string_.Swap(&other->map_string_string_);
- map_int32_bytes_.Swap(&other->map_int32_bytes_);
- map_int32_enum_.Swap(&other->map_int32_enum_);
- map_int32_foreign_message_.Swap(&other->map_int32_foreign_message_);
- map_string_foreign_message_.Swap(&other->map_string_foreign_message_);
- map_int32_all_types_.Swap(&other->map_int32_all_types_);
- _internal_metadata_.Swap(&other->_internal_metadata_);
- }
- ::google::protobuf::Metadata TestMap::GetMetadata() const {
- protobuf_google_2fprotobuf_2fmap_5funittest_2eproto::protobuf_AssignDescriptorsOnce();
- return ::protobuf_google_2fprotobuf_2fmap_5funittest_2eproto::file_level_metadata[kIndexInFileMessages];
- }
- // ===================================================================
- void TestMapSubmessage::InitAsDefaultInstance() {
- ::protobuf_unittest::_TestMapSubmessage_default_instance_._instance.get_mutable()->test_map_ = const_cast< ::protobuf_unittest::TestMap*>(
- ::protobuf_unittest::TestMap::internal_default_instance());
- }
- void TestMapSubmessage::unsafe_arena_set_allocated_test_map(
- ::protobuf_unittest::TestMap* test_map) {
- if (GetArenaNoVirtual() == NULL) {
- delete test_map_;
- }
- test_map_ = test_map;
- if (test_map) {
-
- } else {
-
- }
- // @@protoc_insertion_point(field_unsafe_arena_set_allocated:protobuf_unittest.TestMapSubmessage.test_map)
- }
- #if !defined(_MSC_VER) || _MSC_VER >= 1900
- const int TestMapSubmessage::kTestMapFieldNumber;
- #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
- TestMapSubmessage::TestMapSubmessage()
- : ::google::protobuf::Message(), _internal_metadata_(NULL) {
- ::google::protobuf::internal::InitSCC(
- &protobuf_google_2fprotobuf_2fmap_5funittest_2eproto::scc_info_TestMapSubmessage.base);
- SharedCtor();
- // @@protoc_insertion_point(constructor:protobuf_unittest.TestMapSubmessage)
- }
- TestMapSubmessage::TestMapSubmessage(::google::protobuf::Arena* arena)
- : ::google::protobuf::Message(),
- _internal_metadata_(arena) {
- ::google::protobuf::internal::InitSCC(&protobuf_google_2fprotobuf_2fmap_5funittest_2eproto::scc_info_TestMapSubmessage.base);
- SharedCtor();
- RegisterArenaDtor(arena);
- // @@protoc_insertion_point(arena_constructor:protobuf_unittest.TestMapSubmessage)
- }
- TestMapSubmessage::TestMapSubmessage(const TestMapSubmessage& from)
- : ::google::protobuf::Message(),
- _internal_metadata_(NULL) {
- _internal_metadata_.MergeFrom(from._internal_metadata_);
- if (from.has_test_map()) {
- test_map_ = new ::protobuf_unittest::TestMap(*from.test_map_);
- } else {
- test_map_ = NULL;
- }
- // @@protoc_insertion_point(copy_constructor:protobuf_unittest.TestMapSubmessage)
- }
- void TestMapSubmessage::SharedCtor() {
- test_map_ = NULL;
- }
- TestMapSubmessage::~TestMapSubmessage() {
- // @@protoc_insertion_point(destructor:protobuf_unittest.TestMapSubmessage)
- SharedDtor();
- }
- void TestMapSubmessage::SharedDtor() {
- GOOGLE_DCHECK(GetArenaNoVirtual() == NULL);
- if (this != internal_default_instance()) delete test_map_;
- }
- void TestMapSubmessage::ArenaDtor(void* object) {
- TestMapSubmessage* _this = reinterpret_cast< TestMapSubmessage* >(object);
- (void)_this;
- }
- void TestMapSubmessage::RegisterArenaDtor(::google::protobuf::Arena* arena) {
- }
- void TestMapSubmessage::SetCachedSize(int size) const {
- _cached_size_.Set(size);
- }
- const ::google::protobuf::Descriptor* TestMapSubmessage::descriptor() {
- ::protobuf_google_2fprotobuf_2fmap_5funittest_2eproto::protobuf_AssignDescriptorsOnce();
- return ::protobuf_google_2fprotobuf_2fmap_5funittest_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
- }
- const TestMapSubmessage& TestMapSubmessage::default_instance() {
- ::google::protobuf::internal::InitSCC(&protobuf_google_2fprotobuf_2fmap_5funittest_2eproto::scc_info_TestMapSubmessage.base);
- return *internal_default_instance();
- }
- void TestMapSubmessage::Clear() {
- // @@protoc_insertion_point(message_clear_start:protobuf_unittest.TestMapSubmessage)
- ::google::protobuf::uint32 cached_has_bits = 0;
- // Prevent compiler warnings about cached_has_bits being unused
- (void) cached_has_bits;
- if (GetArenaNoVirtual() == NULL && test_map_ != NULL) {
- delete test_map_;
- }
- test_map_ = NULL;
- _internal_metadata_.Clear();
- }
- bool TestMapSubmessage::MergePartialFromCodedStream(
- ::google::protobuf::io::CodedInputStream* input) {
- #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
- ::google::protobuf::uint32 tag;
- // @@protoc_insertion_point(parse_start:protobuf_unittest.TestMapSubmessage)
- for (;;) {
- ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
- tag = p.first;
- if (!p.second) goto handle_unusual;
- switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
- // .protobuf_unittest.TestMap test_map = 1;
- case 1: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
- DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
- input, mutable_test_map()));
- } else {
- goto handle_unusual;
- }
- break;
- }
- default: {
- handle_unusual:
- if (tag == 0) {
- goto success;
- }
- DO_(::google::protobuf::internal::WireFormat::SkipField(
- input, tag, _internal_metadata_.mutable_unknown_fields()));
- break;
- }
- }
- }
- success:
- // @@protoc_insertion_point(parse_success:protobuf_unittest.TestMapSubmessage)
- return true;
- failure:
- // @@protoc_insertion_point(parse_failure:protobuf_unittest.TestMapSubmessage)
- return false;
- #undef DO_
- }
- void TestMapSubmessage::SerializeWithCachedSizes(
- ::google::protobuf::io::CodedOutputStream* output) const {
- // @@protoc_insertion_point(serialize_start:protobuf_unittest.TestMapSubmessage)
- ::google::protobuf::uint32 cached_has_bits = 0;
- (void) cached_has_bits;
- // .protobuf_unittest.TestMap test_map = 1;
- if (this->has_test_map()) {
- ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
- 1, this->_internal_test_map(), output);
- }
- if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
- ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
- (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output);
- }
- // @@protoc_insertion_point(serialize_end:protobuf_unittest.TestMapSubmessage)
- }
- ::google::protobuf::uint8* TestMapSubmessage::InternalSerializeWithCachedSizesToArray(
- bool deterministic, ::google::protobuf::uint8* target) const {
- (void)deterministic; // Unused
- // @@protoc_insertion_point(serialize_to_array_start:protobuf_unittest.TestMapSubmessage)
- ::google::protobuf::uint32 cached_has_bits = 0;
- (void) cached_has_bits;
- // .protobuf_unittest.TestMap test_map = 1;
- if (this->has_test_map()) {
- target = ::google::protobuf::internal::WireFormatLite::
- InternalWriteMessageToArray(
- 1, this->_internal_test_map(), deterministic, target);
- }
- if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
- target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
- (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target);
- }
- // @@protoc_insertion_point(serialize_to_array_end:protobuf_unittest.TestMapSubmessage)
- return target;
- }
- size_t TestMapSubmessage::ByteSizeLong() const {
- // @@protoc_insertion_point(message_byte_size_start:protobuf_unittest.TestMapSubmessage)
- size_t total_size = 0;
- if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
- total_size +=
- ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
- (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()));
- }
- // .protobuf_unittest.TestMap test_map = 1;
- if (this->has_test_map()) {
- total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::MessageSize(
- *test_map_);
- }
- int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
- SetCachedSize(cached_size);
- return total_size;
- }
- void TestMapSubmessage::MergeFrom(const ::google::protobuf::Message& from) {
- // @@protoc_insertion_point(generalized_merge_from_start:protobuf_unittest.TestMapSubmessage)
- GOOGLE_DCHECK_NE(&from, this);
- const TestMapSubmessage* source =
- ::google::protobuf::internal::DynamicCastToGenerated<const TestMapSubmessage>(
- &from);
- if (source == NULL) {
- // @@protoc_insertion_point(generalized_merge_from_cast_fail:protobuf_unittest.TestMapSubmessage)
- ::google::protobuf::internal::ReflectionOps::Merge(from, this);
- } else {
- // @@protoc_insertion_point(generalized_merge_from_cast_success:protobuf_unittest.TestMapSubmessage)
- MergeFrom(*source);
- }
- }
- void TestMapSubmessage::MergeFrom(const TestMapSubmessage& from) {
- // @@protoc_insertion_point(class_specific_merge_from_start:protobuf_unittest.TestMapSubmessage)
- GOOGLE_DCHECK_NE(&from, this);
- _internal_metadata_.MergeFrom(from._internal_metadata_);
- ::google::protobuf::uint32 cached_has_bits = 0;
- (void) cached_has_bits;
- if (from.has_test_map()) {
- mutable_test_map()->::protobuf_unittest::TestMap::MergeFrom(from.test_map());
- }
- }
- void TestMapSubmessage::CopyFrom(const ::google::protobuf::Message& from) {
- // @@protoc_insertion_point(generalized_copy_from_start:protobuf_unittest.TestMapSubmessage)
- if (&from == this) return;
- Clear();
- MergeFrom(from);
- }
- void TestMapSubmessage::CopyFrom(const TestMapSubmessage& from) {
- // @@protoc_insertion_point(class_specific_copy_from_start:protobuf_unittest.TestMapSubmessage)
- if (&from == this) return;
- Clear();
- MergeFrom(from);
- }
- bool TestMapSubmessage::IsInitialized() const {
- return true;
- }
- void TestMapSubmessage::Swap(TestMapSubmessage* other) {
- if (other == this) return;
- if (GetArenaNoVirtual() == other->GetArenaNoVirtual()) {
- InternalSwap(other);
- } else {
- TestMapSubmessage* temp = New(GetArenaNoVirtual());
- temp->MergeFrom(*other);
- other->CopyFrom(*this);
- InternalSwap(temp);
- if (GetArenaNoVirtual() == NULL) {
- delete temp;
- }
- }
- }
- void TestMapSubmessage::UnsafeArenaSwap(TestMapSubmessage* other) {
- if (other == this) return;
- GOOGLE_DCHECK(GetArenaNoVirtual() == other->GetArenaNoVirtual());
- InternalSwap(other);
- }
- void TestMapSubmessage::InternalSwap(TestMapSubmessage* other) {
- using std::swap;
- swap(test_map_, other->test_map_);
- _internal_metadata_.Swap(&other->_internal_metadata_);
- }
- ::google::protobuf::Metadata TestMapSubmessage::GetMetadata() const {
- protobuf_google_2fprotobuf_2fmap_5funittest_2eproto::protobuf_AssignDescriptorsOnce();
- return ::protobuf_google_2fprotobuf_2fmap_5funittest_2eproto::file_level_metadata[kIndexInFileMessages];
- }
- // ===================================================================
- TestMessageMap_MapInt32MessageEntry_DoNotUse::TestMessageMap_MapInt32MessageEntry_DoNotUse() {}
- TestMessageMap_MapInt32MessageEntry_DoNotUse::TestMessageMap_MapInt32MessageEntry_DoNotUse(::google::protobuf::Arena* arena) : SuperType(arena) {}
- void TestMessageMap_MapInt32MessageEntry_DoNotUse::MergeFrom(const TestMessageMap_MapInt32MessageEntry_DoNotUse& other) {
- MergeFromInternal(other);
- }
- ::google::protobuf::Metadata TestMessageMap_MapInt32MessageEntry_DoNotUse::GetMetadata() const {
- ::protobuf_google_2fprotobuf_2fmap_5funittest_2eproto::protobuf_AssignDescriptorsOnce();
- return ::protobuf_google_2fprotobuf_2fmap_5funittest_2eproto::file_level_metadata[21];
- }
- void TestMessageMap_MapInt32MessageEntry_DoNotUse::MergeFrom(
- const ::google::protobuf::Message& other) {
- ::google::protobuf::Message::MergeFrom(other);
- }
- // ===================================================================
- void TestMessageMap::InitAsDefaultInstance() {
- }
- void TestMessageMap::clear_map_int32_message() {
- map_int32_message_.Clear();
- }
- #if !defined(_MSC_VER) || _MSC_VER >= 1900
- const int TestMessageMap::kMapInt32MessageFieldNumber;
- #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
- TestMessageMap::TestMessageMap()
- : ::google::protobuf::Message(), _internal_metadata_(NULL) {
- ::google::protobuf::internal::InitSCC(
- &protobuf_google_2fprotobuf_2fmap_5funittest_2eproto::scc_info_TestMessageMap.base);
- SharedCtor();
- // @@protoc_insertion_point(constructor:protobuf_unittest.TestMessageMap)
- }
- TestMessageMap::TestMessageMap(::google::protobuf::Arena* arena)
- : ::google::protobuf::Message(),
- _internal_metadata_(arena),
- map_int32_message_(arena) {
- ::google::protobuf::internal::InitSCC(&protobuf_google_2fprotobuf_2fmap_5funittest_2eproto::scc_info_TestMessageMap.base);
- SharedCtor();
- RegisterArenaDtor(arena);
- // @@protoc_insertion_point(arena_constructor:protobuf_unittest.TestMessageMap)
- }
- TestMessageMap::TestMessageMap(const TestMessageMap& from)
- : ::google::protobuf::Message(),
- _internal_metadata_(NULL) {
- _internal_metadata_.MergeFrom(from._internal_metadata_);
- map_int32_message_.MergeFrom(from.map_int32_message_);
- // @@protoc_insertion_point(copy_constructor:protobuf_unittest.TestMessageMap)
- }
- void TestMessageMap::SharedCtor() {
- }
- TestMessageMap::~TestMessageMap() {
- // @@protoc_insertion_point(destructor:protobuf_unittest.TestMessageMap)
- SharedDtor();
- }
- void TestMessageMap::SharedDtor() {
- GOOGLE_DCHECK(GetArenaNoVirtual() == NULL);
- }
- void TestMessageMap::ArenaDtor(void* object) {
- TestMessageMap* _this = reinterpret_cast< TestMessageMap* >(object);
- (void)_this;
- }
- void TestMessageMap::RegisterArenaDtor(::google::protobuf::Arena* arena) {
- }
- void TestMessageMap::SetCachedSize(int size) const {
- _cached_size_.Set(size);
- }
- const ::google::protobuf::Descriptor* TestMessageMap::descriptor() {
- ::protobuf_google_2fprotobuf_2fmap_5funittest_2eproto::protobuf_AssignDescriptorsOnce();
- return ::protobuf_google_2fprotobuf_2fmap_5funittest_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
- }
- const TestMessageMap& TestMessageMap::default_instance() {
- ::google::protobuf::internal::InitSCC(&protobuf_google_2fprotobuf_2fmap_5funittest_2eproto::scc_info_TestMessageMap.base);
- return *internal_default_instance();
- }
- void TestMessageMap::Clear() {
- // @@protoc_insertion_point(message_clear_start:protobuf_unittest.TestMessageMap)
- ::google::protobuf::uint32 cached_has_bits = 0;
- // Prevent compiler warnings about cached_has_bits being unused
- (void) cached_has_bits;
- map_int32_message_.Clear();
- _internal_metadata_.Clear();
- }
- bool TestMessageMap::MergePartialFromCodedStream(
- ::google::protobuf::io::CodedInputStream* input) {
- #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
- ::google::protobuf::uint32 tag;
- // @@protoc_insertion_point(parse_start:protobuf_unittest.TestMessageMap)
- for (;;) {
- ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
- tag = p.first;
- if (!p.second) goto handle_unusual;
- switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
- // map<int32, .protobuf_unittest.TestAllTypes> map_int32_message = 1;
- case 1: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
- TestMessageMap_MapInt32MessageEntry_DoNotUse::Parser< ::google::protobuf::internal::MapField<
- TestMessageMap_MapInt32MessageEntry_DoNotUse,
- ::google::protobuf::int32, ::protobuf_unittest::TestAllTypes,
- ::google::protobuf::internal::WireFormatLite::TYPE_INT32,
- ::google::protobuf::internal::WireFormatLite::TYPE_MESSAGE,
- 0 >,
- ::google::protobuf::Map< ::google::protobuf::int32, ::protobuf_unittest::TestAllTypes > > parser(&map_int32_message_);
- DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
- input, &parser));
- } else {
- goto handle_unusual;
- }
- break;
- }
- default: {
- handle_unusual:
- if (tag == 0) {
- goto success;
- }
- DO_(::google::protobuf::internal::WireFormat::SkipField(
- input, tag, _internal_metadata_.mutable_unknown_fields()));
- break;
- }
- }
- }
- success:
- // @@protoc_insertion_point(parse_success:protobuf_unittest.TestMessageMap)
- return true;
- failure:
- // @@protoc_insertion_point(parse_failure:protobuf_unittest.TestMessageMap)
- return false;
- #undef DO_
- }
- void TestMessageMap::SerializeWithCachedSizes(
- ::google::protobuf::io::CodedOutputStream* output) const {
- // @@protoc_insertion_point(serialize_start:protobuf_unittest.TestMessageMap)
- ::google::protobuf::uint32 cached_has_bits = 0;
- (void) cached_has_bits;
- // map<int32, .protobuf_unittest.TestAllTypes> map_int32_message = 1;
- if (!this->map_int32_message().empty()) {
- typedef ::google::protobuf::Map< ::google::protobuf::int32, ::protobuf_unittest::TestAllTypes >::const_pointer
- ConstPtr;
- typedef ::google::protobuf::internal::SortItem< ::google::protobuf::int32, ConstPtr > SortItem;
- typedef ::google::protobuf::internal::CompareByFirstField<SortItem> Less;
- if (output->IsSerializationDeterministic() &&
- this->map_int32_message().size() > 1) {
- ::std::unique_ptr<SortItem[]> items(
- new SortItem[this->map_int32_message().size()]);
- typedef ::google::protobuf::Map< ::google::protobuf::int32, ::protobuf_unittest::TestAllTypes >::size_type size_type;
- size_type n = 0;
- for (::google::protobuf::Map< ::google::protobuf::int32, ::protobuf_unittest::TestAllTypes >::const_iterator
- it = this->map_int32_message().begin();
- it != this->map_int32_message().end(); ++it, ++n) {
- items[static_cast<ptrdiff_t>(n)] = SortItem(&*it);
- }
- ::std::sort(&items[0], &items[static_cast<ptrdiff_t>(n)], Less());
- ::std::unique_ptr<TestMessageMap_MapInt32MessageEntry_DoNotUse> entry;
- for (size_type i = 0; i < n; i++) {
- entry.reset(map_int32_message_.NewEntryWrapper(
- items[static_cast<ptrdiff_t>(i)].second->first, items[static_cast<ptrdiff_t>(i)].second->second));
- ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
- 1, *entry, output);
- if (entry->GetArena() != NULL) {
- entry.release();
- }
- }
- } else {
- ::std::unique_ptr<TestMessageMap_MapInt32MessageEntry_DoNotUse> entry;
- for (::google::protobuf::Map< ::google::protobuf::int32, ::protobuf_unittest::TestAllTypes >::const_iterator
- it = this->map_int32_message().begin();
- it != this->map_int32_message().end(); ++it) {
- entry.reset(map_int32_message_.NewEntryWrapper(
- it->first, it->second));
- ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
- 1, *entry, output);
- if (entry->GetArena() != NULL) {
- entry.release();
- }
- }
- }
- }
- if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
- ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
- (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output);
- }
- // @@protoc_insertion_point(serialize_end:protobuf_unittest.TestMessageMap)
- }
- ::google::protobuf::uint8* TestMessageMap::InternalSerializeWithCachedSizesToArray(
- bool deterministic, ::google::protobuf::uint8* target) const {
- (void)deterministic; // Unused
- // @@protoc_insertion_point(serialize_to_array_start:protobuf_unittest.TestMessageMap)
- ::google::protobuf::uint32 cached_has_bits = 0;
- (void) cached_has_bits;
- // map<int32, .protobuf_unittest.TestAllTypes> map_int32_message = 1;
- if (!this->map_int32_message().empty()) {
- typedef ::google::protobuf::Map< ::google::protobuf::int32, ::protobuf_unittest::TestAllTypes >::const_pointer
- ConstPtr;
- typedef ::google::protobuf::internal::SortItem< ::google::protobuf::int32, ConstPtr > SortItem;
- typedef ::google::protobuf::internal::CompareByFirstField<SortItem> Less;
- if (deterministic &&
- this->map_int32_message().size() > 1) {
- ::std::unique_ptr<SortItem[]> items(
- new SortItem[this->map_int32_message().size()]);
- typedef ::google::protobuf::Map< ::google::protobuf::int32, ::protobuf_unittest::TestAllTypes >::size_type size_type;
- size_type n = 0;
- for (::google::protobuf::Map< ::google::protobuf::int32, ::protobuf_unittest::TestAllTypes >::const_iterator
- it = this->map_int32_message().begin();
- it != this->map_int32_message().end(); ++it, ++n) {
- items[static_cast<ptrdiff_t>(n)] = SortItem(&*it);
- }
- ::std::sort(&items[0], &items[static_cast<ptrdiff_t>(n)], Less());
- ::std::unique_ptr<TestMessageMap_MapInt32MessageEntry_DoNotUse> entry;
- for (size_type i = 0; i < n; i++) {
- entry.reset(map_int32_message_.NewEntryWrapper(
- items[static_cast<ptrdiff_t>(i)].second->first, items[static_cast<ptrdiff_t>(i)].second->second));
- target = ::google::protobuf::internal::WireFormatLite::
- InternalWriteMessageNoVirtualToArray(
- 1, *entry, deterministic, target);
- ;
- if (entry->GetArena() != NULL) {
- entry.release();
- }
- }
- } else {
- ::std::unique_ptr<TestMessageMap_MapInt32MessageEntry_DoNotUse> entry;
- for (::google::protobuf::Map< ::google::protobuf::int32, ::protobuf_unittest::TestAllTypes >::const_iterator
- it = this->map_int32_message().begin();
- it != this->map_int32_message().end(); ++it) {
- entry.reset(map_int32_message_.NewEntryWrapper(
- it->first, it->second));
- target = ::google::protobuf::internal::WireFormatLite::
- InternalWriteMessageNoVirtualToArray(
- 1, *entry, deterministic, target);
- ;
- if (entry->GetArena() != NULL) {
- entry.release();
- }
- }
- }
- }
- if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
- target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
- (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target);
- }
- // @@protoc_insertion_point(serialize_to_array_end:protobuf_unittest.TestMessageMap)
- return target;
- }
- size_t TestMessageMap::ByteSizeLong() const {
- // @@protoc_insertion_point(message_byte_size_start:protobuf_unittest.TestMessageMap)
- size_t total_size = 0;
- if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
- total_size +=
- ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
- (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()));
- }
- // map<int32, .protobuf_unittest.TestAllTypes> map_int32_message = 1;
- total_size += 1 *
- ::google::protobuf::internal::FromIntSize(this->map_int32_message_size());
- {
- ::std::unique_ptr<TestMessageMap_MapInt32MessageEntry_DoNotUse> entry;
- for (::google::protobuf::Map< ::google::protobuf::int32, ::protobuf_unittest::TestAllTypes >::const_iterator
- it = this->map_int32_message().begin();
- it != this->map_int32_message().end(); ++it) {
- if (entry.get() != NULL && entry->GetArena() != NULL) {
- entry.release();
- }
- entry.reset(map_int32_message_.NewEntryWrapper(it->first, it->second));
- total_size += ::google::protobuf::internal::WireFormatLite::
- MessageSizeNoVirtual(*entry);
- }
- if (entry.get() != NULL && entry->GetArena() != NULL) {
- entry.release();
- }
- }
- int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
- SetCachedSize(cached_size);
- return total_size;
- }
- void TestMessageMap::MergeFrom(const ::google::protobuf::Message& from) {
- // @@protoc_insertion_point(generalized_merge_from_start:protobuf_unittest.TestMessageMap)
- GOOGLE_DCHECK_NE(&from, this);
- const TestMessageMap* source =
- ::google::protobuf::internal::DynamicCastToGenerated<const TestMessageMap>(
- &from);
- if (source == NULL) {
- // @@protoc_insertion_point(generalized_merge_from_cast_fail:protobuf_unittest.TestMessageMap)
- ::google::protobuf::internal::ReflectionOps::Merge(from, this);
- } else {
- // @@protoc_insertion_point(generalized_merge_from_cast_success:protobuf_unittest.TestMessageMap)
- MergeFrom(*source);
- }
- }
- void TestMessageMap::MergeFrom(const TestMessageMap& from) {
- // @@protoc_insertion_point(class_specific_merge_from_start:protobuf_unittest.TestMessageMap)
- GOOGLE_DCHECK_NE(&from, this);
- _internal_metadata_.MergeFrom(from._internal_metadata_);
- ::google::protobuf::uint32 cached_has_bits = 0;
- (void) cached_has_bits;
- map_int32_message_.MergeFrom(from.map_int32_message_);
- }
- void TestMessageMap::CopyFrom(const ::google::protobuf::Message& from) {
- // @@protoc_insertion_point(generalized_copy_from_start:protobuf_unittest.TestMessageMap)
- if (&from == this) return;
- Clear();
- MergeFrom(from);
- }
- void TestMessageMap::CopyFrom(const TestMessageMap& from) {
- // @@protoc_insertion_point(class_specific_copy_from_start:protobuf_unittest.TestMessageMap)
- if (&from == this) return;
- Clear();
- MergeFrom(from);
- }
- bool TestMessageMap::IsInitialized() const {
- return true;
- }
- void TestMessageMap::Swap(TestMessageMap* other) {
- if (other == this) return;
- if (GetArenaNoVirtual() == other->GetArenaNoVirtual()) {
- InternalSwap(other);
- } else {
- TestMessageMap* temp = New(GetArenaNoVirtual());
- temp->MergeFrom(*other);
- other->CopyFrom(*this);
- InternalSwap(temp);
- if (GetArenaNoVirtual() == NULL) {
- delete temp;
- }
- }
- }
- void TestMessageMap::UnsafeArenaSwap(TestMessageMap* other) {
- if (other == this) return;
- GOOGLE_DCHECK(GetArenaNoVirtual() == other->GetArenaNoVirtual());
- InternalSwap(other);
- }
- void TestMessageMap::InternalSwap(TestMessageMap* other) {
- using std::swap;
- map_int32_message_.Swap(&other->map_int32_message_);
- _internal_metadata_.Swap(&other->_internal_metadata_);
- }
- ::google::protobuf::Metadata TestMessageMap::GetMetadata() const {
- protobuf_google_2fprotobuf_2fmap_5funittest_2eproto::protobuf_AssignDescriptorsOnce();
- return ::protobuf_google_2fprotobuf_2fmap_5funittest_2eproto::file_level_metadata[kIndexInFileMessages];
- }
- // ===================================================================
- TestSameTypeMap_Map1Entry_DoNotUse::TestSameTypeMap_Map1Entry_DoNotUse() {}
- TestSameTypeMap_Map1Entry_DoNotUse::TestSameTypeMap_Map1Entry_DoNotUse(::google::protobuf::Arena* arena) : SuperType(arena) {}
- void TestSameTypeMap_Map1Entry_DoNotUse::MergeFrom(const TestSameTypeMap_Map1Entry_DoNotUse& other) {
- MergeFromInternal(other);
- }
- ::google::protobuf::Metadata TestSameTypeMap_Map1Entry_DoNotUse::GetMetadata() const {
- ::protobuf_google_2fprotobuf_2fmap_5funittest_2eproto::protobuf_AssignDescriptorsOnce();
- return ::protobuf_google_2fprotobuf_2fmap_5funittest_2eproto::file_level_metadata[23];
- }
- void TestSameTypeMap_Map1Entry_DoNotUse::MergeFrom(
- const ::google::protobuf::Message& other) {
- ::google::protobuf::Message::MergeFrom(other);
- }
- // ===================================================================
- TestSameTypeMap_Map2Entry_DoNotUse::TestSameTypeMap_Map2Entry_DoNotUse() {}
- TestSameTypeMap_Map2Entry_DoNotUse::TestSameTypeMap_Map2Entry_DoNotUse(::google::protobuf::Arena* arena) : SuperType(arena) {}
- void TestSameTypeMap_Map2Entry_DoNotUse::MergeFrom(const TestSameTypeMap_Map2Entry_DoNotUse& other) {
- MergeFromInternal(other);
- }
- ::google::protobuf::Metadata TestSameTypeMap_Map2Entry_DoNotUse::GetMetadata() const {
- ::protobuf_google_2fprotobuf_2fmap_5funittest_2eproto::protobuf_AssignDescriptorsOnce();
- return ::protobuf_google_2fprotobuf_2fmap_5funittest_2eproto::file_level_metadata[24];
- }
- void TestSameTypeMap_Map2Entry_DoNotUse::MergeFrom(
- const ::google::protobuf::Message& other) {
- ::google::protobuf::Message::MergeFrom(other);
- }
- // ===================================================================
- void TestSameTypeMap::InitAsDefaultInstance() {
- }
- #if !defined(_MSC_VER) || _MSC_VER >= 1900
- const int TestSameTypeMap::kMap1FieldNumber;
- const int TestSameTypeMap::kMap2FieldNumber;
- #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
- TestSameTypeMap::TestSameTypeMap()
- : ::google::protobuf::Message(), _internal_metadata_(NULL) {
- ::google::protobuf::internal::InitSCC(
- &protobuf_google_2fprotobuf_2fmap_5funittest_2eproto::scc_info_TestSameTypeMap.base);
- SharedCtor();
- // @@protoc_insertion_point(constructor:protobuf_unittest.TestSameTypeMap)
- }
- TestSameTypeMap::TestSameTypeMap(::google::protobuf::Arena* arena)
- : ::google::protobuf::Message(),
- _internal_metadata_(arena),
- map1_(arena),
- map2_(arena) {
- ::google::protobuf::internal::InitSCC(&protobuf_google_2fprotobuf_2fmap_5funittest_2eproto::scc_info_TestSameTypeMap.base);
- SharedCtor();
- RegisterArenaDtor(arena);
- // @@protoc_insertion_point(arena_constructor:protobuf_unittest.TestSameTypeMap)
- }
- TestSameTypeMap::TestSameTypeMap(const TestSameTypeMap& from)
- : ::google::protobuf::Message(),
- _internal_metadata_(NULL) {
- _internal_metadata_.MergeFrom(from._internal_metadata_);
- map1_.MergeFrom(from.map1_);
- map2_.MergeFrom(from.map2_);
- // @@protoc_insertion_point(copy_constructor:protobuf_unittest.TestSameTypeMap)
- }
- void TestSameTypeMap::SharedCtor() {
- }
- TestSameTypeMap::~TestSameTypeMap() {
- // @@protoc_insertion_point(destructor:protobuf_unittest.TestSameTypeMap)
- SharedDtor();
- }
- void TestSameTypeMap::SharedDtor() {
- GOOGLE_DCHECK(GetArenaNoVirtual() == NULL);
- }
- void TestSameTypeMap::ArenaDtor(void* object) {
- TestSameTypeMap* _this = reinterpret_cast< TestSameTypeMap* >(object);
- (void)_this;
- }
- void TestSameTypeMap::RegisterArenaDtor(::google::protobuf::Arena* arena) {
- }
- void TestSameTypeMap::SetCachedSize(int size) const {
- _cached_size_.Set(size);
- }
- const ::google::protobuf::Descriptor* TestSameTypeMap::descriptor() {
- ::protobuf_google_2fprotobuf_2fmap_5funittest_2eproto::protobuf_AssignDescriptorsOnce();
- return ::protobuf_google_2fprotobuf_2fmap_5funittest_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
- }
- const TestSameTypeMap& TestSameTypeMap::default_instance() {
- ::google::protobuf::internal::InitSCC(&protobuf_google_2fprotobuf_2fmap_5funittest_2eproto::scc_info_TestSameTypeMap.base);
- return *internal_default_instance();
- }
- void TestSameTypeMap::Clear() {
- // @@protoc_insertion_point(message_clear_start:protobuf_unittest.TestSameTypeMap)
- ::google::protobuf::uint32 cached_has_bits = 0;
- // Prevent compiler warnings about cached_has_bits being unused
- (void) cached_has_bits;
- map1_.Clear();
- map2_.Clear();
- _internal_metadata_.Clear();
- }
- bool TestSameTypeMap::MergePartialFromCodedStream(
- ::google::protobuf::io::CodedInputStream* input) {
- #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
- ::google::protobuf::uint32 tag;
- // @@protoc_insertion_point(parse_start:protobuf_unittest.TestSameTypeMap)
- for (;;) {
- ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
- tag = p.first;
- if (!p.second) goto handle_unusual;
- switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
- // map<int32, int32> map1 = 1;
- case 1: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
- TestSameTypeMap_Map1Entry_DoNotUse::Parser< ::google::protobuf::internal::MapField<
- TestSameTypeMap_Map1Entry_DoNotUse,
- ::google::protobuf::int32, ::google::protobuf::int32,
- ::google::protobuf::internal::WireFormatLite::TYPE_INT32,
- ::google::protobuf::internal::WireFormatLite::TYPE_INT32,
- 0 >,
- ::google::protobuf::Map< ::google::protobuf::int32, ::google::protobuf::int32 > > parser(&map1_);
- DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
- input, &parser));
- } else {
- goto handle_unusual;
- }
- break;
- }
- // map<int32, int32> map2 = 2;
- case 2: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) {
- TestSameTypeMap_Map2Entry_DoNotUse::Parser< ::google::protobuf::internal::MapField<
- TestSameTypeMap_Map2Entry_DoNotUse,
- ::google::protobuf::int32, ::google::protobuf::int32,
- ::google::protobuf::internal::WireFormatLite::TYPE_INT32,
- ::google::protobuf::internal::WireFormatLite::TYPE_INT32,
- 0 >,
- ::google::protobuf::Map< ::google::protobuf::int32, ::google::protobuf::int32 > > parser(&map2_);
- DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
- input, &parser));
- } else {
- goto handle_unusual;
- }
- break;
- }
- default: {
- handle_unusual:
- if (tag == 0) {
- goto success;
- }
- DO_(::google::protobuf::internal::WireFormat::SkipField(
- input, tag, _internal_metadata_.mutable_unknown_fields()));
- break;
- }
- }
- }
- success:
- // @@protoc_insertion_point(parse_success:protobuf_unittest.TestSameTypeMap)
- return true;
- failure:
- // @@protoc_insertion_point(parse_failure:protobuf_unittest.TestSameTypeMap)
- return false;
- #undef DO_
- }
- void TestSameTypeMap::SerializeWithCachedSizes(
- ::google::protobuf::io::CodedOutputStream* output) const {
- // @@protoc_insertion_point(serialize_start:protobuf_unittest.TestSameTypeMap)
- ::google::protobuf::uint32 cached_has_bits = 0;
- (void) cached_has_bits;
- // map<int32, int32> map1 = 1;
- if (!this->map1().empty()) {
- typedef ::google::protobuf::Map< ::google::protobuf::int32, ::google::protobuf::int32 >::const_pointer
- ConstPtr;
- typedef ::google::protobuf::internal::SortItem< ::google::protobuf::int32, ConstPtr > SortItem;
- typedef ::google::protobuf::internal::CompareByFirstField<SortItem> Less;
- if (output->IsSerializationDeterministic() &&
- this->map1().size() > 1) {
- ::std::unique_ptr<SortItem[]> items(
- new SortItem[this->map1().size()]);
- typedef ::google::protobuf::Map< ::google::protobuf::int32, ::google::protobuf::int32 >::size_type size_type;
- size_type n = 0;
- for (::google::protobuf::Map< ::google::protobuf::int32, ::google::protobuf::int32 >::const_iterator
- it = this->map1().begin();
- it != this->map1().end(); ++it, ++n) {
- items[static_cast<ptrdiff_t>(n)] = SortItem(&*it);
- }
- ::std::sort(&items[0], &items[static_cast<ptrdiff_t>(n)], Less());
- ::std::unique_ptr<TestSameTypeMap_Map1Entry_DoNotUse> entry;
- for (size_type i = 0; i < n; i++) {
- entry.reset(map1_.NewEntryWrapper(
- items[static_cast<ptrdiff_t>(i)].second->first, items[static_cast<ptrdiff_t>(i)].second->second));
- ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
- 1, *entry, output);
- if (entry->GetArena() != NULL) {
- entry.release();
- }
- }
- } else {
- ::std::unique_ptr<TestSameTypeMap_Map1Entry_DoNotUse> entry;
- for (::google::protobuf::Map< ::google::protobuf::int32, ::google::protobuf::int32 >::const_iterator
- it = this->map1().begin();
- it != this->map1().end(); ++it) {
- entry.reset(map1_.NewEntryWrapper(
- it->first, it->second));
- ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
- 1, *entry, output);
- if (entry->GetArena() != NULL) {
- entry.release();
- }
- }
- }
- }
- // map<int32, int32> map2 = 2;
- if (!this->map2().empty()) {
- typedef ::google::protobuf::Map< ::google::protobuf::int32, ::google::protobuf::int32 >::const_pointer
- ConstPtr;
- typedef ::google::protobuf::internal::SortItem< ::google::protobuf::int32, ConstPtr > SortItem;
- typedef ::google::protobuf::internal::CompareByFirstField<SortItem> Less;
- if (output->IsSerializationDeterministic() &&
- this->map2().size() > 1) {
- ::std::unique_ptr<SortItem[]> items(
- new SortItem[this->map2().size()]);
- typedef ::google::protobuf::Map< ::google::protobuf::int32, ::google::protobuf::int32 >::size_type size_type;
- size_type n = 0;
- for (::google::protobuf::Map< ::google::protobuf::int32, ::google::protobuf::int32 >::const_iterator
- it = this->map2().begin();
- it != this->map2().end(); ++it, ++n) {
- items[static_cast<ptrdiff_t>(n)] = SortItem(&*it);
- }
- ::std::sort(&items[0], &items[static_cast<ptrdiff_t>(n)], Less());
- ::std::unique_ptr<TestSameTypeMap_Map2Entry_DoNotUse> entry;
- for (size_type i = 0; i < n; i++) {
- entry.reset(map2_.NewEntryWrapper(
- items[static_cast<ptrdiff_t>(i)].second->first, items[static_cast<ptrdiff_t>(i)].second->second));
- ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
- 2, *entry, output);
- if (entry->GetArena() != NULL) {
- entry.release();
- }
- }
- } else {
- ::std::unique_ptr<TestSameTypeMap_Map2Entry_DoNotUse> entry;
- for (::google::protobuf::Map< ::google::protobuf::int32, ::google::protobuf::int32 >::const_iterator
- it = this->map2().begin();
- it != this->map2().end(); ++it) {
- entry.reset(map2_.NewEntryWrapper(
- it->first, it->second));
- ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
- 2, *entry, output);
- if (entry->GetArena() != NULL) {
- entry.release();
- }
- }
- }
- }
- if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
- ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
- (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output);
- }
- // @@protoc_insertion_point(serialize_end:protobuf_unittest.TestSameTypeMap)
- }
- ::google::protobuf::uint8* TestSameTypeMap::InternalSerializeWithCachedSizesToArray(
- bool deterministic, ::google::protobuf::uint8* target) const {
- (void)deterministic; // Unused
- // @@protoc_insertion_point(serialize_to_array_start:protobuf_unittest.TestSameTypeMap)
- ::google::protobuf::uint32 cached_has_bits = 0;
- (void) cached_has_bits;
- // map<int32, int32> map1 = 1;
- if (!this->map1().empty()) {
- typedef ::google::protobuf::Map< ::google::protobuf::int32, ::google::protobuf::int32 >::const_pointer
- ConstPtr;
- typedef ::google::protobuf::internal::SortItem< ::google::protobuf::int32, ConstPtr > SortItem;
- typedef ::google::protobuf::internal::CompareByFirstField<SortItem> Less;
- if (deterministic &&
- this->map1().size() > 1) {
- ::std::unique_ptr<SortItem[]> items(
- new SortItem[this->map1().size()]);
- typedef ::google::protobuf::Map< ::google::protobuf::int32, ::google::protobuf::int32 >::size_type size_type;
- size_type n = 0;
- for (::google::protobuf::Map< ::google::protobuf::int32, ::google::protobuf::int32 >::const_iterator
- it = this->map1().begin();
- it != this->map1().end(); ++it, ++n) {
- items[static_cast<ptrdiff_t>(n)] = SortItem(&*it);
- }
- ::std::sort(&items[0], &items[static_cast<ptrdiff_t>(n)], Less());
- ::std::unique_ptr<TestSameTypeMap_Map1Entry_DoNotUse> entry;
- for (size_type i = 0; i < n; i++) {
- entry.reset(map1_.NewEntryWrapper(
- items[static_cast<ptrdiff_t>(i)].second->first, items[static_cast<ptrdiff_t>(i)].second->second));
- target = ::google::protobuf::internal::WireFormatLite::
- InternalWriteMessageNoVirtualToArray(
- 1, *entry, deterministic, target);
- ;
- if (entry->GetArena() != NULL) {
- entry.release();
- }
- }
- } else {
- ::std::unique_ptr<TestSameTypeMap_Map1Entry_DoNotUse> entry;
- for (::google::protobuf::Map< ::google::protobuf::int32, ::google::protobuf::int32 >::const_iterator
- it = this->map1().begin();
- it != this->map1().end(); ++it) {
- entry.reset(map1_.NewEntryWrapper(
- it->first, it->second));
- target = ::google::protobuf::internal::WireFormatLite::
- InternalWriteMessageNoVirtualToArray(
- 1, *entry, deterministic, target);
- ;
- if (entry->GetArena() != NULL) {
- entry.release();
- }
- }
- }
- }
- // map<int32, int32> map2 = 2;
- if (!this->map2().empty()) {
- typedef ::google::protobuf::Map< ::google::protobuf::int32, ::google::protobuf::int32 >::const_pointer
- ConstPtr;
- typedef ::google::protobuf::internal::SortItem< ::google::protobuf::int32, ConstPtr > SortItem;
- typedef ::google::protobuf::internal::CompareByFirstField<SortItem> Less;
- if (deterministic &&
- this->map2().size() > 1) {
- ::std::unique_ptr<SortItem[]> items(
- new SortItem[this->map2().size()]);
- typedef ::google::protobuf::Map< ::google::protobuf::int32, ::google::protobuf::int32 >::size_type size_type;
- size_type n = 0;
- for (::google::protobuf::Map< ::google::protobuf::int32, ::google::protobuf::int32 >::const_iterator
- it = this->map2().begin();
- it != this->map2().end(); ++it, ++n) {
- items[static_cast<ptrdiff_t>(n)] = SortItem(&*it);
- }
- ::std::sort(&items[0], &items[static_cast<ptrdiff_t>(n)], Less());
- ::std::unique_ptr<TestSameTypeMap_Map2Entry_DoNotUse> entry;
- for (size_type i = 0; i < n; i++) {
- entry.reset(map2_.NewEntryWrapper(
- items[static_cast<ptrdiff_t>(i)].second->first, items[static_cast<ptrdiff_t>(i)].second->second));
- target = ::google::protobuf::internal::WireFormatLite::
- InternalWriteMessageNoVirtualToArray(
- 2, *entry, deterministic, target);
- ;
- if (entry->GetArena() != NULL) {
- entry.release();
- }
- }
- } else {
- ::std::unique_ptr<TestSameTypeMap_Map2Entry_DoNotUse> entry;
- for (::google::protobuf::Map< ::google::protobuf::int32, ::google::protobuf::int32 >::const_iterator
- it = this->map2().begin();
- it != this->map2().end(); ++it) {
- entry.reset(map2_.NewEntryWrapper(
- it->first, it->second));
- target = ::google::protobuf::internal::WireFormatLite::
- InternalWriteMessageNoVirtualToArray(
- 2, *entry, deterministic, target);
- ;
- if (entry->GetArena() != NULL) {
- entry.release();
- }
- }
- }
- }
- if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
- target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
- (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target);
- }
- // @@protoc_insertion_point(serialize_to_array_end:protobuf_unittest.TestSameTypeMap)
- return target;
- }
- size_t TestSameTypeMap::ByteSizeLong() const {
- // @@protoc_insertion_point(message_byte_size_start:protobuf_unittest.TestSameTypeMap)
- size_t total_size = 0;
- if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
- total_size +=
- ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
- (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()));
- }
- // map<int32, int32> map1 = 1;
- total_size += 1 *
- ::google::protobuf::internal::FromIntSize(this->map1_size());
- {
- ::std::unique_ptr<TestSameTypeMap_Map1Entry_DoNotUse> entry;
- for (::google::protobuf::Map< ::google::protobuf::int32, ::google::protobuf::int32 >::const_iterator
- it = this->map1().begin();
- it != this->map1().end(); ++it) {
- if (entry.get() != NULL && entry->GetArena() != NULL) {
- entry.release();
- }
- entry.reset(map1_.NewEntryWrapper(it->first, it->second));
- total_size += ::google::protobuf::internal::WireFormatLite::
- MessageSizeNoVirtual(*entry);
- }
- if (entry.get() != NULL && entry->GetArena() != NULL) {
- entry.release();
- }
- }
- // map<int32, int32> map2 = 2;
- total_size += 1 *
- ::google::protobuf::internal::FromIntSize(this->map2_size());
- {
- ::std::unique_ptr<TestSameTypeMap_Map2Entry_DoNotUse> entry;
- for (::google::protobuf::Map< ::google::protobuf::int32, ::google::protobuf::int32 >::const_iterator
- it = this->map2().begin();
- it != this->map2().end(); ++it) {
- if (entry.get() != NULL && entry->GetArena() != NULL) {
- entry.release();
- }
- entry.reset(map2_.NewEntryWrapper(it->first, it->second));
- total_size += ::google::protobuf::internal::WireFormatLite::
- MessageSizeNoVirtual(*entry);
- }
- if (entry.get() != NULL && entry->GetArena() != NULL) {
- entry.release();
- }
- }
- int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
- SetCachedSize(cached_size);
- return total_size;
- }
- void TestSameTypeMap::MergeFrom(const ::google::protobuf::Message& from) {
- // @@protoc_insertion_point(generalized_merge_from_start:protobuf_unittest.TestSameTypeMap)
- GOOGLE_DCHECK_NE(&from, this);
- const TestSameTypeMap* source =
- ::google::protobuf::internal::DynamicCastToGenerated<const TestSameTypeMap>(
- &from);
- if (source == NULL) {
- // @@protoc_insertion_point(generalized_merge_from_cast_fail:protobuf_unittest.TestSameTypeMap)
- ::google::protobuf::internal::ReflectionOps::Merge(from, this);
- } else {
- // @@protoc_insertion_point(generalized_merge_from_cast_success:protobuf_unittest.TestSameTypeMap)
- MergeFrom(*source);
- }
- }
- void TestSameTypeMap::MergeFrom(const TestSameTypeMap& from) {
- // @@protoc_insertion_point(class_specific_merge_from_start:protobuf_unittest.TestSameTypeMap)
- GOOGLE_DCHECK_NE(&from, this);
- _internal_metadata_.MergeFrom(from._internal_metadata_);
- ::google::protobuf::uint32 cached_has_bits = 0;
- (void) cached_has_bits;
- map1_.MergeFrom(from.map1_);
- map2_.MergeFrom(from.map2_);
- }
- void TestSameTypeMap::CopyFrom(const ::google::protobuf::Message& from) {
- // @@protoc_insertion_point(generalized_copy_from_start:protobuf_unittest.TestSameTypeMap)
- if (&from == this) return;
- Clear();
- MergeFrom(from);
- }
- void TestSameTypeMap::CopyFrom(const TestSameTypeMap& from) {
- // @@protoc_insertion_point(class_specific_copy_from_start:protobuf_unittest.TestSameTypeMap)
- if (&from == this) return;
- Clear();
- MergeFrom(from);
- }
- bool TestSameTypeMap::IsInitialized() const {
- return true;
- }
- void TestSameTypeMap::Swap(TestSameTypeMap* other) {
- if (other == this) return;
- if (GetArenaNoVirtual() == other->GetArenaNoVirtual()) {
- InternalSwap(other);
- } else {
- TestSameTypeMap* temp = New(GetArenaNoVirtual());
- temp->MergeFrom(*other);
- other->CopyFrom(*this);
- InternalSwap(temp);
- if (GetArenaNoVirtual() == NULL) {
- delete temp;
- }
- }
- }
- void TestSameTypeMap::UnsafeArenaSwap(TestSameTypeMap* other) {
- if (other == this) return;
- GOOGLE_DCHECK(GetArenaNoVirtual() == other->GetArenaNoVirtual());
- InternalSwap(other);
- }
- void TestSameTypeMap::InternalSwap(TestSameTypeMap* other) {
- using std::swap;
- map1_.Swap(&other->map1_);
- map2_.Swap(&other->map2_);
- _internal_metadata_.Swap(&other->_internal_metadata_);
- }
- ::google::protobuf::Metadata TestSameTypeMap::GetMetadata() const {
- protobuf_google_2fprotobuf_2fmap_5funittest_2eproto::protobuf_AssignDescriptorsOnce();
- return ::protobuf_google_2fprotobuf_2fmap_5funittest_2eproto::file_level_metadata[kIndexInFileMessages];
- }
- // ===================================================================
- TestRequiredMessageMap_MapFieldEntry_DoNotUse::TestRequiredMessageMap_MapFieldEntry_DoNotUse() {}
- TestRequiredMessageMap_MapFieldEntry_DoNotUse::TestRequiredMessageMap_MapFieldEntry_DoNotUse(::google::protobuf::Arena* arena) : SuperType(arena) {}
- void TestRequiredMessageMap_MapFieldEntry_DoNotUse::MergeFrom(const TestRequiredMessageMap_MapFieldEntry_DoNotUse& other) {
- MergeFromInternal(other);
- }
- ::google::protobuf::Metadata TestRequiredMessageMap_MapFieldEntry_DoNotUse::GetMetadata() const {
- ::protobuf_google_2fprotobuf_2fmap_5funittest_2eproto::protobuf_AssignDescriptorsOnce();
- return ::protobuf_google_2fprotobuf_2fmap_5funittest_2eproto::file_level_metadata[26];
- }
- void TestRequiredMessageMap_MapFieldEntry_DoNotUse::MergeFrom(
- const ::google::protobuf::Message& other) {
- ::google::protobuf::Message::MergeFrom(other);
- }
- // ===================================================================
- void TestRequiredMessageMap::InitAsDefaultInstance() {
- }
- void TestRequiredMessageMap::clear_map_field() {
- map_field_.Clear();
- }
- #if !defined(_MSC_VER) || _MSC_VER >= 1900
- const int TestRequiredMessageMap::kMapFieldFieldNumber;
- #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
- TestRequiredMessageMap::TestRequiredMessageMap()
- : ::google::protobuf::Message(), _internal_metadata_(NULL) {
- ::google::protobuf::internal::InitSCC(
- &protobuf_google_2fprotobuf_2fmap_5funittest_2eproto::scc_info_TestRequiredMessageMap.base);
- SharedCtor();
- // @@protoc_insertion_point(constructor:protobuf_unittest.TestRequiredMessageMap)
- }
- TestRequiredMessageMap::TestRequiredMessageMap(::google::protobuf::Arena* arena)
- : ::google::protobuf::Message(),
- _internal_metadata_(arena),
- map_field_(arena) {
- ::google::protobuf::internal::InitSCC(&protobuf_google_2fprotobuf_2fmap_5funittest_2eproto::scc_info_TestRequiredMessageMap.base);
- SharedCtor();
- RegisterArenaDtor(arena);
- // @@protoc_insertion_point(arena_constructor:protobuf_unittest.TestRequiredMessageMap)
- }
- TestRequiredMessageMap::TestRequiredMessageMap(const TestRequiredMessageMap& from)
- : ::google::protobuf::Message(),
- _internal_metadata_(NULL) {
- _internal_metadata_.MergeFrom(from._internal_metadata_);
- map_field_.MergeFrom(from.map_field_);
- // @@protoc_insertion_point(copy_constructor:protobuf_unittest.TestRequiredMessageMap)
- }
- void TestRequiredMessageMap::SharedCtor() {
- }
- TestRequiredMessageMap::~TestRequiredMessageMap() {
- // @@protoc_insertion_point(destructor:protobuf_unittest.TestRequiredMessageMap)
- SharedDtor();
- }
- void TestRequiredMessageMap::SharedDtor() {
- GOOGLE_DCHECK(GetArenaNoVirtual() == NULL);
- }
- void TestRequiredMessageMap::ArenaDtor(void* object) {
- TestRequiredMessageMap* _this = reinterpret_cast< TestRequiredMessageMap* >(object);
- (void)_this;
- }
- void TestRequiredMessageMap::RegisterArenaDtor(::google::protobuf::Arena* arena) {
- }
- void TestRequiredMessageMap::SetCachedSize(int size) const {
- _cached_size_.Set(size);
- }
- const ::google::protobuf::Descriptor* TestRequiredMessageMap::descriptor() {
- ::protobuf_google_2fprotobuf_2fmap_5funittest_2eproto::protobuf_AssignDescriptorsOnce();
- return ::protobuf_google_2fprotobuf_2fmap_5funittest_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
- }
- const TestRequiredMessageMap& TestRequiredMessageMap::default_instance() {
- ::google::protobuf::internal::InitSCC(&protobuf_google_2fprotobuf_2fmap_5funittest_2eproto::scc_info_TestRequiredMessageMap.base);
- return *internal_default_instance();
- }
- void TestRequiredMessageMap::Clear() {
- // @@protoc_insertion_point(message_clear_start:protobuf_unittest.TestRequiredMessageMap)
- ::google::protobuf::uint32 cached_has_bits = 0;
- // Prevent compiler warnings about cached_has_bits being unused
- (void) cached_has_bits;
- map_field_.Clear();
- _internal_metadata_.Clear();
- }
- bool TestRequiredMessageMap::MergePartialFromCodedStream(
- ::google::protobuf::io::CodedInputStream* input) {
- #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
- ::google::protobuf::uint32 tag;
- // @@protoc_insertion_point(parse_start:protobuf_unittest.TestRequiredMessageMap)
- for (;;) {
- ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
- tag = p.first;
- if (!p.second) goto handle_unusual;
- switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
- // map<int32, .protobuf_unittest.TestRequired> map_field = 1;
- case 1: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
- TestRequiredMessageMap_MapFieldEntry_DoNotUse::Parser< ::google::protobuf::internal::MapField<
- TestRequiredMessageMap_MapFieldEntry_DoNotUse,
- ::google::protobuf::int32, ::protobuf_unittest::TestRequired,
- ::google::protobuf::internal::WireFormatLite::TYPE_INT32,
- ::google::protobuf::internal::WireFormatLite::TYPE_MESSAGE,
- 0 >,
- ::google::protobuf::Map< ::google::protobuf::int32, ::protobuf_unittest::TestRequired > > parser(&map_field_);
- DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
- input, &parser));
- } else {
- goto handle_unusual;
- }
- break;
- }
- default: {
- handle_unusual:
- if (tag == 0) {
- goto success;
- }
- DO_(::google::protobuf::internal::WireFormat::SkipField(
- input, tag, _internal_metadata_.mutable_unknown_fields()));
- break;
- }
- }
- }
- success:
- // @@protoc_insertion_point(parse_success:protobuf_unittest.TestRequiredMessageMap)
- return true;
- failure:
- // @@protoc_insertion_point(parse_failure:protobuf_unittest.TestRequiredMessageMap)
- return false;
- #undef DO_
- }
- void TestRequiredMessageMap::SerializeWithCachedSizes(
- ::google::protobuf::io::CodedOutputStream* output) const {
- // @@protoc_insertion_point(serialize_start:protobuf_unittest.TestRequiredMessageMap)
- ::google::protobuf::uint32 cached_has_bits = 0;
- (void) cached_has_bits;
- // map<int32, .protobuf_unittest.TestRequired> map_field = 1;
- if (!this->map_field().empty()) {
- typedef ::google::protobuf::Map< ::google::protobuf::int32, ::protobuf_unittest::TestRequired >::const_pointer
- ConstPtr;
- typedef ::google::protobuf::internal::SortItem< ::google::protobuf::int32, ConstPtr > SortItem;
- typedef ::google::protobuf::internal::CompareByFirstField<SortItem> Less;
- if (output->IsSerializationDeterministic() &&
- this->map_field().size() > 1) {
- ::std::unique_ptr<SortItem[]> items(
- new SortItem[this->map_field().size()]);
- typedef ::google::protobuf::Map< ::google::protobuf::int32, ::protobuf_unittest::TestRequired >::size_type size_type;
- size_type n = 0;
- for (::google::protobuf::Map< ::google::protobuf::int32, ::protobuf_unittest::TestRequired >::const_iterator
- it = this->map_field().begin();
- it != this->map_field().end(); ++it, ++n) {
- items[static_cast<ptrdiff_t>(n)] = SortItem(&*it);
- }
- ::std::sort(&items[0], &items[static_cast<ptrdiff_t>(n)], Less());
- ::std::unique_ptr<TestRequiredMessageMap_MapFieldEntry_DoNotUse> entry;
- for (size_type i = 0; i < n; i++) {
- entry.reset(map_field_.NewEntryWrapper(
- items[static_cast<ptrdiff_t>(i)].second->first, items[static_cast<ptrdiff_t>(i)].second->second));
- ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
- 1, *entry, output);
- if (entry->GetArena() != NULL) {
- entry.release();
- }
- }
- } else {
- ::std::unique_ptr<TestRequiredMessageMap_MapFieldEntry_DoNotUse> entry;
- for (::google::protobuf::Map< ::google::protobuf::int32, ::protobuf_unittest::TestRequired >::const_iterator
- it = this->map_field().begin();
- it != this->map_field().end(); ++it) {
- entry.reset(map_field_.NewEntryWrapper(
- it->first, it->second));
- ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
- 1, *entry, output);
- if (entry->GetArena() != NULL) {
- entry.release();
- }
- }
- }
- }
- if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
- ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
- (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output);
- }
- // @@protoc_insertion_point(serialize_end:protobuf_unittest.TestRequiredMessageMap)
- }
- ::google::protobuf::uint8* TestRequiredMessageMap::InternalSerializeWithCachedSizesToArray(
- bool deterministic, ::google::protobuf::uint8* target) const {
- (void)deterministic; // Unused
- // @@protoc_insertion_point(serialize_to_array_start:protobuf_unittest.TestRequiredMessageMap)
- ::google::protobuf::uint32 cached_has_bits = 0;
- (void) cached_has_bits;
- // map<int32, .protobuf_unittest.TestRequired> map_field = 1;
- if (!this->map_field().empty()) {
- typedef ::google::protobuf::Map< ::google::protobuf::int32, ::protobuf_unittest::TestRequired >::const_pointer
- ConstPtr;
- typedef ::google::protobuf::internal::SortItem< ::google::protobuf::int32, ConstPtr > SortItem;
- typedef ::google::protobuf::internal::CompareByFirstField<SortItem> Less;
- if (deterministic &&
- this->map_field().size() > 1) {
- ::std::unique_ptr<SortItem[]> items(
- new SortItem[this->map_field().size()]);
- typedef ::google::protobuf::Map< ::google::protobuf::int32, ::protobuf_unittest::TestRequired >::size_type size_type;
- size_type n = 0;
- for (::google::protobuf::Map< ::google::protobuf::int32, ::protobuf_unittest::TestRequired >::const_iterator
- it = this->map_field().begin();
- it != this->map_field().end(); ++it, ++n) {
- items[static_cast<ptrdiff_t>(n)] = SortItem(&*it);
- }
- ::std::sort(&items[0], &items[static_cast<ptrdiff_t>(n)], Less());
- ::std::unique_ptr<TestRequiredMessageMap_MapFieldEntry_DoNotUse> entry;
- for (size_type i = 0; i < n; i++) {
- entry.reset(map_field_.NewEntryWrapper(
- items[static_cast<ptrdiff_t>(i)].second->first, items[static_cast<ptrdiff_t>(i)].second->second));
- target = ::google::protobuf::internal::WireFormatLite::
- InternalWriteMessageNoVirtualToArray(
- 1, *entry, deterministic, target);
- ;
- if (entry->GetArena() != NULL) {
- entry.release();
- }
- }
- } else {
- ::std::unique_ptr<TestRequiredMessageMap_MapFieldEntry_DoNotUse> entry;
- for (::google::protobuf::Map< ::google::protobuf::int32, ::protobuf_unittest::TestRequired >::const_iterator
- it = this->map_field().begin();
- it != this->map_field().end(); ++it) {
- entry.reset(map_field_.NewEntryWrapper(
- it->first, it->second));
- target = ::google::protobuf::internal::WireFormatLite::
- InternalWriteMessageNoVirtualToArray(
- 1, *entry, deterministic, target);
- ;
- if (entry->GetArena() != NULL) {
- entry.release();
- }
- }
- }
- }
- if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
- target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
- (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target);
- }
- // @@protoc_insertion_point(serialize_to_array_end:protobuf_unittest.TestRequiredMessageMap)
- return target;
- }
- size_t TestRequiredMessageMap::ByteSizeLong() const {
- // @@protoc_insertion_point(message_byte_size_start:protobuf_unittest.TestRequiredMessageMap)
- size_t total_size = 0;
- if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
- total_size +=
- ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
- (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()));
- }
- // map<int32, .protobuf_unittest.TestRequired> map_field = 1;
- total_size += 1 *
- ::google::protobuf::internal::FromIntSize(this->map_field_size());
- {
- ::std::unique_ptr<TestRequiredMessageMap_MapFieldEntry_DoNotUse> entry;
- for (::google::protobuf::Map< ::google::protobuf::int32, ::protobuf_unittest::TestRequired >::const_iterator
- it = this->map_field().begin();
- it != this->map_field().end(); ++it) {
- if (entry.get() != NULL && entry->GetArena() != NULL) {
- entry.release();
- }
- entry.reset(map_field_.NewEntryWrapper(it->first, it->second));
- total_size += ::google::protobuf::internal::WireFormatLite::
- MessageSizeNoVirtual(*entry);
- }
- if (entry.get() != NULL && entry->GetArena() != NULL) {
- entry.release();
- }
- }
- int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
- SetCachedSize(cached_size);
- return total_size;
- }
- void TestRequiredMessageMap::MergeFrom(const ::google::protobuf::Message& from) {
- // @@protoc_insertion_point(generalized_merge_from_start:protobuf_unittest.TestRequiredMessageMap)
- GOOGLE_DCHECK_NE(&from, this);
- const TestRequiredMessageMap* source =
- ::google::protobuf::internal::DynamicCastToGenerated<const TestRequiredMessageMap>(
- &from);
- if (source == NULL) {
- // @@protoc_insertion_point(generalized_merge_from_cast_fail:protobuf_unittest.TestRequiredMessageMap)
- ::google::protobuf::internal::ReflectionOps::Merge(from, this);
- } else {
- // @@protoc_insertion_point(generalized_merge_from_cast_success:protobuf_unittest.TestRequiredMessageMap)
- MergeFrom(*source);
- }
- }
- void TestRequiredMessageMap::MergeFrom(const TestRequiredMessageMap& from) {
- // @@protoc_insertion_point(class_specific_merge_from_start:protobuf_unittest.TestRequiredMessageMap)
- GOOGLE_DCHECK_NE(&from, this);
- _internal_metadata_.MergeFrom(from._internal_metadata_);
- ::google::protobuf::uint32 cached_has_bits = 0;
- (void) cached_has_bits;
- map_field_.MergeFrom(from.map_field_);
- }
- void TestRequiredMessageMap::CopyFrom(const ::google::protobuf::Message& from) {
- // @@protoc_insertion_point(generalized_copy_from_start:protobuf_unittest.TestRequiredMessageMap)
- if (&from == this) return;
- Clear();
- MergeFrom(from);
- }
- void TestRequiredMessageMap::CopyFrom(const TestRequiredMessageMap& from) {
- // @@protoc_insertion_point(class_specific_copy_from_start:protobuf_unittest.TestRequiredMessageMap)
- if (&from == this) return;
- Clear();
- MergeFrom(from);
- }
- bool TestRequiredMessageMap::IsInitialized() const {
- if (!::google::protobuf::internal::AllAreInitialized(this->map_field())) return false;
- return true;
- }
- void TestRequiredMessageMap::Swap(TestRequiredMessageMap* other) {
- if (other == this) return;
- if (GetArenaNoVirtual() == other->GetArenaNoVirtual()) {
- InternalSwap(other);
- } else {
- TestRequiredMessageMap* temp = New(GetArenaNoVirtual());
- temp->MergeFrom(*other);
- other->CopyFrom(*this);
- InternalSwap(temp);
- if (GetArenaNoVirtual() == NULL) {
- delete temp;
- }
- }
- }
- void TestRequiredMessageMap::UnsafeArenaSwap(TestRequiredMessageMap* other) {
- if (other == this) return;
- GOOGLE_DCHECK(GetArenaNoVirtual() == other->GetArenaNoVirtual());
- InternalSwap(other);
- }
- void TestRequiredMessageMap::InternalSwap(TestRequiredMessageMap* other) {
- using std::swap;
- map_field_.Swap(&other->map_field_);
- _internal_metadata_.Swap(&other->_internal_metadata_);
- }
- ::google::protobuf::Metadata TestRequiredMessageMap::GetMetadata() const {
- protobuf_google_2fprotobuf_2fmap_5funittest_2eproto::protobuf_AssignDescriptorsOnce();
- return ::protobuf_google_2fprotobuf_2fmap_5funittest_2eproto::file_level_metadata[kIndexInFileMessages];
- }
- // ===================================================================
- TestArenaMap_MapInt32Int32Entry_DoNotUse::TestArenaMap_MapInt32Int32Entry_DoNotUse() {}
- TestArenaMap_MapInt32Int32Entry_DoNotUse::TestArenaMap_MapInt32Int32Entry_DoNotUse(::google::protobuf::Arena* arena) : SuperType(arena) {}
- void TestArenaMap_MapInt32Int32Entry_DoNotUse::MergeFrom(const TestArenaMap_MapInt32Int32Entry_DoNotUse& other) {
- MergeFromInternal(other);
- }
- ::google::protobuf::Metadata TestArenaMap_MapInt32Int32Entry_DoNotUse::GetMetadata() const {
- ::protobuf_google_2fprotobuf_2fmap_5funittest_2eproto::protobuf_AssignDescriptorsOnce();
- return ::protobuf_google_2fprotobuf_2fmap_5funittest_2eproto::file_level_metadata[28];
- }
- void TestArenaMap_MapInt32Int32Entry_DoNotUse::MergeFrom(
- const ::google::protobuf::Message& other) {
- ::google::protobuf::Message::MergeFrom(other);
- }
- // ===================================================================
- TestArenaMap_MapInt64Int64Entry_DoNotUse::TestArenaMap_MapInt64Int64Entry_DoNotUse() {}
- TestArenaMap_MapInt64Int64Entry_DoNotUse::TestArenaMap_MapInt64Int64Entry_DoNotUse(::google::protobuf::Arena* arena) : SuperType(arena) {}
- void TestArenaMap_MapInt64Int64Entry_DoNotUse::MergeFrom(const TestArenaMap_MapInt64Int64Entry_DoNotUse& other) {
- MergeFromInternal(other);
- }
- ::google::protobuf::Metadata TestArenaMap_MapInt64Int64Entry_DoNotUse::GetMetadata() const {
- ::protobuf_google_2fprotobuf_2fmap_5funittest_2eproto::protobuf_AssignDescriptorsOnce();
- return ::protobuf_google_2fprotobuf_2fmap_5funittest_2eproto::file_level_metadata[29];
- }
- void TestArenaMap_MapInt64Int64Entry_DoNotUse::MergeFrom(
- const ::google::protobuf::Message& other) {
- ::google::protobuf::Message::MergeFrom(other);
- }
- // ===================================================================
- TestArenaMap_MapUint32Uint32Entry_DoNotUse::TestArenaMap_MapUint32Uint32Entry_DoNotUse() {}
- TestArenaMap_MapUint32Uint32Entry_DoNotUse::TestArenaMap_MapUint32Uint32Entry_DoNotUse(::google::protobuf::Arena* arena) : SuperType(arena) {}
- void TestArenaMap_MapUint32Uint32Entry_DoNotUse::MergeFrom(const TestArenaMap_MapUint32Uint32Entry_DoNotUse& other) {
- MergeFromInternal(other);
- }
- ::google::protobuf::Metadata TestArenaMap_MapUint32Uint32Entry_DoNotUse::GetMetadata() const {
- ::protobuf_google_2fprotobuf_2fmap_5funittest_2eproto::protobuf_AssignDescriptorsOnce();
- return ::protobuf_google_2fprotobuf_2fmap_5funittest_2eproto::file_level_metadata[30];
- }
- void TestArenaMap_MapUint32Uint32Entry_DoNotUse::MergeFrom(
- const ::google::protobuf::Message& other) {
- ::google::protobuf::Message::MergeFrom(other);
- }
- // ===================================================================
- TestArenaMap_MapUint64Uint64Entry_DoNotUse::TestArenaMap_MapUint64Uint64Entry_DoNotUse() {}
- TestArenaMap_MapUint64Uint64Entry_DoNotUse::TestArenaMap_MapUint64Uint64Entry_DoNotUse(::google::protobuf::Arena* arena) : SuperType(arena) {}
- void TestArenaMap_MapUint64Uint64Entry_DoNotUse::MergeFrom(const TestArenaMap_MapUint64Uint64Entry_DoNotUse& other) {
- MergeFromInternal(other);
- }
- ::google::protobuf::Metadata TestArenaMap_MapUint64Uint64Entry_DoNotUse::GetMetadata() const {
- ::protobuf_google_2fprotobuf_2fmap_5funittest_2eproto::protobuf_AssignDescriptorsOnce();
- return ::protobuf_google_2fprotobuf_2fmap_5funittest_2eproto::file_level_metadata[31];
- }
- void TestArenaMap_MapUint64Uint64Entry_DoNotUse::MergeFrom(
- const ::google::protobuf::Message& other) {
- ::google::protobuf::Message::MergeFrom(other);
- }
- // ===================================================================
- TestArenaMap_MapSint32Sint32Entry_DoNotUse::TestArenaMap_MapSint32Sint32Entry_DoNotUse() {}
- TestArenaMap_MapSint32Sint32Entry_DoNotUse::TestArenaMap_MapSint32Sint32Entry_DoNotUse(::google::protobuf::Arena* arena) : SuperType(arena) {}
- void TestArenaMap_MapSint32Sint32Entry_DoNotUse::MergeFrom(const TestArenaMap_MapSint32Sint32Entry_DoNotUse& other) {
- MergeFromInternal(other);
- }
- ::google::protobuf::Metadata TestArenaMap_MapSint32Sint32Entry_DoNotUse::GetMetadata() const {
- ::protobuf_google_2fprotobuf_2fmap_5funittest_2eproto::protobuf_AssignDescriptorsOnce();
- return ::protobuf_google_2fprotobuf_2fmap_5funittest_2eproto::file_level_metadata[32];
- }
- void TestArenaMap_MapSint32Sint32Entry_DoNotUse::MergeFrom(
- const ::google::protobuf::Message& other) {
- ::google::protobuf::Message::MergeFrom(other);
- }
- // ===================================================================
- TestArenaMap_MapSint64Sint64Entry_DoNotUse::TestArenaMap_MapSint64Sint64Entry_DoNotUse() {}
- TestArenaMap_MapSint64Sint64Entry_DoNotUse::TestArenaMap_MapSint64Sint64Entry_DoNotUse(::google::protobuf::Arena* arena) : SuperType(arena) {}
- void TestArenaMap_MapSint64Sint64Entry_DoNotUse::MergeFrom(const TestArenaMap_MapSint64Sint64Entry_DoNotUse& other) {
- MergeFromInternal(other);
- }
- ::google::protobuf::Metadata TestArenaMap_MapSint64Sint64Entry_DoNotUse::GetMetadata() const {
- ::protobuf_google_2fprotobuf_2fmap_5funittest_2eproto::protobuf_AssignDescriptorsOnce();
- return ::protobuf_google_2fprotobuf_2fmap_5funittest_2eproto::file_level_metadata[33];
- }
- void TestArenaMap_MapSint64Sint64Entry_DoNotUse::MergeFrom(
- const ::google::protobuf::Message& other) {
- ::google::protobuf::Message::MergeFrom(other);
- }
- // ===================================================================
- TestArenaMap_MapFixed32Fixed32Entry_DoNotUse::TestArenaMap_MapFixed32Fixed32Entry_DoNotUse() {}
- TestArenaMap_MapFixed32Fixed32Entry_DoNotUse::TestArenaMap_MapFixed32Fixed32Entry_DoNotUse(::google::protobuf::Arena* arena) : SuperType(arena) {}
- void TestArenaMap_MapFixed32Fixed32Entry_DoNotUse::MergeFrom(const TestArenaMap_MapFixed32Fixed32Entry_DoNotUse& other) {
- MergeFromInternal(other);
- }
- ::google::protobuf::Metadata TestArenaMap_MapFixed32Fixed32Entry_DoNotUse::GetMetadata() const {
- ::protobuf_google_2fprotobuf_2fmap_5funittest_2eproto::protobuf_AssignDescriptorsOnce();
- return ::protobuf_google_2fprotobuf_2fmap_5funittest_2eproto::file_level_metadata[34];
- }
- void TestArenaMap_MapFixed32Fixed32Entry_DoNotUse::MergeFrom(
- const ::google::protobuf::Message& other) {
- ::google::protobuf::Message::MergeFrom(other);
- }
- // ===================================================================
- TestArenaMap_MapFixed64Fixed64Entry_DoNotUse::TestArenaMap_MapFixed64Fixed64Entry_DoNotUse() {}
- TestArenaMap_MapFixed64Fixed64Entry_DoNotUse::TestArenaMap_MapFixed64Fixed64Entry_DoNotUse(::google::protobuf::Arena* arena) : SuperType(arena) {}
- void TestArenaMap_MapFixed64Fixed64Entry_DoNotUse::MergeFrom(const TestArenaMap_MapFixed64Fixed64Entry_DoNotUse& other) {
- MergeFromInternal(other);
- }
- ::google::protobuf::Metadata TestArenaMap_MapFixed64Fixed64Entry_DoNotUse::GetMetadata() const {
- ::protobuf_google_2fprotobuf_2fmap_5funittest_2eproto::protobuf_AssignDescriptorsOnce();
- return ::protobuf_google_2fprotobuf_2fmap_5funittest_2eproto::file_level_metadata[35];
- }
- void TestArenaMap_MapFixed64Fixed64Entry_DoNotUse::MergeFrom(
- const ::google::protobuf::Message& other) {
- ::google::protobuf::Message::MergeFrom(other);
- }
- // ===================================================================
- TestArenaMap_MapSfixed32Sfixed32Entry_DoNotUse::TestArenaMap_MapSfixed32Sfixed32Entry_DoNotUse() {}
- TestArenaMap_MapSfixed32Sfixed32Entry_DoNotUse::TestArenaMap_MapSfixed32Sfixed32Entry_DoNotUse(::google::protobuf::Arena* arena) : SuperType(arena) {}
- void TestArenaMap_MapSfixed32Sfixed32Entry_DoNotUse::MergeFrom(const TestArenaMap_MapSfixed32Sfixed32Entry_DoNotUse& other) {
- MergeFromInternal(other);
- }
- ::google::protobuf::Metadata TestArenaMap_MapSfixed32Sfixed32Entry_DoNotUse::GetMetadata() const {
- ::protobuf_google_2fprotobuf_2fmap_5funittest_2eproto::protobuf_AssignDescriptorsOnce();
- return ::protobuf_google_2fprotobuf_2fmap_5funittest_2eproto::file_level_metadata[36];
- }
- void TestArenaMap_MapSfixed32Sfixed32Entry_DoNotUse::MergeFrom(
- const ::google::protobuf::Message& other) {
- ::google::protobuf::Message::MergeFrom(other);
- }
- // ===================================================================
- TestArenaMap_MapSfixed64Sfixed64Entry_DoNotUse::TestArenaMap_MapSfixed64Sfixed64Entry_DoNotUse() {}
- TestArenaMap_MapSfixed64Sfixed64Entry_DoNotUse::TestArenaMap_MapSfixed64Sfixed64Entry_DoNotUse(::google::protobuf::Arena* arena) : SuperType(arena) {}
- void TestArenaMap_MapSfixed64Sfixed64Entry_DoNotUse::MergeFrom(const TestArenaMap_MapSfixed64Sfixed64Entry_DoNotUse& other) {
- MergeFromInternal(other);
- }
- ::google::protobuf::Metadata TestArenaMap_MapSfixed64Sfixed64Entry_DoNotUse::GetMetadata() const {
- ::protobuf_google_2fprotobuf_2fmap_5funittest_2eproto::protobuf_AssignDescriptorsOnce();
- return ::protobuf_google_2fprotobuf_2fmap_5funittest_2eproto::file_level_metadata[37];
- }
- void TestArenaMap_MapSfixed64Sfixed64Entry_DoNotUse::MergeFrom(
- const ::google::protobuf::Message& other) {
- ::google::protobuf::Message::MergeFrom(other);
- }
- // ===================================================================
- TestArenaMap_MapInt32FloatEntry_DoNotUse::TestArenaMap_MapInt32FloatEntry_DoNotUse() {}
- TestArenaMap_MapInt32FloatEntry_DoNotUse::TestArenaMap_MapInt32FloatEntry_DoNotUse(::google::protobuf::Arena* arena) : SuperType(arena) {}
- void TestArenaMap_MapInt32FloatEntry_DoNotUse::MergeFrom(const TestArenaMap_MapInt32FloatEntry_DoNotUse& other) {
- MergeFromInternal(other);
- }
- ::google::protobuf::Metadata TestArenaMap_MapInt32FloatEntry_DoNotUse::GetMetadata() const {
- ::protobuf_google_2fprotobuf_2fmap_5funittest_2eproto::protobuf_AssignDescriptorsOnce();
- return ::protobuf_google_2fprotobuf_2fmap_5funittest_2eproto::file_level_metadata[38];
- }
- void TestArenaMap_MapInt32FloatEntry_DoNotUse::MergeFrom(
- const ::google::protobuf::Message& other) {
- ::google::protobuf::Message::MergeFrom(other);
- }
- // ===================================================================
- TestArenaMap_MapInt32DoubleEntry_DoNotUse::TestArenaMap_MapInt32DoubleEntry_DoNotUse() {}
- TestArenaMap_MapInt32DoubleEntry_DoNotUse::TestArenaMap_MapInt32DoubleEntry_DoNotUse(::google::protobuf::Arena* arena) : SuperType(arena) {}
- void TestArenaMap_MapInt32DoubleEntry_DoNotUse::MergeFrom(const TestArenaMap_MapInt32DoubleEntry_DoNotUse& other) {
- MergeFromInternal(other);
- }
- ::google::protobuf::Metadata TestArenaMap_MapInt32DoubleEntry_DoNotUse::GetMetadata() const {
- ::protobuf_google_2fprotobuf_2fmap_5funittest_2eproto::protobuf_AssignDescriptorsOnce();
- return ::protobuf_google_2fprotobuf_2fmap_5funittest_2eproto::file_level_metadata[39];
- }
- void TestArenaMap_MapInt32DoubleEntry_DoNotUse::MergeFrom(
- const ::google::protobuf::Message& other) {
- ::google::protobuf::Message::MergeFrom(other);
- }
- // ===================================================================
- TestArenaMap_MapBoolBoolEntry_DoNotUse::TestArenaMap_MapBoolBoolEntry_DoNotUse() {}
- TestArenaMap_MapBoolBoolEntry_DoNotUse::TestArenaMap_MapBoolBoolEntry_DoNotUse(::google::protobuf::Arena* arena) : SuperType(arena) {}
- void TestArenaMap_MapBoolBoolEntry_DoNotUse::MergeFrom(const TestArenaMap_MapBoolBoolEntry_DoNotUse& other) {
- MergeFromInternal(other);
- }
- ::google::protobuf::Metadata TestArenaMap_MapBoolBoolEntry_DoNotUse::GetMetadata() const {
- ::protobuf_google_2fprotobuf_2fmap_5funittest_2eproto::protobuf_AssignDescriptorsOnce();
- return ::protobuf_google_2fprotobuf_2fmap_5funittest_2eproto::file_level_metadata[40];
- }
- void TestArenaMap_MapBoolBoolEntry_DoNotUse::MergeFrom(
- const ::google::protobuf::Message& other) {
- ::google::protobuf::Message::MergeFrom(other);
- }
- // ===================================================================
- TestArenaMap_MapStringStringEntry_DoNotUse::TestArenaMap_MapStringStringEntry_DoNotUse() {}
- TestArenaMap_MapStringStringEntry_DoNotUse::TestArenaMap_MapStringStringEntry_DoNotUse(::google::protobuf::Arena* arena) : SuperType(arena) {}
- void TestArenaMap_MapStringStringEntry_DoNotUse::MergeFrom(const TestArenaMap_MapStringStringEntry_DoNotUse& other) {
- MergeFromInternal(other);
- }
- ::google::protobuf::Metadata TestArenaMap_MapStringStringEntry_DoNotUse::GetMetadata() const {
- ::protobuf_google_2fprotobuf_2fmap_5funittest_2eproto::protobuf_AssignDescriptorsOnce();
- return ::protobuf_google_2fprotobuf_2fmap_5funittest_2eproto::file_level_metadata[41];
- }
- void TestArenaMap_MapStringStringEntry_DoNotUse::MergeFrom(
- const ::google::protobuf::Message& other) {
- ::google::protobuf::Message::MergeFrom(other);
- }
- // ===================================================================
- TestArenaMap_MapInt32BytesEntry_DoNotUse::TestArenaMap_MapInt32BytesEntry_DoNotUse() {}
- TestArenaMap_MapInt32BytesEntry_DoNotUse::TestArenaMap_MapInt32BytesEntry_DoNotUse(::google::protobuf::Arena* arena) : SuperType(arena) {}
- void TestArenaMap_MapInt32BytesEntry_DoNotUse::MergeFrom(const TestArenaMap_MapInt32BytesEntry_DoNotUse& other) {
- MergeFromInternal(other);
- }
- ::google::protobuf::Metadata TestArenaMap_MapInt32BytesEntry_DoNotUse::GetMetadata() const {
- ::protobuf_google_2fprotobuf_2fmap_5funittest_2eproto::protobuf_AssignDescriptorsOnce();
- return ::protobuf_google_2fprotobuf_2fmap_5funittest_2eproto::file_level_metadata[42];
- }
- void TestArenaMap_MapInt32BytesEntry_DoNotUse::MergeFrom(
- const ::google::protobuf::Message& other) {
- ::google::protobuf::Message::MergeFrom(other);
- }
- // ===================================================================
- TestArenaMap_MapInt32EnumEntry_DoNotUse::TestArenaMap_MapInt32EnumEntry_DoNotUse() {}
- TestArenaMap_MapInt32EnumEntry_DoNotUse::TestArenaMap_MapInt32EnumEntry_DoNotUse(::google::protobuf::Arena* arena) : SuperType(arena) {}
- void TestArenaMap_MapInt32EnumEntry_DoNotUse::MergeFrom(const TestArenaMap_MapInt32EnumEntry_DoNotUse& other) {
- MergeFromInternal(other);
- }
- ::google::protobuf::Metadata TestArenaMap_MapInt32EnumEntry_DoNotUse::GetMetadata() const {
- ::protobuf_google_2fprotobuf_2fmap_5funittest_2eproto::protobuf_AssignDescriptorsOnce();
- return ::protobuf_google_2fprotobuf_2fmap_5funittest_2eproto::file_level_metadata[43];
- }
- void TestArenaMap_MapInt32EnumEntry_DoNotUse::MergeFrom(
- const ::google::protobuf::Message& other) {
- ::google::protobuf::Message::MergeFrom(other);
- }
- // ===================================================================
- TestArenaMap_MapInt32ForeignMessageEntry_DoNotUse::TestArenaMap_MapInt32ForeignMessageEntry_DoNotUse() {}
- TestArenaMap_MapInt32ForeignMessageEntry_DoNotUse::TestArenaMap_MapInt32ForeignMessageEntry_DoNotUse(::google::protobuf::Arena* arena) : SuperType(arena) {}
- void TestArenaMap_MapInt32ForeignMessageEntry_DoNotUse::MergeFrom(const TestArenaMap_MapInt32ForeignMessageEntry_DoNotUse& other) {
- MergeFromInternal(other);
- }
- ::google::protobuf::Metadata TestArenaMap_MapInt32ForeignMessageEntry_DoNotUse::GetMetadata() const {
- ::protobuf_google_2fprotobuf_2fmap_5funittest_2eproto::protobuf_AssignDescriptorsOnce();
- return ::protobuf_google_2fprotobuf_2fmap_5funittest_2eproto::file_level_metadata[44];
- }
- void TestArenaMap_MapInt32ForeignMessageEntry_DoNotUse::MergeFrom(
- const ::google::protobuf::Message& other) {
- ::google::protobuf::Message::MergeFrom(other);
- }
- // ===================================================================
- TestArenaMap_MapInt32ForeignMessageNoArenaEntry_DoNotUse::TestArenaMap_MapInt32ForeignMessageNoArenaEntry_DoNotUse() {}
- TestArenaMap_MapInt32ForeignMessageNoArenaEntry_DoNotUse::TestArenaMap_MapInt32ForeignMessageNoArenaEntry_DoNotUse(::google::protobuf::Arena* arena) : SuperType(arena) {}
- void TestArenaMap_MapInt32ForeignMessageNoArenaEntry_DoNotUse::MergeFrom(const TestArenaMap_MapInt32ForeignMessageNoArenaEntry_DoNotUse& other) {
- MergeFromInternal(other);
- }
- ::google::protobuf::Metadata TestArenaMap_MapInt32ForeignMessageNoArenaEntry_DoNotUse::GetMetadata() const {
- ::protobuf_google_2fprotobuf_2fmap_5funittest_2eproto::protobuf_AssignDescriptorsOnce();
- return ::protobuf_google_2fprotobuf_2fmap_5funittest_2eproto::file_level_metadata[45];
- }
- void TestArenaMap_MapInt32ForeignMessageNoArenaEntry_DoNotUse::MergeFrom(
- const ::google::protobuf::Message& other) {
- ::google::protobuf::Message::MergeFrom(other);
- }
- // ===================================================================
- void TestArenaMap::InitAsDefaultInstance() {
- }
- void TestArenaMap::clear_map_int32_foreign_message() {
- map_int32_foreign_message_.Clear();
- }
- void TestArenaMap::clear_map_int32_foreign_message_no_arena() {
- map_int32_foreign_message_no_arena_.Clear();
- }
- #if !defined(_MSC_VER) || _MSC_VER >= 1900
- const int TestArenaMap::kMapInt32Int32FieldNumber;
- const int TestArenaMap::kMapInt64Int64FieldNumber;
- const int TestArenaMap::kMapUint32Uint32FieldNumber;
- const int TestArenaMap::kMapUint64Uint64FieldNumber;
- const int TestArenaMap::kMapSint32Sint32FieldNumber;
- const int TestArenaMap::kMapSint64Sint64FieldNumber;
- const int TestArenaMap::kMapFixed32Fixed32FieldNumber;
- const int TestArenaMap::kMapFixed64Fixed64FieldNumber;
- const int TestArenaMap::kMapSfixed32Sfixed32FieldNumber;
- const int TestArenaMap::kMapSfixed64Sfixed64FieldNumber;
- const int TestArenaMap::kMapInt32FloatFieldNumber;
- const int TestArenaMap::kMapInt32DoubleFieldNumber;
- const int TestArenaMap::kMapBoolBoolFieldNumber;
- const int TestArenaMap::kMapStringStringFieldNumber;
- const int TestArenaMap::kMapInt32BytesFieldNumber;
- const int TestArenaMap::kMapInt32EnumFieldNumber;
- const int TestArenaMap::kMapInt32ForeignMessageFieldNumber;
- const int TestArenaMap::kMapInt32ForeignMessageNoArenaFieldNumber;
- #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
- TestArenaMap::TestArenaMap()
- : ::google::protobuf::Message(), _internal_metadata_(NULL) {
- ::google::protobuf::internal::InitSCC(
- &protobuf_google_2fprotobuf_2fmap_5funittest_2eproto::scc_info_TestArenaMap.base);
- SharedCtor();
- // @@protoc_insertion_point(constructor:protobuf_unittest.TestArenaMap)
- }
- TestArenaMap::TestArenaMap(::google::protobuf::Arena* arena)
- : ::google::protobuf::Message(),
- _internal_metadata_(arena),
- map_int32_int32_(arena),
- map_int64_int64_(arena),
- map_uint32_uint32_(arena),
- map_uint64_uint64_(arena),
- map_sint32_sint32_(arena),
- map_sint64_sint64_(arena),
- map_fixed32_fixed32_(arena),
- map_fixed64_fixed64_(arena),
- map_sfixed32_sfixed32_(arena),
- map_sfixed64_sfixed64_(arena),
- map_int32_float_(arena),
- map_int32_double_(arena),
- map_bool_bool_(arena),
- map_string_string_(arena),
- map_int32_bytes_(arena),
- map_int32_enum_(arena),
- map_int32_foreign_message_(arena),
- map_int32_foreign_message_no_arena_(arena) {
- ::google::protobuf::internal::InitSCC(&protobuf_google_2fprotobuf_2fmap_5funittest_2eproto::scc_info_TestArenaMap.base);
- SharedCtor();
- RegisterArenaDtor(arena);
- // @@protoc_insertion_point(arena_constructor:protobuf_unittest.TestArenaMap)
- }
- TestArenaMap::TestArenaMap(const TestArenaMap& from)
- : ::google::protobuf::Message(),
- _internal_metadata_(NULL) {
- _internal_metadata_.MergeFrom(from._internal_metadata_);
- map_int32_int32_.MergeFrom(from.map_int32_int32_);
- map_int64_int64_.MergeFrom(from.map_int64_int64_);
- map_uint32_uint32_.MergeFrom(from.map_uint32_uint32_);
- map_uint64_uint64_.MergeFrom(from.map_uint64_uint64_);
- map_sint32_sint32_.MergeFrom(from.map_sint32_sint32_);
- map_sint64_sint64_.MergeFrom(from.map_sint64_sint64_);
- map_fixed32_fixed32_.MergeFrom(from.map_fixed32_fixed32_);
- map_fixed64_fixed64_.MergeFrom(from.map_fixed64_fixed64_);
- map_sfixed32_sfixed32_.MergeFrom(from.map_sfixed32_sfixed32_);
- map_sfixed64_sfixed64_.MergeFrom(from.map_sfixed64_sfixed64_);
- map_int32_float_.MergeFrom(from.map_int32_float_);
- map_int32_double_.MergeFrom(from.map_int32_double_);
- map_bool_bool_.MergeFrom(from.map_bool_bool_);
- map_string_string_.MergeFrom(from.map_string_string_);
- map_int32_bytes_.MergeFrom(from.map_int32_bytes_);
- map_int32_enum_.MergeFrom(from.map_int32_enum_);
- map_int32_foreign_message_.MergeFrom(from.map_int32_foreign_message_);
- map_int32_foreign_message_no_arena_.MergeFrom(from.map_int32_foreign_message_no_arena_);
- // @@protoc_insertion_point(copy_constructor:protobuf_unittest.TestArenaMap)
- }
- void TestArenaMap::SharedCtor() {
- }
- TestArenaMap::~TestArenaMap() {
- // @@protoc_insertion_point(destructor:protobuf_unittest.TestArenaMap)
- SharedDtor();
- }
- void TestArenaMap::SharedDtor() {
- GOOGLE_DCHECK(GetArenaNoVirtual() == NULL);
- }
- void TestArenaMap::ArenaDtor(void* object) {
- TestArenaMap* _this = reinterpret_cast< TestArenaMap* >(object);
- (void)_this;
- }
- void TestArenaMap::RegisterArenaDtor(::google::protobuf::Arena* arena) {
- }
- void TestArenaMap::SetCachedSize(int size) const {
- _cached_size_.Set(size);
- }
- const ::google::protobuf::Descriptor* TestArenaMap::descriptor() {
- ::protobuf_google_2fprotobuf_2fmap_5funittest_2eproto::protobuf_AssignDescriptorsOnce();
- return ::protobuf_google_2fprotobuf_2fmap_5funittest_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
- }
- const TestArenaMap& TestArenaMap::default_instance() {
- ::google::protobuf::internal::InitSCC(&protobuf_google_2fprotobuf_2fmap_5funittest_2eproto::scc_info_TestArenaMap.base);
- return *internal_default_instance();
- }
- void TestArenaMap::Clear() {
- // @@protoc_insertion_point(message_clear_start:protobuf_unittest.TestArenaMap)
- ::google::protobuf::uint32 cached_has_bits = 0;
- // Prevent compiler warnings about cached_has_bits being unused
- (void) cached_has_bits;
- map_int32_int32_.Clear();
- map_int64_int64_.Clear();
- map_uint32_uint32_.Clear();
- map_uint64_uint64_.Clear();
- map_sint32_sint32_.Clear();
- map_sint64_sint64_.Clear();
- map_fixed32_fixed32_.Clear();
- map_fixed64_fixed64_.Clear();
- map_sfixed32_sfixed32_.Clear();
- map_sfixed64_sfixed64_.Clear();
- map_int32_float_.Clear();
- map_int32_double_.Clear();
- map_bool_bool_.Clear();
- map_string_string_.Clear();
- map_int32_bytes_.Clear();
- map_int32_enum_.Clear();
- map_int32_foreign_message_.Clear();
- map_int32_foreign_message_no_arena_.Clear();
- _internal_metadata_.Clear();
- }
- bool TestArenaMap::MergePartialFromCodedStream(
- ::google::protobuf::io::CodedInputStream* input) {
- #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
- ::google::protobuf::uint32 tag;
- // @@protoc_insertion_point(parse_start:protobuf_unittest.TestArenaMap)
- for (;;) {
- ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(16383u);
- tag = p.first;
- if (!p.second) goto handle_unusual;
- switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
- // map<int32, int32> map_int32_int32 = 1;
- case 1: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
- TestArenaMap_MapInt32Int32Entry_DoNotUse::Parser< ::google::protobuf::internal::MapField<
- TestArenaMap_MapInt32Int32Entry_DoNotUse,
- ::google::protobuf::int32, ::google::protobuf::int32,
- ::google::protobuf::internal::WireFormatLite::TYPE_INT32,
- ::google::protobuf::internal::WireFormatLite::TYPE_INT32,
- 0 >,
- ::google::protobuf::Map< ::google::protobuf::int32, ::google::protobuf::int32 > > parser(&map_int32_int32_);
- DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
- input, &parser));
- } else {
- goto handle_unusual;
- }
- break;
- }
- // map<int64, int64> map_int64_int64 = 2;
- case 2: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) {
- TestArenaMap_MapInt64Int64Entry_DoNotUse::Parser< ::google::protobuf::internal::MapField<
- TestArenaMap_MapInt64Int64Entry_DoNotUse,
- ::google::protobuf::int64, ::google::protobuf::int64,
- ::google::protobuf::internal::WireFormatLite::TYPE_INT64,
- ::google::protobuf::internal::WireFormatLite::TYPE_INT64,
- 0 >,
- ::google::protobuf::Map< ::google::protobuf::int64, ::google::protobuf::int64 > > parser(&map_int64_int64_);
- DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
- input, &parser));
- } else {
- goto handle_unusual;
- }
- break;
- }
- // map<uint32, uint32> map_uint32_uint32 = 3;
- case 3: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) {
- TestArenaMap_MapUint32Uint32Entry_DoNotUse::Parser< ::google::protobuf::internal::MapField<
- TestArenaMap_MapUint32Uint32Entry_DoNotUse,
- ::google::protobuf::uint32, ::google::protobuf::uint32,
- ::google::protobuf::internal::WireFormatLite::TYPE_UINT32,
- ::google::protobuf::internal::WireFormatLite::TYPE_UINT32,
- 0 >,
- ::google::protobuf::Map< ::google::protobuf::uint32, ::google::protobuf::uint32 > > parser(&map_uint32_uint32_);
- DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
- input, &parser));
- } else {
- goto handle_unusual;
- }
- break;
- }
- // map<uint64, uint64> map_uint64_uint64 = 4;
- case 4: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(34u /* 34 & 0xFF */)) {
- TestArenaMap_MapUint64Uint64Entry_DoNotUse::Parser< ::google::protobuf::internal::MapField<
- TestArenaMap_MapUint64Uint64Entry_DoNotUse,
- ::google::protobuf::uint64, ::google::protobuf::uint64,
- ::google::protobuf::internal::WireFormatLite::TYPE_UINT64,
- ::google::protobuf::internal::WireFormatLite::TYPE_UINT64,
- 0 >,
- ::google::protobuf::Map< ::google::protobuf::uint64, ::google::protobuf::uint64 > > parser(&map_uint64_uint64_);
- DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
- input, &parser));
- } else {
- goto handle_unusual;
- }
- break;
- }
- // map<sint32, sint32> map_sint32_sint32 = 5;
- case 5: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(42u /* 42 & 0xFF */)) {
- TestArenaMap_MapSint32Sint32Entry_DoNotUse::Parser< ::google::protobuf::internal::MapField<
- TestArenaMap_MapSint32Sint32Entry_DoNotUse,
- ::google::protobuf::int32, ::google::protobuf::int32,
- ::google::protobuf::internal::WireFormatLite::TYPE_SINT32,
- ::google::protobuf::internal::WireFormatLite::TYPE_SINT32,
- 0 >,
- ::google::protobuf::Map< ::google::protobuf::int32, ::google::protobuf::int32 > > parser(&map_sint32_sint32_);
- DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
- input, &parser));
- } else {
- goto handle_unusual;
- }
- break;
- }
- // map<sint64, sint64> map_sint64_sint64 = 6;
- case 6: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(50u /* 50 & 0xFF */)) {
- TestArenaMap_MapSint64Sint64Entry_DoNotUse::Parser< ::google::protobuf::internal::MapField<
- TestArenaMap_MapSint64Sint64Entry_DoNotUse,
- ::google::protobuf::int64, ::google::protobuf::int64,
- ::google::protobuf::internal::WireFormatLite::TYPE_SINT64,
- ::google::protobuf::internal::WireFormatLite::TYPE_SINT64,
- 0 >,
- ::google::protobuf::Map< ::google::protobuf::int64, ::google::protobuf::int64 > > parser(&map_sint64_sint64_);
- DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
- input, &parser));
- } else {
- goto handle_unusual;
- }
- break;
- }
- // map<fixed32, fixed32> map_fixed32_fixed32 = 7;
- case 7: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(58u /* 58 & 0xFF */)) {
- TestArenaMap_MapFixed32Fixed32Entry_DoNotUse::Parser< ::google::protobuf::internal::MapField<
- TestArenaMap_MapFixed32Fixed32Entry_DoNotUse,
- ::google::protobuf::uint32, ::google::protobuf::uint32,
- ::google::protobuf::internal::WireFormatLite::TYPE_FIXED32,
- ::google::protobuf::internal::WireFormatLite::TYPE_FIXED32,
- 0 >,
- ::google::protobuf::Map< ::google::protobuf::uint32, ::google::protobuf::uint32 > > parser(&map_fixed32_fixed32_);
- DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
- input, &parser));
- } else {
- goto handle_unusual;
- }
- break;
- }
- // map<fixed64, fixed64> map_fixed64_fixed64 = 8;
- case 8: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(66u /* 66 & 0xFF */)) {
- TestArenaMap_MapFixed64Fixed64Entry_DoNotUse::Parser< ::google::protobuf::internal::MapField<
- TestArenaMap_MapFixed64Fixed64Entry_DoNotUse,
- ::google::protobuf::uint64, ::google::protobuf::uint64,
- ::google::protobuf::internal::WireFormatLite::TYPE_FIXED64,
- ::google::protobuf::internal::WireFormatLite::TYPE_FIXED64,
- 0 >,
- ::google::protobuf::Map< ::google::protobuf::uint64, ::google::protobuf::uint64 > > parser(&map_fixed64_fixed64_);
- DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
- input, &parser));
- } else {
- goto handle_unusual;
- }
- break;
- }
- // map<sfixed32, sfixed32> map_sfixed32_sfixed32 = 9;
- case 9: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(74u /* 74 & 0xFF */)) {
- TestArenaMap_MapSfixed32Sfixed32Entry_DoNotUse::Parser< ::google::protobuf::internal::MapField<
- TestArenaMap_MapSfixed32Sfixed32Entry_DoNotUse,
- ::google::protobuf::int32, ::google::protobuf::int32,
- ::google::protobuf::internal::WireFormatLite::TYPE_SFIXED32,
- ::google::protobuf::internal::WireFormatLite::TYPE_SFIXED32,
- 0 >,
- ::google::protobuf::Map< ::google::protobuf::int32, ::google::protobuf::int32 > > parser(&map_sfixed32_sfixed32_);
- DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
- input, &parser));
- } else {
- goto handle_unusual;
- }
- break;
- }
- // map<sfixed64, sfixed64> map_sfixed64_sfixed64 = 10;
- case 10: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(82u /* 82 & 0xFF */)) {
- TestArenaMap_MapSfixed64Sfixed64Entry_DoNotUse::Parser< ::google::protobuf::internal::MapField<
- TestArenaMap_MapSfixed64Sfixed64Entry_DoNotUse,
- ::google::protobuf::int64, ::google::protobuf::int64,
- ::google::protobuf::internal::WireFormatLite::TYPE_SFIXED64,
- ::google::protobuf::internal::WireFormatLite::TYPE_SFIXED64,
- 0 >,
- ::google::protobuf::Map< ::google::protobuf::int64, ::google::protobuf::int64 > > parser(&map_sfixed64_sfixed64_);
- DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
- input, &parser));
- } else {
- goto handle_unusual;
- }
- break;
- }
- // map<int32, float> map_int32_float = 11;
- case 11: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(90u /* 90 & 0xFF */)) {
- TestArenaMap_MapInt32FloatEntry_DoNotUse::Parser< ::google::protobuf::internal::MapField<
- TestArenaMap_MapInt32FloatEntry_DoNotUse,
- ::google::protobuf::int32, float,
- ::google::protobuf::internal::WireFormatLite::TYPE_INT32,
- ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT,
- 0 >,
- ::google::protobuf::Map< ::google::protobuf::int32, float > > parser(&map_int32_float_);
- DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
- input, &parser));
- } else {
- goto handle_unusual;
- }
- break;
- }
- // map<int32, double> map_int32_double = 12;
- case 12: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(98u /* 98 & 0xFF */)) {
- TestArenaMap_MapInt32DoubleEntry_DoNotUse::Parser< ::google::protobuf::internal::MapField<
- TestArenaMap_MapInt32DoubleEntry_DoNotUse,
- ::google::protobuf::int32, double,
- ::google::protobuf::internal::WireFormatLite::TYPE_INT32,
- ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE,
- 0 >,
- ::google::protobuf::Map< ::google::protobuf::int32, double > > parser(&map_int32_double_);
- DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
- input, &parser));
- } else {
- goto handle_unusual;
- }
- break;
- }
- // map<bool, bool> map_bool_bool = 13;
- case 13: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(106u /* 106 & 0xFF */)) {
- TestArenaMap_MapBoolBoolEntry_DoNotUse::Parser< ::google::protobuf::internal::MapField<
- TestArenaMap_MapBoolBoolEntry_DoNotUse,
- bool, bool,
- ::google::protobuf::internal::WireFormatLite::TYPE_BOOL,
- ::google::protobuf::internal::WireFormatLite::TYPE_BOOL,
- 0 >,
- ::google::protobuf::Map< bool, bool > > parser(&map_bool_bool_);
- DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
- input, &parser));
- } else {
- goto handle_unusual;
- }
- break;
- }
- // map<string, string> map_string_string = 14;
- case 14: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(114u /* 114 & 0xFF */)) {
- TestArenaMap_MapStringStringEntry_DoNotUse::Parser< ::google::protobuf::internal::MapField<
- TestArenaMap_MapStringStringEntry_DoNotUse,
- ::std::string, ::std::string,
- ::google::protobuf::internal::WireFormatLite::TYPE_STRING,
- ::google::protobuf::internal::WireFormatLite::TYPE_STRING,
- 0 >,
- ::google::protobuf::Map< ::std::string, ::std::string > > parser(&map_string_string_);
- DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
- input, &parser));
- DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
- parser.key().data(), static_cast<int>(parser.key().length()),
- ::google::protobuf::internal::WireFormatLite::PARSE,
- "protobuf_unittest.TestArenaMap.MapStringStringEntry.key"));
- DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
- parser.value().data(), static_cast<int>(parser.value().length()),
- ::google::protobuf::internal::WireFormatLite::PARSE,
- "protobuf_unittest.TestArenaMap.MapStringStringEntry.value"));
- } else {
- goto handle_unusual;
- }
- break;
- }
- // map<int32, bytes> map_int32_bytes = 15;
- case 15: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(122u /* 122 & 0xFF */)) {
- TestArenaMap_MapInt32BytesEntry_DoNotUse::Parser< ::google::protobuf::internal::MapField<
- TestArenaMap_MapInt32BytesEntry_DoNotUse,
- ::google::protobuf::int32, ::std::string,
- ::google::protobuf::internal::WireFormatLite::TYPE_INT32,
- ::google::protobuf::internal::WireFormatLite::TYPE_BYTES,
- 0 >,
- ::google::protobuf::Map< ::google::protobuf::int32, ::std::string > > parser(&map_int32_bytes_);
- DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
- input, &parser));
- } else {
- goto handle_unusual;
- }
- break;
- }
- // map<int32, .protobuf_unittest.MapEnum> map_int32_enum = 16;
- case 16: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(130u /* 130 & 0xFF */)) {
- TestArenaMap_MapInt32EnumEntry_DoNotUse::Parser< ::google::protobuf::internal::MapField<
- TestArenaMap_MapInt32EnumEntry_DoNotUse,
- ::google::protobuf::int32, ::protobuf_unittest::MapEnum,
- ::google::protobuf::internal::WireFormatLite::TYPE_INT32,
- ::google::protobuf::internal::WireFormatLite::TYPE_ENUM,
- 0 >,
- ::google::protobuf::Map< ::google::protobuf::int32, ::protobuf_unittest::MapEnum > > parser(&map_int32_enum_);
- DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
- input, &parser));
- } else {
- goto handle_unusual;
- }
- break;
- }
- // map<int32, .protobuf_unittest.ForeignMessage> map_int32_foreign_message = 17;
- case 17: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(138u /* 138 & 0xFF */)) {
- TestArenaMap_MapInt32ForeignMessageEntry_DoNotUse::Parser< ::google::protobuf::internal::MapField<
- TestArenaMap_MapInt32ForeignMessageEntry_DoNotUse,
- ::google::protobuf::int32, ::protobuf_unittest::ForeignMessage,
- ::google::protobuf::internal::WireFormatLite::TYPE_INT32,
- ::google::protobuf::internal::WireFormatLite::TYPE_MESSAGE,
- 0 >,
- ::google::protobuf::Map< ::google::protobuf::int32, ::protobuf_unittest::ForeignMessage > > parser(&map_int32_foreign_message_);
- DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
- input, &parser));
- } else {
- goto handle_unusual;
- }
- break;
- }
- // map<int32, .protobuf_unittest_no_arena.ForeignMessage> map_int32_foreign_message_no_arena = 18;
- case 18: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(146u /* 146 & 0xFF */)) {
- TestArenaMap_MapInt32ForeignMessageNoArenaEntry_DoNotUse::Parser< ::google::protobuf::internal::MapField<
- TestArenaMap_MapInt32ForeignMessageNoArenaEntry_DoNotUse,
- ::google::protobuf::int32, ::protobuf_unittest_no_arena::ForeignMessage,
- ::google::protobuf::internal::WireFormatLite::TYPE_INT32,
- ::google::protobuf::internal::WireFormatLite::TYPE_MESSAGE,
- 0 >,
- ::google::protobuf::Map< ::google::protobuf::int32, ::protobuf_unittest_no_arena::ForeignMessage > > parser(&map_int32_foreign_message_no_arena_);
- DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
- input, &parser));
- } else {
- goto handle_unusual;
- }
- break;
- }
- default: {
- handle_unusual:
- if (tag == 0) {
- goto success;
- }
- DO_(::google::protobuf::internal::WireFormat::SkipField(
- input, tag, _internal_metadata_.mutable_unknown_fields()));
- break;
- }
- }
- }
- success:
- // @@protoc_insertion_point(parse_success:protobuf_unittest.TestArenaMap)
- return true;
- failure:
- // @@protoc_insertion_point(parse_failure:protobuf_unittest.TestArenaMap)
- return false;
- #undef DO_
- }
- void TestArenaMap::SerializeWithCachedSizes(
- ::google::protobuf::io::CodedOutputStream* output) const {
- // @@protoc_insertion_point(serialize_start:protobuf_unittest.TestArenaMap)
- ::google::protobuf::uint32 cached_has_bits = 0;
- (void) cached_has_bits;
- // map<int32, int32> map_int32_int32 = 1;
- if (!this->map_int32_int32().empty()) {
- typedef ::google::protobuf::Map< ::google::protobuf::int32, ::google::protobuf::int32 >::const_pointer
- ConstPtr;
- typedef ::google::protobuf::internal::SortItem< ::google::protobuf::int32, ConstPtr > SortItem;
- typedef ::google::protobuf::internal::CompareByFirstField<SortItem> Less;
- if (output->IsSerializationDeterministic() &&
- this->map_int32_int32().size() > 1) {
- ::std::unique_ptr<SortItem[]> items(
- new SortItem[this->map_int32_int32().size()]);
- typedef ::google::protobuf::Map< ::google::protobuf::int32, ::google::protobuf::int32 >::size_type size_type;
- size_type n = 0;
- for (::google::protobuf::Map< ::google::protobuf::int32, ::google::protobuf::int32 >::const_iterator
- it = this->map_int32_int32().begin();
- it != this->map_int32_int32().end(); ++it, ++n) {
- items[static_cast<ptrdiff_t>(n)] = SortItem(&*it);
- }
- ::std::sort(&items[0], &items[static_cast<ptrdiff_t>(n)], Less());
- ::std::unique_ptr<TestArenaMap_MapInt32Int32Entry_DoNotUse> entry;
- for (size_type i = 0; i < n; i++) {
- entry.reset(map_int32_int32_.NewEntryWrapper(
- items[static_cast<ptrdiff_t>(i)].second->first, items[static_cast<ptrdiff_t>(i)].second->second));
- ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
- 1, *entry, output);
- if (entry->GetArena() != NULL) {
- entry.release();
- }
- }
- } else {
- ::std::unique_ptr<TestArenaMap_MapInt32Int32Entry_DoNotUse> entry;
- for (::google::protobuf::Map< ::google::protobuf::int32, ::google::protobuf::int32 >::const_iterator
- it = this->map_int32_int32().begin();
- it != this->map_int32_int32().end(); ++it) {
- entry.reset(map_int32_int32_.NewEntryWrapper(
- it->first, it->second));
- ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
- 1, *entry, output);
- if (entry->GetArena() != NULL) {
- entry.release();
- }
- }
- }
- }
- // map<int64, int64> map_int64_int64 = 2;
- if (!this->map_int64_int64().empty()) {
- typedef ::google::protobuf::Map< ::google::protobuf::int64, ::google::protobuf::int64 >::const_pointer
- ConstPtr;
- typedef ::google::protobuf::internal::SortItem< ::google::protobuf::int64, ConstPtr > SortItem;
- typedef ::google::protobuf::internal::CompareByFirstField<SortItem> Less;
- if (output->IsSerializationDeterministic() &&
- this->map_int64_int64().size() > 1) {
- ::std::unique_ptr<SortItem[]> items(
- new SortItem[this->map_int64_int64().size()]);
- typedef ::google::protobuf::Map< ::google::protobuf::int64, ::google::protobuf::int64 >::size_type size_type;
- size_type n = 0;
- for (::google::protobuf::Map< ::google::protobuf::int64, ::google::protobuf::int64 >::const_iterator
- it = this->map_int64_int64().begin();
- it != this->map_int64_int64().end(); ++it, ++n) {
- items[static_cast<ptrdiff_t>(n)] = SortItem(&*it);
- }
- ::std::sort(&items[0], &items[static_cast<ptrdiff_t>(n)], Less());
- ::std::unique_ptr<TestArenaMap_MapInt64Int64Entry_DoNotUse> entry;
- for (size_type i = 0; i < n; i++) {
- entry.reset(map_int64_int64_.NewEntryWrapper(
- items[static_cast<ptrdiff_t>(i)].second->first, items[static_cast<ptrdiff_t>(i)].second->second));
- ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
- 2, *entry, output);
- if (entry->GetArena() != NULL) {
- entry.release();
- }
- }
- } else {
- ::std::unique_ptr<TestArenaMap_MapInt64Int64Entry_DoNotUse> entry;
- for (::google::protobuf::Map< ::google::protobuf::int64, ::google::protobuf::int64 >::const_iterator
- it = this->map_int64_int64().begin();
- it != this->map_int64_int64().end(); ++it) {
- entry.reset(map_int64_int64_.NewEntryWrapper(
- it->first, it->second));
- ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
- 2, *entry, output);
- if (entry->GetArena() != NULL) {
- entry.release();
- }
- }
- }
- }
- // map<uint32, uint32> map_uint32_uint32 = 3;
- if (!this->map_uint32_uint32().empty()) {
- typedef ::google::protobuf::Map< ::google::protobuf::uint32, ::google::protobuf::uint32 >::const_pointer
- ConstPtr;
- typedef ::google::protobuf::internal::SortItem< ::google::protobuf::uint32, ConstPtr > SortItem;
- typedef ::google::protobuf::internal::CompareByFirstField<SortItem> Less;
- if (output->IsSerializationDeterministic() &&
- this->map_uint32_uint32().size() > 1) {
- ::std::unique_ptr<SortItem[]> items(
- new SortItem[this->map_uint32_uint32().size()]);
- typedef ::google::protobuf::Map< ::google::protobuf::uint32, ::google::protobuf::uint32 >::size_type size_type;
- size_type n = 0;
- for (::google::protobuf::Map< ::google::protobuf::uint32, ::google::protobuf::uint32 >::const_iterator
- it = this->map_uint32_uint32().begin();
- it != this->map_uint32_uint32().end(); ++it, ++n) {
- items[static_cast<ptrdiff_t>(n)] = SortItem(&*it);
- }
- ::std::sort(&items[0], &items[static_cast<ptrdiff_t>(n)], Less());
- ::std::unique_ptr<TestArenaMap_MapUint32Uint32Entry_DoNotUse> entry;
- for (size_type i = 0; i < n; i++) {
- entry.reset(map_uint32_uint32_.NewEntryWrapper(
- items[static_cast<ptrdiff_t>(i)].second->first, items[static_cast<ptrdiff_t>(i)].second->second));
- ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
- 3, *entry, output);
- if (entry->GetArena() != NULL) {
- entry.release();
- }
- }
- } else {
- ::std::unique_ptr<TestArenaMap_MapUint32Uint32Entry_DoNotUse> entry;
- for (::google::protobuf::Map< ::google::protobuf::uint32, ::google::protobuf::uint32 >::const_iterator
- it = this->map_uint32_uint32().begin();
- it != this->map_uint32_uint32().end(); ++it) {
- entry.reset(map_uint32_uint32_.NewEntryWrapper(
- it->first, it->second));
- ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
- 3, *entry, output);
- if (entry->GetArena() != NULL) {
- entry.release();
- }
- }
- }
- }
- // map<uint64, uint64> map_uint64_uint64 = 4;
- if (!this->map_uint64_uint64().empty()) {
- typedef ::google::protobuf::Map< ::google::protobuf::uint64, ::google::protobuf::uint64 >::const_pointer
- ConstPtr;
- typedef ::google::protobuf::internal::SortItem< ::google::protobuf::uint64, ConstPtr > SortItem;
- typedef ::google::protobuf::internal::CompareByFirstField<SortItem> Less;
- if (output->IsSerializationDeterministic() &&
- this->map_uint64_uint64().size() > 1) {
- ::std::unique_ptr<SortItem[]> items(
- new SortItem[this->map_uint64_uint64().size()]);
- typedef ::google::protobuf::Map< ::google::protobuf::uint64, ::google::protobuf::uint64 >::size_type size_type;
- size_type n = 0;
- for (::google::protobuf::Map< ::google::protobuf::uint64, ::google::protobuf::uint64 >::const_iterator
- it = this->map_uint64_uint64().begin();
- it != this->map_uint64_uint64().end(); ++it, ++n) {
- items[static_cast<ptrdiff_t>(n)] = SortItem(&*it);
- }
- ::std::sort(&items[0], &items[static_cast<ptrdiff_t>(n)], Less());
- ::std::unique_ptr<TestArenaMap_MapUint64Uint64Entry_DoNotUse> entry;
- for (size_type i = 0; i < n; i++) {
- entry.reset(map_uint64_uint64_.NewEntryWrapper(
- items[static_cast<ptrdiff_t>(i)].second->first, items[static_cast<ptrdiff_t>(i)].second->second));
- ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
- 4, *entry, output);
- if (entry->GetArena() != NULL) {
- entry.release();
- }
- }
- } else {
- ::std::unique_ptr<TestArenaMap_MapUint64Uint64Entry_DoNotUse> entry;
- for (::google::protobuf::Map< ::google::protobuf::uint64, ::google::protobuf::uint64 >::const_iterator
- it = this->map_uint64_uint64().begin();
- it != this->map_uint64_uint64().end(); ++it) {
- entry.reset(map_uint64_uint64_.NewEntryWrapper(
- it->first, it->second));
- ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
- 4, *entry, output);
- if (entry->GetArena() != NULL) {
- entry.release();
- }
- }
- }
- }
- // map<sint32, sint32> map_sint32_sint32 = 5;
- if (!this->map_sint32_sint32().empty()) {
- typedef ::google::protobuf::Map< ::google::protobuf::int32, ::google::protobuf::int32 >::const_pointer
- ConstPtr;
- typedef ::google::protobuf::internal::SortItem< ::google::protobuf::int32, ConstPtr > SortItem;
- typedef ::google::protobuf::internal::CompareByFirstField<SortItem> Less;
- if (output->IsSerializationDeterministic() &&
- this->map_sint32_sint32().size() > 1) {
- ::std::unique_ptr<SortItem[]> items(
- new SortItem[this->map_sint32_sint32().size()]);
- typedef ::google::protobuf::Map< ::google::protobuf::int32, ::google::protobuf::int32 >::size_type size_type;
- size_type n = 0;
- for (::google::protobuf::Map< ::google::protobuf::int32, ::google::protobuf::int32 >::const_iterator
- it = this->map_sint32_sint32().begin();
- it != this->map_sint32_sint32().end(); ++it, ++n) {
- items[static_cast<ptrdiff_t>(n)] = SortItem(&*it);
- }
- ::std::sort(&items[0], &items[static_cast<ptrdiff_t>(n)], Less());
- ::std::unique_ptr<TestArenaMap_MapSint32Sint32Entry_DoNotUse> entry;
- for (size_type i = 0; i < n; i++) {
- entry.reset(map_sint32_sint32_.NewEntryWrapper(
- items[static_cast<ptrdiff_t>(i)].second->first, items[static_cast<ptrdiff_t>(i)].second->second));
- ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
- 5, *entry, output);
- if (entry->GetArena() != NULL) {
- entry.release();
- }
- }
- } else {
- ::std::unique_ptr<TestArenaMap_MapSint32Sint32Entry_DoNotUse> entry;
- for (::google::protobuf::Map< ::google::protobuf::int32, ::google::protobuf::int32 >::const_iterator
- it = this->map_sint32_sint32().begin();
- it != this->map_sint32_sint32().end(); ++it) {
- entry.reset(map_sint32_sint32_.NewEntryWrapper(
- it->first, it->second));
- ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
- 5, *entry, output);
- if (entry->GetArena() != NULL) {
- entry.release();
- }
- }
- }
- }
- // map<sint64, sint64> map_sint64_sint64 = 6;
- if (!this->map_sint64_sint64().empty()) {
- typedef ::google::protobuf::Map< ::google::protobuf::int64, ::google::protobuf::int64 >::const_pointer
- ConstPtr;
- typedef ::google::protobuf::internal::SortItem< ::google::protobuf::int64, ConstPtr > SortItem;
- typedef ::google::protobuf::internal::CompareByFirstField<SortItem> Less;
- if (output->IsSerializationDeterministic() &&
- this->map_sint64_sint64().size() > 1) {
- ::std::unique_ptr<SortItem[]> items(
- new SortItem[this->map_sint64_sint64().size()]);
- typedef ::google::protobuf::Map< ::google::protobuf::int64, ::google::protobuf::int64 >::size_type size_type;
- size_type n = 0;
- for (::google::protobuf::Map< ::google::protobuf::int64, ::google::protobuf::int64 >::const_iterator
- it = this->map_sint64_sint64().begin();
- it != this->map_sint64_sint64().end(); ++it, ++n) {
- items[static_cast<ptrdiff_t>(n)] = SortItem(&*it);
- }
- ::std::sort(&items[0], &items[static_cast<ptrdiff_t>(n)], Less());
- ::std::unique_ptr<TestArenaMap_MapSint64Sint64Entry_DoNotUse> entry;
- for (size_type i = 0; i < n; i++) {
- entry.reset(map_sint64_sint64_.NewEntryWrapper(
- items[static_cast<ptrdiff_t>(i)].second->first, items[static_cast<ptrdiff_t>(i)].second->second));
- ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
- 6, *entry, output);
- if (entry->GetArena() != NULL) {
- entry.release();
- }
- }
- } else {
- ::std::unique_ptr<TestArenaMap_MapSint64Sint64Entry_DoNotUse> entry;
- for (::google::protobuf::Map< ::google::protobuf::int64, ::google::protobuf::int64 >::const_iterator
- it = this->map_sint64_sint64().begin();
- it != this->map_sint64_sint64().end(); ++it) {
- entry.reset(map_sint64_sint64_.NewEntryWrapper(
- it->first, it->second));
- ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
- 6, *entry, output);
- if (entry->GetArena() != NULL) {
- entry.release();
- }
- }
- }
- }
- // map<fixed32, fixed32> map_fixed32_fixed32 = 7;
- if (!this->map_fixed32_fixed32().empty()) {
- typedef ::google::protobuf::Map< ::google::protobuf::uint32, ::google::protobuf::uint32 >::const_pointer
- ConstPtr;
- typedef ::google::protobuf::internal::SortItem< ::google::protobuf::uint32, ConstPtr > SortItem;
- typedef ::google::protobuf::internal::CompareByFirstField<SortItem> Less;
- if (output->IsSerializationDeterministic() &&
- this->map_fixed32_fixed32().size() > 1) {
- ::std::unique_ptr<SortItem[]> items(
- new SortItem[this->map_fixed32_fixed32().size()]);
- typedef ::google::protobuf::Map< ::google::protobuf::uint32, ::google::protobuf::uint32 >::size_type size_type;
- size_type n = 0;
- for (::google::protobuf::Map< ::google::protobuf::uint32, ::google::protobuf::uint32 >::const_iterator
- it = this->map_fixed32_fixed32().begin();
- it != this->map_fixed32_fixed32().end(); ++it, ++n) {
- items[static_cast<ptrdiff_t>(n)] = SortItem(&*it);
- }
- ::std::sort(&items[0], &items[static_cast<ptrdiff_t>(n)], Less());
- ::std::unique_ptr<TestArenaMap_MapFixed32Fixed32Entry_DoNotUse> entry;
- for (size_type i = 0; i < n; i++) {
- entry.reset(map_fixed32_fixed32_.NewEntryWrapper(
- items[static_cast<ptrdiff_t>(i)].second->first, items[static_cast<ptrdiff_t>(i)].second->second));
- ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
- 7, *entry, output);
- if (entry->GetArena() != NULL) {
- entry.release();
- }
- }
- } else {
- ::std::unique_ptr<TestArenaMap_MapFixed32Fixed32Entry_DoNotUse> entry;
- for (::google::protobuf::Map< ::google::protobuf::uint32, ::google::protobuf::uint32 >::const_iterator
- it = this->map_fixed32_fixed32().begin();
- it != this->map_fixed32_fixed32().end(); ++it) {
- entry.reset(map_fixed32_fixed32_.NewEntryWrapper(
- it->first, it->second));
- ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
- 7, *entry, output);
- if (entry->GetArena() != NULL) {
- entry.release();
- }
- }
- }
- }
- // map<fixed64, fixed64> map_fixed64_fixed64 = 8;
- if (!this->map_fixed64_fixed64().empty()) {
- typedef ::google::protobuf::Map< ::google::protobuf::uint64, ::google::protobuf::uint64 >::const_pointer
- ConstPtr;
- typedef ::google::protobuf::internal::SortItem< ::google::protobuf::uint64, ConstPtr > SortItem;
- typedef ::google::protobuf::internal::CompareByFirstField<SortItem> Less;
- if (output->IsSerializationDeterministic() &&
- this->map_fixed64_fixed64().size() > 1) {
- ::std::unique_ptr<SortItem[]> items(
- new SortItem[this->map_fixed64_fixed64().size()]);
- typedef ::google::protobuf::Map< ::google::protobuf::uint64, ::google::protobuf::uint64 >::size_type size_type;
- size_type n = 0;
- for (::google::protobuf::Map< ::google::protobuf::uint64, ::google::protobuf::uint64 >::const_iterator
- it = this->map_fixed64_fixed64().begin();
- it != this->map_fixed64_fixed64().end(); ++it, ++n) {
- items[static_cast<ptrdiff_t>(n)] = SortItem(&*it);
- }
- ::std::sort(&items[0], &items[static_cast<ptrdiff_t>(n)], Less());
- ::std::unique_ptr<TestArenaMap_MapFixed64Fixed64Entry_DoNotUse> entry;
- for (size_type i = 0; i < n; i++) {
- entry.reset(map_fixed64_fixed64_.NewEntryWrapper(
- items[static_cast<ptrdiff_t>(i)].second->first, items[static_cast<ptrdiff_t>(i)].second->second));
- ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
- 8, *entry, output);
- if (entry->GetArena() != NULL) {
- entry.release();
- }
- }
- } else {
- ::std::unique_ptr<TestArenaMap_MapFixed64Fixed64Entry_DoNotUse> entry;
- for (::google::protobuf::Map< ::google::protobuf::uint64, ::google::protobuf::uint64 >::const_iterator
- it = this->map_fixed64_fixed64().begin();
- it != this->map_fixed64_fixed64().end(); ++it) {
- entry.reset(map_fixed64_fixed64_.NewEntryWrapper(
- it->first, it->second));
- ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
- 8, *entry, output);
- if (entry->GetArena() != NULL) {
- entry.release();
- }
- }
- }
- }
- // map<sfixed32, sfixed32> map_sfixed32_sfixed32 = 9;
- if (!this->map_sfixed32_sfixed32().empty()) {
- typedef ::google::protobuf::Map< ::google::protobuf::int32, ::google::protobuf::int32 >::const_pointer
- ConstPtr;
- typedef ::google::protobuf::internal::SortItem< ::google::protobuf::int32, ConstPtr > SortItem;
- typedef ::google::protobuf::internal::CompareByFirstField<SortItem> Less;
- if (output->IsSerializationDeterministic() &&
- this->map_sfixed32_sfixed32().size() > 1) {
- ::std::unique_ptr<SortItem[]> items(
- new SortItem[this->map_sfixed32_sfixed32().size()]);
- typedef ::google::protobuf::Map< ::google::protobuf::int32, ::google::protobuf::int32 >::size_type size_type;
- size_type n = 0;
- for (::google::protobuf::Map< ::google::protobuf::int32, ::google::protobuf::int32 >::const_iterator
- it = this->map_sfixed32_sfixed32().begin();
- it != this->map_sfixed32_sfixed32().end(); ++it, ++n) {
- items[static_cast<ptrdiff_t>(n)] = SortItem(&*it);
- }
- ::std::sort(&items[0], &items[static_cast<ptrdiff_t>(n)], Less());
- ::std::unique_ptr<TestArenaMap_MapSfixed32Sfixed32Entry_DoNotUse> entry;
- for (size_type i = 0; i < n; i++) {
- entry.reset(map_sfixed32_sfixed32_.NewEntryWrapper(
- items[static_cast<ptrdiff_t>(i)].second->first, items[static_cast<ptrdiff_t>(i)].second->second));
- ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
- 9, *entry, output);
- if (entry->GetArena() != NULL) {
- entry.release();
- }
- }
- } else {
- ::std::unique_ptr<TestArenaMap_MapSfixed32Sfixed32Entry_DoNotUse> entry;
- for (::google::protobuf::Map< ::google::protobuf::int32, ::google::protobuf::int32 >::const_iterator
- it = this->map_sfixed32_sfixed32().begin();
- it != this->map_sfixed32_sfixed32().end(); ++it) {
- entry.reset(map_sfixed32_sfixed32_.NewEntryWrapper(
- it->first, it->second));
- ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
- 9, *entry, output);
- if (entry->GetArena() != NULL) {
- entry.release();
- }
- }
- }
- }
- // map<sfixed64, sfixed64> map_sfixed64_sfixed64 = 10;
- if (!this->map_sfixed64_sfixed64().empty()) {
- typedef ::google::protobuf::Map< ::google::protobuf::int64, ::google::protobuf::int64 >::const_pointer
- ConstPtr;
- typedef ::google::protobuf::internal::SortItem< ::google::protobuf::int64, ConstPtr > SortItem;
- typedef ::google::protobuf::internal::CompareByFirstField<SortItem> Less;
- if (output->IsSerializationDeterministic() &&
- this->map_sfixed64_sfixed64().size() > 1) {
- ::std::unique_ptr<SortItem[]> items(
- new SortItem[this->map_sfixed64_sfixed64().size()]);
- typedef ::google::protobuf::Map< ::google::protobuf::int64, ::google::protobuf::int64 >::size_type size_type;
- size_type n = 0;
- for (::google::protobuf::Map< ::google::protobuf::int64, ::google::protobuf::int64 >::const_iterator
- it = this->map_sfixed64_sfixed64().begin();
- it != this->map_sfixed64_sfixed64().end(); ++it, ++n) {
- items[static_cast<ptrdiff_t>(n)] = SortItem(&*it);
- }
- ::std::sort(&items[0], &items[static_cast<ptrdiff_t>(n)], Less());
- ::std::unique_ptr<TestArenaMap_MapSfixed64Sfixed64Entry_DoNotUse> entry;
- for (size_type i = 0; i < n; i++) {
- entry.reset(map_sfixed64_sfixed64_.NewEntryWrapper(
- items[static_cast<ptrdiff_t>(i)].second->first, items[static_cast<ptrdiff_t>(i)].second->second));
- ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
- 10, *entry, output);
- if (entry->GetArena() != NULL) {
- entry.release();
- }
- }
- } else {
- ::std::unique_ptr<TestArenaMap_MapSfixed64Sfixed64Entry_DoNotUse> entry;
- for (::google::protobuf::Map< ::google::protobuf::int64, ::google::protobuf::int64 >::const_iterator
- it = this->map_sfixed64_sfixed64().begin();
- it != this->map_sfixed64_sfixed64().end(); ++it) {
- entry.reset(map_sfixed64_sfixed64_.NewEntryWrapper(
- it->first, it->second));
- ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
- 10, *entry, output);
- if (entry->GetArena() != NULL) {
- entry.release();
- }
- }
- }
- }
- // map<int32, float> map_int32_float = 11;
- if (!this->map_int32_float().empty()) {
- typedef ::google::protobuf::Map< ::google::protobuf::int32, float >::const_pointer
- ConstPtr;
- typedef ::google::protobuf::internal::SortItem< ::google::protobuf::int32, ConstPtr > SortItem;
- typedef ::google::protobuf::internal::CompareByFirstField<SortItem> Less;
- if (output->IsSerializationDeterministic() &&
- this->map_int32_float().size() > 1) {
- ::std::unique_ptr<SortItem[]> items(
- new SortItem[this->map_int32_float().size()]);
- typedef ::google::protobuf::Map< ::google::protobuf::int32, float >::size_type size_type;
- size_type n = 0;
- for (::google::protobuf::Map< ::google::protobuf::int32, float >::const_iterator
- it = this->map_int32_float().begin();
- it != this->map_int32_float().end(); ++it, ++n) {
- items[static_cast<ptrdiff_t>(n)] = SortItem(&*it);
- }
- ::std::sort(&items[0], &items[static_cast<ptrdiff_t>(n)], Less());
- ::std::unique_ptr<TestArenaMap_MapInt32FloatEntry_DoNotUse> entry;
- for (size_type i = 0; i < n; i++) {
- entry.reset(map_int32_float_.NewEntryWrapper(
- items[static_cast<ptrdiff_t>(i)].second->first, items[static_cast<ptrdiff_t>(i)].second->second));
- ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
- 11, *entry, output);
- if (entry->GetArena() != NULL) {
- entry.release();
- }
- }
- } else {
- ::std::unique_ptr<TestArenaMap_MapInt32FloatEntry_DoNotUse> entry;
- for (::google::protobuf::Map< ::google::protobuf::int32, float >::const_iterator
- it = this->map_int32_float().begin();
- it != this->map_int32_float().end(); ++it) {
- entry.reset(map_int32_float_.NewEntryWrapper(
- it->first, it->second));
- ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
- 11, *entry, output);
- if (entry->GetArena() != NULL) {
- entry.release();
- }
- }
- }
- }
- // map<int32, double> map_int32_double = 12;
- if (!this->map_int32_double().empty()) {
- typedef ::google::protobuf::Map< ::google::protobuf::int32, double >::const_pointer
- ConstPtr;
- typedef ::google::protobuf::internal::SortItem< ::google::protobuf::int32, ConstPtr > SortItem;
- typedef ::google::protobuf::internal::CompareByFirstField<SortItem> Less;
- if (output->IsSerializationDeterministic() &&
- this->map_int32_double().size() > 1) {
- ::std::unique_ptr<SortItem[]> items(
- new SortItem[this->map_int32_double().size()]);
- typedef ::google::protobuf::Map< ::google::protobuf::int32, double >::size_type size_type;
- size_type n = 0;
- for (::google::protobuf::Map< ::google::protobuf::int32, double >::const_iterator
- it = this->map_int32_double().begin();
- it != this->map_int32_double().end(); ++it, ++n) {
- items[static_cast<ptrdiff_t>(n)] = SortItem(&*it);
- }
- ::std::sort(&items[0], &items[static_cast<ptrdiff_t>(n)], Less());
- ::std::unique_ptr<TestArenaMap_MapInt32DoubleEntry_DoNotUse> entry;
- for (size_type i = 0; i < n; i++) {
- entry.reset(map_int32_double_.NewEntryWrapper(
- items[static_cast<ptrdiff_t>(i)].second->first, items[static_cast<ptrdiff_t>(i)].second->second));
- ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
- 12, *entry, output);
- if (entry->GetArena() != NULL) {
- entry.release();
- }
- }
- } else {
- ::std::unique_ptr<TestArenaMap_MapInt32DoubleEntry_DoNotUse> entry;
- for (::google::protobuf::Map< ::google::protobuf::int32, double >::const_iterator
- it = this->map_int32_double().begin();
- it != this->map_int32_double().end(); ++it) {
- entry.reset(map_int32_double_.NewEntryWrapper(
- it->first, it->second));
- ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
- 12, *entry, output);
- if (entry->GetArena() != NULL) {
- entry.release();
- }
- }
- }
- }
- // map<bool, bool> map_bool_bool = 13;
- if (!this->map_bool_bool().empty()) {
- typedef ::google::protobuf::Map< bool, bool >::const_pointer
- ConstPtr;
- typedef ::google::protobuf::internal::SortItem< bool, ConstPtr > SortItem;
- typedef ::google::protobuf::internal::CompareByFirstField<SortItem> Less;
- if (output->IsSerializationDeterministic() &&
- this->map_bool_bool().size() > 1) {
- ::std::unique_ptr<SortItem[]> items(
- new SortItem[this->map_bool_bool().size()]);
- typedef ::google::protobuf::Map< bool, bool >::size_type size_type;
- size_type n = 0;
- for (::google::protobuf::Map< bool, bool >::const_iterator
- it = this->map_bool_bool().begin();
- it != this->map_bool_bool().end(); ++it, ++n) {
- items[static_cast<ptrdiff_t>(n)] = SortItem(&*it);
- }
- ::std::sort(&items[0], &items[static_cast<ptrdiff_t>(n)], Less());
- ::std::unique_ptr<TestArenaMap_MapBoolBoolEntry_DoNotUse> entry;
- for (size_type i = 0; i < n; i++) {
- entry.reset(map_bool_bool_.NewEntryWrapper(
- items[static_cast<ptrdiff_t>(i)].second->first, items[static_cast<ptrdiff_t>(i)].second->second));
- ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
- 13, *entry, output);
- if (entry->GetArena() != NULL) {
- entry.release();
- }
- }
- } else {
- ::std::unique_ptr<TestArenaMap_MapBoolBoolEntry_DoNotUse> entry;
- for (::google::protobuf::Map< bool, bool >::const_iterator
- it = this->map_bool_bool().begin();
- it != this->map_bool_bool().end(); ++it) {
- entry.reset(map_bool_bool_.NewEntryWrapper(
- it->first, it->second));
- ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
- 13, *entry, output);
- if (entry->GetArena() != NULL) {
- entry.release();
- }
- }
- }
- }
- // map<string, string> map_string_string = 14;
- if (!this->map_string_string().empty()) {
- typedef ::google::protobuf::Map< ::std::string, ::std::string >::const_pointer
- ConstPtr;
- typedef ConstPtr SortItem;
- typedef ::google::protobuf::internal::CompareByDerefFirst<SortItem> Less;
- struct Utf8Check {
- static void Check(ConstPtr p) {
- ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
- p->first.data(), static_cast<int>(p->first.length()),
- ::google::protobuf::internal::WireFormatLite::SERIALIZE,
- "protobuf_unittest.TestArenaMap.MapStringStringEntry.key");
- ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
- p->second.data(), static_cast<int>(p->second.length()),
- ::google::protobuf::internal::WireFormatLite::SERIALIZE,
- "protobuf_unittest.TestArenaMap.MapStringStringEntry.value");
- }
- };
- if (output->IsSerializationDeterministic() &&
- this->map_string_string().size() > 1) {
- ::std::unique_ptr<SortItem[]> items(
- new SortItem[this->map_string_string().size()]);
- typedef ::google::protobuf::Map< ::std::string, ::std::string >::size_type size_type;
- size_type n = 0;
- for (::google::protobuf::Map< ::std::string, ::std::string >::const_iterator
- it = this->map_string_string().begin();
- it != this->map_string_string().end(); ++it, ++n) {
- items[static_cast<ptrdiff_t>(n)] = SortItem(&*it);
- }
- ::std::sort(&items[0], &items[static_cast<ptrdiff_t>(n)], Less());
- ::std::unique_ptr<TestArenaMap_MapStringStringEntry_DoNotUse> entry;
- for (size_type i = 0; i < n; i++) {
- entry.reset(map_string_string_.NewEntryWrapper(
- items[static_cast<ptrdiff_t>(i)]->first, items[static_cast<ptrdiff_t>(i)]->second));
- ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
- 14, *entry, output);
- if (entry->GetArena() != NULL) {
- entry.release();
- }
- Utf8Check::Check(items[static_cast<ptrdiff_t>(i)]);
- }
- } else {
- ::std::unique_ptr<TestArenaMap_MapStringStringEntry_DoNotUse> entry;
- for (::google::protobuf::Map< ::std::string, ::std::string >::const_iterator
- it = this->map_string_string().begin();
- it != this->map_string_string().end(); ++it) {
- entry.reset(map_string_string_.NewEntryWrapper(
- it->first, it->second));
- ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
- 14, *entry, output);
- if (entry->GetArena() != NULL) {
- entry.release();
- }
- Utf8Check::Check(&*it);
- }
- }
- }
- // map<int32, bytes> map_int32_bytes = 15;
- if (!this->map_int32_bytes().empty()) {
- typedef ::google::protobuf::Map< ::google::protobuf::int32, ::std::string >::const_pointer
- ConstPtr;
- typedef ::google::protobuf::internal::SortItem< ::google::protobuf::int32, ConstPtr > SortItem;
- typedef ::google::protobuf::internal::CompareByFirstField<SortItem> Less;
- if (output->IsSerializationDeterministic() &&
- this->map_int32_bytes().size() > 1) {
- ::std::unique_ptr<SortItem[]> items(
- new SortItem[this->map_int32_bytes().size()]);
- typedef ::google::protobuf::Map< ::google::protobuf::int32, ::std::string >::size_type size_type;
- size_type n = 0;
- for (::google::protobuf::Map< ::google::protobuf::int32, ::std::string >::const_iterator
- it = this->map_int32_bytes().begin();
- it != this->map_int32_bytes().end(); ++it, ++n) {
- items[static_cast<ptrdiff_t>(n)] = SortItem(&*it);
- }
- ::std::sort(&items[0], &items[static_cast<ptrdiff_t>(n)], Less());
- ::std::unique_ptr<TestArenaMap_MapInt32BytesEntry_DoNotUse> entry;
- for (size_type i = 0; i < n; i++) {
- entry.reset(map_int32_bytes_.NewEntryWrapper(
- items[static_cast<ptrdiff_t>(i)].second->first, items[static_cast<ptrdiff_t>(i)].second->second));
- ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
- 15, *entry, output);
- if (entry->GetArena() != NULL) {
- entry.release();
- }
- }
- } else {
- ::std::unique_ptr<TestArenaMap_MapInt32BytesEntry_DoNotUse> entry;
- for (::google::protobuf::Map< ::google::protobuf::int32, ::std::string >::const_iterator
- it = this->map_int32_bytes().begin();
- it != this->map_int32_bytes().end(); ++it) {
- entry.reset(map_int32_bytes_.NewEntryWrapper(
- it->first, it->second));
- ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
- 15, *entry, output);
- if (entry->GetArena() != NULL) {
- entry.release();
- }
- }
- }
- }
- // map<int32, .protobuf_unittest.MapEnum> map_int32_enum = 16;
- if (!this->map_int32_enum().empty()) {
- typedef ::google::protobuf::Map< ::google::protobuf::int32, ::protobuf_unittest::MapEnum >::const_pointer
- ConstPtr;
- typedef ::google::protobuf::internal::SortItem< ::google::protobuf::int32, ConstPtr > SortItem;
- typedef ::google::protobuf::internal::CompareByFirstField<SortItem> Less;
- if (output->IsSerializationDeterministic() &&
- this->map_int32_enum().size() > 1) {
- ::std::unique_ptr<SortItem[]> items(
- new SortItem[this->map_int32_enum().size()]);
- typedef ::google::protobuf::Map< ::google::protobuf::int32, ::protobuf_unittest::MapEnum >::size_type size_type;
- size_type n = 0;
- for (::google::protobuf::Map< ::google::protobuf::int32, ::protobuf_unittest::MapEnum >::const_iterator
- it = this->map_int32_enum().begin();
- it != this->map_int32_enum().end(); ++it, ++n) {
- items[static_cast<ptrdiff_t>(n)] = SortItem(&*it);
- }
- ::std::sort(&items[0], &items[static_cast<ptrdiff_t>(n)], Less());
- ::std::unique_ptr<TestArenaMap_MapInt32EnumEntry_DoNotUse> entry;
- for (size_type i = 0; i < n; i++) {
- entry.reset(map_int32_enum_.NewEnumEntryWrapper(
- items[static_cast<ptrdiff_t>(i)].second->first, items[static_cast<ptrdiff_t>(i)].second->second));
- ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
- 16, *entry, output);
- if (entry->GetArena() != NULL) {
- entry.release();
- }
- }
- } else {
- ::std::unique_ptr<TestArenaMap_MapInt32EnumEntry_DoNotUse> entry;
- for (::google::protobuf::Map< ::google::protobuf::int32, ::protobuf_unittest::MapEnum >::const_iterator
- it = this->map_int32_enum().begin();
- it != this->map_int32_enum().end(); ++it) {
- entry.reset(map_int32_enum_.NewEnumEntryWrapper(
- it->first, it->second));
- ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
- 16, *entry, output);
- if (entry->GetArena() != NULL) {
- entry.release();
- }
- }
- }
- }
- // map<int32, .protobuf_unittest.ForeignMessage> map_int32_foreign_message = 17;
- if (!this->map_int32_foreign_message().empty()) {
- typedef ::google::protobuf::Map< ::google::protobuf::int32, ::protobuf_unittest::ForeignMessage >::const_pointer
- ConstPtr;
- typedef ::google::protobuf::internal::SortItem< ::google::protobuf::int32, ConstPtr > SortItem;
- typedef ::google::protobuf::internal::CompareByFirstField<SortItem> Less;
- if (output->IsSerializationDeterministic() &&
- this->map_int32_foreign_message().size() > 1) {
- ::std::unique_ptr<SortItem[]> items(
- new SortItem[this->map_int32_foreign_message().size()]);
- typedef ::google::protobuf::Map< ::google::protobuf::int32, ::protobuf_unittest::ForeignMessage >::size_type size_type;
- size_type n = 0;
- for (::google::protobuf::Map< ::google::protobuf::int32, ::protobuf_unittest::ForeignMessage >::const_iterator
- it = this->map_int32_foreign_message().begin();
- it != this->map_int32_foreign_message().end(); ++it, ++n) {
- items[static_cast<ptrdiff_t>(n)] = SortItem(&*it);
- }
- ::std::sort(&items[0], &items[static_cast<ptrdiff_t>(n)], Less());
- ::std::unique_ptr<TestArenaMap_MapInt32ForeignMessageEntry_DoNotUse> entry;
- for (size_type i = 0; i < n; i++) {
- entry.reset(map_int32_foreign_message_.NewEntryWrapper(
- items[static_cast<ptrdiff_t>(i)].second->first, items[static_cast<ptrdiff_t>(i)].second->second));
- ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
- 17, *entry, output);
- if (entry->GetArena() != NULL) {
- entry.release();
- }
- }
- } else {
- ::std::unique_ptr<TestArenaMap_MapInt32ForeignMessageEntry_DoNotUse> entry;
- for (::google::protobuf::Map< ::google::protobuf::int32, ::protobuf_unittest::ForeignMessage >::const_iterator
- it = this->map_int32_foreign_message().begin();
- it != this->map_int32_foreign_message().end(); ++it) {
- entry.reset(map_int32_foreign_message_.NewEntryWrapper(
- it->first, it->second));
- ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
- 17, *entry, output);
- if (entry->GetArena() != NULL) {
- entry.release();
- }
- }
- }
- }
- // map<int32, .protobuf_unittest_no_arena.ForeignMessage> map_int32_foreign_message_no_arena = 18;
- if (!this->map_int32_foreign_message_no_arena().empty()) {
- typedef ::google::protobuf::Map< ::google::protobuf::int32, ::protobuf_unittest_no_arena::ForeignMessage >::const_pointer
- ConstPtr;
- typedef ::google::protobuf::internal::SortItem< ::google::protobuf::int32, ConstPtr > SortItem;
- typedef ::google::protobuf::internal::CompareByFirstField<SortItem> Less;
- if (output->IsSerializationDeterministic() &&
- this->map_int32_foreign_message_no_arena().size() > 1) {
- ::std::unique_ptr<SortItem[]> items(
- new SortItem[this->map_int32_foreign_message_no_arena().size()]);
- typedef ::google::protobuf::Map< ::google::protobuf::int32, ::protobuf_unittest_no_arena::ForeignMessage >::size_type size_type;
- size_type n = 0;
- for (::google::protobuf::Map< ::google::protobuf::int32, ::protobuf_unittest_no_arena::ForeignMessage >::const_iterator
- it = this->map_int32_foreign_message_no_arena().begin();
- it != this->map_int32_foreign_message_no_arena().end(); ++it, ++n) {
- items[static_cast<ptrdiff_t>(n)] = SortItem(&*it);
- }
- ::std::sort(&items[0], &items[static_cast<ptrdiff_t>(n)], Less());
- ::std::unique_ptr<TestArenaMap_MapInt32ForeignMessageNoArenaEntry_DoNotUse> entry;
- for (size_type i = 0; i < n; i++) {
- entry.reset(map_int32_foreign_message_no_arena_.NewEntryWrapper(
- items[static_cast<ptrdiff_t>(i)].second->first, items[static_cast<ptrdiff_t>(i)].second->second));
- ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
- 18, *entry, output);
- if (entry->GetArena() != NULL) {
- entry.release();
- }
- }
- } else {
- ::std::unique_ptr<TestArenaMap_MapInt32ForeignMessageNoArenaEntry_DoNotUse> entry;
- for (::google::protobuf::Map< ::google::protobuf::int32, ::protobuf_unittest_no_arena::ForeignMessage >::const_iterator
- it = this->map_int32_foreign_message_no_arena().begin();
- it != this->map_int32_foreign_message_no_arena().end(); ++it) {
- entry.reset(map_int32_foreign_message_no_arena_.NewEntryWrapper(
- it->first, it->second));
- ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
- 18, *entry, output);
- if (entry->GetArena() != NULL) {
- entry.release();
- }
- }
- }
- }
- if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
- ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
- (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output);
- }
- // @@protoc_insertion_point(serialize_end:protobuf_unittest.TestArenaMap)
- }
- ::google::protobuf::uint8* TestArenaMap::InternalSerializeWithCachedSizesToArray(
- bool deterministic, ::google::protobuf::uint8* target) const {
- (void)deterministic; // Unused
- // @@protoc_insertion_point(serialize_to_array_start:protobuf_unittest.TestArenaMap)
- ::google::protobuf::uint32 cached_has_bits = 0;
- (void) cached_has_bits;
- // map<int32, int32> map_int32_int32 = 1;
- if (!this->map_int32_int32().empty()) {
- typedef ::google::protobuf::Map< ::google::protobuf::int32, ::google::protobuf::int32 >::const_pointer
- ConstPtr;
- typedef ::google::protobuf::internal::SortItem< ::google::protobuf::int32, ConstPtr > SortItem;
- typedef ::google::protobuf::internal::CompareByFirstField<SortItem> Less;
- if (deterministic &&
- this->map_int32_int32().size() > 1) {
- ::std::unique_ptr<SortItem[]> items(
- new SortItem[this->map_int32_int32().size()]);
- typedef ::google::protobuf::Map< ::google::protobuf::int32, ::google::protobuf::int32 >::size_type size_type;
- size_type n = 0;
- for (::google::protobuf::Map< ::google::protobuf::int32, ::google::protobuf::int32 >::const_iterator
- it = this->map_int32_int32().begin();
- it != this->map_int32_int32().end(); ++it, ++n) {
- items[static_cast<ptrdiff_t>(n)] = SortItem(&*it);
- }
- ::std::sort(&items[0], &items[static_cast<ptrdiff_t>(n)], Less());
- ::std::unique_ptr<TestArenaMap_MapInt32Int32Entry_DoNotUse> entry;
- for (size_type i = 0; i < n; i++) {
- entry.reset(map_int32_int32_.NewEntryWrapper(
- items[static_cast<ptrdiff_t>(i)].second->first, items[static_cast<ptrdiff_t>(i)].second->second));
- target = ::google::protobuf::internal::WireFormatLite::
- InternalWriteMessageNoVirtualToArray(
- 1, *entry, deterministic, target);
- ;
- if (entry->GetArena() != NULL) {
- entry.release();
- }
- }
- } else {
- ::std::unique_ptr<TestArenaMap_MapInt32Int32Entry_DoNotUse> entry;
- for (::google::protobuf::Map< ::google::protobuf::int32, ::google::protobuf::int32 >::const_iterator
- it = this->map_int32_int32().begin();
- it != this->map_int32_int32().end(); ++it) {
- entry.reset(map_int32_int32_.NewEntryWrapper(
- it->first, it->second));
- target = ::google::protobuf::internal::WireFormatLite::
- InternalWriteMessageNoVirtualToArray(
- 1, *entry, deterministic, target);
- ;
- if (entry->GetArena() != NULL) {
- entry.release();
- }
- }
- }
- }
- // map<int64, int64> map_int64_int64 = 2;
- if (!this->map_int64_int64().empty()) {
- typedef ::google::protobuf::Map< ::google::protobuf::int64, ::google::protobuf::int64 >::const_pointer
- ConstPtr;
- typedef ::google::protobuf::internal::SortItem< ::google::protobuf::int64, ConstPtr > SortItem;
- typedef ::google::protobuf::internal::CompareByFirstField<SortItem> Less;
- if (deterministic &&
- this->map_int64_int64().size() > 1) {
- ::std::unique_ptr<SortItem[]> items(
- new SortItem[this->map_int64_int64().size()]);
- typedef ::google::protobuf::Map< ::google::protobuf::int64, ::google::protobuf::int64 >::size_type size_type;
- size_type n = 0;
- for (::google::protobuf::Map< ::google::protobuf::int64, ::google::protobuf::int64 >::const_iterator
- it = this->map_int64_int64().begin();
- it != this->map_int64_int64().end(); ++it, ++n) {
- items[static_cast<ptrdiff_t>(n)] = SortItem(&*it);
- }
- ::std::sort(&items[0], &items[static_cast<ptrdiff_t>(n)], Less());
- ::std::unique_ptr<TestArenaMap_MapInt64Int64Entry_DoNotUse> entry;
- for (size_type i = 0; i < n; i++) {
- entry.reset(map_int64_int64_.NewEntryWrapper(
- items[static_cast<ptrdiff_t>(i)].second->first, items[static_cast<ptrdiff_t>(i)].second->second));
- target = ::google::protobuf::internal::WireFormatLite::
- InternalWriteMessageNoVirtualToArray(
- 2, *entry, deterministic, target);
- ;
- if (entry->GetArena() != NULL) {
- entry.release();
- }
- }
- } else {
- ::std::unique_ptr<TestArenaMap_MapInt64Int64Entry_DoNotUse> entry;
- for (::google::protobuf::Map< ::google::protobuf::int64, ::google::protobuf::int64 >::const_iterator
- it = this->map_int64_int64().begin();
- it != this->map_int64_int64().end(); ++it) {
- entry.reset(map_int64_int64_.NewEntryWrapper(
- it->first, it->second));
- target = ::google::protobuf::internal::WireFormatLite::
- InternalWriteMessageNoVirtualToArray(
- 2, *entry, deterministic, target);
- ;
- if (entry->GetArena() != NULL) {
- entry.release();
- }
- }
- }
- }
- // map<uint32, uint32> map_uint32_uint32 = 3;
- if (!this->map_uint32_uint32().empty()) {
- typedef ::google::protobuf::Map< ::google::protobuf::uint32, ::google::protobuf::uint32 >::const_pointer
- ConstPtr;
- typedef ::google::protobuf::internal::SortItem< ::google::protobuf::uint32, ConstPtr > SortItem;
- typedef ::google::protobuf::internal::CompareByFirstField<SortItem> Less;
- if (deterministic &&
- this->map_uint32_uint32().size() > 1) {
- ::std::unique_ptr<SortItem[]> items(
- new SortItem[this->map_uint32_uint32().size()]);
- typedef ::google::protobuf::Map< ::google::protobuf::uint32, ::google::protobuf::uint32 >::size_type size_type;
- size_type n = 0;
- for (::google::protobuf::Map< ::google::protobuf::uint32, ::google::protobuf::uint32 >::const_iterator
- it = this->map_uint32_uint32().begin();
- it != this->map_uint32_uint32().end(); ++it, ++n) {
- items[static_cast<ptrdiff_t>(n)] = SortItem(&*it);
- }
- ::std::sort(&items[0], &items[static_cast<ptrdiff_t>(n)], Less());
- ::std::unique_ptr<TestArenaMap_MapUint32Uint32Entry_DoNotUse> entry;
- for (size_type i = 0; i < n; i++) {
- entry.reset(map_uint32_uint32_.NewEntryWrapper(
- items[static_cast<ptrdiff_t>(i)].second->first, items[static_cast<ptrdiff_t>(i)].second->second));
- target = ::google::protobuf::internal::WireFormatLite::
- InternalWriteMessageNoVirtualToArray(
- 3, *entry, deterministic, target);
- ;
- if (entry->GetArena() != NULL) {
- entry.release();
- }
- }
- } else {
- ::std::unique_ptr<TestArenaMap_MapUint32Uint32Entry_DoNotUse> entry;
- for (::google::protobuf::Map< ::google::protobuf::uint32, ::google::protobuf::uint32 >::const_iterator
- it = this->map_uint32_uint32().begin();
- it != this->map_uint32_uint32().end(); ++it) {
- entry.reset(map_uint32_uint32_.NewEntryWrapper(
- it->first, it->second));
- target = ::google::protobuf::internal::WireFormatLite::
- InternalWriteMessageNoVirtualToArray(
- 3, *entry, deterministic, target);
- ;
- if (entry->GetArena() != NULL) {
- entry.release();
- }
- }
- }
- }
- // map<uint64, uint64> map_uint64_uint64 = 4;
- if (!this->map_uint64_uint64().empty()) {
- typedef ::google::protobuf::Map< ::google::protobuf::uint64, ::google::protobuf::uint64 >::const_pointer
- ConstPtr;
- typedef ::google::protobuf::internal::SortItem< ::google::protobuf::uint64, ConstPtr > SortItem;
- typedef ::google::protobuf::internal::CompareByFirstField<SortItem> Less;
- if (deterministic &&
- this->map_uint64_uint64().size() > 1) {
- ::std::unique_ptr<SortItem[]> items(
- new SortItem[this->map_uint64_uint64().size()]);
- typedef ::google::protobuf::Map< ::google::protobuf::uint64, ::google::protobuf::uint64 >::size_type size_type;
- size_type n = 0;
- for (::google::protobuf::Map< ::google::protobuf::uint64, ::google::protobuf::uint64 >::const_iterator
- it = this->map_uint64_uint64().begin();
- it != this->map_uint64_uint64().end(); ++it, ++n) {
- items[static_cast<ptrdiff_t>(n)] = SortItem(&*it);
- }
- ::std::sort(&items[0], &items[static_cast<ptrdiff_t>(n)], Less());
- ::std::unique_ptr<TestArenaMap_MapUint64Uint64Entry_DoNotUse> entry;
- for (size_type i = 0; i < n; i++) {
- entry.reset(map_uint64_uint64_.NewEntryWrapper(
- items[static_cast<ptrdiff_t>(i)].second->first, items[static_cast<ptrdiff_t>(i)].second->second));
- target = ::google::protobuf::internal::WireFormatLite::
- InternalWriteMessageNoVirtualToArray(
- 4, *entry, deterministic, target);
- ;
- if (entry->GetArena() != NULL) {
- entry.release();
- }
- }
- } else {
- ::std::unique_ptr<TestArenaMap_MapUint64Uint64Entry_DoNotUse> entry;
- for (::google::protobuf::Map< ::google::protobuf::uint64, ::google::protobuf::uint64 >::const_iterator
- it = this->map_uint64_uint64().begin();
- it != this->map_uint64_uint64().end(); ++it) {
- entry.reset(map_uint64_uint64_.NewEntryWrapper(
- it->first, it->second));
- target = ::google::protobuf::internal::WireFormatLite::
- InternalWriteMessageNoVirtualToArray(
- 4, *entry, deterministic, target);
- ;
- if (entry->GetArena() != NULL) {
- entry.release();
- }
- }
- }
- }
- // map<sint32, sint32> map_sint32_sint32 = 5;
- if (!this->map_sint32_sint32().empty()) {
- typedef ::google::protobuf::Map< ::google::protobuf::int32, ::google::protobuf::int32 >::const_pointer
- ConstPtr;
- typedef ::google::protobuf::internal::SortItem< ::google::protobuf::int32, ConstPtr > SortItem;
- typedef ::google::protobuf::internal::CompareByFirstField<SortItem> Less;
- if (deterministic &&
- this->map_sint32_sint32().size() > 1) {
- ::std::unique_ptr<SortItem[]> items(
- new SortItem[this->map_sint32_sint32().size()]);
- typedef ::google::protobuf::Map< ::google::protobuf::int32, ::google::protobuf::int32 >::size_type size_type;
- size_type n = 0;
- for (::google::protobuf::Map< ::google::protobuf::int32, ::google::protobuf::int32 >::const_iterator
- it = this->map_sint32_sint32().begin();
- it != this->map_sint32_sint32().end(); ++it, ++n) {
- items[static_cast<ptrdiff_t>(n)] = SortItem(&*it);
- }
- ::std::sort(&items[0], &items[static_cast<ptrdiff_t>(n)], Less());
- ::std::unique_ptr<TestArenaMap_MapSint32Sint32Entry_DoNotUse> entry;
- for (size_type i = 0; i < n; i++) {
- entry.reset(map_sint32_sint32_.NewEntryWrapper(
- items[static_cast<ptrdiff_t>(i)].second->first, items[static_cast<ptrdiff_t>(i)].second->second));
- target = ::google::protobuf::internal::WireFormatLite::
- InternalWriteMessageNoVirtualToArray(
- 5, *entry, deterministic, target);
- ;
- if (entry->GetArena() != NULL) {
- entry.release();
- }
- }
- } else {
- ::std::unique_ptr<TestArenaMap_MapSint32Sint32Entry_DoNotUse> entry;
- for (::google::protobuf::Map< ::google::protobuf::int32, ::google::protobuf::int32 >::const_iterator
- it = this->map_sint32_sint32().begin();
- it != this->map_sint32_sint32().end(); ++it) {
- entry.reset(map_sint32_sint32_.NewEntryWrapper(
- it->first, it->second));
- target = ::google::protobuf::internal::WireFormatLite::
- InternalWriteMessageNoVirtualToArray(
- 5, *entry, deterministic, target);
- ;
- if (entry->GetArena() != NULL) {
- entry.release();
- }
- }
- }
- }
- // map<sint64, sint64> map_sint64_sint64 = 6;
- if (!this->map_sint64_sint64().empty()) {
- typedef ::google::protobuf::Map< ::google::protobuf::int64, ::google::protobuf::int64 >::const_pointer
- ConstPtr;
- typedef ::google::protobuf::internal::SortItem< ::google::protobuf::int64, ConstPtr > SortItem;
- typedef ::google::protobuf::internal::CompareByFirstField<SortItem> Less;
- if (deterministic &&
- this->map_sint64_sint64().size() > 1) {
- ::std::unique_ptr<SortItem[]> items(
- new SortItem[this->map_sint64_sint64().size()]);
- typedef ::google::protobuf::Map< ::google::protobuf::int64, ::google::protobuf::int64 >::size_type size_type;
- size_type n = 0;
- for (::google::protobuf::Map< ::google::protobuf::int64, ::google::protobuf::int64 >::const_iterator
- it = this->map_sint64_sint64().begin();
- it != this->map_sint64_sint64().end(); ++it, ++n) {
- items[static_cast<ptrdiff_t>(n)] = SortItem(&*it);
- }
- ::std::sort(&items[0], &items[static_cast<ptrdiff_t>(n)], Less());
- ::std::unique_ptr<TestArenaMap_MapSint64Sint64Entry_DoNotUse> entry;
- for (size_type i = 0; i < n; i++) {
- entry.reset(map_sint64_sint64_.NewEntryWrapper(
- items[static_cast<ptrdiff_t>(i)].second->first, items[static_cast<ptrdiff_t>(i)].second->second));
- target = ::google::protobuf::internal::WireFormatLite::
- InternalWriteMessageNoVirtualToArray(
- 6, *entry, deterministic, target);
- ;
- if (entry->GetArena() != NULL) {
- entry.release();
- }
- }
- } else {
- ::std::unique_ptr<TestArenaMap_MapSint64Sint64Entry_DoNotUse> entry;
- for (::google::protobuf::Map< ::google::protobuf::int64, ::google::protobuf::int64 >::const_iterator
- it = this->map_sint64_sint64().begin();
- it != this->map_sint64_sint64().end(); ++it) {
- entry.reset(map_sint64_sint64_.NewEntryWrapper(
- it->first, it->second));
- target = ::google::protobuf::internal::WireFormatLite::
- InternalWriteMessageNoVirtualToArray(
- 6, *entry, deterministic, target);
- ;
- if (entry->GetArena() != NULL) {
- entry.release();
- }
- }
- }
- }
- // map<fixed32, fixed32> map_fixed32_fixed32 = 7;
- if (!this->map_fixed32_fixed32().empty()) {
- typedef ::google::protobuf::Map< ::google::protobuf::uint32, ::google::protobuf::uint32 >::const_pointer
- ConstPtr;
- typedef ::google::protobuf::internal::SortItem< ::google::protobuf::uint32, ConstPtr > SortItem;
- typedef ::google::protobuf::internal::CompareByFirstField<SortItem> Less;
- if (deterministic &&
- this->map_fixed32_fixed32().size() > 1) {
- ::std::unique_ptr<SortItem[]> items(
- new SortItem[this->map_fixed32_fixed32().size()]);
- typedef ::google::protobuf::Map< ::google::protobuf::uint32, ::google::protobuf::uint32 >::size_type size_type;
- size_type n = 0;
- for (::google::protobuf::Map< ::google::protobuf::uint32, ::google::protobuf::uint32 >::const_iterator
- it = this->map_fixed32_fixed32().begin();
- it != this->map_fixed32_fixed32().end(); ++it, ++n) {
- items[static_cast<ptrdiff_t>(n)] = SortItem(&*it);
- }
- ::std::sort(&items[0], &items[static_cast<ptrdiff_t>(n)], Less());
- ::std::unique_ptr<TestArenaMap_MapFixed32Fixed32Entry_DoNotUse> entry;
- for (size_type i = 0; i < n; i++) {
- entry.reset(map_fixed32_fixed32_.NewEntryWrapper(
- items[static_cast<ptrdiff_t>(i)].second->first, items[static_cast<ptrdiff_t>(i)].second->second));
- target = ::google::protobuf::internal::WireFormatLite::
- InternalWriteMessageNoVirtualToArray(
- 7, *entry, deterministic, target);
- ;
- if (entry->GetArena() != NULL) {
- entry.release();
- }
- }
- } else {
- ::std::unique_ptr<TestArenaMap_MapFixed32Fixed32Entry_DoNotUse> entry;
- for (::google::protobuf::Map< ::google::protobuf::uint32, ::google::protobuf::uint32 >::const_iterator
- it = this->map_fixed32_fixed32().begin();
- it != this->map_fixed32_fixed32().end(); ++it) {
- entry.reset(map_fixed32_fixed32_.NewEntryWrapper(
- it->first, it->second));
- target = ::google::protobuf::internal::WireFormatLite::
- InternalWriteMessageNoVirtualToArray(
- 7, *entry, deterministic, target);
- ;
- if (entry->GetArena() != NULL) {
- entry.release();
- }
- }
- }
- }
- // map<fixed64, fixed64> map_fixed64_fixed64 = 8;
- if (!this->map_fixed64_fixed64().empty()) {
- typedef ::google::protobuf::Map< ::google::protobuf::uint64, ::google::protobuf::uint64 >::const_pointer
- ConstPtr;
- typedef ::google::protobuf::internal::SortItem< ::google::protobuf::uint64, ConstPtr > SortItem;
- typedef ::google::protobuf::internal::CompareByFirstField<SortItem> Less;
- if (deterministic &&
- this->map_fixed64_fixed64().size() > 1) {
- ::std::unique_ptr<SortItem[]> items(
- new SortItem[this->map_fixed64_fixed64().size()]);
- typedef ::google::protobuf::Map< ::google::protobuf::uint64, ::google::protobuf::uint64 >::size_type size_type;
- size_type n = 0;
- for (::google::protobuf::Map< ::google::protobuf::uint64, ::google::protobuf::uint64 >::const_iterator
- it = this->map_fixed64_fixed64().begin();
- it != this->map_fixed64_fixed64().end(); ++it, ++n) {
- items[static_cast<ptrdiff_t>(n)] = SortItem(&*it);
- }
- ::std::sort(&items[0], &items[static_cast<ptrdiff_t>(n)], Less());
- ::std::unique_ptr<TestArenaMap_MapFixed64Fixed64Entry_DoNotUse> entry;
- for (size_type i = 0; i < n; i++) {
- entry.reset(map_fixed64_fixed64_.NewEntryWrapper(
- items[static_cast<ptrdiff_t>(i)].second->first, items[static_cast<ptrdiff_t>(i)].second->second));
- target = ::google::protobuf::internal::WireFormatLite::
- InternalWriteMessageNoVirtualToArray(
- 8, *entry, deterministic, target);
- ;
- if (entry->GetArena() != NULL) {
- entry.release();
- }
- }
- } else {
- ::std::unique_ptr<TestArenaMap_MapFixed64Fixed64Entry_DoNotUse> entry;
- for (::google::protobuf::Map< ::google::protobuf::uint64, ::google::protobuf::uint64 >::const_iterator
- it = this->map_fixed64_fixed64().begin();
- it != this->map_fixed64_fixed64().end(); ++it) {
- entry.reset(map_fixed64_fixed64_.NewEntryWrapper(
- it->first, it->second));
- target = ::google::protobuf::internal::WireFormatLite::
- InternalWriteMessageNoVirtualToArray(
- 8, *entry, deterministic, target);
- ;
- if (entry->GetArena() != NULL) {
- entry.release();
- }
- }
- }
- }
- // map<sfixed32, sfixed32> map_sfixed32_sfixed32 = 9;
- if (!this->map_sfixed32_sfixed32().empty()) {
- typedef ::google::protobuf::Map< ::google::protobuf::int32, ::google::protobuf::int32 >::const_pointer
- ConstPtr;
- typedef ::google::protobuf::internal::SortItem< ::google::protobuf::int32, ConstPtr > SortItem;
- typedef ::google::protobuf::internal::CompareByFirstField<SortItem> Less;
- if (deterministic &&
- this->map_sfixed32_sfixed32().size() > 1) {
- ::std::unique_ptr<SortItem[]> items(
- new SortItem[this->map_sfixed32_sfixed32().size()]);
- typedef ::google::protobuf::Map< ::google::protobuf::int32, ::google::protobuf::int32 >::size_type size_type;
- size_type n = 0;
- for (::google::protobuf::Map< ::google::protobuf::int32, ::google::protobuf::int32 >::const_iterator
- it = this->map_sfixed32_sfixed32().begin();
- it != this->map_sfixed32_sfixed32().end(); ++it, ++n) {
- items[static_cast<ptrdiff_t>(n)] = SortItem(&*it);
- }
- ::std::sort(&items[0], &items[static_cast<ptrdiff_t>(n)], Less());
- ::std::unique_ptr<TestArenaMap_MapSfixed32Sfixed32Entry_DoNotUse> entry;
- for (size_type i = 0; i < n; i++) {
- entry.reset(map_sfixed32_sfixed32_.NewEntryWrapper(
- items[static_cast<ptrdiff_t>(i)].second->first, items[static_cast<ptrdiff_t>(i)].second->second));
- target = ::google::protobuf::internal::WireFormatLite::
- InternalWriteMessageNoVirtualToArray(
- 9, *entry, deterministic, target);
- ;
- if (entry->GetArena() != NULL) {
- entry.release();
- }
- }
- } else {
- ::std::unique_ptr<TestArenaMap_MapSfixed32Sfixed32Entry_DoNotUse> entry;
- for (::google::protobuf::Map< ::google::protobuf::int32, ::google::protobuf::int32 >::const_iterator
- it = this->map_sfixed32_sfixed32().begin();
- it != this->map_sfixed32_sfixed32().end(); ++it) {
- entry.reset(map_sfixed32_sfixed32_.NewEntryWrapper(
- it->first, it->second));
- target = ::google::protobuf::internal::WireFormatLite::
- InternalWriteMessageNoVirtualToArray(
- 9, *entry, deterministic, target);
- ;
- if (entry->GetArena() != NULL) {
- entry.release();
- }
- }
- }
- }
- // map<sfixed64, sfixed64> map_sfixed64_sfixed64 = 10;
- if (!this->map_sfixed64_sfixed64().empty()) {
- typedef ::google::protobuf::Map< ::google::protobuf::int64, ::google::protobuf::int64 >::const_pointer
- ConstPtr;
- typedef ::google::protobuf::internal::SortItem< ::google::protobuf::int64, ConstPtr > SortItem;
- typedef ::google::protobuf::internal::CompareByFirstField<SortItem> Less;
- if (deterministic &&
- this->map_sfixed64_sfixed64().size() > 1) {
- ::std::unique_ptr<SortItem[]> items(
- new SortItem[this->map_sfixed64_sfixed64().size()]);
- typedef ::google::protobuf::Map< ::google::protobuf::int64, ::google::protobuf::int64 >::size_type size_type;
- size_type n = 0;
- for (::google::protobuf::Map< ::google::protobuf::int64, ::google::protobuf::int64 >::const_iterator
- it = this->map_sfixed64_sfixed64().begin();
- it != this->map_sfixed64_sfixed64().end(); ++it, ++n) {
- items[static_cast<ptrdiff_t>(n)] = SortItem(&*it);
- }
- ::std::sort(&items[0], &items[static_cast<ptrdiff_t>(n)], Less());
- ::std::unique_ptr<TestArenaMap_MapSfixed64Sfixed64Entry_DoNotUse> entry;
- for (size_type i = 0; i < n; i++) {
- entry.reset(map_sfixed64_sfixed64_.NewEntryWrapper(
- items[static_cast<ptrdiff_t>(i)].second->first, items[static_cast<ptrdiff_t>(i)].second->second));
- target = ::google::protobuf::internal::WireFormatLite::
- InternalWriteMessageNoVirtualToArray(
- 10, *entry, deterministic, target);
- ;
- if (entry->GetArena() != NULL) {
- entry.release();
- }
- }
- } else {
- ::std::unique_ptr<TestArenaMap_MapSfixed64Sfixed64Entry_DoNotUse> entry;
- for (::google::protobuf::Map< ::google::protobuf::int64, ::google::protobuf::int64 >::const_iterator
- it = this->map_sfixed64_sfixed64().begin();
- it != this->map_sfixed64_sfixed64().end(); ++it) {
- entry.reset(map_sfixed64_sfixed64_.NewEntryWrapper(
- it->first, it->second));
- target = ::google::protobuf::internal::WireFormatLite::
- InternalWriteMessageNoVirtualToArray(
- 10, *entry, deterministic, target);
- ;
- if (entry->GetArena() != NULL) {
- entry.release();
- }
- }
- }
- }
- // map<int32, float> map_int32_float = 11;
- if (!this->map_int32_float().empty()) {
- typedef ::google::protobuf::Map< ::google::protobuf::int32, float >::const_pointer
- ConstPtr;
- typedef ::google::protobuf::internal::SortItem< ::google::protobuf::int32, ConstPtr > SortItem;
- typedef ::google::protobuf::internal::CompareByFirstField<SortItem> Less;
- if (deterministic &&
- this->map_int32_float().size() > 1) {
- ::std::unique_ptr<SortItem[]> items(
- new SortItem[this->map_int32_float().size()]);
- typedef ::google::protobuf::Map< ::google::protobuf::int32, float >::size_type size_type;
- size_type n = 0;
- for (::google::protobuf::Map< ::google::protobuf::int32, float >::const_iterator
- it = this->map_int32_float().begin();
- it != this->map_int32_float().end(); ++it, ++n) {
- items[static_cast<ptrdiff_t>(n)] = SortItem(&*it);
- }
- ::std::sort(&items[0], &items[static_cast<ptrdiff_t>(n)], Less());
- ::std::unique_ptr<TestArenaMap_MapInt32FloatEntry_DoNotUse> entry;
- for (size_type i = 0; i < n; i++) {
- entry.reset(map_int32_float_.NewEntryWrapper(
- items[static_cast<ptrdiff_t>(i)].second->first, items[static_cast<ptrdiff_t>(i)].second->second));
- target = ::google::protobuf::internal::WireFormatLite::
- InternalWriteMessageNoVirtualToArray(
- 11, *entry, deterministic, target);
- ;
- if (entry->GetArena() != NULL) {
- entry.release();
- }
- }
- } else {
- ::std::unique_ptr<TestArenaMap_MapInt32FloatEntry_DoNotUse> entry;
- for (::google::protobuf::Map< ::google::protobuf::int32, float >::const_iterator
- it = this->map_int32_float().begin();
- it != this->map_int32_float().end(); ++it) {
- entry.reset(map_int32_float_.NewEntryWrapper(
- it->first, it->second));
- target = ::google::protobuf::internal::WireFormatLite::
- InternalWriteMessageNoVirtualToArray(
- 11, *entry, deterministic, target);
- ;
- if (entry->GetArena() != NULL) {
- entry.release();
- }
- }
- }
- }
- // map<int32, double> map_int32_double = 12;
- if (!this->map_int32_double().empty()) {
- typedef ::google::protobuf::Map< ::google::protobuf::int32, double >::const_pointer
- ConstPtr;
- typedef ::google::protobuf::internal::SortItem< ::google::protobuf::int32, ConstPtr > SortItem;
- typedef ::google::protobuf::internal::CompareByFirstField<SortItem> Less;
- if (deterministic &&
- this->map_int32_double().size() > 1) {
- ::std::unique_ptr<SortItem[]> items(
- new SortItem[this->map_int32_double().size()]);
- typedef ::google::protobuf::Map< ::google::protobuf::int32, double >::size_type size_type;
- size_type n = 0;
- for (::google::protobuf::Map< ::google::protobuf::int32, double >::const_iterator
- it = this->map_int32_double().begin();
- it != this->map_int32_double().end(); ++it, ++n) {
- items[static_cast<ptrdiff_t>(n)] = SortItem(&*it);
- }
- ::std::sort(&items[0], &items[static_cast<ptrdiff_t>(n)], Less());
- ::std::unique_ptr<TestArenaMap_MapInt32DoubleEntry_DoNotUse> entry;
- for (size_type i = 0; i < n; i++) {
- entry.reset(map_int32_double_.NewEntryWrapper(
- items[static_cast<ptrdiff_t>(i)].second->first, items[static_cast<ptrdiff_t>(i)].second->second));
- target = ::google::protobuf::internal::WireFormatLite::
- InternalWriteMessageNoVirtualToArray(
- 12, *entry, deterministic, target);
- ;
- if (entry->GetArena() != NULL) {
- entry.release();
- }
- }
- } else {
- ::std::unique_ptr<TestArenaMap_MapInt32DoubleEntry_DoNotUse> entry;
- for (::google::protobuf::Map< ::google::protobuf::int32, double >::const_iterator
- it = this->map_int32_double().begin();
- it != this->map_int32_double().end(); ++it) {
- entry.reset(map_int32_double_.NewEntryWrapper(
- it->first, it->second));
- target = ::google::protobuf::internal::WireFormatLite::
- InternalWriteMessageNoVirtualToArray(
- 12, *entry, deterministic, target);
- ;
- if (entry->GetArena() != NULL) {
- entry.release();
- }
- }
- }
- }
- // map<bool, bool> map_bool_bool = 13;
- if (!this->map_bool_bool().empty()) {
- typedef ::google::protobuf::Map< bool, bool >::const_pointer
- ConstPtr;
- typedef ::google::protobuf::internal::SortItem< bool, ConstPtr > SortItem;
- typedef ::google::protobuf::internal::CompareByFirstField<SortItem> Less;
- if (deterministic &&
- this->map_bool_bool().size() > 1) {
- ::std::unique_ptr<SortItem[]> items(
- new SortItem[this->map_bool_bool().size()]);
- typedef ::google::protobuf::Map< bool, bool >::size_type size_type;
- size_type n = 0;
- for (::google::protobuf::Map< bool, bool >::const_iterator
- it = this->map_bool_bool().begin();
- it != this->map_bool_bool().end(); ++it, ++n) {
- items[static_cast<ptrdiff_t>(n)] = SortItem(&*it);
- }
- ::std::sort(&items[0], &items[static_cast<ptrdiff_t>(n)], Less());
- ::std::unique_ptr<TestArenaMap_MapBoolBoolEntry_DoNotUse> entry;
- for (size_type i = 0; i < n; i++) {
- entry.reset(map_bool_bool_.NewEntryWrapper(
- items[static_cast<ptrdiff_t>(i)].second->first, items[static_cast<ptrdiff_t>(i)].second->second));
- target = ::google::protobuf::internal::WireFormatLite::
- InternalWriteMessageNoVirtualToArray(
- 13, *entry, deterministic, target);
- ;
- if (entry->GetArena() != NULL) {
- entry.release();
- }
- }
- } else {
- ::std::unique_ptr<TestArenaMap_MapBoolBoolEntry_DoNotUse> entry;
- for (::google::protobuf::Map< bool, bool >::const_iterator
- it = this->map_bool_bool().begin();
- it != this->map_bool_bool().end(); ++it) {
- entry.reset(map_bool_bool_.NewEntryWrapper(
- it->first, it->second));
- target = ::google::protobuf::internal::WireFormatLite::
- InternalWriteMessageNoVirtualToArray(
- 13, *entry, deterministic, target);
- ;
- if (entry->GetArena() != NULL) {
- entry.release();
- }
- }
- }
- }
- // map<string, string> map_string_string = 14;
- if (!this->map_string_string().empty()) {
- typedef ::google::protobuf::Map< ::std::string, ::std::string >::const_pointer
- ConstPtr;
- typedef ConstPtr SortItem;
- typedef ::google::protobuf::internal::CompareByDerefFirst<SortItem> Less;
- struct Utf8Check {
- static void Check(ConstPtr p) {
- ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
- p->first.data(), static_cast<int>(p->first.length()),
- ::google::protobuf::internal::WireFormatLite::SERIALIZE,
- "protobuf_unittest.TestArenaMap.MapStringStringEntry.key");
- ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
- p->second.data(), static_cast<int>(p->second.length()),
- ::google::protobuf::internal::WireFormatLite::SERIALIZE,
- "protobuf_unittest.TestArenaMap.MapStringStringEntry.value");
- }
- };
- if (deterministic &&
- this->map_string_string().size() > 1) {
- ::std::unique_ptr<SortItem[]> items(
- new SortItem[this->map_string_string().size()]);
- typedef ::google::protobuf::Map< ::std::string, ::std::string >::size_type size_type;
- size_type n = 0;
- for (::google::protobuf::Map< ::std::string, ::std::string >::const_iterator
- it = this->map_string_string().begin();
- it != this->map_string_string().end(); ++it, ++n) {
- items[static_cast<ptrdiff_t>(n)] = SortItem(&*it);
- }
- ::std::sort(&items[0], &items[static_cast<ptrdiff_t>(n)], Less());
- ::std::unique_ptr<TestArenaMap_MapStringStringEntry_DoNotUse> entry;
- for (size_type i = 0; i < n; i++) {
- entry.reset(map_string_string_.NewEntryWrapper(
- items[static_cast<ptrdiff_t>(i)]->first, items[static_cast<ptrdiff_t>(i)]->second));
- target = ::google::protobuf::internal::WireFormatLite::
- InternalWriteMessageNoVirtualToArray(
- 14, *entry, deterministic, target);
- ;
- if (entry->GetArena() != NULL) {
- entry.release();
- }
- Utf8Check::Check(items[static_cast<ptrdiff_t>(i)]);
- }
- } else {
- ::std::unique_ptr<TestArenaMap_MapStringStringEntry_DoNotUse> entry;
- for (::google::protobuf::Map< ::std::string, ::std::string >::const_iterator
- it = this->map_string_string().begin();
- it != this->map_string_string().end(); ++it) {
- entry.reset(map_string_string_.NewEntryWrapper(
- it->first, it->second));
- target = ::google::protobuf::internal::WireFormatLite::
- InternalWriteMessageNoVirtualToArray(
- 14, *entry, deterministic, target);
- ;
- if (entry->GetArena() != NULL) {
- entry.release();
- }
- Utf8Check::Check(&*it);
- }
- }
- }
- // map<int32, bytes> map_int32_bytes = 15;
- if (!this->map_int32_bytes().empty()) {
- typedef ::google::protobuf::Map< ::google::protobuf::int32, ::std::string >::const_pointer
- ConstPtr;
- typedef ::google::protobuf::internal::SortItem< ::google::protobuf::int32, ConstPtr > SortItem;
- typedef ::google::protobuf::internal::CompareByFirstField<SortItem> Less;
- if (deterministic &&
- this->map_int32_bytes().size() > 1) {
- ::std::unique_ptr<SortItem[]> items(
- new SortItem[this->map_int32_bytes().size()]);
- typedef ::google::protobuf::Map< ::google::protobuf::int32, ::std::string >::size_type size_type;
- size_type n = 0;
- for (::google::protobuf::Map< ::google::protobuf::int32, ::std::string >::const_iterator
- it = this->map_int32_bytes().begin();
- it != this->map_int32_bytes().end(); ++it, ++n) {
- items[static_cast<ptrdiff_t>(n)] = SortItem(&*it);
- }
- ::std::sort(&items[0], &items[static_cast<ptrdiff_t>(n)], Less());
- ::std::unique_ptr<TestArenaMap_MapInt32BytesEntry_DoNotUse> entry;
- for (size_type i = 0; i < n; i++) {
- entry.reset(map_int32_bytes_.NewEntryWrapper(
- items[static_cast<ptrdiff_t>(i)].second->first, items[static_cast<ptrdiff_t>(i)].second->second));
- target = ::google::protobuf::internal::WireFormatLite::
- InternalWriteMessageNoVirtualToArray(
- 15, *entry, deterministic, target);
- ;
- if (entry->GetArena() != NULL) {
- entry.release();
- }
- }
- } else {
- ::std::unique_ptr<TestArenaMap_MapInt32BytesEntry_DoNotUse> entry;
- for (::google::protobuf::Map< ::google::protobuf::int32, ::std::string >::const_iterator
- it = this->map_int32_bytes().begin();
- it != this->map_int32_bytes().end(); ++it) {
- entry.reset(map_int32_bytes_.NewEntryWrapper(
- it->first, it->second));
- target = ::google::protobuf::internal::WireFormatLite::
- InternalWriteMessageNoVirtualToArray(
- 15, *entry, deterministic, target);
- ;
- if (entry->GetArena() != NULL) {
- entry.release();
- }
- }
- }
- }
- // map<int32, .protobuf_unittest.MapEnum> map_int32_enum = 16;
- if (!this->map_int32_enum().empty()) {
- typedef ::google::protobuf::Map< ::google::protobuf::int32, ::protobuf_unittest::MapEnum >::const_pointer
- ConstPtr;
- typedef ::google::protobuf::internal::SortItem< ::google::protobuf::int32, ConstPtr > SortItem;
- typedef ::google::protobuf::internal::CompareByFirstField<SortItem> Less;
- if (deterministic &&
- this->map_int32_enum().size() > 1) {
- ::std::unique_ptr<SortItem[]> items(
- new SortItem[this->map_int32_enum().size()]);
- typedef ::google::protobuf::Map< ::google::protobuf::int32, ::protobuf_unittest::MapEnum >::size_type size_type;
- size_type n = 0;
- for (::google::protobuf::Map< ::google::protobuf::int32, ::protobuf_unittest::MapEnum >::const_iterator
- it = this->map_int32_enum().begin();
- it != this->map_int32_enum().end(); ++it, ++n) {
- items[static_cast<ptrdiff_t>(n)] = SortItem(&*it);
- }
- ::std::sort(&items[0], &items[static_cast<ptrdiff_t>(n)], Less());
- ::std::unique_ptr<TestArenaMap_MapInt32EnumEntry_DoNotUse> entry;
- for (size_type i = 0; i < n; i++) {
- entry.reset(map_int32_enum_.NewEnumEntryWrapper(
- items[static_cast<ptrdiff_t>(i)].second->first, items[static_cast<ptrdiff_t>(i)].second->second));
- target = ::google::protobuf::internal::WireFormatLite::
- InternalWriteMessageNoVirtualToArray(
- 16, *entry, deterministic, target);
- ;
- if (entry->GetArena() != NULL) {
- entry.release();
- }
- }
- } else {
- ::std::unique_ptr<TestArenaMap_MapInt32EnumEntry_DoNotUse> entry;
- for (::google::protobuf::Map< ::google::protobuf::int32, ::protobuf_unittest::MapEnum >::const_iterator
- it = this->map_int32_enum().begin();
- it != this->map_int32_enum().end(); ++it) {
- entry.reset(map_int32_enum_.NewEnumEntryWrapper(
- it->first, it->second));
- target = ::google::protobuf::internal::WireFormatLite::
- InternalWriteMessageNoVirtualToArray(
- 16, *entry, deterministic, target);
- ;
- if (entry->GetArena() != NULL) {
- entry.release();
- }
- }
- }
- }
- // map<int32, .protobuf_unittest.ForeignMessage> map_int32_foreign_message = 17;
- if (!this->map_int32_foreign_message().empty()) {
- typedef ::google::protobuf::Map< ::google::protobuf::int32, ::protobuf_unittest::ForeignMessage >::const_pointer
- ConstPtr;
- typedef ::google::protobuf::internal::SortItem< ::google::protobuf::int32, ConstPtr > SortItem;
- typedef ::google::protobuf::internal::CompareByFirstField<SortItem> Less;
- if (deterministic &&
- this->map_int32_foreign_message().size() > 1) {
- ::std::unique_ptr<SortItem[]> items(
- new SortItem[this->map_int32_foreign_message().size()]);
- typedef ::google::protobuf::Map< ::google::protobuf::int32, ::protobuf_unittest::ForeignMessage >::size_type size_type;
- size_type n = 0;
- for (::google::protobuf::Map< ::google::protobuf::int32, ::protobuf_unittest::ForeignMessage >::const_iterator
- it = this->map_int32_foreign_message().begin();
- it != this->map_int32_foreign_message().end(); ++it, ++n) {
- items[static_cast<ptrdiff_t>(n)] = SortItem(&*it);
- }
- ::std::sort(&items[0], &items[static_cast<ptrdiff_t>(n)], Less());
- ::std::unique_ptr<TestArenaMap_MapInt32ForeignMessageEntry_DoNotUse> entry;
- for (size_type i = 0; i < n; i++) {
- entry.reset(map_int32_foreign_message_.NewEntryWrapper(
- items[static_cast<ptrdiff_t>(i)].second->first, items[static_cast<ptrdiff_t>(i)].second->second));
- target = ::google::protobuf::internal::WireFormatLite::
- InternalWriteMessageNoVirtualToArray(
- 17, *entry, deterministic, target);
- ;
- if (entry->GetArena() != NULL) {
- entry.release();
- }
- }
- } else {
- ::std::unique_ptr<TestArenaMap_MapInt32ForeignMessageEntry_DoNotUse> entry;
- for (::google::protobuf::Map< ::google::protobuf::int32, ::protobuf_unittest::ForeignMessage >::const_iterator
- it = this->map_int32_foreign_message().begin();
- it != this->map_int32_foreign_message().end(); ++it) {
- entry.reset(map_int32_foreign_message_.NewEntryWrapper(
- it->first, it->second));
- target = ::google::protobuf::internal::WireFormatLite::
- InternalWriteMessageNoVirtualToArray(
- 17, *entry, deterministic, target);
- ;
- if (entry->GetArena() != NULL) {
- entry.release();
- }
- }
- }
- }
- // map<int32, .protobuf_unittest_no_arena.ForeignMessage> map_int32_foreign_message_no_arena = 18;
- if (!this->map_int32_foreign_message_no_arena().empty()) {
- typedef ::google::protobuf::Map< ::google::protobuf::int32, ::protobuf_unittest_no_arena::ForeignMessage >::const_pointer
- ConstPtr;
- typedef ::google::protobuf::internal::SortItem< ::google::protobuf::int32, ConstPtr > SortItem;
- typedef ::google::protobuf::internal::CompareByFirstField<SortItem> Less;
- if (deterministic &&
- this->map_int32_foreign_message_no_arena().size() > 1) {
- ::std::unique_ptr<SortItem[]> items(
- new SortItem[this->map_int32_foreign_message_no_arena().size()]);
- typedef ::google::protobuf::Map< ::google::protobuf::int32, ::protobuf_unittest_no_arena::ForeignMessage >::size_type size_type;
- size_type n = 0;
- for (::google::protobuf::Map< ::google::protobuf::int32, ::protobuf_unittest_no_arena::ForeignMessage >::const_iterator
- it = this->map_int32_foreign_message_no_arena().begin();
- it != this->map_int32_foreign_message_no_arena().end(); ++it, ++n) {
- items[static_cast<ptrdiff_t>(n)] = SortItem(&*it);
- }
- ::std::sort(&items[0], &items[static_cast<ptrdiff_t>(n)], Less());
- ::std::unique_ptr<TestArenaMap_MapInt32ForeignMessageNoArenaEntry_DoNotUse> entry;
- for (size_type i = 0; i < n; i++) {
- entry.reset(map_int32_foreign_message_no_arena_.NewEntryWrapper(
- items[static_cast<ptrdiff_t>(i)].second->first, items[static_cast<ptrdiff_t>(i)].second->second));
- target = ::google::protobuf::internal::WireFormatLite::
- InternalWriteMessageNoVirtualToArray(
- 18, *entry, deterministic, target);
- ;
- if (entry->GetArena() != NULL) {
- entry.release();
- }
- }
- } else {
- ::std::unique_ptr<TestArenaMap_MapInt32ForeignMessageNoArenaEntry_DoNotUse> entry;
- for (::google::protobuf::Map< ::google::protobuf::int32, ::protobuf_unittest_no_arena::ForeignMessage >::const_iterator
- it = this->map_int32_foreign_message_no_arena().begin();
- it != this->map_int32_foreign_message_no_arena().end(); ++it) {
- entry.reset(map_int32_foreign_message_no_arena_.NewEntryWrapper(
- it->first, it->second));
- target = ::google::protobuf::internal::WireFormatLite::
- InternalWriteMessageNoVirtualToArray(
- 18, *entry, deterministic, target);
- ;
- if (entry->GetArena() != NULL) {
- entry.release();
- }
- }
- }
- }
- if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
- target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
- (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target);
- }
- // @@protoc_insertion_point(serialize_to_array_end:protobuf_unittest.TestArenaMap)
- return target;
- }
- size_t TestArenaMap::ByteSizeLong() const {
- // @@protoc_insertion_point(message_byte_size_start:protobuf_unittest.TestArenaMap)
- size_t total_size = 0;
- if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
- total_size +=
- ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
- (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()));
- }
- // map<int32, int32> map_int32_int32 = 1;
- total_size += 1 *
- ::google::protobuf::internal::FromIntSize(this->map_int32_int32_size());
- {
- ::std::unique_ptr<TestArenaMap_MapInt32Int32Entry_DoNotUse> entry;
- for (::google::protobuf::Map< ::google::protobuf::int32, ::google::protobuf::int32 >::const_iterator
- it = this->map_int32_int32().begin();
- it != this->map_int32_int32().end(); ++it) {
- if (entry.get() != NULL && entry->GetArena() != NULL) {
- entry.release();
- }
- entry.reset(map_int32_int32_.NewEntryWrapper(it->first, it->second));
- total_size += ::google::protobuf::internal::WireFormatLite::
- MessageSizeNoVirtual(*entry);
- }
- if (entry.get() != NULL && entry->GetArena() != NULL) {
- entry.release();
- }
- }
- // map<int64, int64> map_int64_int64 = 2;
- total_size += 1 *
- ::google::protobuf::internal::FromIntSize(this->map_int64_int64_size());
- {
- ::std::unique_ptr<TestArenaMap_MapInt64Int64Entry_DoNotUse> entry;
- for (::google::protobuf::Map< ::google::protobuf::int64, ::google::protobuf::int64 >::const_iterator
- it = this->map_int64_int64().begin();
- it != this->map_int64_int64().end(); ++it) {
- if (entry.get() != NULL && entry->GetArena() != NULL) {
- entry.release();
- }
- entry.reset(map_int64_int64_.NewEntryWrapper(it->first, it->second));
- total_size += ::google::protobuf::internal::WireFormatLite::
- MessageSizeNoVirtual(*entry);
- }
- if (entry.get() != NULL && entry->GetArena() != NULL) {
- entry.release();
- }
- }
- // map<uint32, uint32> map_uint32_uint32 = 3;
- total_size += 1 *
- ::google::protobuf::internal::FromIntSize(this->map_uint32_uint32_size());
- {
- ::std::unique_ptr<TestArenaMap_MapUint32Uint32Entry_DoNotUse> entry;
- for (::google::protobuf::Map< ::google::protobuf::uint32, ::google::protobuf::uint32 >::const_iterator
- it = this->map_uint32_uint32().begin();
- it != this->map_uint32_uint32().end(); ++it) {
- if (entry.get() != NULL && entry->GetArena() != NULL) {
- entry.release();
- }
- entry.reset(map_uint32_uint32_.NewEntryWrapper(it->first, it->second));
- total_size += ::google::protobuf::internal::WireFormatLite::
- MessageSizeNoVirtual(*entry);
- }
- if (entry.get() != NULL && entry->GetArena() != NULL) {
- entry.release();
- }
- }
- // map<uint64, uint64> map_uint64_uint64 = 4;
- total_size += 1 *
- ::google::protobuf::internal::FromIntSize(this->map_uint64_uint64_size());
- {
- ::std::unique_ptr<TestArenaMap_MapUint64Uint64Entry_DoNotUse> entry;
- for (::google::protobuf::Map< ::google::protobuf::uint64, ::google::protobuf::uint64 >::const_iterator
- it = this->map_uint64_uint64().begin();
- it != this->map_uint64_uint64().end(); ++it) {
- if (entry.get() != NULL && entry->GetArena() != NULL) {
- entry.release();
- }
- entry.reset(map_uint64_uint64_.NewEntryWrapper(it->first, it->second));
- total_size += ::google::protobuf::internal::WireFormatLite::
- MessageSizeNoVirtual(*entry);
- }
- if (entry.get() != NULL && entry->GetArena() != NULL) {
- entry.release();
- }
- }
- // map<sint32, sint32> map_sint32_sint32 = 5;
- total_size += 1 *
- ::google::protobuf::internal::FromIntSize(this->map_sint32_sint32_size());
- {
- ::std::unique_ptr<TestArenaMap_MapSint32Sint32Entry_DoNotUse> entry;
- for (::google::protobuf::Map< ::google::protobuf::int32, ::google::protobuf::int32 >::const_iterator
- it = this->map_sint32_sint32().begin();
- it != this->map_sint32_sint32().end(); ++it) {
- if (entry.get() != NULL && entry->GetArena() != NULL) {
- entry.release();
- }
- entry.reset(map_sint32_sint32_.NewEntryWrapper(it->first, it->second));
- total_size += ::google::protobuf::internal::WireFormatLite::
- MessageSizeNoVirtual(*entry);
- }
- if (entry.get() != NULL && entry->GetArena() != NULL) {
- entry.release();
- }
- }
- // map<sint64, sint64> map_sint64_sint64 = 6;
- total_size += 1 *
- ::google::protobuf::internal::FromIntSize(this->map_sint64_sint64_size());
- {
- ::std::unique_ptr<TestArenaMap_MapSint64Sint64Entry_DoNotUse> entry;
- for (::google::protobuf::Map< ::google::protobuf::int64, ::google::protobuf::int64 >::const_iterator
- it = this->map_sint64_sint64().begin();
- it != this->map_sint64_sint64().end(); ++it) {
- if (entry.get() != NULL && entry->GetArena() != NULL) {
- entry.release();
- }
- entry.reset(map_sint64_sint64_.NewEntryWrapper(it->first, it->second));
- total_size += ::google::protobuf::internal::WireFormatLite::
- MessageSizeNoVirtual(*entry);
- }
- if (entry.get() != NULL && entry->GetArena() != NULL) {
- entry.release();
- }
- }
- // map<fixed32, fixed32> map_fixed32_fixed32 = 7;
- total_size += 1 *
- ::google::protobuf::internal::FromIntSize(this->map_fixed32_fixed32_size());
- {
- ::std::unique_ptr<TestArenaMap_MapFixed32Fixed32Entry_DoNotUse> entry;
- for (::google::protobuf::Map< ::google::protobuf::uint32, ::google::protobuf::uint32 >::const_iterator
- it = this->map_fixed32_fixed32().begin();
- it != this->map_fixed32_fixed32().end(); ++it) {
- if (entry.get() != NULL && entry->GetArena() != NULL) {
- entry.release();
- }
- entry.reset(map_fixed32_fixed32_.NewEntryWrapper(it->first, it->second));
- total_size += ::google::protobuf::internal::WireFormatLite::
- MessageSizeNoVirtual(*entry);
- }
- if (entry.get() != NULL && entry->GetArena() != NULL) {
- entry.release();
- }
- }
- // map<fixed64, fixed64> map_fixed64_fixed64 = 8;
- total_size += 1 *
- ::google::protobuf::internal::FromIntSize(this->map_fixed64_fixed64_size());
- {
- ::std::unique_ptr<TestArenaMap_MapFixed64Fixed64Entry_DoNotUse> entry;
- for (::google::protobuf::Map< ::google::protobuf::uint64, ::google::protobuf::uint64 >::const_iterator
- it = this->map_fixed64_fixed64().begin();
- it != this->map_fixed64_fixed64().end(); ++it) {
- if (entry.get() != NULL && entry->GetArena() != NULL) {
- entry.release();
- }
- entry.reset(map_fixed64_fixed64_.NewEntryWrapper(it->first, it->second));
- total_size += ::google::protobuf::internal::WireFormatLite::
- MessageSizeNoVirtual(*entry);
- }
- if (entry.get() != NULL && entry->GetArena() != NULL) {
- entry.release();
- }
- }
- // map<sfixed32, sfixed32> map_sfixed32_sfixed32 = 9;
- total_size += 1 *
- ::google::protobuf::internal::FromIntSize(this->map_sfixed32_sfixed32_size());
- {
- ::std::unique_ptr<TestArenaMap_MapSfixed32Sfixed32Entry_DoNotUse> entry;
- for (::google::protobuf::Map< ::google::protobuf::int32, ::google::protobuf::int32 >::const_iterator
- it = this->map_sfixed32_sfixed32().begin();
- it != this->map_sfixed32_sfixed32().end(); ++it) {
- if (entry.get() != NULL && entry->GetArena() != NULL) {
- entry.release();
- }
- entry.reset(map_sfixed32_sfixed32_.NewEntryWrapper(it->first, it->second));
- total_size += ::google::protobuf::internal::WireFormatLite::
- MessageSizeNoVirtual(*entry);
- }
- if (entry.get() != NULL && entry->GetArena() != NULL) {
- entry.release();
- }
- }
- // map<sfixed64, sfixed64> map_sfixed64_sfixed64 = 10;
- total_size += 1 *
- ::google::protobuf::internal::FromIntSize(this->map_sfixed64_sfixed64_size());
- {
- ::std::unique_ptr<TestArenaMap_MapSfixed64Sfixed64Entry_DoNotUse> entry;
- for (::google::protobuf::Map< ::google::protobuf::int64, ::google::protobuf::int64 >::const_iterator
- it = this->map_sfixed64_sfixed64().begin();
- it != this->map_sfixed64_sfixed64().end(); ++it) {
- if (entry.get() != NULL && entry->GetArena() != NULL) {
- entry.release();
- }
- entry.reset(map_sfixed64_sfixed64_.NewEntryWrapper(it->first, it->second));
- total_size += ::google::protobuf::internal::WireFormatLite::
- MessageSizeNoVirtual(*entry);
- }
- if (entry.get() != NULL && entry->GetArena() != NULL) {
- entry.release();
- }
- }
- // map<int32, float> map_int32_float = 11;
- total_size += 1 *
- ::google::protobuf::internal::FromIntSize(this->map_int32_float_size());
- {
- ::std::unique_ptr<TestArenaMap_MapInt32FloatEntry_DoNotUse> entry;
- for (::google::protobuf::Map< ::google::protobuf::int32, float >::const_iterator
- it = this->map_int32_float().begin();
- it != this->map_int32_float().end(); ++it) {
- if (entry.get() != NULL && entry->GetArena() != NULL) {
- entry.release();
- }
- entry.reset(map_int32_float_.NewEntryWrapper(it->first, it->second));
- total_size += ::google::protobuf::internal::WireFormatLite::
- MessageSizeNoVirtual(*entry);
- }
- if (entry.get() != NULL && entry->GetArena() != NULL) {
- entry.release();
- }
- }
- // map<int32, double> map_int32_double = 12;
- total_size += 1 *
- ::google::protobuf::internal::FromIntSize(this->map_int32_double_size());
- {
- ::std::unique_ptr<TestArenaMap_MapInt32DoubleEntry_DoNotUse> entry;
- for (::google::protobuf::Map< ::google::protobuf::int32, double >::const_iterator
- it = this->map_int32_double().begin();
- it != this->map_int32_double().end(); ++it) {
- if (entry.get() != NULL && entry->GetArena() != NULL) {
- entry.release();
- }
- entry.reset(map_int32_double_.NewEntryWrapper(it->first, it->second));
- total_size += ::google::protobuf::internal::WireFormatLite::
- MessageSizeNoVirtual(*entry);
- }
- if (entry.get() != NULL && entry->GetArena() != NULL) {
- entry.release();
- }
- }
- // map<bool, bool> map_bool_bool = 13;
- total_size += 1 *
- ::google::protobuf::internal::FromIntSize(this->map_bool_bool_size());
- {
- ::std::unique_ptr<TestArenaMap_MapBoolBoolEntry_DoNotUse> entry;
- for (::google::protobuf::Map< bool, bool >::const_iterator
- it = this->map_bool_bool().begin();
- it != this->map_bool_bool().end(); ++it) {
- if (entry.get() != NULL && entry->GetArena() != NULL) {
- entry.release();
- }
- entry.reset(map_bool_bool_.NewEntryWrapper(it->first, it->second));
- total_size += ::google::protobuf::internal::WireFormatLite::
- MessageSizeNoVirtual(*entry);
- }
- if (entry.get() != NULL && entry->GetArena() != NULL) {
- entry.release();
- }
- }
- // map<string, string> map_string_string = 14;
- total_size += 1 *
- ::google::protobuf::internal::FromIntSize(this->map_string_string_size());
- {
- ::std::unique_ptr<TestArenaMap_MapStringStringEntry_DoNotUse> entry;
- for (::google::protobuf::Map< ::std::string, ::std::string >::const_iterator
- it = this->map_string_string().begin();
- it != this->map_string_string().end(); ++it) {
- if (entry.get() != NULL && entry->GetArena() != NULL) {
- entry.release();
- }
- entry.reset(map_string_string_.NewEntryWrapper(it->first, it->second));
- total_size += ::google::protobuf::internal::WireFormatLite::
- MessageSizeNoVirtual(*entry);
- }
- if (entry.get() != NULL && entry->GetArena() != NULL) {
- entry.release();
- }
- }
- // map<int32, bytes> map_int32_bytes = 15;
- total_size += 1 *
- ::google::protobuf::internal::FromIntSize(this->map_int32_bytes_size());
- {
- ::std::unique_ptr<TestArenaMap_MapInt32BytesEntry_DoNotUse> entry;
- for (::google::protobuf::Map< ::google::protobuf::int32, ::std::string >::const_iterator
- it = this->map_int32_bytes().begin();
- it != this->map_int32_bytes().end(); ++it) {
- if (entry.get() != NULL && entry->GetArena() != NULL) {
- entry.release();
- }
- entry.reset(map_int32_bytes_.NewEntryWrapper(it->first, it->second));
- total_size += ::google::protobuf::internal::WireFormatLite::
- MessageSizeNoVirtual(*entry);
- }
- if (entry.get() != NULL && entry->GetArena() != NULL) {
- entry.release();
- }
- }
- // map<int32, .protobuf_unittest.MapEnum> map_int32_enum = 16;
- total_size += 2 *
- ::google::protobuf::internal::FromIntSize(this->map_int32_enum_size());
- {
- ::std::unique_ptr<TestArenaMap_MapInt32EnumEntry_DoNotUse> entry;
- for (::google::protobuf::Map< ::google::protobuf::int32, ::protobuf_unittest::MapEnum >::const_iterator
- it = this->map_int32_enum().begin();
- it != this->map_int32_enum().end(); ++it) {
- if (entry.get() != NULL && entry->GetArena() != NULL) {
- entry.release();
- }
- entry.reset(map_int32_enum_.NewEnumEntryWrapper(it->first, it->second));
- total_size += ::google::protobuf::internal::WireFormatLite::
- MessageSizeNoVirtual(*entry);
- }
- if (entry.get() != NULL && entry->GetArena() != NULL) {
- entry.release();
- }
- }
- // map<int32, .protobuf_unittest.ForeignMessage> map_int32_foreign_message = 17;
- total_size += 2 *
- ::google::protobuf::internal::FromIntSize(this->map_int32_foreign_message_size());
- {
- ::std::unique_ptr<TestArenaMap_MapInt32ForeignMessageEntry_DoNotUse> entry;
- for (::google::protobuf::Map< ::google::protobuf::int32, ::protobuf_unittest::ForeignMessage >::const_iterator
- it = this->map_int32_foreign_message().begin();
- it != this->map_int32_foreign_message().end(); ++it) {
- if (entry.get() != NULL && entry->GetArena() != NULL) {
- entry.release();
- }
- entry.reset(map_int32_foreign_message_.NewEntryWrapper(it->first, it->second));
- total_size += ::google::protobuf::internal::WireFormatLite::
- MessageSizeNoVirtual(*entry);
- }
- if (entry.get() != NULL && entry->GetArena() != NULL) {
- entry.release();
- }
- }
- // map<int32, .protobuf_unittest_no_arena.ForeignMessage> map_int32_foreign_message_no_arena = 18;
- total_size += 2 *
- ::google::protobuf::internal::FromIntSize(this->map_int32_foreign_message_no_arena_size());
- {
- ::std::unique_ptr<TestArenaMap_MapInt32ForeignMessageNoArenaEntry_DoNotUse> entry;
- for (::google::protobuf::Map< ::google::protobuf::int32, ::protobuf_unittest_no_arena::ForeignMessage >::const_iterator
- it = this->map_int32_foreign_message_no_arena().begin();
- it != this->map_int32_foreign_message_no_arena().end(); ++it) {
- if (entry.get() != NULL && entry->GetArena() != NULL) {
- entry.release();
- }
- entry.reset(map_int32_foreign_message_no_arena_.NewEntryWrapper(it->first, it->second));
- total_size += ::google::protobuf::internal::WireFormatLite::
- MessageSizeNoVirtual(*entry);
- }
- if (entry.get() != NULL && entry->GetArena() != NULL) {
- entry.release();
- }
- }
- int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
- SetCachedSize(cached_size);
- return total_size;
- }
- void TestArenaMap::MergeFrom(const ::google::protobuf::Message& from) {
- // @@protoc_insertion_point(generalized_merge_from_start:protobuf_unittest.TestArenaMap)
- GOOGLE_DCHECK_NE(&from, this);
- const TestArenaMap* source =
- ::google::protobuf::internal::DynamicCastToGenerated<const TestArenaMap>(
- &from);
- if (source == NULL) {
- // @@protoc_insertion_point(generalized_merge_from_cast_fail:protobuf_unittest.TestArenaMap)
- ::google::protobuf::internal::ReflectionOps::Merge(from, this);
- } else {
- // @@protoc_insertion_point(generalized_merge_from_cast_success:protobuf_unittest.TestArenaMap)
- MergeFrom(*source);
- }
- }
- void TestArenaMap::MergeFrom(const TestArenaMap& from) {
- // @@protoc_insertion_point(class_specific_merge_from_start:protobuf_unittest.TestArenaMap)
- GOOGLE_DCHECK_NE(&from, this);
- _internal_metadata_.MergeFrom(from._internal_metadata_);
- ::google::protobuf::uint32 cached_has_bits = 0;
- (void) cached_has_bits;
- map_int32_int32_.MergeFrom(from.map_int32_int32_);
- map_int64_int64_.MergeFrom(from.map_int64_int64_);
- map_uint32_uint32_.MergeFrom(from.map_uint32_uint32_);
- map_uint64_uint64_.MergeFrom(from.map_uint64_uint64_);
- map_sint32_sint32_.MergeFrom(from.map_sint32_sint32_);
- map_sint64_sint64_.MergeFrom(from.map_sint64_sint64_);
- map_fixed32_fixed32_.MergeFrom(from.map_fixed32_fixed32_);
- map_fixed64_fixed64_.MergeFrom(from.map_fixed64_fixed64_);
- map_sfixed32_sfixed32_.MergeFrom(from.map_sfixed32_sfixed32_);
- map_sfixed64_sfixed64_.MergeFrom(from.map_sfixed64_sfixed64_);
- map_int32_float_.MergeFrom(from.map_int32_float_);
- map_int32_double_.MergeFrom(from.map_int32_double_);
- map_bool_bool_.MergeFrom(from.map_bool_bool_);
- map_string_string_.MergeFrom(from.map_string_string_);
- map_int32_bytes_.MergeFrom(from.map_int32_bytes_);
- map_int32_enum_.MergeFrom(from.map_int32_enum_);
- map_int32_foreign_message_.MergeFrom(from.map_int32_foreign_message_);
- map_int32_foreign_message_no_arena_.MergeFrom(from.map_int32_foreign_message_no_arena_);
- }
- void TestArenaMap::CopyFrom(const ::google::protobuf::Message& from) {
- // @@protoc_insertion_point(generalized_copy_from_start:protobuf_unittest.TestArenaMap)
- if (&from == this) return;
- Clear();
- MergeFrom(from);
- }
- void TestArenaMap::CopyFrom(const TestArenaMap& from) {
- // @@protoc_insertion_point(class_specific_copy_from_start:protobuf_unittest.TestArenaMap)
- if (&from == this) return;
- Clear();
- MergeFrom(from);
- }
- bool TestArenaMap::IsInitialized() const {
- return true;
- }
- void TestArenaMap::Swap(TestArenaMap* other) {
- if (other == this) return;
- if (GetArenaNoVirtual() == other->GetArenaNoVirtual()) {
- InternalSwap(other);
- } else {
- TestArenaMap* temp = New(GetArenaNoVirtual());
- temp->MergeFrom(*other);
- other->CopyFrom(*this);
- InternalSwap(temp);
- if (GetArenaNoVirtual() == NULL) {
- delete temp;
- }
- }
- }
- void TestArenaMap::UnsafeArenaSwap(TestArenaMap* other) {
- if (other == this) return;
- GOOGLE_DCHECK(GetArenaNoVirtual() == other->GetArenaNoVirtual());
- InternalSwap(other);
- }
- void TestArenaMap::InternalSwap(TestArenaMap* other) {
- using std::swap;
- map_int32_int32_.Swap(&other->map_int32_int32_);
- map_int64_int64_.Swap(&other->map_int64_int64_);
- map_uint32_uint32_.Swap(&other->map_uint32_uint32_);
- map_uint64_uint64_.Swap(&other->map_uint64_uint64_);
- map_sint32_sint32_.Swap(&other->map_sint32_sint32_);
- map_sint64_sint64_.Swap(&other->map_sint64_sint64_);
- map_fixed32_fixed32_.Swap(&other->map_fixed32_fixed32_);
- map_fixed64_fixed64_.Swap(&other->map_fixed64_fixed64_);
- map_sfixed32_sfixed32_.Swap(&other->map_sfixed32_sfixed32_);
- map_sfixed64_sfixed64_.Swap(&other->map_sfixed64_sfixed64_);
- map_int32_float_.Swap(&other->map_int32_float_);
- map_int32_double_.Swap(&other->map_int32_double_);
- map_bool_bool_.Swap(&other->map_bool_bool_);
- map_string_string_.Swap(&other->map_string_string_);
- map_int32_bytes_.Swap(&other->map_int32_bytes_);
- map_int32_enum_.Swap(&other->map_int32_enum_);
- map_int32_foreign_message_.Swap(&other->map_int32_foreign_message_);
- map_int32_foreign_message_no_arena_.Swap(&other->map_int32_foreign_message_no_arena_);
- _internal_metadata_.Swap(&other->_internal_metadata_);
- }
- ::google::protobuf::Metadata TestArenaMap::GetMetadata() const {
- protobuf_google_2fprotobuf_2fmap_5funittest_2eproto::protobuf_AssignDescriptorsOnce();
- return ::protobuf_google_2fprotobuf_2fmap_5funittest_2eproto::file_level_metadata[kIndexInFileMessages];
- }
- // ===================================================================
- MessageContainingEnumCalledType_TypeEntry_DoNotUse::MessageContainingEnumCalledType_TypeEntry_DoNotUse() {}
- MessageContainingEnumCalledType_TypeEntry_DoNotUse::MessageContainingEnumCalledType_TypeEntry_DoNotUse(::google::protobuf::Arena* arena) : SuperType(arena) {}
- void MessageContainingEnumCalledType_TypeEntry_DoNotUse::MergeFrom(const MessageContainingEnumCalledType_TypeEntry_DoNotUse& other) {
- MergeFromInternal(other);
- }
- ::google::protobuf::Metadata MessageContainingEnumCalledType_TypeEntry_DoNotUse::GetMetadata() const {
- ::protobuf_google_2fprotobuf_2fmap_5funittest_2eproto::protobuf_AssignDescriptorsOnce();
- return ::protobuf_google_2fprotobuf_2fmap_5funittest_2eproto::file_level_metadata[47];
- }
- void MessageContainingEnumCalledType_TypeEntry_DoNotUse::MergeFrom(
- const ::google::protobuf::Message& other) {
- ::google::protobuf::Message::MergeFrom(other);
- }
- // ===================================================================
- void MessageContainingEnumCalledType::InitAsDefaultInstance() {
- }
- #if !defined(_MSC_VER) || _MSC_VER >= 1900
- const int MessageContainingEnumCalledType::kTypeFieldNumber;
- #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
- MessageContainingEnumCalledType::MessageContainingEnumCalledType()
- : ::google::protobuf::Message(), _internal_metadata_(NULL) {
- ::google::protobuf::internal::InitSCC(
- &protobuf_google_2fprotobuf_2fmap_5funittest_2eproto::scc_info_MessageContainingEnumCalledType.base);
- SharedCtor();
- // @@protoc_insertion_point(constructor:protobuf_unittest.MessageContainingEnumCalledType)
- }
- MessageContainingEnumCalledType::MessageContainingEnumCalledType(::google::protobuf::Arena* arena)
- : ::google::protobuf::Message(),
- _internal_metadata_(arena),
- type_(arena) {
- ::google::protobuf::internal::InitSCC(&protobuf_google_2fprotobuf_2fmap_5funittest_2eproto::scc_info_MessageContainingEnumCalledType.base);
- SharedCtor();
- RegisterArenaDtor(arena);
- // @@protoc_insertion_point(arena_constructor:protobuf_unittest.MessageContainingEnumCalledType)
- }
- MessageContainingEnumCalledType::MessageContainingEnumCalledType(const MessageContainingEnumCalledType& from)
- : ::google::protobuf::Message(),
- _internal_metadata_(NULL) {
- _internal_metadata_.MergeFrom(from._internal_metadata_);
- type_.MergeFrom(from.type_);
- // @@protoc_insertion_point(copy_constructor:protobuf_unittest.MessageContainingEnumCalledType)
- }
- void MessageContainingEnumCalledType::SharedCtor() {
- }
- MessageContainingEnumCalledType::~MessageContainingEnumCalledType() {
- // @@protoc_insertion_point(destructor:protobuf_unittest.MessageContainingEnumCalledType)
- SharedDtor();
- }
- void MessageContainingEnumCalledType::SharedDtor() {
- GOOGLE_DCHECK(GetArenaNoVirtual() == NULL);
- }
- void MessageContainingEnumCalledType::ArenaDtor(void* object) {
- MessageContainingEnumCalledType* _this = reinterpret_cast< MessageContainingEnumCalledType* >(object);
- (void)_this;
- }
- void MessageContainingEnumCalledType::RegisterArenaDtor(::google::protobuf::Arena* arena) {
- }
- void MessageContainingEnumCalledType::SetCachedSize(int size) const {
- _cached_size_.Set(size);
- }
- const ::google::protobuf::Descriptor* MessageContainingEnumCalledType::descriptor() {
- ::protobuf_google_2fprotobuf_2fmap_5funittest_2eproto::protobuf_AssignDescriptorsOnce();
- return ::protobuf_google_2fprotobuf_2fmap_5funittest_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
- }
- const MessageContainingEnumCalledType& MessageContainingEnumCalledType::default_instance() {
- ::google::protobuf::internal::InitSCC(&protobuf_google_2fprotobuf_2fmap_5funittest_2eproto::scc_info_MessageContainingEnumCalledType.base);
- return *internal_default_instance();
- }
- void MessageContainingEnumCalledType::Clear() {
- // @@protoc_insertion_point(message_clear_start:protobuf_unittest.MessageContainingEnumCalledType)
- ::google::protobuf::uint32 cached_has_bits = 0;
- // Prevent compiler warnings about cached_has_bits being unused
- (void) cached_has_bits;
- type_.Clear();
- _internal_metadata_.Clear();
- }
- bool MessageContainingEnumCalledType::MergePartialFromCodedStream(
- ::google::protobuf::io::CodedInputStream* input) {
- #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
- ::google::protobuf::uint32 tag;
- // @@protoc_insertion_point(parse_start:protobuf_unittest.MessageContainingEnumCalledType)
- for (;;) {
- ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
- tag = p.first;
- if (!p.second) goto handle_unusual;
- switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
- // map<string, .protobuf_unittest.MessageContainingEnumCalledType> type = 1;
- case 1: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
- MessageContainingEnumCalledType_TypeEntry_DoNotUse::Parser< ::google::protobuf::internal::MapField<
- MessageContainingEnumCalledType_TypeEntry_DoNotUse,
- ::std::string, ::protobuf_unittest::MessageContainingEnumCalledType,
- ::google::protobuf::internal::WireFormatLite::TYPE_STRING,
- ::google::protobuf::internal::WireFormatLite::TYPE_MESSAGE,
- 0 >,
- ::google::protobuf::Map< ::std::string, ::protobuf_unittest::MessageContainingEnumCalledType > > parser(&type_);
- DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
- input, &parser));
- DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
- parser.key().data(), static_cast<int>(parser.key().length()),
- ::google::protobuf::internal::WireFormatLite::PARSE,
- "protobuf_unittest.MessageContainingEnumCalledType.TypeEntry.key"));
- } else {
- goto handle_unusual;
- }
- break;
- }
- default: {
- handle_unusual:
- if (tag == 0) {
- goto success;
- }
- DO_(::google::protobuf::internal::WireFormat::SkipField(
- input, tag, _internal_metadata_.mutable_unknown_fields()));
- break;
- }
- }
- }
- success:
- // @@protoc_insertion_point(parse_success:protobuf_unittest.MessageContainingEnumCalledType)
- return true;
- failure:
- // @@protoc_insertion_point(parse_failure:protobuf_unittest.MessageContainingEnumCalledType)
- return false;
- #undef DO_
- }
- void MessageContainingEnumCalledType::SerializeWithCachedSizes(
- ::google::protobuf::io::CodedOutputStream* output) const {
- // @@protoc_insertion_point(serialize_start:protobuf_unittest.MessageContainingEnumCalledType)
- ::google::protobuf::uint32 cached_has_bits = 0;
- (void) cached_has_bits;
- // map<string, .protobuf_unittest.MessageContainingEnumCalledType> type = 1;
- if (!this->type().empty()) {
- typedef ::google::protobuf::Map< ::std::string, ::protobuf_unittest::MessageContainingEnumCalledType >::const_pointer
- ConstPtr;
- typedef ConstPtr SortItem;
- typedef ::google::protobuf::internal::CompareByDerefFirst<SortItem> Less;
- struct Utf8Check {
- static void Check(ConstPtr p) {
- ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
- p->first.data(), static_cast<int>(p->first.length()),
- ::google::protobuf::internal::WireFormatLite::SERIALIZE,
- "protobuf_unittest.MessageContainingEnumCalledType.TypeEntry.key");
- }
- };
- if (output->IsSerializationDeterministic() &&
- this->type().size() > 1) {
- ::std::unique_ptr<SortItem[]> items(
- new SortItem[this->type().size()]);
- typedef ::google::protobuf::Map< ::std::string, ::protobuf_unittest::MessageContainingEnumCalledType >::size_type size_type;
- size_type n = 0;
- for (::google::protobuf::Map< ::std::string, ::protobuf_unittest::MessageContainingEnumCalledType >::const_iterator
- it = this->type().begin();
- it != this->type().end(); ++it, ++n) {
- items[static_cast<ptrdiff_t>(n)] = SortItem(&*it);
- }
- ::std::sort(&items[0], &items[static_cast<ptrdiff_t>(n)], Less());
- ::std::unique_ptr<MessageContainingEnumCalledType_TypeEntry_DoNotUse> entry;
- for (size_type i = 0; i < n; i++) {
- entry.reset(type_.NewEntryWrapper(
- items[static_cast<ptrdiff_t>(i)]->first, items[static_cast<ptrdiff_t>(i)]->second));
- ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
- 1, *entry, output);
- if (entry->GetArena() != NULL) {
- entry.release();
- }
- Utf8Check::Check(items[static_cast<ptrdiff_t>(i)]);
- }
- } else {
- ::std::unique_ptr<MessageContainingEnumCalledType_TypeEntry_DoNotUse> entry;
- for (::google::protobuf::Map< ::std::string, ::protobuf_unittest::MessageContainingEnumCalledType >::const_iterator
- it = this->type().begin();
- it != this->type().end(); ++it) {
- entry.reset(type_.NewEntryWrapper(
- it->first, it->second));
- ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
- 1, *entry, output);
- if (entry->GetArena() != NULL) {
- entry.release();
- }
- Utf8Check::Check(&*it);
- }
- }
- }
- if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
- ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
- (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output);
- }
- // @@protoc_insertion_point(serialize_end:protobuf_unittest.MessageContainingEnumCalledType)
- }
- ::google::protobuf::uint8* MessageContainingEnumCalledType::InternalSerializeWithCachedSizesToArray(
- bool deterministic, ::google::protobuf::uint8* target) const {
- (void)deterministic; // Unused
- // @@protoc_insertion_point(serialize_to_array_start:protobuf_unittest.MessageContainingEnumCalledType)
- ::google::protobuf::uint32 cached_has_bits = 0;
- (void) cached_has_bits;
- // map<string, .protobuf_unittest.MessageContainingEnumCalledType> type = 1;
- if (!this->type().empty()) {
- typedef ::google::protobuf::Map< ::std::string, ::protobuf_unittest::MessageContainingEnumCalledType >::const_pointer
- ConstPtr;
- typedef ConstPtr SortItem;
- typedef ::google::protobuf::internal::CompareByDerefFirst<SortItem> Less;
- struct Utf8Check {
- static void Check(ConstPtr p) {
- ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
- p->first.data(), static_cast<int>(p->first.length()),
- ::google::protobuf::internal::WireFormatLite::SERIALIZE,
- "protobuf_unittest.MessageContainingEnumCalledType.TypeEntry.key");
- }
- };
- if (deterministic &&
- this->type().size() > 1) {
- ::std::unique_ptr<SortItem[]> items(
- new SortItem[this->type().size()]);
- typedef ::google::protobuf::Map< ::std::string, ::protobuf_unittest::MessageContainingEnumCalledType >::size_type size_type;
- size_type n = 0;
- for (::google::protobuf::Map< ::std::string, ::protobuf_unittest::MessageContainingEnumCalledType >::const_iterator
- it = this->type().begin();
- it != this->type().end(); ++it, ++n) {
- items[static_cast<ptrdiff_t>(n)] = SortItem(&*it);
- }
- ::std::sort(&items[0], &items[static_cast<ptrdiff_t>(n)], Less());
- ::std::unique_ptr<MessageContainingEnumCalledType_TypeEntry_DoNotUse> entry;
- for (size_type i = 0; i < n; i++) {
- entry.reset(type_.NewEntryWrapper(
- items[static_cast<ptrdiff_t>(i)]->first, items[static_cast<ptrdiff_t>(i)]->second));
- target = ::google::protobuf::internal::WireFormatLite::
- InternalWriteMessageNoVirtualToArray(
- 1, *entry, deterministic, target);
- ;
- if (entry->GetArena() != NULL) {
- entry.release();
- }
- Utf8Check::Check(items[static_cast<ptrdiff_t>(i)]);
- }
- } else {
- ::std::unique_ptr<MessageContainingEnumCalledType_TypeEntry_DoNotUse> entry;
- for (::google::protobuf::Map< ::std::string, ::protobuf_unittest::MessageContainingEnumCalledType >::const_iterator
- it = this->type().begin();
- it != this->type().end(); ++it) {
- entry.reset(type_.NewEntryWrapper(
- it->first, it->second));
- target = ::google::protobuf::internal::WireFormatLite::
- InternalWriteMessageNoVirtualToArray(
- 1, *entry, deterministic, target);
- ;
- if (entry->GetArena() != NULL) {
- entry.release();
- }
- Utf8Check::Check(&*it);
- }
- }
- }
- if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
- target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
- (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target);
- }
- // @@protoc_insertion_point(serialize_to_array_end:protobuf_unittest.MessageContainingEnumCalledType)
- return target;
- }
- size_t MessageContainingEnumCalledType::ByteSizeLong() const {
- // @@protoc_insertion_point(message_byte_size_start:protobuf_unittest.MessageContainingEnumCalledType)
- size_t total_size = 0;
- if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
- total_size +=
- ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
- (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()));
- }
- // map<string, .protobuf_unittest.MessageContainingEnumCalledType> type = 1;
- total_size += 1 *
- ::google::protobuf::internal::FromIntSize(this->type_size());
- {
- ::std::unique_ptr<MessageContainingEnumCalledType_TypeEntry_DoNotUse> entry;
- for (::google::protobuf::Map< ::std::string, ::protobuf_unittest::MessageContainingEnumCalledType >::const_iterator
- it = this->type().begin();
- it != this->type().end(); ++it) {
- if (entry.get() != NULL && entry->GetArena() != NULL) {
- entry.release();
- }
- entry.reset(type_.NewEntryWrapper(it->first, it->second));
- total_size += ::google::protobuf::internal::WireFormatLite::
- MessageSizeNoVirtual(*entry);
- }
- if (entry.get() != NULL && entry->GetArena() != NULL) {
- entry.release();
- }
- }
- int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
- SetCachedSize(cached_size);
- return total_size;
- }
- void MessageContainingEnumCalledType::MergeFrom(const ::google::protobuf::Message& from) {
- // @@protoc_insertion_point(generalized_merge_from_start:protobuf_unittest.MessageContainingEnumCalledType)
- GOOGLE_DCHECK_NE(&from, this);
- const MessageContainingEnumCalledType* source =
- ::google::protobuf::internal::DynamicCastToGenerated<const MessageContainingEnumCalledType>(
- &from);
- if (source == NULL) {
- // @@protoc_insertion_point(generalized_merge_from_cast_fail:protobuf_unittest.MessageContainingEnumCalledType)
- ::google::protobuf::internal::ReflectionOps::Merge(from, this);
- } else {
- // @@protoc_insertion_point(generalized_merge_from_cast_success:protobuf_unittest.MessageContainingEnumCalledType)
- MergeFrom(*source);
- }
- }
- void MessageContainingEnumCalledType::MergeFrom(const MessageContainingEnumCalledType& from) {
- // @@protoc_insertion_point(class_specific_merge_from_start:protobuf_unittest.MessageContainingEnumCalledType)
- GOOGLE_DCHECK_NE(&from, this);
- _internal_metadata_.MergeFrom(from._internal_metadata_);
- ::google::protobuf::uint32 cached_has_bits = 0;
- (void) cached_has_bits;
- type_.MergeFrom(from.type_);
- }
- void MessageContainingEnumCalledType::CopyFrom(const ::google::protobuf::Message& from) {
- // @@protoc_insertion_point(generalized_copy_from_start:protobuf_unittest.MessageContainingEnumCalledType)
- if (&from == this) return;
- Clear();
- MergeFrom(from);
- }
- void MessageContainingEnumCalledType::CopyFrom(const MessageContainingEnumCalledType& from) {
- // @@protoc_insertion_point(class_specific_copy_from_start:protobuf_unittest.MessageContainingEnumCalledType)
- if (&from == this) return;
- Clear();
- MergeFrom(from);
- }
- bool MessageContainingEnumCalledType::IsInitialized() const {
- return true;
- }
- void MessageContainingEnumCalledType::Swap(MessageContainingEnumCalledType* other) {
- if (other == this) return;
- if (GetArenaNoVirtual() == other->GetArenaNoVirtual()) {
- InternalSwap(other);
- } else {
- MessageContainingEnumCalledType* temp = New(GetArenaNoVirtual());
- temp->MergeFrom(*other);
- other->CopyFrom(*this);
- InternalSwap(temp);
- if (GetArenaNoVirtual() == NULL) {
- delete temp;
- }
- }
- }
- void MessageContainingEnumCalledType::UnsafeArenaSwap(MessageContainingEnumCalledType* other) {
- if (other == this) return;
- GOOGLE_DCHECK(GetArenaNoVirtual() == other->GetArenaNoVirtual());
- InternalSwap(other);
- }
- void MessageContainingEnumCalledType::InternalSwap(MessageContainingEnumCalledType* other) {
- using std::swap;
- type_.Swap(&other->type_);
- _internal_metadata_.Swap(&other->_internal_metadata_);
- }
- ::google::protobuf::Metadata MessageContainingEnumCalledType::GetMetadata() const {
- protobuf_google_2fprotobuf_2fmap_5funittest_2eproto::protobuf_AssignDescriptorsOnce();
- return ::protobuf_google_2fprotobuf_2fmap_5funittest_2eproto::file_level_metadata[kIndexInFileMessages];
- }
- // ===================================================================
- MessageContainingMapCalledEntry_EntryEntry_DoNotUse::MessageContainingMapCalledEntry_EntryEntry_DoNotUse() {}
- MessageContainingMapCalledEntry_EntryEntry_DoNotUse::MessageContainingMapCalledEntry_EntryEntry_DoNotUse(::google::protobuf::Arena* arena) : SuperType(arena) {}
- void MessageContainingMapCalledEntry_EntryEntry_DoNotUse::MergeFrom(const MessageContainingMapCalledEntry_EntryEntry_DoNotUse& other) {
- MergeFromInternal(other);
- }
- ::google::protobuf::Metadata MessageContainingMapCalledEntry_EntryEntry_DoNotUse::GetMetadata() const {
- ::protobuf_google_2fprotobuf_2fmap_5funittest_2eproto::protobuf_AssignDescriptorsOnce();
- return ::protobuf_google_2fprotobuf_2fmap_5funittest_2eproto::file_level_metadata[49];
- }
- void MessageContainingMapCalledEntry_EntryEntry_DoNotUse::MergeFrom(
- const ::google::protobuf::Message& other) {
- ::google::protobuf::Message::MergeFrom(other);
- }
- // ===================================================================
- void MessageContainingMapCalledEntry::InitAsDefaultInstance() {
- }
- #if !defined(_MSC_VER) || _MSC_VER >= 1900
- const int MessageContainingMapCalledEntry::kEntryFieldNumber;
- #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
- MessageContainingMapCalledEntry::MessageContainingMapCalledEntry()
- : ::google::protobuf::Message(), _internal_metadata_(NULL) {
- ::google::protobuf::internal::InitSCC(
- &protobuf_google_2fprotobuf_2fmap_5funittest_2eproto::scc_info_MessageContainingMapCalledEntry.base);
- SharedCtor();
- // @@protoc_insertion_point(constructor:protobuf_unittest.MessageContainingMapCalledEntry)
- }
- MessageContainingMapCalledEntry::MessageContainingMapCalledEntry(::google::protobuf::Arena* arena)
- : ::google::protobuf::Message(),
- _internal_metadata_(arena),
- entry_(arena) {
- ::google::protobuf::internal::InitSCC(&protobuf_google_2fprotobuf_2fmap_5funittest_2eproto::scc_info_MessageContainingMapCalledEntry.base);
- SharedCtor();
- RegisterArenaDtor(arena);
- // @@protoc_insertion_point(arena_constructor:protobuf_unittest.MessageContainingMapCalledEntry)
- }
- MessageContainingMapCalledEntry::MessageContainingMapCalledEntry(const MessageContainingMapCalledEntry& from)
- : ::google::protobuf::Message(),
- _internal_metadata_(NULL) {
- _internal_metadata_.MergeFrom(from._internal_metadata_);
- entry_.MergeFrom(from.entry_);
- // @@protoc_insertion_point(copy_constructor:protobuf_unittest.MessageContainingMapCalledEntry)
- }
- void MessageContainingMapCalledEntry::SharedCtor() {
- }
- MessageContainingMapCalledEntry::~MessageContainingMapCalledEntry() {
- // @@protoc_insertion_point(destructor:protobuf_unittest.MessageContainingMapCalledEntry)
- SharedDtor();
- }
- void MessageContainingMapCalledEntry::SharedDtor() {
- GOOGLE_DCHECK(GetArenaNoVirtual() == NULL);
- }
- void MessageContainingMapCalledEntry::ArenaDtor(void* object) {
- MessageContainingMapCalledEntry* _this = reinterpret_cast< MessageContainingMapCalledEntry* >(object);
- (void)_this;
- }
- void MessageContainingMapCalledEntry::RegisterArenaDtor(::google::protobuf::Arena* arena) {
- }
- void MessageContainingMapCalledEntry::SetCachedSize(int size) const {
- _cached_size_.Set(size);
- }
- const ::google::protobuf::Descriptor* MessageContainingMapCalledEntry::descriptor() {
- ::protobuf_google_2fprotobuf_2fmap_5funittest_2eproto::protobuf_AssignDescriptorsOnce();
- return ::protobuf_google_2fprotobuf_2fmap_5funittest_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
- }
- const MessageContainingMapCalledEntry& MessageContainingMapCalledEntry::default_instance() {
- ::google::protobuf::internal::InitSCC(&protobuf_google_2fprotobuf_2fmap_5funittest_2eproto::scc_info_MessageContainingMapCalledEntry.base);
- return *internal_default_instance();
- }
- void MessageContainingMapCalledEntry::Clear() {
- // @@protoc_insertion_point(message_clear_start:protobuf_unittest.MessageContainingMapCalledEntry)
- ::google::protobuf::uint32 cached_has_bits = 0;
- // Prevent compiler warnings about cached_has_bits being unused
- (void) cached_has_bits;
- entry_.Clear();
- _internal_metadata_.Clear();
- }
- bool MessageContainingMapCalledEntry::MergePartialFromCodedStream(
- ::google::protobuf::io::CodedInputStream* input) {
- #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
- ::google::protobuf::uint32 tag;
- // @@protoc_insertion_point(parse_start:protobuf_unittest.MessageContainingMapCalledEntry)
- for (;;) {
- ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
- tag = p.first;
- if (!p.second) goto handle_unusual;
- switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
- // map<int32, int32> entry = 1;
- case 1: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
- MessageContainingMapCalledEntry_EntryEntry_DoNotUse::Parser< ::google::protobuf::internal::MapField<
- MessageContainingMapCalledEntry_EntryEntry_DoNotUse,
- ::google::protobuf::int32, ::google::protobuf::int32,
- ::google::protobuf::internal::WireFormatLite::TYPE_INT32,
- ::google::protobuf::internal::WireFormatLite::TYPE_INT32,
- 0 >,
- ::google::protobuf::Map< ::google::protobuf::int32, ::google::protobuf::int32 > > parser(&entry_);
- DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
- input, &parser));
- } else {
- goto handle_unusual;
- }
- break;
- }
- default: {
- handle_unusual:
- if (tag == 0) {
- goto success;
- }
- DO_(::google::protobuf::internal::WireFormat::SkipField(
- input, tag, _internal_metadata_.mutable_unknown_fields()));
- break;
- }
- }
- }
- success:
- // @@protoc_insertion_point(parse_success:protobuf_unittest.MessageContainingMapCalledEntry)
- return true;
- failure:
- // @@protoc_insertion_point(parse_failure:protobuf_unittest.MessageContainingMapCalledEntry)
- return false;
- #undef DO_
- }
- void MessageContainingMapCalledEntry::SerializeWithCachedSizes(
- ::google::protobuf::io::CodedOutputStream* output) const {
- // @@protoc_insertion_point(serialize_start:protobuf_unittest.MessageContainingMapCalledEntry)
- ::google::protobuf::uint32 cached_has_bits = 0;
- (void) cached_has_bits;
- // map<int32, int32> entry = 1;
- if (!this->entry().empty()) {
- typedef ::google::protobuf::Map< ::google::protobuf::int32, ::google::protobuf::int32 >::const_pointer
- ConstPtr;
- typedef ::google::protobuf::internal::SortItem< ::google::protobuf::int32, ConstPtr > SortItem;
- typedef ::google::protobuf::internal::CompareByFirstField<SortItem> Less;
- if (output->IsSerializationDeterministic() &&
- this->entry().size() > 1) {
- ::std::unique_ptr<SortItem[]> items(
- new SortItem[this->entry().size()]);
- typedef ::google::protobuf::Map< ::google::protobuf::int32, ::google::protobuf::int32 >::size_type size_type;
- size_type n = 0;
- for (::google::protobuf::Map< ::google::protobuf::int32, ::google::protobuf::int32 >::const_iterator
- it = this->entry().begin();
- it != this->entry().end(); ++it, ++n) {
- items[static_cast<ptrdiff_t>(n)] = SortItem(&*it);
- }
- ::std::sort(&items[0], &items[static_cast<ptrdiff_t>(n)], Less());
- ::std::unique_ptr<MessageContainingMapCalledEntry_EntryEntry_DoNotUse> entry;
- for (size_type i = 0; i < n; i++) {
- entry.reset(entry_.NewEntryWrapper(
- items[static_cast<ptrdiff_t>(i)].second->first, items[static_cast<ptrdiff_t>(i)].second->second));
- ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
- 1, *entry, output);
- if (entry->GetArena() != NULL) {
- entry.release();
- }
- }
- } else {
- ::std::unique_ptr<MessageContainingMapCalledEntry_EntryEntry_DoNotUse> entry;
- for (::google::protobuf::Map< ::google::protobuf::int32, ::google::protobuf::int32 >::const_iterator
- it = this->entry().begin();
- it != this->entry().end(); ++it) {
- entry.reset(entry_.NewEntryWrapper(
- it->first, it->second));
- ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
- 1, *entry, output);
- if (entry->GetArena() != NULL) {
- entry.release();
- }
- }
- }
- }
- if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
- ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
- (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output);
- }
- // @@protoc_insertion_point(serialize_end:protobuf_unittest.MessageContainingMapCalledEntry)
- }
- ::google::protobuf::uint8* MessageContainingMapCalledEntry::InternalSerializeWithCachedSizesToArray(
- bool deterministic, ::google::protobuf::uint8* target) const {
- (void)deterministic; // Unused
- // @@protoc_insertion_point(serialize_to_array_start:protobuf_unittest.MessageContainingMapCalledEntry)
- ::google::protobuf::uint32 cached_has_bits = 0;
- (void) cached_has_bits;
- // map<int32, int32> entry = 1;
- if (!this->entry().empty()) {
- typedef ::google::protobuf::Map< ::google::protobuf::int32, ::google::protobuf::int32 >::const_pointer
- ConstPtr;
- typedef ::google::protobuf::internal::SortItem< ::google::protobuf::int32, ConstPtr > SortItem;
- typedef ::google::protobuf::internal::CompareByFirstField<SortItem> Less;
- if (deterministic &&
- this->entry().size() > 1) {
- ::std::unique_ptr<SortItem[]> items(
- new SortItem[this->entry().size()]);
- typedef ::google::protobuf::Map< ::google::protobuf::int32, ::google::protobuf::int32 >::size_type size_type;
- size_type n = 0;
- for (::google::protobuf::Map< ::google::protobuf::int32, ::google::protobuf::int32 >::const_iterator
- it = this->entry().begin();
- it != this->entry().end(); ++it, ++n) {
- items[static_cast<ptrdiff_t>(n)] = SortItem(&*it);
- }
- ::std::sort(&items[0], &items[static_cast<ptrdiff_t>(n)], Less());
- ::std::unique_ptr<MessageContainingMapCalledEntry_EntryEntry_DoNotUse> entry;
- for (size_type i = 0; i < n; i++) {
- entry.reset(entry_.NewEntryWrapper(
- items[static_cast<ptrdiff_t>(i)].second->first, items[static_cast<ptrdiff_t>(i)].second->second));
- target = ::google::protobuf::internal::WireFormatLite::
- InternalWriteMessageNoVirtualToArray(
- 1, *entry, deterministic, target);
- ;
- if (entry->GetArena() != NULL) {
- entry.release();
- }
- }
- } else {
- ::std::unique_ptr<MessageContainingMapCalledEntry_EntryEntry_DoNotUse> entry;
- for (::google::protobuf::Map< ::google::protobuf::int32, ::google::protobuf::int32 >::const_iterator
- it = this->entry().begin();
- it != this->entry().end(); ++it) {
- entry.reset(entry_.NewEntryWrapper(
- it->first, it->second));
- target = ::google::protobuf::internal::WireFormatLite::
- InternalWriteMessageNoVirtualToArray(
- 1, *entry, deterministic, target);
- ;
- if (entry->GetArena() != NULL) {
- entry.release();
- }
- }
- }
- }
- if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
- target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
- (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target);
- }
- // @@protoc_insertion_point(serialize_to_array_end:protobuf_unittest.MessageContainingMapCalledEntry)
- return target;
- }
- size_t MessageContainingMapCalledEntry::ByteSizeLong() const {
- // @@protoc_insertion_point(message_byte_size_start:protobuf_unittest.MessageContainingMapCalledEntry)
- size_t total_size = 0;
- if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
- total_size +=
- ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
- (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()));
- }
- // map<int32, int32> entry = 1;
- total_size += 1 *
- ::google::protobuf::internal::FromIntSize(this->entry_size());
- {
- ::std::unique_ptr<MessageContainingMapCalledEntry_EntryEntry_DoNotUse> entry;
- for (::google::protobuf::Map< ::google::protobuf::int32, ::google::protobuf::int32 >::const_iterator
- it = this->entry().begin();
- it != this->entry().end(); ++it) {
- if (entry.get() != NULL && entry->GetArena() != NULL) {
- entry.release();
- }
- entry.reset(entry_.NewEntryWrapper(it->first, it->second));
- total_size += ::google::protobuf::internal::WireFormatLite::
- MessageSizeNoVirtual(*entry);
- }
- if (entry.get() != NULL && entry->GetArena() != NULL) {
- entry.release();
- }
- }
- int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
- SetCachedSize(cached_size);
- return total_size;
- }
- void MessageContainingMapCalledEntry::MergeFrom(const ::google::protobuf::Message& from) {
- // @@protoc_insertion_point(generalized_merge_from_start:protobuf_unittest.MessageContainingMapCalledEntry)
- GOOGLE_DCHECK_NE(&from, this);
- const MessageContainingMapCalledEntry* source =
- ::google::protobuf::internal::DynamicCastToGenerated<const MessageContainingMapCalledEntry>(
- &from);
- if (source == NULL) {
- // @@protoc_insertion_point(generalized_merge_from_cast_fail:protobuf_unittest.MessageContainingMapCalledEntry)
- ::google::protobuf::internal::ReflectionOps::Merge(from, this);
- } else {
- // @@protoc_insertion_point(generalized_merge_from_cast_success:protobuf_unittest.MessageContainingMapCalledEntry)
- MergeFrom(*source);
- }
- }
- void MessageContainingMapCalledEntry::MergeFrom(const MessageContainingMapCalledEntry& from) {
- // @@protoc_insertion_point(class_specific_merge_from_start:protobuf_unittest.MessageContainingMapCalledEntry)
- GOOGLE_DCHECK_NE(&from, this);
- _internal_metadata_.MergeFrom(from._internal_metadata_);
- ::google::protobuf::uint32 cached_has_bits = 0;
- (void) cached_has_bits;
- entry_.MergeFrom(from.entry_);
- }
- void MessageContainingMapCalledEntry::CopyFrom(const ::google::protobuf::Message& from) {
- // @@protoc_insertion_point(generalized_copy_from_start:protobuf_unittest.MessageContainingMapCalledEntry)
- if (&from == this) return;
- Clear();
- MergeFrom(from);
- }
- void MessageContainingMapCalledEntry::CopyFrom(const MessageContainingMapCalledEntry& from) {
- // @@protoc_insertion_point(class_specific_copy_from_start:protobuf_unittest.MessageContainingMapCalledEntry)
- if (&from == this) return;
- Clear();
- MergeFrom(from);
- }
- bool MessageContainingMapCalledEntry::IsInitialized() const {
- return true;
- }
- void MessageContainingMapCalledEntry::Swap(MessageContainingMapCalledEntry* other) {
- if (other == this) return;
- if (GetArenaNoVirtual() == other->GetArenaNoVirtual()) {
- InternalSwap(other);
- } else {
- MessageContainingMapCalledEntry* temp = New(GetArenaNoVirtual());
- temp->MergeFrom(*other);
- other->CopyFrom(*this);
- InternalSwap(temp);
- if (GetArenaNoVirtual() == NULL) {
- delete temp;
- }
- }
- }
- void MessageContainingMapCalledEntry::UnsafeArenaSwap(MessageContainingMapCalledEntry* other) {
- if (other == this) return;
- GOOGLE_DCHECK(GetArenaNoVirtual() == other->GetArenaNoVirtual());
- InternalSwap(other);
- }
- void MessageContainingMapCalledEntry::InternalSwap(MessageContainingMapCalledEntry* other) {
- using std::swap;
- entry_.Swap(&other->entry_);
- _internal_metadata_.Swap(&other->_internal_metadata_);
- }
- ::google::protobuf::Metadata MessageContainingMapCalledEntry::GetMetadata() const {
- protobuf_google_2fprotobuf_2fmap_5funittest_2eproto::protobuf_AssignDescriptorsOnce();
- return ::protobuf_google_2fprotobuf_2fmap_5funittest_2eproto::file_level_metadata[kIndexInFileMessages];
- }
- // ===================================================================
- TestRecursiveMapMessage_AEntry_DoNotUse::TestRecursiveMapMessage_AEntry_DoNotUse() {}
- TestRecursiveMapMessage_AEntry_DoNotUse::TestRecursiveMapMessage_AEntry_DoNotUse(::google::protobuf::Arena* arena) : SuperType(arena) {}
- void TestRecursiveMapMessage_AEntry_DoNotUse::MergeFrom(const TestRecursiveMapMessage_AEntry_DoNotUse& other) {
- MergeFromInternal(other);
- }
- ::google::protobuf::Metadata TestRecursiveMapMessage_AEntry_DoNotUse::GetMetadata() const {
- ::protobuf_google_2fprotobuf_2fmap_5funittest_2eproto::protobuf_AssignDescriptorsOnce();
- return ::protobuf_google_2fprotobuf_2fmap_5funittest_2eproto::file_level_metadata[51];
- }
- void TestRecursiveMapMessage_AEntry_DoNotUse::MergeFrom(
- const ::google::protobuf::Message& other) {
- ::google::protobuf::Message::MergeFrom(other);
- }
- // ===================================================================
- void TestRecursiveMapMessage::InitAsDefaultInstance() {
- }
- #if !defined(_MSC_VER) || _MSC_VER >= 1900
- const int TestRecursiveMapMessage::kAFieldNumber;
- #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
- TestRecursiveMapMessage::TestRecursiveMapMessage()
- : ::google::protobuf::Message(), _internal_metadata_(NULL) {
- ::google::protobuf::internal::InitSCC(
- &protobuf_google_2fprotobuf_2fmap_5funittest_2eproto::scc_info_TestRecursiveMapMessage.base);
- SharedCtor();
- // @@protoc_insertion_point(constructor:protobuf_unittest.TestRecursiveMapMessage)
- }
- TestRecursiveMapMessage::TestRecursiveMapMessage(::google::protobuf::Arena* arena)
- : ::google::protobuf::Message(),
- _internal_metadata_(arena),
- a_(arena) {
- ::google::protobuf::internal::InitSCC(&protobuf_google_2fprotobuf_2fmap_5funittest_2eproto::scc_info_TestRecursiveMapMessage.base);
- SharedCtor();
- RegisterArenaDtor(arena);
- // @@protoc_insertion_point(arena_constructor:protobuf_unittest.TestRecursiveMapMessage)
- }
- TestRecursiveMapMessage::TestRecursiveMapMessage(const TestRecursiveMapMessage& from)
- : ::google::protobuf::Message(),
- _internal_metadata_(NULL) {
- _internal_metadata_.MergeFrom(from._internal_metadata_);
- a_.MergeFrom(from.a_);
- // @@protoc_insertion_point(copy_constructor:protobuf_unittest.TestRecursiveMapMessage)
- }
- void TestRecursiveMapMessage::SharedCtor() {
- }
- TestRecursiveMapMessage::~TestRecursiveMapMessage() {
- // @@protoc_insertion_point(destructor:protobuf_unittest.TestRecursiveMapMessage)
- SharedDtor();
- }
- void TestRecursiveMapMessage::SharedDtor() {
- GOOGLE_DCHECK(GetArenaNoVirtual() == NULL);
- }
- void TestRecursiveMapMessage::ArenaDtor(void* object) {
- TestRecursiveMapMessage* _this = reinterpret_cast< TestRecursiveMapMessage* >(object);
- (void)_this;
- }
- void TestRecursiveMapMessage::RegisterArenaDtor(::google::protobuf::Arena* arena) {
- }
- void TestRecursiveMapMessage::SetCachedSize(int size) const {
- _cached_size_.Set(size);
- }
- const ::google::protobuf::Descriptor* TestRecursiveMapMessage::descriptor() {
- ::protobuf_google_2fprotobuf_2fmap_5funittest_2eproto::protobuf_AssignDescriptorsOnce();
- return ::protobuf_google_2fprotobuf_2fmap_5funittest_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
- }
- const TestRecursiveMapMessage& TestRecursiveMapMessage::default_instance() {
- ::google::protobuf::internal::InitSCC(&protobuf_google_2fprotobuf_2fmap_5funittest_2eproto::scc_info_TestRecursiveMapMessage.base);
- return *internal_default_instance();
- }
- void TestRecursiveMapMessage::Clear() {
- // @@protoc_insertion_point(message_clear_start:protobuf_unittest.TestRecursiveMapMessage)
- ::google::protobuf::uint32 cached_has_bits = 0;
- // Prevent compiler warnings about cached_has_bits being unused
- (void) cached_has_bits;
- a_.Clear();
- _internal_metadata_.Clear();
- }
- bool TestRecursiveMapMessage::MergePartialFromCodedStream(
- ::google::protobuf::io::CodedInputStream* input) {
- #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
- ::google::protobuf::uint32 tag;
- // @@protoc_insertion_point(parse_start:protobuf_unittest.TestRecursiveMapMessage)
- for (;;) {
- ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
- tag = p.first;
- if (!p.second) goto handle_unusual;
- switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
- // map<string, .protobuf_unittest.TestRecursiveMapMessage> a = 1;
- case 1: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
- TestRecursiveMapMessage_AEntry_DoNotUse::Parser< ::google::protobuf::internal::MapField<
- TestRecursiveMapMessage_AEntry_DoNotUse,
- ::std::string, ::protobuf_unittest::TestRecursiveMapMessage,
- ::google::protobuf::internal::WireFormatLite::TYPE_STRING,
- ::google::protobuf::internal::WireFormatLite::TYPE_MESSAGE,
- 0 >,
- ::google::protobuf::Map< ::std::string, ::protobuf_unittest::TestRecursiveMapMessage > > parser(&a_);
- DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
- input, &parser));
- DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
- parser.key().data(), static_cast<int>(parser.key().length()),
- ::google::protobuf::internal::WireFormatLite::PARSE,
- "protobuf_unittest.TestRecursiveMapMessage.AEntry.key"));
- } else {
- goto handle_unusual;
- }
- break;
- }
- default: {
- handle_unusual:
- if (tag == 0) {
- goto success;
- }
- DO_(::google::protobuf::internal::WireFormat::SkipField(
- input, tag, _internal_metadata_.mutable_unknown_fields()));
- break;
- }
- }
- }
- success:
- // @@protoc_insertion_point(parse_success:protobuf_unittest.TestRecursiveMapMessage)
- return true;
- failure:
- // @@protoc_insertion_point(parse_failure:protobuf_unittest.TestRecursiveMapMessage)
- return false;
- #undef DO_
- }
- void TestRecursiveMapMessage::SerializeWithCachedSizes(
- ::google::protobuf::io::CodedOutputStream* output) const {
- // @@protoc_insertion_point(serialize_start:protobuf_unittest.TestRecursiveMapMessage)
- ::google::protobuf::uint32 cached_has_bits = 0;
- (void) cached_has_bits;
- // map<string, .protobuf_unittest.TestRecursiveMapMessage> a = 1;
- if (!this->a().empty()) {
- typedef ::google::protobuf::Map< ::std::string, ::protobuf_unittest::TestRecursiveMapMessage >::const_pointer
- ConstPtr;
- typedef ConstPtr SortItem;
- typedef ::google::protobuf::internal::CompareByDerefFirst<SortItem> Less;
- struct Utf8Check {
- static void Check(ConstPtr p) {
- ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
- p->first.data(), static_cast<int>(p->first.length()),
- ::google::protobuf::internal::WireFormatLite::SERIALIZE,
- "protobuf_unittest.TestRecursiveMapMessage.AEntry.key");
- }
- };
- if (output->IsSerializationDeterministic() &&
- this->a().size() > 1) {
- ::std::unique_ptr<SortItem[]> items(
- new SortItem[this->a().size()]);
- typedef ::google::protobuf::Map< ::std::string, ::protobuf_unittest::TestRecursiveMapMessage >::size_type size_type;
- size_type n = 0;
- for (::google::protobuf::Map< ::std::string, ::protobuf_unittest::TestRecursiveMapMessage >::const_iterator
- it = this->a().begin();
- it != this->a().end(); ++it, ++n) {
- items[static_cast<ptrdiff_t>(n)] = SortItem(&*it);
- }
- ::std::sort(&items[0], &items[static_cast<ptrdiff_t>(n)], Less());
- ::std::unique_ptr<TestRecursiveMapMessage_AEntry_DoNotUse> entry;
- for (size_type i = 0; i < n; i++) {
- entry.reset(a_.NewEntryWrapper(
- items[static_cast<ptrdiff_t>(i)]->first, items[static_cast<ptrdiff_t>(i)]->second));
- ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
- 1, *entry, output);
- if (entry->GetArena() != NULL) {
- entry.release();
- }
- Utf8Check::Check(items[static_cast<ptrdiff_t>(i)]);
- }
- } else {
- ::std::unique_ptr<TestRecursiveMapMessage_AEntry_DoNotUse> entry;
- for (::google::protobuf::Map< ::std::string, ::protobuf_unittest::TestRecursiveMapMessage >::const_iterator
- it = this->a().begin();
- it != this->a().end(); ++it) {
- entry.reset(a_.NewEntryWrapper(
- it->first, it->second));
- ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
- 1, *entry, output);
- if (entry->GetArena() != NULL) {
- entry.release();
- }
- Utf8Check::Check(&*it);
- }
- }
- }
- if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
- ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
- (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output);
- }
- // @@protoc_insertion_point(serialize_end:protobuf_unittest.TestRecursiveMapMessage)
- }
- ::google::protobuf::uint8* TestRecursiveMapMessage::InternalSerializeWithCachedSizesToArray(
- bool deterministic, ::google::protobuf::uint8* target) const {
- (void)deterministic; // Unused
- // @@protoc_insertion_point(serialize_to_array_start:protobuf_unittest.TestRecursiveMapMessage)
- ::google::protobuf::uint32 cached_has_bits = 0;
- (void) cached_has_bits;
- // map<string, .protobuf_unittest.TestRecursiveMapMessage> a = 1;
- if (!this->a().empty()) {
- typedef ::google::protobuf::Map< ::std::string, ::protobuf_unittest::TestRecursiveMapMessage >::const_pointer
- ConstPtr;
- typedef ConstPtr SortItem;
- typedef ::google::protobuf::internal::CompareByDerefFirst<SortItem> Less;
- struct Utf8Check {
- static void Check(ConstPtr p) {
- ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
- p->first.data(), static_cast<int>(p->first.length()),
- ::google::protobuf::internal::WireFormatLite::SERIALIZE,
- "protobuf_unittest.TestRecursiveMapMessage.AEntry.key");
- }
- };
- if (deterministic &&
- this->a().size() > 1) {
- ::std::unique_ptr<SortItem[]> items(
- new SortItem[this->a().size()]);
- typedef ::google::protobuf::Map< ::std::string, ::protobuf_unittest::TestRecursiveMapMessage >::size_type size_type;
- size_type n = 0;
- for (::google::protobuf::Map< ::std::string, ::protobuf_unittest::TestRecursiveMapMessage >::const_iterator
- it = this->a().begin();
- it != this->a().end(); ++it, ++n) {
- items[static_cast<ptrdiff_t>(n)] = SortItem(&*it);
- }
- ::std::sort(&items[0], &items[static_cast<ptrdiff_t>(n)], Less());
- ::std::unique_ptr<TestRecursiveMapMessage_AEntry_DoNotUse> entry;
- for (size_type i = 0; i < n; i++) {
- entry.reset(a_.NewEntryWrapper(
- items[static_cast<ptrdiff_t>(i)]->first, items[static_cast<ptrdiff_t>(i)]->second));
- target = ::google::protobuf::internal::WireFormatLite::
- InternalWriteMessageNoVirtualToArray(
- 1, *entry, deterministic, target);
- ;
- if (entry->GetArena() != NULL) {
- entry.release();
- }
- Utf8Check::Check(items[static_cast<ptrdiff_t>(i)]);
- }
- } else {
- ::std::unique_ptr<TestRecursiveMapMessage_AEntry_DoNotUse> entry;
- for (::google::protobuf::Map< ::std::string, ::protobuf_unittest::TestRecursiveMapMessage >::const_iterator
- it = this->a().begin();
- it != this->a().end(); ++it) {
- entry.reset(a_.NewEntryWrapper(
- it->first, it->second));
- target = ::google::protobuf::internal::WireFormatLite::
- InternalWriteMessageNoVirtualToArray(
- 1, *entry, deterministic, target);
- ;
- if (entry->GetArena() != NULL) {
- entry.release();
- }
- Utf8Check::Check(&*it);
- }
- }
- }
- if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
- target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
- (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target);
- }
- // @@protoc_insertion_point(serialize_to_array_end:protobuf_unittest.TestRecursiveMapMessage)
- return target;
- }
- size_t TestRecursiveMapMessage::ByteSizeLong() const {
- // @@protoc_insertion_point(message_byte_size_start:protobuf_unittest.TestRecursiveMapMessage)
- size_t total_size = 0;
- if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
- total_size +=
- ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
- (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()));
- }
- // map<string, .protobuf_unittest.TestRecursiveMapMessage> a = 1;
- total_size += 1 *
- ::google::protobuf::internal::FromIntSize(this->a_size());
- {
- ::std::unique_ptr<TestRecursiveMapMessage_AEntry_DoNotUse> entry;
- for (::google::protobuf::Map< ::std::string, ::protobuf_unittest::TestRecursiveMapMessage >::const_iterator
- it = this->a().begin();
- it != this->a().end(); ++it) {
- if (entry.get() != NULL && entry->GetArena() != NULL) {
- entry.release();
- }
- entry.reset(a_.NewEntryWrapper(it->first, it->second));
- total_size += ::google::protobuf::internal::WireFormatLite::
- MessageSizeNoVirtual(*entry);
- }
- if (entry.get() != NULL && entry->GetArena() != NULL) {
- entry.release();
- }
- }
- int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
- SetCachedSize(cached_size);
- return total_size;
- }
- void TestRecursiveMapMessage::MergeFrom(const ::google::protobuf::Message& from) {
- // @@protoc_insertion_point(generalized_merge_from_start:protobuf_unittest.TestRecursiveMapMessage)
- GOOGLE_DCHECK_NE(&from, this);
- const TestRecursiveMapMessage* source =
- ::google::protobuf::internal::DynamicCastToGenerated<const TestRecursiveMapMessage>(
- &from);
- if (source == NULL) {
- // @@protoc_insertion_point(generalized_merge_from_cast_fail:protobuf_unittest.TestRecursiveMapMessage)
- ::google::protobuf::internal::ReflectionOps::Merge(from, this);
- } else {
- // @@protoc_insertion_point(generalized_merge_from_cast_success:protobuf_unittest.TestRecursiveMapMessage)
- MergeFrom(*source);
- }
- }
- void TestRecursiveMapMessage::MergeFrom(const TestRecursiveMapMessage& from) {
- // @@protoc_insertion_point(class_specific_merge_from_start:protobuf_unittest.TestRecursiveMapMessage)
- GOOGLE_DCHECK_NE(&from, this);
- _internal_metadata_.MergeFrom(from._internal_metadata_);
- ::google::protobuf::uint32 cached_has_bits = 0;
- (void) cached_has_bits;
- a_.MergeFrom(from.a_);
- }
- void TestRecursiveMapMessage::CopyFrom(const ::google::protobuf::Message& from) {
- // @@protoc_insertion_point(generalized_copy_from_start:protobuf_unittest.TestRecursiveMapMessage)
- if (&from == this) return;
- Clear();
- MergeFrom(from);
- }
- void TestRecursiveMapMessage::CopyFrom(const TestRecursiveMapMessage& from) {
- // @@protoc_insertion_point(class_specific_copy_from_start:protobuf_unittest.TestRecursiveMapMessage)
- if (&from == this) return;
- Clear();
- MergeFrom(from);
- }
- bool TestRecursiveMapMessage::IsInitialized() const {
- return true;
- }
- void TestRecursiveMapMessage::Swap(TestRecursiveMapMessage* other) {
- if (other == this) return;
- if (GetArenaNoVirtual() == other->GetArenaNoVirtual()) {
- InternalSwap(other);
- } else {
- TestRecursiveMapMessage* temp = New(GetArenaNoVirtual());
- temp->MergeFrom(*other);
- other->CopyFrom(*this);
- InternalSwap(temp);
- if (GetArenaNoVirtual() == NULL) {
- delete temp;
- }
- }
- }
- void TestRecursiveMapMessage::UnsafeArenaSwap(TestRecursiveMapMessage* other) {
- if (other == this) return;
- GOOGLE_DCHECK(GetArenaNoVirtual() == other->GetArenaNoVirtual());
- InternalSwap(other);
- }
- void TestRecursiveMapMessage::InternalSwap(TestRecursiveMapMessage* other) {
- using std::swap;
- a_.Swap(&other->a_);
- _internal_metadata_.Swap(&other->_internal_metadata_);
- }
- ::google::protobuf::Metadata TestRecursiveMapMessage::GetMetadata() const {
- protobuf_google_2fprotobuf_2fmap_5funittest_2eproto::protobuf_AssignDescriptorsOnce();
- return ::protobuf_google_2fprotobuf_2fmap_5funittest_2eproto::file_level_metadata[kIndexInFileMessages];
- }
- // @@protoc_insertion_point(namespace_scope)
- } // namespace protobuf_unittest
- namespace google {
- namespace protobuf {
- template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::protobuf_unittest::TestMap_MapInt32Int32Entry_DoNotUse* Arena::CreateMaybeMessage< ::protobuf_unittest::TestMap_MapInt32Int32Entry_DoNotUse >(Arena* arena) {
- return Arena::CreateMessageInternal< ::protobuf_unittest::TestMap_MapInt32Int32Entry_DoNotUse >(arena);
- }
- template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::protobuf_unittest::TestMap_MapInt64Int64Entry_DoNotUse* Arena::CreateMaybeMessage< ::protobuf_unittest::TestMap_MapInt64Int64Entry_DoNotUse >(Arena* arena) {
- return Arena::CreateMessageInternal< ::protobuf_unittest::TestMap_MapInt64Int64Entry_DoNotUse >(arena);
- }
- template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::protobuf_unittest::TestMap_MapUint32Uint32Entry_DoNotUse* Arena::CreateMaybeMessage< ::protobuf_unittest::TestMap_MapUint32Uint32Entry_DoNotUse >(Arena* arena) {
- return Arena::CreateMessageInternal< ::protobuf_unittest::TestMap_MapUint32Uint32Entry_DoNotUse >(arena);
- }
- template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::protobuf_unittest::TestMap_MapUint64Uint64Entry_DoNotUse* Arena::CreateMaybeMessage< ::protobuf_unittest::TestMap_MapUint64Uint64Entry_DoNotUse >(Arena* arena) {
- return Arena::CreateMessageInternal< ::protobuf_unittest::TestMap_MapUint64Uint64Entry_DoNotUse >(arena);
- }
- template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::protobuf_unittest::TestMap_MapSint32Sint32Entry_DoNotUse* Arena::CreateMaybeMessage< ::protobuf_unittest::TestMap_MapSint32Sint32Entry_DoNotUse >(Arena* arena) {
- return Arena::CreateMessageInternal< ::protobuf_unittest::TestMap_MapSint32Sint32Entry_DoNotUse >(arena);
- }
- template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::protobuf_unittest::TestMap_MapSint64Sint64Entry_DoNotUse* Arena::CreateMaybeMessage< ::protobuf_unittest::TestMap_MapSint64Sint64Entry_DoNotUse >(Arena* arena) {
- return Arena::CreateMessageInternal< ::protobuf_unittest::TestMap_MapSint64Sint64Entry_DoNotUse >(arena);
- }
- template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::protobuf_unittest::TestMap_MapFixed32Fixed32Entry_DoNotUse* Arena::CreateMaybeMessage< ::protobuf_unittest::TestMap_MapFixed32Fixed32Entry_DoNotUse >(Arena* arena) {
- return Arena::CreateMessageInternal< ::protobuf_unittest::TestMap_MapFixed32Fixed32Entry_DoNotUse >(arena);
- }
- template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::protobuf_unittest::TestMap_MapFixed64Fixed64Entry_DoNotUse* Arena::CreateMaybeMessage< ::protobuf_unittest::TestMap_MapFixed64Fixed64Entry_DoNotUse >(Arena* arena) {
- return Arena::CreateMessageInternal< ::protobuf_unittest::TestMap_MapFixed64Fixed64Entry_DoNotUse >(arena);
- }
- template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::protobuf_unittest::TestMap_MapSfixed32Sfixed32Entry_DoNotUse* Arena::CreateMaybeMessage< ::protobuf_unittest::TestMap_MapSfixed32Sfixed32Entry_DoNotUse >(Arena* arena) {
- return Arena::CreateMessageInternal< ::protobuf_unittest::TestMap_MapSfixed32Sfixed32Entry_DoNotUse >(arena);
- }
- template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::protobuf_unittest::TestMap_MapSfixed64Sfixed64Entry_DoNotUse* Arena::CreateMaybeMessage< ::protobuf_unittest::TestMap_MapSfixed64Sfixed64Entry_DoNotUse >(Arena* arena) {
- return Arena::CreateMessageInternal< ::protobuf_unittest::TestMap_MapSfixed64Sfixed64Entry_DoNotUse >(arena);
- }
- template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::protobuf_unittest::TestMap_MapInt32FloatEntry_DoNotUse* Arena::CreateMaybeMessage< ::protobuf_unittest::TestMap_MapInt32FloatEntry_DoNotUse >(Arena* arena) {
- return Arena::CreateMessageInternal< ::protobuf_unittest::TestMap_MapInt32FloatEntry_DoNotUse >(arena);
- }
- template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::protobuf_unittest::TestMap_MapInt32DoubleEntry_DoNotUse* Arena::CreateMaybeMessage< ::protobuf_unittest::TestMap_MapInt32DoubleEntry_DoNotUse >(Arena* arena) {
- return Arena::CreateMessageInternal< ::protobuf_unittest::TestMap_MapInt32DoubleEntry_DoNotUse >(arena);
- }
- template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::protobuf_unittest::TestMap_MapBoolBoolEntry_DoNotUse* Arena::CreateMaybeMessage< ::protobuf_unittest::TestMap_MapBoolBoolEntry_DoNotUse >(Arena* arena) {
- return Arena::CreateMessageInternal< ::protobuf_unittest::TestMap_MapBoolBoolEntry_DoNotUse >(arena);
- }
- template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::protobuf_unittest::TestMap_MapStringStringEntry_DoNotUse* Arena::CreateMaybeMessage< ::protobuf_unittest::TestMap_MapStringStringEntry_DoNotUse >(Arena* arena) {
- return Arena::CreateMessageInternal< ::protobuf_unittest::TestMap_MapStringStringEntry_DoNotUse >(arena);
- }
- template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::protobuf_unittest::TestMap_MapInt32BytesEntry_DoNotUse* Arena::CreateMaybeMessage< ::protobuf_unittest::TestMap_MapInt32BytesEntry_DoNotUse >(Arena* arena) {
- return Arena::CreateMessageInternal< ::protobuf_unittest::TestMap_MapInt32BytesEntry_DoNotUse >(arena);
- }
- template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::protobuf_unittest::TestMap_MapInt32EnumEntry_DoNotUse* Arena::CreateMaybeMessage< ::protobuf_unittest::TestMap_MapInt32EnumEntry_DoNotUse >(Arena* arena) {
- return Arena::CreateMessageInternal< ::protobuf_unittest::TestMap_MapInt32EnumEntry_DoNotUse >(arena);
- }
- template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::protobuf_unittest::TestMap_MapInt32ForeignMessageEntry_DoNotUse* Arena::CreateMaybeMessage< ::protobuf_unittest::TestMap_MapInt32ForeignMessageEntry_DoNotUse >(Arena* arena) {
- return Arena::CreateMessageInternal< ::protobuf_unittest::TestMap_MapInt32ForeignMessageEntry_DoNotUse >(arena);
- }
- template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::protobuf_unittest::TestMap_MapStringForeignMessageEntry_DoNotUse* Arena::CreateMaybeMessage< ::protobuf_unittest::TestMap_MapStringForeignMessageEntry_DoNotUse >(Arena* arena) {
- return Arena::CreateMessageInternal< ::protobuf_unittest::TestMap_MapStringForeignMessageEntry_DoNotUse >(arena);
- }
- template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::protobuf_unittest::TestMap_MapInt32AllTypesEntry_DoNotUse* Arena::CreateMaybeMessage< ::protobuf_unittest::TestMap_MapInt32AllTypesEntry_DoNotUse >(Arena* arena) {
- return Arena::CreateMessageInternal< ::protobuf_unittest::TestMap_MapInt32AllTypesEntry_DoNotUse >(arena);
- }
- template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::protobuf_unittest::TestMap* Arena::CreateMaybeMessage< ::protobuf_unittest::TestMap >(Arena* arena) {
- return Arena::CreateMessageInternal< ::protobuf_unittest::TestMap >(arena);
- }
- template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::protobuf_unittest::TestMapSubmessage* Arena::CreateMaybeMessage< ::protobuf_unittest::TestMapSubmessage >(Arena* arena) {
- return Arena::CreateMessageInternal< ::protobuf_unittest::TestMapSubmessage >(arena);
- }
- template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::protobuf_unittest::TestMessageMap_MapInt32MessageEntry_DoNotUse* Arena::CreateMaybeMessage< ::protobuf_unittest::TestMessageMap_MapInt32MessageEntry_DoNotUse >(Arena* arena) {
- return Arena::CreateMessageInternal< ::protobuf_unittest::TestMessageMap_MapInt32MessageEntry_DoNotUse >(arena);
- }
- template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::protobuf_unittest::TestMessageMap* Arena::CreateMaybeMessage< ::protobuf_unittest::TestMessageMap >(Arena* arena) {
- return Arena::CreateMessageInternal< ::protobuf_unittest::TestMessageMap >(arena);
- }
- template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::protobuf_unittest::TestSameTypeMap_Map1Entry_DoNotUse* Arena::CreateMaybeMessage< ::protobuf_unittest::TestSameTypeMap_Map1Entry_DoNotUse >(Arena* arena) {
- return Arena::CreateMessageInternal< ::protobuf_unittest::TestSameTypeMap_Map1Entry_DoNotUse >(arena);
- }
- template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::protobuf_unittest::TestSameTypeMap_Map2Entry_DoNotUse* Arena::CreateMaybeMessage< ::protobuf_unittest::TestSameTypeMap_Map2Entry_DoNotUse >(Arena* arena) {
- return Arena::CreateMessageInternal< ::protobuf_unittest::TestSameTypeMap_Map2Entry_DoNotUse >(arena);
- }
- template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::protobuf_unittest::TestSameTypeMap* Arena::CreateMaybeMessage< ::protobuf_unittest::TestSameTypeMap >(Arena* arena) {
- return Arena::CreateMessageInternal< ::protobuf_unittest::TestSameTypeMap >(arena);
- }
- template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::protobuf_unittest::TestRequiredMessageMap_MapFieldEntry_DoNotUse* Arena::CreateMaybeMessage< ::protobuf_unittest::TestRequiredMessageMap_MapFieldEntry_DoNotUse >(Arena* arena) {
- return Arena::CreateMessageInternal< ::protobuf_unittest::TestRequiredMessageMap_MapFieldEntry_DoNotUse >(arena);
- }
- template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::protobuf_unittest::TestRequiredMessageMap* Arena::CreateMaybeMessage< ::protobuf_unittest::TestRequiredMessageMap >(Arena* arena) {
- return Arena::CreateMessageInternal< ::protobuf_unittest::TestRequiredMessageMap >(arena);
- }
- template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::protobuf_unittest::TestArenaMap_MapInt32Int32Entry_DoNotUse* Arena::CreateMaybeMessage< ::protobuf_unittest::TestArenaMap_MapInt32Int32Entry_DoNotUse >(Arena* arena) {
- return Arena::CreateMessageInternal< ::protobuf_unittest::TestArenaMap_MapInt32Int32Entry_DoNotUse >(arena);
- }
- template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::protobuf_unittest::TestArenaMap_MapInt64Int64Entry_DoNotUse* Arena::CreateMaybeMessage< ::protobuf_unittest::TestArenaMap_MapInt64Int64Entry_DoNotUse >(Arena* arena) {
- return Arena::CreateMessageInternal< ::protobuf_unittest::TestArenaMap_MapInt64Int64Entry_DoNotUse >(arena);
- }
- template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::protobuf_unittest::TestArenaMap_MapUint32Uint32Entry_DoNotUse* Arena::CreateMaybeMessage< ::protobuf_unittest::TestArenaMap_MapUint32Uint32Entry_DoNotUse >(Arena* arena) {
- return Arena::CreateMessageInternal< ::protobuf_unittest::TestArenaMap_MapUint32Uint32Entry_DoNotUse >(arena);
- }
- template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::protobuf_unittest::TestArenaMap_MapUint64Uint64Entry_DoNotUse* Arena::CreateMaybeMessage< ::protobuf_unittest::TestArenaMap_MapUint64Uint64Entry_DoNotUse >(Arena* arena) {
- return Arena::CreateMessageInternal< ::protobuf_unittest::TestArenaMap_MapUint64Uint64Entry_DoNotUse >(arena);
- }
- template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::protobuf_unittest::TestArenaMap_MapSint32Sint32Entry_DoNotUse* Arena::CreateMaybeMessage< ::protobuf_unittest::TestArenaMap_MapSint32Sint32Entry_DoNotUse >(Arena* arena) {
- return Arena::CreateMessageInternal< ::protobuf_unittest::TestArenaMap_MapSint32Sint32Entry_DoNotUse >(arena);
- }
- template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::protobuf_unittest::TestArenaMap_MapSint64Sint64Entry_DoNotUse* Arena::CreateMaybeMessage< ::protobuf_unittest::TestArenaMap_MapSint64Sint64Entry_DoNotUse >(Arena* arena) {
- return Arena::CreateMessageInternal< ::protobuf_unittest::TestArenaMap_MapSint64Sint64Entry_DoNotUse >(arena);
- }
- template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::protobuf_unittest::TestArenaMap_MapFixed32Fixed32Entry_DoNotUse* Arena::CreateMaybeMessage< ::protobuf_unittest::TestArenaMap_MapFixed32Fixed32Entry_DoNotUse >(Arena* arena) {
- return Arena::CreateMessageInternal< ::protobuf_unittest::TestArenaMap_MapFixed32Fixed32Entry_DoNotUse >(arena);
- }
- template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::protobuf_unittest::TestArenaMap_MapFixed64Fixed64Entry_DoNotUse* Arena::CreateMaybeMessage< ::protobuf_unittest::TestArenaMap_MapFixed64Fixed64Entry_DoNotUse >(Arena* arena) {
- return Arena::CreateMessageInternal< ::protobuf_unittest::TestArenaMap_MapFixed64Fixed64Entry_DoNotUse >(arena);
- }
- template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::protobuf_unittest::TestArenaMap_MapSfixed32Sfixed32Entry_DoNotUse* Arena::CreateMaybeMessage< ::protobuf_unittest::TestArenaMap_MapSfixed32Sfixed32Entry_DoNotUse >(Arena* arena) {
- return Arena::CreateMessageInternal< ::protobuf_unittest::TestArenaMap_MapSfixed32Sfixed32Entry_DoNotUse >(arena);
- }
- template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::protobuf_unittest::TestArenaMap_MapSfixed64Sfixed64Entry_DoNotUse* Arena::CreateMaybeMessage< ::protobuf_unittest::TestArenaMap_MapSfixed64Sfixed64Entry_DoNotUse >(Arena* arena) {
- return Arena::CreateMessageInternal< ::protobuf_unittest::TestArenaMap_MapSfixed64Sfixed64Entry_DoNotUse >(arena);
- }
- template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::protobuf_unittest::TestArenaMap_MapInt32FloatEntry_DoNotUse* Arena::CreateMaybeMessage< ::protobuf_unittest::TestArenaMap_MapInt32FloatEntry_DoNotUse >(Arena* arena) {
- return Arena::CreateMessageInternal< ::protobuf_unittest::TestArenaMap_MapInt32FloatEntry_DoNotUse >(arena);
- }
- template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::protobuf_unittest::TestArenaMap_MapInt32DoubleEntry_DoNotUse* Arena::CreateMaybeMessage< ::protobuf_unittest::TestArenaMap_MapInt32DoubleEntry_DoNotUse >(Arena* arena) {
- return Arena::CreateMessageInternal< ::protobuf_unittest::TestArenaMap_MapInt32DoubleEntry_DoNotUse >(arena);
- }
- template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::protobuf_unittest::TestArenaMap_MapBoolBoolEntry_DoNotUse* Arena::CreateMaybeMessage< ::protobuf_unittest::TestArenaMap_MapBoolBoolEntry_DoNotUse >(Arena* arena) {
- return Arena::CreateMessageInternal< ::protobuf_unittest::TestArenaMap_MapBoolBoolEntry_DoNotUse >(arena);
- }
- template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::protobuf_unittest::TestArenaMap_MapStringStringEntry_DoNotUse* Arena::CreateMaybeMessage< ::protobuf_unittest::TestArenaMap_MapStringStringEntry_DoNotUse >(Arena* arena) {
- return Arena::CreateMessageInternal< ::protobuf_unittest::TestArenaMap_MapStringStringEntry_DoNotUse >(arena);
- }
- template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::protobuf_unittest::TestArenaMap_MapInt32BytesEntry_DoNotUse* Arena::CreateMaybeMessage< ::protobuf_unittest::TestArenaMap_MapInt32BytesEntry_DoNotUse >(Arena* arena) {
- return Arena::CreateMessageInternal< ::protobuf_unittest::TestArenaMap_MapInt32BytesEntry_DoNotUse >(arena);
- }
- template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::protobuf_unittest::TestArenaMap_MapInt32EnumEntry_DoNotUse* Arena::CreateMaybeMessage< ::protobuf_unittest::TestArenaMap_MapInt32EnumEntry_DoNotUse >(Arena* arena) {
- return Arena::CreateMessageInternal< ::protobuf_unittest::TestArenaMap_MapInt32EnumEntry_DoNotUse >(arena);
- }
- template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::protobuf_unittest::TestArenaMap_MapInt32ForeignMessageEntry_DoNotUse* Arena::CreateMaybeMessage< ::protobuf_unittest::TestArenaMap_MapInt32ForeignMessageEntry_DoNotUse >(Arena* arena) {
- return Arena::CreateMessageInternal< ::protobuf_unittest::TestArenaMap_MapInt32ForeignMessageEntry_DoNotUse >(arena);
- }
- template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::protobuf_unittest::TestArenaMap_MapInt32ForeignMessageNoArenaEntry_DoNotUse* Arena::CreateMaybeMessage< ::protobuf_unittest::TestArenaMap_MapInt32ForeignMessageNoArenaEntry_DoNotUse >(Arena* arena) {
- return Arena::CreateMessageInternal< ::protobuf_unittest::TestArenaMap_MapInt32ForeignMessageNoArenaEntry_DoNotUse >(arena);
- }
- template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::protobuf_unittest::TestArenaMap* Arena::CreateMaybeMessage< ::protobuf_unittest::TestArenaMap >(Arena* arena) {
- return Arena::CreateMessageInternal< ::protobuf_unittest::TestArenaMap >(arena);
- }
- template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::protobuf_unittest::MessageContainingEnumCalledType_TypeEntry_DoNotUse* Arena::CreateMaybeMessage< ::protobuf_unittest::MessageContainingEnumCalledType_TypeEntry_DoNotUse >(Arena* arena) {
- return Arena::CreateMessageInternal< ::protobuf_unittest::MessageContainingEnumCalledType_TypeEntry_DoNotUse >(arena);
- }
- template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::protobuf_unittest::MessageContainingEnumCalledType* Arena::CreateMaybeMessage< ::protobuf_unittest::MessageContainingEnumCalledType >(Arena* arena) {
- return Arena::CreateMessageInternal< ::protobuf_unittest::MessageContainingEnumCalledType >(arena);
- }
- template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::protobuf_unittest::MessageContainingMapCalledEntry_EntryEntry_DoNotUse* Arena::CreateMaybeMessage< ::protobuf_unittest::MessageContainingMapCalledEntry_EntryEntry_DoNotUse >(Arena* arena) {
- return Arena::CreateMessageInternal< ::protobuf_unittest::MessageContainingMapCalledEntry_EntryEntry_DoNotUse >(arena);
- }
- template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::protobuf_unittest::MessageContainingMapCalledEntry* Arena::CreateMaybeMessage< ::protobuf_unittest::MessageContainingMapCalledEntry >(Arena* arena) {
- return Arena::CreateMessageInternal< ::protobuf_unittest::MessageContainingMapCalledEntry >(arena);
- }
- template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::protobuf_unittest::TestRecursiveMapMessage_AEntry_DoNotUse* Arena::CreateMaybeMessage< ::protobuf_unittest::TestRecursiveMapMessage_AEntry_DoNotUse >(Arena* arena) {
- return Arena::CreateMessageInternal< ::protobuf_unittest::TestRecursiveMapMessage_AEntry_DoNotUse >(arena);
- }
- template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::protobuf_unittest::TestRecursiveMapMessage* Arena::CreateMaybeMessage< ::protobuf_unittest::TestRecursiveMapMessage >(Arena* arena) {
- return Arena::CreateMessageInternal< ::protobuf_unittest::TestRecursiveMapMessage >(arena);
- }
- } // namespace protobuf
- } // namespace google
- // @@protoc_insertion_point(global_scope)
|