unittest.pb.h 1.3 MB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235132361323713238132391324013241132421324313244132451324613247132481324913250132511325213253132541325513256132571325813259132601326113262132631326413265132661326713268132691327013271132721327313274132751327613277132781327913280132811328213283132841328513286132871328813289132901329113292132931329413295132961329713298132991330013301133021330313304133051330613307133081330913310133111331213313133141331513316133171331813319133201332113322133231332413325133261332713328133291333013331133321333313334133351333613337133381333913340133411334213343133441334513346133471334813349133501335113352133531335413355133561335713358133591336013361133621336313364133651336613367133681336913370133711337213373133741337513376133771337813379133801338113382133831338413385133861338713388133891339013391133921339313394133951339613397133981339913400134011340213403134041340513406134071340813409134101341113412134131341413415134161341713418134191342013421134221342313424134251342613427134281342913430134311343213433134341343513436134371343813439134401344113442134431344413445134461344713448134491345013451134521345313454134551345613457134581345913460134611346213463134641346513466134671346813469134701347113472134731347413475134761347713478134791348013481134821348313484134851348613487134881348913490134911349213493134941349513496134971349813499135001350113502135031350413505135061350713508135091351013511135121351313514135151351613517135181351913520135211352213523135241352513526135271352813529135301353113532135331353413535135361353713538135391354013541135421354313544135451354613547135481354913550135511355213553135541355513556135571355813559135601356113562135631356413565135661356713568135691357013571135721357313574135751357613577135781357913580135811358213583135841358513586135871358813589135901359113592135931359413595135961359713598135991360013601136021360313604136051360613607136081360913610136111361213613136141361513616136171361813619136201362113622136231362413625136261362713628136291363013631136321363313634136351363613637136381363913640136411364213643136441364513646136471364813649136501365113652136531365413655136561365713658136591366013661136621366313664136651366613667136681366913670136711367213673136741367513676136771367813679136801368113682136831368413685136861368713688136891369013691136921369313694136951369613697136981369913700137011370213703137041370513706137071370813709137101371113712137131371413715137161371713718137191372013721137221372313724137251372613727137281372913730137311373213733137341373513736137371373813739137401374113742137431374413745137461374713748137491375013751137521375313754137551375613757137581375913760137611376213763137641376513766137671376813769137701377113772137731377413775137761377713778137791378013781137821378313784137851378613787137881378913790137911379213793137941379513796137971379813799138001380113802138031380413805138061380713808138091381013811138121381313814138151381613817138181381913820138211382213823138241382513826138271382813829138301383113832138331383413835138361383713838138391384013841138421384313844138451384613847138481384913850138511385213853138541385513856138571385813859138601386113862138631386413865138661386713868138691387013871138721387313874138751387613877138781387913880138811388213883138841388513886138871388813889138901389113892138931389413895138961389713898138991390013901139021390313904139051390613907139081390913910139111391213913139141391513916139171391813919139201392113922139231392413925139261392713928139291393013931139321393313934139351393613937139381393913940139411394213943139441394513946139471394813949139501395113952139531395413955139561395713958139591396013961139621396313964139651396613967139681396913970139711397213973139741397513976139771397813979139801398113982139831398413985139861398713988139891399013991139921399313994139951399613997139981399914000140011400214003140041400514006140071400814009140101401114012140131401414015140161401714018140191402014021140221402314024140251402614027140281402914030140311403214033140341403514036140371403814039140401404114042140431404414045140461404714048140491405014051140521405314054140551405614057140581405914060140611406214063140641406514066140671406814069140701407114072140731407414075140761407714078140791408014081140821408314084140851408614087140881408914090140911409214093140941409514096140971409814099141001410114102141031410414105141061410714108141091411014111141121411314114141151411614117141181411914120141211412214123141241412514126141271412814129141301413114132141331413414135141361413714138141391414014141141421414314144141451414614147141481414914150141511415214153141541415514156141571415814159141601416114162141631416414165141661416714168141691417014171141721417314174141751417614177141781417914180141811418214183141841418514186141871418814189141901419114192141931419414195141961419714198141991420014201142021420314204142051420614207142081420914210142111421214213142141421514216142171421814219142201422114222142231422414225142261422714228142291423014231142321423314234142351423614237142381423914240142411424214243142441424514246142471424814249142501425114252142531425414255142561425714258142591426014261142621426314264142651426614267142681426914270142711427214273142741427514276142771427814279142801428114282142831428414285142861428714288142891429014291142921429314294142951429614297142981429914300143011430214303143041430514306143071430814309143101431114312143131431414315143161431714318143191432014321143221432314324143251432614327143281432914330143311433214333143341433514336143371433814339143401434114342143431434414345143461434714348143491435014351143521435314354143551435614357143581435914360143611436214363143641436514366143671436814369143701437114372143731437414375143761437714378143791438014381143821438314384143851438614387143881438914390143911439214393143941439514396143971439814399144001440114402144031440414405144061440714408144091441014411144121441314414144151441614417144181441914420144211442214423144241442514426144271442814429144301443114432144331443414435144361443714438144391444014441144421444314444144451444614447144481444914450144511445214453144541445514456144571445814459144601446114462144631446414465144661446714468144691447014471144721447314474144751447614477144781447914480144811448214483144841448514486144871448814489144901449114492144931449414495144961449714498144991450014501145021450314504145051450614507145081450914510145111451214513145141451514516145171451814519145201452114522145231452414525145261452714528145291453014531145321453314534145351453614537145381453914540145411454214543145441454514546145471454814549145501455114552145531455414555145561455714558145591456014561145621456314564145651456614567145681456914570145711457214573145741457514576145771457814579145801458114582145831458414585145861458714588145891459014591145921459314594145951459614597145981459914600146011460214603146041460514606146071460814609146101461114612146131461414615146161461714618146191462014621146221462314624146251462614627146281462914630146311463214633146341463514636146371463814639146401464114642146431464414645146461464714648146491465014651146521465314654146551465614657146581465914660146611466214663146641466514666146671466814669146701467114672146731467414675146761467714678146791468014681146821468314684146851468614687146881468914690146911469214693146941469514696146971469814699147001470114702147031470414705147061470714708147091471014711147121471314714147151471614717147181471914720147211472214723147241472514726147271472814729147301473114732147331473414735147361473714738147391474014741147421474314744147451474614747147481474914750147511475214753147541475514756147571475814759147601476114762147631476414765147661476714768147691477014771147721477314774147751477614777147781477914780147811478214783147841478514786147871478814789147901479114792147931479414795147961479714798147991480014801148021480314804148051480614807148081480914810148111481214813148141481514816148171481814819148201482114822148231482414825148261482714828148291483014831148321483314834148351483614837148381483914840148411484214843148441484514846148471484814849148501485114852148531485414855148561485714858148591486014861148621486314864148651486614867148681486914870148711487214873148741487514876148771487814879148801488114882148831488414885148861488714888148891489014891148921489314894148951489614897148981489914900149011490214903149041490514906149071490814909149101491114912149131491414915149161491714918149191492014921149221492314924149251492614927149281492914930149311493214933149341493514936149371493814939149401494114942149431494414945149461494714948149491495014951149521495314954149551495614957149581495914960149611496214963149641496514966149671496814969149701497114972149731497414975149761497714978149791498014981149821498314984149851498614987149881498914990149911499214993149941499514996149971499814999150001500115002150031500415005150061500715008150091501015011150121501315014150151501615017150181501915020150211502215023150241502515026150271502815029150301503115032150331503415035150361503715038150391504015041150421504315044150451504615047150481504915050150511505215053150541505515056150571505815059150601506115062150631506415065150661506715068150691507015071150721507315074150751507615077150781507915080150811508215083150841508515086150871508815089150901509115092150931509415095150961509715098150991510015101151021510315104151051510615107151081510915110151111511215113151141511515116151171511815119151201512115122151231512415125151261512715128151291513015131151321513315134151351513615137151381513915140151411514215143151441514515146151471514815149151501515115152151531515415155151561515715158151591516015161151621516315164151651516615167151681516915170151711517215173151741517515176151771517815179151801518115182151831518415185151861518715188151891519015191151921519315194151951519615197151981519915200152011520215203152041520515206152071520815209152101521115212152131521415215152161521715218152191522015221152221522315224152251522615227152281522915230152311523215233152341523515236152371523815239152401524115242152431524415245152461524715248152491525015251152521525315254152551525615257152581525915260152611526215263152641526515266152671526815269152701527115272152731527415275152761527715278152791528015281152821528315284152851528615287152881528915290152911529215293152941529515296152971529815299153001530115302153031530415305153061530715308153091531015311153121531315314153151531615317153181531915320153211532215323153241532515326153271532815329153301533115332153331533415335153361533715338153391534015341153421534315344153451534615347153481534915350153511535215353153541535515356153571535815359153601536115362153631536415365153661536715368153691537015371153721537315374153751537615377153781537915380153811538215383153841538515386153871538815389153901539115392153931539415395153961539715398153991540015401154021540315404154051540615407154081540915410154111541215413154141541515416154171541815419154201542115422154231542415425154261542715428154291543015431154321543315434154351543615437154381543915440154411544215443154441544515446154471544815449154501545115452154531545415455154561545715458154591546015461154621546315464154651546615467154681546915470154711547215473154741547515476154771547815479154801548115482154831548415485154861548715488154891549015491154921549315494154951549615497154981549915500155011550215503155041550515506155071550815509155101551115512155131551415515155161551715518155191552015521155221552315524155251552615527155281552915530155311553215533155341553515536155371553815539155401554115542155431554415545155461554715548155491555015551155521555315554155551555615557155581555915560155611556215563155641556515566155671556815569155701557115572155731557415575155761557715578155791558015581155821558315584155851558615587155881558915590155911559215593155941559515596155971559815599156001560115602156031560415605156061560715608156091561015611156121561315614156151561615617156181561915620156211562215623156241562515626156271562815629156301563115632156331563415635156361563715638156391564015641156421564315644156451564615647156481564915650156511565215653156541565515656156571565815659156601566115662156631566415665156661566715668156691567015671156721567315674156751567615677156781567915680156811568215683156841568515686156871568815689156901569115692156931569415695156961569715698156991570015701157021570315704157051570615707157081570915710157111571215713157141571515716157171571815719157201572115722157231572415725157261572715728157291573015731157321573315734157351573615737157381573915740157411574215743157441574515746157471574815749157501575115752157531575415755157561575715758157591576015761157621576315764157651576615767157681576915770157711577215773157741577515776157771577815779157801578115782157831578415785157861578715788157891579015791157921579315794157951579615797157981579915800158011580215803158041580515806158071580815809158101581115812158131581415815158161581715818158191582015821158221582315824158251582615827158281582915830158311583215833158341583515836158371583815839158401584115842158431584415845158461584715848158491585015851158521585315854158551585615857158581585915860158611586215863158641586515866158671586815869158701587115872158731587415875158761587715878158791588015881158821588315884158851588615887158881588915890158911589215893158941589515896158971589815899159001590115902159031590415905159061590715908159091591015911159121591315914159151591615917159181591915920159211592215923159241592515926159271592815929159301593115932159331593415935159361593715938159391594015941159421594315944159451594615947159481594915950159511595215953159541595515956159571595815959159601596115962159631596415965159661596715968159691597015971159721597315974159751597615977159781597915980159811598215983159841598515986159871598815989159901599115992159931599415995159961599715998159991600016001160021600316004160051600616007160081600916010160111601216013160141601516016160171601816019160201602116022160231602416025160261602716028160291603016031160321603316034160351603616037160381603916040160411604216043160441604516046160471604816049160501605116052160531605416055160561605716058160591606016061160621606316064160651606616067160681606916070160711607216073160741607516076160771607816079160801608116082160831608416085160861608716088160891609016091160921609316094160951609616097160981609916100161011610216103161041610516106161071610816109161101611116112161131611416115161161611716118161191612016121161221612316124161251612616127161281612916130161311613216133161341613516136161371613816139161401614116142161431614416145161461614716148161491615016151161521615316154161551615616157161581615916160161611616216163161641616516166161671616816169161701617116172161731617416175161761617716178161791618016181161821618316184161851618616187161881618916190161911619216193161941619516196161971619816199162001620116202162031620416205162061620716208162091621016211162121621316214162151621616217162181621916220162211622216223162241622516226162271622816229162301623116232162331623416235162361623716238162391624016241162421624316244162451624616247162481624916250162511625216253162541625516256162571625816259162601626116262162631626416265162661626716268162691627016271162721627316274162751627616277162781627916280162811628216283162841628516286162871628816289162901629116292162931629416295162961629716298162991630016301163021630316304163051630616307163081630916310163111631216313163141631516316163171631816319163201632116322163231632416325163261632716328163291633016331163321633316334163351633616337163381633916340163411634216343163441634516346163471634816349163501635116352163531635416355163561635716358163591636016361163621636316364163651636616367163681636916370163711637216373163741637516376163771637816379163801638116382163831638416385163861638716388163891639016391163921639316394163951639616397163981639916400164011640216403164041640516406164071640816409164101641116412164131641416415164161641716418164191642016421164221642316424164251642616427164281642916430164311643216433164341643516436164371643816439164401644116442164431644416445164461644716448164491645016451164521645316454164551645616457164581645916460164611646216463164641646516466164671646816469164701647116472164731647416475164761647716478164791648016481164821648316484164851648616487164881648916490164911649216493164941649516496164971649816499165001650116502165031650416505165061650716508165091651016511165121651316514165151651616517165181651916520165211652216523165241652516526165271652816529165301653116532165331653416535165361653716538165391654016541165421654316544165451654616547165481654916550165511655216553165541655516556165571655816559165601656116562165631656416565165661656716568165691657016571165721657316574165751657616577165781657916580165811658216583165841658516586165871658816589165901659116592165931659416595165961659716598165991660016601166021660316604166051660616607166081660916610166111661216613166141661516616166171661816619166201662116622166231662416625166261662716628166291663016631166321663316634166351663616637166381663916640166411664216643166441664516646166471664816649166501665116652166531665416655166561665716658166591666016661166621666316664166651666616667166681666916670166711667216673166741667516676166771667816679166801668116682166831668416685166861668716688166891669016691166921669316694166951669616697166981669916700167011670216703167041670516706167071670816709167101671116712167131671416715167161671716718167191672016721167221672316724167251672616727167281672916730167311673216733167341673516736167371673816739167401674116742167431674416745167461674716748167491675016751167521675316754167551675616757167581675916760167611676216763167641676516766167671676816769167701677116772167731677416775167761677716778167791678016781167821678316784167851678616787167881678916790167911679216793167941679516796167971679816799168001680116802168031680416805168061680716808168091681016811168121681316814168151681616817168181681916820168211682216823168241682516826168271682816829168301683116832168331683416835168361683716838168391684016841168421684316844168451684616847168481684916850168511685216853168541685516856168571685816859168601686116862168631686416865168661686716868168691687016871168721687316874168751687616877168781687916880168811688216883168841688516886168871688816889168901689116892168931689416895168961689716898168991690016901169021690316904169051690616907169081690916910169111691216913169141691516916169171691816919169201692116922169231692416925169261692716928169291693016931169321693316934169351693616937169381693916940169411694216943169441694516946169471694816949169501695116952169531695416955169561695716958169591696016961169621696316964169651696616967169681696916970169711697216973169741697516976169771697816979169801698116982169831698416985169861698716988169891699016991169921699316994169951699616997169981699917000170011700217003170041700517006170071700817009170101701117012170131701417015170161701717018170191702017021170221702317024170251702617027170281702917030170311703217033170341703517036170371703817039170401704117042170431704417045170461704717048170491705017051170521705317054170551705617057170581705917060170611706217063170641706517066170671706817069170701707117072170731707417075170761707717078170791708017081170821708317084170851708617087170881708917090170911709217093170941709517096170971709817099171001710117102171031710417105171061710717108171091711017111171121711317114171151711617117171181711917120171211712217123171241712517126171271712817129171301713117132171331713417135171361713717138171391714017141171421714317144171451714617147171481714917150171511715217153171541715517156171571715817159171601716117162171631716417165171661716717168171691717017171171721717317174171751717617177171781717917180171811718217183171841718517186171871718817189171901719117192171931719417195171961719717198171991720017201172021720317204172051720617207172081720917210172111721217213172141721517216172171721817219172201722117222172231722417225172261722717228172291723017231172321723317234172351723617237172381723917240172411724217243172441724517246172471724817249172501725117252172531725417255172561725717258172591726017261172621726317264172651726617267172681726917270172711727217273172741727517276172771727817279172801728117282172831728417285172861728717288172891729017291172921729317294172951729617297172981729917300173011730217303173041730517306173071730817309173101731117312173131731417315173161731717318173191732017321173221732317324173251732617327173281732917330173311733217333173341733517336173371733817339173401734117342173431734417345173461734717348173491735017351173521735317354173551735617357173581735917360173611736217363173641736517366173671736817369173701737117372173731737417375173761737717378173791738017381173821738317384173851738617387173881738917390173911739217393173941739517396173971739817399174001740117402174031740417405174061740717408174091741017411174121741317414174151741617417174181741917420174211742217423174241742517426174271742817429174301743117432174331743417435174361743717438174391744017441174421744317444174451744617447174481744917450174511745217453174541745517456174571745817459174601746117462174631746417465174661746717468174691747017471174721747317474174751747617477174781747917480174811748217483174841748517486174871748817489174901749117492174931749417495174961749717498174991750017501175021750317504175051750617507175081750917510175111751217513175141751517516175171751817519175201752117522175231752417525175261752717528175291753017531175321753317534175351753617537175381753917540175411754217543175441754517546175471754817549175501755117552175531755417555175561755717558175591756017561175621756317564175651756617567175681756917570175711757217573175741757517576175771757817579175801758117582175831758417585175861758717588175891759017591175921759317594175951759617597175981759917600176011760217603176041760517606176071760817609176101761117612176131761417615176161761717618176191762017621176221762317624176251762617627176281762917630176311763217633176341763517636176371763817639176401764117642176431764417645176461764717648176491765017651176521765317654176551765617657176581765917660176611766217663176641766517666176671766817669176701767117672176731767417675176761767717678176791768017681176821768317684176851768617687176881768917690176911769217693176941769517696176971769817699177001770117702177031770417705177061770717708177091771017711177121771317714177151771617717177181771917720177211772217723177241772517726177271772817729177301773117732177331773417735177361773717738177391774017741177421774317744177451774617747177481774917750177511775217753177541775517756177571775817759177601776117762177631776417765177661776717768177691777017771177721777317774177751777617777177781777917780177811778217783177841778517786177871778817789177901779117792177931779417795177961779717798177991780017801178021780317804178051780617807178081780917810178111781217813178141781517816178171781817819178201782117822178231782417825178261782717828178291783017831178321783317834178351783617837178381783917840178411784217843178441784517846178471784817849178501785117852178531785417855178561785717858178591786017861178621786317864178651786617867178681786917870178711787217873178741787517876178771787817879178801788117882178831788417885178861788717888178891789017891178921789317894178951789617897178981789917900179011790217903179041790517906179071790817909179101791117912179131791417915179161791717918179191792017921179221792317924179251792617927179281792917930179311793217933179341793517936179371793817939179401794117942179431794417945179461794717948179491795017951179521795317954179551795617957179581795917960179611796217963179641796517966179671796817969179701797117972179731797417975179761797717978179791798017981179821798317984179851798617987179881798917990179911799217993179941799517996179971799817999180001800118002180031800418005180061800718008180091801018011180121801318014180151801618017180181801918020180211802218023180241802518026180271802818029180301803118032180331803418035180361803718038180391804018041180421804318044180451804618047180481804918050180511805218053180541805518056180571805818059180601806118062180631806418065180661806718068180691807018071180721807318074180751807618077180781807918080180811808218083180841808518086180871808818089180901809118092180931809418095180961809718098180991810018101181021810318104181051810618107181081810918110181111811218113181141811518116181171811818119181201812118122181231812418125181261812718128181291813018131181321813318134181351813618137181381813918140181411814218143181441814518146181471814818149181501815118152181531815418155181561815718158181591816018161181621816318164181651816618167181681816918170181711817218173181741817518176181771817818179181801818118182181831818418185181861818718188181891819018191181921819318194181951819618197181981819918200182011820218203182041820518206182071820818209182101821118212182131821418215182161821718218182191822018221182221822318224182251822618227182281822918230182311823218233182341823518236182371823818239182401824118242182431824418245182461824718248182491825018251182521825318254182551825618257182581825918260182611826218263182641826518266182671826818269182701827118272182731827418275182761827718278182791828018281182821828318284182851828618287182881828918290182911829218293182941829518296182971829818299183001830118302183031830418305183061830718308183091831018311183121831318314183151831618317183181831918320183211832218323183241832518326183271832818329183301833118332183331833418335183361833718338183391834018341183421834318344183451834618347183481834918350183511835218353183541835518356183571835818359183601836118362183631836418365183661836718368183691837018371183721837318374183751837618377183781837918380183811838218383183841838518386183871838818389183901839118392183931839418395183961839718398183991840018401184021840318404184051840618407184081840918410184111841218413184141841518416184171841818419184201842118422184231842418425184261842718428184291843018431184321843318434184351843618437184381843918440184411844218443184441844518446184471844818449184501845118452184531845418455184561845718458184591846018461184621846318464184651846618467184681846918470184711847218473184741847518476184771847818479184801848118482184831848418485184861848718488184891849018491184921849318494184951849618497184981849918500185011850218503185041850518506185071850818509185101851118512185131851418515185161851718518185191852018521185221852318524185251852618527185281852918530185311853218533185341853518536185371853818539185401854118542185431854418545185461854718548185491855018551185521855318554185551855618557185581855918560185611856218563185641856518566185671856818569185701857118572185731857418575185761857718578185791858018581185821858318584185851858618587185881858918590185911859218593185941859518596185971859818599186001860118602186031860418605186061860718608186091861018611186121861318614186151861618617186181861918620186211862218623186241862518626186271862818629186301863118632186331863418635186361863718638186391864018641186421864318644186451864618647186481864918650186511865218653186541865518656186571865818659186601866118662186631866418665186661866718668186691867018671186721867318674186751867618677186781867918680186811868218683186841868518686186871868818689186901869118692186931869418695186961869718698186991870018701187021870318704187051870618707187081870918710187111871218713187141871518716187171871818719187201872118722187231872418725187261872718728187291873018731187321873318734187351873618737187381873918740187411874218743187441874518746187471874818749187501875118752187531875418755187561875718758187591876018761187621876318764187651876618767187681876918770187711877218773187741877518776187771877818779187801878118782187831878418785187861878718788187891879018791187921879318794187951879618797187981879918800188011880218803188041880518806188071880818809188101881118812188131881418815188161881718818188191882018821188221882318824188251882618827188281882918830188311883218833188341883518836188371883818839188401884118842188431884418845188461884718848188491885018851188521885318854188551885618857188581885918860188611886218863188641886518866188671886818869188701887118872188731887418875188761887718878188791888018881188821888318884188851888618887188881888918890188911889218893188941889518896188971889818899189001890118902189031890418905189061890718908189091891018911189121891318914189151891618917189181891918920189211892218923189241892518926189271892818929189301893118932189331893418935189361893718938189391894018941189421894318944189451894618947189481894918950189511895218953189541895518956189571895818959189601896118962189631896418965189661896718968189691897018971189721897318974189751897618977189781897918980189811898218983189841898518986189871898818989189901899118992189931899418995189961899718998189991900019001190021900319004190051900619007190081900919010190111901219013190141901519016190171901819019190201902119022190231902419025190261902719028190291903019031190321903319034190351903619037190381903919040190411904219043190441904519046190471904819049190501905119052190531905419055190561905719058190591906019061190621906319064190651906619067190681906919070190711907219073190741907519076190771907819079190801908119082190831908419085190861908719088190891909019091190921909319094190951909619097190981909919100191011910219103191041910519106191071910819109191101911119112191131911419115191161911719118191191912019121191221912319124191251912619127191281912919130191311913219133191341913519136191371913819139191401914119142191431914419145191461914719148191491915019151191521915319154191551915619157191581915919160191611916219163191641916519166191671916819169191701917119172191731917419175191761917719178191791918019181191821918319184191851918619187191881918919190191911919219193191941919519196191971919819199192001920119202192031920419205192061920719208192091921019211192121921319214192151921619217192181921919220192211922219223192241922519226192271922819229192301923119232192331923419235192361923719238192391924019241192421924319244192451924619247192481924919250192511925219253192541925519256192571925819259192601926119262192631926419265192661926719268192691927019271192721927319274192751927619277192781927919280192811928219283192841928519286192871928819289192901929119292192931929419295192961929719298192991930019301193021930319304193051930619307193081930919310193111931219313193141931519316193171931819319193201932119322193231932419325193261932719328193291933019331193321933319334193351933619337193381933919340193411934219343193441934519346193471934819349193501935119352193531935419355193561935719358193591936019361193621936319364193651936619367193681936919370193711937219373193741937519376193771937819379193801938119382193831938419385193861938719388193891939019391193921939319394193951939619397193981939919400194011940219403194041940519406194071940819409194101941119412194131941419415194161941719418194191942019421194221942319424194251942619427194281942919430194311943219433194341943519436194371943819439194401944119442194431944419445194461944719448194491945019451194521945319454194551945619457194581945919460194611946219463194641946519466194671946819469194701947119472194731947419475194761947719478194791948019481194821948319484194851948619487194881948919490194911949219493194941949519496194971949819499195001950119502195031950419505195061950719508195091951019511195121951319514195151951619517195181951919520195211952219523195241952519526195271952819529195301953119532195331953419535195361953719538195391954019541195421954319544195451954619547195481954919550195511955219553195541955519556195571955819559195601956119562195631956419565195661956719568195691957019571195721957319574195751957619577195781957919580195811958219583195841958519586195871958819589195901959119592195931959419595195961959719598195991960019601196021960319604196051960619607196081960919610196111961219613196141961519616196171961819619196201962119622196231962419625196261962719628196291963019631196321963319634196351963619637196381963919640196411964219643196441964519646196471964819649196501965119652196531965419655196561965719658196591966019661196621966319664196651966619667196681966919670196711967219673196741967519676196771967819679196801968119682196831968419685196861968719688196891969019691196921969319694196951969619697196981969919700197011970219703197041970519706197071970819709197101971119712197131971419715197161971719718197191972019721197221972319724197251972619727197281972919730197311973219733197341973519736197371973819739197401974119742197431974419745197461974719748197491975019751197521975319754197551975619757197581975919760197611976219763197641976519766197671976819769197701977119772197731977419775197761977719778197791978019781197821978319784197851978619787197881978919790197911979219793197941979519796197971979819799198001980119802198031980419805198061980719808198091981019811198121981319814198151981619817198181981919820198211982219823198241982519826198271982819829198301983119832198331983419835198361983719838198391984019841198421984319844198451984619847198481984919850198511985219853198541985519856198571985819859198601986119862198631986419865198661986719868198691987019871198721987319874198751987619877198781987919880198811988219883198841988519886198871988819889198901989119892198931989419895198961989719898198991990019901199021990319904199051990619907199081990919910199111991219913199141991519916199171991819919199201992119922199231992419925199261992719928199291993019931199321993319934199351993619937199381993919940199411994219943199441994519946199471994819949199501995119952199531995419955199561995719958199591996019961199621996319964199651996619967199681996919970199711997219973199741997519976199771997819979199801998119982199831998419985199861998719988199891999019991199921999319994199951999619997199981999920000200012000220003200042000520006200072000820009200102001120012200132001420015200162001720018200192002020021200222002320024200252002620027200282002920030200312003220033200342003520036200372003820039200402004120042200432004420045200462004720048200492005020051200522005320054200552005620057200582005920060200612006220063200642006520066200672006820069200702007120072200732007420075200762007720078200792008020081200822008320084200852008620087200882008920090200912009220093200942009520096200972009820099201002010120102201032010420105201062010720108201092011020111201122011320114201152011620117201182011920120201212012220123201242012520126201272012820129201302013120132201332013420135201362013720138201392014020141201422014320144201452014620147201482014920150201512015220153201542015520156201572015820159201602016120162201632016420165201662016720168201692017020171201722017320174201752017620177201782017920180201812018220183201842018520186201872018820189201902019120192201932019420195201962019720198201992020020201202022020320204202052020620207202082020920210202112021220213202142021520216202172021820219202202022120222202232022420225202262022720228202292023020231202322023320234202352023620237202382023920240202412024220243202442024520246202472024820249202502025120252202532025420255202562025720258202592026020261202622026320264202652026620267202682026920270202712027220273202742027520276202772027820279202802028120282202832028420285202862028720288202892029020291202922029320294202952029620297202982029920300203012030220303203042030520306203072030820309203102031120312203132031420315203162031720318203192032020321203222032320324203252032620327203282032920330203312033220333203342033520336203372033820339203402034120342203432034420345203462034720348203492035020351203522035320354203552035620357203582035920360203612036220363203642036520366203672036820369203702037120372203732037420375203762037720378203792038020381203822038320384203852038620387203882038920390203912039220393203942039520396203972039820399204002040120402204032040420405204062040720408204092041020411204122041320414204152041620417204182041920420204212042220423204242042520426204272042820429204302043120432204332043420435204362043720438204392044020441204422044320444204452044620447204482044920450204512045220453204542045520456204572045820459204602046120462204632046420465204662046720468204692047020471204722047320474204752047620477204782047920480204812048220483204842048520486204872048820489204902049120492204932049420495204962049720498204992050020501205022050320504205052050620507205082050920510205112051220513205142051520516205172051820519205202052120522205232052420525205262052720528205292053020531205322053320534205352053620537205382053920540205412054220543205442054520546205472054820549205502055120552205532055420555205562055720558205592056020561205622056320564205652056620567205682056920570205712057220573205742057520576205772057820579205802058120582205832058420585205862058720588205892059020591205922059320594205952059620597205982059920600206012060220603206042060520606206072060820609206102061120612206132061420615206162061720618206192062020621206222062320624206252062620627206282062920630206312063220633206342063520636206372063820639206402064120642206432064420645206462064720648206492065020651206522065320654206552065620657206582065920660206612066220663206642066520666206672066820669206702067120672206732067420675206762067720678206792068020681206822068320684206852068620687206882068920690206912069220693206942069520696206972069820699207002070120702207032070420705207062070720708207092071020711207122071320714207152071620717207182071920720207212072220723207242072520726207272072820729207302073120732207332073420735207362073720738207392074020741207422074320744207452074620747207482074920750207512075220753207542075520756207572075820759207602076120762207632076420765207662076720768207692077020771207722077320774207752077620777207782077920780207812078220783207842078520786207872078820789207902079120792207932079420795207962079720798207992080020801208022080320804208052080620807208082080920810208112081220813208142081520816208172081820819208202082120822208232082420825208262082720828208292083020831208322083320834208352083620837208382083920840208412084220843208442084520846208472084820849208502085120852208532085420855208562085720858208592086020861208622086320864208652086620867208682086920870208712087220873208742087520876208772087820879208802088120882208832088420885208862088720888208892089020891208922089320894208952089620897208982089920900209012090220903209042090520906209072090820909209102091120912209132091420915209162091720918209192092020921209222092320924209252092620927209282092920930209312093220933209342093520936209372093820939209402094120942209432094420945209462094720948209492095020951209522095320954209552095620957209582095920960209612096220963209642096520966209672096820969209702097120972209732097420975209762097720978209792098020981209822098320984209852098620987209882098920990209912099220993209942099520996209972099820999210002100121002210032100421005210062100721008210092101021011210122101321014210152101621017210182101921020210212102221023210242102521026210272102821029210302103121032210332103421035210362103721038210392104021041210422104321044210452104621047210482104921050210512105221053210542105521056210572105821059210602106121062210632106421065210662106721068210692107021071210722107321074210752107621077210782107921080210812108221083210842108521086210872108821089210902109121092210932109421095210962109721098210992110021101211022110321104211052110621107211082110921110211112111221113211142111521116211172111821119211202112121122211232112421125211262112721128211292113021131211322113321134211352113621137211382113921140211412114221143211442114521146211472114821149211502115121152211532115421155211562115721158211592116021161211622116321164211652116621167211682116921170211712117221173211742117521176211772117821179211802118121182211832118421185211862118721188211892119021191211922119321194211952119621197211982119921200212012120221203212042120521206212072120821209212102121121212212132121421215212162121721218212192122021221212222122321224212252122621227212282122921230212312123221233212342123521236212372123821239212402124121242212432124421245212462124721248212492125021251212522125321254212552125621257212582125921260212612126221263212642126521266212672126821269212702127121272212732127421275212762127721278212792128021281212822128321284212852128621287212882128921290212912129221293212942129521296212972129821299213002130121302213032130421305213062130721308213092131021311213122131321314213152131621317213182131921320213212132221323213242132521326213272132821329213302133121332213332133421335213362133721338213392134021341213422134321344213452134621347213482134921350213512135221353213542135521356213572135821359213602136121362213632136421365213662136721368213692137021371213722137321374213752137621377213782137921380213812138221383213842138521386213872138821389213902139121392213932139421395213962139721398213992140021401214022140321404214052140621407214082140921410214112141221413214142141521416214172141821419214202142121422214232142421425214262142721428214292143021431214322143321434214352143621437214382143921440214412144221443214442144521446214472144821449214502145121452214532145421455214562145721458214592146021461214622146321464214652146621467214682146921470214712147221473214742147521476214772147821479214802148121482214832148421485214862148721488214892149021491214922149321494214952149621497214982149921500215012150221503215042150521506215072150821509215102151121512215132151421515215162151721518215192152021521215222152321524215252152621527215282152921530215312153221533215342153521536215372153821539215402154121542215432154421545215462154721548215492155021551215522155321554215552155621557215582155921560215612156221563215642156521566215672156821569215702157121572215732157421575215762157721578215792158021581215822158321584215852158621587215882158921590215912159221593215942159521596215972159821599216002160121602216032160421605216062160721608216092161021611216122161321614216152161621617216182161921620216212162221623216242162521626216272162821629216302163121632216332163421635216362163721638216392164021641216422164321644216452164621647216482164921650216512165221653216542165521656216572165821659216602166121662216632166421665216662166721668216692167021671216722167321674216752167621677216782167921680216812168221683216842168521686216872168821689216902169121692216932169421695216962169721698216992170021701217022170321704217052170621707217082170921710217112171221713217142171521716217172171821719217202172121722217232172421725217262172721728217292173021731217322173321734217352173621737217382173921740217412174221743217442174521746217472174821749217502175121752217532175421755217562175721758217592176021761217622176321764217652176621767217682176921770217712177221773217742177521776217772177821779217802178121782217832178421785217862178721788217892179021791217922179321794217952179621797217982179921800218012180221803218042180521806218072180821809218102181121812218132181421815218162181721818218192182021821218222182321824218252182621827218282182921830218312183221833218342183521836218372183821839218402184121842218432184421845218462184721848218492185021851218522185321854218552185621857218582185921860218612186221863218642186521866218672186821869218702187121872218732187421875218762187721878218792188021881218822188321884218852188621887218882188921890218912189221893218942189521896218972189821899219002190121902219032190421905219062190721908219092191021911219122191321914219152191621917219182191921920219212192221923219242192521926219272192821929219302193121932219332193421935219362193721938219392194021941219422194321944219452194621947219482194921950219512195221953219542195521956219572195821959219602196121962219632196421965219662196721968219692197021971219722197321974219752197621977219782197921980219812198221983219842198521986219872198821989219902199121992219932199421995219962199721998219992200022001220022200322004220052200622007220082200922010220112201222013220142201522016220172201822019220202202122022220232202422025220262202722028220292203022031220322203322034220352203622037220382203922040220412204222043220442204522046220472204822049220502205122052220532205422055220562205722058220592206022061220622206322064220652206622067220682206922070220712207222073220742207522076220772207822079220802208122082220832208422085220862208722088220892209022091220922209322094220952209622097220982209922100221012210222103221042210522106221072210822109221102211122112221132211422115221162211722118221192212022121221222212322124221252212622127221282212922130221312213222133221342213522136221372213822139221402214122142221432214422145221462214722148221492215022151221522215322154221552215622157221582215922160221612216222163221642216522166221672216822169221702217122172221732217422175221762217722178221792218022181221822218322184221852218622187221882218922190221912219222193221942219522196221972219822199222002220122202222032220422205222062220722208222092221022211222122221322214222152221622217222182221922220222212222222223222242222522226222272222822229222302223122232222332223422235222362223722238222392224022241222422224322244222452224622247222482224922250222512225222253222542225522256222572225822259222602226122262222632226422265222662226722268222692227022271222722227322274222752227622277222782227922280222812228222283222842228522286222872228822289222902229122292222932229422295222962229722298222992230022301223022230322304223052230622307223082230922310223112231222313223142231522316223172231822319223202232122322223232232422325223262232722328223292233022331223322233322334223352233622337223382233922340223412234222343223442234522346223472234822349223502235122352223532235422355223562235722358223592236022361223622236322364223652236622367223682236922370223712237222373223742237522376223772237822379223802238122382223832238422385223862238722388223892239022391223922239322394223952239622397223982239922400224012240222403224042240522406224072240822409224102241122412224132241422415224162241722418224192242022421224222242322424224252242622427224282242922430224312243222433224342243522436224372243822439224402244122442224432244422445224462244722448224492245022451224522245322454224552245622457224582245922460224612246222463224642246522466224672246822469224702247122472224732247422475224762247722478224792248022481224822248322484224852248622487224882248922490224912249222493224942249522496224972249822499225002250122502225032250422505225062250722508225092251022511225122251322514225152251622517225182251922520225212252222523225242252522526225272252822529225302253122532225332253422535225362253722538225392254022541225422254322544225452254622547225482254922550225512255222553225542255522556225572255822559225602256122562225632256422565225662256722568225692257022571225722257322574225752257622577225782257922580225812258222583225842258522586225872258822589225902259122592225932259422595225962259722598225992260022601226022260322604226052260622607226082260922610226112261222613226142261522616226172261822619226202262122622226232262422625226262262722628226292263022631226322263322634226352263622637226382263922640226412264222643226442264522646226472264822649226502265122652226532265422655226562265722658226592266022661226622266322664226652266622667226682266922670226712267222673226742267522676226772267822679226802268122682226832268422685226862268722688226892269022691226922269322694226952269622697226982269922700227012270222703227042270522706227072270822709227102271122712227132271422715227162271722718227192272022721227222272322724227252272622727227282272922730227312273222733227342273522736227372273822739227402274122742227432274422745227462274722748227492275022751227522275322754227552275622757227582275922760227612276222763227642276522766227672276822769227702277122772227732277422775227762277722778227792278022781227822278322784227852278622787227882278922790227912279222793227942279522796227972279822799228002280122802228032280422805228062280722808228092281022811228122281322814228152281622817228182281922820228212282222823228242282522826228272282822829228302283122832228332283422835228362283722838228392284022841228422284322844228452284622847228482284922850228512285222853228542285522856228572285822859228602286122862228632286422865228662286722868228692287022871228722287322874228752287622877228782287922880228812288222883228842288522886228872288822889228902289122892228932289422895228962289722898228992290022901229022290322904229052290622907229082290922910229112291222913229142291522916229172291822919229202292122922229232292422925229262292722928229292293022931229322293322934229352293622937229382293922940229412294222943229442294522946229472294822949229502295122952229532295422955229562295722958229592296022961229622296322964229652296622967229682296922970229712297222973229742297522976229772297822979229802298122982229832298422985229862298722988229892299022991229922299322994229952299622997229982299923000230012300223003230042300523006230072300823009230102301123012230132301423015230162301723018230192302023021230222302323024230252302623027230282302923030230312303223033230342303523036230372303823039230402304123042230432304423045230462304723048230492305023051230522305323054230552305623057230582305923060230612306223063230642306523066230672306823069230702307123072230732307423075230762307723078230792308023081230822308323084230852308623087230882308923090230912309223093230942309523096230972309823099231002310123102231032310423105231062310723108231092311023111231122311323114231152311623117231182311923120231212312223123231242312523126231272312823129231302313123132231332313423135231362313723138231392314023141231422314323144231452314623147231482314923150231512315223153231542315523156231572315823159231602316123162231632316423165231662316723168231692317023171231722317323174231752317623177231782317923180231812318223183231842318523186231872318823189231902319123192231932319423195231962319723198231992320023201232022320323204232052320623207232082320923210232112321223213232142321523216232172321823219232202322123222232232322423225232262322723228232292323023231232322323323234232352323623237232382323923240232412324223243232442324523246232472324823249232502325123252232532325423255232562325723258232592326023261232622326323264232652326623267232682326923270232712327223273232742327523276232772327823279232802328123282232832328423285232862328723288232892329023291232922329323294232952329623297232982329923300233012330223303233042330523306233072330823309233102331123312233132331423315233162331723318233192332023321233222332323324233252332623327233282332923330233312333223333233342333523336233372333823339233402334123342233432334423345233462334723348233492335023351233522335323354233552335623357233582335923360233612336223363233642336523366233672336823369233702337123372233732337423375233762337723378233792338023381233822338323384233852338623387233882338923390233912339223393233942339523396233972339823399234002340123402234032340423405234062340723408234092341023411234122341323414234152341623417234182341923420234212342223423234242342523426234272342823429234302343123432234332343423435234362343723438234392344023441234422344323444234452344623447234482344923450234512345223453234542345523456234572345823459234602346123462234632346423465234662346723468234692347023471234722347323474234752347623477234782347923480234812348223483234842348523486234872348823489234902349123492234932349423495234962349723498234992350023501235022350323504235052350623507235082350923510235112351223513235142351523516235172351823519235202352123522235232352423525235262352723528235292353023531235322353323534235352353623537235382353923540235412354223543235442354523546235472354823549235502355123552235532355423555235562355723558235592356023561235622356323564235652356623567235682356923570235712357223573235742357523576235772357823579235802358123582235832358423585235862358723588235892359023591235922359323594235952359623597235982359923600236012360223603236042360523606236072360823609236102361123612236132361423615236162361723618236192362023621236222362323624236252362623627236282362923630236312363223633236342363523636236372363823639236402364123642236432364423645236462364723648236492365023651236522365323654236552365623657236582365923660236612366223663236642366523666236672366823669236702367123672236732367423675236762367723678236792368023681236822368323684236852368623687236882368923690236912369223693236942369523696236972369823699237002370123702237032370423705237062370723708237092371023711237122371323714237152371623717237182371923720237212372223723237242372523726237272372823729237302373123732237332373423735237362373723738237392374023741237422374323744237452374623747237482374923750237512375223753237542375523756237572375823759237602376123762237632376423765237662376723768237692377023771237722377323774237752377623777237782377923780237812378223783237842378523786237872378823789237902379123792237932379423795237962379723798237992380023801238022380323804238052380623807238082380923810238112381223813238142381523816238172381823819238202382123822238232382423825238262382723828238292383023831238322383323834238352383623837238382383923840238412384223843238442384523846238472384823849238502385123852238532385423855238562385723858238592386023861238622386323864238652386623867238682386923870238712387223873238742387523876238772387823879238802388123882238832388423885238862388723888238892389023891238922389323894238952389623897238982389923900239012390223903239042390523906239072390823909239102391123912239132391423915239162391723918239192392023921239222392323924239252392623927239282392923930239312393223933239342393523936239372393823939239402394123942239432394423945239462394723948239492395023951239522395323954239552395623957239582395923960239612396223963239642396523966239672396823969239702397123972239732397423975239762397723978239792398023981239822398323984239852398623987239882398923990239912399223993239942399523996239972399823999240002400124002240032400424005240062400724008240092401024011240122401324014240152401624017240182401924020240212402224023240242402524026240272402824029240302403124032240332403424035240362403724038240392404024041240422404324044240452404624047240482404924050240512405224053240542405524056240572405824059240602406124062240632406424065240662406724068240692407024071240722407324074240752407624077240782407924080240812408224083240842408524086240872408824089240902409124092240932409424095240962409724098240992410024101241022410324104241052410624107241082410924110241112411224113241142411524116241172411824119241202412124122241232412424125241262412724128241292413024131241322413324134241352413624137241382413924140241412414224143241442414524146241472414824149241502415124152241532415424155241562415724158241592416024161241622416324164241652416624167241682416924170241712417224173241742417524176241772417824179241802418124182241832418424185241862418724188241892419024191241922419324194241952419624197241982419924200242012420224203242042420524206242072420824209242102421124212242132421424215242162421724218242192422024221242222422324224242252422624227242282422924230242312423224233242342423524236242372423824239242402424124242242432424424245242462424724248242492425024251242522425324254242552425624257242582425924260242612426224263242642426524266242672426824269242702427124272242732427424275242762427724278242792428024281242822428324284242852428624287242882428924290242912429224293242942429524296242972429824299243002430124302243032430424305243062430724308243092431024311243122431324314243152431624317243182431924320243212432224323243242432524326243272432824329243302433124332243332433424335243362433724338243392434024341243422434324344243452434624347243482434924350243512435224353243542435524356243572435824359243602436124362243632436424365243662436724368243692437024371243722437324374243752437624377243782437924380243812438224383243842438524386243872438824389243902439124392243932439424395243962439724398243992440024401244022440324404244052440624407244082440924410244112441224413244142441524416244172441824419244202442124422244232442424425244262442724428244292443024431244322443324434244352443624437244382443924440244412444224443244442444524446244472444824449244502445124452244532445424455244562445724458244592446024461244622446324464244652446624467244682446924470244712447224473244742447524476244772447824479244802448124482244832448424485244862448724488244892449024491244922449324494244952449624497244982449924500245012450224503245042450524506245072450824509245102451124512245132451424515245162451724518245192452024521245222452324524245252452624527245282452924530245312453224533245342453524536245372453824539245402454124542245432454424545245462454724548245492455024551245522455324554245552455624557245582455924560245612456224563245642456524566245672456824569245702457124572245732457424575245762457724578245792458024581245822458324584245852458624587245882458924590245912459224593245942459524596245972459824599246002460124602246032460424605246062460724608246092461024611246122461324614246152461624617246182461924620246212462224623246242462524626246272462824629246302463124632246332463424635246362463724638246392464024641246422464324644246452464624647246482464924650246512465224653246542465524656246572465824659246602466124662246632466424665246662466724668246692467024671246722467324674246752467624677246782467924680246812468224683246842468524686246872468824689246902469124692246932469424695246962469724698246992470024701247022470324704247052470624707247082470924710247112471224713247142471524716247172471824719247202472124722247232472424725247262472724728247292473024731247322473324734247352473624737247382473924740247412474224743247442474524746247472474824749247502475124752247532475424755247562475724758247592476024761247622476324764247652476624767247682476924770247712477224773247742477524776247772477824779247802478124782247832478424785247862478724788247892479024791247922479324794247952479624797247982479924800248012480224803248042480524806248072480824809248102481124812248132481424815248162481724818248192482024821248222482324824248252482624827248282482924830248312483224833248342483524836248372483824839248402484124842248432484424845248462484724848248492485024851248522485324854248552485624857248582485924860248612486224863248642486524866248672486824869248702487124872248732487424875248762487724878248792488024881248822488324884248852488624887248882488924890248912489224893248942489524896248972489824899249002490124902249032490424905249062490724908249092491024911249122491324914249152491624917249182491924920249212492224923249242492524926249272492824929249302493124932249332493424935249362493724938249392494024941249422494324944249452494624947249482494924950249512495224953249542495524956249572495824959249602496124962249632496424965249662496724968249692497024971249722497324974249752497624977249782497924980249812498224983249842498524986249872498824989249902499124992249932499424995249962499724998249992500025001250022500325004250052500625007250082500925010250112501225013250142501525016250172501825019250202502125022250232502425025250262502725028250292503025031250322503325034250352503625037250382503925040250412504225043250442504525046250472504825049250502505125052250532505425055250562505725058250592506025061250622506325064250652506625067250682506925070250712507225073250742507525076250772507825079250802508125082250832508425085250862508725088250892509025091250922509325094250952509625097250982509925100251012510225103251042510525106251072510825109251102511125112251132511425115251162511725118251192512025121251222512325124251252512625127251282512925130251312513225133251342513525136251372513825139251402514125142251432514425145251462514725148251492515025151251522515325154251552515625157251582515925160251612516225163251642516525166251672516825169251702517125172251732517425175251762517725178251792518025181251822518325184251852518625187251882518925190251912519225193251942519525196251972519825199252002520125202252032520425205252062520725208252092521025211252122521325214252152521625217252182521925220252212522225223252242522525226252272522825229252302523125232252332523425235252362523725238252392524025241252422524325244252452524625247252482524925250252512525225253252542525525256252572525825259252602526125262252632526425265252662526725268252692527025271252722527325274252752527625277252782527925280252812528225283252842528525286252872528825289252902529125292252932529425295252962529725298252992530025301253022530325304253052530625307253082530925310253112531225313253142531525316253172531825319253202532125322253232532425325253262532725328253292533025331253322533325334253352533625337253382533925340253412534225343253442534525346253472534825349253502535125352253532535425355253562535725358253592536025361253622536325364253652536625367253682536925370253712537225373253742537525376253772537825379253802538125382253832538425385253862538725388253892539025391253922539325394253952539625397253982539925400254012540225403254042540525406254072540825409254102541125412254132541425415254162541725418254192542025421254222542325424254252542625427254282542925430254312543225433254342543525436254372543825439254402544125442254432544425445254462544725448254492545025451254522545325454254552545625457254582545925460254612546225463254642546525466254672546825469254702547125472254732547425475254762547725478254792548025481254822548325484254852548625487254882548925490254912549225493254942549525496254972549825499255002550125502255032550425505255062550725508255092551025511255122551325514255152551625517255182551925520255212552225523255242552525526255272552825529255302553125532255332553425535255362553725538255392554025541255422554325544255452554625547255482554925550255512555225553255542555525556255572555825559255602556125562255632556425565255662556725568255692557025571255722557325574255752557625577255782557925580255812558225583255842558525586255872558825589255902559125592255932559425595255962559725598255992560025601256022560325604256052560625607256082560925610256112561225613256142561525616256172561825619256202562125622256232562425625256262562725628256292563025631256322563325634256352563625637256382563925640256412564225643256442564525646256472564825649256502565125652256532565425655256562565725658256592566025661256622566325664256652566625667256682566925670256712567225673256742567525676256772567825679256802568125682256832568425685256862568725688256892569025691256922569325694256952569625697256982569925700257012570225703257042570525706257072570825709257102571125712257132571425715257162571725718257192572025721257222572325724257252572625727257282572925730257312573225733257342573525736257372573825739257402574125742257432574425745257462574725748257492575025751257522575325754257552575625757257582575925760257612576225763257642576525766257672576825769257702577125772257732577425775257762577725778257792578025781257822578325784257852578625787257882578925790257912579225793257942579525796257972579825799258002580125802258032580425805258062580725808258092581025811258122581325814258152581625817258182581925820258212582225823258242582525826258272582825829258302583125832258332583425835258362583725838258392584025841258422584325844258452584625847258482584925850258512585225853258542585525856258572585825859258602586125862258632586425865258662586725868258692587025871258722587325874258752587625877258782587925880258812588225883258842588525886258872588825889258902589125892258932589425895258962589725898258992590025901259022590325904259052590625907259082590925910259112591225913259142591525916259172591825919259202592125922259232592425925259262592725928259292593025931259322593325934259352593625937259382593925940259412594225943259442594525946259472594825949259502595125952259532595425955259562595725958259592596025961259622596325964259652596625967259682596925970259712597225973259742597525976259772597825979259802598125982259832598425985259862598725988259892599025991259922599325994259952599625997259982599926000260012600226003260042600526006260072600826009260102601126012260132601426015260162601726018260192602026021260222602326024260252602626027260282602926030260312603226033260342603526036260372603826039260402604126042260432604426045260462604726048260492605026051260522605326054260552605626057260582605926060260612606226063260642606526066260672606826069260702607126072260732607426075260762607726078260792608026081260822608326084260852608626087260882608926090260912609226093260942609526096260972609826099261002610126102261032610426105261062610726108261092611026111261122611326114261152611626117261182611926120261212612226123261242612526126261272612826129261302613126132261332613426135261362613726138261392614026141261422614326144261452614626147261482614926150261512615226153261542615526156261572615826159261602616126162261632616426165261662616726168261692617026171261722617326174261752617626177261782617926180261812618226183261842618526186261872618826189261902619126192261932619426195261962619726198261992620026201262022620326204262052620626207262082620926210262112621226213262142621526216262172621826219262202622126222262232622426225262262622726228262292623026231262322623326234262352623626237262382623926240262412624226243262442624526246262472624826249262502625126252262532625426255262562625726258262592626026261262622626326264262652626626267262682626926270262712627226273262742627526276262772627826279262802628126282262832628426285262862628726288262892629026291262922629326294262952629626297262982629926300263012630226303263042630526306263072630826309263102631126312263132631426315263162631726318263192632026321263222632326324263252632626327263282632926330263312633226333263342633526336263372633826339263402634126342263432634426345263462634726348263492635026351263522635326354263552635626357263582635926360263612636226363263642636526366263672636826369263702637126372263732637426375263762637726378263792638026381263822638326384263852638626387263882638926390263912639226393263942639526396263972639826399264002640126402264032640426405264062640726408264092641026411264122641326414264152641626417264182641926420264212642226423264242642526426264272642826429264302643126432264332643426435264362643726438264392644026441264422644326444264452644626447264482644926450264512645226453264542645526456264572645826459264602646126462264632646426465264662646726468264692647026471264722647326474264752647626477264782647926480264812648226483264842648526486264872648826489264902649126492264932649426495264962649726498264992650026501265022650326504265052650626507265082650926510265112651226513265142651526516265172651826519265202652126522265232652426525265262652726528265292653026531265322653326534265352653626537265382653926540265412654226543265442654526546265472654826549265502655126552265532655426555265562655726558265592656026561265622656326564265652656626567265682656926570265712657226573265742657526576265772657826579265802658126582265832658426585265862658726588265892659026591265922659326594265952659626597265982659926600266012660226603266042660526606266072660826609266102661126612266132661426615266162661726618266192662026621266222662326624266252662626627266282662926630266312663226633266342663526636266372663826639266402664126642266432664426645266462664726648266492665026651266522665326654266552665626657266582665926660266612666226663266642666526666266672666826669266702667126672266732667426675266762667726678266792668026681266822668326684266852668626687266882668926690266912669226693266942669526696266972669826699267002670126702267032670426705267062670726708267092671026711267122671326714267152671626717267182671926720267212672226723267242672526726267272672826729267302673126732267332673426735267362673726738267392674026741267422674326744267452674626747267482674926750267512675226753267542675526756267572675826759267602676126762267632676426765267662676726768267692677026771267722677326774267752677626777267782677926780267812678226783267842678526786267872678826789267902679126792267932679426795267962679726798267992680026801268022680326804268052680626807268082680926810268112681226813268142681526816268172681826819268202682126822268232682426825268262682726828268292683026831268322683326834268352683626837268382683926840268412684226843268442684526846268472684826849268502685126852268532685426855268562685726858268592686026861268622686326864268652686626867268682686926870268712687226873268742687526876268772687826879268802688126882268832688426885268862688726888268892689026891268922689326894268952689626897268982689926900269012690226903269042690526906269072690826909269102691126912269132691426915269162691726918269192692026921269222692326924269252692626927269282692926930269312693226933269342693526936269372693826939269402694126942269432694426945269462694726948269492695026951269522695326954269552695626957269582695926960269612696226963269642696526966269672696826969269702697126972269732697426975269762697726978269792698026981269822698326984269852698626987269882698926990269912699226993269942699526996269972699826999270002700127002270032700427005270062700727008270092701027011270122701327014270152701627017270182701927020270212702227023270242702527026270272702827029270302703127032270332703427035270362703727038270392704027041270422704327044270452704627047270482704927050270512705227053270542705527056270572705827059270602706127062270632706427065270662706727068270692707027071270722707327074270752707627077270782707927080270812708227083270842708527086270872708827089270902709127092270932709427095270962709727098270992710027101271022710327104271052710627107271082710927110271112711227113271142711527116271172711827119271202712127122271232712427125271262712727128271292713027131271322713327134271352713627137271382713927140271412714227143271442714527146271472714827149271502715127152271532715427155271562715727158271592716027161271622716327164271652716627167271682716927170271712717227173271742717527176271772717827179271802718127182271832718427185271862718727188271892719027191271922719327194271952719627197271982719927200272012720227203272042720527206272072720827209272102721127212272132721427215272162721727218272192722027221272222722327224272252722627227272282722927230272312723227233272342723527236272372723827239272402724127242272432724427245272462724727248272492725027251272522725327254272552725627257272582725927260272612726227263272642726527266272672726827269272702727127272272732727427275272762727727278272792728027281272822728327284272852728627287272882728927290272912729227293272942729527296272972729827299273002730127302273032730427305273062730727308273092731027311273122731327314273152731627317273182731927320273212732227323273242732527326273272732827329273302733127332273332733427335273362733727338273392734027341273422734327344273452734627347273482734927350273512735227353273542735527356273572735827359273602736127362273632736427365273662736727368273692737027371273722737327374273752737627377273782737927380273812738227383273842738527386273872738827389273902739127392273932739427395273962739727398273992740027401274022740327404274052740627407274082740927410274112741227413274142741527416274172741827419274202742127422274232742427425274262742727428274292743027431274322743327434274352743627437274382743927440274412744227443274442744527446274472744827449274502745127452274532745427455274562745727458274592746027461274622746327464274652746627467274682746927470274712747227473274742747527476274772747827479274802748127482274832748427485274862748727488274892749027491274922749327494274952749627497274982749927500275012750227503275042750527506275072750827509275102751127512275132751427515275162751727518275192752027521275222752327524275252752627527275282752927530275312753227533275342753527536275372753827539275402754127542275432754427545275462754727548275492755027551275522755327554275552755627557275582755927560275612756227563275642756527566275672756827569275702757127572275732757427575275762757727578275792758027581275822758327584275852758627587275882758927590275912759227593275942759527596275972759827599276002760127602276032760427605276062760727608276092761027611276122761327614276152761627617276182761927620276212762227623276242762527626276272762827629276302763127632276332763427635276362763727638276392764027641276422764327644276452764627647276482764927650276512765227653276542765527656276572765827659276602766127662276632766427665276662766727668276692767027671276722767327674276752767627677276782767927680276812768227683276842768527686276872768827689276902769127692276932769427695276962769727698276992770027701277022770327704277052770627707277082770927710277112771227713277142771527716277172771827719277202772127722277232772427725277262772727728277292773027731277322773327734277352773627737277382773927740277412774227743277442774527746277472774827749277502775127752277532775427755277562775727758277592776027761277622776327764277652776627767277682776927770277712777227773277742777527776277772777827779277802778127782277832778427785277862778727788277892779027791277922779327794277952779627797277982779927800278012780227803278042780527806278072780827809278102781127812278132781427815278162781727818278192782027821278222782327824278252782627827278282782927830278312783227833278342783527836278372783827839278402784127842278432784427845278462784727848278492785027851278522785327854278552785627857278582785927860278612786227863278642786527866278672786827869278702787127872278732787427875278762787727878278792788027881278822788327884278852788627887278882788927890278912789227893278942789527896278972789827899279002790127902279032790427905279062790727908279092791027911279122791327914279152791627917279182791927920279212792227923279242792527926279272792827929279302793127932279332793427935279362793727938279392794027941279422794327944279452794627947279482794927950279512795227953279542795527956279572795827959279602796127962279632796427965279662796727968279692797027971279722797327974279752797627977279782797927980279812798227983279842798527986279872798827989279902799127992279932799427995279962799727998279992800028001280022800328004280052800628007280082800928010280112801228013280142801528016280172801828019280202802128022280232802428025280262802728028280292803028031280322803328034280352803628037280382803928040280412804228043280442804528046280472804828049280502805128052280532805428055280562805728058280592806028061280622806328064280652806628067280682806928070280712807228073280742807528076280772807828079280802808128082280832808428085280862808728088280892809028091280922809328094280952809628097280982809928100281012810228103281042810528106281072810828109281102811128112281132811428115281162811728118281192812028121281222812328124281252812628127281282812928130281312813228133281342813528136281372813828139281402814128142281432814428145281462814728148281492815028151281522815328154281552815628157281582815928160281612816228163281642816528166281672816828169281702817128172281732817428175281762817728178281792818028181281822818328184281852818628187281882818928190281912819228193281942819528196281972819828199282002820128202282032820428205282062820728208282092821028211282122821328214282152821628217282182821928220282212822228223282242822528226282272822828229282302823128232282332823428235282362823728238282392824028241282422824328244282452824628247282482824928250282512825228253282542825528256282572825828259282602826128262282632826428265282662826728268282692827028271282722827328274282752827628277282782827928280282812828228283282842828528286282872828828289282902829128292282932829428295282962829728298282992830028301283022830328304283052830628307283082830928310283112831228313283142831528316283172831828319283202832128322283232832428325283262832728328283292833028331283322833328334283352833628337283382833928340283412834228343283442834528346283472834828349283502835128352283532835428355283562835728358283592836028361283622836328364283652836628367283682836928370283712837228373283742837528376283772837828379283802838128382283832838428385283862838728388283892839028391283922839328394283952839628397283982839928400284012840228403284042840528406284072840828409284102841128412284132841428415284162841728418284192842028421284222842328424284252842628427284282842928430284312843228433284342843528436284372843828439284402844128442284432844428445284462844728448284492845028451284522845328454284552845628457284582845928460284612846228463284642846528466284672846828469284702847128472284732847428475284762847728478284792848028481284822848328484284852848628487284882848928490284912849228493284942849528496284972849828499285002850128502285032850428505285062850728508285092851028511285122851328514285152851628517285182851928520285212852228523285242852528526285272852828529285302853128532285332853428535285362853728538285392854028541285422854328544285452854628547285482854928550285512855228553285542855528556285572855828559285602856128562285632856428565285662856728568285692857028571285722857328574285752857628577285782857928580285812858228583285842858528586285872858828589285902859128592285932859428595285962859728598285992860028601286022860328604286052860628607286082860928610286112861228613286142861528616286172861828619286202862128622286232862428625286262862728628286292863028631286322863328634286352863628637286382863928640286412864228643286442864528646286472864828649286502865128652286532865428655286562865728658286592866028661286622866328664286652866628667286682866928670286712867228673286742867528676286772867828679286802868128682286832868428685286862868728688286892869028691286922869328694286952869628697286982869928700287012870228703287042870528706287072870828709287102871128712287132871428715287162871728718287192872028721287222872328724287252872628727287282872928730287312873228733287342873528736287372873828739287402874128742287432874428745287462874728748287492875028751287522875328754287552875628757287582875928760287612876228763287642876528766287672876828769287702877128772287732877428775287762877728778287792878028781287822878328784287852878628787287882878928790287912879228793287942879528796287972879828799288002880128802288032880428805288062880728808288092881028811288122881328814288152881628817288182881928820288212882228823288242882528826288272882828829288302883128832288332883428835288362883728838288392884028841288422884328844288452884628847288482884928850288512885228853288542885528856288572885828859288602886128862288632886428865288662886728868288692887028871288722887328874288752887628877288782887928880288812888228883288842888528886288872888828889288902889128892288932889428895288962889728898288992890028901289022890328904289052890628907289082890928910289112891228913289142891528916289172891828919289202892128922289232892428925289262892728928289292893028931289322893328934289352893628937289382893928940289412894228943289442894528946289472894828949289502895128952289532895428955289562895728958289592896028961289622896328964289652896628967289682896928970289712897228973289742897528976289772897828979289802898128982289832898428985289862898728988289892899028991289922899328994289952899628997289982899929000290012900229003290042900529006290072900829009290102901129012290132901429015290162901729018290192902029021290222902329024290252902629027290282902929030290312903229033290342903529036290372903829039290402904129042290432904429045290462904729048290492905029051290522905329054290552905629057290582905929060290612906229063290642906529066290672906829069290702907129072290732907429075290762907729078290792908029081290822908329084290852908629087290882908929090290912909229093290942909529096290972909829099291002910129102291032910429105291062910729108291092911029111291122911329114291152911629117291182911929120291212912229123291242912529126291272912829129291302913129132291332913429135291362913729138291392914029141291422914329144291452914629147291482914929150291512915229153291542915529156291572915829159291602916129162291632916429165291662916729168291692917029171291722917329174291752917629177291782917929180291812918229183291842918529186291872918829189291902919129192291932919429195291962919729198291992920029201292022920329204292052920629207292082920929210292112921229213292142921529216292172921829219292202922129222292232922429225292262922729228292292923029231292322923329234292352923629237292382923929240292412924229243292442924529246292472924829249292502925129252292532925429255292562925729258292592926029261292622926329264292652926629267292682926929270292712927229273292742927529276292772927829279292802928129282292832928429285292862928729288292892929029291292922929329294292952929629297292982929929300293012930229303293042930529306293072930829309293102931129312293132931429315293162931729318293192932029321293222932329324293252932629327293282932929330293312933229333293342933529336293372933829339293402934129342293432934429345293462934729348293492935029351293522935329354293552935629357293582935929360293612936229363293642936529366293672936829369293702937129372293732937429375293762937729378293792938029381293822938329384293852938629387293882938929390293912939229393293942939529396293972939829399294002940129402294032940429405294062940729408294092941029411294122941329414294152941629417294182941929420294212942229423294242942529426294272942829429294302943129432294332943429435294362943729438294392944029441294422944329444294452944629447294482944929450294512945229453294542945529456294572945829459294602946129462294632946429465294662946729468294692947029471294722947329474294752947629477294782947929480294812948229483294842948529486294872948829489294902949129492294932949429495294962949729498294992950029501295022950329504295052950629507295082950929510295112951229513295142951529516295172951829519295202952129522295232952429525295262952729528295292953029531295322953329534295352953629537295382953929540295412954229543295442954529546295472954829549295502955129552295532955429555295562955729558295592956029561295622956329564295652956629567295682956929570295712957229573295742957529576295772957829579295802958129582295832958429585295862958729588295892959029591295922959329594295952959629597295982959929600296012960229603296042960529606296072960829609296102961129612296132961429615296162961729618296192962029621296222962329624296252962629627296282962929630296312963229633296342963529636296372963829639296402964129642296432964429645296462964729648296492965029651296522965329654296552965629657296582965929660296612966229663296642966529666296672966829669296702967129672296732967429675296762967729678296792968029681296822968329684296852968629687296882968929690296912969229693296942969529696296972969829699297002970129702297032970429705297062970729708297092971029711297122971329714297152971629717297182971929720297212972229723297242972529726297272972829729297302973129732297332973429735297362973729738297392974029741297422974329744297452974629747297482974929750297512975229753297542975529756297572975829759297602976129762297632976429765297662976729768297692977029771297722977329774297752977629777297782977929780297812978229783297842978529786297872978829789297902979129792297932979429795297962979729798297992980029801298022980329804298052980629807298082980929810298112981229813298142981529816298172981829819298202982129822298232982429825298262982729828298292983029831298322983329834298352983629837298382983929840298412984229843298442984529846298472984829849298502985129852298532985429855298562985729858298592986029861298622986329864298652986629867298682986929870298712987229873298742987529876298772987829879298802988129882298832988429885298862988729888298892989029891298922989329894298952989629897298982989929900299012990229903299042990529906299072990829909299102991129912299132991429915299162991729918299192992029921299222992329924299252992629927299282992929930299312993229933299342993529936299372993829939299402994129942299432994429945299462994729948299492995029951299522995329954299552995629957299582995929960299612996229963299642996529966299672996829969299702997129972299732997429975299762997729978299792998029981299822998329984299852998629987299882998929990299912999229993299942999529996299972999829999300003000130002300033000430005300063000730008300093001030011300123001330014300153001630017300183001930020300213002230023300243002530026300273002830029300303003130032300333003430035300363003730038300393004030041300423004330044300453004630047300483004930050300513005230053300543005530056300573005830059300603006130062300633006430065300663006730068300693007030071300723007330074300753007630077300783007930080300813008230083300843008530086300873008830089300903009130092300933009430095300963009730098300993010030101301023010330104301053010630107301083010930110301113011230113301143011530116301173011830119301203012130122301233012430125301263012730128301293013030131301323013330134301353013630137301383013930140301413014230143301443014530146301473014830149301503015130152301533015430155301563015730158301593016030161301623016330164301653016630167301683016930170301713017230173301743017530176301773017830179301803018130182301833018430185301863018730188301893019030191301923019330194301953019630197301983019930200302013020230203302043020530206302073020830209302103021130212302133021430215302163021730218302193022030221302223022330224302253022630227302283022930230302313023230233302343023530236302373023830239302403024130242302433024430245302463024730248302493025030251302523025330254302553025630257302583025930260302613026230263302643026530266302673026830269302703027130272302733027430275302763027730278302793028030281302823028330284302853028630287302883028930290302913029230293302943029530296302973029830299303003030130302303033030430305303063030730308303093031030311303123031330314303153031630317303183031930320303213032230323303243032530326303273032830329303303033130332303333033430335303363033730338303393034030341303423034330344303453034630347303483034930350303513035230353303543035530356303573035830359303603036130362303633036430365303663036730368303693037030371303723037330374303753037630377303783037930380303813038230383303843038530386303873038830389303903039130392303933039430395303963039730398303993040030401304023040330404304053040630407304083040930410304113041230413304143041530416304173041830419304203042130422304233042430425304263042730428304293043030431304323043330434304353043630437304383043930440304413044230443304443044530446304473044830449304503045130452304533045430455304563045730458304593046030461304623046330464304653046630467304683046930470304713047230473304743047530476304773047830479304803048130482304833048430485304863048730488304893049030491304923049330494304953049630497304983049930500305013050230503305043050530506305073050830509305103051130512305133051430515305163051730518305193052030521305223052330524305253052630527305283052930530305313053230533305343053530536305373053830539305403054130542305433054430545305463054730548305493055030551305523055330554305553055630557305583055930560305613056230563305643056530566305673056830569305703057130572305733057430575305763057730578305793058030581305823058330584305853058630587305883058930590305913059230593305943059530596305973059830599306003060130602306033060430605306063060730608306093061030611306123061330614306153061630617306183061930620306213062230623306243062530626306273062830629306303063130632306333063430635306363063730638306393064030641306423064330644306453064630647306483064930650306513065230653306543065530656306573065830659306603066130662306633066430665306663066730668306693067030671306723067330674306753067630677306783067930680306813068230683306843068530686306873068830689306903069130692306933069430695306963069730698306993070030701307023070330704307053070630707307083070930710307113071230713307143071530716307173071830719307203072130722307233072430725307263072730728307293073030731307323073330734307353073630737307383073930740307413074230743307443074530746307473074830749307503075130752307533075430755307563075730758307593076030761307623076330764307653076630767307683076930770307713077230773307743077530776307773077830779307803078130782307833078430785307863078730788307893079030791307923079330794307953079630797307983079930800308013080230803308043080530806308073080830809308103081130812308133081430815308163081730818308193082030821308223082330824308253082630827308283082930830308313083230833308343083530836308373083830839308403084130842308433084430845308463084730848308493085030851308523085330854308553085630857308583085930860308613086230863308643086530866308673086830869308703087130872308733087430875308763087730878308793088030881308823088330884308853088630887308883088930890308913089230893308943089530896308973089830899309003090130902309033090430905309063090730908309093091030911309123091330914309153091630917309183091930920309213092230923309243092530926309273092830929309303093130932309333093430935309363093730938309393094030941309423094330944309453094630947309483094930950309513095230953309543095530956309573095830959309603096130962309633096430965309663096730968309693097030971309723097330974309753097630977309783097930980309813098230983309843098530986309873098830989309903099130992309933099430995309963099730998309993100031001310023100331004310053100631007310083100931010310113101231013310143101531016310173101831019310203102131022310233102431025310263102731028310293103031031310323103331034310353103631037310383103931040310413104231043310443104531046310473104831049310503105131052310533105431055310563105731058310593106031061310623106331064310653106631067310683106931070310713107231073310743107531076310773107831079310803108131082310833108431085310863108731088310893109031091310923109331094310953109631097310983109931100311013110231103311043110531106311073110831109311103111131112311133111431115311163111731118311193112031121311223112331124311253112631127311283112931130311313113231133311343113531136311373113831139311403114131142311433114431145311463114731148311493115031151311523115331154311553115631157311583115931160311613116231163311643116531166311673116831169311703117131172311733117431175311763117731178311793118031181311823118331184311853118631187311883118931190311913119231193311943119531196311973119831199312003120131202312033120431205312063120731208312093121031211312123121331214312153121631217312183121931220312213122231223312243122531226312273122831229312303123131232312333123431235312363123731238312393124031241312423124331244312453124631247312483124931250312513125231253312543125531256312573125831259312603126131262312633126431265312663126731268312693127031271312723127331274312753127631277312783127931280312813128231283312843128531286312873128831289312903129131292312933129431295312963129731298312993130031301313023130331304313053130631307313083130931310313113131231313313143131531316313173131831319313203132131322313233132431325313263132731328313293133031331313323133331334313353133631337313383133931340313413134231343313443134531346313473134831349313503135131352313533135431355313563135731358313593136031361313623136331364313653136631367313683136931370313713137231373313743137531376313773137831379313803138131382313833138431385313863138731388313893139031391313923139331394313953139631397313983139931400314013140231403314043140531406314073140831409314103141131412314133141431415314163141731418314193142031421314223142331424314253142631427314283142931430314313143231433314343143531436314373143831439314403144131442314433144431445314463144731448314493145031451314523145331454314553145631457314583145931460314613146231463314643146531466314673146831469314703147131472314733147431475314763147731478314793148031481314823148331484314853148631487314883148931490314913149231493314943149531496314973149831499315003150131502315033150431505315063150731508315093151031511315123151331514315153151631517315183151931520315213152231523315243152531526315273152831529315303153131532315333153431535315363153731538315393154031541315423154331544315453154631547315483154931550315513155231553315543155531556315573155831559315603156131562315633156431565315663156731568315693157031571315723157331574315753157631577315783157931580315813158231583315843158531586315873158831589315903159131592315933159431595315963159731598315993160031601316023160331604316053160631607316083160931610316113161231613316143161531616316173161831619316203162131622316233162431625316263162731628316293163031631316323163331634316353163631637316383163931640316413164231643316443164531646316473164831649316503165131652316533165431655316563165731658316593166031661316623166331664316653166631667316683166931670316713167231673316743167531676316773167831679316803168131682316833168431685316863168731688316893169031691316923169331694316953169631697316983169931700317013170231703317043170531706317073170831709317103171131712317133171431715317163171731718317193172031721317223172331724317253172631727317283172931730317313173231733317343173531736317373173831739317403174131742317433174431745317463174731748317493175031751317523175331754317553175631757317583175931760317613176231763317643176531766317673176831769317703177131772317733177431775317763177731778317793178031781317823178331784317853178631787317883178931790317913179231793317943179531796317973179831799318003180131802318033180431805318063180731808318093181031811318123181331814318153181631817318183181931820318213182231823318243182531826318273182831829318303183131832318333183431835318363183731838318393184031841318423184331844318453184631847318483184931850318513185231853318543185531856318573185831859318603186131862318633186431865318663186731868318693187031871318723187331874318753187631877318783187931880318813188231883318843188531886318873188831889318903189131892318933189431895318963189731898318993190031901319023190331904319053190631907319083190931910319113191231913319143191531916319173191831919319203192131922319233192431925319263192731928319293193031931319323193331934319353193631937319383193931940319413194231943319443194531946319473194831949319503195131952319533195431955319563195731958319593196031961319623196331964319653196631967319683196931970319713197231973319743197531976319773197831979319803198131982319833198431985319863198731988319893199031991319923199331994319953199631997319983199932000320013200232003320043200532006320073200832009320103201132012320133201432015320163201732018320193202032021320223202332024320253202632027320283202932030320313203232033320343203532036320373203832039320403204132042320433204432045320463204732048320493205032051320523205332054320553205632057320583205932060320613206232063320643206532066320673206832069320703207132072320733207432075320763207732078320793208032081320823208332084320853208632087320883208932090320913209232093320943209532096320973209832099321003210132102321033210432105321063210732108321093211032111321123211332114321153211632117321183211932120321213212232123321243212532126321273212832129321303213132132321333213432135321363213732138321393214032141321423214332144321453214632147321483214932150321513215232153321543215532156321573215832159321603216132162321633216432165321663216732168321693217032171321723217332174321753217632177321783217932180321813218232183321843218532186321873218832189321903219132192321933219432195321963219732198321993220032201322023220332204322053220632207322083220932210322113221232213322143221532216322173221832219322203222132222322233222432225322263222732228322293223032231322323223332234322353223632237322383223932240322413224232243322443224532246322473224832249322503225132252322533225432255322563225732258322593226032261322623226332264322653226632267322683226932270322713227232273322743227532276322773227832279322803228132282322833228432285322863228732288322893229032291322923229332294322953229632297322983229932300323013230232303323043230532306323073230832309323103231132312323133231432315323163231732318323193232032321323223232332324323253232632327323283232932330323313233232333323343233532336323373233832339323403234132342323433234432345323463234732348323493235032351323523235332354323553235632357323583235932360323613236232363323643236532366323673236832369323703237132372323733237432375323763237732378323793238032381323823238332384323853238632387323883238932390323913239232393323943239532396323973239832399324003240132402324033240432405324063240732408324093241032411324123241332414324153241632417324183241932420324213242232423324243242532426324273242832429324303243132432324333243432435324363243732438324393244032441324423244332444324453244632447324483244932450324513245232453324543245532456324573245832459324603246132462324633246432465324663246732468324693247032471324723247332474324753247632477324783247932480324813248232483324843248532486324873248832489324903249132492324933249432495324963249732498324993250032501325023250332504325053250632507325083250932510325113251232513325143251532516325173251832519325203252132522325233252432525325263252732528325293253032531325323253332534325353253632537325383253932540325413254232543325443254532546325473254832549325503255132552325533255432555325563255732558325593256032561325623256332564325653256632567325683256932570325713257232573325743257532576325773257832579325803258132582325833258432585325863258732588325893259032591325923259332594325953259632597325983259932600326013260232603326043260532606326073260832609326103261132612326133261432615326163261732618326193262032621326223262332624326253262632627326283262932630326313263232633326343263532636326373263832639326403264132642326433264432645326463264732648
  1. // Generated by the protocol buffer compiler. DO NOT EDIT!
  2. // source: google/protobuf/unittest.proto
  3. #ifndef PROTOBUF_INCLUDED_google_2fprotobuf_2funittest_2eproto
  4. #define PROTOBUF_INCLUDED_google_2fprotobuf_2funittest_2eproto
  5. #include <string>
  6. #include <google/protobuf/stubs/common.h>
  7. #if GOOGLE_PROTOBUF_VERSION < 3006001
  8. #error This file was generated by a newer version of protoc which is
  9. #error incompatible with your Protocol Buffer headers. Please update
  10. #error your headers.
  11. #endif
  12. #if 3006001 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION
  13. #error This file was generated by an older version of protoc which is
  14. #error incompatible with your Protocol Buffer headers. Please
  15. #error regenerate this file with a newer version of protoc.
  16. #endif
  17. #include <google/protobuf/io/coded_stream.h>
  18. #include <google/protobuf/arena.h>
  19. #include <google/protobuf/arenastring.h>
  20. #include <google/protobuf/generated_message_table_driven.h>
  21. #include <google/protobuf/generated_message_util.h>
  22. #include <google/protobuf/inlined_string_field.h>
  23. #include <google/protobuf/metadata.h>
  24. #include <google/protobuf/message.h>
  25. #include <google/protobuf/repeated_field.h> // IWYU pragma: export
  26. #include <google/protobuf/extension_set.h> // IWYU pragma: export
  27. #include <google/protobuf/map.h> // IWYU pragma: export
  28. #include <google/protobuf/map_entry.h>
  29. #include <google/protobuf/map_field_inl.h>
  30. #include <google/protobuf/generated_enum_reflection.h>
  31. #include <google/protobuf/service.h>
  32. #include <google/protobuf/unknown_field_set.h>
  33. #include <google/protobuf/unittest_import.pb.h>
  34. // @@protoc_insertion_point(includes)
  35. #define PROTOBUF_INTERNAL_EXPORT_protobuf_google_2fprotobuf_2funittest_2eproto
  36. namespace protobuf_google_2fprotobuf_2funittest_2eproto {
  37. // Internal implementation detail -- do not use these members.
  38. struct TableStruct {
  39. static const ::google::protobuf::internal::ParseTableField entries[];
  40. static const ::google::protobuf::internal::AuxillaryParseTableField aux[];
  41. static const ::google::protobuf::internal::ParseTable schema[91];
  42. static const ::google::protobuf::internal::FieldMetadata field_metadata[];
  43. static const ::google::protobuf::internal::SerializationTable serialization_table[];
  44. static const ::google::protobuf::uint32 offsets[];
  45. };
  46. void AddDescriptors();
  47. } // namespace protobuf_google_2fprotobuf_2funittest_2eproto
  48. namespace protobuf_unittest {
  49. class BarRequest;
  50. class BarRequestDefaultTypeInternal;
  51. extern BarRequestDefaultTypeInternal _BarRequest_default_instance_;
  52. class BarResponse;
  53. class BarResponseDefaultTypeInternal;
  54. extern BarResponseDefaultTypeInternal _BarResponse_default_instance_;
  55. class BoolMessage;
  56. class BoolMessageDefaultTypeInternal;
  57. extern BoolMessageDefaultTypeInternal _BoolMessage_default_instance_;
  58. class FooClientMessage;
  59. class FooClientMessageDefaultTypeInternal;
  60. extern FooClientMessageDefaultTypeInternal _FooClientMessage_default_instance_;
  61. class FooRequest;
  62. class FooRequestDefaultTypeInternal;
  63. extern FooRequestDefaultTypeInternal _FooRequest_default_instance_;
  64. class FooResponse;
  65. class FooResponseDefaultTypeInternal;
  66. extern FooResponseDefaultTypeInternal _FooResponse_default_instance_;
  67. class FooServerMessage;
  68. class FooServerMessageDefaultTypeInternal;
  69. extern FooServerMessageDefaultTypeInternal _FooServerMessage_default_instance_;
  70. class ForeignMessage;
  71. class ForeignMessageDefaultTypeInternal;
  72. extern ForeignMessageDefaultTypeInternal _ForeignMessage_default_instance_;
  73. class Int32Message;
  74. class Int32MessageDefaultTypeInternal;
  75. extern Int32MessageDefaultTypeInternal _Int32Message_default_instance_;
  76. class Int64Message;
  77. class Int64MessageDefaultTypeInternal;
  78. extern Int64MessageDefaultTypeInternal _Int64Message_default_instance_;
  79. class MoreBytes;
  80. class MoreBytesDefaultTypeInternal;
  81. extern MoreBytesDefaultTypeInternal _MoreBytes_default_instance_;
  82. class MoreString;
  83. class MoreStringDefaultTypeInternal;
  84. extern MoreStringDefaultTypeInternal _MoreString_default_instance_;
  85. class NestedTestAllTypes;
  86. class NestedTestAllTypesDefaultTypeInternal;
  87. extern NestedTestAllTypesDefaultTypeInternal _NestedTestAllTypes_default_instance_;
  88. class OneBytes;
  89. class OneBytesDefaultTypeInternal;
  90. extern OneBytesDefaultTypeInternal _OneBytes_default_instance_;
  91. class OneString;
  92. class OneStringDefaultTypeInternal;
  93. extern OneStringDefaultTypeInternal _OneString_default_instance_;
  94. class OptionalGroup_extension;
  95. class OptionalGroup_extensionDefaultTypeInternal;
  96. extern OptionalGroup_extensionDefaultTypeInternal _OptionalGroup_extension_default_instance_;
  97. class RepeatedGroup_extension;
  98. class RepeatedGroup_extensionDefaultTypeInternal;
  99. extern RepeatedGroup_extensionDefaultTypeInternal _RepeatedGroup_extension_default_instance_;
  100. class SparseEnumMessage;
  101. class SparseEnumMessageDefaultTypeInternal;
  102. extern SparseEnumMessageDefaultTypeInternal _SparseEnumMessage_default_instance_;
  103. class TestAllExtensions;
  104. class TestAllExtensionsDefaultTypeInternal;
  105. extern TestAllExtensionsDefaultTypeInternal _TestAllExtensions_default_instance_;
  106. class TestAllTypes;
  107. class TestAllTypesDefaultTypeInternal;
  108. extern TestAllTypesDefaultTypeInternal _TestAllTypes_default_instance_;
  109. class TestAllTypes_NestedMessage;
  110. class TestAllTypes_NestedMessageDefaultTypeInternal;
  111. extern TestAllTypes_NestedMessageDefaultTypeInternal _TestAllTypes_NestedMessage_default_instance_;
  112. class TestAllTypes_OptionalGroup;
  113. class TestAllTypes_OptionalGroupDefaultTypeInternal;
  114. extern TestAllTypes_OptionalGroupDefaultTypeInternal _TestAllTypes_OptionalGroup_default_instance_;
  115. class TestAllTypes_RepeatedGroup;
  116. class TestAllTypes_RepeatedGroupDefaultTypeInternal;
  117. extern TestAllTypes_RepeatedGroupDefaultTypeInternal _TestAllTypes_RepeatedGroup_default_instance_;
  118. class TestCamelCaseFieldNames;
  119. class TestCamelCaseFieldNamesDefaultTypeInternal;
  120. extern TestCamelCaseFieldNamesDefaultTypeInternal _TestCamelCaseFieldNames_default_instance_;
  121. class TestCommentInjectionMessage;
  122. class TestCommentInjectionMessageDefaultTypeInternal;
  123. extern TestCommentInjectionMessageDefaultTypeInternal _TestCommentInjectionMessage_default_instance_;
  124. class TestDeprecatedFields;
  125. class TestDeprecatedFieldsDefaultTypeInternal;
  126. extern TestDeprecatedFieldsDefaultTypeInternal _TestDeprecatedFields_default_instance_;
  127. class TestDeprecatedMessage;
  128. class TestDeprecatedMessageDefaultTypeInternal;
  129. extern TestDeprecatedMessageDefaultTypeInternal _TestDeprecatedMessage_default_instance_;
  130. class TestDupFieldNumber;
  131. class TestDupFieldNumberDefaultTypeInternal;
  132. extern TestDupFieldNumberDefaultTypeInternal _TestDupFieldNumber_default_instance_;
  133. class TestDupFieldNumber_Bar;
  134. class TestDupFieldNumber_BarDefaultTypeInternal;
  135. extern TestDupFieldNumber_BarDefaultTypeInternal _TestDupFieldNumber_Bar_default_instance_;
  136. class TestDupFieldNumber_Foo;
  137. class TestDupFieldNumber_FooDefaultTypeInternal;
  138. extern TestDupFieldNumber_FooDefaultTypeInternal _TestDupFieldNumber_Foo_default_instance_;
  139. class TestDynamicExtensions;
  140. class TestDynamicExtensionsDefaultTypeInternal;
  141. extern TestDynamicExtensionsDefaultTypeInternal _TestDynamicExtensions_default_instance_;
  142. class TestDynamicExtensions_DynamicMessageType;
  143. class TestDynamicExtensions_DynamicMessageTypeDefaultTypeInternal;
  144. extern TestDynamicExtensions_DynamicMessageTypeDefaultTypeInternal _TestDynamicExtensions_DynamicMessageType_default_instance_;
  145. class TestEagerMessage;
  146. class TestEagerMessageDefaultTypeInternal;
  147. extern TestEagerMessageDefaultTypeInternal _TestEagerMessage_default_instance_;
  148. class TestEmptyMessage;
  149. class TestEmptyMessageDefaultTypeInternal;
  150. extern TestEmptyMessageDefaultTypeInternal _TestEmptyMessage_default_instance_;
  151. class TestEmptyMessageWithExtensions;
  152. class TestEmptyMessageWithExtensionsDefaultTypeInternal;
  153. extern TestEmptyMessageWithExtensionsDefaultTypeInternal _TestEmptyMessageWithExtensions_default_instance_;
  154. class TestExtensionInsideTable;
  155. class TestExtensionInsideTableDefaultTypeInternal;
  156. extern TestExtensionInsideTableDefaultTypeInternal _TestExtensionInsideTable_default_instance_;
  157. class TestExtensionOrderings1;
  158. class TestExtensionOrderings1DefaultTypeInternal;
  159. extern TestExtensionOrderings1DefaultTypeInternal _TestExtensionOrderings1_default_instance_;
  160. class TestExtensionOrderings2;
  161. class TestExtensionOrderings2DefaultTypeInternal;
  162. extern TestExtensionOrderings2DefaultTypeInternal _TestExtensionOrderings2_default_instance_;
  163. class TestExtensionOrderings2_TestExtensionOrderings3;
  164. class TestExtensionOrderings2_TestExtensionOrderings3DefaultTypeInternal;
  165. extern TestExtensionOrderings2_TestExtensionOrderings3DefaultTypeInternal _TestExtensionOrderings2_TestExtensionOrderings3_default_instance_;
  166. class TestExtremeDefaultValues;
  167. class TestExtremeDefaultValuesDefaultTypeInternal;
  168. extern TestExtremeDefaultValuesDefaultTypeInternal _TestExtremeDefaultValues_default_instance_;
  169. class TestFieldOrderings;
  170. class TestFieldOrderingsDefaultTypeInternal;
  171. extern TestFieldOrderingsDefaultTypeInternal _TestFieldOrderings_default_instance_;
  172. class TestFieldOrderings_NestedMessage;
  173. class TestFieldOrderings_NestedMessageDefaultTypeInternal;
  174. extern TestFieldOrderings_NestedMessageDefaultTypeInternal _TestFieldOrderings_NestedMessage_default_instance_;
  175. class TestForeignNested;
  176. class TestForeignNestedDefaultTypeInternal;
  177. extern TestForeignNestedDefaultTypeInternal _TestForeignNested_default_instance_;
  178. class TestGroup;
  179. class TestGroupDefaultTypeInternal;
  180. extern TestGroupDefaultTypeInternal _TestGroup_default_instance_;
  181. class TestGroupExtension;
  182. class TestGroupExtensionDefaultTypeInternal;
  183. extern TestGroupExtensionDefaultTypeInternal _TestGroupExtension_default_instance_;
  184. class TestGroup_OptionalGroup;
  185. class TestGroup_OptionalGroupDefaultTypeInternal;
  186. extern TestGroup_OptionalGroupDefaultTypeInternal _TestGroup_OptionalGroup_default_instance_;
  187. class TestHugeFieldNumbers;
  188. class TestHugeFieldNumbersDefaultTypeInternal;
  189. extern TestHugeFieldNumbersDefaultTypeInternal _TestHugeFieldNumbers_default_instance_;
  190. class TestHugeFieldNumbers_OptionalGroup;
  191. class TestHugeFieldNumbers_OptionalGroupDefaultTypeInternal;
  192. extern TestHugeFieldNumbers_OptionalGroupDefaultTypeInternal _TestHugeFieldNumbers_OptionalGroup_default_instance_;
  193. class TestHugeFieldNumbers_StringStringMapEntry_DoNotUse;
  194. class TestHugeFieldNumbers_StringStringMapEntry_DoNotUseDefaultTypeInternal;
  195. extern TestHugeFieldNumbers_StringStringMapEntry_DoNotUseDefaultTypeInternal _TestHugeFieldNumbers_StringStringMapEntry_DoNotUse_default_instance_;
  196. class TestIsInitialized;
  197. class TestIsInitializedDefaultTypeInternal;
  198. extern TestIsInitializedDefaultTypeInternal _TestIsInitialized_default_instance_;
  199. class TestIsInitialized_SubMessage;
  200. class TestIsInitialized_SubMessageDefaultTypeInternal;
  201. extern TestIsInitialized_SubMessageDefaultTypeInternal _TestIsInitialized_SubMessage_default_instance_;
  202. class TestIsInitialized_SubMessage_SubGroup;
  203. class TestIsInitialized_SubMessage_SubGroupDefaultTypeInternal;
  204. extern TestIsInitialized_SubMessage_SubGroupDefaultTypeInternal _TestIsInitialized_SubMessage_SubGroup_default_instance_;
  205. class TestJsonName;
  206. class TestJsonNameDefaultTypeInternal;
  207. extern TestJsonNameDefaultTypeInternal _TestJsonName_default_instance_;
  208. class TestLazyMessage;
  209. class TestLazyMessageDefaultTypeInternal;
  210. extern TestLazyMessageDefaultTypeInternal _TestLazyMessage_default_instance_;
  211. class TestMultipleExtensionRanges;
  212. class TestMultipleExtensionRangesDefaultTypeInternal;
  213. extern TestMultipleExtensionRangesDefaultTypeInternal _TestMultipleExtensionRanges_default_instance_;
  214. class TestMutualRecursionA;
  215. class TestMutualRecursionADefaultTypeInternal;
  216. extern TestMutualRecursionADefaultTypeInternal _TestMutualRecursionA_default_instance_;
  217. class TestMutualRecursionA_SubGroup;
  218. class TestMutualRecursionA_SubGroupDefaultTypeInternal;
  219. extern TestMutualRecursionA_SubGroupDefaultTypeInternal _TestMutualRecursionA_SubGroup_default_instance_;
  220. class TestMutualRecursionA_SubMessage;
  221. class TestMutualRecursionA_SubMessageDefaultTypeInternal;
  222. extern TestMutualRecursionA_SubMessageDefaultTypeInternal _TestMutualRecursionA_SubMessage_default_instance_;
  223. class TestMutualRecursionB;
  224. class TestMutualRecursionBDefaultTypeInternal;
  225. extern TestMutualRecursionBDefaultTypeInternal _TestMutualRecursionB_default_instance_;
  226. class TestNestedExtension;
  227. class TestNestedExtensionDefaultTypeInternal;
  228. extern TestNestedExtensionDefaultTypeInternal _TestNestedExtension_default_instance_;
  229. class TestNestedExtension_OptionalGroup_extension;
  230. class TestNestedExtension_OptionalGroup_extensionDefaultTypeInternal;
  231. extern TestNestedExtension_OptionalGroup_extensionDefaultTypeInternal _TestNestedExtension_OptionalGroup_extension_default_instance_;
  232. class TestNestedMessageHasBits;
  233. class TestNestedMessageHasBitsDefaultTypeInternal;
  234. extern TestNestedMessageHasBitsDefaultTypeInternal _TestNestedMessageHasBits_default_instance_;
  235. class TestNestedMessageHasBits_NestedMessage;
  236. class TestNestedMessageHasBits_NestedMessageDefaultTypeInternal;
  237. extern TestNestedMessageHasBits_NestedMessageDefaultTypeInternal _TestNestedMessageHasBits_NestedMessage_default_instance_;
  238. class TestOneof;
  239. class TestOneofDefaultTypeInternal;
  240. extern TestOneofDefaultTypeInternal _TestOneof_default_instance_;
  241. class TestOneof2;
  242. class TestOneof2DefaultTypeInternal;
  243. extern TestOneof2DefaultTypeInternal _TestOneof2_default_instance_;
  244. class TestOneof2_FooGroup;
  245. class TestOneof2_FooGroupDefaultTypeInternal;
  246. extern TestOneof2_FooGroupDefaultTypeInternal _TestOneof2_FooGroup_default_instance_;
  247. class TestOneof2_NestedMessage;
  248. class TestOneof2_NestedMessageDefaultTypeInternal;
  249. extern TestOneof2_NestedMessageDefaultTypeInternal _TestOneof2_NestedMessage_default_instance_;
  250. class TestOneofBackwardsCompatible;
  251. class TestOneofBackwardsCompatibleDefaultTypeInternal;
  252. extern TestOneofBackwardsCompatibleDefaultTypeInternal _TestOneofBackwardsCompatible_default_instance_;
  253. class TestOneofBackwardsCompatible_FooGroup;
  254. class TestOneofBackwardsCompatible_FooGroupDefaultTypeInternal;
  255. extern TestOneofBackwardsCompatible_FooGroupDefaultTypeInternal _TestOneofBackwardsCompatible_FooGroup_default_instance_;
  256. class TestOneof_FooGroup;
  257. class TestOneof_FooGroupDefaultTypeInternal;
  258. extern TestOneof_FooGroupDefaultTypeInternal _TestOneof_FooGroup_default_instance_;
  259. class TestPackedExtensions;
  260. class TestPackedExtensionsDefaultTypeInternal;
  261. extern TestPackedExtensionsDefaultTypeInternal _TestPackedExtensions_default_instance_;
  262. class TestPackedTypes;
  263. class TestPackedTypesDefaultTypeInternal;
  264. extern TestPackedTypesDefaultTypeInternal _TestPackedTypes_default_instance_;
  265. class TestParsingMerge;
  266. class TestParsingMergeDefaultTypeInternal;
  267. extern TestParsingMergeDefaultTypeInternal _TestParsingMerge_default_instance_;
  268. class TestParsingMerge_OptionalGroup;
  269. class TestParsingMerge_OptionalGroupDefaultTypeInternal;
  270. extern TestParsingMerge_OptionalGroupDefaultTypeInternal _TestParsingMerge_OptionalGroup_default_instance_;
  271. class TestParsingMerge_RepeatedFieldsGenerator;
  272. class TestParsingMerge_RepeatedFieldsGeneratorDefaultTypeInternal;
  273. extern TestParsingMerge_RepeatedFieldsGeneratorDefaultTypeInternal _TestParsingMerge_RepeatedFieldsGenerator_default_instance_;
  274. class TestParsingMerge_RepeatedFieldsGenerator_Group1;
  275. class TestParsingMerge_RepeatedFieldsGenerator_Group1DefaultTypeInternal;
  276. extern TestParsingMerge_RepeatedFieldsGenerator_Group1DefaultTypeInternal _TestParsingMerge_RepeatedFieldsGenerator_Group1_default_instance_;
  277. class TestParsingMerge_RepeatedFieldsGenerator_Group2;
  278. class TestParsingMerge_RepeatedFieldsGenerator_Group2DefaultTypeInternal;
  279. extern TestParsingMerge_RepeatedFieldsGenerator_Group2DefaultTypeInternal _TestParsingMerge_RepeatedFieldsGenerator_Group2_default_instance_;
  280. class TestParsingMerge_RepeatedGroup;
  281. class TestParsingMerge_RepeatedGroupDefaultTypeInternal;
  282. extern TestParsingMerge_RepeatedGroupDefaultTypeInternal _TestParsingMerge_RepeatedGroup_default_instance_;
  283. class TestReallyLargeTagNumber;
  284. class TestReallyLargeTagNumberDefaultTypeInternal;
  285. extern TestReallyLargeTagNumberDefaultTypeInternal _TestReallyLargeTagNumber_default_instance_;
  286. class TestRecursiveMessage;
  287. class TestRecursiveMessageDefaultTypeInternal;
  288. extern TestRecursiveMessageDefaultTypeInternal _TestRecursiveMessage_default_instance_;
  289. class TestRepeatedScalarDifferentTagSizes;
  290. class TestRepeatedScalarDifferentTagSizesDefaultTypeInternal;
  291. extern TestRepeatedScalarDifferentTagSizesDefaultTypeInternal _TestRepeatedScalarDifferentTagSizes_default_instance_;
  292. class TestRequired;
  293. class TestRequiredDefaultTypeInternal;
  294. extern TestRequiredDefaultTypeInternal _TestRequired_default_instance_;
  295. class TestRequiredForeign;
  296. class TestRequiredForeignDefaultTypeInternal;
  297. extern TestRequiredForeignDefaultTypeInternal _TestRequiredForeign_default_instance_;
  298. class TestRequiredMessage;
  299. class TestRequiredMessageDefaultTypeInternal;
  300. extern TestRequiredMessageDefaultTypeInternal _TestRequiredMessage_default_instance_;
  301. class TestRequiredOneof;
  302. class TestRequiredOneofDefaultTypeInternal;
  303. extern TestRequiredOneofDefaultTypeInternal _TestRequiredOneof_default_instance_;
  304. class TestRequiredOneof_NestedMessage;
  305. class TestRequiredOneof_NestedMessageDefaultTypeInternal;
  306. extern TestRequiredOneof_NestedMessageDefaultTypeInternal _TestRequiredOneof_NestedMessage_default_instance_;
  307. class TestReservedFields;
  308. class TestReservedFieldsDefaultTypeInternal;
  309. extern TestReservedFieldsDefaultTypeInternal _TestReservedFields_default_instance_;
  310. class TestUnpackedExtensions;
  311. class TestUnpackedExtensionsDefaultTypeInternal;
  312. extern TestUnpackedExtensionsDefaultTypeInternal _TestUnpackedExtensions_default_instance_;
  313. class TestUnpackedTypes;
  314. class TestUnpackedTypesDefaultTypeInternal;
  315. extern TestUnpackedTypesDefaultTypeInternal _TestUnpackedTypes_default_instance_;
  316. class Uint32Message;
  317. class Uint32MessageDefaultTypeInternal;
  318. extern Uint32MessageDefaultTypeInternal _Uint32Message_default_instance_;
  319. class Uint64Message;
  320. class Uint64MessageDefaultTypeInternal;
  321. extern Uint64MessageDefaultTypeInternal _Uint64Message_default_instance_;
  322. } // namespace protobuf_unittest
  323. namespace google {
  324. namespace protobuf {
  325. template<> ::protobuf_unittest::BarRequest* Arena::CreateMaybeMessage<::protobuf_unittest::BarRequest>(Arena*);
  326. template<> ::protobuf_unittest::BarResponse* Arena::CreateMaybeMessage<::protobuf_unittest::BarResponse>(Arena*);
  327. template<> ::protobuf_unittest::BoolMessage* Arena::CreateMaybeMessage<::protobuf_unittest::BoolMessage>(Arena*);
  328. template<> ::protobuf_unittest::FooClientMessage* Arena::CreateMaybeMessage<::protobuf_unittest::FooClientMessage>(Arena*);
  329. template<> ::protobuf_unittest::FooRequest* Arena::CreateMaybeMessage<::protobuf_unittest::FooRequest>(Arena*);
  330. template<> ::protobuf_unittest::FooResponse* Arena::CreateMaybeMessage<::protobuf_unittest::FooResponse>(Arena*);
  331. template<> ::protobuf_unittest::FooServerMessage* Arena::CreateMaybeMessage<::protobuf_unittest::FooServerMessage>(Arena*);
  332. template<> ::protobuf_unittest::ForeignMessage* Arena::CreateMaybeMessage<::protobuf_unittest::ForeignMessage>(Arena*);
  333. template<> ::protobuf_unittest::Int32Message* Arena::CreateMaybeMessage<::protobuf_unittest::Int32Message>(Arena*);
  334. template<> ::protobuf_unittest::Int64Message* Arena::CreateMaybeMessage<::protobuf_unittest::Int64Message>(Arena*);
  335. template<> ::protobuf_unittest::MoreBytes* Arena::CreateMaybeMessage<::protobuf_unittest::MoreBytes>(Arena*);
  336. template<> ::protobuf_unittest::MoreString* Arena::CreateMaybeMessage<::protobuf_unittest::MoreString>(Arena*);
  337. template<> ::protobuf_unittest::NestedTestAllTypes* Arena::CreateMaybeMessage<::protobuf_unittest::NestedTestAllTypes>(Arena*);
  338. template<> ::protobuf_unittest::OneBytes* Arena::CreateMaybeMessage<::protobuf_unittest::OneBytes>(Arena*);
  339. template<> ::protobuf_unittest::OneString* Arena::CreateMaybeMessage<::protobuf_unittest::OneString>(Arena*);
  340. template<> ::protobuf_unittest::OptionalGroup_extension* Arena::CreateMaybeMessage<::protobuf_unittest::OptionalGroup_extension>(Arena*);
  341. template<> ::protobuf_unittest::RepeatedGroup_extension* Arena::CreateMaybeMessage<::protobuf_unittest::RepeatedGroup_extension>(Arena*);
  342. template<> ::protobuf_unittest::SparseEnumMessage* Arena::CreateMaybeMessage<::protobuf_unittest::SparseEnumMessage>(Arena*);
  343. template<> ::protobuf_unittest::TestAllExtensions* Arena::CreateMaybeMessage<::protobuf_unittest::TestAllExtensions>(Arena*);
  344. template<> ::protobuf_unittest::TestAllTypes* Arena::CreateMaybeMessage<::protobuf_unittest::TestAllTypes>(Arena*);
  345. template<> ::protobuf_unittest::TestAllTypes_NestedMessage* Arena::CreateMaybeMessage<::protobuf_unittest::TestAllTypes_NestedMessage>(Arena*);
  346. template<> ::protobuf_unittest::TestAllTypes_OptionalGroup* Arena::CreateMaybeMessage<::protobuf_unittest::TestAllTypes_OptionalGroup>(Arena*);
  347. template<> ::protobuf_unittest::TestAllTypes_RepeatedGroup* Arena::CreateMaybeMessage<::protobuf_unittest::TestAllTypes_RepeatedGroup>(Arena*);
  348. template<> ::protobuf_unittest::TestCamelCaseFieldNames* Arena::CreateMaybeMessage<::protobuf_unittest::TestCamelCaseFieldNames>(Arena*);
  349. template<> ::protobuf_unittest::TestCommentInjectionMessage* Arena::CreateMaybeMessage<::protobuf_unittest::TestCommentInjectionMessage>(Arena*);
  350. template<> ::protobuf_unittest::TestDeprecatedFields* Arena::CreateMaybeMessage<::protobuf_unittest::TestDeprecatedFields>(Arena*);
  351. template<> ::protobuf_unittest::TestDeprecatedMessage* Arena::CreateMaybeMessage<::protobuf_unittest::TestDeprecatedMessage>(Arena*);
  352. template<> ::protobuf_unittest::TestDupFieldNumber* Arena::CreateMaybeMessage<::protobuf_unittest::TestDupFieldNumber>(Arena*);
  353. template<> ::protobuf_unittest::TestDupFieldNumber_Bar* Arena::CreateMaybeMessage<::protobuf_unittest::TestDupFieldNumber_Bar>(Arena*);
  354. template<> ::protobuf_unittest::TestDupFieldNumber_Foo* Arena::CreateMaybeMessage<::protobuf_unittest::TestDupFieldNumber_Foo>(Arena*);
  355. template<> ::protobuf_unittest::TestDynamicExtensions* Arena::CreateMaybeMessage<::protobuf_unittest::TestDynamicExtensions>(Arena*);
  356. template<> ::protobuf_unittest::TestDynamicExtensions_DynamicMessageType* Arena::CreateMaybeMessage<::protobuf_unittest::TestDynamicExtensions_DynamicMessageType>(Arena*);
  357. template<> ::protobuf_unittest::TestEagerMessage* Arena::CreateMaybeMessage<::protobuf_unittest::TestEagerMessage>(Arena*);
  358. template<> ::protobuf_unittest::TestEmptyMessage* Arena::CreateMaybeMessage<::protobuf_unittest::TestEmptyMessage>(Arena*);
  359. template<> ::protobuf_unittest::TestEmptyMessageWithExtensions* Arena::CreateMaybeMessage<::protobuf_unittest::TestEmptyMessageWithExtensions>(Arena*);
  360. template<> ::protobuf_unittest::TestExtensionInsideTable* Arena::CreateMaybeMessage<::protobuf_unittest::TestExtensionInsideTable>(Arena*);
  361. template<> ::protobuf_unittest::TestExtensionOrderings1* Arena::CreateMaybeMessage<::protobuf_unittest::TestExtensionOrderings1>(Arena*);
  362. template<> ::protobuf_unittest::TestExtensionOrderings2* Arena::CreateMaybeMessage<::protobuf_unittest::TestExtensionOrderings2>(Arena*);
  363. template<> ::protobuf_unittest::TestExtensionOrderings2_TestExtensionOrderings3* Arena::CreateMaybeMessage<::protobuf_unittest::TestExtensionOrderings2_TestExtensionOrderings3>(Arena*);
  364. template<> ::protobuf_unittest::TestExtremeDefaultValues* Arena::CreateMaybeMessage<::protobuf_unittest::TestExtremeDefaultValues>(Arena*);
  365. template<> ::protobuf_unittest::TestFieldOrderings* Arena::CreateMaybeMessage<::protobuf_unittest::TestFieldOrderings>(Arena*);
  366. template<> ::protobuf_unittest::TestFieldOrderings_NestedMessage* Arena::CreateMaybeMessage<::protobuf_unittest::TestFieldOrderings_NestedMessage>(Arena*);
  367. template<> ::protobuf_unittest::TestForeignNested* Arena::CreateMaybeMessage<::protobuf_unittest::TestForeignNested>(Arena*);
  368. template<> ::protobuf_unittest::TestGroup* Arena::CreateMaybeMessage<::protobuf_unittest::TestGroup>(Arena*);
  369. template<> ::protobuf_unittest::TestGroupExtension* Arena::CreateMaybeMessage<::protobuf_unittest::TestGroupExtension>(Arena*);
  370. template<> ::protobuf_unittest::TestGroup_OptionalGroup* Arena::CreateMaybeMessage<::protobuf_unittest::TestGroup_OptionalGroup>(Arena*);
  371. template<> ::protobuf_unittest::TestHugeFieldNumbers* Arena::CreateMaybeMessage<::protobuf_unittest::TestHugeFieldNumbers>(Arena*);
  372. template<> ::protobuf_unittest::TestHugeFieldNumbers_OptionalGroup* Arena::CreateMaybeMessage<::protobuf_unittest::TestHugeFieldNumbers_OptionalGroup>(Arena*);
  373. template<> ::protobuf_unittest::TestHugeFieldNumbers_StringStringMapEntry_DoNotUse* Arena::CreateMaybeMessage<::protobuf_unittest::TestHugeFieldNumbers_StringStringMapEntry_DoNotUse>(Arena*);
  374. template<> ::protobuf_unittest::TestIsInitialized* Arena::CreateMaybeMessage<::protobuf_unittest::TestIsInitialized>(Arena*);
  375. template<> ::protobuf_unittest::TestIsInitialized_SubMessage* Arena::CreateMaybeMessage<::protobuf_unittest::TestIsInitialized_SubMessage>(Arena*);
  376. template<> ::protobuf_unittest::TestIsInitialized_SubMessage_SubGroup* Arena::CreateMaybeMessage<::protobuf_unittest::TestIsInitialized_SubMessage_SubGroup>(Arena*);
  377. template<> ::protobuf_unittest::TestJsonName* Arena::CreateMaybeMessage<::protobuf_unittest::TestJsonName>(Arena*);
  378. template<> ::protobuf_unittest::TestLazyMessage* Arena::CreateMaybeMessage<::protobuf_unittest::TestLazyMessage>(Arena*);
  379. template<> ::protobuf_unittest::TestMultipleExtensionRanges* Arena::CreateMaybeMessage<::protobuf_unittest::TestMultipleExtensionRanges>(Arena*);
  380. template<> ::protobuf_unittest::TestMutualRecursionA* Arena::CreateMaybeMessage<::protobuf_unittest::TestMutualRecursionA>(Arena*);
  381. template<> ::protobuf_unittest::TestMutualRecursionA_SubGroup* Arena::CreateMaybeMessage<::protobuf_unittest::TestMutualRecursionA_SubGroup>(Arena*);
  382. template<> ::protobuf_unittest::TestMutualRecursionA_SubMessage* Arena::CreateMaybeMessage<::protobuf_unittest::TestMutualRecursionA_SubMessage>(Arena*);
  383. template<> ::protobuf_unittest::TestMutualRecursionB* Arena::CreateMaybeMessage<::protobuf_unittest::TestMutualRecursionB>(Arena*);
  384. template<> ::protobuf_unittest::TestNestedExtension* Arena::CreateMaybeMessage<::protobuf_unittest::TestNestedExtension>(Arena*);
  385. template<> ::protobuf_unittest::TestNestedExtension_OptionalGroup_extension* Arena::CreateMaybeMessage<::protobuf_unittest::TestNestedExtension_OptionalGroup_extension>(Arena*);
  386. template<> ::protobuf_unittest::TestNestedMessageHasBits* Arena::CreateMaybeMessage<::protobuf_unittest::TestNestedMessageHasBits>(Arena*);
  387. template<> ::protobuf_unittest::TestNestedMessageHasBits_NestedMessage* Arena::CreateMaybeMessage<::protobuf_unittest::TestNestedMessageHasBits_NestedMessage>(Arena*);
  388. template<> ::protobuf_unittest::TestOneof* Arena::CreateMaybeMessage<::protobuf_unittest::TestOneof>(Arena*);
  389. template<> ::protobuf_unittest::TestOneof2* Arena::CreateMaybeMessage<::protobuf_unittest::TestOneof2>(Arena*);
  390. template<> ::protobuf_unittest::TestOneof2_FooGroup* Arena::CreateMaybeMessage<::protobuf_unittest::TestOneof2_FooGroup>(Arena*);
  391. template<> ::protobuf_unittest::TestOneof2_NestedMessage* Arena::CreateMaybeMessage<::protobuf_unittest::TestOneof2_NestedMessage>(Arena*);
  392. template<> ::protobuf_unittest::TestOneofBackwardsCompatible* Arena::CreateMaybeMessage<::protobuf_unittest::TestOneofBackwardsCompatible>(Arena*);
  393. template<> ::protobuf_unittest::TestOneofBackwardsCompatible_FooGroup* Arena::CreateMaybeMessage<::protobuf_unittest::TestOneofBackwardsCompatible_FooGroup>(Arena*);
  394. template<> ::protobuf_unittest::TestOneof_FooGroup* Arena::CreateMaybeMessage<::protobuf_unittest::TestOneof_FooGroup>(Arena*);
  395. template<> ::protobuf_unittest::TestPackedExtensions* Arena::CreateMaybeMessage<::protobuf_unittest::TestPackedExtensions>(Arena*);
  396. template<> ::protobuf_unittest::TestPackedTypes* Arena::CreateMaybeMessage<::protobuf_unittest::TestPackedTypes>(Arena*);
  397. template<> ::protobuf_unittest::TestParsingMerge* Arena::CreateMaybeMessage<::protobuf_unittest::TestParsingMerge>(Arena*);
  398. template<> ::protobuf_unittest::TestParsingMerge_OptionalGroup* Arena::CreateMaybeMessage<::protobuf_unittest::TestParsingMerge_OptionalGroup>(Arena*);
  399. template<> ::protobuf_unittest::TestParsingMerge_RepeatedFieldsGenerator* Arena::CreateMaybeMessage<::protobuf_unittest::TestParsingMerge_RepeatedFieldsGenerator>(Arena*);
  400. template<> ::protobuf_unittest::TestParsingMerge_RepeatedFieldsGenerator_Group1* Arena::CreateMaybeMessage<::protobuf_unittest::TestParsingMerge_RepeatedFieldsGenerator_Group1>(Arena*);
  401. template<> ::protobuf_unittest::TestParsingMerge_RepeatedFieldsGenerator_Group2* Arena::CreateMaybeMessage<::protobuf_unittest::TestParsingMerge_RepeatedFieldsGenerator_Group2>(Arena*);
  402. template<> ::protobuf_unittest::TestParsingMerge_RepeatedGroup* Arena::CreateMaybeMessage<::protobuf_unittest::TestParsingMerge_RepeatedGroup>(Arena*);
  403. template<> ::protobuf_unittest::TestReallyLargeTagNumber* Arena::CreateMaybeMessage<::protobuf_unittest::TestReallyLargeTagNumber>(Arena*);
  404. template<> ::protobuf_unittest::TestRecursiveMessage* Arena::CreateMaybeMessage<::protobuf_unittest::TestRecursiveMessage>(Arena*);
  405. template<> ::protobuf_unittest::TestRepeatedScalarDifferentTagSizes* Arena::CreateMaybeMessage<::protobuf_unittest::TestRepeatedScalarDifferentTagSizes>(Arena*);
  406. template<> ::protobuf_unittest::TestRequired* Arena::CreateMaybeMessage<::protobuf_unittest::TestRequired>(Arena*);
  407. template<> ::protobuf_unittest::TestRequiredForeign* Arena::CreateMaybeMessage<::protobuf_unittest::TestRequiredForeign>(Arena*);
  408. template<> ::protobuf_unittest::TestRequiredMessage* Arena::CreateMaybeMessage<::protobuf_unittest::TestRequiredMessage>(Arena*);
  409. template<> ::protobuf_unittest::TestRequiredOneof* Arena::CreateMaybeMessage<::protobuf_unittest::TestRequiredOneof>(Arena*);
  410. template<> ::protobuf_unittest::TestRequiredOneof_NestedMessage* Arena::CreateMaybeMessage<::protobuf_unittest::TestRequiredOneof_NestedMessage>(Arena*);
  411. template<> ::protobuf_unittest::TestReservedFields* Arena::CreateMaybeMessage<::protobuf_unittest::TestReservedFields>(Arena*);
  412. template<> ::protobuf_unittest::TestUnpackedExtensions* Arena::CreateMaybeMessage<::protobuf_unittest::TestUnpackedExtensions>(Arena*);
  413. template<> ::protobuf_unittest::TestUnpackedTypes* Arena::CreateMaybeMessage<::protobuf_unittest::TestUnpackedTypes>(Arena*);
  414. template<> ::protobuf_unittest::Uint32Message* Arena::CreateMaybeMessage<::protobuf_unittest::Uint32Message>(Arena*);
  415. template<> ::protobuf_unittest::Uint64Message* Arena::CreateMaybeMessage<::protobuf_unittest::Uint64Message>(Arena*);
  416. } // namespace protobuf
  417. } // namespace google
  418. namespace protobuf_unittest {
  419. enum TestAllTypes_NestedEnum {
  420. TestAllTypes_NestedEnum_FOO = 1,
  421. TestAllTypes_NestedEnum_BAR = 2,
  422. TestAllTypes_NestedEnum_BAZ = 3,
  423. TestAllTypes_NestedEnum_NEG = -1
  424. };
  425. bool TestAllTypes_NestedEnum_IsValid(int value);
  426. const TestAllTypes_NestedEnum TestAllTypes_NestedEnum_NestedEnum_MIN = TestAllTypes_NestedEnum_NEG;
  427. const TestAllTypes_NestedEnum TestAllTypes_NestedEnum_NestedEnum_MAX = TestAllTypes_NestedEnum_BAZ;
  428. const int TestAllTypes_NestedEnum_NestedEnum_ARRAYSIZE = TestAllTypes_NestedEnum_NestedEnum_MAX + 1;
  429. const ::google::protobuf::EnumDescriptor* TestAllTypes_NestedEnum_descriptor();
  430. inline const ::std::string& TestAllTypes_NestedEnum_Name(TestAllTypes_NestedEnum value) {
  431. return ::google::protobuf::internal::NameOfEnum(
  432. TestAllTypes_NestedEnum_descriptor(), value);
  433. }
  434. inline bool TestAllTypes_NestedEnum_Parse(
  435. const ::std::string& name, TestAllTypes_NestedEnum* value) {
  436. return ::google::protobuf::internal::ParseNamedEnum<TestAllTypes_NestedEnum>(
  437. TestAllTypes_NestedEnum_descriptor(), name, value);
  438. }
  439. enum TestOneof2_NestedEnum {
  440. TestOneof2_NestedEnum_FOO = 1,
  441. TestOneof2_NestedEnum_BAR = 2,
  442. TestOneof2_NestedEnum_BAZ = 3
  443. };
  444. bool TestOneof2_NestedEnum_IsValid(int value);
  445. const TestOneof2_NestedEnum TestOneof2_NestedEnum_NestedEnum_MIN = TestOneof2_NestedEnum_FOO;
  446. const TestOneof2_NestedEnum TestOneof2_NestedEnum_NestedEnum_MAX = TestOneof2_NestedEnum_BAZ;
  447. const int TestOneof2_NestedEnum_NestedEnum_ARRAYSIZE = TestOneof2_NestedEnum_NestedEnum_MAX + 1;
  448. const ::google::protobuf::EnumDescriptor* TestOneof2_NestedEnum_descriptor();
  449. inline const ::std::string& TestOneof2_NestedEnum_Name(TestOneof2_NestedEnum value) {
  450. return ::google::protobuf::internal::NameOfEnum(
  451. TestOneof2_NestedEnum_descriptor(), value);
  452. }
  453. inline bool TestOneof2_NestedEnum_Parse(
  454. const ::std::string& name, TestOneof2_NestedEnum* value) {
  455. return ::google::protobuf::internal::ParseNamedEnum<TestOneof2_NestedEnum>(
  456. TestOneof2_NestedEnum_descriptor(), name, value);
  457. }
  458. enum TestDynamicExtensions_DynamicEnumType {
  459. TestDynamicExtensions_DynamicEnumType_DYNAMIC_FOO = 2200,
  460. TestDynamicExtensions_DynamicEnumType_DYNAMIC_BAR = 2201,
  461. TestDynamicExtensions_DynamicEnumType_DYNAMIC_BAZ = 2202
  462. };
  463. bool TestDynamicExtensions_DynamicEnumType_IsValid(int value);
  464. const TestDynamicExtensions_DynamicEnumType TestDynamicExtensions_DynamicEnumType_DynamicEnumType_MIN = TestDynamicExtensions_DynamicEnumType_DYNAMIC_FOO;
  465. const TestDynamicExtensions_DynamicEnumType TestDynamicExtensions_DynamicEnumType_DynamicEnumType_MAX = TestDynamicExtensions_DynamicEnumType_DYNAMIC_BAZ;
  466. const int TestDynamicExtensions_DynamicEnumType_DynamicEnumType_ARRAYSIZE = TestDynamicExtensions_DynamicEnumType_DynamicEnumType_MAX + 1;
  467. const ::google::protobuf::EnumDescriptor* TestDynamicExtensions_DynamicEnumType_descriptor();
  468. inline const ::std::string& TestDynamicExtensions_DynamicEnumType_Name(TestDynamicExtensions_DynamicEnumType value) {
  469. return ::google::protobuf::internal::NameOfEnum(
  470. TestDynamicExtensions_DynamicEnumType_descriptor(), value);
  471. }
  472. inline bool TestDynamicExtensions_DynamicEnumType_Parse(
  473. const ::std::string& name, TestDynamicExtensions_DynamicEnumType* value) {
  474. return ::google::protobuf::internal::ParseNamedEnum<TestDynamicExtensions_DynamicEnumType>(
  475. TestDynamicExtensions_DynamicEnumType_descriptor(), name, value);
  476. }
  477. enum ForeignEnum {
  478. FOREIGN_FOO = 4,
  479. FOREIGN_BAR = 5,
  480. FOREIGN_BAZ = 6
  481. };
  482. bool ForeignEnum_IsValid(int value);
  483. const ForeignEnum ForeignEnum_MIN = FOREIGN_FOO;
  484. const ForeignEnum ForeignEnum_MAX = FOREIGN_BAZ;
  485. const int ForeignEnum_ARRAYSIZE = ForeignEnum_MAX + 1;
  486. const ::google::protobuf::EnumDescriptor* ForeignEnum_descriptor();
  487. inline const ::std::string& ForeignEnum_Name(ForeignEnum value) {
  488. return ::google::protobuf::internal::NameOfEnum(
  489. ForeignEnum_descriptor(), value);
  490. }
  491. inline bool ForeignEnum_Parse(
  492. const ::std::string& name, ForeignEnum* value) {
  493. return ::google::protobuf::internal::ParseNamedEnum<ForeignEnum>(
  494. ForeignEnum_descriptor(), name, value);
  495. }
  496. enum TestEnumWithDupValue {
  497. FOO1 = 1,
  498. BAR1 = 2,
  499. BAZ = 3,
  500. FOO2 = 1,
  501. BAR2 = 2
  502. };
  503. bool TestEnumWithDupValue_IsValid(int value);
  504. const TestEnumWithDupValue TestEnumWithDupValue_MIN = FOO1;
  505. const TestEnumWithDupValue TestEnumWithDupValue_MAX = BAZ;
  506. const int TestEnumWithDupValue_ARRAYSIZE = TestEnumWithDupValue_MAX + 1;
  507. const ::google::protobuf::EnumDescriptor* TestEnumWithDupValue_descriptor();
  508. inline const ::std::string& TestEnumWithDupValue_Name(TestEnumWithDupValue value) {
  509. return ::google::protobuf::internal::NameOfEnum(
  510. TestEnumWithDupValue_descriptor(), value);
  511. }
  512. inline bool TestEnumWithDupValue_Parse(
  513. const ::std::string& name, TestEnumWithDupValue* value) {
  514. return ::google::protobuf::internal::ParseNamedEnum<TestEnumWithDupValue>(
  515. TestEnumWithDupValue_descriptor(), name, value);
  516. }
  517. enum TestSparseEnum {
  518. SPARSE_A = 123,
  519. SPARSE_B = 62374,
  520. SPARSE_C = 12589234,
  521. SPARSE_D = -15,
  522. SPARSE_E = -53452,
  523. SPARSE_F = 0,
  524. SPARSE_G = 2
  525. };
  526. bool TestSparseEnum_IsValid(int value);
  527. const TestSparseEnum TestSparseEnum_MIN = SPARSE_E;
  528. const TestSparseEnum TestSparseEnum_MAX = SPARSE_C;
  529. const int TestSparseEnum_ARRAYSIZE = TestSparseEnum_MAX + 1;
  530. const ::google::protobuf::EnumDescriptor* TestSparseEnum_descriptor();
  531. inline const ::std::string& TestSparseEnum_Name(TestSparseEnum value) {
  532. return ::google::protobuf::internal::NameOfEnum(
  533. TestSparseEnum_descriptor(), value);
  534. }
  535. inline bool TestSparseEnum_Parse(
  536. const ::std::string& name, TestSparseEnum* value) {
  537. return ::google::protobuf::internal::ParseNamedEnum<TestSparseEnum>(
  538. TestSparseEnum_descriptor(), name, value);
  539. }
  540. // ===================================================================
  541. class TestAllTypes_NestedMessage : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:protobuf_unittest.TestAllTypes.NestedMessage) */ {
  542. public:
  543. TestAllTypes_NestedMessage();
  544. virtual ~TestAllTypes_NestedMessage();
  545. TestAllTypes_NestedMessage(const TestAllTypes_NestedMessage& from);
  546. inline TestAllTypes_NestedMessage& operator=(const TestAllTypes_NestedMessage& from) {
  547. CopyFrom(from);
  548. return *this;
  549. }
  550. #if LANG_CXX11
  551. TestAllTypes_NestedMessage(TestAllTypes_NestedMessage&& from) noexcept
  552. : TestAllTypes_NestedMessage() {
  553. *this = ::std::move(from);
  554. }
  555. inline TestAllTypes_NestedMessage& operator=(TestAllTypes_NestedMessage&& from) noexcept {
  556. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  557. if (this != &from) InternalSwap(&from);
  558. } else {
  559. CopyFrom(from);
  560. }
  561. return *this;
  562. }
  563. #endif
  564. inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
  565. return _internal_metadata_.unknown_fields();
  566. }
  567. inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
  568. return _internal_metadata_.mutable_unknown_fields();
  569. }
  570. inline ::google::protobuf::Arena* GetArena() const final {
  571. return GetArenaNoVirtual();
  572. }
  573. inline void* GetMaybeArenaPointer() const final {
  574. return MaybeArenaPtr();
  575. }
  576. static const ::google::protobuf::Descriptor* descriptor();
  577. static const TestAllTypes_NestedMessage& default_instance();
  578. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  579. static inline const TestAllTypes_NestedMessage* internal_default_instance() {
  580. return reinterpret_cast<const TestAllTypes_NestedMessage*>(
  581. &_TestAllTypes_NestedMessage_default_instance_);
  582. }
  583. static constexpr int kIndexInFileMessages =
  584. 0;
  585. void UnsafeArenaSwap(TestAllTypes_NestedMessage* other);
  586. void Swap(TestAllTypes_NestedMessage* other);
  587. friend void swap(TestAllTypes_NestedMessage& a, TestAllTypes_NestedMessage& b) {
  588. a.Swap(&b);
  589. }
  590. // implements Message ----------------------------------------------
  591. inline TestAllTypes_NestedMessage* New() const final {
  592. return CreateMaybeMessage<TestAllTypes_NestedMessage>(NULL);
  593. }
  594. TestAllTypes_NestedMessage* New(::google::protobuf::Arena* arena) const final {
  595. return CreateMaybeMessage<TestAllTypes_NestedMessage>(arena);
  596. }
  597. void CopyFrom(const ::google::protobuf::Message& from) final;
  598. void MergeFrom(const ::google::protobuf::Message& from) final;
  599. void CopyFrom(const TestAllTypes_NestedMessage& from);
  600. void MergeFrom(const TestAllTypes_NestedMessage& from);
  601. void Clear() final;
  602. bool IsInitialized() const final;
  603. size_t ByteSizeLong() const final;
  604. bool MergePartialFromCodedStream(
  605. ::google::protobuf::io::CodedInputStream* input) final;
  606. void SerializeWithCachedSizes(
  607. ::google::protobuf::io::CodedOutputStream* output) const final;
  608. ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
  609. bool deterministic, ::google::protobuf::uint8* target) const final;
  610. int GetCachedSize() const final { return _cached_size_.Get(); }
  611. private:
  612. void SharedCtor();
  613. void SharedDtor();
  614. void SetCachedSize(int size) const final;
  615. void InternalSwap(TestAllTypes_NestedMessage* other);
  616. protected:
  617. explicit TestAllTypes_NestedMessage(::google::protobuf::Arena* arena);
  618. private:
  619. static void ArenaDtor(void* object);
  620. inline void RegisterArenaDtor(::google::protobuf::Arena* arena);
  621. private:
  622. inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
  623. return _internal_metadata_.arena();
  624. }
  625. inline void* MaybeArenaPtr() const {
  626. return _internal_metadata_.raw_arena_ptr();
  627. }
  628. public:
  629. ::google::protobuf::Metadata GetMetadata() const final;
  630. // nested types ----------------------------------------------------
  631. // accessors -------------------------------------------------------
  632. // optional int32 bb = 1;
  633. bool has_bb() const;
  634. void clear_bb();
  635. static const int kBbFieldNumber = 1;
  636. ::google::protobuf::int32 bb() const;
  637. void set_bb(::google::protobuf::int32 value);
  638. // @@protoc_insertion_point(class_scope:protobuf_unittest.TestAllTypes.NestedMessage)
  639. private:
  640. void set_has_bb();
  641. void clear_has_bb();
  642. ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
  643. template <typename T> friend class ::google::protobuf::Arena::InternalHelper;
  644. typedef void InternalArenaConstructable_;
  645. typedef void DestructorSkippable_;
  646. ::google::protobuf::internal::HasBits<1> _has_bits_;
  647. mutable ::google::protobuf::internal::CachedSize _cached_size_;
  648. ::google::protobuf::int32 bb_;
  649. friend struct ::protobuf_google_2fprotobuf_2funittest_2eproto::TableStruct;
  650. };
  651. // -------------------------------------------------------------------
  652. class TestAllTypes_OptionalGroup : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:protobuf_unittest.TestAllTypes.OptionalGroup) */ {
  653. public:
  654. TestAllTypes_OptionalGroup();
  655. virtual ~TestAllTypes_OptionalGroup();
  656. TestAllTypes_OptionalGroup(const TestAllTypes_OptionalGroup& from);
  657. inline TestAllTypes_OptionalGroup& operator=(const TestAllTypes_OptionalGroup& from) {
  658. CopyFrom(from);
  659. return *this;
  660. }
  661. #if LANG_CXX11
  662. TestAllTypes_OptionalGroup(TestAllTypes_OptionalGroup&& from) noexcept
  663. : TestAllTypes_OptionalGroup() {
  664. *this = ::std::move(from);
  665. }
  666. inline TestAllTypes_OptionalGroup& operator=(TestAllTypes_OptionalGroup&& from) noexcept {
  667. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  668. if (this != &from) InternalSwap(&from);
  669. } else {
  670. CopyFrom(from);
  671. }
  672. return *this;
  673. }
  674. #endif
  675. inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
  676. return _internal_metadata_.unknown_fields();
  677. }
  678. inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
  679. return _internal_metadata_.mutable_unknown_fields();
  680. }
  681. inline ::google::protobuf::Arena* GetArena() const final {
  682. return GetArenaNoVirtual();
  683. }
  684. inline void* GetMaybeArenaPointer() const final {
  685. return MaybeArenaPtr();
  686. }
  687. static const ::google::protobuf::Descriptor* descriptor();
  688. static const TestAllTypes_OptionalGroup& default_instance();
  689. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  690. static inline const TestAllTypes_OptionalGroup* internal_default_instance() {
  691. return reinterpret_cast<const TestAllTypes_OptionalGroup*>(
  692. &_TestAllTypes_OptionalGroup_default_instance_);
  693. }
  694. static constexpr int kIndexInFileMessages =
  695. 1;
  696. void UnsafeArenaSwap(TestAllTypes_OptionalGroup* other);
  697. void Swap(TestAllTypes_OptionalGroup* other);
  698. friend void swap(TestAllTypes_OptionalGroup& a, TestAllTypes_OptionalGroup& b) {
  699. a.Swap(&b);
  700. }
  701. // implements Message ----------------------------------------------
  702. inline TestAllTypes_OptionalGroup* New() const final {
  703. return CreateMaybeMessage<TestAllTypes_OptionalGroup>(NULL);
  704. }
  705. TestAllTypes_OptionalGroup* New(::google::protobuf::Arena* arena) const final {
  706. return CreateMaybeMessage<TestAllTypes_OptionalGroup>(arena);
  707. }
  708. void CopyFrom(const ::google::protobuf::Message& from) final;
  709. void MergeFrom(const ::google::protobuf::Message& from) final;
  710. void CopyFrom(const TestAllTypes_OptionalGroup& from);
  711. void MergeFrom(const TestAllTypes_OptionalGroup& from);
  712. void Clear() final;
  713. bool IsInitialized() const final;
  714. size_t ByteSizeLong() const final;
  715. bool MergePartialFromCodedStream(
  716. ::google::protobuf::io::CodedInputStream* input) final;
  717. void SerializeWithCachedSizes(
  718. ::google::protobuf::io::CodedOutputStream* output) const final;
  719. ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
  720. bool deterministic, ::google::protobuf::uint8* target) const final;
  721. int GetCachedSize() const final { return _cached_size_.Get(); }
  722. private:
  723. void SharedCtor();
  724. void SharedDtor();
  725. void SetCachedSize(int size) const final;
  726. void InternalSwap(TestAllTypes_OptionalGroup* other);
  727. protected:
  728. explicit TestAllTypes_OptionalGroup(::google::protobuf::Arena* arena);
  729. private:
  730. static void ArenaDtor(void* object);
  731. inline void RegisterArenaDtor(::google::protobuf::Arena* arena);
  732. private:
  733. inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
  734. return _internal_metadata_.arena();
  735. }
  736. inline void* MaybeArenaPtr() const {
  737. return _internal_metadata_.raw_arena_ptr();
  738. }
  739. public:
  740. ::google::protobuf::Metadata GetMetadata() const final;
  741. // nested types ----------------------------------------------------
  742. // accessors -------------------------------------------------------
  743. // optional int32 a = 17;
  744. bool has_a() const;
  745. void clear_a();
  746. static const int kAFieldNumber = 17;
  747. ::google::protobuf::int32 a() const;
  748. void set_a(::google::protobuf::int32 value);
  749. // @@protoc_insertion_point(class_scope:protobuf_unittest.TestAllTypes.OptionalGroup)
  750. private:
  751. void set_has_a();
  752. void clear_has_a();
  753. ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
  754. template <typename T> friend class ::google::protobuf::Arena::InternalHelper;
  755. typedef void InternalArenaConstructable_;
  756. typedef void DestructorSkippable_;
  757. ::google::protobuf::internal::HasBits<1> _has_bits_;
  758. mutable ::google::protobuf::internal::CachedSize _cached_size_;
  759. ::google::protobuf::int32 a_;
  760. friend struct ::protobuf_google_2fprotobuf_2funittest_2eproto::TableStruct;
  761. };
  762. // -------------------------------------------------------------------
  763. class TestAllTypes_RepeatedGroup : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:protobuf_unittest.TestAllTypes.RepeatedGroup) */ {
  764. public:
  765. TestAllTypes_RepeatedGroup();
  766. virtual ~TestAllTypes_RepeatedGroup();
  767. TestAllTypes_RepeatedGroup(const TestAllTypes_RepeatedGroup& from);
  768. inline TestAllTypes_RepeatedGroup& operator=(const TestAllTypes_RepeatedGroup& from) {
  769. CopyFrom(from);
  770. return *this;
  771. }
  772. #if LANG_CXX11
  773. TestAllTypes_RepeatedGroup(TestAllTypes_RepeatedGroup&& from) noexcept
  774. : TestAllTypes_RepeatedGroup() {
  775. *this = ::std::move(from);
  776. }
  777. inline TestAllTypes_RepeatedGroup& operator=(TestAllTypes_RepeatedGroup&& from) noexcept {
  778. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  779. if (this != &from) InternalSwap(&from);
  780. } else {
  781. CopyFrom(from);
  782. }
  783. return *this;
  784. }
  785. #endif
  786. inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
  787. return _internal_metadata_.unknown_fields();
  788. }
  789. inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
  790. return _internal_metadata_.mutable_unknown_fields();
  791. }
  792. inline ::google::protobuf::Arena* GetArena() const final {
  793. return GetArenaNoVirtual();
  794. }
  795. inline void* GetMaybeArenaPointer() const final {
  796. return MaybeArenaPtr();
  797. }
  798. static const ::google::protobuf::Descriptor* descriptor();
  799. static const TestAllTypes_RepeatedGroup& default_instance();
  800. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  801. static inline const TestAllTypes_RepeatedGroup* internal_default_instance() {
  802. return reinterpret_cast<const TestAllTypes_RepeatedGroup*>(
  803. &_TestAllTypes_RepeatedGroup_default_instance_);
  804. }
  805. static constexpr int kIndexInFileMessages =
  806. 2;
  807. void UnsafeArenaSwap(TestAllTypes_RepeatedGroup* other);
  808. void Swap(TestAllTypes_RepeatedGroup* other);
  809. friend void swap(TestAllTypes_RepeatedGroup& a, TestAllTypes_RepeatedGroup& b) {
  810. a.Swap(&b);
  811. }
  812. // implements Message ----------------------------------------------
  813. inline TestAllTypes_RepeatedGroup* New() const final {
  814. return CreateMaybeMessage<TestAllTypes_RepeatedGroup>(NULL);
  815. }
  816. TestAllTypes_RepeatedGroup* New(::google::protobuf::Arena* arena) const final {
  817. return CreateMaybeMessage<TestAllTypes_RepeatedGroup>(arena);
  818. }
  819. void CopyFrom(const ::google::protobuf::Message& from) final;
  820. void MergeFrom(const ::google::protobuf::Message& from) final;
  821. void CopyFrom(const TestAllTypes_RepeatedGroup& from);
  822. void MergeFrom(const TestAllTypes_RepeatedGroup& from);
  823. void Clear() final;
  824. bool IsInitialized() const final;
  825. size_t ByteSizeLong() const final;
  826. bool MergePartialFromCodedStream(
  827. ::google::protobuf::io::CodedInputStream* input) final;
  828. void SerializeWithCachedSizes(
  829. ::google::protobuf::io::CodedOutputStream* output) const final;
  830. ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
  831. bool deterministic, ::google::protobuf::uint8* target) const final;
  832. int GetCachedSize() const final { return _cached_size_.Get(); }
  833. private:
  834. void SharedCtor();
  835. void SharedDtor();
  836. void SetCachedSize(int size) const final;
  837. void InternalSwap(TestAllTypes_RepeatedGroup* other);
  838. protected:
  839. explicit TestAllTypes_RepeatedGroup(::google::protobuf::Arena* arena);
  840. private:
  841. static void ArenaDtor(void* object);
  842. inline void RegisterArenaDtor(::google::protobuf::Arena* arena);
  843. private:
  844. inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
  845. return _internal_metadata_.arena();
  846. }
  847. inline void* MaybeArenaPtr() const {
  848. return _internal_metadata_.raw_arena_ptr();
  849. }
  850. public:
  851. ::google::protobuf::Metadata GetMetadata() const final;
  852. // nested types ----------------------------------------------------
  853. // accessors -------------------------------------------------------
  854. // optional int32 a = 47;
  855. bool has_a() const;
  856. void clear_a();
  857. static const int kAFieldNumber = 47;
  858. ::google::protobuf::int32 a() const;
  859. void set_a(::google::protobuf::int32 value);
  860. // @@protoc_insertion_point(class_scope:protobuf_unittest.TestAllTypes.RepeatedGroup)
  861. private:
  862. void set_has_a();
  863. void clear_has_a();
  864. ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
  865. template <typename T> friend class ::google::protobuf::Arena::InternalHelper;
  866. typedef void InternalArenaConstructable_;
  867. typedef void DestructorSkippable_;
  868. ::google::protobuf::internal::HasBits<1> _has_bits_;
  869. mutable ::google::protobuf::internal::CachedSize _cached_size_;
  870. ::google::protobuf::int32 a_;
  871. friend struct ::protobuf_google_2fprotobuf_2funittest_2eproto::TableStruct;
  872. };
  873. // -------------------------------------------------------------------
  874. class TestAllTypes : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:protobuf_unittest.TestAllTypes) */ {
  875. public:
  876. TestAllTypes();
  877. virtual ~TestAllTypes();
  878. TestAllTypes(const TestAllTypes& from);
  879. inline TestAllTypes& operator=(const TestAllTypes& from) {
  880. CopyFrom(from);
  881. return *this;
  882. }
  883. #if LANG_CXX11
  884. TestAllTypes(TestAllTypes&& from) noexcept
  885. : TestAllTypes() {
  886. *this = ::std::move(from);
  887. }
  888. inline TestAllTypes& operator=(TestAllTypes&& from) noexcept {
  889. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  890. if (this != &from) InternalSwap(&from);
  891. } else {
  892. CopyFrom(from);
  893. }
  894. return *this;
  895. }
  896. #endif
  897. inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
  898. return _internal_metadata_.unknown_fields();
  899. }
  900. inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
  901. return _internal_metadata_.mutable_unknown_fields();
  902. }
  903. inline ::google::protobuf::Arena* GetArena() const final {
  904. return GetArenaNoVirtual();
  905. }
  906. inline void* GetMaybeArenaPointer() const final {
  907. return MaybeArenaPtr();
  908. }
  909. static const ::google::protobuf::Descriptor* descriptor();
  910. static const TestAllTypes& default_instance();
  911. enum OneofFieldCase {
  912. kOneofUint32 = 111,
  913. kOneofNestedMessage = 112,
  914. kOneofString = 113,
  915. kOneofBytes = 114,
  916. ONEOF_FIELD_NOT_SET = 0,
  917. };
  918. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  919. static inline const TestAllTypes* internal_default_instance() {
  920. return reinterpret_cast<const TestAllTypes*>(
  921. &_TestAllTypes_default_instance_);
  922. }
  923. static constexpr int kIndexInFileMessages =
  924. 3;
  925. void UnsafeArenaSwap(TestAllTypes* other);
  926. void Swap(TestAllTypes* other);
  927. friend void swap(TestAllTypes& a, TestAllTypes& b) {
  928. a.Swap(&b);
  929. }
  930. // implements Message ----------------------------------------------
  931. inline TestAllTypes* New() const final {
  932. return CreateMaybeMessage<TestAllTypes>(NULL);
  933. }
  934. TestAllTypes* New(::google::protobuf::Arena* arena) const final {
  935. return CreateMaybeMessage<TestAllTypes>(arena);
  936. }
  937. void CopyFrom(const ::google::protobuf::Message& from) final;
  938. void MergeFrom(const ::google::protobuf::Message& from) final;
  939. void CopyFrom(const TestAllTypes& from);
  940. void MergeFrom(const TestAllTypes& from);
  941. void Clear() final;
  942. bool IsInitialized() const final;
  943. size_t ByteSizeLong() const final;
  944. bool MergePartialFromCodedStream(
  945. ::google::protobuf::io::CodedInputStream* input) final;
  946. void SerializeWithCachedSizes(
  947. ::google::protobuf::io::CodedOutputStream* output) const final;
  948. ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
  949. bool deterministic, ::google::protobuf::uint8* target) const final;
  950. int GetCachedSize() const final { return _cached_size_.Get(); }
  951. private:
  952. void SharedCtor();
  953. void SharedDtor();
  954. void SetCachedSize(int size) const final;
  955. void InternalSwap(TestAllTypes* other);
  956. protected:
  957. explicit TestAllTypes(::google::protobuf::Arena* arena);
  958. private:
  959. static void ArenaDtor(void* object);
  960. inline void RegisterArenaDtor(::google::protobuf::Arena* arena);
  961. private:
  962. inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
  963. return _internal_metadata_.arena();
  964. }
  965. inline void* MaybeArenaPtr() const {
  966. return _internal_metadata_.raw_arena_ptr();
  967. }
  968. public:
  969. ::google::protobuf::Metadata GetMetadata() const final;
  970. // nested types ----------------------------------------------------
  971. typedef TestAllTypes_NestedMessage NestedMessage;
  972. typedef TestAllTypes_OptionalGroup OptionalGroup;
  973. typedef TestAllTypes_RepeatedGroup RepeatedGroup;
  974. typedef TestAllTypes_NestedEnum NestedEnum;
  975. static const NestedEnum FOO =
  976. TestAllTypes_NestedEnum_FOO;
  977. static const NestedEnum BAR =
  978. TestAllTypes_NestedEnum_BAR;
  979. static const NestedEnum BAZ =
  980. TestAllTypes_NestedEnum_BAZ;
  981. static const NestedEnum NEG =
  982. TestAllTypes_NestedEnum_NEG;
  983. static inline bool NestedEnum_IsValid(int value) {
  984. return TestAllTypes_NestedEnum_IsValid(value);
  985. }
  986. static const NestedEnum NestedEnum_MIN =
  987. TestAllTypes_NestedEnum_NestedEnum_MIN;
  988. static const NestedEnum NestedEnum_MAX =
  989. TestAllTypes_NestedEnum_NestedEnum_MAX;
  990. static const int NestedEnum_ARRAYSIZE =
  991. TestAllTypes_NestedEnum_NestedEnum_ARRAYSIZE;
  992. static inline const ::google::protobuf::EnumDescriptor*
  993. NestedEnum_descriptor() {
  994. return TestAllTypes_NestedEnum_descriptor();
  995. }
  996. static inline const ::std::string& NestedEnum_Name(NestedEnum value) {
  997. return TestAllTypes_NestedEnum_Name(value);
  998. }
  999. static inline bool NestedEnum_Parse(const ::std::string& name,
  1000. NestedEnum* value) {
  1001. return TestAllTypes_NestedEnum_Parse(name, value);
  1002. }
  1003. // accessors -------------------------------------------------------
  1004. // repeated int32 repeated_int32 = 31;
  1005. int repeated_int32_size() const;
  1006. void clear_repeated_int32();
  1007. static const int kRepeatedInt32FieldNumber = 31;
  1008. ::google::protobuf::int32 repeated_int32(int index) const;
  1009. void set_repeated_int32(int index, ::google::protobuf::int32 value);
  1010. void add_repeated_int32(::google::protobuf::int32 value);
  1011. const ::google::protobuf::RepeatedField< ::google::protobuf::int32 >&
  1012. repeated_int32() const;
  1013. ::google::protobuf::RepeatedField< ::google::protobuf::int32 >*
  1014. mutable_repeated_int32();
  1015. // repeated int64 repeated_int64 = 32;
  1016. int repeated_int64_size() const;
  1017. void clear_repeated_int64();
  1018. static const int kRepeatedInt64FieldNumber = 32;
  1019. ::google::protobuf::int64 repeated_int64(int index) const;
  1020. void set_repeated_int64(int index, ::google::protobuf::int64 value);
  1021. void add_repeated_int64(::google::protobuf::int64 value);
  1022. const ::google::protobuf::RepeatedField< ::google::protobuf::int64 >&
  1023. repeated_int64() const;
  1024. ::google::protobuf::RepeatedField< ::google::protobuf::int64 >*
  1025. mutable_repeated_int64();
  1026. // repeated uint32 repeated_uint32 = 33;
  1027. int repeated_uint32_size() const;
  1028. void clear_repeated_uint32();
  1029. static const int kRepeatedUint32FieldNumber = 33;
  1030. ::google::protobuf::uint32 repeated_uint32(int index) const;
  1031. void set_repeated_uint32(int index, ::google::protobuf::uint32 value);
  1032. void add_repeated_uint32(::google::protobuf::uint32 value);
  1033. const ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >&
  1034. repeated_uint32() const;
  1035. ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >*
  1036. mutable_repeated_uint32();
  1037. // repeated uint64 repeated_uint64 = 34;
  1038. int repeated_uint64_size() const;
  1039. void clear_repeated_uint64();
  1040. static const int kRepeatedUint64FieldNumber = 34;
  1041. ::google::protobuf::uint64 repeated_uint64(int index) const;
  1042. void set_repeated_uint64(int index, ::google::protobuf::uint64 value);
  1043. void add_repeated_uint64(::google::protobuf::uint64 value);
  1044. const ::google::protobuf::RepeatedField< ::google::protobuf::uint64 >&
  1045. repeated_uint64() const;
  1046. ::google::protobuf::RepeatedField< ::google::protobuf::uint64 >*
  1047. mutable_repeated_uint64();
  1048. // repeated sint32 repeated_sint32 = 35;
  1049. int repeated_sint32_size() const;
  1050. void clear_repeated_sint32();
  1051. static const int kRepeatedSint32FieldNumber = 35;
  1052. ::google::protobuf::int32 repeated_sint32(int index) const;
  1053. void set_repeated_sint32(int index, ::google::protobuf::int32 value);
  1054. void add_repeated_sint32(::google::protobuf::int32 value);
  1055. const ::google::protobuf::RepeatedField< ::google::protobuf::int32 >&
  1056. repeated_sint32() const;
  1057. ::google::protobuf::RepeatedField< ::google::protobuf::int32 >*
  1058. mutable_repeated_sint32();
  1059. // repeated sint64 repeated_sint64 = 36;
  1060. int repeated_sint64_size() const;
  1061. void clear_repeated_sint64();
  1062. static const int kRepeatedSint64FieldNumber = 36;
  1063. ::google::protobuf::int64 repeated_sint64(int index) const;
  1064. void set_repeated_sint64(int index, ::google::protobuf::int64 value);
  1065. void add_repeated_sint64(::google::protobuf::int64 value);
  1066. const ::google::protobuf::RepeatedField< ::google::protobuf::int64 >&
  1067. repeated_sint64() const;
  1068. ::google::protobuf::RepeatedField< ::google::protobuf::int64 >*
  1069. mutable_repeated_sint64();
  1070. // repeated fixed32 repeated_fixed32 = 37;
  1071. int repeated_fixed32_size() const;
  1072. void clear_repeated_fixed32();
  1073. static const int kRepeatedFixed32FieldNumber = 37;
  1074. ::google::protobuf::uint32 repeated_fixed32(int index) const;
  1075. void set_repeated_fixed32(int index, ::google::protobuf::uint32 value);
  1076. void add_repeated_fixed32(::google::protobuf::uint32 value);
  1077. const ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >&
  1078. repeated_fixed32() const;
  1079. ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >*
  1080. mutable_repeated_fixed32();
  1081. // repeated fixed64 repeated_fixed64 = 38;
  1082. int repeated_fixed64_size() const;
  1083. void clear_repeated_fixed64();
  1084. static const int kRepeatedFixed64FieldNumber = 38;
  1085. ::google::protobuf::uint64 repeated_fixed64(int index) const;
  1086. void set_repeated_fixed64(int index, ::google::protobuf::uint64 value);
  1087. void add_repeated_fixed64(::google::protobuf::uint64 value);
  1088. const ::google::protobuf::RepeatedField< ::google::protobuf::uint64 >&
  1089. repeated_fixed64() const;
  1090. ::google::protobuf::RepeatedField< ::google::protobuf::uint64 >*
  1091. mutable_repeated_fixed64();
  1092. // repeated sfixed32 repeated_sfixed32 = 39;
  1093. int repeated_sfixed32_size() const;
  1094. void clear_repeated_sfixed32();
  1095. static const int kRepeatedSfixed32FieldNumber = 39;
  1096. ::google::protobuf::int32 repeated_sfixed32(int index) const;
  1097. void set_repeated_sfixed32(int index, ::google::protobuf::int32 value);
  1098. void add_repeated_sfixed32(::google::protobuf::int32 value);
  1099. const ::google::protobuf::RepeatedField< ::google::protobuf::int32 >&
  1100. repeated_sfixed32() const;
  1101. ::google::protobuf::RepeatedField< ::google::protobuf::int32 >*
  1102. mutable_repeated_sfixed32();
  1103. // repeated sfixed64 repeated_sfixed64 = 40;
  1104. int repeated_sfixed64_size() const;
  1105. void clear_repeated_sfixed64();
  1106. static const int kRepeatedSfixed64FieldNumber = 40;
  1107. ::google::protobuf::int64 repeated_sfixed64(int index) const;
  1108. void set_repeated_sfixed64(int index, ::google::protobuf::int64 value);
  1109. void add_repeated_sfixed64(::google::protobuf::int64 value);
  1110. const ::google::protobuf::RepeatedField< ::google::protobuf::int64 >&
  1111. repeated_sfixed64() const;
  1112. ::google::protobuf::RepeatedField< ::google::protobuf::int64 >*
  1113. mutable_repeated_sfixed64();
  1114. // repeated float repeated_float = 41;
  1115. int repeated_float_size() const;
  1116. void clear_repeated_float();
  1117. static const int kRepeatedFloatFieldNumber = 41;
  1118. float repeated_float(int index) const;
  1119. void set_repeated_float(int index, float value);
  1120. void add_repeated_float(float value);
  1121. const ::google::protobuf::RepeatedField< float >&
  1122. repeated_float() const;
  1123. ::google::protobuf::RepeatedField< float >*
  1124. mutable_repeated_float();
  1125. // repeated double repeated_double = 42;
  1126. int repeated_double_size() const;
  1127. void clear_repeated_double();
  1128. static const int kRepeatedDoubleFieldNumber = 42;
  1129. double repeated_double(int index) const;
  1130. void set_repeated_double(int index, double value);
  1131. void add_repeated_double(double value);
  1132. const ::google::protobuf::RepeatedField< double >&
  1133. repeated_double() const;
  1134. ::google::protobuf::RepeatedField< double >*
  1135. mutable_repeated_double();
  1136. // repeated bool repeated_bool = 43;
  1137. int repeated_bool_size() const;
  1138. void clear_repeated_bool();
  1139. static const int kRepeatedBoolFieldNumber = 43;
  1140. bool repeated_bool(int index) const;
  1141. void set_repeated_bool(int index, bool value);
  1142. void add_repeated_bool(bool value);
  1143. const ::google::protobuf::RepeatedField< bool >&
  1144. repeated_bool() const;
  1145. ::google::protobuf::RepeatedField< bool >*
  1146. mutable_repeated_bool();
  1147. // repeated string repeated_string = 44;
  1148. int repeated_string_size() const;
  1149. void clear_repeated_string();
  1150. static const int kRepeatedStringFieldNumber = 44;
  1151. const ::std::string& repeated_string(int index) const;
  1152. ::std::string* mutable_repeated_string(int index);
  1153. void set_repeated_string(int index, const ::std::string& value);
  1154. #if LANG_CXX11
  1155. void set_repeated_string(int index, ::std::string&& value);
  1156. #endif
  1157. void set_repeated_string(int index, const char* value);
  1158. void set_repeated_string(int index, const char* value, size_t size);
  1159. ::std::string* add_repeated_string();
  1160. void add_repeated_string(const ::std::string& value);
  1161. #if LANG_CXX11
  1162. void add_repeated_string(::std::string&& value);
  1163. #endif
  1164. void add_repeated_string(const char* value);
  1165. void add_repeated_string(const char* value, size_t size);
  1166. const ::google::protobuf::RepeatedPtrField< ::std::string>& repeated_string() const;
  1167. ::google::protobuf::RepeatedPtrField< ::std::string>* mutable_repeated_string();
  1168. // repeated bytes repeated_bytes = 45;
  1169. int repeated_bytes_size() const;
  1170. void clear_repeated_bytes();
  1171. static const int kRepeatedBytesFieldNumber = 45;
  1172. const ::std::string& repeated_bytes(int index) const;
  1173. ::std::string* mutable_repeated_bytes(int index);
  1174. void set_repeated_bytes(int index, const ::std::string& value);
  1175. #if LANG_CXX11
  1176. void set_repeated_bytes(int index, ::std::string&& value);
  1177. #endif
  1178. void set_repeated_bytes(int index, const char* value);
  1179. void set_repeated_bytes(int index, const void* value, size_t size);
  1180. ::std::string* add_repeated_bytes();
  1181. void add_repeated_bytes(const ::std::string& value);
  1182. #if LANG_CXX11
  1183. void add_repeated_bytes(::std::string&& value);
  1184. #endif
  1185. void add_repeated_bytes(const char* value);
  1186. void add_repeated_bytes(const void* value, size_t size);
  1187. const ::google::protobuf::RepeatedPtrField< ::std::string>& repeated_bytes() const;
  1188. ::google::protobuf::RepeatedPtrField< ::std::string>* mutable_repeated_bytes();
  1189. // repeated group RepeatedGroup = 46 { ... };
  1190. int repeatedgroup_size() const;
  1191. void clear_repeatedgroup();
  1192. static const int kRepeatedgroupFieldNumber = 46;
  1193. ::protobuf_unittest::TestAllTypes_RepeatedGroup* mutable_repeatedgroup(int index);
  1194. ::google::protobuf::RepeatedPtrField< ::protobuf_unittest::TestAllTypes_RepeatedGroup >*
  1195. mutable_repeatedgroup();
  1196. const ::protobuf_unittest::TestAllTypes_RepeatedGroup& repeatedgroup(int index) const;
  1197. ::protobuf_unittest::TestAllTypes_RepeatedGroup* add_repeatedgroup();
  1198. const ::google::protobuf::RepeatedPtrField< ::protobuf_unittest::TestAllTypes_RepeatedGroup >&
  1199. repeatedgroup() const;
  1200. // repeated .protobuf_unittest.TestAllTypes.NestedMessage repeated_nested_message = 48;
  1201. int repeated_nested_message_size() const;
  1202. void clear_repeated_nested_message();
  1203. static const int kRepeatedNestedMessageFieldNumber = 48;
  1204. ::protobuf_unittest::TestAllTypes_NestedMessage* mutable_repeated_nested_message(int index);
  1205. ::google::protobuf::RepeatedPtrField< ::protobuf_unittest::TestAllTypes_NestedMessage >*
  1206. mutable_repeated_nested_message();
  1207. const ::protobuf_unittest::TestAllTypes_NestedMessage& repeated_nested_message(int index) const;
  1208. ::protobuf_unittest::TestAllTypes_NestedMessage* add_repeated_nested_message();
  1209. const ::google::protobuf::RepeatedPtrField< ::protobuf_unittest::TestAllTypes_NestedMessage >&
  1210. repeated_nested_message() const;
  1211. // repeated .protobuf_unittest.ForeignMessage repeated_foreign_message = 49;
  1212. int repeated_foreign_message_size() const;
  1213. void clear_repeated_foreign_message();
  1214. static const int kRepeatedForeignMessageFieldNumber = 49;
  1215. ::protobuf_unittest::ForeignMessage* mutable_repeated_foreign_message(int index);
  1216. ::google::protobuf::RepeatedPtrField< ::protobuf_unittest::ForeignMessage >*
  1217. mutable_repeated_foreign_message();
  1218. const ::protobuf_unittest::ForeignMessage& repeated_foreign_message(int index) const;
  1219. ::protobuf_unittest::ForeignMessage* add_repeated_foreign_message();
  1220. const ::google::protobuf::RepeatedPtrField< ::protobuf_unittest::ForeignMessage >&
  1221. repeated_foreign_message() const;
  1222. // repeated .protobuf_unittest_import.ImportMessage repeated_import_message = 50;
  1223. int repeated_import_message_size() const;
  1224. void clear_repeated_import_message();
  1225. static const int kRepeatedImportMessageFieldNumber = 50;
  1226. ::protobuf_unittest_import::ImportMessage* mutable_repeated_import_message(int index);
  1227. ::google::protobuf::RepeatedPtrField< ::protobuf_unittest_import::ImportMessage >*
  1228. mutable_repeated_import_message();
  1229. const ::protobuf_unittest_import::ImportMessage& repeated_import_message(int index) const;
  1230. ::protobuf_unittest_import::ImportMessage* add_repeated_import_message();
  1231. const ::google::protobuf::RepeatedPtrField< ::protobuf_unittest_import::ImportMessage >&
  1232. repeated_import_message() const;
  1233. // repeated .protobuf_unittest.TestAllTypes.NestedEnum repeated_nested_enum = 51;
  1234. int repeated_nested_enum_size() const;
  1235. void clear_repeated_nested_enum();
  1236. static const int kRepeatedNestedEnumFieldNumber = 51;
  1237. ::protobuf_unittest::TestAllTypes_NestedEnum repeated_nested_enum(int index) const;
  1238. void set_repeated_nested_enum(int index, ::protobuf_unittest::TestAllTypes_NestedEnum value);
  1239. void add_repeated_nested_enum(::protobuf_unittest::TestAllTypes_NestedEnum value);
  1240. const ::google::protobuf::RepeatedField<int>& repeated_nested_enum() const;
  1241. ::google::protobuf::RepeatedField<int>* mutable_repeated_nested_enum();
  1242. // repeated .protobuf_unittest.ForeignEnum repeated_foreign_enum = 52;
  1243. int repeated_foreign_enum_size() const;
  1244. void clear_repeated_foreign_enum();
  1245. static const int kRepeatedForeignEnumFieldNumber = 52;
  1246. ::protobuf_unittest::ForeignEnum repeated_foreign_enum(int index) const;
  1247. void set_repeated_foreign_enum(int index, ::protobuf_unittest::ForeignEnum value);
  1248. void add_repeated_foreign_enum(::protobuf_unittest::ForeignEnum value);
  1249. const ::google::protobuf::RepeatedField<int>& repeated_foreign_enum() const;
  1250. ::google::protobuf::RepeatedField<int>* mutable_repeated_foreign_enum();
  1251. // repeated .protobuf_unittest_import.ImportEnum repeated_import_enum = 53;
  1252. int repeated_import_enum_size() const;
  1253. void clear_repeated_import_enum();
  1254. static const int kRepeatedImportEnumFieldNumber = 53;
  1255. ::protobuf_unittest_import::ImportEnum repeated_import_enum(int index) const;
  1256. void set_repeated_import_enum(int index, ::protobuf_unittest_import::ImportEnum value);
  1257. void add_repeated_import_enum(::protobuf_unittest_import::ImportEnum value);
  1258. const ::google::protobuf::RepeatedField<int>& repeated_import_enum() const;
  1259. ::google::protobuf::RepeatedField<int>* mutable_repeated_import_enum();
  1260. // repeated string repeated_string_piece = 54 [ctype = STRING_PIECE];
  1261. int repeated_string_piece_size() const;
  1262. void clear_repeated_string_piece();
  1263. static const int kRepeatedStringPieceFieldNumber = 54;
  1264. private:
  1265. // Hidden due to unknown ctype option.
  1266. const ::std::string& repeated_string_piece(int index) const;
  1267. ::std::string* mutable_repeated_string_piece(int index);
  1268. void set_repeated_string_piece(int index, const ::std::string& value);
  1269. #if LANG_CXX11
  1270. void set_repeated_string_piece(int index, ::std::string&& value);
  1271. #endif
  1272. void set_repeated_string_piece(int index, const char* value);
  1273. void set_repeated_string_piece(int index, const char* value, size_t size);
  1274. ::std::string* add_repeated_string_piece();
  1275. void add_repeated_string_piece(const ::std::string& value);
  1276. #if LANG_CXX11
  1277. void add_repeated_string_piece(::std::string&& value);
  1278. #endif
  1279. void add_repeated_string_piece(const char* value);
  1280. void add_repeated_string_piece(const char* value, size_t size);
  1281. const ::google::protobuf::RepeatedPtrField< ::std::string>& repeated_string_piece() const;
  1282. ::google::protobuf::RepeatedPtrField< ::std::string>* mutable_repeated_string_piece();
  1283. public:
  1284. // repeated string repeated_cord = 55 [ctype = CORD];
  1285. int repeated_cord_size() const;
  1286. void clear_repeated_cord();
  1287. static const int kRepeatedCordFieldNumber = 55;
  1288. private:
  1289. // Hidden due to unknown ctype option.
  1290. const ::std::string& repeated_cord(int index) const;
  1291. ::std::string* mutable_repeated_cord(int index);
  1292. void set_repeated_cord(int index, const ::std::string& value);
  1293. #if LANG_CXX11
  1294. void set_repeated_cord(int index, ::std::string&& value);
  1295. #endif
  1296. void set_repeated_cord(int index, const char* value);
  1297. void set_repeated_cord(int index, const char* value, size_t size);
  1298. ::std::string* add_repeated_cord();
  1299. void add_repeated_cord(const ::std::string& value);
  1300. #if LANG_CXX11
  1301. void add_repeated_cord(::std::string&& value);
  1302. #endif
  1303. void add_repeated_cord(const char* value);
  1304. void add_repeated_cord(const char* value, size_t size);
  1305. const ::google::protobuf::RepeatedPtrField< ::std::string>& repeated_cord() const;
  1306. ::google::protobuf::RepeatedPtrField< ::std::string>* mutable_repeated_cord();
  1307. public:
  1308. // repeated .protobuf_unittest.TestAllTypes.NestedMessage repeated_lazy_message = 57 [lazy = true];
  1309. int repeated_lazy_message_size() const;
  1310. void clear_repeated_lazy_message();
  1311. static const int kRepeatedLazyMessageFieldNumber = 57;
  1312. ::protobuf_unittest::TestAllTypes_NestedMessage* mutable_repeated_lazy_message(int index);
  1313. ::google::protobuf::RepeatedPtrField< ::protobuf_unittest::TestAllTypes_NestedMessage >*
  1314. mutable_repeated_lazy_message();
  1315. const ::protobuf_unittest::TestAllTypes_NestedMessage& repeated_lazy_message(int index) const;
  1316. ::protobuf_unittest::TestAllTypes_NestedMessage* add_repeated_lazy_message();
  1317. const ::google::protobuf::RepeatedPtrField< ::protobuf_unittest::TestAllTypes_NestedMessage >&
  1318. repeated_lazy_message() const;
  1319. // optional string optional_string = 14;
  1320. bool has_optional_string() const;
  1321. void clear_optional_string();
  1322. static const int kOptionalStringFieldNumber = 14;
  1323. const ::std::string& optional_string() const;
  1324. void set_optional_string(const ::std::string& value);
  1325. #if LANG_CXX11
  1326. void set_optional_string(::std::string&& value);
  1327. #endif
  1328. void set_optional_string(const char* value);
  1329. void set_optional_string(const char* value, size_t size);
  1330. ::std::string* mutable_optional_string();
  1331. ::std::string* release_optional_string();
  1332. void set_allocated_optional_string(::std::string* optional_string);
  1333. PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
  1334. " string fields are deprecated and will be removed in a"
  1335. " future release.")
  1336. ::std::string* unsafe_arena_release_optional_string();
  1337. PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
  1338. " string fields are deprecated and will be removed in a"
  1339. " future release.")
  1340. void unsafe_arena_set_allocated_optional_string(
  1341. ::std::string* optional_string);
  1342. // optional bytes optional_bytes = 15;
  1343. bool has_optional_bytes() const;
  1344. void clear_optional_bytes();
  1345. static const int kOptionalBytesFieldNumber = 15;
  1346. const ::std::string& optional_bytes() const;
  1347. void set_optional_bytes(const ::std::string& value);
  1348. #if LANG_CXX11
  1349. void set_optional_bytes(::std::string&& value);
  1350. #endif
  1351. void set_optional_bytes(const char* value);
  1352. void set_optional_bytes(const void* value, size_t size);
  1353. ::std::string* mutable_optional_bytes();
  1354. ::std::string* release_optional_bytes();
  1355. void set_allocated_optional_bytes(::std::string* optional_bytes);
  1356. PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
  1357. " string fields are deprecated and will be removed in a"
  1358. " future release.")
  1359. ::std::string* unsafe_arena_release_optional_bytes();
  1360. PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
  1361. " string fields are deprecated and will be removed in a"
  1362. " future release.")
  1363. void unsafe_arena_set_allocated_optional_bytes(
  1364. ::std::string* optional_bytes);
  1365. // optional string optional_string_piece = 24 [ctype = STRING_PIECE];
  1366. bool has_optional_string_piece() const;
  1367. void clear_optional_string_piece();
  1368. static const int kOptionalStringPieceFieldNumber = 24;
  1369. private:
  1370. // Hidden due to unknown ctype option.
  1371. const ::std::string& optional_string_piece() const;
  1372. void set_optional_string_piece(const ::std::string& value);
  1373. #if LANG_CXX11
  1374. void set_optional_string_piece(::std::string&& value);
  1375. #endif
  1376. void set_optional_string_piece(const char* value);
  1377. void set_optional_string_piece(const char* value, size_t size);
  1378. ::std::string* mutable_optional_string_piece();
  1379. ::std::string* release_optional_string_piece();
  1380. void set_allocated_optional_string_piece(::std::string* optional_string_piece);
  1381. PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
  1382. " string fields are deprecated and will be removed in a"
  1383. " future release.")
  1384. ::std::string* unsafe_arena_release_optional_string_piece();
  1385. PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
  1386. " string fields are deprecated and will be removed in a"
  1387. " future release.")
  1388. void unsafe_arena_set_allocated_optional_string_piece(
  1389. ::std::string* optional_string_piece);
  1390. public:
  1391. // optional string optional_cord = 25 [ctype = CORD];
  1392. bool has_optional_cord() const;
  1393. void clear_optional_cord();
  1394. static const int kOptionalCordFieldNumber = 25;
  1395. private:
  1396. // Hidden due to unknown ctype option.
  1397. const ::std::string& optional_cord() const;
  1398. void set_optional_cord(const ::std::string& value);
  1399. #if LANG_CXX11
  1400. void set_optional_cord(::std::string&& value);
  1401. #endif
  1402. void set_optional_cord(const char* value);
  1403. void set_optional_cord(const char* value, size_t size);
  1404. ::std::string* mutable_optional_cord();
  1405. ::std::string* release_optional_cord();
  1406. void set_allocated_optional_cord(::std::string* optional_cord);
  1407. PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
  1408. " string fields are deprecated and will be removed in a"
  1409. " future release.")
  1410. ::std::string* unsafe_arena_release_optional_cord();
  1411. PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
  1412. " string fields are deprecated and will be removed in a"
  1413. " future release.")
  1414. void unsafe_arena_set_allocated_optional_cord(
  1415. ::std::string* optional_cord);
  1416. public:
  1417. // optional string default_string = 74 [default = "hello"];
  1418. bool has_default_string() const;
  1419. void clear_default_string();
  1420. static const int kDefaultStringFieldNumber = 74;
  1421. const ::std::string& default_string() const;
  1422. void set_default_string(const ::std::string& value);
  1423. #if LANG_CXX11
  1424. void set_default_string(::std::string&& value);
  1425. #endif
  1426. void set_default_string(const char* value);
  1427. void set_default_string(const char* value, size_t size);
  1428. ::std::string* mutable_default_string();
  1429. ::std::string* release_default_string();
  1430. void set_allocated_default_string(::std::string* default_string);
  1431. PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
  1432. " string fields are deprecated and will be removed in a"
  1433. " future release.")
  1434. ::std::string* unsafe_arena_release_default_string();
  1435. PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
  1436. " string fields are deprecated and will be removed in a"
  1437. " future release.")
  1438. void unsafe_arena_set_allocated_default_string(
  1439. ::std::string* default_string);
  1440. // optional bytes default_bytes = 75 [default = "world"];
  1441. bool has_default_bytes() const;
  1442. void clear_default_bytes();
  1443. static const int kDefaultBytesFieldNumber = 75;
  1444. const ::std::string& default_bytes() const;
  1445. void set_default_bytes(const ::std::string& value);
  1446. #if LANG_CXX11
  1447. void set_default_bytes(::std::string&& value);
  1448. #endif
  1449. void set_default_bytes(const char* value);
  1450. void set_default_bytes(const void* value, size_t size);
  1451. ::std::string* mutable_default_bytes();
  1452. ::std::string* release_default_bytes();
  1453. void set_allocated_default_bytes(::std::string* default_bytes);
  1454. PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
  1455. " string fields are deprecated and will be removed in a"
  1456. " future release.")
  1457. ::std::string* unsafe_arena_release_default_bytes();
  1458. PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
  1459. " string fields are deprecated and will be removed in a"
  1460. " future release.")
  1461. void unsafe_arena_set_allocated_default_bytes(
  1462. ::std::string* default_bytes);
  1463. // optional string default_string_piece = 84 [default = "abc", ctype = STRING_PIECE];
  1464. bool has_default_string_piece() const;
  1465. void clear_default_string_piece();
  1466. static const int kDefaultStringPieceFieldNumber = 84;
  1467. private:
  1468. // Hidden due to unknown ctype option.
  1469. const ::std::string& default_string_piece() const;
  1470. void set_default_string_piece(const ::std::string& value);
  1471. #if LANG_CXX11
  1472. void set_default_string_piece(::std::string&& value);
  1473. #endif
  1474. void set_default_string_piece(const char* value);
  1475. void set_default_string_piece(const char* value, size_t size);
  1476. ::std::string* mutable_default_string_piece();
  1477. ::std::string* release_default_string_piece();
  1478. void set_allocated_default_string_piece(::std::string* default_string_piece);
  1479. PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
  1480. " string fields are deprecated and will be removed in a"
  1481. " future release.")
  1482. ::std::string* unsafe_arena_release_default_string_piece();
  1483. PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
  1484. " string fields are deprecated and will be removed in a"
  1485. " future release.")
  1486. void unsafe_arena_set_allocated_default_string_piece(
  1487. ::std::string* default_string_piece);
  1488. public:
  1489. // optional string default_cord = 85 [default = "123", ctype = CORD];
  1490. bool has_default_cord() const;
  1491. void clear_default_cord();
  1492. static const int kDefaultCordFieldNumber = 85;
  1493. private:
  1494. // Hidden due to unknown ctype option.
  1495. const ::std::string& default_cord() const;
  1496. void set_default_cord(const ::std::string& value);
  1497. #if LANG_CXX11
  1498. void set_default_cord(::std::string&& value);
  1499. #endif
  1500. void set_default_cord(const char* value);
  1501. void set_default_cord(const char* value, size_t size);
  1502. ::std::string* mutable_default_cord();
  1503. ::std::string* release_default_cord();
  1504. void set_allocated_default_cord(::std::string* default_cord);
  1505. PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
  1506. " string fields are deprecated and will be removed in a"
  1507. " future release.")
  1508. ::std::string* unsafe_arena_release_default_cord();
  1509. PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
  1510. " string fields are deprecated and will be removed in a"
  1511. " future release.")
  1512. void unsafe_arena_set_allocated_default_cord(
  1513. ::std::string* default_cord);
  1514. public:
  1515. // optional group OptionalGroup = 16 { ... };
  1516. bool has_optionalgroup() const;
  1517. void clear_optionalgroup();
  1518. static const int kOptionalgroupFieldNumber = 16;
  1519. private:
  1520. const ::protobuf_unittest::TestAllTypes_OptionalGroup& _internal_optionalgroup() const;
  1521. public:
  1522. const ::protobuf_unittest::TestAllTypes_OptionalGroup& optionalgroup() const;
  1523. ::protobuf_unittest::TestAllTypes_OptionalGroup* release_optionalgroup();
  1524. ::protobuf_unittest::TestAllTypes_OptionalGroup* mutable_optionalgroup();
  1525. void set_allocated_optionalgroup(::protobuf_unittest::TestAllTypes_OptionalGroup* optionalgroup);
  1526. void unsafe_arena_set_allocated_optionalgroup(
  1527. ::protobuf_unittest::TestAllTypes_OptionalGroup* optionalgroup);
  1528. ::protobuf_unittest::TestAllTypes_OptionalGroup* unsafe_arena_release_optionalgroup();
  1529. // optional .protobuf_unittest.TestAllTypes.NestedMessage optional_nested_message = 18;
  1530. bool has_optional_nested_message() const;
  1531. void clear_optional_nested_message();
  1532. static const int kOptionalNestedMessageFieldNumber = 18;
  1533. private:
  1534. const ::protobuf_unittest::TestAllTypes_NestedMessage& _internal_optional_nested_message() const;
  1535. public:
  1536. const ::protobuf_unittest::TestAllTypes_NestedMessage& optional_nested_message() const;
  1537. ::protobuf_unittest::TestAllTypes_NestedMessage* release_optional_nested_message();
  1538. ::protobuf_unittest::TestAllTypes_NestedMessage* mutable_optional_nested_message();
  1539. void set_allocated_optional_nested_message(::protobuf_unittest::TestAllTypes_NestedMessage* optional_nested_message);
  1540. void unsafe_arena_set_allocated_optional_nested_message(
  1541. ::protobuf_unittest::TestAllTypes_NestedMessage* optional_nested_message);
  1542. ::protobuf_unittest::TestAllTypes_NestedMessage* unsafe_arena_release_optional_nested_message();
  1543. // optional .protobuf_unittest.ForeignMessage optional_foreign_message = 19;
  1544. bool has_optional_foreign_message() const;
  1545. void clear_optional_foreign_message();
  1546. static const int kOptionalForeignMessageFieldNumber = 19;
  1547. private:
  1548. const ::protobuf_unittest::ForeignMessage& _internal_optional_foreign_message() const;
  1549. public:
  1550. const ::protobuf_unittest::ForeignMessage& optional_foreign_message() const;
  1551. ::protobuf_unittest::ForeignMessage* release_optional_foreign_message();
  1552. ::protobuf_unittest::ForeignMessage* mutable_optional_foreign_message();
  1553. void set_allocated_optional_foreign_message(::protobuf_unittest::ForeignMessage* optional_foreign_message);
  1554. void unsafe_arena_set_allocated_optional_foreign_message(
  1555. ::protobuf_unittest::ForeignMessage* optional_foreign_message);
  1556. ::protobuf_unittest::ForeignMessage* unsafe_arena_release_optional_foreign_message();
  1557. // optional .protobuf_unittest_import.ImportMessage optional_import_message = 20;
  1558. bool has_optional_import_message() const;
  1559. void clear_optional_import_message();
  1560. static const int kOptionalImportMessageFieldNumber = 20;
  1561. private:
  1562. const ::protobuf_unittest_import::ImportMessage& _internal_optional_import_message() const;
  1563. public:
  1564. const ::protobuf_unittest_import::ImportMessage& optional_import_message() const;
  1565. ::protobuf_unittest_import::ImportMessage* release_optional_import_message();
  1566. ::protobuf_unittest_import::ImportMessage* mutable_optional_import_message();
  1567. void set_allocated_optional_import_message(::protobuf_unittest_import::ImportMessage* optional_import_message);
  1568. void unsafe_arena_set_allocated_optional_import_message(
  1569. ::protobuf_unittest_import::ImportMessage* optional_import_message);
  1570. ::protobuf_unittest_import::ImportMessage* unsafe_arena_release_optional_import_message();
  1571. // optional .protobuf_unittest_import.PublicImportMessage optional_public_import_message = 26;
  1572. bool has_optional_public_import_message() const;
  1573. void clear_optional_public_import_message();
  1574. static const int kOptionalPublicImportMessageFieldNumber = 26;
  1575. private:
  1576. const ::protobuf_unittest_import::PublicImportMessage& _internal_optional_public_import_message() const;
  1577. public:
  1578. const ::protobuf_unittest_import::PublicImportMessage& optional_public_import_message() const;
  1579. ::protobuf_unittest_import::PublicImportMessage* release_optional_public_import_message();
  1580. ::protobuf_unittest_import::PublicImportMessage* mutable_optional_public_import_message();
  1581. void set_allocated_optional_public_import_message(::protobuf_unittest_import::PublicImportMessage* optional_public_import_message);
  1582. void unsafe_arena_set_allocated_optional_public_import_message(
  1583. ::protobuf_unittest_import::PublicImportMessage* optional_public_import_message);
  1584. ::protobuf_unittest_import::PublicImportMessage* unsafe_arena_release_optional_public_import_message();
  1585. // optional .protobuf_unittest.TestAllTypes.NestedMessage optional_lazy_message = 27 [lazy = true];
  1586. bool has_optional_lazy_message() const;
  1587. void clear_optional_lazy_message();
  1588. static const int kOptionalLazyMessageFieldNumber = 27;
  1589. private:
  1590. const ::protobuf_unittest::TestAllTypes_NestedMessage& _internal_optional_lazy_message() const;
  1591. public:
  1592. const ::protobuf_unittest::TestAllTypes_NestedMessage& optional_lazy_message() const;
  1593. ::protobuf_unittest::TestAllTypes_NestedMessage* release_optional_lazy_message();
  1594. ::protobuf_unittest::TestAllTypes_NestedMessage* mutable_optional_lazy_message();
  1595. void set_allocated_optional_lazy_message(::protobuf_unittest::TestAllTypes_NestedMessage* optional_lazy_message);
  1596. void unsafe_arena_set_allocated_optional_lazy_message(
  1597. ::protobuf_unittest::TestAllTypes_NestedMessage* optional_lazy_message);
  1598. ::protobuf_unittest::TestAllTypes_NestedMessage* unsafe_arena_release_optional_lazy_message();
  1599. // optional int64 optional_int64 = 2;
  1600. bool has_optional_int64() const;
  1601. void clear_optional_int64();
  1602. static const int kOptionalInt64FieldNumber = 2;
  1603. ::google::protobuf::int64 optional_int64() const;
  1604. void set_optional_int64(::google::protobuf::int64 value);
  1605. // optional int32 optional_int32 = 1;
  1606. bool has_optional_int32() const;
  1607. void clear_optional_int32();
  1608. static const int kOptionalInt32FieldNumber = 1;
  1609. ::google::protobuf::int32 optional_int32() const;
  1610. void set_optional_int32(::google::protobuf::int32 value);
  1611. // optional uint32 optional_uint32 = 3;
  1612. bool has_optional_uint32() const;
  1613. void clear_optional_uint32();
  1614. static const int kOptionalUint32FieldNumber = 3;
  1615. ::google::protobuf::uint32 optional_uint32() const;
  1616. void set_optional_uint32(::google::protobuf::uint32 value);
  1617. // optional uint64 optional_uint64 = 4;
  1618. bool has_optional_uint64() const;
  1619. void clear_optional_uint64();
  1620. static const int kOptionalUint64FieldNumber = 4;
  1621. ::google::protobuf::uint64 optional_uint64() const;
  1622. void set_optional_uint64(::google::protobuf::uint64 value);
  1623. // optional sint64 optional_sint64 = 6;
  1624. bool has_optional_sint64() const;
  1625. void clear_optional_sint64();
  1626. static const int kOptionalSint64FieldNumber = 6;
  1627. ::google::protobuf::int64 optional_sint64() const;
  1628. void set_optional_sint64(::google::protobuf::int64 value);
  1629. // optional sint32 optional_sint32 = 5;
  1630. bool has_optional_sint32() const;
  1631. void clear_optional_sint32();
  1632. static const int kOptionalSint32FieldNumber = 5;
  1633. ::google::protobuf::int32 optional_sint32() const;
  1634. void set_optional_sint32(::google::protobuf::int32 value);
  1635. // optional fixed32 optional_fixed32 = 7;
  1636. bool has_optional_fixed32() const;
  1637. void clear_optional_fixed32();
  1638. static const int kOptionalFixed32FieldNumber = 7;
  1639. ::google::protobuf::uint32 optional_fixed32() const;
  1640. void set_optional_fixed32(::google::protobuf::uint32 value);
  1641. // optional fixed64 optional_fixed64 = 8;
  1642. bool has_optional_fixed64() const;
  1643. void clear_optional_fixed64();
  1644. static const int kOptionalFixed64FieldNumber = 8;
  1645. ::google::protobuf::uint64 optional_fixed64() const;
  1646. void set_optional_fixed64(::google::protobuf::uint64 value);
  1647. // optional sfixed64 optional_sfixed64 = 10;
  1648. bool has_optional_sfixed64() const;
  1649. void clear_optional_sfixed64();
  1650. static const int kOptionalSfixed64FieldNumber = 10;
  1651. ::google::protobuf::int64 optional_sfixed64() const;
  1652. void set_optional_sfixed64(::google::protobuf::int64 value);
  1653. // optional sfixed32 optional_sfixed32 = 9;
  1654. bool has_optional_sfixed32() const;
  1655. void clear_optional_sfixed32();
  1656. static const int kOptionalSfixed32FieldNumber = 9;
  1657. ::google::protobuf::int32 optional_sfixed32() const;
  1658. void set_optional_sfixed32(::google::protobuf::int32 value);
  1659. // optional float optional_float = 11;
  1660. bool has_optional_float() const;
  1661. void clear_optional_float();
  1662. static const int kOptionalFloatFieldNumber = 11;
  1663. float optional_float() const;
  1664. void set_optional_float(float value);
  1665. // optional double optional_double = 12;
  1666. bool has_optional_double() const;
  1667. void clear_optional_double();
  1668. static const int kOptionalDoubleFieldNumber = 12;
  1669. double optional_double() const;
  1670. void set_optional_double(double value);
  1671. // optional bool optional_bool = 13;
  1672. bool has_optional_bool() const;
  1673. void clear_optional_bool();
  1674. static const int kOptionalBoolFieldNumber = 13;
  1675. bool optional_bool() const;
  1676. void set_optional_bool(bool value);
  1677. // optional .protobuf_unittest_import.ImportEnum default_import_enum = 83 [default = IMPORT_BAR];
  1678. bool has_default_import_enum() const;
  1679. void clear_default_import_enum();
  1680. static const int kDefaultImportEnumFieldNumber = 83;
  1681. ::protobuf_unittest_import::ImportEnum default_import_enum() const;
  1682. void set_default_import_enum(::protobuf_unittest_import::ImportEnum value);
  1683. // optional .protobuf_unittest.TestAllTypes.NestedEnum optional_nested_enum = 21;
  1684. bool has_optional_nested_enum() const;
  1685. void clear_optional_nested_enum();
  1686. static const int kOptionalNestedEnumFieldNumber = 21;
  1687. ::protobuf_unittest::TestAllTypes_NestedEnum optional_nested_enum() const;
  1688. void set_optional_nested_enum(::protobuf_unittest::TestAllTypes_NestedEnum value);
  1689. // optional .protobuf_unittest.ForeignEnum optional_foreign_enum = 22;
  1690. bool has_optional_foreign_enum() const;
  1691. void clear_optional_foreign_enum();
  1692. static const int kOptionalForeignEnumFieldNumber = 22;
  1693. ::protobuf_unittest::ForeignEnum optional_foreign_enum() const;
  1694. void set_optional_foreign_enum(::protobuf_unittest::ForeignEnum value);
  1695. // optional .protobuf_unittest_import.ImportEnum optional_import_enum = 23;
  1696. bool has_optional_import_enum() const;
  1697. void clear_optional_import_enum();
  1698. static const int kOptionalImportEnumFieldNumber = 23;
  1699. ::protobuf_unittest_import::ImportEnum optional_import_enum() const;
  1700. void set_optional_import_enum(::protobuf_unittest_import::ImportEnum value);
  1701. // optional int32 default_int32 = 61 [default = 41];
  1702. bool has_default_int32() const;
  1703. void clear_default_int32();
  1704. static const int kDefaultInt32FieldNumber = 61;
  1705. ::google::protobuf::int32 default_int32() const;
  1706. void set_default_int32(::google::protobuf::int32 value);
  1707. // optional int64 default_int64 = 62 [default = 42];
  1708. bool has_default_int64() const;
  1709. void clear_default_int64();
  1710. static const int kDefaultInt64FieldNumber = 62;
  1711. ::google::protobuf::int64 default_int64() const;
  1712. void set_default_int64(::google::protobuf::int64 value);
  1713. // optional uint64 default_uint64 = 64 [default = 44];
  1714. bool has_default_uint64() const;
  1715. void clear_default_uint64();
  1716. static const int kDefaultUint64FieldNumber = 64;
  1717. ::google::protobuf::uint64 default_uint64() const;
  1718. void set_default_uint64(::google::protobuf::uint64 value);
  1719. // optional uint32 default_uint32 = 63 [default = 43];
  1720. bool has_default_uint32() const;
  1721. void clear_default_uint32();
  1722. static const int kDefaultUint32FieldNumber = 63;
  1723. ::google::protobuf::uint32 default_uint32() const;
  1724. void set_default_uint32(::google::protobuf::uint32 value);
  1725. // optional sint32 default_sint32 = 65 [default = -45];
  1726. bool has_default_sint32() const;
  1727. void clear_default_sint32();
  1728. static const int kDefaultSint32FieldNumber = 65;
  1729. ::google::protobuf::int32 default_sint32() const;
  1730. void set_default_sint32(::google::protobuf::int32 value);
  1731. // optional sint64 default_sint64 = 66 [default = 46];
  1732. bool has_default_sint64() const;
  1733. void clear_default_sint64();
  1734. static const int kDefaultSint64FieldNumber = 66;
  1735. ::google::protobuf::int64 default_sint64() const;
  1736. void set_default_sint64(::google::protobuf::int64 value);
  1737. // optional fixed64 default_fixed64 = 68 [default = 48];
  1738. bool has_default_fixed64() const;
  1739. void clear_default_fixed64();
  1740. static const int kDefaultFixed64FieldNumber = 68;
  1741. ::google::protobuf::uint64 default_fixed64() const;
  1742. void set_default_fixed64(::google::protobuf::uint64 value);
  1743. // optional fixed32 default_fixed32 = 67 [default = 47];
  1744. bool has_default_fixed32() const;
  1745. void clear_default_fixed32();
  1746. static const int kDefaultFixed32FieldNumber = 67;
  1747. ::google::protobuf::uint32 default_fixed32() const;
  1748. void set_default_fixed32(::google::protobuf::uint32 value);
  1749. // optional sfixed32 default_sfixed32 = 69 [default = 49];
  1750. bool has_default_sfixed32() const;
  1751. void clear_default_sfixed32();
  1752. static const int kDefaultSfixed32FieldNumber = 69;
  1753. ::google::protobuf::int32 default_sfixed32() const;
  1754. void set_default_sfixed32(::google::protobuf::int32 value);
  1755. // optional sfixed64 default_sfixed64 = 70 [default = -50];
  1756. bool has_default_sfixed64() const;
  1757. void clear_default_sfixed64();
  1758. static const int kDefaultSfixed64FieldNumber = 70;
  1759. ::google::protobuf::int64 default_sfixed64() const;
  1760. void set_default_sfixed64(::google::protobuf::int64 value);
  1761. // optional double default_double = 72 [default = 52000];
  1762. bool has_default_double() const;
  1763. void clear_default_double();
  1764. static const int kDefaultDoubleFieldNumber = 72;
  1765. double default_double() const;
  1766. void set_default_double(double value);
  1767. // optional float default_float = 71 [default = 51.5];
  1768. bool has_default_float() const;
  1769. void clear_default_float();
  1770. static const int kDefaultFloatFieldNumber = 71;
  1771. float default_float() const;
  1772. void set_default_float(float value);
  1773. // optional bool default_bool = 73 [default = true];
  1774. bool has_default_bool() const;
  1775. void clear_default_bool();
  1776. static const int kDefaultBoolFieldNumber = 73;
  1777. bool default_bool() const;
  1778. void set_default_bool(bool value);
  1779. // optional .protobuf_unittest.TestAllTypes.NestedEnum default_nested_enum = 81 [default = BAR];
  1780. bool has_default_nested_enum() const;
  1781. void clear_default_nested_enum();
  1782. static const int kDefaultNestedEnumFieldNumber = 81;
  1783. ::protobuf_unittest::TestAllTypes_NestedEnum default_nested_enum() const;
  1784. void set_default_nested_enum(::protobuf_unittest::TestAllTypes_NestedEnum value);
  1785. // optional .protobuf_unittest.ForeignEnum default_foreign_enum = 82 [default = FOREIGN_BAR];
  1786. bool has_default_foreign_enum() const;
  1787. void clear_default_foreign_enum();
  1788. static const int kDefaultForeignEnumFieldNumber = 82;
  1789. ::protobuf_unittest::ForeignEnum default_foreign_enum() const;
  1790. void set_default_foreign_enum(::protobuf_unittest::ForeignEnum value);
  1791. // optional uint32 oneof_uint32 = 111;
  1792. bool has_oneof_uint32() const;
  1793. void clear_oneof_uint32();
  1794. static const int kOneofUint32FieldNumber = 111;
  1795. ::google::protobuf::uint32 oneof_uint32() const;
  1796. void set_oneof_uint32(::google::protobuf::uint32 value);
  1797. // optional .protobuf_unittest.TestAllTypes.NestedMessage oneof_nested_message = 112;
  1798. bool has_oneof_nested_message() const;
  1799. void clear_oneof_nested_message();
  1800. static const int kOneofNestedMessageFieldNumber = 112;
  1801. private:
  1802. const ::protobuf_unittest::TestAllTypes_NestedMessage& _internal_oneof_nested_message() const;
  1803. public:
  1804. const ::protobuf_unittest::TestAllTypes_NestedMessage& oneof_nested_message() const;
  1805. ::protobuf_unittest::TestAllTypes_NestedMessage* release_oneof_nested_message();
  1806. ::protobuf_unittest::TestAllTypes_NestedMessage* mutable_oneof_nested_message();
  1807. void set_allocated_oneof_nested_message(::protobuf_unittest::TestAllTypes_NestedMessage* oneof_nested_message);
  1808. void unsafe_arena_set_allocated_oneof_nested_message(
  1809. ::protobuf_unittest::TestAllTypes_NestedMessage* oneof_nested_message);
  1810. ::protobuf_unittest::TestAllTypes_NestedMessage* unsafe_arena_release_oneof_nested_message();
  1811. // optional string oneof_string = 113;
  1812. bool has_oneof_string() const;
  1813. void clear_oneof_string();
  1814. static const int kOneofStringFieldNumber = 113;
  1815. const ::std::string& oneof_string() const;
  1816. void set_oneof_string(const ::std::string& value);
  1817. #if LANG_CXX11
  1818. void set_oneof_string(::std::string&& value);
  1819. #endif
  1820. void set_oneof_string(const char* value);
  1821. void set_oneof_string(const char* value, size_t size);
  1822. ::std::string* mutable_oneof_string();
  1823. ::std::string* release_oneof_string();
  1824. void set_allocated_oneof_string(::std::string* oneof_string);
  1825. PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
  1826. " string fields are deprecated and will be removed in a"
  1827. " future release.")
  1828. ::std::string* unsafe_arena_release_oneof_string();
  1829. PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
  1830. " string fields are deprecated and will be removed in a"
  1831. " future release.")
  1832. void unsafe_arena_set_allocated_oneof_string(
  1833. ::std::string* oneof_string);
  1834. // optional bytes oneof_bytes = 114;
  1835. bool has_oneof_bytes() const;
  1836. void clear_oneof_bytes();
  1837. static const int kOneofBytesFieldNumber = 114;
  1838. const ::std::string& oneof_bytes() const;
  1839. void set_oneof_bytes(const ::std::string& value);
  1840. #if LANG_CXX11
  1841. void set_oneof_bytes(::std::string&& value);
  1842. #endif
  1843. void set_oneof_bytes(const char* value);
  1844. void set_oneof_bytes(const void* value, size_t size);
  1845. ::std::string* mutable_oneof_bytes();
  1846. ::std::string* release_oneof_bytes();
  1847. void set_allocated_oneof_bytes(::std::string* oneof_bytes);
  1848. PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
  1849. " string fields are deprecated and will be removed in a"
  1850. " future release.")
  1851. ::std::string* unsafe_arena_release_oneof_bytes();
  1852. PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
  1853. " string fields are deprecated and will be removed in a"
  1854. " future release.")
  1855. void unsafe_arena_set_allocated_oneof_bytes(
  1856. ::std::string* oneof_bytes);
  1857. void clear_oneof_field();
  1858. OneofFieldCase oneof_field_case() const;
  1859. // @@protoc_insertion_point(class_scope:protobuf_unittest.TestAllTypes)
  1860. private:
  1861. void set_has_optional_int32();
  1862. void clear_has_optional_int32();
  1863. void set_has_optional_int64();
  1864. void clear_has_optional_int64();
  1865. void set_has_optional_uint32();
  1866. void clear_has_optional_uint32();
  1867. void set_has_optional_uint64();
  1868. void clear_has_optional_uint64();
  1869. void set_has_optional_sint32();
  1870. void clear_has_optional_sint32();
  1871. void set_has_optional_sint64();
  1872. void clear_has_optional_sint64();
  1873. void set_has_optional_fixed32();
  1874. void clear_has_optional_fixed32();
  1875. void set_has_optional_fixed64();
  1876. void clear_has_optional_fixed64();
  1877. void set_has_optional_sfixed32();
  1878. void clear_has_optional_sfixed32();
  1879. void set_has_optional_sfixed64();
  1880. void clear_has_optional_sfixed64();
  1881. void set_has_optional_float();
  1882. void clear_has_optional_float();
  1883. void set_has_optional_double();
  1884. void clear_has_optional_double();
  1885. void set_has_optional_bool();
  1886. void clear_has_optional_bool();
  1887. void set_has_optional_string();
  1888. void clear_has_optional_string();
  1889. void set_has_optional_bytes();
  1890. void clear_has_optional_bytes();
  1891. void set_has_optionalgroup();
  1892. void clear_has_optionalgroup();
  1893. void set_has_optional_nested_message();
  1894. void clear_has_optional_nested_message();
  1895. void set_has_optional_foreign_message();
  1896. void clear_has_optional_foreign_message();
  1897. void set_has_optional_import_message();
  1898. void clear_has_optional_import_message();
  1899. void set_has_optional_nested_enum();
  1900. void clear_has_optional_nested_enum();
  1901. void set_has_optional_foreign_enum();
  1902. void clear_has_optional_foreign_enum();
  1903. void set_has_optional_import_enum();
  1904. void clear_has_optional_import_enum();
  1905. void set_has_optional_string_piece();
  1906. void clear_has_optional_string_piece();
  1907. void set_has_optional_cord();
  1908. void clear_has_optional_cord();
  1909. void set_has_optional_public_import_message();
  1910. void clear_has_optional_public_import_message();
  1911. void set_has_optional_lazy_message();
  1912. void clear_has_optional_lazy_message();
  1913. void set_has_default_int32();
  1914. void clear_has_default_int32();
  1915. void set_has_default_int64();
  1916. void clear_has_default_int64();
  1917. void set_has_default_uint32();
  1918. void clear_has_default_uint32();
  1919. void set_has_default_uint64();
  1920. void clear_has_default_uint64();
  1921. void set_has_default_sint32();
  1922. void clear_has_default_sint32();
  1923. void set_has_default_sint64();
  1924. void clear_has_default_sint64();
  1925. void set_has_default_fixed32();
  1926. void clear_has_default_fixed32();
  1927. void set_has_default_fixed64();
  1928. void clear_has_default_fixed64();
  1929. void set_has_default_sfixed32();
  1930. void clear_has_default_sfixed32();
  1931. void set_has_default_sfixed64();
  1932. void clear_has_default_sfixed64();
  1933. void set_has_default_float();
  1934. void clear_has_default_float();
  1935. void set_has_default_double();
  1936. void clear_has_default_double();
  1937. void set_has_default_bool();
  1938. void clear_has_default_bool();
  1939. void set_has_default_string();
  1940. void clear_has_default_string();
  1941. void set_has_default_bytes();
  1942. void clear_has_default_bytes();
  1943. void set_has_default_nested_enum();
  1944. void clear_has_default_nested_enum();
  1945. void set_has_default_foreign_enum();
  1946. void clear_has_default_foreign_enum();
  1947. void set_has_default_import_enum();
  1948. void clear_has_default_import_enum();
  1949. void set_has_default_string_piece();
  1950. void clear_has_default_string_piece();
  1951. void set_has_default_cord();
  1952. void clear_has_default_cord();
  1953. void set_has_oneof_uint32();
  1954. void set_has_oneof_nested_message();
  1955. void set_has_oneof_string();
  1956. void set_has_oneof_bytes();
  1957. inline bool has_oneof_field() const;
  1958. inline void clear_has_oneof_field();
  1959. ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
  1960. template <typename T> friend class ::google::protobuf::Arena::InternalHelper;
  1961. typedef void InternalArenaConstructable_;
  1962. typedef void DestructorSkippable_;
  1963. ::google::protobuf::internal::HasBits<2> _has_bits_;
  1964. ::google::protobuf::RepeatedField< ::google::protobuf::int32 > repeated_int32_;
  1965. ::google::protobuf::RepeatedField< ::google::protobuf::int64 > repeated_int64_;
  1966. ::google::protobuf::RepeatedField< ::google::protobuf::uint32 > repeated_uint32_;
  1967. ::google::protobuf::RepeatedField< ::google::protobuf::uint64 > repeated_uint64_;
  1968. ::google::protobuf::RepeatedField< ::google::protobuf::int32 > repeated_sint32_;
  1969. ::google::protobuf::RepeatedField< ::google::protobuf::int64 > repeated_sint64_;
  1970. ::google::protobuf::RepeatedField< ::google::protobuf::uint32 > repeated_fixed32_;
  1971. ::google::protobuf::RepeatedField< ::google::protobuf::uint64 > repeated_fixed64_;
  1972. ::google::protobuf::RepeatedField< ::google::protobuf::int32 > repeated_sfixed32_;
  1973. ::google::protobuf::RepeatedField< ::google::protobuf::int64 > repeated_sfixed64_;
  1974. ::google::protobuf::RepeatedField< float > repeated_float_;
  1975. ::google::protobuf::RepeatedField< double > repeated_double_;
  1976. ::google::protobuf::RepeatedField< bool > repeated_bool_;
  1977. ::google::protobuf::RepeatedPtrField< ::std::string> repeated_string_;
  1978. ::google::protobuf::RepeatedPtrField< ::std::string> repeated_bytes_;
  1979. ::google::protobuf::RepeatedPtrField< ::protobuf_unittest::TestAllTypes_RepeatedGroup > repeatedgroup_;
  1980. ::google::protobuf::RepeatedPtrField< ::protobuf_unittest::TestAllTypes_NestedMessage > repeated_nested_message_;
  1981. ::google::protobuf::RepeatedPtrField< ::protobuf_unittest::ForeignMessage > repeated_foreign_message_;
  1982. ::google::protobuf::RepeatedPtrField< ::protobuf_unittest_import::ImportMessage > repeated_import_message_;
  1983. ::google::protobuf::RepeatedField<int> repeated_nested_enum_;
  1984. ::google::protobuf::RepeatedField<int> repeated_foreign_enum_;
  1985. ::google::protobuf::RepeatedField<int> repeated_import_enum_;
  1986. ::google::protobuf::RepeatedPtrField< ::std::string> repeated_string_piece_;
  1987. ::google::protobuf::RepeatedPtrField< ::std::string> repeated_cord_;
  1988. ::google::protobuf::RepeatedPtrField< ::protobuf_unittest::TestAllTypes_NestedMessage > repeated_lazy_message_;
  1989. ::google::protobuf::internal::ArenaStringPtr optional_string_;
  1990. ::google::protobuf::internal::ArenaStringPtr optional_bytes_;
  1991. ::google::protobuf::internal::ArenaStringPtr optional_string_piece_;
  1992. ::google::protobuf::internal::ArenaStringPtr optional_cord_;
  1993. public:
  1994. static ::google::protobuf::internal::ExplicitlyConstructed< ::std::string> _i_give_permission_to_break_this_code_default_default_string_;
  1995. private:
  1996. ::google::protobuf::internal::ArenaStringPtr default_string_;
  1997. public:
  1998. static ::google::protobuf::internal::ExplicitlyConstructed< ::std::string> _i_give_permission_to_break_this_code_default_default_bytes_;
  1999. private:
  2000. ::google::protobuf::internal::ArenaStringPtr default_bytes_;
  2001. public:
  2002. static ::google::protobuf::internal::ExplicitlyConstructed< ::std::string> _i_give_permission_to_break_this_code_default_default_string_piece_;
  2003. private:
  2004. ::google::protobuf::internal::ArenaStringPtr default_string_piece_;
  2005. public:
  2006. static ::google::protobuf::internal::ExplicitlyConstructed< ::std::string> _i_give_permission_to_break_this_code_default_default_cord_;
  2007. private:
  2008. ::google::protobuf::internal::ArenaStringPtr default_cord_;
  2009. ::protobuf_unittest::TestAllTypes_OptionalGroup* optionalgroup_;
  2010. ::protobuf_unittest::TestAllTypes_NestedMessage* optional_nested_message_;
  2011. ::protobuf_unittest::ForeignMessage* optional_foreign_message_;
  2012. ::protobuf_unittest_import::ImportMessage* optional_import_message_;
  2013. ::protobuf_unittest_import::PublicImportMessage* optional_public_import_message_;
  2014. ::protobuf_unittest::TestAllTypes_NestedMessage* optional_lazy_message_;
  2015. ::google::protobuf::int64 optional_int64_;
  2016. ::google::protobuf::int32 optional_int32_;
  2017. ::google::protobuf::uint32 optional_uint32_;
  2018. ::google::protobuf::uint64 optional_uint64_;
  2019. ::google::protobuf::int64 optional_sint64_;
  2020. ::google::protobuf::int32 optional_sint32_;
  2021. ::google::protobuf::uint32 optional_fixed32_;
  2022. ::google::protobuf::uint64 optional_fixed64_;
  2023. ::google::protobuf::int64 optional_sfixed64_;
  2024. ::google::protobuf::int32 optional_sfixed32_;
  2025. float optional_float_;
  2026. double optional_double_;
  2027. bool optional_bool_;
  2028. int default_import_enum_;
  2029. int optional_nested_enum_;
  2030. int optional_foreign_enum_;
  2031. int optional_import_enum_;
  2032. ::google::protobuf::int32 default_int32_;
  2033. ::google::protobuf::int64 default_int64_;
  2034. ::google::protobuf::uint64 default_uint64_;
  2035. ::google::protobuf::uint32 default_uint32_;
  2036. ::google::protobuf::int32 default_sint32_;
  2037. ::google::protobuf::int64 default_sint64_;
  2038. ::google::protobuf::uint64 default_fixed64_;
  2039. ::google::protobuf::uint32 default_fixed32_;
  2040. ::google::protobuf::int32 default_sfixed32_;
  2041. ::google::protobuf::int64 default_sfixed64_;
  2042. double default_double_;
  2043. float default_float_;
  2044. bool default_bool_;
  2045. int default_nested_enum_;
  2046. int default_foreign_enum_;
  2047. union OneofFieldUnion {
  2048. OneofFieldUnion() {}
  2049. ::google::protobuf::uint32 oneof_uint32_;
  2050. ::protobuf_unittest::TestAllTypes_NestedMessage* oneof_nested_message_;
  2051. ::google::protobuf::internal::ArenaStringPtr oneof_string_;
  2052. ::google::protobuf::internal::ArenaStringPtr oneof_bytes_;
  2053. } oneof_field_;
  2054. mutable ::google::protobuf::internal::CachedSize _cached_size_;
  2055. ::google::protobuf::uint32 _oneof_case_[1];
  2056. friend struct ::protobuf_google_2fprotobuf_2funittest_2eproto::TableStruct;
  2057. };
  2058. // -------------------------------------------------------------------
  2059. class NestedTestAllTypes : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:protobuf_unittest.NestedTestAllTypes) */ {
  2060. public:
  2061. NestedTestAllTypes();
  2062. virtual ~NestedTestAllTypes();
  2063. NestedTestAllTypes(const NestedTestAllTypes& from);
  2064. inline NestedTestAllTypes& operator=(const NestedTestAllTypes& from) {
  2065. CopyFrom(from);
  2066. return *this;
  2067. }
  2068. #if LANG_CXX11
  2069. NestedTestAllTypes(NestedTestAllTypes&& from) noexcept
  2070. : NestedTestAllTypes() {
  2071. *this = ::std::move(from);
  2072. }
  2073. inline NestedTestAllTypes& operator=(NestedTestAllTypes&& from) noexcept {
  2074. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  2075. if (this != &from) InternalSwap(&from);
  2076. } else {
  2077. CopyFrom(from);
  2078. }
  2079. return *this;
  2080. }
  2081. #endif
  2082. inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
  2083. return _internal_metadata_.unknown_fields();
  2084. }
  2085. inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
  2086. return _internal_metadata_.mutable_unknown_fields();
  2087. }
  2088. inline ::google::protobuf::Arena* GetArena() const final {
  2089. return GetArenaNoVirtual();
  2090. }
  2091. inline void* GetMaybeArenaPointer() const final {
  2092. return MaybeArenaPtr();
  2093. }
  2094. static const ::google::protobuf::Descriptor* descriptor();
  2095. static const NestedTestAllTypes& default_instance();
  2096. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  2097. static inline const NestedTestAllTypes* internal_default_instance() {
  2098. return reinterpret_cast<const NestedTestAllTypes*>(
  2099. &_NestedTestAllTypes_default_instance_);
  2100. }
  2101. static constexpr int kIndexInFileMessages =
  2102. 4;
  2103. void UnsafeArenaSwap(NestedTestAllTypes* other);
  2104. void Swap(NestedTestAllTypes* other);
  2105. friend void swap(NestedTestAllTypes& a, NestedTestAllTypes& b) {
  2106. a.Swap(&b);
  2107. }
  2108. // implements Message ----------------------------------------------
  2109. inline NestedTestAllTypes* New() const final {
  2110. return CreateMaybeMessage<NestedTestAllTypes>(NULL);
  2111. }
  2112. NestedTestAllTypes* New(::google::protobuf::Arena* arena) const final {
  2113. return CreateMaybeMessage<NestedTestAllTypes>(arena);
  2114. }
  2115. void CopyFrom(const ::google::protobuf::Message& from) final;
  2116. void MergeFrom(const ::google::protobuf::Message& from) final;
  2117. void CopyFrom(const NestedTestAllTypes& from);
  2118. void MergeFrom(const NestedTestAllTypes& from);
  2119. void Clear() final;
  2120. bool IsInitialized() const final;
  2121. size_t ByteSizeLong() const final;
  2122. bool MergePartialFromCodedStream(
  2123. ::google::protobuf::io::CodedInputStream* input) final;
  2124. void SerializeWithCachedSizes(
  2125. ::google::protobuf::io::CodedOutputStream* output) const final;
  2126. ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
  2127. bool deterministic, ::google::protobuf::uint8* target) const final;
  2128. int GetCachedSize() const final { return _cached_size_.Get(); }
  2129. private:
  2130. void SharedCtor();
  2131. void SharedDtor();
  2132. void SetCachedSize(int size) const final;
  2133. void InternalSwap(NestedTestAllTypes* other);
  2134. protected:
  2135. explicit NestedTestAllTypes(::google::protobuf::Arena* arena);
  2136. private:
  2137. static void ArenaDtor(void* object);
  2138. inline void RegisterArenaDtor(::google::protobuf::Arena* arena);
  2139. private:
  2140. inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
  2141. return _internal_metadata_.arena();
  2142. }
  2143. inline void* MaybeArenaPtr() const {
  2144. return _internal_metadata_.raw_arena_ptr();
  2145. }
  2146. public:
  2147. ::google::protobuf::Metadata GetMetadata() const final;
  2148. // nested types ----------------------------------------------------
  2149. // accessors -------------------------------------------------------
  2150. // repeated .protobuf_unittest.NestedTestAllTypes repeated_child = 3;
  2151. int repeated_child_size() const;
  2152. void clear_repeated_child();
  2153. static const int kRepeatedChildFieldNumber = 3;
  2154. ::protobuf_unittest::NestedTestAllTypes* mutable_repeated_child(int index);
  2155. ::google::protobuf::RepeatedPtrField< ::protobuf_unittest::NestedTestAllTypes >*
  2156. mutable_repeated_child();
  2157. const ::protobuf_unittest::NestedTestAllTypes& repeated_child(int index) const;
  2158. ::protobuf_unittest::NestedTestAllTypes* add_repeated_child();
  2159. const ::google::protobuf::RepeatedPtrField< ::protobuf_unittest::NestedTestAllTypes >&
  2160. repeated_child() const;
  2161. // optional .protobuf_unittest.NestedTestAllTypes child = 1;
  2162. bool has_child() const;
  2163. void clear_child();
  2164. static const int kChildFieldNumber = 1;
  2165. private:
  2166. const ::protobuf_unittest::NestedTestAllTypes& _internal_child() const;
  2167. public:
  2168. const ::protobuf_unittest::NestedTestAllTypes& child() const;
  2169. ::protobuf_unittest::NestedTestAllTypes* release_child();
  2170. ::protobuf_unittest::NestedTestAllTypes* mutable_child();
  2171. void set_allocated_child(::protobuf_unittest::NestedTestAllTypes* child);
  2172. void unsafe_arena_set_allocated_child(
  2173. ::protobuf_unittest::NestedTestAllTypes* child);
  2174. ::protobuf_unittest::NestedTestAllTypes* unsafe_arena_release_child();
  2175. // optional .protobuf_unittest.TestAllTypes payload = 2;
  2176. bool has_payload() const;
  2177. void clear_payload();
  2178. static const int kPayloadFieldNumber = 2;
  2179. private:
  2180. const ::protobuf_unittest::TestAllTypes& _internal_payload() const;
  2181. public:
  2182. const ::protobuf_unittest::TestAllTypes& payload() const;
  2183. ::protobuf_unittest::TestAllTypes* release_payload();
  2184. ::protobuf_unittest::TestAllTypes* mutable_payload();
  2185. void set_allocated_payload(::protobuf_unittest::TestAllTypes* payload);
  2186. void unsafe_arena_set_allocated_payload(
  2187. ::protobuf_unittest::TestAllTypes* payload);
  2188. ::protobuf_unittest::TestAllTypes* unsafe_arena_release_payload();
  2189. // @@protoc_insertion_point(class_scope:protobuf_unittest.NestedTestAllTypes)
  2190. private:
  2191. void set_has_child();
  2192. void clear_has_child();
  2193. void set_has_payload();
  2194. void clear_has_payload();
  2195. ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
  2196. template <typename T> friend class ::google::protobuf::Arena::InternalHelper;
  2197. typedef void InternalArenaConstructable_;
  2198. typedef void DestructorSkippable_;
  2199. ::google::protobuf::internal::HasBits<1> _has_bits_;
  2200. mutable ::google::protobuf::internal::CachedSize _cached_size_;
  2201. ::google::protobuf::RepeatedPtrField< ::protobuf_unittest::NestedTestAllTypes > repeated_child_;
  2202. ::protobuf_unittest::NestedTestAllTypes* child_;
  2203. ::protobuf_unittest::TestAllTypes* payload_;
  2204. friend struct ::protobuf_google_2fprotobuf_2funittest_2eproto::TableStruct;
  2205. };
  2206. // -------------------------------------------------------------------
  2207. class TestDeprecatedFields : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:protobuf_unittest.TestDeprecatedFields) */ {
  2208. public:
  2209. TestDeprecatedFields();
  2210. virtual ~TestDeprecatedFields();
  2211. TestDeprecatedFields(const TestDeprecatedFields& from);
  2212. inline TestDeprecatedFields& operator=(const TestDeprecatedFields& from) {
  2213. CopyFrom(from);
  2214. return *this;
  2215. }
  2216. #if LANG_CXX11
  2217. TestDeprecatedFields(TestDeprecatedFields&& from) noexcept
  2218. : TestDeprecatedFields() {
  2219. *this = ::std::move(from);
  2220. }
  2221. inline TestDeprecatedFields& operator=(TestDeprecatedFields&& from) noexcept {
  2222. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  2223. if (this != &from) InternalSwap(&from);
  2224. } else {
  2225. CopyFrom(from);
  2226. }
  2227. return *this;
  2228. }
  2229. #endif
  2230. inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
  2231. return _internal_metadata_.unknown_fields();
  2232. }
  2233. inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
  2234. return _internal_metadata_.mutable_unknown_fields();
  2235. }
  2236. inline ::google::protobuf::Arena* GetArena() const final {
  2237. return GetArenaNoVirtual();
  2238. }
  2239. inline void* GetMaybeArenaPointer() const final {
  2240. return MaybeArenaPtr();
  2241. }
  2242. static const ::google::protobuf::Descriptor* descriptor();
  2243. static const TestDeprecatedFields& default_instance();
  2244. enum OneofFieldsCase {
  2245. kDeprecatedInt32InOneof = 2,
  2246. ONEOF_FIELDS_NOT_SET = 0,
  2247. };
  2248. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  2249. static inline const TestDeprecatedFields* internal_default_instance() {
  2250. return reinterpret_cast<const TestDeprecatedFields*>(
  2251. &_TestDeprecatedFields_default_instance_);
  2252. }
  2253. static constexpr int kIndexInFileMessages =
  2254. 5;
  2255. void UnsafeArenaSwap(TestDeprecatedFields* other);
  2256. void Swap(TestDeprecatedFields* other);
  2257. friend void swap(TestDeprecatedFields& a, TestDeprecatedFields& b) {
  2258. a.Swap(&b);
  2259. }
  2260. // implements Message ----------------------------------------------
  2261. inline TestDeprecatedFields* New() const final {
  2262. return CreateMaybeMessage<TestDeprecatedFields>(NULL);
  2263. }
  2264. TestDeprecatedFields* New(::google::protobuf::Arena* arena) const final {
  2265. return CreateMaybeMessage<TestDeprecatedFields>(arena);
  2266. }
  2267. void CopyFrom(const ::google::protobuf::Message& from) final;
  2268. void MergeFrom(const ::google::protobuf::Message& from) final;
  2269. void CopyFrom(const TestDeprecatedFields& from);
  2270. void MergeFrom(const TestDeprecatedFields& from);
  2271. void Clear() final;
  2272. bool IsInitialized() const final;
  2273. size_t ByteSizeLong() const final;
  2274. bool MergePartialFromCodedStream(
  2275. ::google::protobuf::io::CodedInputStream* input) final;
  2276. void SerializeWithCachedSizes(
  2277. ::google::protobuf::io::CodedOutputStream* output) const final;
  2278. ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
  2279. bool deterministic, ::google::protobuf::uint8* target) const final;
  2280. int GetCachedSize() const final { return _cached_size_.Get(); }
  2281. private:
  2282. void SharedCtor();
  2283. void SharedDtor();
  2284. void SetCachedSize(int size) const final;
  2285. void InternalSwap(TestDeprecatedFields* other);
  2286. protected:
  2287. explicit TestDeprecatedFields(::google::protobuf::Arena* arena);
  2288. private:
  2289. static void ArenaDtor(void* object);
  2290. inline void RegisterArenaDtor(::google::protobuf::Arena* arena);
  2291. private:
  2292. inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
  2293. return _internal_metadata_.arena();
  2294. }
  2295. inline void* MaybeArenaPtr() const {
  2296. return _internal_metadata_.raw_arena_ptr();
  2297. }
  2298. public:
  2299. ::google::protobuf::Metadata GetMetadata() const final;
  2300. // nested types ----------------------------------------------------
  2301. // accessors -------------------------------------------------------
  2302. // optional int32 deprecated_int32 = 1 [deprecated = true];
  2303. GOOGLE_PROTOBUF_DEPRECATED_ATTR bool has_deprecated_int32() const;
  2304. GOOGLE_PROTOBUF_DEPRECATED_ATTR void clear_deprecated_int32();
  2305. GOOGLE_PROTOBUF_DEPRECATED_ATTR static const int kDeprecatedInt32FieldNumber = 1;
  2306. GOOGLE_PROTOBUF_DEPRECATED_ATTR ::google::protobuf::int32 deprecated_int32() const;
  2307. GOOGLE_PROTOBUF_DEPRECATED_ATTR void set_deprecated_int32(::google::protobuf::int32 value);
  2308. // optional int32 deprecated_int32_in_oneof = 2 [deprecated = true];
  2309. GOOGLE_PROTOBUF_DEPRECATED_ATTR bool has_deprecated_int32_in_oneof() const;
  2310. GOOGLE_PROTOBUF_DEPRECATED_ATTR void clear_deprecated_int32_in_oneof();
  2311. GOOGLE_PROTOBUF_DEPRECATED_ATTR static const int kDeprecatedInt32InOneofFieldNumber = 2;
  2312. GOOGLE_PROTOBUF_DEPRECATED_ATTR ::google::protobuf::int32 deprecated_int32_in_oneof() const;
  2313. GOOGLE_PROTOBUF_DEPRECATED_ATTR void set_deprecated_int32_in_oneof(::google::protobuf::int32 value);
  2314. void clear_oneof_fields();
  2315. OneofFieldsCase oneof_fields_case() const;
  2316. // @@protoc_insertion_point(class_scope:protobuf_unittest.TestDeprecatedFields)
  2317. private:
  2318. void set_has_deprecated_int32();
  2319. void clear_has_deprecated_int32();
  2320. void set_has_deprecated_int32_in_oneof();
  2321. inline bool has_oneof_fields() const;
  2322. inline void clear_has_oneof_fields();
  2323. ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
  2324. template <typename T> friend class ::google::protobuf::Arena::InternalHelper;
  2325. typedef void InternalArenaConstructable_;
  2326. typedef void DestructorSkippable_;
  2327. ::google::protobuf::internal::HasBits<1> _has_bits_;
  2328. mutable ::google::protobuf::internal::CachedSize _cached_size_;
  2329. ::google::protobuf::int32 deprecated_int32_;
  2330. union OneofFieldsUnion {
  2331. OneofFieldsUnion() {}
  2332. ::google::protobuf::int32 deprecated_int32_in_oneof_;
  2333. } oneof_fields_;
  2334. ::google::protobuf::uint32 _oneof_case_[1];
  2335. friend struct ::protobuf_google_2fprotobuf_2funittest_2eproto::TableStruct;
  2336. };
  2337. // -------------------------------------------------------------------
  2338. class TestDeprecatedMessage : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:protobuf_unittest.TestDeprecatedMessage) */ {
  2339. public:
  2340. TestDeprecatedMessage();
  2341. virtual ~TestDeprecatedMessage();
  2342. TestDeprecatedMessage(const TestDeprecatedMessage& from);
  2343. inline TestDeprecatedMessage& operator=(const TestDeprecatedMessage& from) {
  2344. CopyFrom(from);
  2345. return *this;
  2346. }
  2347. #if LANG_CXX11
  2348. TestDeprecatedMessage(TestDeprecatedMessage&& from) noexcept
  2349. : TestDeprecatedMessage() {
  2350. *this = ::std::move(from);
  2351. }
  2352. inline TestDeprecatedMessage& operator=(TestDeprecatedMessage&& from) noexcept {
  2353. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  2354. if (this != &from) InternalSwap(&from);
  2355. } else {
  2356. CopyFrom(from);
  2357. }
  2358. return *this;
  2359. }
  2360. #endif
  2361. inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
  2362. return _internal_metadata_.unknown_fields();
  2363. }
  2364. inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
  2365. return _internal_metadata_.mutable_unknown_fields();
  2366. }
  2367. inline ::google::protobuf::Arena* GetArena() const final {
  2368. return GetArenaNoVirtual();
  2369. }
  2370. inline void* GetMaybeArenaPointer() const final {
  2371. return MaybeArenaPtr();
  2372. }
  2373. static const ::google::protobuf::Descriptor* descriptor();
  2374. static const TestDeprecatedMessage& default_instance();
  2375. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  2376. static inline const TestDeprecatedMessage* internal_default_instance() {
  2377. return reinterpret_cast<const TestDeprecatedMessage*>(
  2378. &_TestDeprecatedMessage_default_instance_);
  2379. }
  2380. static constexpr int kIndexInFileMessages =
  2381. 6;
  2382. void UnsafeArenaSwap(TestDeprecatedMessage* other);
  2383. void Swap(TestDeprecatedMessage* other);
  2384. friend void swap(TestDeprecatedMessage& a, TestDeprecatedMessage& b) {
  2385. a.Swap(&b);
  2386. }
  2387. // implements Message ----------------------------------------------
  2388. inline TestDeprecatedMessage* New() const final {
  2389. return CreateMaybeMessage<TestDeprecatedMessage>(NULL);
  2390. }
  2391. TestDeprecatedMessage* New(::google::protobuf::Arena* arena) const final {
  2392. return CreateMaybeMessage<TestDeprecatedMessage>(arena);
  2393. }
  2394. void CopyFrom(const ::google::protobuf::Message& from) final;
  2395. void MergeFrom(const ::google::protobuf::Message& from) final;
  2396. void CopyFrom(const TestDeprecatedMessage& from);
  2397. void MergeFrom(const TestDeprecatedMessage& from);
  2398. void Clear() final;
  2399. bool IsInitialized() const final;
  2400. size_t ByteSizeLong() const final;
  2401. bool MergePartialFromCodedStream(
  2402. ::google::protobuf::io::CodedInputStream* input) final;
  2403. void SerializeWithCachedSizes(
  2404. ::google::protobuf::io::CodedOutputStream* output) const final;
  2405. ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
  2406. bool deterministic, ::google::protobuf::uint8* target) const final;
  2407. int GetCachedSize() const final { return _cached_size_.Get(); }
  2408. private:
  2409. void SharedCtor();
  2410. void SharedDtor();
  2411. void SetCachedSize(int size) const final;
  2412. void InternalSwap(TestDeprecatedMessage* other);
  2413. protected:
  2414. explicit TestDeprecatedMessage(::google::protobuf::Arena* arena);
  2415. private:
  2416. static void ArenaDtor(void* object);
  2417. inline void RegisterArenaDtor(::google::protobuf::Arena* arena);
  2418. private:
  2419. inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
  2420. return _internal_metadata_.arena();
  2421. }
  2422. inline void* MaybeArenaPtr() const {
  2423. return _internal_metadata_.raw_arena_ptr();
  2424. }
  2425. public:
  2426. ::google::protobuf::Metadata GetMetadata() const final;
  2427. // nested types ----------------------------------------------------
  2428. // accessors -------------------------------------------------------
  2429. // @@protoc_insertion_point(class_scope:protobuf_unittest.TestDeprecatedMessage)
  2430. private:
  2431. ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
  2432. template <typename T> friend class ::google::protobuf::Arena::InternalHelper;
  2433. typedef void InternalArenaConstructable_;
  2434. typedef void DestructorSkippable_;
  2435. ::google::protobuf::internal::HasBits<1> _has_bits_;
  2436. mutable ::google::protobuf::internal::CachedSize _cached_size_;
  2437. friend struct ::protobuf_google_2fprotobuf_2funittest_2eproto::TableStruct;
  2438. };
  2439. // -------------------------------------------------------------------
  2440. class ForeignMessage : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:protobuf_unittest.ForeignMessage) */ {
  2441. public:
  2442. ForeignMessage();
  2443. virtual ~ForeignMessage();
  2444. ForeignMessage(const ForeignMessage& from);
  2445. inline ForeignMessage& operator=(const ForeignMessage& from) {
  2446. CopyFrom(from);
  2447. return *this;
  2448. }
  2449. #if LANG_CXX11
  2450. ForeignMessage(ForeignMessage&& from) noexcept
  2451. : ForeignMessage() {
  2452. *this = ::std::move(from);
  2453. }
  2454. inline ForeignMessage& operator=(ForeignMessage&& from) noexcept {
  2455. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  2456. if (this != &from) InternalSwap(&from);
  2457. } else {
  2458. CopyFrom(from);
  2459. }
  2460. return *this;
  2461. }
  2462. #endif
  2463. inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
  2464. return _internal_metadata_.unknown_fields();
  2465. }
  2466. inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
  2467. return _internal_metadata_.mutable_unknown_fields();
  2468. }
  2469. inline ::google::protobuf::Arena* GetArena() const final {
  2470. return GetArenaNoVirtual();
  2471. }
  2472. inline void* GetMaybeArenaPointer() const final {
  2473. return MaybeArenaPtr();
  2474. }
  2475. static const ::google::protobuf::Descriptor* descriptor();
  2476. static const ForeignMessage& default_instance();
  2477. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  2478. static inline const ForeignMessage* internal_default_instance() {
  2479. return reinterpret_cast<const ForeignMessage*>(
  2480. &_ForeignMessage_default_instance_);
  2481. }
  2482. static constexpr int kIndexInFileMessages =
  2483. 7;
  2484. void UnsafeArenaSwap(ForeignMessage* other);
  2485. void Swap(ForeignMessage* other);
  2486. friend void swap(ForeignMessage& a, ForeignMessage& b) {
  2487. a.Swap(&b);
  2488. }
  2489. // implements Message ----------------------------------------------
  2490. inline ForeignMessage* New() const final {
  2491. return CreateMaybeMessage<ForeignMessage>(NULL);
  2492. }
  2493. ForeignMessage* New(::google::protobuf::Arena* arena) const final {
  2494. return CreateMaybeMessage<ForeignMessage>(arena);
  2495. }
  2496. void CopyFrom(const ::google::protobuf::Message& from) final;
  2497. void MergeFrom(const ::google::protobuf::Message& from) final;
  2498. void CopyFrom(const ForeignMessage& from);
  2499. void MergeFrom(const ForeignMessage& from);
  2500. void Clear() final;
  2501. bool IsInitialized() const final;
  2502. size_t ByteSizeLong() const final;
  2503. bool MergePartialFromCodedStream(
  2504. ::google::protobuf::io::CodedInputStream* input) final;
  2505. void SerializeWithCachedSizes(
  2506. ::google::protobuf::io::CodedOutputStream* output) const final;
  2507. ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
  2508. bool deterministic, ::google::protobuf::uint8* target) const final;
  2509. int GetCachedSize() const final { return _cached_size_.Get(); }
  2510. private:
  2511. void SharedCtor();
  2512. void SharedDtor();
  2513. void SetCachedSize(int size) const final;
  2514. void InternalSwap(ForeignMessage* other);
  2515. protected:
  2516. explicit ForeignMessage(::google::protobuf::Arena* arena);
  2517. private:
  2518. static void ArenaDtor(void* object);
  2519. inline void RegisterArenaDtor(::google::protobuf::Arena* arena);
  2520. private:
  2521. inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
  2522. return _internal_metadata_.arena();
  2523. }
  2524. inline void* MaybeArenaPtr() const {
  2525. return _internal_metadata_.raw_arena_ptr();
  2526. }
  2527. public:
  2528. ::google::protobuf::Metadata GetMetadata() const final;
  2529. // nested types ----------------------------------------------------
  2530. // accessors -------------------------------------------------------
  2531. // optional int32 c = 1;
  2532. bool has_c() const;
  2533. void clear_c();
  2534. static const int kCFieldNumber = 1;
  2535. ::google::protobuf::int32 c() const;
  2536. void set_c(::google::protobuf::int32 value);
  2537. // optional int32 d = 2;
  2538. bool has_d() const;
  2539. void clear_d();
  2540. static const int kDFieldNumber = 2;
  2541. ::google::protobuf::int32 d() const;
  2542. void set_d(::google::protobuf::int32 value);
  2543. // @@protoc_insertion_point(class_scope:protobuf_unittest.ForeignMessage)
  2544. private:
  2545. void set_has_c();
  2546. void clear_has_c();
  2547. void set_has_d();
  2548. void clear_has_d();
  2549. ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
  2550. template <typename T> friend class ::google::protobuf::Arena::InternalHelper;
  2551. typedef void InternalArenaConstructable_;
  2552. typedef void DestructorSkippable_;
  2553. ::google::protobuf::internal::HasBits<1> _has_bits_;
  2554. mutable ::google::protobuf::internal::CachedSize _cached_size_;
  2555. ::google::protobuf::int32 c_;
  2556. ::google::protobuf::int32 d_;
  2557. friend struct ::protobuf_google_2fprotobuf_2funittest_2eproto::TableStruct;
  2558. };
  2559. // -------------------------------------------------------------------
  2560. class TestReservedFields : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:protobuf_unittest.TestReservedFields) */ {
  2561. public:
  2562. TestReservedFields();
  2563. virtual ~TestReservedFields();
  2564. TestReservedFields(const TestReservedFields& from);
  2565. inline TestReservedFields& operator=(const TestReservedFields& from) {
  2566. CopyFrom(from);
  2567. return *this;
  2568. }
  2569. #if LANG_CXX11
  2570. TestReservedFields(TestReservedFields&& from) noexcept
  2571. : TestReservedFields() {
  2572. *this = ::std::move(from);
  2573. }
  2574. inline TestReservedFields& operator=(TestReservedFields&& from) noexcept {
  2575. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  2576. if (this != &from) InternalSwap(&from);
  2577. } else {
  2578. CopyFrom(from);
  2579. }
  2580. return *this;
  2581. }
  2582. #endif
  2583. inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
  2584. return _internal_metadata_.unknown_fields();
  2585. }
  2586. inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
  2587. return _internal_metadata_.mutable_unknown_fields();
  2588. }
  2589. inline ::google::protobuf::Arena* GetArena() const final {
  2590. return GetArenaNoVirtual();
  2591. }
  2592. inline void* GetMaybeArenaPointer() const final {
  2593. return MaybeArenaPtr();
  2594. }
  2595. static const ::google::protobuf::Descriptor* descriptor();
  2596. static const TestReservedFields& default_instance();
  2597. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  2598. static inline const TestReservedFields* internal_default_instance() {
  2599. return reinterpret_cast<const TestReservedFields*>(
  2600. &_TestReservedFields_default_instance_);
  2601. }
  2602. static constexpr int kIndexInFileMessages =
  2603. 8;
  2604. void UnsafeArenaSwap(TestReservedFields* other);
  2605. void Swap(TestReservedFields* other);
  2606. friend void swap(TestReservedFields& a, TestReservedFields& b) {
  2607. a.Swap(&b);
  2608. }
  2609. // implements Message ----------------------------------------------
  2610. inline TestReservedFields* New() const final {
  2611. return CreateMaybeMessage<TestReservedFields>(NULL);
  2612. }
  2613. TestReservedFields* New(::google::protobuf::Arena* arena) const final {
  2614. return CreateMaybeMessage<TestReservedFields>(arena);
  2615. }
  2616. void CopyFrom(const ::google::protobuf::Message& from) final;
  2617. void MergeFrom(const ::google::protobuf::Message& from) final;
  2618. void CopyFrom(const TestReservedFields& from);
  2619. void MergeFrom(const TestReservedFields& from);
  2620. void Clear() final;
  2621. bool IsInitialized() const final;
  2622. size_t ByteSizeLong() const final;
  2623. bool MergePartialFromCodedStream(
  2624. ::google::protobuf::io::CodedInputStream* input) final;
  2625. void SerializeWithCachedSizes(
  2626. ::google::protobuf::io::CodedOutputStream* output) const final;
  2627. ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
  2628. bool deterministic, ::google::protobuf::uint8* target) const final;
  2629. int GetCachedSize() const final { return _cached_size_.Get(); }
  2630. private:
  2631. void SharedCtor();
  2632. void SharedDtor();
  2633. void SetCachedSize(int size) const final;
  2634. void InternalSwap(TestReservedFields* other);
  2635. protected:
  2636. explicit TestReservedFields(::google::protobuf::Arena* arena);
  2637. private:
  2638. static void ArenaDtor(void* object);
  2639. inline void RegisterArenaDtor(::google::protobuf::Arena* arena);
  2640. private:
  2641. inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
  2642. return _internal_metadata_.arena();
  2643. }
  2644. inline void* MaybeArenaPtr() const {
  2645. return _internal_metadata_.raw_arena_ptr();
  2646. }
  2647. public:
  2648. ::google::protobuf::Metadata GetMetadata() const final;
  2649. // nested types ----------------------------------------------------
  2650. // accessors -------------------------------------------------------
  2651. // @@protoc_insertion_point(class_scope:protobuf_unittest.TestReservedFields)
  2652. private:
  2653. ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
  2654. template <typename T> friend class ::google::protobuf::Arena::InternalHelper;
  2655. typedef void InternalArenaConstructable_;
  2656. typedef void DestructorSkippable_;
  2657. ::google::protobuf::internal::HasBits<1> _has_bits_;
  2658. mutable ::google::protobuf::internal::CachedSize _cached_size_;
  2659. friend struct ::protobuf_google_2fprotobuf_2funittest_2eproto::TableStruct;
  2660. };
  2661. // -------------------------------------------------------------------
  2662. class TestAllExtensions : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:protobuf_unittest.TestAllExtensions) */ {
  2663. public:
  2664. TestAllExtensions();
  2665. virtual ~TestAllExtensions();
  2666. TestAllExtensions(const TestAllExtensions& from);
  2667. inline TestAllExtensions& operator=(const TestAllExtensions& from) {
  2668. CopyFrom(from);
  2669. return *this;
  2670. }
  2671. #if LANG_CXX11
  2672. TestAllExtensions(TestAllExtensions&& from) noexcept
  2673. : TestAllExtensions() {
  2674. *this = ::std::move(from);
  2675. }
  2676. inline TestAllExtensions& operator=(TestAllExtensions&& from) noexcept {
  2677. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  2678. if (this != &from) InternalSwap(&from);
  2679. } else {
  2680. CopyFrom(from);
  2681. }
  2682. return *this;
  2683. }
  2684. #endif
  2685. inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
  2686. return _internal_metadata_.unknown_fields();
  2687. }
  2688. inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
  2689. return _internal_metadata_.mutable_unknown_fields();
  2690. }
  2691. inline ::google::protobuf::Arena* GetArena() const final {
  2692. return GetArenaNoVirtual();
  2693. }
  2694. inline void* GetMaybeArenaPointer() const final {
  2695. return MaybeArenaPtr();
  2696. }
  2697. static const ::google::protobuf::Descriptor* descriptor();
  2698. static const TestAllExtensions& default_instance();
  2699. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  2700. static inline const TestAllExtensions* internal_default_instance() {
  2701. return reinterpret_cast<const TestAllExtensions*>(
  2702. &_TestAllExtensions_default_instance_);
  2703. }
  2704. static constexpr int kIndexInFileMessages =
  2705. 9;
  2706. void UnsafeArenaSwap(TestAllExtensions* other);
  2707. void Swap(TestAllExtensions* other);
  2708. friend void swap(TestAllExtensions& a, TestAllExtensions& b) {
  2709. a.Swap(&b);
  2710. }
  2711. // implements Message ----------------------------------------------
  2712. inline TestAllExtensions* New() const final {
  2713. return CreateMaybeMessage<TestAllExtensions>(NULL);
  2714. }
  2715. TestAllExtensions* New(::google::protobuf::Arena* arena) const final {
  2716. return CreateMaybeMessage<TestAllExtensions>(arena);
  2717. }
  2718. void CopyFrom(const ::google::protobuf::Message& from) final;
  2719. void MergeFrom(const ::google::protobuf::Message& from) final;
  2720. void CopyFrom(const TestAllExtensions& from);
  2721. void MergeFrom(const TestAllExtensions& from);
  2722. void Clear() final;
  2723. bool IsInitialized() const final;
  2724. size_t ByteSizeLong() const final;
  2725. bool MergePartialFromCodedStream(
  2726. ::google::protobuf::io::CodedInputStream* input) final;
  2727. void SerializeWithCachedSizes(
  2728. ::google::protobuf::io::CodedOutputStream* output) const final;
  2729. ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
  2730. bool deterministic, ::google::protobuf::uint8* target) const final;
  2731. int GetCachedSize() const final { return _cached_size_.Get(); }
  2732. private:
  2733. void SharedCtor();
  2734. void SharedDtor();
  2735. void SetCachedSize(int size) const final;
  2736. void InternalSwap(TestAllExtensions* other);
  2737. protected:
  2738. explicit TestAllExtensions(::google::protobuf::Arena* arena);
  2739. private:
  2740. static void ArenaDtor(void* object);
  2741. inline void RegisterArenaDtor(::google::protobuf::Arena* arena);
  2742. private:
  2743. inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
  2744. return _internal_metadata_.arena();
  2745. }
  2746. inline void* MaybeArenaPtr() const {
  2747. return _internal_metadata_.raw_arena_ptr();
  2748. }
  2749. public:
  2750. ::google::protobuf::Metadata GetMetadata() const final;
  2751. // nested types ----------------------------------------------------
  2752. // accessors -------------------------------------------------------
  2753. GOOGLE_PROTOBUF_EXTENSION_ACCESSORS(TestAllExtensions)
  2754. // @@protoc_insertion_point(class_scope:protobuf_unittest.TestAllExtensions)
  2755. private:
  2756. ::google::protobuf::internal::ExtensionSet _extensions_;
  2757. ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
  2758. template <typename T> friend class ::google::protobuf::Arena::InternalHelper;
  2759. typedef void InternalArenaConstructable_;
  2760. typedef void DestructorSkippable_;
  2761. ::google::protobuf::internal::HasBits<1> _has_bits_;
  2762. mutable ::google::protobuf::internal::CachedSize _cached_size_;
  2763. friend struct ::protobuf_google_2fprotobuf_2funittest_2eproto::TableStruct;
  2764. };
  2765. // -------------------------------------------------------------------
  2766. class OptionalGroup_extension : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:protobuf_unittest.OptionalGroup_extension) */ {
  2767. public:
  2768. OptionalGroup_extension();
  2769. virtual ~OptionalGroup_extension();
  2770. OptionalGroup_extension(const OptionalGroup_extension& from);
  2771. inline OptionalGroup_extension& operator=(const OptionalGroup_extension& from) {
  2772. CopyFrom(from);
  2773. return *this;
  2774. }
  2775. #if LANG_CXX11
  2776. OptionalGroup_extension(OptionalGroup_extension&& from) noexcept
  2777. : OptionalGroup_extension() {
  2778. *this = ::std::move(from);
  2779. }
  2780. inline OptionalGroup_extension& operator=(OptionalGroup_extension&& from) noexcept {
  2781. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  2782. if (this != &from) InternalSwap(&from);
  2783. } else {
  2784. CopyFrom(from);
  2785. }
  2786. return *this;
  2787. }
  2788. #endif
  2789. inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
  2790. return _internal_metadata_.unknown_fields();
  2791. }
  2792. inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
  2793. return _internal_metadata_.mutable_unknown_fields();
  2794. }
  2795. inline ::google::protobuf::Arena* GetArena() const final {
  2796. return GetArenaNoVirtual();
  2797. }
  2798. inline void* GetMaybeArenaPointer() const final {
  2799. return MaybeArenaPtr();
  2800. }
  2801. static const ::google::protobuf::Descriptor* descriptor();
  2802. static const OptionalGroup_extension& default_instance();
  2803. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  2804. static inline const OptionalGroup_extension* internal_default_instance() {
  2805. return reinterpret_cast<const OptionalGroup_extension*>(
  2806. &_OptionalGroup_extension_default_instance_);
  2807. }
  2808. static constexpr int kIndexInFileMessages =
  2809. 10;
  2810. void UnsafeArenaSwap(OptionalGroup_extension* other);
  2811. void Swap(OptionalGroup_extension* other);
  2812. friend void swap(OptionalGroup_extension& a, OptionalGroup_extension& b) {
  2813. a.Swap(&b);
  2814. }
  2815. // implements Message ----------------------------------------------
  2816. inline OptionalGroup_extension* New() const final {
  2817. return CreateMaybeMessage<OptionalGroup_extension>(NULL);
  2818. }
  2819. OptionalGroup_extension* New(::google::protobuf::Arena* arena) const final {
  2820. return CreateMaybeMessage<OptionalGroup_extension>(arena);
  2821. }
  2822. void CopyFrom(const ::google::protobuf::Message& from) final;
  2823. void MergeFrom(const ::google::protobuf::Message& from) final;
  2824. void CopyFrom(const OptionalGroup_extension& from);
  2825. void MergeFrom(const OptionalGroup_extension& from);
  2826. void Clear() final;
  2827. bool IsInitialized() const final;
  2828. size_t ByteSizeLong() const final;
  2829. bool MergePartialFromCodedStream(
  2830. ::google::protobuf::io::CodedInputStream* input) final;
  2831. void SerializeWithCachedSizes(
  2832. ::google::protobuf::io::CodedOutputStream* output) const final;
  2833. ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
  2834. bool deterministic, ::google::protobuf::uint8* target) const final;
  2835. int GetCachedSize() const final { return _cached_size_.Get(); }
  2836. private:
  2837. void SharedCtor();
  2838. void SharedDtor();
  2839. void SetCachedSize(int size) const final;
  2840. void InternalSwap(OptionalGroup_extension* other);
  2841. protected:
  2842. explicit OptionalGroup_extension(::google::protobuf::Arena* arena);
  2843. private:
  2844. static void ArenaDtor(void* object);
  2845. inline void RegisterArenaDtor(::google::protobuf::Arena* arena);
  2846. private:
  2847. inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
  2848. return _internal_metadata_.arena();
  2849. }
  2850. inline void* MaybeArenaPtr() const {
  2851. return _internal_metadata_.raw_arena_ptr();
  2852. }
  2853. public:
  2854. ::google::protobuf::Metadata GetMetadata() const final;
  2855. // nested types ----------------------------------------------------
  2856. // accessors -------------------------------------------------------
  2857. // optional int32 a = 17;
  2858. bool has_a() const;
  2859. void clear_a();
  2860. static const int kAFieldNumber = 17;
  2861. ::google::protobuf::int32 a() const;
  2862. void set_a(::google::protobuf::int32 value);
  2863. // @@protoc_insertion_point(class_scope:protobuf_unittest.OptionalGroup_extension)
  2864. private:
  2865. void set_has_a();
  2866. void clear_has_a();
  2867. ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
  2868. template <typename T> friend class ::google::protobuf::Arena::InternalHelper;
  2869. typedef void InternalArenaConstructable_;
  2870. typedef void DestructorSkippable_;
  2871. ::google::protobuf::internal::HasBits<1> _has_bits_;
  2872. mutable ::google::protobuf::internal::CachedSize _cached_size_;
  2873. ::google::protobuf::int32 a_;
  2874. friend struct ::protobuf_google_2fprotobuf_2funittest_2eproto::TableStruct;
  2875. };
  2876. // -------------------------------------------------------------------
  2877. class RepeatedGroup_extension : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:protobuf_unittest.RepeatedGroup_extension) */ {
  2878. public:
  2879. RepeatedGroup_extension();
  2880. virtual ~RepeatedGroup_extension();
  2881. RepeatedGroup_extension(const RepeatedGroup_extension& from);
  2882. inline RepeatedGroup_extension& operator=(const RepeatedGroup_extension& from) {
  2883. CopyFrom(from);
  2884. return *this;
  2885. }
  2886. #if LANG_CXX11
  2887. RepeatedGroup_extension(RepeatedGroup_extension&& from) noexcept
  2888. : RepeatedGroup_extension() {
  2889. *this = ::std::move(from);
  2890. }
  2891. inline RepeatedGroup_extension& operator=(RepeatedGroup_extension&& from) noexcept {
  2892. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  2893. if (this != &from) InternalSwap(&from);
  2894. } else {
  2895. CopyFrom(from);
  2896. }
  2897. return *this;
  2898. }
  2899. #endif
  2900. inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
  2901. return _internal_metadata_.unknown_fields();
  2902. }
  2903. inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
  2904. return _internal_metadata_.mutable_unknown_fields();
  2905. }
  2906. inline ::google::protobuf::Arena* GetArena() const final {
  2907. return GetArenaNoVirtual();
  2908. }
  2909. inline void* GetMaybeArenaPointer() const final {
  2910. return MaybeArenaPtr();
  2911. }
  2912. static const ::google::protobuf::Descriptor* descriptor();
  2913. static const RepeatedGroup_extension& default_instance();
  2914. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  2915. static inline const RepeatedGroup_extension* internal_default_instance() {
  2916. return reinterpret_cast<const RepeatedGroup_extension*>(
  2917. &_RepeatedGroup_extension_default_instance_);
  2918. }
  2919. static constexpr int kIndexInFileMessages =
  2920. 11;
  2921. void UnsafeArenaSwap(RepeatedGroup_extension* other);
  2922. void Swap(RepeatedGroup_extension* other);
  2923. friend void swap(RepeatedGroup_extension& a, RepeatedGroup_extension& b) {
  2924. a.Swap(&b);
  2925. }
  2926. // implements Message ----------------------------------------------
  2927. inline RepeatedGroup_extension* New() const final {
  2928. return CreateMaybeMessage<RepeatedGroup_extension>(NULL);
  2929. }
  2930. RepeatedGroup_extension* New(::google::protobuf::Arena* arena) const final {
  2931. return CreateMaybeMessage<RepeatedGroup_extension>(arena);
  2932. }
  2933. void CopyFrom(const ::google::protobuf::Message& from) final;
  2934. void MergeFrom(const ::google::protobuf::Message& from) final;
  2935. void CopyFrom(const RepeatedGroup_extension& from);
  2936. void MergeFrom(const RepeatedGroup_extension& from);
  2937. void Clear() final;
  2938. bool IsInitialized() const final;
  2939. size_t ByteSizeLong() const final;
  2940. bool MergePartialFromCodedStream(
  2941. ::google::protobuf::io::CodedInputStream* input) final;
  2942. void SerializeWithCachedSizes(
  2943. ::google::protobuf::io::CodedOutputStream* output) const final;
  2944. ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
  2945. bool deterministic, ::google::protobuf::uint8* target) const final;
  2946. int GetCachedSize() const final { return _cached_size_.Get(); }
  2947. private:
  2948. void SharedCtor();
  2949. void SharedDtor();
  2950. void SetCachedSize(int size) const final;
  2951. void InternalSwap(RepeatedGroup_extension* other);
  2952. protected:
  2953. explicit RepeatedGroup_extension(::google::protobuf::Arena* arena);
  2954. private:
  2955. static void ArenaDtor(void* object);
  2956. inline void RegisterArenaDtor(::google::protobuf::Arena* arena);
  2957. private:
  2958. inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
  2959. return _internal_metadata_.arena();
  2960. }
  2961. inline void* MaybeArenaPtr() const {
  2962. return _internal_metadata_.raw_arena_ptr();
  2963. }
  2964. public:
  2965. ::google::protobuf::Metadata GetMetadata() const final;
  2966. // nested types ----------------------------------------------------
  2967. // accessors -------------------------------------------------------
  2968. // optional int32 a = 47;
  2969. bool has_a() const;
  2970. void clear_a();
  2971. static const int kAFieldNumber = 47;
  2972. ::google::protobuf::int32 a() const;
  2973. void set_a(::google::protobuf::int32 value);
  2974. // @@protoc_insertion_point(class_scope:protobuf_unittest.RepeatedGroup_extension)
  2975. private:
  2976. void set_has_a();
  2977. void clear_has_a();
  2978. ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
  2979. template <typename T> friend class ::google::protobuf::Arena::InternalHelper;
  2980. typedef void InternalArenaConstructable_;
  2981. typedef void DestructorSkippable_;
  2982. ::google::protobuf::internal::HasBits<1> _has_bits_;
  2983. mutable ::google::protobuf::internal::CachedSize _cached_size_;
  2984. ::google::protobuf::int32 a_;
  2985. friend struct ::protobuf_google_2fprotobuf_2funittest_2eproto::TableStruct;
  2986. };
  2987. // -------------------------------------------------------------------
  2988. class TestGroup_OptionalGroup : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:protobuf_unittest.TestGroup.OptionalGroup) */ {
  2989. public:
  2990. TestGroup_OptionalGroup();
  2991. virtual ~TestGroup_OptionalGroup();
  2992. TestGroup_OptionalGroup(const TestGroup_OptionalGroup& from);
  2993. inline TestGroup_OptionalGroup& operator=(const TestGroup_OptionalGroup& from) {
  2994. CopyFrom(from);
  2995. return *this;
  2996. }
  2997. #if LANG_CXX11
  2998. TestGroup_OptionalGroup(TestGroup_OptionalGroup&& from) noexcept
  2999. : TestGroup_OptionalGroup() {
  3000. *this = ::std::move(from);
  3001. }
  3002. inline TestGroup_OptionalGroup& operator=(TestGroup_OptionalGroup&& from) noexcept {
  3003. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  3004. if (this != &from) InternalSwap(&from);
  3005. } else {
  3006. CopyFrom(from);
  3007. }
  3008. return *this;
  3009. }
  3010. #endif
  3011. inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
  3012. return _internal_metadata_.unknown_fields();
  3013. }
  3014. inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
  3015. return _internal_metadata_.mutable_unknown_fields();
  3016. }
  3017. inline ::google::protobuf::Arena* GetArena() const final {
  3018. return GetArenaNoVirtual();
  3019. }
  3020. inline void* GetMaybeArenaPointer() const final {
  3021. return MaybeArenaPtr();
  3022. }
  3023. static const ::google::protobuf::Descriptor* descriptor();
  3024. static const TestGroup_OptionalGroup& default_instance();
  3025. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  3026. static inline const TestGroup_OptionalGroup* internal_default_instance() {
  3027. return reinterpret_cast<const TestGroup_OptionalGroup*>(
  3028. &_TestGroup_OptionalGroup_default_instance_);
  3029. }
  3030. static constexpr int kIndexInFileMessages =
  3031. 12;
  3032. void UnsafeArenaSwap(TestGroup_OptionalGroup* other);
  3033. void Swap(TestGroup_OptionalGroup* other);
  3034. friend void swap(TestGroup_OptionalGroup& a, TestGroup_OptionalGroup& b) {
  3035. a.Swap(&b);
  3036. }
  3037. // implements Message ----------------------------------------------
  3038. inline TestGroup_OptionalGroup* New() const final {
  3039. return CreateMaybeMessage<TestGroup_OptionalGroup>(NULL);
  3040. }
  3041. TestGroup_OptionalGroup* New(::google::protobuf::Arena* arena) const final {
  3042. return CreateMaybeMessage<TestGroup_OptionalGroup>(arena);
  3043. }
  3044. void CopyFrom(const ::google::protobuf::Message& from) final;
  3045. void MergeFrom(const ::google::protobuf::Message& from) final;
  3046. void CopyFrom(const TestGroup_OptionalGroup& from);
  3047. void MergeFrom(const TestGroup_OptionalGroup& from);
  3048. void Clear() final;
  3049. bool IsInitialized() const final;
  3050. size_t ByteSizeLong() const final;
  3051. bool MergePartialFromCodedStream(
  3052. ::google::protobuf::io::CodedInputStream* input) final;
  3053. void SerializeWithCachedSizes(
  3054. ::google::protobuf::io::CodedOutputStream* output) const final;
  3055. ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
  3056. bool deterministic, ::google::protobuf::uint8* target) const final;
  3057. int GetCachedSize() const final { return _cached_size_.Get(); }
  3058. private:
  3059. void SharedCtor();
  3060. void SharedDtor();
  3061. void SetCachedSize(int size) const final;
  3062. void InternalSwap(TestGroup_OptionalGroup* other);
  3063. protected:
  3064. explicit TestGroup_OptionalGroup(::google::protobuf::Arena* arena);
  3065. private:
  3066. static void ArenaDtor(void* object);
  3067. inline void RegisterArenaDtor(::google::protobuf::Arena* arena);
  3068. private:
  3069. inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
  3070. return _internal_metadata_.arena();
  3071. }
  3072. inline void* MaybeArenaPtr() const {
  3073. return _internal_metadata_.raw_arena_ptr();
  3074. }
  3075. public:
  3076. ::google::protobuf::Metadata GetMetadata() const final;
  3077. // nested types ----------------------------------------------------
  3078. // accessors -------------------------------------------------------
  3079. // optional int32 a = 17;
  3080. bool has_a() const;
  3081. void clear_a();
  3082. static const int kAFieldNumber = 17;
  3083. ::google::protobuf::int32 a() const;
  3084. void set_a(::google::protobuf::int32 value);
  3085. // @@protoc_insertion_point(class_scope:protobuf_unittest.TestGroup.OptionalGroup)
  3086. private:
  3087. void set_has_a();
  3088. void clear_has_a();
  3089. ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
  3090. template <typename T> friend class ::google::protobuf::Arena::InternalHelper;
  3091. typedef void InternalArenaConstructable_;
  3092. typedef void DestructorSkippable_;
  3093. ::google::protobuf::internal::HasBits<1> _has_bits_;
  3094. mutable ::google::protobuf::internal::CachedSize _cached_size_;
  3095. ::google::protobuf::int32 a_;
  3096. friend struct ::protobuf_google_2fprotobuf_2funittest_2eproto::TableStruct;
  3097. };
  3098. // -------------------------------------------------------------------
  3099. class TestGroup : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:protobuf_unittest.TestGroup) */ {
  3100. public:
  3101. TestGroup();
  3102. virtual ~TestGroup();
  3103. TestGroup(const TestGroup& from);
  3104. inline TestGroup& operator=(const TestGroup& from) {
  3105. CopyFrom(from);
  3106. return *this;
  3107. }
  3108. #if LANG_CXX11
  3109. TestGroup(TestGroup&& from) noexcept
  3110. : TestGroup() {
  3111. *this = ::std::move(from);
  3112. }
  3113. inline TestGroup& operator=(TestGroup&& from) noexcept {
  3114. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  3115. if (this != &from) InternalSwap(&from);
  3116. } else {
  3117. CopyFrom(from);
  3118. }
  3119. return *this;
  3120. }
  3121. #endif
  3122. inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
  3123. return _internal_metadata_.unknown_fields();
  3124. }
  3125. inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
  3126. return _internal_metadata_.mutable_unknown_fields();
  3127. }
  3128. inline ::google::protobuf::Arena* GetArena() const final {
  3129. return GetArenaNoVirtual();
  3130. }
  3131. inline void* GetMaybeArenaPointer() const final {
  3132. return MaybeArenaPtr();
  3133. }
  3134. static const ::google::protobuf::Descriptor* descriptor();
  3135. static const TestGroup& default_instance();
  3136. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  3137. static inline const TestGroup* internal_default_instance() {
  3138. return reinterpret_cast<const TestGroup*>(
  3139. &_TestGroup_default_instance_);
  3140. }
  3141. static constexpr int kIndexInFileMessages =
  3142. 13;
  3143. void UnsafeArenaSwap(TestGroup* other);
  3144. void Swap(TestGroup* other);
  3145. friend void swap(TestGroup& a, TestGroup& b) {
  3146. a.Swap(&b);
  3147. }
  3148. // implements Message ----------------------------------------------
  3149. inline TestGroup* New() const final {
  3150. return CreateMaybeMessage<TestGroup>(NULL);
  3151. }
  3152. TestGroup* New(::google::protobuf::Arena* arena) const final {
  3153. return CreateMaybeMessage<TestGroup>(arena);
  3154. }
  3155. void CopyFrom(const ::google::protobuf::Message& from) final;
  3156. void MergeFrom(const ::google::protobuf::Message& from) final;
  3157. void CopyFrom(const TestGroup& from);
  3158. void MergeFrom(const TestGroup& from);
  3159. void Clear() final;
  3160. bool IsInitialized() const final;
  3161. size_t ByteSizeLong() const final;
  3162. bool MergePartialFromCodedStream(
  3163. ::google::protobuf::io::CodedInputStream* input) final;
  3164. void SerializeWithCachedSizes(
  3165. ::google::protobuf::io::CodedOutputStream* output) const final;
  3166. ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
  3167. bool deterministic, ::google::protobuf::uint8* target) const final;
  3168. int GetCachedSize() const final { return _cached_size_.Get(); }
  3169. private:
  3170. void SharedCtor();
  3171. void SharedDtor();
  3172. void SetCachedSize(int size) const final;
  3173. void InternalSwap(TestGroup* other);
  3174. protected:
  3175. explicit TestGroup(::google::protobuf::Arena* arena);
  3176. private:
  3177. static void ArenaDtor(void* object);
  3178. inline void RegisterArenaDtor(::google::protobuf::Arena* arena);
  3179. private:
  3180. inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
  3181. return _internal_metadata_.arena();
  3182. }
  3183. inline void* MaybeArenaPtr() const {
  3184. return _internal_metadata_.raw_arena_ptr();
  3185. }
  3186. public:
  3187. ::google::protobuf::Metadata GetMetadata() const final;
  3188. // nested types ----------------------------------------------------
  3189. typedef TestGroup_OptionalGroup OptionalGroup;
  3190. // accessors -------------------------------------------------------
  3191. // optional group OptionalGroup = 16 { ... };
  3192. bool has_optionalgroup() const;
  3193. void clear_optionalgroup();
  3194. static const int kOptionalgroupFieldNumber = 16;
  3195. private:
  3196. const ::protobuf_unittest::TestGroup_OptionalGroup& _internal_optionalgroup() const;
  3197. public:
  3198. const ::protobuf_unittest::TestGroup_OptionalGroup& optionalgroup() const;
  3199. ::protobuf_unittest::TestGroup_OptionalGroup* release_optionalgroup();
  3200. ::protobuf_unittest::TestGroup_OptionalGroup* mutable_optionalgroup();
  3201. void set_allocated_optionalgroup(::protobuf_unittest::TestGroup_OptionalGroup* optionalgroup);
  3202. void unsafe_arena_set_allocated_optionalgroup(
  3203. ::protobuf_unittest::TestGroup_OptionalGroup* optionalgroup);
  3204. ::protobuf_unittest::TestGroup_OptionalGroup* unsafe_arena_release_optionalgroup();
  3205. // optional .protobuf_unittest.ForeignEnum optional_foreign_enum = 22;
  3206. bool has_optional_foreign_enum() const;
  3207. void clear_optional_foreign_enum();
  3208. static const int kOptionalForeignEnumFieldNumber = 22;
  3209. ::protobuf_unittest::ForeignEnum optional_foreign_enum() const;
  3210. void set_optional_foreign_enum(::protobuf_unittest::ForeignEnum value);
  3211. // @@protoc_insertion_point(class_scope:protobuf_unittest.TestGroup)
  3212. private:
  3213. void set_has_optionalgroup();
  3214. void clear_has_optionalgroup();
  3215. void set_has_optional_foreign_enum();
  3216. void clear_has_optional_foreign_enum();
  3217. ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
  3218. template <typename T> friend class ::google::protobuf::Arena::InternalHelper;
  3219. typedef void InternalArenaConstructable_;
  3220. typedef void DestructorSkippable_;
  3221. ::google::protobuf::internal::HasBits<1> _has_bits_;
  3222. mutable ::google::protobuf::internal::CachedSize _cached_size_;
  3223. ::protobuf_unittest::TestGroup_OptionalGroup* optionalgroup_;
  3224. int optional_foreign_enum_;
  3225. friend struct ::protobuf_google_2fprotobuf_2funittest_2eproto::TableStruct;
  3226. };
  3227. // -------------------------------------------------------------------
  3228. class TestGroupExtension : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:protobuf_unittest.TestGroupExtension) */ {
  3229. public:
  3230. TestGroupExtension();
  3231. virtual ~TestGroupExtension();
  3232. TestGroupExtension(const TestGroupExtension& from);
  3233. inline TestGroupExtension& operator=(const TestGroupExtension& from) {
  3234. CopyFrom(from);
  3235. return *this;
  3236. }
  3237. #if LANG_CXX11
  3238. TestGroupExtension(TestGroupExtension&& from) noexcept
  3239. : TestGroupExtension() {
  3240. *this = ::std::move(from);
  3241. }
  3242. inline TestGroupExtension& operator=(TestGroupExtension&& from) noexcept {
  3243. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  3244. if (this != &from) InternalSwap(&from);
  3245. } else {
  3246. CopyFrom(from);
  3247. }
  3248. return *this;
  3249. }
  3250. #endif
  3251. inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
  3252. return _internal_metadata_.unknown_fields();
  3253. }
  3254. inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
  3255. return _internal_metadata_.mutable_unknown_fields();
  3256. }
  3257. inline ::google::protobuf::Arena* GetArena() const final {
  3258. return GetArenaNoVirtual();
  3259. }
  3260. inline void* GetMaybeArenaPointer() const final {
  3261. return MaybeArenaPtr();
  3262. }
  3263. static const ::google::protobuf::Descriptor* descriptor();
  3264. static const TestGroupExtension& default_instance();
  3265. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  3266. static inline const TestGroupExtension* internal_default_instance() {
  3267. return reinterpret_cast<const TestGroupExtension*>(
  3268. &_TestGroupExtension_default_instance_);
  3269. }
  3270. static constexpr int kIndexInFileMessages =
  3271. 14;
  3272. void UnsafeArenaSwap(TestGroupExtension* other);
  3273. void Swap(TestGroupExtension* other);
  3274. friend void swap(TestGroupExtension& a, TestGroupExtension& b) {
  3275. a.Swap(&b);
  3276. }
  3277. // implements Message ----------------------------------------------
  3278. inline TestGroupExtension* New() const final {
  3279. return CreateMaybeMessage<TestGroupExtension>(NULL);
  3280. }
  3281. TestGroupExtension* New(::google::protobuf::Arena* arena) const final {
  3282. return CreateMaybeMessage<TestGroupExtension>(arena);
  3283. }
  3284. void CopyFrom(const ::google::protobuf::Message& from) final;
  3285. void MergeFrom(const ::google::protobuf::Message& from) final;
  3286. void CopyFrom(const TestGroupExtension& from);
  3287. void MergeFrom(const TestGroupExtension& from);
  3288. void Clear() final;
  3289. bool IsInitialized() const final;
  3290. size_t ByteSizeLong() const final;
  3291. bool MergePartialFromCodedStream(
  3292. ::google::protobuf::io::CodedInputStream* input) final;
  3293. void SerializeWithCachedSizes(
  3294. ::google::protobuf::io::CodedOutputStream* output) const final;
  3295. ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
  3296. bool deterministic, ::google::protobuf::uint8* target) const final;
  3297. int GetCachedSize() const final { return _cached_size_.Get(); }
  3298. private:
  3299. void SharedCtor();
  3300. void SharedDtor();
  3301. void SetCachedSize(int size) const final;
  3302. void InternalSwap(TestGroupExtension* other);
  3303. protected:
  3304. explicit TestGroupExtension(::google::protobuf::Arena* arena);
  3305. private:
  3306. static void ArenaDtor(void* object);
  3307. inline void RegisterArenaDtor(::google::protobuf::Arena* arena);
  3308. private:
  3309. inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
  3310. return _internal_metadata_.arena();
  3311. }
  3312. inline void* MaybeArenaPtr() const {
  3313. return _internal_metadata_.raw_arena_ptr();
  3314. }
  3315. public:
  3316. ::google::protobuf::Metadata GetMetadata() const final;
  3317. // nested types ----------------------------------------------------
  3318. // accessors -------------------------------------------------------
  3319. GOOGLE_PROTOBUF_EXTENSION_ACCESSORS(TestGroupExtension)
  3320. // @@protoc_insertion_point(class_scope:protobuf_unittest.TestGroupExtension)
  3321. private:
  3322. ::google::protobuf::internal::ExtensionSet _extensions_;
  3323. ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
  3324. template <typename T> friend class ::google::protobuf::Arena::InternalHelper;
  3325. typedef void InternalArenaConstructable_;
  3326. typedef void DestructorSkippable_;
  3327. ::google::protobuf::internal::HasBits<1> _has_bits_;
  3328. mutable ::google::protobuf::internal::CachedSize _cached_size_;
  3329. friend struct ::protobuf_google_2fprotobuf_2funittest_2eproto::TableStruct;
  3330. };
  3331. // -------------------------------------------------------------------
  3332. class TestNestedExtension_OptionalGroup_extension : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:protobuf_unittest.TestNestedExtension.OptionalGroup_extension) */ {
  3333. public:
  3334. TestNestedExtension_OptionalGroup_extension();
  3335. virtual ~TestNestedExtension_OptionalGroup_extension();
  3336. TestNestedExtension_OptionalGroup_extension(const TestNestedExtension_OptionalGroup_extension& from);
  3337. inline TestNestedExtension_OptionalGroup_extension& operator=(const TestNestedExtension_OptionalGroup_extension& from) {
  3338. CopyFrom(from);
  3339. return *this;
  3340. }
  3341. #if LANG_CXX11
  3342. TestNestedExtension_OptionalGroup_extension(TestNestedExtension_OptionalGroup_extension&& from) noexcept
  3343. : TestNestedExtension_OptionalGroup_extension() {
  3344. *this = ::std::move(from);
  3345. }
  3346. inline TestNestedExtension_OptionalGroup_extension& operator=(TestNestedExtension_OptionalGroup_extension&& from) noexcept {
  3347. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  3348. if (this != &from) InternalSwap(&from);
  3349. } else {
  3350. CopyFrom(from);
  3351. }
  3352. return *this;
  3353. }
  3354. #endif
  3355. inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
  3356. return _internal_metadata_.unknown_fields();
  3357. }
  3358. inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
  3359. return _internal_metadata_.mutable_unknown_fields();
  3360. }
  3361. inline ::google::protobuf::Arena* GetArena() const final {
  3362. return GetArenaNoVirtual();
  3363. }
  3364. inline void* GetMaybeArenaPointer() const final {
  3365. return MaybeArenaPtr();
  3366. }
  3367. static const ::google::protobuf::Descriptor* descriptor();
  3368. static const TestNestedExtension_OptionalGroup_extension& default_instance();
  3369. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  3370. static inline const TestNestedExtension_OptionalGroup_extension* internal_default_instance() {
  3371. return reinterpret_cast<const TestNestedExtension_OptionalGroup_extension*>(
  3372. &_TestNestedExtension_OptionalGroup_extension_default_instance_);
  3373. }
  3374. static constexpr int kIndexInFileMessages =
  3375. 15;
  3376. void UnsafeArenaSwap(TestNestedExtension_OptionalGroup_extension* other);
  3377. void Swap(TestNestedExtension_OptionalGroup_extension* other);
  3378. friend void swap(TestNestedExtension_OptionalGroup_extension& a, TestNestedExtension_OptionalGroup_extension& b) {
  3379. a.Swap(&b);
  3380. }
  3381. // implements Message ----------------------------------------------
  3382. inline TestNestedExtension_OptionalGroup_extension* New() const final {
  3383. return CreateMaybeMessage<TestNestedExtension_OptionalGroup_extension>(NULL);
  3384. }
  3385. TestNestedExtension_OptionalGroup_extension* New(::google::protobuf::Arena* arena) const final {
  3386. return CreateMaybeMessage<TestNestedExtension_OptionalGroup_extension>(arena);
  3387. }
  3388. void CopyFrom(const ::google::protobuf::Message& from) final;
  3389. void MergeFrom(const ::google::protobuf::Message& from) final;
  3390. void CopyFrom(const TestNestedExtension_OptionalGroup_extension& from);
  3391. void MergeFrom(const TestNestedExtension_OptionalGroup_extension& from);
  3392. void Clear() final;
  3393. bool IsInitialized() const final;
  3394. size_t ByteSizeLong() const final;
  3395. bool MergePartialFromCodedStream(
  3396. ::google::protobuf::io::CodedInputStream* input) final;
  3397. void SerializeWithCachedSizes(
  3398. ::google::protobuf::io::CodedOutputStream* output) const final;
  3399. ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
  3400. bool deterministic, ::google::protobuf::uint8* target) const final;
  3401. int GetCachedSize() const final { return _cached_size_.Get(); }
  3402. private:
  3403. void SharedCtor();
  3404. void SharedDtor();
  3405. void SetCachedSize(int size) const final;
  3406. void InternalSwap(TestNestedExtension_OptionalGroup_extension* other);
  3407. protected:
  3408. explicit TestNestedExtension_OptionalGroup_extension(::google::protobuf::Arena* arena);
  3409. private:
  3410. static void ArenaDtor(void* object);
  3411. inline void RegisterArenaDtor(::google::protobuf::Arena* arena);
  3412. private:
  3413. inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
  3414. return _internal_metadata_.arena();
  3415. }
  3416. inline void* MaybeArenaPtr() const {
  3417. return _internal_metadata_.raw_arena_ptr();
  3418. }
  3419. public:
  3420. ::google::protobuf::Metadata GetMetadata() const final;
  3421. // nested types ----------------------------------------------------
  3422. // accessors -------------------------------------------------------
  3423. // optional int32 a = 17;
  3424. bool has_a() const;
  3425. void clear_a();
  3426. static const int kAFieldNumber = 17;
  3427. ::google::protobuf::int32 a() const;
  3428. void set_a(::google::protobuf::int32 value);
  3429. // @@protoc_insertion_point(class_scope:protobuf_unittest.TestNestedExtension.OptionalGroup_extension)
  3430. private:
  3431. void set_has_a();
  3432. void clear_has_a();
  3433. ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
  3434. template <typename T> friend class ::google::protobuf::Arena::InternalHelper;
  3435. typedef void InternalArenaConstructable_;
  3436. typedef void DestructorSkippable_;
  3437. ::google::protobuf::internal::HasBits<1> _has_bits_;
  3438. mutable ::google::protobuf::internal::CachedSize _cached_size_;
  3439. ::google::protobuf::int32 a_;
  3440. friend struct ::protobuf_google_2fprotobuf_2funittest_2eproto::TableStruct;
  3441. };
  3442. // -------------------------------------------------------------------
  3443. class TestNestedExtension : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:protobuf_unittest.TestNestedExtension) */ {
  3444. public:
  3445. TestNestedExtension();
  3446. virtual ~TestNestedExtension();
  3447. TestNestedExtension(const TestNestedExtension& from);
  3448. inline TestNestedExtension& operator=(const TestNestedExtension& from) {
  3449. CopyFrom(from);
  3450. return *this;
  3451. }
  3452. #if LANG_CXX11
  3453. TestNestedExtension(TestNestedExtension&& from) noexcept
  3454. : TestNestedExtension() {
  3455. *this = ::std::move(from);
  3456. }
  3457. inline TestNestedExtension& operator=(TestNestedExtension&& from) noexcept {
  3458. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  3459. if (this != &from) InternalSwap(&from);
  3460. } else {
  3461. CopyFrom(from);
  3462. }
  3463. return *this;
  3464. }
  3465. #endif
  3466. inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
  3467. return _internal_metadata_.unknown_fields();
  3468. }
  3469. inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
  3470. return _internal_metadata_.mutable_unknown_fields();
  3471. }
  3472. inline ::google::protobuf::Arena* GetArena() const final {
  3473. return GetArenaNoVirtual();
  3474. }
  3475. inline void* GetMaybeArenaPointer() const final {
  3476. return MaybeArenaPtr();
  3477. }
  3478. static const ::google::protobuf::Descriptor* descriptor();
  3479. static const TestNestedExtension& default_instance();
  3480. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  3481. static inline const TestNestedExtension* internal_default_instance() {
  3482. return reinterpret_cast<const TestNestedExtension*>(
  3483. &_TestNestedExtension_default_instance_);
  3484. }
  3485. static constexpr int kIndexInFileMessages =
  3486. 16;
  3487. void UnsafeArenaSwap(TestNestedExtension* other);
  3488. void Swap(TestNestedExtension* other);
  3489. friend void swap(TestNestedExtension& a, TestNestedExtension& b) {
  3490. a.Swap(&b);
  3491. }
  3492. // implements Message ----------------------------------------------
  3493. inline TestNestedExtension* New() const final {
  3494. return CreateMaybeMessage<TestNestedExtension>(NULL);
  3495. }
  3496. TestNestedExtension* New(::google::protobuf::Arena* arena) const final {
  3497. return CreateMaybeMessage<TestNestedExtension>(arena);
  3498. }
  3499. void CopyFrom(const ::google::protobuf::Message& from) final;
  3500. void MergeFrom(const ::google::protobuf::Message& from) final;
  3501. void CopyFrom(const TestNestedExtension& from);
  3502. void MergeFrom(const TestNestedExtension& from);
  3503. void Clear() final;
  3504. bool IsInitialized() const final;
  3505. size_t ByteSizeLong() const final;
  3506. bool MergePartialFromCodedStream(
  3507. ::google::protobuf::io::CodedInputStream* input) final;
  3508. void SerializeWithCachedSizes(
  3509. ::google::protobuf::io::CodedOutputStream* output) const final;
  3510. ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
  3511. bool deterministic, ::google::protobuf::uint8* target) const final;
  3512. int GetCachedSize() const final { return _cached_size_.Get(); }
  3513. private:
  3514. void SharedCtor();
  3515. void SharedDtor();
  3516. void SetCachedSize(int size) const final;
  3517. void InternalSwap(TestNestedExtension* other);
  3518. protected:
  3519. explicit TestNestedExtension(::google::protobuf::Arena* arena);
  3520. private:
  3521. static void ArenaDtor(void* object);
  3522. inline void RegisterArenaDtor(::google::protobuf::Arena* arena);
  3523. private:
  3524. inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
  3525. return _internal_metadata_.arena();
  3526. }
  3527. inline void* MaybeArenaPtr() const {
  3528. return _internal_metadata_.raw_arena_ptr();
  3529. }
  3530. public:
  3531. ::google::protobuf::Metadata GetMetadata() const final;
  3532. // nested types ----------------------------------------------------
  3533. typedef TestNestedExtension_OptionalGroup_extension OptionalGroup_extension;
  3534. // accessors -------------------------------------------------------
  3535. static const int kTestFieldNumber = 1002;
  3536. static ::google::protobuf::internal::ExtensionIdentifier< ::protobuf_unittest::TestAllExtensions,
  3537. ::google::protobuf::internal::StringTypeTraits, 9, false >
  3538. test;
  3539. static const int kNestedStringExtensionFieldNumber = 1003;
  3540. static ::google::protobuf::internal::ExtensionIdentifier< ::protobuf_unittest::TestAllExtensions,
  3541. ::google::protobuf::internal::StringTypeTraits, 9, false >
  3542. nested_string_extension;
  3543. static const int kOptionalgroupExtensionFieldNumber = 16;
  3544. static ::google::protobuf::internal::ExtensionIdentifier< ::protobuf_unittest::TestGroupExtension,
  3545. ::google::protobuf::internal::MessageTypeTraits< ::protobuf_unittest::TestNestedExtension_OptionalGroup_extension >, 10, false >
  3546. optionalgroup_extension;
  3547. static const int kOptionalForeignEnumExtensionFieldNumber = 22;
  3548. static ::google::protobuf::internal::ExtensionIdentifier< ::protobuf_unittest::TestGroupExtension,
  3549. ::google::protobuf::internal::EnumTypeTraits< ::protobuf_unittest::ForeignEnum, ::protobuf_unittest::ForeignEnum_IsValid>, 14, false >
  3550. optional_foreign_enum_extension;
  3551. // @@protoc_insertion_point(class_scope:protobuf_unittest.TestNestedExtension)
  3552. private:
  3553. ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
  3554. template <typename T> friend class ::google::protobuf::Arena::InternalHelper;
  3555. typedef void InternalArenaConstructable_;
  3556. typedef void DestructorSkippable_;
  3557. ::google::protobuf::internal::HasBits<1> _has_bits_;
  3558. mutable ::google::protobuf::internal::CachedSize _cached_size_;
  3559. friend struct ::protobuf_google_2fprotobuf_2funittest_2eproto::TableStruct;
  3560. };
  3561. // -------------------------------------------------------------------
  3562. class TestRequired : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:protobuf_unittest.TestRequired) */ {
  3563. public:
  3564. TestRequired();
  3565. virtual ~TestRequired();
  3566. TestRequired(const TestRequired& from);
  3567. inline TestRequired& operator=(const TestRequired& from) {
  3568. CopyFrom(from);
  3569. return *this;
  3570. }
  3571. #if LANG_CXX11
  3572. TestRequired(TestRequired&& from) noexcept
  3573. : TestRequired() {
  3574. *this = ::std::move(from);
  3575. }
  3576. inline TestRequired& operator=(TestRequired&& from) noexcept {
  3577. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  3578. if (this != &from) InternalSwap(&from);
  3579. } else {
  3580. CopyFrom(from);
  3581. }
  3582. return *this;
  3583. }
  3584. #endif
  3585. inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
  3586. return _internal_metadata_.unknown_fields();
  3587. }
  3588. inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
  3589. return _internal_metadata_.mutable_unknown_fields();
  3590. }
  3591. inline ::google::protobuf::Arena* GetArena() const final {
  3592. return GetArenaNoVirtual();
  3593. }
  3594. inline void* GetMaybeArenaPointer() const final {
  3595. return MaybeArenaPtr();
  3596. }
  3597. static const ::google::protobuf::Descriptor* descriptor();
  3598. static const TestRequired& default_instance();
  3599. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  3600. static inline const TestRequired* internal_default_instance() {
  3601. return reinterpret_cast<const TestRequired*>(
  3602. &_TestRequired_default_instance_);
  3603. }
  3604. static constexpr int kIndexInFileMessages =
  3605. 17;
  3606. void UnsafeArenaSwap(TestRequired* other);
  3607. void Swap(TestRequired* other);
  3608. friend void swap(TestRequired& a, TestRequired& b) {
  3609. a.Swap(&b);
  3610. }
  3611. // implements Message ----------------------------------------------
  3612. inline TestRequired* New() const final {
  3613. return CreateMaybeMessage<TestRequired>(NULL);
  3614. }
  3615. TestRequired* New(::google::protobuf::Arena* arena) const final {
  3616. return CreateMaybeMessage<TestRequired>(arena);
  3617. }
  3618. void CopyFrom(const ::google::protobuf::Message& from) final;
  3619. void MergeFrom(const ::google::protobuf::Message& from) final;
  3620. void CopyFrom(const TestRequired& from);
  3621. void MergeFrom(const TestRequired& from);
  3622. void Clear() final;
  3623. bool IsInitialized() const final;
  3624. size_t ByteSizeLong() const final;
  3625. bool MergePartialFromCodedStream(
  3626. ::google::protobuf::io::CodedInputStream* input) final;
  3627. void SerializeWithCachedSizes(
  3628. ::google::protobuf::io::CodedOutputStream* output) const final;
  3629. ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
  3630. bool deterministic, ::google::protobuf::uint8* target) const final;
  3631. int GetCachedSize() const final { return _cached_size_.Get(); }
  3632. private:
  3633. void SharedCtor();
  3634. void SharedDtor();
  3635. void SetCachedSize(int size) const final;
  3636. void InternalSwap(TestRequired* other);
  3637. protected:
  3638. explicit TestRequired(::google::protobuf::Arena* arena);
  3639. private:
  3640. static void ArenaDtor(void* object);
  3641. inline void RegisterArenaDtor(::google::protobuf::Arena* arena);
  3642. private:
  3643. inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
  3644. return _internal_metadata_.arena();
  3645. }
  3646. inline void* MaybeArenaPtr() const {
  3647. return _internal_metadata_.raw_arena_ptr();
  3648. }
  3649. public:
  3650. ::google::protobuf::Metadata GetMetadata() const final;
  3651. // nested types ----------------------------------------------------
  3652. // accessors -------------------------------------------------------
  3653. // required int32 a = 1;
  3654. bool has_a() const;
  3655. void clear_a();
  3656. static const int kAFieldNumber = 1;
  3657. ::google::protobuf::int32 a() const;
  3658. void set_a(::google::protobuf::int32 value);
  3659. // optional int32 dummy2 = 2;
  3660. bool has_dummy2() const;
  3661. void clear_dummy2();
  3662. static const int kDummy2FieldNumber = 2;
  3663. ::google::protobuf::int32 dummy2() const;
  3664. void set_dummy2(::google::protobuf::int32 value);
  3665. // required int32 b = 3;
  3666. bool has_b() const;
  3667. void clear_b();
  3668. static const int kBFieldNumber = 3;
  3669. ::google::protobuf::int32 b() const;
  3670. void set_b(::google::protobuf::int32 value);
  3671. // optional int32 dummy4 = 4;
  3672. bool has_dummy4() const;
  3673. void clear_dummy4();
  3674. static const int kDummy4FieldNumber = 4;
  3675. ::google::protobuf::int32 dummy4() const;
  3676. void set_dummy4(::google::protobuf::int32 value);
  3677. // optional int32 dummy5 = 5;
  3678. bool has_dummy5() const;
  3679. void clear_dummy5();
  3680. static const int kDummy5FieldNumber = 5;
  3681. ::google::protobuf::int32 dummy5() const;
  3682. void set_dummy5(::google::protobuf::int32 value);
  3683. // optional int32 dummy6 = 6;
  3684. bool has_dummy6() const;
  3685. void clear_dummy6();
  3686. static const int kDummy6FieldNumber = 6;
  3687. ::google::protobuf::int32 dummy6() const;
  3688. void set_dummy6(::google::protobuf::int32 value);
  3689. // optional int32 dummy7 = 7;
  3690. bool has_dummy7() const;
  3691. void clear_dummy7();
  3692. static const int kDummy7FieldNumber = 7;
  3693. ::google::protobuf::int32 dummy7() const;
  3694. void set_dummy7(::google::protobuf::int32 value);
  3695. // optional int32 dummy8 = 8;
  3696. bool has_dummy8() const;
  3697. void clear_dummy8();
  3698. static const int kDummy8FieldNumber = 8;
  3699. ::google::protobuf::int32 dummy8() const;
  3700. void set_dummy8(::google::protobuf::int32 value);
  3701. // optional int32 dummy9 = 9;
  3702. bool has_dummy9() const;
  3703. void clear_dummy9();
  3704. static const int kDummy9FieldNumber = 9;
  3705. ::google::protobuf::int32 dummy9() const;
  3706. void set_dummy9(::google::protobuf::int32 value);
  3707. // optional int32 dummy10 = 10;
  3708. bool has_dummy10() const;
  3709. void clear_dummy10();
  3710. static const int kDummy10FieldNumber = 10;
  3711. ::google::protobuf::int32 dummy10() const;
  3712. void set_dummy10(::google::protobuf::int32 value);
  3713. // optional int32 dummy11 = 11;
  3714. bool has_dummy11() const;
  3715. void clear_dummy11();
  3716. static const int kDummy11FieldNumber = 11;
  3717. ::google::protobuf::int32 dummy11() const;
  3718. void set_dummy11(::google::protobuf::int32 value);
  3719. // optional int32 dummy12 = 12;
  3720. bool has_dummy12() const;
  3721. void clear_dummy12();
  3722. static const int kDummy12FieldNumber = 12;
  3723. ::google::protobuf::int32 dummy12() const;
  3724. void set_dummy12(::google::protobuf::int32 value);
  3725. // optional int32 dummy13 = 13;
  3726. bool has_dummy13() const;
  3727. void clear_dummy13();
  3728. static const int kDummy13FieldNumber = 13;
  3729. ::google::protobuf::int32 dummy13() const;
  3730. void set_dummy13(::google::protobuf::int32 value);
  3731. // optional int32 dummy14 = 14;
  3732. bool has_dummy14() const;
  3733. void clear_dummy14();
  3734. static const int kDummy14FieldNumber = 14;
  3735. ::google::protobuf::int32 dummy14() const;
  3736. void set_dummy14(::google::protobuf::int32 value);
  3737. // optional int32 dummy15 = 15;
  3738. bool has_dummy15() const;
  3739. void clear_dummy15();
  3740. static const int kDummy15FieldNumber = 15;
  3741. ::google::protobuf::int32 dummy15() const;
  3742. void set_dummy15(::google::protobuf::int32 value);
  3743. // optional int32 dummy16 = 16;
  3744. bool has_dummy16() const;
  3745. void clear_dummy16();
  3746. static const int kDummy16FieldNumber = 16;
  3747. ::google::protobuf::int32 dummy16() const;
  3748. void set_dummy16(::google::protobuf::int32 value);
  3749. // optional int32 dummy17 = 17;
  3750. bool has_dummy17() const;
  3751. void clear_dummy17();
  3752. static const int kDummy17FieldNumber = 17;
  3753. ::google::protobuf::int32 dummy17() const;
  3754. void set_dummy17(::google::protobuf::int32 value);
  3755. // optional int32 dummy18 = 18;
  3756. bool has_dummy18() const;
  3757. void clear_dummy18();
  3758. static const int kDummy18FieldNumber = 18;
  3759. ::google::protobuf::int32 dummy18() const;
  3760. void set_dummy18(::google::protobuf::int32 value);
  3761. // optional int32 dummy19 = 19;
  3762. bool has_dummy19() const;
  3763. void clear_dummy19();
  3764. static const int kDummy19FieldNumber = 19;
  3765. ::google::protobuf::int32 dummy19() const;
  3766. void set_dummy19(::google::protobuf::int32 value);
  3767. // optional int32 dummy20 = 20;
  3768. bool has_dummy20() const;
  3769. void clear_dummy20();
  3770. static const int kDummy20FieldNumber = 20;
  3771. ::google::protobuf::int32 dummy20() const;
  3772. void set_dummy20(::google::protobuf::int32 value);
  3773. // optional int32 dummy21 = 21;
  3774. bool has_dummy21() const;
  3775. void clear_dummy21();
  3776. static const int kDummy21FieldNumber = 21;
  3777. ::google::protobuf::int32 dummy21() const;
  3778. void set_dummy21(::google::protobuf::int32 value);
  3779. // optional int32 dummy22 = 22;
  3780. bool has_dummy22() const;
  3781. void clear_dummy22();
  3782. static const int kDummy22FieldNumber = 22;
  3783. ::google::protobuf::int32 dummy22() const;
  3784. void set_dummy22(::google::protobuf::int32 value);
  3785. // optional int32 dummy23 = 23;
  3786. bool has_dummy23() const;
  3787. void clear_dummy23();
  3788. static const int kDummy23FieldNumber = 23;
  3789. ::google::protobuf::int32 dummy23() const;
  3790. void set_dummy23(::google::protobuf::int32 value);
  3791. // optional int32 dummy24 = 24;
  3792. bool has_dummy24() const;
  3793. void clear_dummy24();
  3794. static const int kDummy24FieldNumber = 24;
  3795. ::google::protobuf::int32 dummy24() const;
  3796. void set_dummy24(::google::protobuf::int32 value);
  3797. // optional int32 dummy25 = 25;
  3798. bool has_dummy25() const;
  3799. void clear_dummy25();
  3800. static const int kDummy25FieldNumber = 25;
  3801. ::google::protobuf::int32 dummy25() const;
  3802. void set_dummy25(::google::protobuf::int32 value);
  3803. // optional int32 dummy26 = 26;
  3804. bool has_dummy26() const;
  3805. void clear_dummy26();
  3806. static const int kDummy26FieldNumber = 26;
  3807. ::google::protobuf::int32 dummy26() const;
  3808. void set_dummy26(::google::protobuf::int32 value);
  3809. // optional int32 dummy27 = 27;
  3810. bool has_dummy27() const;
  3811. void clear_dummy27();
  3812. static const int kDummy27FieldNumber = 27;
  3813. ::google::protobuf::int32 dummy27() const;
  3814. void set_dummy27(::google::protobuf::int32 value);
  3815. // optional int32 dummy28 = 28;
  3816. bool has_dummy28() const;
  3817. void clear_dummy28();
  3818. static const int kDummy28FieldNumber = 28;
  3819. ::google::protobuf::int32 dummy28() const;
  3820. void set_dummy28(::google::protobuf::int32 value);
  3821. // optional int32 dummy29 = 29;
  3822. bool has_dummy29() const;
  3823. void clear_dummy29();
  3824. static const int kDummy29FieldNumber = 29;
  3825. ::google::protobuf::int32 dummy29() const;
  3826. void set_dummy29(::google::protobuf::int32 value);
  3827. // optional int32 dummy30 = 30;
  3828. bool has_dummy30() const;
  3829. void clear_dummy30();
  3830. static const int kDummy30FieldNumber = 30;
  3831. ::google::protobuf::int32 dummy30() const;
  3832. void set_dummy30(::google::protobuf::int32 value);
  3833. // optional int32 dummy31 = 31;
  3834. bool has_dummy31() const;
  3835. void clear_dummy31();
  3836. static const int kDummy31FieldNumber = 31;
  3837. ::google::protobuf::int32 dummy31() const;
  3838. void set_dummy31(::google::protobuf::int32 value);
  3839. // optional int32 dummy32 = 32;
  3840. bool has_dummy32() const;
  3841. void clear_dummy32();
  3842. static const int kDummy32FieldNumber = 32;
  3843. ::google::protobuf::int32 dummy32() const;
  3844. void set_dummy32(::google::protobuf::int32 value);
  3845. // required int32 c = 33;
  3846. bool has_c() const;
  3847. void clear_c();
  3848. static const int kCFieldNumber = 33;
  3849. ::google::protobuf::int32 c() const;
  3850. void set_c(::google::protobuf::int32 value);
  3851. static const int kSingleFieldNumber = 1000;
  3852. static ::google::protobuf::internal::ExtensionIdentifier< ::protobuf_unittest::TestAllExtensions,
  3853. ::google::protobuf::internal::MessageTypeTraits< ::protobuf_unittest::TestRequired >, 11, false >
  3854. single;
  3855. static const int kMultiFieldNumber = 1001;
  3856. static ::google::protobuf::internal::ExtensionIdentifier< ::protobuf_unittest::TestAllExtensions,
  3857. ::google::protobuf::internal::RepeatedMessageTypeTraits< ::protobuf_unittest::TestRequired >, 11, false >
  3858. multi;
  3859. // @@protoc_insertion_point(class_scope:protobuf_unittest.TestRequired)
  3860. private:
  3861. void set_has_a();
  3862. void clear_has_a();
  3863. void set_has_dummy2();
  3864. void clear_has_dummy2();
  3865. void set_has_b();
  3866. void clear_has_b();
  3867. void set_has_dummy4();
  3868. void clear_has_dummy4();
  3869. void set_has_dummy5();
  3870. void clear_has_dummy5();
  3871. void set_has_dummy6();
  3872. void clear_has_dummy6();
  3873. void set_has_dummy7();
  3874. void clear_has_dummy7();
  3875. void set_has_dummy8();
  3876. void clear_has_dummy8();
  3877. void set_has_dummy9();
  3878. void clear_has_dummy9();
  3879. void set_has_dummy10();
  3880. void clear_has_dummy10();
  3881. void set_has_dummy11();
  3882. void clear_has_dummy11();
  3883. void set_has_dummy12();
  3884. void clear_has_dummy12();
  3885. void set_has_dummy13();
  3886. void clear_has_dummy13();
  3887. void set_has_dummy14();
  3888. void clear_has_dummy14();
  3889. void set_has_dummy15();
  3890. void clear_has_dummy15();
  3891. void set_has_dummy16();
  3892. void clear_has_dummy16();
  3893. void set_has_dummy17();
  3894. void clear_has_dummy17();
  3895. void set_has_dummy18();
  3896. void clear_has_dummy18();
  3897. void set_has_dummy19();
  3898. void clear_has_dummy19();
  3899. void set_has_dummy20();
  3900. void clear_has_dummy20();
  3901. void set_has_dummy21();
  3902. void clear_has_dummy21();
  3903. void set_has_dummy22();
  3904. void clear_has_dummy22();
  3905. void set_has_dummy23();
  3906. void clear_has_dummy23();
  3907. void set_has_dummy24();
  3908. void clear_has_dummy24();
  3909. void set_has_dummy25();
  3910. void clear_has_dummy25();
  3911. void set_has_dummy26();
  3912. void clear_has_dummy26();
  3913. void set_has_dummy27();
  3914. void clear_has_dummy27();
  3915. void set_has_dummy28();
  3916. void clear_has_dummy28();
  3917. void set_has_dummy29();
  3918. void clear_has_dummy29();
  3919. void set_has_dummy30();
  3920. void clear_has_dummy30();
  3921. void set_has_dummy31();
  3922. void clear_has_dummy31();
  3923. void set_has_dummy32();
  3924. void clear_has_dummy32();
  3925. void set_has_c();
  3926. void clear_has_c();
  3927. // helper for ByteSizeLong()
  3928. size_t RequiredFieldsByteSizeFallback() const;
  3929. ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
  3930. template <typename T> friend class ::google::protobuf::Arena::InternalHelper;
  3931. typedef void InternalArenaConstructable_;
  3932. typedef void DestructorSkippable_;
  3933. ::google::protobuf::internal::HasBits<2> _has_bits_;
  3934. ::google::protobuf::int32 a_;
  3935. ::google::protobuf::int32 dummy2_;
  3936. ::google::protobuf::int32 b_;
  3937. ::google::protobuf::int32 dummy4_;
  3938. ::google::protobuf::int32 dummy5_;
  3939. ::google::protobuf::int32 dummy6_;
  3940. ::google::protobuf::int32 dummy7_;
  3941. ::google::protobuf::int32 dummy8_;
  3942. ::google::protobuf::int32 dummy9_;
  3943. ::google::protobuf::int32 dummy10_;
  3944. ::google::protobuf::int32 dummy11_;
  3945. ::google::protobuf::int32 dummy12_;
  3946. ::google::protobuf::int32 dummy13_;
  3947. ::google::protobuf::int32 dummy14_;
  3948. ::google::protobuf::int32 dummy15_;
  3949. ::google::protobuf::int32 dummy16_;
  3950. ::google::protobuf::int32 dummy17_;
  3951. ::google::protobuf::int32 dummy18_;
  3952. ::google::protobuf::int32 dummy19_;
  3953. ::google::protobuf::int32 dummy20_;
  3954. ::google::protobuf::int32 dummy21_;
  3955. ::google::protobuf::int32 dummy22_;
  3956. ::google::protobuf::int32 dummy23_;
  3957. ::google::protobuf::int32 dummy24_;
  3958. ::google::protobuf::int32 dummy25_;
  3959. ::google::protobuf::int32 dummy26_;
  3960. ::google::protobuf::int32 dummy27_;
  3961. ::google::protobuf::int32 dummy28_;
  3962. ::google::protobuf::int32 dummy29_;
  3963. ::google::protobuf::int32 dummy30_;
  3964. ::google::protobuf::int32 dummy31_;
  3965. ::google::protobuf::int32 dummy32_;
  3966. ::google::protobuf::int32 c_;
  3967. mutable ::google::protobuf::internal::CachedSize _cached_size_;
  3968. friend struct ::protobuf_google_2fprotobuf_2funittest_2eproto::TableStruct;
  3969. };
  3970. // -------------------------------------------------------------------
  3971. class TestRequiredForeign : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:protobuf_unittest.TestRequiredForeign) */ {
  3972. public:
  3973. TestRequiredForeign();
  3974. virtual ~TestRequiredForeign();
  3975. TestRequiredForeign(const TestRequiredForeign& from);
  3976. inline TestRequiredForeign& operator=(const TestRequiredForeign& from) {
  3977. CopyFrom(from);
  3978. return *this;
  3979. }
  3980. #if LANG_CXX11
  3981. TestRequiredForeign(TestRequiredForeign&& from) noexcept
  3982. : TestRequiredForeign() {
  3983. *this = ::std::move(from);
  3984. }
  3985. inline TestRequiredForeign& operator=(TestRequiredForeign&& from) noexcept {
  3986. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  3987. if (this != &from) InternalSwap(&from);
  3988. } else {
  3989. CopyFrom(from);
  3990. }
  3991. return *this;
  3992. }
  3993. #endif
  3994. inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
  3995. return _internal_metadata_.unknown_fields();
  3996. }
  3997. inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
  3998. return _internal_metadata_.mutable_unknown_fields();
  3999. }
  4000. inline ::google::protobuf::Arena* GetArena() const final {
  4001. return GetArenaNoVirtual();
  4002. }
  4003. inline void* GetMaybeArenaPointer() const final {
  4004. return MaybeArenaPtr();
  4005. }
  4006. static const ::google::protobuf::Descriptor* descriptor();
  4007. static const TestRequiredForeign& default_instance();
  4008. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  4009. static inline const TestRequiredForeign* internal_default_instance() {
  4010. return reinterpret_cast<const TestRequiredForeign*>(
  4011. &_TestRequiredForeign_default_instance_);
  4012. }
  4013. static constexpr int kIndexInFileMessages =
  4014. 18;
  4015. void UnsafeArenaSwap(TestRequiredForeign* other);
  4016. void Swap(TestRequiredForeign* other);
  4017. friend void swap(TestRequiredForeign& a, TestRequiredForeign& b) {
  4018. a.Swap(&b);
  4019. }
  4020. // implements Message ----------------------------------------------
  4021. inline TestRequiredForeign* New() const final {
  4022. return CreateMaybeMessage<TestRequiredForeign>(NULL);
  4023. }
  4024. TestRequiredForeign* New(::google::protobuf::Arena* arena) const final {
  4025. return CreateMaybeMessage<TestRequiredForeign>(arena);
  4026. }
  4027. void CopyFrom(const ::google::protobuf::Message& from) final;
  4028. void MergeFrom(const ::google::protobuf::Message& from) final;
  4029. void CopyFrom(const TestRequiredForeign& from);
  4030. void MergeFrom(const TestRequiredForeign& from);
  4031. void Clear() final;
  4032. bool IsInitialized() const final;
  4033. size_t ByteSizeLong() const final;
  4034. bool MergePartialFromCodedStream(
  4035. ::google::protobuf::io::CodedInputStream* input) final;
  4036. void SerializeWithCachedSizes(
  4037. ::google::protobuf::io::CodedOutputStream* output) const final;
  4038. ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
  4039. bool deterministic, ::google::protobuf::uint8* target) const final;
  4040. int GetCachedSize() const final { return _cached_size_.Get(); }
  4041. private:
  4042. void SharedCtor();
  4043. void SharedDtor();
  4044. void SetCachedSize(int size) const final;
  4045. void InternalSwap(TestRequiredForeign* other);
  4046. protected:
  4047. explicit TestRequiredForeign(::google::protobuf::Arena* arena);
  4048. private:
  4049. static void ArenaDtor(void* object);
  4050. inline void RegisterArenaDtor(::google::protobuf::Arena* arena);
  4051. private:
  4052. inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
  4053. return _internal_metadata_.arena();
  4054. }
  4055. inline void* MaybeArenaPtr() const {
  4056. return _internal_metadata_.raw_arena_ptr();
  4057. }
  4058. public:
  4059. ::google::protobuf::Metadata GetMetadata() const final;
  4060. // nested types ----------------------------------------------------
  4061. // accessors -------------------------------------------------------
  4062. // repeated .protobuf_unittest.TestRequired repeated_message = 2;
  4063. int repeated_message_size() const;
  4064. void clear_repeated_message();
  4065. static const int kRepeatedMessageFieldNumber = 2;
  4066. ::protobuf_unittest::TestRequired* mutable_repeated_message(int index);
  4067. ::google::protobuf::RepeatedPtrField< ::protobuf_unittest::TestRequired >*
  4068. mutable_repeated_message();
  4069. const ::protobuf_unittest::TestRequired& repeated_message(int index) const;
  4070. ::protobuf_unittest::TestRequired* add_repeated_message();
  4071. const ::google::protobuf::RepeatedPtrField< ::protobuf_unittest::TestRequired >&
  4072. repeated_message() const;
  4073. // optional .protobuf_unittest.TestRequired optional_message = 1;
  4074. bool has_optional_message() const;
  4075. void clear_optional_message();
  4076. static const int kOptionalMessageFieldNumber = 1;
  4077. private:
  4078. const ::protobuf_unittest::TestRequired& _internal_optional_message() const;
  4079. public:
  4080. const ::protobuf_unittest::TestRequired& optional_message() const;
  4081. ::protobuf_unittest::TestRequired* release_optional_message();
  4082. ::protobuf_unittest::TestRequired* mutable_optional_message();
  4083. void set_allocated_optional_message(::protobuf_unittest::TestRequired* optional_message);
  4084. void unsafe_arena_set_allocated_optional_message(
  4085. ::protobuf_unittest::TestRequired* optional_message);
  4086. ::protobuf_unittest::TestRequired* unsafe_arena_release_optional_message();
  4087. // optional int32 dummy = 3;
  4088. bool has_dummy() const;
  4089. void clear_dummy();
  4090. static const int kDummyFieldNumber = 3;
  4091. ::google::protobuf::int32 dummy() const;
  4092. void set_dummy(::google::protobuf::int32 value);
  4093. // @@protoc_insertion_point(class_scope:protobuf_unittest.TestRequiredForeign)
  4094. private:
  4095. void set_has_optional_message();
  4096. void clear_has_optional_message();
  4097. void set_has_dummy();
  4098. void clear_has_dummy();
  4099. ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
  4100. template <typename T> friend class ::google::protobuf::Arena::InternalHelper;
  4101. typedef void InternalArenaConstructable_;
  4102. typedef void DestructorSkippable_;
  4103. ::google::protobuf::internal::HasBits<1> _has_bits_;
  4104. mutable ::google::protobuf::internal::CachedSize _cached_size_;
  4105. ::google::protobuf::RepeatedPtrField< ::protobuf_unittest::TestRequired > repeated_message_;
  4106. ::protobuf_unittest::TestRequired* optional_message_;
  4107. ::google::protobuf::int32 dummy_;
  4108. friend struct ::protobuf_google_2fprotobuf_2funittest_2eproto::TableStruct;
  4109. };
  4110. // -------------------------------------------------------------------
  4111. class TestRequiredMessage : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:protobuf_unittest.TestRequiredMessage) */ {
  4112. public:
  4113. TestRequiredMessage();
  4114. virtual ~TestRequiredMessage();
  4115. TestRequiredMessage(const TestRequiredMessage& from);
  4116. inline TestRequiredMessage& operator=(const TestRequiredMessage& from) {
  4117. CopyFrom(from);
  4118. return *this;
  4119. }
  4120. #if LANG_CXX11
  4121. TestRequiredMessage(TestRequiredMessage&& from) noexcept
  4122. : TestRequiredMessage() {
  4123. *this = ::std::move(from);
  4124. }
  4125. inline TestRequiredMessage& operator=(TestRequiredMessage&& from) noexcept {
  4126. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  4127. if (this != &from) InternalSwap(&from);
  4128. } else {
  4129. CopyFrom(from);
  4130. }
  4131. return *this;
  4132. }
  4133. #endif
  4134. inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
  4135. return _internal_metadata_.unknown_fields();
  4136. }
  4137. inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
  4138. return _internal_metadata_.mutable_unknown_fields();
  4139. }
  4140. inline ::google::protobuf::Arena* GetArena() const final {
  4141. return GetArenaNoVirtual();
  4142. }
  4143. inline void* GetMaybeArenaPointer() const final {
  4144. return MaybeArenaPtr();
  4145. }
  4146. static const ::google::protobuf::Descriptor* descriptor();
  4147. static const TestRequiredMessage& default_instance();
  4148. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  4149. static inline const TestRequiredMessage* internal_default_instance() {
  4150. return reinterpret_cast<const TestRequiredMessage*>(
  4151. &_TestRequiredMessage_default_instance_);
  4152. }
  4153. static constexpr int kIndexInFileMessages =
  4154. 19;
  4155. void UnsafeArenaSwap(TestRequiredMessage* other);
  4156. void Swap(TestRequiredMessage* other);
  4157. friend void swap(TestRequiredMessage& a, TestRequiredMessage& b) {
  4158. a.Swap(&b);
  4159. }
  4160. // implements Message ----------------------------------------------
  4161. inline TestRequiredMessage* New() const final {
  4162. return CreateMaybeMessage<TestRequiredMessage>(NULL);
  4163. }
  4164. TestRequiredMessage* New(::google::protobuf::Arena* arena) const final {
  4165. return CreateMaybeMessage<TestRequiredMessage>(arena);
  4166. }
  4167. void CopyFrom(const ::google::protobuf::Message& from) final;
  4168. void MergeFrom(const ::google::protobuf::Message& from) final;
  4169. void CopyFrom(const TestRequiredMessage& from);
  4170. void MergeFrom(const TestRequiredMessage& from);
  4171. void Clear() final;
  4172. bool IsInitialized() const final;
  4173. size_t ByteSizeLong() const final;
  4174. bool MergePartialFromCodedStream(
  4175. ::google::protobuf::io::CodedInputStream* input) final;
  4176. void SerializeWithCachedSizes(
  4177. ::google::protobuf::io::CodedOutputStream* output) const final;
  4178. ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
  4179. bool deterministic, ::google::protobuf::uint8* target) const final;
  4180. int GetCachedSize() const final { return _cached_size_.Get(); }
  4181. private:
  4182. void SharedCtor();
  4183. void SharedDtor();
  4184. void SetCachedSize(int size) const final;
  4185. void InternalSwap(TestRequiredMessage* other);
  4186. protected:
  4187. explicit TestRequiredMessage(::google::protobuf::Arena* arena);
  4188. private:
  4189. static void ArenaDtor(void* object);
  4190. inline void RegisterArenaDtor(::google::protobuf::Arena* arena);
  4191. private:
  4192. inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
  4193. return _internal_metadata_.arena();
  4194. }
  4195. inline void* MaybeArenaPtr() const {
  4196. return _internal_metadata_.raw_arena_ptr();
  4197. }
  4198. public:
  4199. ::google::protobuf::Metadata GetMetadata() const final;
  4200. // nested types ----------------------------------------------------
  4201. // accessors -------------------------------------------------------
  4202. // repeated .protobuf_unittest.TestRequired repeated_message = 2;
  4203. int repeated_message_size() const;
  4204. void clear_repeated_message();
  4205. static const int kRepeatedMessageFieldNumber = 2;
  4206. ::protobuf_unittest::TestRequired* mutable_repeated_message(int index);
  4207. ::google::protobuf::RepeatedPtrField< ::protobuf_unittest::TestRequired >*
  4208. mutable_repeated_message();
  4209. const ::protobuf_unittest::TestRequired& repeated_message(int index) const;
  4210. ::protobuf_unittest::TestRequired* add_repeated_message();
  4211. const ::google::protobuf::RepeatedPtrField< ::protobuf_unittest::TestRequired >&
  4212. repeated_message() const;
  4213. // optional .protobuf_unittest.TestRequired optional_message = 1;
  4214. bool has_optional_message() const;
  4215. void clear_optional_message();
  4216. static const int kOptionalMessageFieldNumber = 1;
  4217. private:
  4218. const ::protobuf_unittest::TestRequired& _internal_optional_message() const;
  4219. public:
  4220. const ::protobuf_unittest::TestRequired& optional_message() const;
  4221. ::protobuf_unittest::TestRequired* release_optional_message();
  4222. ::protobuf_unittest::TestRequired* mutable_optional_message();
  4223. void set_allocated_optional_message(::protobuf_unittest::TestRequired* optional_message);
  4224. void unsafe_arena_set_allocated_optional_message(
  4225. ::protobuf_unittest::TestRequired* optional_message);
  4226. ::protobuf_unittest::TestRequired* unsafe_arena_release_optional_message();
  4227. // required .protobuf_unittest.TestRequired required_message = 3;
  4228. bool has_required_message() const;
  4229. void clear_required_message();
  4230. static const int kRequiredMessageFieldNumber = 3;
  4231. private:
  4232. const ::protobuf_unittest::TestRequired& _internal_required_message() const;
  4233. public:
  4234. const ::protobuf_unittest::TestRequired& required_message() const;
  4235. ::protobuf_unittest::TestRequired* release_required_message();
  4236. ::protobuf_unittest::TestRequired* mutable_required_message();
  4237. void set_allocated_required_message(::protobuf_unittest::TestRequired* required_message);
  4238. void unsafe_arena_set_allocated_required_message(
  4239. ::protobuf_unittest::TestRequired* required_message);
  4240. ::protobuf_unittest::TestRequired* unsafe_arena_release_required_message();
  4241. // @@protoc_insertion_point(class_scope:protobuf_unittest.TestRequiredMessage)
  4242. private:
  4243. void set_has_optional_message();
  4244. void clear_has_optional_message();
  4245. void set_has_required_message();
  4246. void clear_has_required_message();
  4247. ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
  4248. template <typename T> friend class ::google::protobuf::Arena::InternalHelper;
  4249. typedef void InternalArenaConstructable_;
  4250. typedef void DestructorSkippable_;
  4251. ::google::protobuf::internal::HasBits<1> _has_bits_;
  4252. mutable ::google::protobuf::internal::CachedSize _cached_size_;
  4253. ::google::protobuf::RepeatedPtrField< ::protobuf_unittest::TestRequired > repeated_message_;
  4254. ::protobuf_unittest::TestRequired* optional_message_;
  4255. ::protobuf_unittest::TestRequired* required_message_;
  4256. friend struct ::protobuf_google_2fprotobuf_2funittest_2eproto::TableStruct;
  4257. };
  4258. // -------------------------------------------------------------------
  4259. class TestForeignNested : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:protobuf_unittest.TestForeignNested) */ {
  4260. public:
  4261. TestForeignNested();
  4262. virtual ~TestForeignNested();
  4263. TestForeignNested(const TestForeignNested& from);
  4264. inline TestForeignNested& operator=(const TestForeignNested& from) {
  4265. CopyFrom(from);
  4266. return *this;
  4267. }
  4268. #if LANG_CXX11
  4269. TestForeignNested(TestForeignNested&& from) noexcept
  4270. : TestForeignNested() {
  4271. *this = ::std::move(from);
  4272. }
  4273. inline TestForeignNested& operator=(TestForeignNested&& from) noexcept {
  4274. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  4275. if (this != &from) InternalSwap(&from);
  4276. } else {
  4277. CopyFrom(from);
  4278. }
  4279. return *this;
  4280. }
  4281. #endif
  4282. inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
  4283. return _internal_metadata_.unknown_fields();
  4284. }
  4285. inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
  4286. return _internal_metadata_.mutable_unknown_fields();
  4287. }
  4288. inline ::google::protobuf::Arena* GetArena() const final {
  4289. return GetArenaNoVirtual();
  4290. }
  4291. inline void* GetMaybeArenaPointer() const final {
  4292. return MaybeArenaPtr();
  4293. }
  4294. static const ::google::protobuf::Descriptor* descriptor();
  4295. static const TestForeignNested& default_instance();
  4296. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  4297. static inline const TestForeignNested* internal_default_instance() {
  4298. return reinterpret_cast<const TestForeignNested*>(
  4299. &_TestForeignNested_default_instance_);
  4300. }
  4301. static constexpr int kIndexInFileMessages =
  4302. 20;
  4303. void UnsafeArenaSwap(TestForeignNested* other);
  4304. void Swap(TestForeignNested* other);
  4305. friend void swap(TestForeignNested& a, TestForeignNested& b) {
  4306. a.Swap(&b);
  4307. }
  4308. // implements Message ----------------------------------------------
  4309. inline TestForeignNested* New() const final {
  4310. return CreateMaybeMessage<TestForeignNested>(NULL);
  4311. }
  4312. TestForeignNested* New(::google::protobuf::Arena* arena) const final {
  4313. return CreateMaybeMessage<TestForeignNested>(arena);
  4314. }
  4315. void CopyFrom(const ::google::protobuf::Message& from) final;
  4316. void MergeFrom(const ::google::protobuf::Message& from) final;
  4317. void CopyFrom(const TestForeignNested& from);
  4318. void MergeFrom(const TestForeignNested& from);
  4319. void Clear() final;
  4320. bool IsInitialized() const final;
  4321. size_t ByteSizeLong() const final;
  4322. bool MergePartialFromCodedStream(
  4323. ::google::protobuf::io::CodedInputStream* input) final;
  4324. void SerializeWithCachedSizes(
  4325. ::google::protobuf::io::CodedOutputStream* output) const final;
  4326. ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
  4327. bool deterministic, ::google::protobuf::uint8* target) const final;
  4328. int GetCachedSize() const final { return _cached_size_.Get(); }
  4329. private:
  4330. void SharedCtor();
  4331. void SharedDtor();
  4332. void SetCachedSize(int size) const final;
  4333. void InternalSwap(TestForeignNested* other);
  4334. protected:
  4335. explicit TestForeignNested(::google::protobuf::Arena* arena);
  4336. private:
  4337. static void ArenaDtor(void* object);
  4338. inline void RegisterArenaDtor(::google::protobuf::Arena* arena);
  4339. private:
  4340. inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
  4341. return _internal_metadata_.arena();
  4342. }
  4343. inline void* MaybeArenaPtr() const {
  4344. return _internal_metadata_.raw_arena_ptr();
  4345. }
  4346. public:
  4347. ::google::protobuf::Metadata GetMetadata() const final;
  4348. // nested types ----------------------------------------------------
  4349. // accessors -------------------------------------------------------
  4350. // optional .protobuf_unittest.TestAllTypes.NestedMessage foreign_nested = 1;
  4351. bool has_foreign_nested() const;
  4352. void clear_foreign_nested();
  4353. static const int kForeignNestedFieldNumber = 1;
  4354. private:
  4355. const ::protobuf_unittest::TestAllTypes_NestedMessage& _internal_foreign_nested() const;
  4356. public:
  4357. const ::protobuf_unittest::TestAllTypes_NestedMessage& foreign_nested() const;
  4358. ::protobuf_unittest::TestAllTypes_NestedMessage* release_foreign_nested();
  4359. ::protobuf_unittest::TestAllTypes_NestedMessage* mutable_foreign_nested();
  4360. void set_allocated_foreign_nested(::protobuf_unittest::TestAllTypes_NestedMessage* foreign_nested);
  4361. void unsafe_arena_set_allocated_foreign_nested(
  4362. ::protobuf_unittest::TestAllTypes_NestedMessage* foreign_nested);
  4363. ::protobuf_unittest::TestAllTypes_NestedMessage* unsafe_arena_release_foreign_nested();
  4364. // @@protoc_insertion_point(class_scope:protobuf_unittest.TestForeignNested)
  4365. private:
  4366. void set_has_foreign_nested();
  4367. void clear_has_foreign_nested();
  4368. ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
  4369. template <typename T> friend class ::google::protobuf::Arena::InternalHelper;
  4370. typedef void InternalArenaConstructable_;
  4371. typedef void DestructorSkippable_;
  4372. ::google::protobuf::internal::HasBits<1> _has_bits_;
  4373. mutable ::google::protobuf::internal::CachedSize _cached_size_;
  4374. ::protobuf_unittest::TestAllTypes_NestedMessage* foreign_nested_;
  4375. friend struct ::protobuf_google_2fprotobuf_2funittest_2eproto::TableStruct;
  4376. };
  4377. // -------------------------------------------------------------------
  4378. class TestEmptyMessage : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:protobuf_unittest.TestEmptyMessage) */ {
  4379. public:
  4380. TestEmptyMessage();
  4381. virtual ~TestEmptyMessage();
  4382. TestEmptyMessage(const TestEmptyMessage& from);
  4383. inline TestEmptyMessage& operator=(const TestEmptyMessage& from) {
  4384. CopyFrom(from);
  4385. return *this;
  4386. }
  4387. #if LANG_CXX11
  4388. TestEmptyMessage(TestEmptyMessage&& from) noexcept
  4389. : TestEmptyMessage() {
  4390. *this = ::std::move(from);
  4391. }
  4392. inline TestEmptyMessage& operator=(TestEmptyMessage&& from) noexcept {
  4393. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  4394. if (this != &from) InternalSwap(&from);
  4395. } else {
  4396. CopyFrom(from);
  4397. }
  4398. return *this;
  4399. }
  4400. #endif
  4401. inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
  4402. return _internal_metadata_.unknown_fields();
  4403. }
  4404. inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
  4405. return _internal_metadata_.mutable_unknown_fields();
  4406. }
  4407. inline ::google::protobuf::Arena* GetArena() const final {
  4408. return GetArenaNoVirtual();
  4409. }
  4410. inline void* GetMaybeArenaPointer() const final {
  4411. return MaybeArenaPtr();
  4412. }
  4413. static const ::google::protobuf::Descriptor* descriptor();
  4414. static const TestEmptyMessage& default_instance();
  4415. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  4416. static inline const TestEmptyMessage* internal_default_instance() {
  4417. return reinterpret_cast<const TestEmptyMessage*>(
  4418. &_TestEmptyMessage_default_instance_);
  4419. }
  4420. static constexpr int kIndexInFileMessages =
  4421. 21;
  4422. void UnsafeArenaSwap(TestEmptyMessage* other);
  4423. void Swap(TestEmptyMessage* other);
  4424. friend void swap(TestEmptyMessage& a, TestEmptyMessage& b) {
  4425. a.Swap(&b);
  4426. }
  4427. // implements Message ----------------------------------------------
  4428. inline TestEmptyMessage* New() const final {
  4429. return CreateMaybeMessage<TestEmptyMessage>(NULL);
  4430. }
  4431. TestEmptyMessage* New(::google::protobuf::Arena* arena) const final {
  4432. return CreateMaybeMessage<TestEmptyMessage>(arena);
  4433. }
  4434. void CopyFrom(const ::google::protobuf::Message& from) final;
  4435. void MergeFrom(const ::google::protobuf::Message& from) final;
  4436. void CopyFrom(const TestEmptyMessage& from);
  4437. void MergeFrom(const TestEmptyMessage& from);
  4438. void Clear() final;
  4439. bool IsInitialized() const final;
  4440. size_t ByteSizeLong() const final;
  4441. bool MergePartialFromCodedStream(
  4442. ::google::protobuf::io::CodedInputStream* input) final;
  4443. void SerializeWithCachedSizes(
  4444. ::google::protobuf::io::CodedOutputStream* output) const final;
  4445. ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
  4446. bool deterministic, ::google::protobuf::uint8* target) const final;
  4447. int GetCachedSize() const final { return _cached_size_.Get(); }
  4448. private:
  4449. void SharedCtor();
  4450. void SharedDtor();
  4451. void SetCachedSize(int size) const final;
  4452. void InternalSwap(TestEmptyMessage* other);
  4453. protected:
  4454. explicit TestEmptyMessage(::google::protobuf::Arena* arena);
  4455. private:
  4456. static void ArenaDtor(void* object);
  4457. inline void RegisterArenaDtor(::google::protobuf::Arena* arena);
  4458. private:
  4459. inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
  4460. return _internal_metadata_.arena();
  4461. }
  4462. inline void* MaybeArenaPtr() const {
  4463. return _internal_metadata_.raw_arena_ptr();
  4464. }
  4465. public:
  4466. ::google::protobuf::Metadata GetMetadata() const final;
  4467. // nested types ----------------------------------------------------
  4468. // accessors -------------------------------------------------------
  4469. // @@protoc_insertion_point(class_scope:protobuf_unittest.TestEmptyMessage)
  4470. private:
  4471. ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
  4472. template <typename T> friend class ::google::protobuf::Arena::InternalHelper;
  4473. typedef void InternalArenaConstructable_;
  4474. typedef void DestructorSkippable_;
  4475. ::google::protobuf::internal::HasBits<1> _has_bits_;
  4476. mutable ::google::protobuf::internal::CachedSize _cached_size_;
  4477. friend struct ::protobuf_google_2fprotobuf_2funittest_2eproto::TableStruct;
  4478. };
  4479. // -------------------------------------------------------------------
  4480. class TestEmptyMessageWithExtensions : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:protobuf_unittest.TestEmptyMessageWithExtensions) */ {
  4481. public:
  4482. TestEmptyMessageWithExtensions();
  4483. virtual ~TestEmptyMessageWithExtensions();
  4484. TestEmptyMessageWithExtensions(const TestEmptyMessageWithExtensions& from);
  4485. inline TestEmptyMessageWithExtensions& operator=(const TestEmptyMessageWithExtensions& from) {
  4486. CopyFrom(from);
  4487. return *this;
  4488. }
  4489. #if LANG_CXX11
  4490. TestEmptyMessageWithExtensions(TestEmptyMessageWithExtensions&& from) noexcept
  4491. : TestEmptyMessageWithExtensions() {
  4492. *this = ::std::move(from);
  4493. }
  4494. inline TestEmptyMessageWithExtensions& operator=(TestEmptyMessageWithExtensions&& from) noexcept {
  4495. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  4496. if (this != &from) InternalSwap(&from);
  4497. } else {
  4498. CopyFrom(from);
  4499. }
  4500. return *this;
  4501. }
  4502. #endif
  4503. inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
  4504. return _internal_metadata_.unknown_fields();
  4505. }
  4506. inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
  4507. return _internal_metadata_.mutable_unknown_fields();
  4508. }
  4509. inline ::google::protobuf::Arena* GetArena() const final {
  4510. return GetArenaNoVirtual();
  4511. }
  4512. inline void* GetMaybeArenaPointer() const final {
  4513. return MaybeArenaPtr();
  4514. }
  4515. static const ::google::protobuf::Descriptor* descriptor();
  4516. static const TestEmptyMessageWithExtensions& default_instance();
  4517. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  4518. static inline const TestEmptyMessageWithExtensions* internal_default_instance() {
  4519. return reinterpret_cast<const TestEmptyMessageWithExtensions*>(
  4520. &_TestEmptyMessageWithExtensions_default_instance_);
  4521. }
  4522. static constexpr int kIndexInFileMessages =
  4523. 22;
  4524. void UnsafeArenaSwap(TestEmptyMessageWithExtensions* other);
  4525. void Swap(TestEmptyMessageWithExtensions* other);
  4526. friend void swap(TestEmptyMessageWithExtensions& a, TestEmptyMessageWithExtensions& b) {
  4527. a.Swap(&b);
  4528. }
  4529. // implements Message ----------------------------------------------
  4530. inline TestEmptyMessageWithExtensions* New() const final {
  4531. return CreateMaybeMessage<TestEmptyMessageWithExtensions>(NULL);
  4532. }
  4533. TestEmptyMessageWithExtensions* New(::google::protobuf::Arena* arena) const final {
  4534. return CreateMaybeMessage<TestEmptyMessageWithExtensions>(arena);
  4535. }
  4536. void CopyFrom(const ::google::protobuf::Message& from) final;
  4537. void MergeFrom(const ::google::protobuf::Message& from) final;
  4538. void CopyFrom(const TestEmptyMessageWithExtensions& from);
  4539. void MergeFrom(const TestEmptyMessageWithExtensions& from);
  4540. void Clear() final;
  4541. bool IsInitialized() const final;
  4542. size_t ByteSizeLong() const final;
  4543. bool MergePartialFromCodedStream(
  4544. ::google::protobuf::io::CodedInputStream* input) final;
  4545. void SerializeWithCachedSizes(
  4546. ::google::protobuf::io::CodedOutputStream* output) const final;
  4547. ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
  4548. bool deterministic, ::google::protobuf::uint8* target) const final;
  4549. int GetCachedSize() const final { return _cached_size_.Get(); }
  4550. private:
  4551. void SharedCtor();
  4552. void SharedDtor();
  4553. void SetCachedSize(int size) const final;
  4554. void InternalSwap(TestEmptyMessageWithExtensions* other);
  4555. protected:
  4556. explicit TestEmptyMessageWithExtensions(::google::protobuf::Arena* arena);
  4557. private:
  4558. static void ArenaDtor(void* object);
  4559. inline void RegisterArenaDtor(::google::protobuf::Arena* arena);
  4560. private:
  4561. inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
  4562. return _internal_metadata_.arena();
  4563. }
  4564. inline void* MaybeArenaPtr() const {
  4565. return _internal_metadata_.raw_arena_ptr();
  4566. }
  4567. public:
  4568. ::google::protobuf::Metadata GetMetadata() const final;
  4569. // nested types ----------------------------------------------------
  4570. // accessors -------------------------------------------------------
  4571. GOOGLE_PROTOBUF_EXTENSION_ACCESSORS(TestEmptyMessageWithExtensions)
  4572. // @@protoc_insertion_point(class_scope:protobuf_unittest.TestEmptyMessageWithExtensions)
  4573. private:
  4574. ::google::protobuf::internal::ExtensionSet _extensions_;
  4575. ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
  4576. template <typename T> friend class ::google::protobuf::Arena::InternalHelper;
  4577. typedef void InternalArenaConstructable_;
  4578. typedef void DestructorSkippable_;
  4579. ::google::protobuf::internal::HasBits<1> _has_bits_;
  4580. mutable ::google::protobuf::internal::CachedSize _cached_size_;
  4581. friend struct ::protobuf_google_2fprotobuf_2funittest_2eproto::TableStruct;
  4582. };
  4583. // -------------------------------------------------------------------
  4584. class TestMultipleExtensionRanges : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:protobuf_unittest.TestMultipleExtensionRanges) */ {
  4585. public:
  4586. TestMultipleExtensionRanges();
  4587. virtual ~TestMultipleExtensionRanges();
  4588. TestMultipleExtensionRanges(const TestMultipleExtensionRanges& from);
  4589. inline TestMultipleExtensionRanges& operator=(const TestMultipleExtensionRanges& from) {
  4590. CopyFrom(from);
  4591. return *this;
  4592. }
  4593. #if LANG_CXX11
  4594. TestMultipleExtensionRanges(TestMultipleExtensionRanges&& from) noexcept
  4595. : TestMultipleExtensionRanges() {
  4596. *this = ::std::move(from);
  4597. }
  4598. inline TestMultipleExtensionRanges& operator=(TestMultipleExtensionRanges&& from) noexcept {
  4599. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  4600. if (this != &from) InternalSwap(&from);
  4601. } else {
  4602. CopyFrom(from);
  4603. }
  4604. return *this;
  4605. }
  4606. #endif
  4607. inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
  4608. return _internal_metadata_.unknown_fields();
  4609. }
  4610. inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
  4611. return _internal_metadata_.mutable_unknown_fields();
  4612. }
  4613. inline ::google::protobuf::Arena* GetArena() const final {
  4614. return GetArenaNoVirtual();
  4615. }
  4616. inline void* GetMaybeArenaPointer() const final {
  4617. return MaybeArenaPtr();
  4618. }
  4619. static const ::google::protobuf::Descriptor* descriptor();
  4620. static const TestMultipleExtensionRanges& default_instance();
  4621. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  4622. static inline const TestMultipleExtensionRanges* internal_default_instance() {
  4623. return reinterpret_cast<const TestMultipleExtensionRanges*>(
  4624. &_TestMultipleExtensionRanges_default_instance_);
  4625. }
  4626. static constexpr int kIndexInFileMessages =
  4627. 23;
  4628. void UnsafeArenaSwap(TestMultipleExtensionRanges* other);
  4629. void Swap(TestMultipleExtensionRanges* other);
  4630. friend void swap(TestMultipleExtensionRanges& a, TestMultipleExtensionRanges& b) {
  4631. a.Swap(&b);
  4632. }
  4633. // implements Message ----------------------------------------------
  4634. inline TestMultipleExtensionRanges* New() const final {
  4635. return CreateMaybeMessage<TestMultipleExtensionRanges>(NULL);
  4636. }
  4637. TestMultipleExtensionRanges* New(::google::protobuf::Arena* arena) const final {
  4638. return CreateMaybeMessage<TestMultipleExtensionRanges>(arena);
  4639. }
  4640. void CopyFrom(const ::google::protobuf::Message& from) final;
  4641. void MergeFrom(const ::google::protobuf::Message& from) final;
  4642. void CopyFrom(const TestMultipleExtensionRanges& from);
  4643. void MergeFrom(const TestMultipleExtensionRanges& from);
  4644. void Clear() final;
  4645. bool IsInitialized() const final;
  4646. size_t ByteSizeLong() const final;
  4647. bool MergePartialFromCodedStream(
  4648. ::google::protobuf::io::CodedInputStream* input) final;
  4649. void SerializeWithCachedSizes(
  4650. ::google::protobuf::io::CodedOutputStream* output) const final;
  4651. ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
  4652. bool deterministic, ::google::protobuf::uint8* target) const final;
  4653. int GetCachedSize() const final { return _cached_size_.Get(); }
  4654. private:
  4655. void SharedCtor();
  4656. void SharedDtor();
  4657. void SetCachedSize(int size) const final;
  4658. void InternalSwap(TestMultipleExtensionRanges* other);
  4659. protected:
  4660. explicit TestMultipleExtensionRanges(::google::protobuf::Arena* arena);
  4661. private:
  4662. static void ArenaDtor(void* object);
  4663. inline void RegisterArenaDtor(::google::protobuf::Arena* arena);
  4664. private:
  4665. inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
  4666. return _internal_metadata_.arena();
  4667. }
  4668. inline void* MaybeArenaPtr() const {
  4669. return _internal_metadata_.raw_arena_ptr();
  4670. }
  4671. public:
  4672. ::google::protobuf::Metadata GetMetadata() const final;
  4673. // nested types ----------------------------------------------------
  4674. // accessors -------------------------------------------------------
  4675. GOOGLE_PROTOBUF_EXTENSION_ACCESSORS(TestMultipleExtensionRanges)
  4676. // @@protoc_insertion_point(class_scope:protobuf_unittest.TestMultipleExtensionRanges)
  4677. private:
  4678. ::google::protobuf::internal::ExtensionSet _extensions_;
  4679. ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
  4680. template <typename T> friend class ::google::protobuf::Arena::InternalHelper;
  4681. typedef void InternalArenaConstructable_;
  4682. typedef void DestructorSkippable_;
  4683. ::google::protobuf::internal::HasBits<1> _has_bits_;
  4684. mutable ::google::protobuf::internal::CachedSize _cached_size_;
  4685. friend struct ::protobuf_google_2fprotobuf_2funittest_2eproto::TableStruct;
  4686. };
  4687. // -------------------------------------------------------------------
  4688. class TestReallyLargeTagNumber : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:protobuf_unittest.TestReallyLargeTagNumber) */ {
  4689. public:
  4690. TestReallyLargeTagNumber();
  4691. virtual ~TestReallyLargeTagNumber();
  4692. TestReallyLargeTagNumber(const TestReallyLargeTagNumber& from);
  4693. inline TestReallyLargeTagNumber& operator=(const TestReallyLargeTagNumber& from) {
  4694. CopyFrom(from);
  4695. return *this;
  4696. }
  4697. #if LANG_CXX11
  4698. TestReallyLargeTagNumber(TestReallyLargeTagNumber&& from) noexcept
  4699. : TestReallyLargeTagNumber() {
  4700. *this = ::std::move(from);
  4701. }
  4702. inline TestReallyLargeTagNumber& operator=(TestReallyLargeTagNumber&& from) noexcept {
  4703. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  4704. if (this != &from) InternalSwap(&from);
  4705. } else {
  4706. CopyFrom(from);
  4707. }
  4708. return *this;
  4709. }
  4710. #endif
  4711. inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
  4712. return _internal_metadata_.unknown_fields();
  4713. }
  4714. inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
  4715. return _internal_metadata_.mutable_unknown_fields();
  4716. }
  4717. inline ::google::protobuf::Arena* GetArena() const final {
  4718. return GetArenaNoVirtual();
  4719. }
  4720. inline void* GetMaybeArenaPointer() const final {
  4721. return MaybeArenaPtr();
  4722. }
  4723. static const ::google::protobuf::Descriptor* descriptor();
  4724. static const TestReallyLargeTagNumber& default_instance();
  4725. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  4726. static inline const TestReallyLargeTagNumber* internal_default_instance() {
  4727. return reinterpret_cast<const TestReallyLargeTagNumber*>(
  4728. &_TestReallyLargeTagNumber_default_instance_);
  4729. }
  4730. static constexpr int kIndexInFileMessages =
  4731. 24;
  4732. void UnsafeArenaSwap(TestReallyLargeTagNumber* other);
  4733. void Swap(TestReallyLargeTagNumber* other);
  4734. friend void swap(TestReallyLargeTagNumber& a, TestReallyLargeTagNumber& b) {
  4735. a.Swap(&b);
  4736. }
  4737. // implements Message ----------------------------------------------
  4738. inline TestReallyLargeTagNumber* New() const final {
  4739. return CreateMaybeMessage<TestReallyLargeTagNumber>(NULL);
  4740. }
  4741. TestReallyLargeTagNumber* New(::google::protobuf::Arena* arena) const final {
  4742. return CreateMaybeMessage<TestReallyLargeTagNumber>(arena);
  4743. }
  4744. void CopyFrom(const ::google::protobuf::Message& from) final;
  4745. void MergeFrom(const ::google::protobuf::Message& from) final;
  4746. void CopyFrom(const TestReallyLargeTagNumber& from);
  4747. void MergeFrom(const TestReallyLargeTagNumber& from);
  4748. void Clear() final;
  4749. bool IsInitialized() const final;
  4750. size_t ByteSizeLong() const final;
  4751. bool MergePartialFromCodedStream(
  4752. ::google::protobuf::io::CodedInputStream* input) final;
  4753. void SerializeWithCachedSizes(
  4754. ::google::protobuf::io::CodedOutputStream* output) const final;
  4755. ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
  4756. bool deterministic, ::google::protobuf::uint8* target) const final;
  4757. int GetCachedSize() const final { return _cached_size_.Get(); }
  4758. private:
  4759. void SharedCtor();
  4760. void SharedDtor();
  4761. void SetCachedSize(int size) const final;
  4762. void InternalSwap(TestReallyLargeTagNumber* other);
  4763. protected:
  4764. explicit TestReallyLargeTagNumber(::google::protobuf::Arena* arena);
  4765. private:
  4766. static void ArenaDtor(void* object);
  4767. inline void RegisterArenaDtor(::google::protobuf::Arena* arena);
  4768. private:
  4769. inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
  4770. return _internal_metadata_.arena();
  4771. }
  4772. inline void* MaybeArenaPtr() const {
  4773. return _internal_metadata_.raw_arena_ptr();
  4774. }
  4775. public:
  4776. ::google::protobuf::Metadata GetMetadata() const final;
  4777. // nested types ----------------------------------------------------
  4778. // accessors -------------------------------------------------------
  4779. // optional int32 a = 1;
  4780. bool has_a() const;
  4781. void clear_a();
  4782. static const int kAFieldNumber = 1;
  4783. ::google::protobuf::int32 a() const;
  4784. void set_a(::google::protobuf::int32 value);
  4785. // optional int32 bb = 268435455;
  4786. bool has_bb() const;
  4787. void clear_bb();
  4788. static const int kBbFieldNumber = 268435455;
  4789. ::google::protobuf::int32 bb() const;
  4790. void set_bb(::google::protobuf::int32 value);
  4791. // @@protoc_insertion_point(class_scope:protobuf_unittest.TestReallyLargeTagNumber)
  4792. private:
  4793. void set_has_a();
  4794. void clear_has_a();
  4795. void set_has_bb();
  4796. void clear_has_bb();
  4797. ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
  4798. template <typename T> friend class ::google::protobuf::Arena::InternalHelper;
  4799. typedef void InternalArenaConstructable_;
  4800. typedef void DestructorSkippable_;
  4801. ::google::protobuf::internal::HasBits<1> _has_bits_;
  4802. mutable ::google::protobuf::internal::CachedSize _cached_size_;
  4803. ::google::protobuf::int32 a_;
  4804. ::google::protobuf::int32 bb_;
  4805. friend struct ::protobuf_google_2fprotobuf_2funittest_2eproto::TableStruct;
  4806. };
  4807. // -------------------------------------------------------------------
  4808. class TestRecursiveMessage : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:protobuf_unittest.TestRecursiveMessage) */ {
  4809. public:
  4810. TestRecursiveMessage();
  4811. virtual ~TestRecursiveMessage();
  4812. TestRecursiveMessage(const TestRecursiveMessage& from);
  4813. inline TestRecursiveMessage& operator=(const TestRecursiveMessage& from) {
  4814. CopyFrom(from);
  4815. return *this;
  4816. }
  4817. #if LANG_CXX11
  4818. TestRecursiveMessage(TestRecursiveMessage&& from) noexcept
  4819. : TestRecursiveMessage() {
  4820. *this = ::std::move(from);
  4821. }
  4822. inline TestRecursiveMessage& operator=(TestRecursiveMessage&& from) noexcept {
  4823. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  4824. if (this != &from) InternalSwap(&from);
  4825. } else {
  4826. CopyFrom(from);
  4827. }
  4828. return *this;
  4829. }
  4830. #endif
  4831. inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
  4832. return _internal_metadata_.unknown_fields();
  4833. }
  4834. inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
  4835. return _internal_metadata_.mutable_unknown_fields();
  4836. }
  4837. inline ::google::protobuf::Arena* GetArena() const final {
  4838. return GetArenaNoVirtual();
  4839. }
  4840. inline void* GetMaybeArenaPointer() const final {
  4841. return MaybeArenaPtr();
  4842. }
  4843. static const ::google::protobuf::Descriptor* descriptor();
  4844. static const TestRecursiveMessage& default_instance();
  4845. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  4846. static inline const TestRecursiveMessage* internal_default_instance() {
  4847. return reinterpret_cast<const TestRecursiveMessage*>(
  4848. &_TestRecursiveMessage_default_instance_);
  4849. }
  4850. static constexpr int kIndexInFileMessages =
  4851. 25;
  4852. void UnsafeArenaSwap(TestRecursiveMessage* other);
  4853. void Swap(TestRecursiveMessage* other);
  4854. friend void swap(TestRecursiveMessage& a, TestRecursiveMessage& b) {
  4855. a.Swap(&b);
  4856. }
  4857. // implements Message ----------------------------------------------
  4858. inline TestRecursiveMessage* New() const final {
  4859. return CreateMaybeMessage<TestRecursiveMessage>(NULL);
  4860. }
  4861. TestRecursiveMessage* New(::google::protobuf::Arena* arena) const final {
  4862. return CreateMaybeMessage<TestRecursiveMessage>(arena);
  4863. }
  4864. void CopyFrom(const ::google::protobuf::Message& from) final;
  4865. void MergeFrom(const ::google::protobuf::Message& from) final;
  4866. void CopyFrom(const TestRecursiveMessage& from);
  4867. void MergeFrom(const TestRecursiveMessage& from);
  4868. void Clear() final;
  4869. bool IsInitialized() const final;
  4870. size_t ByteSizeLong() const final;
  4871. bool MergePartialFromCodedStream(
  4872. ::google::protobuf::io::CodedInputStream* input) final;
  4873. void SerializeWithCachedSizes(
  4874. ::google::protobuf::io::CodedOutputStream* output) const final;
  4875. ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
  4876. bool deterministic, ::google::protobuf::uint8* target) const final;
  4877. int GetCachedSize() const final { return _cached_size_.Get(); }
  4878. private:
  4879. void SharedCtor();
  4880. void SharedDtor();
  4881. void SetCachedSize(int size) const final;
  4882. void InternalSwap(TestRecursiveMessage* other);
  4883. protected:
  4884. explicit TestRecursiveMessage(::google::protobuf::Arena* arena);
  4885. private:
  4886. static void ArenaDtor(void* object);
  4887. inline void RegisterArenaDtor(::google::protobuf::Arena* arena);
  4888. private:
  4889. inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
  4890. return _internal_metadata_.arena();
  4891. }
  4892. inline void* MaybeArenaPtr() const {
  4893. return _internal_metadata_.raw_arena_ptr();
  4894. }
  4895. public:
  4896. ::google::protobuf::Metadata GetMetadata() const final;
  4897. // nested types ----------------------------------------------------
  4898. // accessors -------------------------------------------------------
  4899. // optional .protobuf_unittest.TestRecursiveMessage a = 1;
  4900. bool has_a() const;
  4901. void clear_a();
  4902. static const int kAFieldNumber = 1;
  4903. private:
  4904. const ::protobuf_unittest::TestRecursiveMessage& _internal_a() const;
  4905. public:
  4906. const ::protobuf_unittest::TestRecursiveMessage& a() const;
  4907. ::protobuf_unittest::TestRecursiveMessage* release_a();
  4908. ::protobuf_unittest::TestRecursiveMessage* mutable_a();
  4909. void set_allocated_a(::protobuf_unittest::TestRecursiveMessage* a);
  4910. void unsafe_arena_set_allocated_a(
  4911. ::protobuf_unittest::TestRecursiveMessage* a);
  4912. ::protobuf_unittest::TestRecursiveMessage* unsafe_arena_release_a();
  4913. // optional int32 i = 2;
  4914. bool has_i() const;
  4915. void clear_i();
  4916. static const int kIFieldNumber = 2;
  4917. ::google::protobuf::int32 i() const;
  4918. void set_i(::google::protobuf::int32 value);
  4919. // @@protoc_insertion_point(class_scope:protobuf_unittest.TestRecursiveMessage)
  4920. private:
  4921. void set_has_a();
  4922. void clear_has_a();
  4923. void set_has_i();
  4924. void clear_has_i();
  4925. ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
  4926. template <typename T> friend class ::google::protobuf::Arena::InternalHelper;
  4927. typedef void InternalArenaConstructable_;
  4928. typedef void DestructorSkippable_;
  4929. ::google::protobuf::internal::HasBits<1> _has_bits_;
  4930. mutable ::google::protobuf::internal::CachedSize _cached_size_;
  4931. ::protobuf_unittest::TestRecursiveMessage* a_;
  4932. ::google::protobuf::int32 i_;
  4933. friend struct ::protobuf_google_2fprotobuf_2funittest_2eproto::TableStruct;
  4934. };
  4935. // -------------------------------------------------------------------
  4936. class TestMutualRecursionA_SubMessage : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:protobuf_unittest.TestMutualRecursionA.SubMessage) */ {
  4937. public:
  4938. TestMutualRecursionA_SubMessage();
  4939. virtual ~TestMutualRecursionA_SubMessage();
  4940. TestMutualRecursionA_SubMessage(const TestMutualRecursionA_SubMessage& from);
  4941. inline TestMutualRecursionA_SubMessage& operator=(const TestMutualRecursionA_SubMessage& from) {
  4942. CopyFrom(from);
  4943. return *this;
  4944. }
  4945. #if LANG_CXX11
  4946. TestMutualRecursionA_SubMessage(TestMutualRecursionA_SubMessage&& from) noexcept
  4947. : TestMutualRecursionA_SubMessage() {
  4948. *this = ::std::move(from);
  4949. }
  4950. inline TestMutualRecursionA_SubMessage& operator=(TestMutualRecursionA_SubMessage&& from) noexcept {
  4951. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  4952. if (this != &from) InternalSwap(&from);
  4953. } else {
  4954. CopyFrom(from);
  4955. }
  4956. return *this;
  4957. }
  4958. #endif
  4959. inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
  4960. return _internal_metadata_.unknown_fields();
  4961. }
  4962. inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
  4963. return _internal_metadata_.mutable_unknown_fields();
  4964. }
  4965. inline ::google::protobuf::Arena* GetArena() const final {
  4966. return GetArenaNoVirtual();
  4967. }
  4968. inline void* GetMaybeArenaPointer() const final {
  4969. return MaybeArenaPtr();
  4970. }
  4971. static const ::google::protobuf::Descriptor* descriptor();
  4972. static const TestMutualRecursionA_SubMessage& default_instance();
  4973. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  4974. static inline const TestMutualRecursionA_SubMessage* internal_default_instance() {
  4975. return reinterpret_cast<const TestMutualRecursionA_SubMessage*>(
  4976. &_TestMutualRecursionA_SubMessage_default_instance_);
  4977. }
  4978. static constexpr int kIndexInFileMessages =
  4979. 26;
  4980. void UnsafeArenaSwap(TestMutualRecursionA_SubMessage* other);
  4981. void Swap(TestMutualRecursionA_SubMessage* other);
  4982. friend void swap(TestMutualRecursionA_SubMessage& a, TestMutualRecursionA_SubMessage& b) {
  4983. a.Swap(&b);
  4984. }
  4985. // implements Message ----------------------------------------------
  4986. inline TestMutualRecursionA_SubMessage* New() const final {
  4987. return CreateMaybeMessage<TestMutualRecursionA_SubMessage>(NULL);
  4988. }
  4989. TestMutualRecursionA_SubMessage* New(::google::protobuf::Arena* arena) const final {
  4990. return CreateMaybeMessage<TestMutualRecursionA_SubMessage>(arena);
  4991. }
  4992. void CopyFrom(const ::google::protobuf::Message& from) final;
  4993. void MergeFrom(const ::google::protobuf::Message& from) final;
  4994. void CopyFrom(const TestMutualRecursionA_SubMessage& from);
  4995. void MergeFrom(const TestMutualRecursionA_SubMessage& from);
  4996. void Clear() final;
  4997. bool IsInitialized() const final;
  4998. size_t ByteSizeLong() const final;
  4999. bool MergePartialFromCodedStream(
  5000. ::google::protobuf::io::CodedInputStream* input) final;
  5001. void SerializeWithCachedSizes(
  5002. ::google::protobuf::io::CodedOutputStream* output) const final;
  5003. ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
  5004. bool deterministic, ::google::protobuf::uint8* target) const final;
  5005. int GetCachedSize() const final { return _cached_size_.Get(); }
  5006. private:
  5007. void SharedCtor();
  5008. void SharedDtor();
  5009. void SetCachedSize(int size) const final;
  5010. void InternalSwap(TestMutualRecursionA_SubMessage* other);
  5011. protected:
  5012. explicit TestMutualRecursionA_SubMessage(::google::protobuf::Arena* arena);
  5013. private:
  5014. static void ArenaDtor(void* object);
  5015. inline void RegisterArenaDtor(::google::protobuf::Arena* arena);
  5016. private:
  5017. inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
  5018. return _internal_metadata_.arena();
  5019. }
  5020. inline void* MaybeArenaPtr() const {
  5021. return _internal_metadata_.raw_arena_ptr();
  5022. }
  5023. public:
  5024. ::google::protobuf::Metadata GetMetadata() const final;
  5025. // nested types ----------------------------------------------------
  5026. // accessors -------------------------------------------------------
  5027. // optional .protobuf_unittest.TestMutualRecursionB b = 1;
  5028. bool has_b() const;
  5029. void clear_b();
  5030. static const int kBFieldNumber = 1;
  5031. private:
  5032. const ::protobuf_unittest::TestMutualRecursionB& _internal_b() const;
  5033. public:
  5034. const ::protobuf_unittest::TestMutualRecursionB& b() const;
  5035. ::protobuf_unittest::TestMutualRecursionB* release_b();
  5036. ::protobuf_unittest::TestMutualRecursionB* mutable_b();
  5037. void set_allocated_b(::protobuf_unittest::TestMutualRecursionB* b);
  5038. void unsafe_arena_set_allocated_b(
  5039. ::protobuf_unittest::TestMutualRecursionB* b);
  5040. ::protobuf_unittest::TestMutualRecursionB* unsafe_arena_release_b();
  5041. // @@protoc_insertion_point(class_scope:protobuf_unittest.TestMutualRecursionA.SubMessage)
  5042. private:
  5043. void set_has_b();
  5044. void clear_has_b();
  5045. ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
  5046. template <typename T> friend class ::google::protobuf::Arena::InternalHelper;
  5047. typedef void InternalArenaConstructable_;
  5048. typedef void DestructorSkippable_;
  5049. ::google::protobuf::internal::HasBits<1> _has_bits_;
  5050. mutable ::google::protobuf::internal::CachedSize _cached_size_;
  5051. ::protobuf_unittest::TestMutualRecursionB* b_;
  5052. friend struct ::protobuf_google_2fprotobuf_2funittest_2eproto::TableStruct;
  5053. };
  5054. // -------------------------------------------------------------------
  5055. class TestMutualRecursionA_SubGroup : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:protobuf_unittest.TestMutualRecursionA.SubGroup) */ {
  5056. public:
  5057. TestMutualRecursionA_SubGroup();
  5058. virtual ~TestMutualRecursionA_SubGroup();
  5059. TestMutualRecursionA_SubGroup(const TestMutualRecursionA_SubGroup& from);
  5060. inline TestMutualRecursionA_SubGroup& operator=(const TestMutualRecursionA_SubGroup& from) {
  5061. CopyFrom(from);
  5062. return *this;
  5063. }
  5064. #if LANG_CXX11
  5065. TestMutualRecursionA_SubGroup(TestMutualRecursionA_SubGroup&& from) noexcept
  5066. : TestMutualRecursionA_SubGroup() {
  5067. *this = ::std::move(from);
  5068. }
  5069. inline TestMutualRecursionA_SubGroup& operator=(TestMutualRecursionA_SubGroup&& from) noexcept {
  5070. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  5071. if (this != &from) InternalSwap(&from);
  5072. } else {
  5073. CopyFrom(from);
  5074. }
  5075. return *this;
  5076. }
  5077. #endif
  5078. inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
  5079. return _internal_metadata_.unknown_fields();
  5080. }
  5081. inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
  5082. return _internal_metadata_.mutable_unknown_fields();
  5083. }
  5084. inline ::google::protobuf::Arena* GetArena() const final {
  5085. return GetArenaNoVirtual();
  5086. }
  5087. inline void* GetMaybeArenaPointer() const final {
  5088. return MaybeArenaPtr();
  5089. }
  5090. static const ::google::protobuf::Descriptor* descriptor();
  5091. static const TestMutualRecursionA_SubGroup& default_instance();
  5092. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  5093. static inline const TestMutualRecursionA_SubGroup* internal_default_instance() {
  5094. return reinterpret_cast<const TestMutualRecursionA_SubGroup*>(
  5095. &_TestMutualRecursionA_SubGroup_default_instance_);
  5096. }
  5097. static constexpr int kIndexInFileMessages =
  5098. 27;
  5099. void UnsafeArenaSwap(TestMutualRecursionA_SubGroup* other);
  5100. void Swap(TestMutualRecursionA_SubGroup* other);
  5101. friend void swap(TestMutualRecursionA_SubGroup& a, TestMutualRecursionA_SubGroup& b) {
  5102. a.Swap(&b);
  5103. }
  5104. // implements Message ----------------------------------------------
  5105. inline TestMutualRecursionA_SubGroup* New() const final {
  5106. return CreateMaybeMessage<TestMutualRecursionA_SubGroup>(NULL);
  5107. }
  5108. TestMutualRecursionA_SubGroup* New(::google::protobuf::Arena* arena) const final {
  5109. return CreateMaybeMessage<TestMutualRecursionA_SubGroup>(arena);
  5110. }
  5111. void CopyFrom(const ::google::protobuf::Message& from) final;
  5112. void MergeFrom(const ::google::protobuf::Message& from) final;
  5113. void CopyFrom(const TestMutualRecursionA_SubGroup& from);
  5114. void MergeFrom(const TestMutualRecursionA_SubGroup& from);
  5115. void Clear() final;
  5116. bool IsInitialized() const final;
  5117. size_t ByteSizeLong() const final;
  5118. bool MergePartialFromCodedStream(
  5119. ::google::protobuf::io::CodedInputStream* input) final;
  5120. void SerializeWithCachedSizes(
  5121. ::google::protobuf::io::CodedOutputStream* output) const final;
  5122. ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
  5123. bool deterministic, ::google::protobuf::uint8* target) const final;
  5124. int GetCachedSize() const final { return _cached_size_.Get(); }
  5125. private:
  5126. void SharedCtor();
  5127. void SharedDtor();
  5128. void SetCachedSize(int size) const final;
  5129. void InternalSwap(TestMutualRecursionA_SubGroup* other);
  5130. protected:
  5131. explicit TestMutualRecursionA_SubGroup(::google::protobuf::Arena* arena);
  5132. private:
  5133. static void ArenaDtor(void* object);
  5134. inline void RegisterArenaDtor(::google::protobuf::Arena* arena);
  5135. private:
  5136. inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
  5137. return _internal_metadata_.arena();
  5138. }
  5139. inline void* MaybeArenaPtr() const {
  5140. return _internal_metadata_.raw_arena_ptr();
  5141. }
  5142. public:
  5143. ::google::protobuf::Metadata GetMetadata() const final;
  5144. // nested types ----------------------------------------------------
  5145. // accessors -------------------------------------------------------
  5146. // optional .protobuf_unittest.TestMutualRecursionA.SubMessage sub_message = 3;
  5147. bool has_sub_message() const;
  5148. void clear_sub_message();
  5149. static const int kSubMessageFieldNumber = 3;
  5150. private:
  5151. const ::protobuf_unittest::TestMutualRecursionA_SubMessage& _internal_sub_message() const;
  5152. public:
  5153. const ::protobuf_unittest::TestMutualRecursionA_SubMessage& sub_message() const;
  5154. ::protobuf_unittest::TestMutualRecursionA_SubMessage* release_sub_message();
  5155. ::protobuf_unittest::TestMutualRecursionA_SubMessage* mutable_sub_message();
  5156. void set_allocated_sub_message(::protobuf_unittest::TestMutualRecursionA_SubMessage* sub_message);
  5157. void unsafe_arena_set_allocated_sub_message(
  5158. ::protobuf_unittest::TestMutualRecursionA_SubMessage* sub_message);
  5159. ::protobuf_unittest::TestMutualRecursionA_SubMessage* unsafe_arena_release_sub_message();
  5160. // optional .protobuf_unittest.TestAllTypes not_in_this_scc = 4;
  5161. bool has_not_in_this_scc() const;
  5162. void clear_not_in_this_scc();
  5163. static const int kNotInThisSccFieldNumber = 4;
  5164. private:
  5165. const ::protobuf_unittest::TestAllTypes& _internal_not_in_this_scc() const;
  5166. public:
  5167. const ::protobuf_unittest::TestAllTypes& not_in_this_scc() const;
  5168. ::protobuf_unittest::TestAllTypes* release_not_in_this_scc();
  5169. ::protobuf_unittest::TestAllTypes* mutable_not_in_this_scc();
  5170. void set_allocated_not_in_this_scc(::protobuf_unittest::TestAllTypes* not_in_this_scc);
  5171. void unsafe_arena_set_allocated_not_in_this_scc(
  5172. ::protobuf_unittest::TestAllTypes* not_in_this_scc);
  5173. ::protobuf_unittest::TestAllTypes* unsafe_arena_release_not_in_this_scc();
  5174. // @@protoc_insertion_point(class_scope:protobuf_unittest.TestMutualRecursionA.SubGroup)
  5175. private:
  5176. void set_has_sub_message();
  5177. void clear_has_sub_message();
  5178. void set_has_not_in_this_scc();
  5179. void clear_has_not_in_this_scc();
  5180. ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
  5181. template <typename T> friend class ::google::protobuf::Arena::InternalHelper;
  5182. typedef void InternalArenaConstructable_;
  5183. typedef void DestructorSkippable_;
  5184. ::google::protobuf::internal::HasBits<1> _has_bits_;
  5185. mutable ::google::protobuf::internal::CachedSize _cached_size_;
  5186. ::protobuf_unittest::TestMutualRecursionA_SubMessage* sub_message_;
  5187. ::protobuf_unittest::TestAllTypes* not_in_this_scc_;
  5188. friend struct ::protobuf_google_2fprotobuf_2funittest_2eproto::TableStruct;
  5189. };
  5190. // -------------------------------------------------------------------
  5191. class TestMutualRecursionA : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:protobuf_unittest.TestMutualRecursionA) */ {
  5192. public:
  5193. TestMutualRecursionA();
  5194. virtual ~TestMutualRecursionA();
  5195. TestMutualRecursionA(const TestMutualRecursionA& from);
  5196. inline TestMutualRecursionA& operator=(const TestMutualRecursionA& from) {
  5197. CopyFrom(from);
  5198. return *this;
  5199. }
  5200. #if LANG_CXX11
  5201. TestMutualRecursionA(TestMutualRecursionA&& from) noexcept
  5202. : TestMutualRecursionA() {
  5203. *this = ::std::move(from);
  5204. }
  5205. inline TestMutualRecursionA& operator=(TestMutualRecursionA&& from) noexcept {
  5206. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  5207. if (this != &from) InternalSwap(&from);
  5208. } else {
  5209. CopyFrom(from);
  5210. }
  5211. return *this;
  5212. }
  5213. #endif
  5214. inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
  5215. return _internal_metadata_.unknown_fields();
  5216. }
  5217. inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
  5218. return _internal_metadata_.mutable_unknown_fields();
  5219. }
  5220. inline ::google::protobuf::Arena* GetArena() const final {
  5221. return GetArenaNoVirtual();
  5222. }
  5223. inline void* GetMaybeArenaPointer() const final {
  5224. return MaybeArenaPtr();
  5225. }
  5226. static const ::google::protobuf::Descriptor* descriptor();
  5227. static const TestMutualRecursionA& default_instance();
  5228. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  5229. static inline const TestMutualRecursionA* internal_default_instance() {
  5230. return reinterpret_cast<const TestMutualRecursionA*>(
  5231. &_TestMutualRecursionA_default_instance_);
  5232. }
  5233. static constexpr int kIndexInFileMessages =
  5234. 28;
  5235. void UnsafeArenaSwap(TestMutualRecursionA* other);
  5236. void Swap(TestMutualRecursionA* other);
  5237. friend void swap(TestMutualRecursionA& a, TestMutualRecursionA& b) {
  5238. a.Swap(&b);
  5239. }
  5240. // implements Message ----------------------------------------------
  5241. inline TestMutualRecursionA* New() const final {
  5242. return CreateMaybeMessage<TestMutualRecursionA>(NULL);
  5243. }
  5244. TestMutualRecursionA* New(::google::protobuf::Arena* arena) const final {
  5245. return CreateMaybeMessage<TestMutualRecursionA>(arena);
  5246. }
  5247. void CopyFrom(const ::google::protobuf::Message& from) final;
  5248. void MergeFrom(const ::google::protobuf::Message& from) final;
  5249. void CopyFrom(const TestMutualRecursionA& from);
  5250. void MergeFrom(const TestMutualRecursionA& from);
  5251. void Clear() final;
  5252. bool IsInitialized() const final;
  5253. size_t ByteSizeLong() const final;
  5254. bool MergePartialFromCodedStream(
  5255. ::google::protobuf::io::CodedInputStream* input) final;
  5256. void SerializeWithCachedSizes(
  5257. ::google::protobuf::io::CodedOutputStream* output) const final;
  5258. ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
  5259. bool deterministic, ::google::protobuf::uint8* target) const final;
  5260. int GetCachedSize() const final { return _cached_size_.Get(); }
  5261. private:
  5262. void SharedCtor();
  5263. void SharedDtor();
  5264. void SetCachedSize(int size) const final;
  5265. void InternalSwap(TestMutualRecursionA* other);
  5266. protected:
  5267. explicit TestMutualRecursionA(::google::protobuf::Arena* arena);
  5268. private:
  5269. static void ArenaDtor(void* object);
  5270. inline void RegisterArenaDtor(::google::protobuf::Arena* arena);
  5271. private:
  5272. inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
  5273. return _internal_metadata_.arena();
  5274. }
  5275. inline void* MaybeArenaPtr() const {
  5276. return _internal_metadata_.raw_arena_ptr();
  5277. }
  5278. public:
  5279. ::google::protobuf::Metadata GetMetadata() const final;
  5280. // nested types ----------------------------------------------------
  5281. typedef TestMutualRecursionA_SubMessage SubMessage;
  5282. typedef TestMutualRecursionA_SubGroup SubGroup;
  5283. // accessors -------------------------------------------------------
  5284. // optional .protobuf_unittest.TestMutualRecursionB bb = 1;
  5285. bool has_bb() const;
  5286. void clear_bb();
  5287. static const int kBbFieldNumber = 1;
  5288. private:
  5289. const ::protobuf_unittest::TestMutualRecursionB& _internal_bb() const;
  5290. public:
  5291. const ::protobuf_unittest::TestMutualRecursionB& bb() const;
  5292. ::protobuf_unittest::TestMutualRecursionB* release_bb();
  5293. ::protobuf_unittest::TestMutualRecursionB* mutable_bb();
  5294. void set_allocated_bb(::protobuf_unittest::TestMutualRecursionB* bb);
  5295. void unsafe_arena_set_allocated_bb(
  5296. ::protobuf_unittest::TestMutualRecursionB* bb);
  5297. ::protobuf_unittest::TestMutualRecursionB* unsafe_arena_release_bb();
  5298. // optional group SubGroup = 2 { ... };
  5299. bool has_subgroup() const;
  5300. void clear_subgroup();
  5301. static const int kSubgroupFieldNumber = 2;
  5302. private:
  5303. const ::protobuf_unittest::TestMutualRecursionA_SubGroup& _internal_subgroup() const;
  5304. public:
  5305. const ::protobuf_unittest::TestMutualRecursionA_SubGroup& subgroup() const;
  5306. ::protobuf_unittest::TestMutualRecursionA_SubGroup* release_subgroup();
  5307. ::protobuf_unittest::TestMutualRecursionA_SubGroup* mutable_subgroup();
  5308. void set_allocated_subgroup(::protobuf_unittest::TestMutualRecursionA_SubGroup* subgroup);
  5309. void unsafe_arena_set_allocated_subgroup(
  5310. ::protobuf_unittest::TestMutualRecursionA_SubGroup* subgroup);
  5311. ::protobuf_unittest::TestMutualRecursionA_SubGroup* unsafe_arena_release_subgroup();
  5312. // @@protoc_insertion_point(class_scope:protobuf_unittest.TestMutualRecursionA)
  5313. private:
  5314. void set_has_bb();
  5315. void clear_has_bb();
  5316. void set_has_subgroup();
  5317. void clear_has_subgroup();
  5318. ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
  5319. template <typename T> friend class ::google::protobuf::Arena::InternalHelper;
  5320. typedef void InternalArenaConstructable_;
  5321. typedef void DestructorSkippable_;
  5322. ::google::protobuf::internal::HasBits<1> _has_bits_;
  5323. mutable ::google::protobuf::internal::CachedSize _cached_size_;
  5324. ::protobuf_unittest::TestMutualRecursionB* bb_;
  5325. ::protobuf_unittest::TestMutualRecursionA_SubGroup* subgroup_;
  5326. friend struct ::protobuf_google_2fprotobuf_2funittest_2eproto::TableStruct;
  5327. };
  5328. // -------------------------------------------------------------------
  5329. class TestMutualRecursionB : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:protobuf_unittest.TestMutualRecursionB) */ {
  5330. public:
  5331. TestMutualRecursionB();
  5332. virtual ~TestMutualRecursionB();
  5333. TestMutualRecursionB(const TestMutualRecursionB& from);
  5334. inline TestMutualRecursionB& operator=(const TestMutualRecursionB& from) {
  5335. CopyFrom(from);
  5336. return *this;
  5337. }
  5338. #if LANG_CXX11
  5339. TestMutualRecursionB(TestMutualRecursionB&& from) noexcept
  5340. : TestMutualRecursionB() {
  5341. *this = ::std::move(from);
  5342. }
  5343. inline TestMutualRecursionB& operator=(TestMutualRecursionB&& from) noexcept {
  5344. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  5345. if (this != &from) InternalSwap(&from);
  5346. } else {
  5347. CopyFrom(from);
  5348. }
  5349. return *this;
  5350. }
  5351. #endif
  5352. inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
  5353. return _internal_metadata_.unknown_fields();
  5354. }
  5355. inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
  5356. return _internal_metadata_.mutable_unknown_fields();
  5357. }
  5358. inline ::google::protobuf::Arena* GetArena() const final {
  5359. return GetArenaNoVirtual();
  5360. }
  5361. inline void* GetMaybeArenaPointer() const final {
  5362. return MaybeArenaPtr();
  5363. }
  5364. static const ::google::protobuf::Descriptor* descriptor();
  5365. static const TestMutualRecursionB& default_instance();
  5366. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  5367. static inline const TestMutualRecursionB* internal_default_instance() {
  5368. return reinterpret_cast<const TestMutualRecursionB*>(
  5369. &_TestMutualRecursionB_default_instance_);
  5370. }
  5371. static constexpr int kIndexInFileMessages =
  5372. 29;
  5373. void UnsafeArenaSwap(TestMutualRecursionB* other);
  5374. void Swap(TestMutualRecursionB* other);
  5375. friend void swap(TestMutualRecursionB& a, TestMutualRecursionB& b) {
  5376. a.Swap(&b);
  5377. }
  5378. // implements Message ----------------------------------------------
  5379. inline TestMutualRecursionB* New() const final {
  5380. return CreateMaybeMessage<TestMutualRecursionB>(NULL);
  5381. }
  5382. TestMutualRecursionB* New(::google::protobuf::Arena* arena) const final {
  5383. return CreateMaybeMessage<TestMutualRecursionB>(arena);
  5384. }
  5385. void CopyFrom(const ::google::protobuf::Message& from) final;
  5386. void MergeFrom(const ::google::protobuf::Message& from) final;
  5387. void CopyFrom(const TestMutualRecursionB& from);
  5388. void MergeFrom(const TestMutualRecursionB& from);
  5389. void Clear() final;
  5390. bool IsInitialized() const final;
  5391. size_t ByteSizeLong() const final;
  5392. bool MergePartialFromCodedStream(
  5393. ::google::protobuf::io::CodedInputStream* input) final;
  5394. void SerializeWithCachedSizes(
  5395. ::google::protobuf::io::CodedOutputStream* output) const final;
  5396. ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
  5397. bool deterministic, ::google::protobuf::uint8* target) const final;
  5398. int GetCachedSize() const final { return _cached_size_.Get(); }
  5399. private:
  5400. void SharedCtor();
  5401. void SharedDtor();
  5402. void SetCachedSize(int size) const final;
  5403. void InternalSwap(TestMutualRecursionB* other);
  5404. protected:
  5405. explicit TestMutualRecursionB(::google::protobuf::Arena* arena);
  5406. private:
  5407. static void ArenaDtor(void* object);
  5408. inline void RegisterArenaDtor(::google::protobuf::Arena* arena);
  5409. private:
  5410. inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
  5411. return _internal_metadata_.arena();
  5412. }
  5413. inline void* MaybeArenaPtr() const {
  5414. return _internal_metadata_.raw_arena_ptr();
  5415. }
  5416. public:
  5417. ::google::protobuf::Metadata GetMetadata() const final;
  5418. // nested types ----------------------------------------------------
  5419. // accessors -------------------------------------------------------
  5420. // optional .protobuf_unittest.TestMutualRecursionA a = 1;
  5421. bool has_a() const;
  5422. void clear_a();
  5423. static const int kAFieldNumber = 1;
  5424. private:
  5425. const ::protobuf_unittest::TestMutualRecursionA& _internal_a() const;
  5426. public:
  5427. const ::protobuf_unittest::TestMutualRecursionA& a() const;
  5428. ::protobuf_unittest::TestMutualRecursionA* release_a();
  5429. ::protobuf_unittest::TestMutualRecursionA* mutable_a();
  5430. void set_allocated_a(::protobuf_unittest::TestMutualRecursionA* a);
  5431. void unsafe_arena_set_allocated_a(
  5432. ::protobuf_unittest::TestMutualRecursionA* a);
  5433. ::protobuf_unittest::TestMutualRecursionA* unsafe_arena_release_a();
  5434. // optional int32 optional_int32 = 2;
  5435. bool has_optional_int32() const;
  5436. void clear_optional_int32();
  5437. static const int kOptionalInt32FieldNumber = 2;
  5438. ::google::protobuf::int32 optional_int32() const;
  5439. void set_optional_int32(::google::protobuf::int32 value);
  5440. // @@protoc_insertion_point(class_scope:protobuf_unittest.TestMutualRecursionB)
  5441. private:
  5442. void set_has_a();
  5443. void clear_has_a();
  5444. void set_has_optional_int32();
  5445. void clear_has_optional_int32();
  5446. ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
  5447. template <typename T> friend class ::google::protobuf::Arena::InternalHelper;
  5448. typedef void InternalArenaConstructable_;
  5449. typedef void DestructorSkippable_;
  5450. ::google::protobuf::internal::HasBits<1> _has_bits_;
  5451. mutable ::google::protobuf::internal::CachedSize _cached_size_;
  5452. ::protobuf_unittest::TestMutualRecursionA* a_;
  5453. ::google::protobuf::int32 optional_int32_;
  5454. friend struct ::protobuf_google_2fprotobuf_2funittest_2eproto::TableStruct;
  5455. };
  5456. // -------------------------------------------------------------------
  5457. class TestIsInitialized_SubMessage_SubGroup : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:protobuf_unittest.TestIsInitialized.SubMessage.SubGroup) */ {
  5458. public:
  5459. TestIsInitialized_SubMessage_SubGroup();
  5460. virtual ~TestIsInitialized_SubMessage_SubGroup();
  5461. TestIsInitialized_SubMessage_SubGroup(const TestIsInitialized_SubMessage_SubGroup& from);
  5462. inline TestIsInitialized_SubMessage_SubGroup& operator=(const TestIsInitialized_SubMessage_SubGroup& from) {
  5463. CopyFrom(from);
  5464. return *this;
  5465. }
  5466. #if LANG_CXX11
  5467. TestIsInitialized_SubMessage_SubGroup(TestIsInitialized_SubMessage_SubGroup&& from) noexcept
  5468. : TestIsInitialized_SubMessage_SubGroup() {
  5469. *this = ::std::move(from);
  5470. }
  5471. inline TestIsInitialized_SubMessage_SubGroup& operator=(TestIsInitialized_SubMessage_SubGroup&& from) noexcept {
  5472. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  5473. if (this != &from) InternalSwap(&from);
  5474. } else {
  5475. CopyFrom(from);
  5476. }
  5477. return *this;
  5478. }
  5479. #endif
  5480. inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
  5481. return _internal_metadata_.unknown_fields();
  5482. }
  5483. inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
  5484. return _internal_metadata_.mutable_unknown_fields();
  5485. }
  5486. inline ::google::protobuf::Arena* GetArena() const final {
  5487. return GetArenaNoVirtual();
  5488. }
  5489. inline void* GetMaybeArenaPointer() const final {
  5490. return MaybeArenaPtr();
  5491. }
  5492. static const ::google::protobuf::Descriptor* descriptor();
  5493. static const TestIsInitialized_SubMessage_SubGroup& default_instance();
  5494. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  5495. static inline const TestIsInitialized_SubMessage_SubGroup* internal_default_instance() {
  5496. return reinterpret_cast<const TestIsInitialized_SubMessage_SubGroup*>(
  5497. &_TestIsInitialized_SubMessage_SubGroup_default_instance_);
  5498. }
  5499. static constexpr int kIndexInFileMessages =
  5500. 30;
  5501. void UnsafeArenaSwap(TestIsInitialized_SubMessage_SubGroup* other);
  5502. void Swap(TestIsInitialized_SubMessage_SubGroup* other);
  5503. friend void swap(TestIsInitialized_SubMessage_SubGroup& a, TestIsInitialized_SubMessage_SubGroup& b) {
  5504. a.Swap(&b);
  5505. }
  5506. // implements Message ----------------------------------------------
  5507. inline TestIsInitialized_SubMessage_SubGroup* New() const final {
  5508. return CreateMaybeMessage<TestIsInitialized_SubMessage_SubGroup>(NULL);
  5509. }
  5510. TestIsInitialized_SubMessage_SubGroup* New(::google::protobuf::Arena* arena) const final {
  5511. return CreateMaybeMessage<TestIsInitialized_SubMessage_SubGroup>(arena);
  5512. }
  5513. void CopyFrom(const ::google::protobuf::Message& from) final;
  5514. void MergeFrom(const ::google::protobuf::Message& from) final;
  5515. void CopyFrom(const TestIsInitialized_SubMessage_SubGroup& from);
  5516. void MergeFrom(const TestIsInitialized_SubMessage_SubGroup& from);
  5517. void Clear() final;
  5518. bool IsInitialized() const final;
  5519. size_t ByteSizeLong() const final;
  5520. bool MergePartialFromCodedStream(
  5521. ::google::protobuf::io::CodedInputStream* input) final;
  5522. void SerializeWithCachedSizes(
  5523. ::google::protobuf::io::CodedOutputStream* output) const final;
  5524. ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
  5525. bool deterministic, ::google::protobuf::uint8* target) const final;
  5526. int GetCachedSize() const final { return _cached_size_.Get(); }
  5527. private:
  5528. void SharedCtor();
  5529. void SharedDtor();
  5530. void SetCachedSize(int size) const final;
  5531. void InternalSwap(TestIsInitialized_SubMessage_SubGroup* other);
  5532. protected:
  5533. explicit TestIsInitialized_SubMessage_SubGroup(::google::protobuf::Arena* arena);
  5534. private:
  5535. static void ArenaDtor(void* object);
  5536. inline void RegisterArenaDtor(::google::protobuf::Arena* arena);
  5537. private:
  5538. inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
  5539. return _internal_metadata_.arena();
  5540. }
  5541. inline void* MaybeArenaPtr() const {
  5542. return _internal_metadata_.raw_arena_ptr();
  5543. }
  5544. public:
  5545. ::google::protobuf::Metadata GetMetadata() const final;
  5546. // nested types ----------------------------------------------------
  5547. // accessors -------------------------------------------------------
  5548. // required int32 i = 2;
  5549. bool has_i() const;
  5550. void clear_i();
  5551. static const int kIFieldNumber = 2;
  5552. ::google::protobuf::int32 i() const;
  5553. void set_i(::google::protobuf::int32 value);
  5554. // @@protoc_insertion_point(class_scope:protobuf_unittest.TestIsInitialized.SubMessage.SubGroup)
  5555. private:
  5556. void set_has_i();
  5557. void clear_has_i();
  5558. ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
  5559. template <typename T> friend class ::google::protobuf::Arena::InternalHelper;
  5560. typedef void InternalArenaConstructable_;
  5561. typedef void DestructorSkippable_;
  5562. ::google::protobuf::internal::HasBits<1> _has_bits_;
  5563. mutable ::google::protobuf::internal::CachedSize _cached_size_;
  5564. ::google::protobuf::int32 i_;
  5565. friend struct ::protobuf_google_2fprotobuf_2funittest_2eproto::TableStruct;
  5566. };
  5567. // -------------------------------------------------------------------
  5568. class TestIsInitialized_SubMessage : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:protobuf_unittest.TestIsInitialized.SubMessage) */ {
  5569. public:
  5570. TestIsInitialized_SubMessage();
  5571. virtual ~TestIsInitialized_SubMessage();
  5572. TestIsInitialized_SubMessage(const TestIsInitialized_SubMessage& from);
  5573. inline TestIsInitialized_SubMessage& operator=(const TestIsInitialized_SubMessage& from) {
  5574. CopyFrom(from);
  5575. return *this;
  5576. }
  5577. #if LANG_CXX11
  5578. TestIsInitialized_SubMessage(TestIsInitialized_SubMessage&& from) noexcept
  5579. : TestIsInitialized_SubMessage() {
  5580. *this = ::std::move(from);
  5581. }
  5582. inline TestIsInitialized_SubMessage& operator=(TestIsInitialized_SubMessage&& from) noexcept {
  5583. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  5584. if (this != &from) InternalSwap(&from);
  5585. } else {
  5586. CopyFrom(from);
  5587. }
  5588. return *this;
  5589. }
  5590. #endif
  5591. inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
  5592. return _internal_metadata_.unknown_fields();
  5593. }
  5594. inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
  5595. return _internal_metadata_.mutable_unknown_fields();
  5596. }
  5597. inline ::google::protobuf::Arena* GetArena() const final {
  5598. return GetArenaNoVirtual();
  5599. }
  5600. inline void* GetMaybeArenaPointer() const final {
  5601. return MaybeArenaPtr();
  5602. }
  5603. static const ::google::protobuf::Descriptor* descriptor();
  5604. static const TestIsInitialized_SubMessage& default_instance();
  5605. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  5606. static inline const TestIsInitialized_SubMessage* internal_default_instance() {
  5607. return reinterpret_cast<const TestIsInitialized_SubMessage*>(
  5608. &_TestIsInitialized_SubMessage_default_instance_);
  5609. }
  5610. static constexpr int kIndexInFileMessages =
  5611. 31;
  5612. void UnsafeArenaSwap(TestIsInitialized_SubMessage* other);
  5613. void Swap(TestIsInitialized_SubMessage* other);
  5614. friend void swap(TestIsInitialized_SubMessage& a, TestIsInitialized_SubMessage& b) {
  5615. a.Swap(&b);
  5616. }
  5617. // implements Message ----------------------------------------------
  5618. inline TestIsInitialized_SubMessage* New() const final {
  5619. return CreateMaybeMessage<TestIsInitialized_SubMessage>(NULL);
  5620. }
  5621. TestIsInitialized_SubMessage* New(::google::protobuf::Arena* arena) const final {
  5622. return CreateMaybeMessage<TestIsInitialized_SubMessage>(arena);
  5623. }
  5624. void CopyFrom(const ::google::protobuf::Message& from) final;
  5625. void MergeFrom(const ::google::protobuf::Message& from) final;
  5626. void CopyFrom(const TestIsInitialized_SubMessage& from);
  5627. void MergeFrom(const TestIsInitialized_SubMessage& from);
  5628. void Clear() final;
  5629. bool IsInitialized() const final;
  5630. size_t ByteSizeLong() const final;
  5631. bool MergePartialFromCodedStream(
  5632. ::google::protobuf::io::CodedInputStream* input) final;
  5633. void SerializeWithCachedSizes(
  5634. ::google::protobuf::io::CodedOutputStream* output) const final;
  5635. ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
  5636. bool deterministic, ::google::protobuf::uint8* target) const final;
  5637. int GetCachedSize() const final { return _cached_size_.Get(); }
  5638. private:
  5639. void SharedCtor();
  5640. void SharedDtor();
  5641. void SetCachedSize(int size) const final;
  5642. void InternalSwap(TestIsInitialized_SubMessage* other);
  5643. protected:
  5644. explicit TestIsInitialized_SubMessage(::google::protobuf::Arena* arena);
  5645. private:
  5646. static void ArenaDtor(void* object);
  5647. inline void RegisterArenaDtor(::google::protobuf::Arena* arena);
  5648. private:
  5649. inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
  5650. return _internal_metadata_.arena();
  5651. }
  5652. inline void* MaybeArenaPtr() const {
  5653. return _internal_metadata_.raw_arena_ptr();
  5654. }
  5655. public:
  5656. ::google::protobuf::Metadata GetMetadata() const final;
  5657. // nested types ----------------------------------------------------
  5658. typedef TestIsInitialized_SubMessage_SubGroup SubGroup;
  5659. // accessors -------------------------------------------------------
  5660. // optional group SubGroup = 1 { ... };
  5661. bool has_subgroup() const;
  5662. void clear_subgroup();
  5663. static const int kSubgroupFieldNumber = 1;
  5664. private:
  5665. const ::protobuf_unittest::TestIsInitialized_SubMessage_SubGroup& _internal_subgroup() const;
  5666. public:
  5667. const ::protobuf_unittest::TestIsInitialized_SubMessage_SubGroup& subgroup() const;
  5668. ::protobuf_unittest::TestIsInitialized_SubMessage_SubGroup* release_subgroup();
  5669. ::protobuf_unittest::TestIsInitialized_SubMessage_SubGroup* mutable_subgroup();
  5670. void set_allocated_subgroup(::protobuf_unittest::TestIsInitialized_SubMessage_SubGroup* subgroup);
  5671. void unsafe_arena_set_allocated_subgroup(
  5672. ::protobuf_unittest::TestIsInitialized_SubMessage_SubGroup* subgroup);
  5673. ::protobuf_unittest::TestIsInitialized_SubMessage_SubGroup* unsafe_arena_release_subgroup();
  5674. // @@protoc_insertion_point(class_scope:protobuf_unittest.TestIsInitialized.SubMessage)
  5675. private:
  5676. void set_has_subgroup();
  5677. void clear_has_subgroup();
  5678. ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
  5679. template <typename T> friend class ::google::protobuf::Arena::InternalHelper;
  5680. typedef void InternalArenaConstructable_;
  5681. typedef void DestructorSkippable_;
  5682. ::google::protobuf::internal::HasBits<1> _has_bits_;
  5683. mutable ::google::protobuf::internal::CachedSize _cached_size_;
  5684. ::protobuf_unittest::TestIsInitialized_SubMessage_SubGroup* subgroup_;
  5685. friend struct ::protobuf_google_2fprotobuf_2funittest_2eproto::TableStruct;
  5686. };
  5687. // -------------------------------------------------------------------
  5688. class TestIsInitialized : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:protobuf_unittest.TestIsInitialized) */ {
  5689. public:
  5690. TestIsInitialized();
  5691. virtual ~TestIsInitialized();
  5692. TestIsInitialized(const TestIsInitialized& from);
  5693. inline TestIsInitialized& operator=(const TestIsInitialized& from) {
  5694. CopyFrom(from);
  5695. return *this;
  5696. }
  5697. #if LANG_CXX11
  5698. TestIsInitialized(TestIsInitialized&& from) noexcept
  5699. : TestIsInitialized() {
  5700. *this = ::std::move(from);
  5701. }
  5702. inline TestIsInitialized& operator=(TestIsInitialized&& from) noexcept {
  5703. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  5704. if (this != &from) InternalSwap(&from);
  5705. } else {
  5706. CopyFrom(from);
  5707. }
  5708. return *this;
  5709. }
  5710. #endif
  5711. inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
  5712. return _internal_metadata_.unknown_fields();
  5713. }
  5714. inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
  5715. return _internal_metadata_.mutable_unknown_fields();
  5716. }
  5717. inline ::google::protobuf::Arena* GetArena() const final {
  5718. return GetArenaNoVirtual();
  5719. }
  5720. inline void* GetMaybeArenaPointer() const final {
  5721. return MaybeArenaPtr();
  5722. }
  5723. static const ::google::protobuf::Descriptor* descriptor();
  5724. static const TestIsInitialized& default_instance();
  5725. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  5726. static inline const TestIsInitialized* internal_default_instance() {
  5727. return reinterpret_cast<const TestIsInitialized*>(
  5728. &_TestIsInitialized_default_instance_);
  5729. }
  5730. static constexpr int kIndexInFileMessages =
  5731. 32;
  5732. void UnsafeArenaSwap(TestIsInitialized* other);
  5733. void Swap(TestIsInitialized* other);
  5734. friend void swap(TestIsInitialized& a, TestIsInitialized& b) {
  5735. a.Swap(&b);
  5736. }
  5737. // implements Message ----------------------------------------------
  5738. inline TestIsInitialized* New() const final {
  5739. return CreateMaybeMessage<TestIsInitialized>(NULL);
  5740. }
  5741. TestIsInitialized* New(::google::protobuf::Arena* arena) const final {
  5742. return CreateMaybeMessage<TestIsInitialized>(arena);
  5743. }
  5744. void CopyFrom(const ::google::protobuf::Message& from) final;
  5745. void MergeFrom(const ::google::protobuf::Message& from) final;
  5746. void CopyFrom(const TestIsInitialized& from);
  5747. void MergeFrom(const TestIsInitialized& from);
  5748. void Clear() final;
  5749. bool IsInitialized() const final;
  5750. size_t ByteSizeLong() const final;
  5751. bool MergePartialFromCodedStream(
  5752. ::google::protobuf::io::CodedInputStream* input) final;
  5753. void SerializeWithCachedSizes(
  5754. ::google::protobuf::io::CodedOutputStream* output) const final;
  5755. ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
  5756. bool deterministic, ::google::protobuf::uint8* target) const final;
  5757. int GetCachedSize() const final { return _cached_size_.Get(); }
  5758. private:
  5759. void SharedCtor();
  5760. void SharedDtor();
  5761. void SetCachedSize(int size) const final;
  5762. void InternalSwap(TestIsInitialized* other);
  5763. protected:
  5764. explicit TestIsInitialized(::google::protobuf::Arena* arena);
  5765. private:
  5766. static void ArenaDtor(void* object);
  5767. inline void RegisterArenaDtor(::google::protobuf::Arena* arena);
  5768. private:
  5769. inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
  5770. return _internal_metadata_.arena();
  5771. }
  5772. inline void* MaybeArenaPtr() const {
  5773. return _internal_metadata_.raw_arena_ptr();
  5774. }
  5775. public:
  5776. ::google::protobuf::Metadata GetMetadata() const final;
  5777. // nested types ----------------------------------------------------
  5778. typedef TestIsInitialized_SubMessage SubMessage;
  5779. // accessors -------------------------------------------------------
  5780. // optional .protobuf_unittest.TestIsInitialized.SubMessage sub_message = 1;
  5781. bool has_sub_message() const;
  5782. void clear_sub_message();
  5783. static const int kSubMessageFieldNumber = 1;
  5784. private:
  5785. const ::protobuf_unittest::TestIsInitialized_SubMessage& _internal_sub_message() const;
  5786. public:
  5787. const ::protobuf_unittest::TestIsInitialized_SubMessage& sub_message() const;
  5788. ::protobuf_unittest::TestIsInitialized_SubMessage* release_sub_message();
  5789. ::protobuf_unittest::TestIsInitialized_SubMessage* mutable_sub_message();
  5790. void set_allocated_sub_message(::protobuf_unittest::TestIsInitialized_SubMessage* sub_message);
  5791. void unsafe_arena_set_allocated_sub_message(
  5792. ::protobuf_unittest::TestIsInitialized_SubMessage* sub_message);
  5793. ::protobuf_unittest::TestIsInitialized_SubMessage* unsafe_arena_release_sub_message();
  5794. // @@protoc_insertion_point(class_scope:protobuf_unittest.TestIsInitialized)
  5795. private:
  5796. void set_has_sub_message();
  5797. void clear_has_sub_message();
  5798. ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
  5799. template <typename T> friend class ::google::protobuf::Arena::InternalHelper;
  5800. typedef void InternalArenaConstructable_;
  5801. typedef void DestructorSkippable_;
  5802. ::google::protobuf::internal::HasBits<1> _has_bits_;
  5803. mutable ::google::protobuf::internal::CachedSize _cached_size_;
  5804. ::protobuf_unittest::TestIsInitialized_SubMessage* sub_message_;
  5805. friend struct ::protobuf_google_2fprotobuf_2funittest_2eproto::TableStruct;
  5806. };
  5807. // -------------------------------------------------------------------
  5808. class TestDupFieldNumber_Foo : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:protobuf_unittest.TestDupFieldNumber.Foo) */ {
  5809. public:
  5810. TestDupFieldNumber_Foo();
  5811. virtual ~TestDupFieldNumber_Foo();
  5812. TestDupFieldNumber_Foo(const TestDupFieldNumber_Foo& from);
  5813. inline TestDupFieldNumber_Foo& operator=(const TestDupFieldNumber_Foo& from) {
  5814. CopyFrom(from);
  5815. return *this;
  5816. }
  5817. #if LANG_CXX11
  5818. TestDupFieldNumber_Foo(TestDupFieldNumber_Foo&& from) noexcept
  5819. : TestDupFieldNumber_Foo() {
  5820. *this = ::std::move(from);
  5821. }
  5822. inline TestDupFieldNumber_Foo& operator=(TestDupFieldNumber_Foo&& from) noexcept {
  5823. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  5824. if (this != &from) InternalSwap(&from);
  5825. } else {
  5826. CopyFrom(from);
  5827. }
  5828. return *this;
  5829. }
  5830. #endif
  5831. inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
  5832. return _internal_metadata_.unknown_fields();
  5833. }
  5834. inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
  5835. return _internal_metadata_.mutable_unknown_fields();
  5836. }
  5837. inline ::google::protobuf::Arena* GetArena() const final {
  5838. return GetArenaNoVirtual();
  5839. }
  5840. inline void* GetMaybeArenaPointer() const final {
  5841. return MaybeArenaPtr();
  5842. }
  5843. static const ::google::protobuf::Descriptor* descriptor();
  5844. static const TestDupFieldNumber_Foo& default_instance();
  5845. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  5846. static inline const TestDupFieldNumber_Foo* internal_default_instance() {
  5847. return reinterpret_cast<const TestDupFieldNumber_Foo*>(
  5848. &_TestDupFieldNumber_Foo_default_instance_);
  5849. }
  5850. static constexpr int kIndexInFileMessages =
  5851. 33;
  5852. void UnsafeArenaSwap(TestDupFieldNumber_Foo* other);
  5853. void Swap(TestDupFieldNumber_Foo* other);
  5854. friend void swap(TestDupFieldNumber_Foo& a, TestDupFieldNumber_Foo& b) {
  5855. a.Swap(&b);
  5856. }
  5857. // implements Message ----------------------------------------------
  5858. inline TestDupFieldNumber_Foo* New() const final {
  5859. return CreateMaybeMessage<TestDupFieldNumber_Foo>(NULL);
  5860. }
  5861. TestDupFieldNumber_Foo* New(::google::protobuf::Arena* arena) const final {
  5862. return CreateMaybeMessage<TestDupFieldNumber_Foo>(arena);
  5863. }
  5864. void CopyFrom(const ::google::protobuf::Message& from) final;
  5865. void MergeFrom(const ::google::protobuf::Message& from) final;
  5866. void CopyFrom(const TestDupFieldNumber_Foo& from);
  5867. void MergeFrom(const TestDupFieldNumber_Foo& from);
  5868. void Clear() final;
  5869. bool IsInitialized() const final;
  5870. size_t ByteSizeLong() const final;
  5871. bool MergePartialFromCodedStream(
  5872. ::google::protobuf::io::CodedInputStream* input) final;
  5873. void SerializeWithCachedSizes(
  5874. ::google::protobuf::io::CodedOutputStream* output) const final;
  5875. ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
  5876. bool deterministic, ::google::protobuf::uint8* target) const final;
  5877. int GetCachedSize() const final { return _cached_size_.Get(); }
  5878. private:
  5879. void SharedCtor();
  5880. void SharedDtor();
  5881. void SetCachedSize(int size) const final;
  5882. void InternalSwap(TestDupFieldNumber_Foo* other);
  5883. protected:
  5884. explicit TestDupFieldNumber_Foo(::google::protobuf::Arena* arena);
  5885. private:
  5886. static void ArenaDtor(void* object);
  5887. inline void RegisterArenaDtor(::google::protobuf::Arena* arena);
  5888. private:
  5889. inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
  5890. return _internal_metadata_.arena();
  5891. }
  5892. inline void* MaybeArenaPtr() const {
  5893. return _internal_metadata_.raw_arena_ptr();
  5894. }
  5895. public:
  5896. ::google::protobuf::Metadata GetMetadata() const final;
  5897. // nested types ----------------------------------------------------
  5898. // accessors -------------------------------------------------------
  5899. // optional int32 a = 1;
  5900. bool has_a() const;
  5901. void clear_a();
  5902. static const int kAFieldNumber = 1;
  5903. ::google::protobuf::int32 a() const;
  5904. void set_a(::google::protobuf::int32 value);
  5905. // @@protoc_insertion_point(class_scope:protobuf_unittest.TestDupFieldNumber.Foo)
  5906. private:
  5907. void set_has_a();
  5908. void clear_has_a();
  5909. ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
  5910. template <typename T> friend class ::google::protobuf::Arena::InternalHelper;
  5911. typedef void InternalArenaConstructable_;
  5912. typedef void DestructorSkippable_;
  5913. ::google::protobuf::internal::HasBits<1> _has_bits_;
  5914. mutable ::google::protobuf::internal::CachedSize _cached_size_;
  5915. ::google::protobuf::int32 a_;
  5916. friend struct ::protobuf_google_2fprotobuf_2funittest_2eproto::TableStruct;
  5917. };
  5918. // -------------------------------------------------------------------
  5919. class TestDupFieldNumber_Bar : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:protobuf_unittest.TestDupFieldNumber.Bar) */ {
  5920. public:
  5921. TestDupFieldNumber_Bar();
  5922. virtual ~TestDupFieldNumber_Bar();
  5923. TestDupFieldNumber_Bar(const TestDupFieldNumber_Bar& from);
  5924. inline TestDupFieldNumber_Bar& operator=(const TestDupFieldNumber_Bar& from) {
  5925. CopyFrom(from);
  5926. return *this;
  5927. }
  5928. #if LANG_CXX11
  5929. TestDupFieldNumber_Bar(TestDupFieldNumber_Bar&& from) noexcept
  5930. : TestDupFieldNumber_Bar() {
  5931. *this = ::std::move(from);
  5932. }
  5933. inline TestDupFieldNumber_Bar& operator=(TestDupFieldNumber_Bar&& from) noexcept {
  5934. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  5935. if (this != &from) InternalSwap(&from);
  5936. } else {
  5937. CopyFrom(from);
  5938. }
  5939. return *this;
  5940. }
  5941. #endif
  5942. inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
  5943. return _internal_metadata_.unknown_fields();
  5944. }
  5945. inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
  5946. return _internal_metadata_.mutable_unknown_fields();
  5947. }
  5948. inline ::google::protobuf::Arena* GetArena() const final {
  5949. return GetArenaNoVirtual();
  5950. }
  5951. inline void* GetMaybeArenaPointer() const final {
  5952. return MaybeArenaPtr();
  5953. }
  5954. static const ::google::protobuf::Descriptor* descriptor();
  5955. static const TestDupFieldNumber_Bar& default_instance();
  5956. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  5957. static inline const TestDupFieldNumber_Bar* internal_default_instance() {
  5958. return reinterpret_cast<const TestDupFieldNumber_Bar*>(
  5959. &_TestDupFieldNumber_Bar_default_instance_);
  5960. }
  5961. static constexpr int kIndexInFileMessages =
  5962. 34;
  5963. void UnsafeArenaSwap(TestDupFieldNumber_Bar* other);
  5964. void Swap(TestDupFieldNumber_Bar* other);
  5965. friend void swap(TestDupFieldNumber_Bar& a, TestDupFieldNumber_Bar& b) {
  5966. a.Swap(&b);
  5967. }
  5968. // implements Message ----------------------------------------------
  5969. inline TestDupFieldNumber_Bar* New() const final {
  5970. return CreateMaybeMessage<TestDupFieldNumber_Bar>(NULL);
  5971. }
  5972. TestDupFieldNumber_Bar* New(::google::protobuf::Arena* arena) const final {
  5973. return CreateMaybeMessage<TestDupFieldNumber_Bar>(arena);
  5974. }
  5975. void CopyFrom(const ::google::protobuf::Message& from) final;
  5976. void MergeFrom(const ::google::protobuf::Message& from) final;
  5977. void CopyFrom(const TestDupFieldNumber_Bar& from);
  5978. void MergeFrom(const TestDupFieldNumber_Bar& from);
  5979. void Clear() final;
  5980. bool IsInitialized() const final;
  5981. size_t ByteSizeLong() const final;
  5982. bool MergePartialFromCodedStream(
  5983. ::google::protobuf::io::CodedInputStream* input) final;
  5984. void SerializeWithCachedSizes(
  5985. ::google::protobuf::io::CodedOutputStream* output) const final;
  5986. ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
  5987. bool deterministic, ::google::protobuf::uint8* target) const final;
  5988. int GetCachedSize() const final { return _cached_size_.Get(); }
  5989. private:
  5990. void SharedCtor();
  5991. void SharedDtor();
  5992. void SetCachedSize(int size) const final;
  5993. void InternalSwap(TestDupFieldNumber_Bar* other);
  5994. protected:
  5995. explicit TestDupFieldNumber_Bar(::google::protobuf::Arena* arena);
  5996. private:
  5997. static void ArenaDtor(void* object);
  5998. inline void RegisterArenaDtor(::google::protobuf::Arena* arena);
  5999. private:
  6000. inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
  6001. return _internal_metadata_.arena();
  6002. }
  6003. inline void* MaybeArenaPtr() const {
  6004. return _internal_metadata_.raw_arena_ptr();
  6005. }
  6006. public:
  6007. ::google::protobuf::Metadata GetMetadata() const final;
  6008. // nested types ----------------------------------------------------
  6009. // accessors -------------------------------------------------------
  6010. // optional int32 a = 1;
  6011. bool has_a() const;
  6012. void clear_a();
  6013. static const int kAFieldNumber = 1;
  6014. ::google::protobuf::int32 a() const;
  6015. void set_a(::google::protobuf::int32 value);
  6016. // @@protoc_insertion_point(class_scope:protobuf_unittest.TestDupFieldNumber.Bar)
  6017. private:
  6018. void set_has_a();
  6019. void clear_has_a();
  6020. ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
  6021. template <typename T> friend class ::google::protobuf::Arena::InternalHelper;
  6022. typedef void InternalArenaConstructable_;
  6023. typedef void DestructorSkippable_;
  6024. ::google::protobuf::internal::HasBits<1> _has_bits_;
  6025. mutable ::google::protobuf::internal::CachedSize _cached_size_;
  6026. ::google::protobuf::int32 a_;
  6027. friend struct ::protobuf_google_2fprotobuf_2funittest_2eproto::TableStruct;
  6028. };
  6029. // -------------------------------------------------------------------
  6030. class TestDupFieldNumber : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:protobuf_unittest.TestDupFieldNumber) */ {
  6031. public:
  6032. TestDupFieldNumber();
  6033. virtual ~TestDupFieldNumber();
  6034. TestDupFieldNumber(const TestDupFieldNumber& from);
  6035. inline TestDupFieldNumber& operator=(const TestDupFieldNumber& from) {
  6036. CopyFrom(from);
  6037. return *this;
  6038. }
  6039. #if LANG_CXX11
  6040. TestDupFieldNumber(TestDupFieldNumber&& from) noexcept
  6041. : TestDupFieldNumber() {
  6042. *this = ::std::move(from);
  6043. }
  6044. inline TestDupFieldNumber& operator=(TestDupFieldNumber&& from) noexcept {
  6045. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  6046. if (this != &from) InternalSwap(&from);
  6047. } else {
  6048. CopyFrom(from);
  6049. }
  6050. return *this;
  6051. }
  6052. #endif
  6053. inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
  6054. return _internal_metadata_.unknown_fields();
  6055. }
  6056. inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
  6057. return _internal_metadata_.mutable_unknown_fields();
  6058. }
  6059. inline ::google::protobuf::Arena* GetArena() const final {
  6060. return GetArenaNoVirtual();
  6061. }
  6062. inline void* GetMaybeArenaPointer() const final {
  6063. return MaybeArenaPtr();
  6064. }
  6065. static const ::google::protobuf::Descriptor* descriptor();
  6066. static const TestDupFieldNumber& default_instance();
  6067. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  6068. static inline const TestDupFieldNumber* internal_default_instance() {
  6069. return reinterpret_cast<const TestDupFieldNumber*>(
  6070. &_TestDupFieldNumber_default_instance_);
  6071. }
  6072. static constexpr int kIndexInFileMessages =
  6073. 35;
  6074. void UnsafeArenaSwap(TestDupFieldNumber* other);
  6075. void Swap(TestDupFieldNumber* other);
  6076. friend void swap(TestDupFieldNumber& a, TestDupFieldNumber& b) {
  6077. a.Swap(&b);
  6078. }
  6079. // implements Message ----------------------------------------------
  6080. inline TestDupFieldNumber* New() const final {
  6081. return CreateMaybeMessage<TestDupFieldNumber>(NULL);
  6082. }
  6083. TestDupFieldNumber* New(::google::protobuf::Arena* arena) const final {
  6084. return CreateMaybeMessage<TestDupFieldNumber>(arena);
  6085. }
  6086. void CopyFrom(const ::google::protobuf::Message& from) final;
  6087. void MergeFrom(const ::google::protobuf::Message& from) final;
  6088. void CopyFrom(const TestDupFieldNumber& from);
  6089. void MergeFrom(const TestDupFieldNumber& from);
  6090. void Clear() final;
  6091. bool IsInitialized() const final;
  6092. size_t ByteSizeLong() const final;
  6093. bool MergePartialFromCodedStream(
  6094. ::google::protobuf::io::CodedInputStream* input) final;
  6095. void SerializeWithCachedSizes(
  6096. ::google::protobuf::io::CodedOutputStream* output) const final;
  6097. ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
  6098. bool deterministic, ::google::protobuf::uint8* target) const final;
  6099. int GetCachedSize() const final { return _cached_size_.Get(); }
  6100. private:
  6101. void SharedCtor();
  6102. void SharedDtor();
  6103. void SetCachedSize(int size) const final;
  6104. void InternalSwap(TestDupFieldNumber* other);
  6105. protected:
  6106. explicit TestDupFieldNumber(::google::protobuf::Arena* arena);
  6107. private:
  6108. static void ArenaDtor(void* object);
  6109. inline void RegisterArenaDtor(::google::protobuf::Arena* arena);
  6110. private:
  6111. inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
  6112. return _internal_metadata_.arena();
  6113. }
  6114. inline void* MaybeArenaPtr() const {
  6115. return _internal_metadata_.raw_arena_ptr();
  6116. }
  6117. public:
  6118. ::google::protobuf::Metadata GetMetadata() const final;
  6119. // nested types ----------------------------------------------------
  6120. typedef TestDupFieldNumber_Foo Foo;
  6121. typedef TestDupFieldNumber_Bar Bar;
  6122. // accessors -------------------------------------------------------
  6123. // optional group Foo = 2 { ... };
  6124. bool has_foo() const;
  6125. void clear_foo();
  6126. static const int kFooFieldNumber = 2;
  6127. private:
  6128. const ::protobuf_unittest::TestDupFieldNumber_Foo& _internal_foo() const;
  6129. public:
  6130. const ::protobuf_unittest::TestDupFieldNumber_Foo& foo() const;
  6131. ::protobuf_unittest::TestDupFieldNumber_Foo* release_foo();
  6132. ::protobuf_unittest::TestDupFieldNumber_Foo* mutable_foo();
  6133. void set_allocated_foo(::protobuf_unittest::TestDupFieldNumber_Foo* foo);
  6134. void unsafe_arena_set_allocated_foo(
  6135. ::protobuf_unittest::TestDupFieldNumber_Foo* foo);
  6136. ::protobuf_unittest::TestDupFieldNumber_Foo* unsafe_arena_release_foo();
  6137. // optional group Bar = 3 { ... };
  6138. bool has_bar() const;
  6139. void clear_bar();
  6140. static const int kBarFieldNumber = 3;
  6141. private:
  6142. const ::protobuf_unittest::TestDupFieldNumber_Bar& _internal_bar() const;
  6143. public:
  6144. const ::protobuf_unittest::TestDupFieldNumber_Bar& bar() const;
  6145. ::protobuf_unittest::TestDupFieldNumber_Bar* release_bar();
  6146. ::protobuf_unittest::TestDupFieldNumber_Bar* mutable_bar();
  6147. void set_allocated_bar(::protobuf_unittest::TestDupFieldNumber_Bar* bar);
  6148. void unsafe_arena_set_allocated_bar(
  6149. ::protobuf_unittest::TestDupFieldNumber_Bar* bar);
  6150. ::protobuf_unittest::TestDupFieldNumber_Bar* unsafe_arena_release_bar();
  6151. // optional int32 a = 1;
  6152. bool has_a() const;
  6153. void clear_a();
  6154. static const int kAFieldNumber = 1;
  6155. ::google::protobuf::int32 a() const;
  6156. void set_a(::google::protobuf::int32 value);
  6157. // @@protoc_insertion_point(class_scope:protobuf_unittest.TestDupFieldNumber)
  6158. private:
  6159. void set_has_a();
  6160. void clear_has_a();
  6161. void set_has_foo();
  6162. void clear_has_foo();
  6163. void set_has_bar();
  6164. void clear_has_bar();
  6165. ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
  6166. template <typename T> friend class ::google::protobuf::Arena::InternalHelper;
  6167. typedef void InternalArenaConstructable_;
  6168. typedef void DestructorSkippable_;
  6169. ::google::protobuf::internal::HasBits<1> _has_bits_;
  6170. mutable ::google::protobuf::internal::CachedSize _cached_size_;
  6171. ::protobuf_unittest::TestDupFieldNumber_Foo* foo_;
  6172. ::protobuf_unittest::TestDupFieldNumber_Bar* bar_;
  6173. ::google::protobuf::int32 a_;
  6174. friend struct ::protobuf_google_2fprotobuf_2funittest_2eproto::TableStruct;
  6175. };
  6176. // -------------------------------------------------------------------
  6177. class TestEagerMessage : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:protobuf_unittest.TestEagerMessage) */ {
  6178. public:
  6179. TestEagerMessage();
  6180. virtual ~TestEagerMessage();
  6181. TestEagerMessage(const TestEagerMessage& from);
  6182. inline TestEagerMessage& operator=(const TestEagerMessage& from) {
  6183. CopyFrom(from);
  6184. return *this;
  6185. }
  6186. #if LANG_CXX11
  6187. TestEagerMessage(TestEagerMessage&& from) noexcept
  6188. : TestEagerMessage() {
  6189. *this = ::std::move(from);
  6190. }
  6191. inline TestEagerMessage& operator=(TestEagerMessage&& from) noexcept {
  6192. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  6193. if (this != &from) InternalSwap(&from);
  6194. } else {
  6195. CopyFrom(from);
  6196. }
  6197. return *this;
  6198. }
  6199. #endif
  6200. inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
  6201. return _internal_metadata_.unknown_fields();
  6202. }
  6203. inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
  6204. return _internal_metadata_.mutable_unknown_fields();
  6205. }
  6206. inline ::google::protobuf::Arena* GetArena() const final {
  6207. return GetArenaNoVirtual();
  6208. }
  6209. inline void* GetMaybeArenaPointer() const final {
  6210. return MaybeArenaPtr();
  6211. }
  6212. static const ::google::protobuf::Descriptor* descriptor();
  6213. static const TestEagerMessage& default_instance();
  6214. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  6215. static inline const TestEagerMessage* internal_default_instance() {
  6216. return reinterpret_cast<const TestEagerMessage*>(
  6217. &_TestEagerMessage_default_instance_);
  6218. }
  6219. static constexpr int kIndexInFileMessages =
  6220. 36;
  6221. void UnsafeArenaSwap(TestEagerMessage* other);
  6222. void Swap(TestEagerMessage* other);
  6223. friend void swap(TestEagerMessage& a, TestEagerMessage& b) {
  6224. a.Swap(&b);
  6225. }
  6226. // implements Message ----------------------------------------------
  6227. inline TestEagerMessage* New() const final {
  6228. return CreateMaybeMessage<TestEagerMessage>(NULL);
  6229. }
  6230. TestEagerMessage* New(::google::protobuf::Arena* arena) const final {
  6231. return CreateMaybeMessage<TestEagerMessage>(arena);
  6232. }
  6233. void CopyFrom(const ::google::protobuf::Message& from) final;
  6234. void MergeFrom(const ::google::protobuf::Message& from) final;
  6235. void CopyFrom(const TestEagerMessage& from);
  6236. void MergeFrom(const TestEagerMessage& from);
  6237. void Clear() final;
  6238. bool IsInitialized() const final;
  6239. size_t ByteSizeLong() const final;
  6240. bool MergePartialFromCodedStream(
  6241. ::google::protobuf::io::CodedInputStream* input) final;
  6242. void SerializeWithCachedSizes(
  6243. ::google::protobuf::io::CodedOutputStream* output) const final;
  6244. ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
  6245. bool deterministic, ::google::protobuf::uint8* target) const final;
  6246. int GetCachedSize() const final { return _cached_size_.Get(); }
  6247. private:
  6248. void SharedCtor();
  6249. void SharedDtor();
  6250. void SetCachedSize(int size) const final;
  6251. void InternalSwap(TestEagerMessage* other);
  6252. protected:
  6253. explicit TestEagerMessage(::google::protobuf::Arena* arena);
  6254. private:
  6255. static void ArenaDtor(void* object);
  6256. inline void RegisterArenaDtor(::google::protobuf::Arena* arena);
  6257. private:
  6258. inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
  6259. return _internal_metadata_.arena();
  6260. }
  6261. inline void* MaybeArenaPtr() const {
  6262. return _internal_metadata_.raw_arena_ptr();
  6263. }
  6264. public:
  6265. ::google::protobuf::Metadata GetMetadata() const final;
  6266. // nested types ----------------------------------------------------
  6267. // accessors -------------------------------------------------------
  6268. // optional .protobuf_unittest.TestAllTypes sub_message = 1 [lazy = false];
  6269. bool has_sub_message() const;
  6270. void clear_sub_message();
  6271. static const int kSubMessageFieldNumber = 1;
  6272. private:
  6273. const ::protobuf_unittest::TestAllTypes& _internal_sub_message() const;
  6274. public:
  6275. const ::protobuf_unittest::TestAllTypes& sub_message() const;
  6276. ::protobuf_unittest::TestAllTypes* release_sub_message();
  6277. ::protobuf_unittest::TestAllTypes* mutable_sub_message();
  6278. void set_allocated_sub_message(::protobuf_unittest::TestAllTypes* sub_message);
  6279. void unsafe_arena_set_allocated_sub_message(
  6280. ::protobuf_unittest::TestAllTypes* sub_message);
  6281. ::protobuf_unittest::TestAllTypes* unsafe_arena_release_sub_message();
  6282. // @@protoc_insertion_point(class_scope:protobuf_unittest.TestEagerMessage)
  6283. private:
  6284. void set_has_sub_message();
  6285. void clear_has_sub_message();
  6286. ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
  6287. template <typename T> friend class ::google::protobuf::Arena::InternalHelper;
  6288. typedef void InternalArenaConstructable_;
  6289. typedef void DestructorSkippable_;
  6290. ::google::protobuf::internal::HasBits<1> _has_bits_;
  6291. mutable ::google::protobuf::internal::CachedSize _cached_size_;
  6292. ::protobuf_unittest::TestAllTypes* sub_message_;
  6293. friend struct ::protobuf_google_2fprotobuf_2funittest_2eproto::TableStruct;
  6294. };
  6295. // -------------------------------------------------------------------
  6296. class TestLazyMessage : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:protobuf_unittest.TestLazyMessage) */ {
  6297. public:
  6298. TestLazyMessage();
  6299. virtual ~TestLazyMessage();
  6300. TestLazyMessage(const TestLazyMessage& from);
  6301. inline TestLazyMessage& operator=(const TestLazyMessage& from) {
  6302. CopyFrom(from);
  6303. return *this;
  6304. }
  6305. #if LANG_CXX11
  6306. TestLazyMessage(TestLazyMessage&& from) noexcept
  6307. : TestLazyMessage() {
  6308. *this = ::std::move(from);
  6309. }
  6310. inline TestLazyMessage& operator=(TestLazyMessage&& from) noexcept {
  6311. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  6312. if (this != &from) InternalSwap(&from);
  6313. } else {
  6314. CopyFrom(from);
  6315. }
  6316. return *this;
  6317. }
  6318. #endif
  6319. inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
  6320. return _internal_metadata_.unknown_fields();
  6321. }
  6322. inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
  6323. return _internal_metadata_.mutable_unknown_fields();
  6324. }
  6325. inline ::google::protobuf::Arena* GetArena() const final {
  6326. return GetArenaNoVirtual();
  6327. }
  6328. inline void* GetMaybeArenaPointer() const final {
  6329. return MaybeArenaPtr();
  6330. }
  6331. static const ::google::protobuf::Descriptor* descriptor();
  6332. static const TestLazyMessage& default_instance();
  6333. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  6334. static inline const TestLazyMessage* internal_default_instance() {
  6335. return reinterpret_cast<const TestLazyMessage*>(
  6336. &_TestLazyMessage_default_instance_);
  6337. }
  6338. static constexpr int kIndexInFileMessages =
  6339. 37;
  6340. void UnsafeArenaSwap(TestLazyMessage* other);
  6341. void Swap(TestLazyMessage* other);
  6342. friend void swap(TestLazyMessage& a, TestLazyMessage& b) {
  6343. a.Swap(&b);
  6344. }
  6345. // implements Message ----------------------------------------------
  6346. inline TestLazyMessage* New() const final {
  6347. return CreateMaybeMessage<TestLazyMessage>(NULL);
  6348. }
  6349. TestLazyMessage* New(::google::protobuf::Arena* arena) const final {
  6350. return CreateMaybeMessage<TestLazyMessage>(arena);
  6351. }
  6352. void CopyFrom(const ::google::protobuf::Message& from) final;
  6353. void MergeFrom(const ::google::protobuf::Message& from) final;
  6354. void CopyFrom(const TestLazyMessage& from);
  6355. void MergeFrom(const TestLazyMessage& from);
  6356. void Clear() final;
  6357. bool IsInitialized() const final;
  6358. size_t ByteSizeLong() const final;
  6359. bool MergePartialFromCodedStream(
  6360. ::google::protobuf::io::CodedInputStream* input) final;
  6361. void SerializeWithCachedSizes(
  6362. ::google::protobuf::io::CodedOutputStream* output) const final;
  6363. ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
  6364. bool deterministic, ::google::protobuf::uint8* target) const final;
  6365. int GetCachedSize() const final { return _cached_size_.Get(); }
  6366. private:
  6367. void SharedCtor();
  6368. void SharedDtor();
  6369. void SetCachedSize(int size) const final;
  6370. void InternalSwap(TestLazyMessage* other);
  6371. protected:
  6372. explicit TestLazyMessage(::google::protobuf::Arena* arena);
  6373. private:
  6374. static void ArenaDtor(void* object);
  6375. inline void RegisterArenaDtor(::google::protobuf::Arena* arena);
  6376. private:
  6377. inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
  6378. return _internal_metadata_.arena();
  6379. }
  6380. inline void* MaybeArenaPtr() const {
  6381. return _internal_metadata_.raw_arena_ptr();
  6382. }
  6383. public:
  6384. ::google::protobuf::Metadata GetMetadata() const final;
  6385. // nested types ----------------------------------------------------
  6386. // accessors -------------------------------------------------------
  6387. // optional .protobuf_unittest.TestAllTypes sub_message = 1 [lazy = true];
  6388. bool has_sub_message() const;
  6389. void clear_sub_message();
  6390. static const int kSubMessageFieldNumber = 1;
  6391. private:
  6392. const ::protobuf_unittest::TestAllTypes& _internal_sub_message() const;
  6393. public:
  6394. const ::protobuf_unittest::TestAllTypes& sub_message() const;
  6395. ::protobuf_unittest::TestAllTypes* release_sub_message();
  6396. ::protobuf_unittest::TestAllTypes* mutable_sub_message();
  6397. void set_allocated_sub_message(::protobuf_unittest::TestAllTypes* sub_message);
  6398. void unsafe_arena_set_allocated_sub_message(
  6399. ::protobuf_unittest::TestAllTypes* sub_message);
  6400. ::protobuf_unittest::TestAllTypes* unsafe_arena_release_sub_message();
  6401. // @@protoc_insertion_point(class_scope:protobuf_unittest.TestLazyMessage)
  6402. private:
  6403. void set_has_sub_message();
  6404. void clear_has_sub_message();
  6405. ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
  6406. template <typename T> friend class ::google::protobuf::Arena::InternalHelper;
  6407. typedef void InternalArenaConstructable_;
  6408. typedef void DestructorSkippable_;
  6409. ::google::protobuf::internal::HasBits<1> _has_bits_;
  6410. mutable ::google::protobuf::internal::CachedSize _cached_size_;
  6411. ::protobuf_unittest::TestAllTypes* sub_message_;
  6412. friend struct ::protobuf_google_2fprotobuf_2funittest_2eproto::TableStruct;
  6413. };
  6414. // -------------------------------------------------------------------
  6415. class TestNestedMessageHasBits_NestedMessage : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:protobuf_unittest.TestNestedMessageHasBits.NestedMessage) */ {
  6416. public:
  6417. TestNestedMessageHasBits_NestedMessage();
  6418. virtual ~TestNestedMessageHasBits_NestedMessage();
  6419. TestNestedMessageHasBits_NestedMessage(const TestNestedMessageHasBits_NestedMessage& from);
  6420. inline TestNestedMessageHasBits_NestedMessage& operator=(const TestNestedMessageHasBits_NestedMessage& from) {
  6421. CopyFrom(from);
  6422. return *this;
  6423. }
  6424. #if LANG_CXX11
  6425. TestNestedMessageHasBits_NestedMessage(TestNestedMessageHasBits_NestedMessage&& from) noexcept
  6426. : TestNestedMessageHasBits_NestedMessage() {
  6427. *this = ::std::move(from);
  6428. }
  6429. inline TestNestedMessageHasBits_NestedMessage& operator=(TestNestedMessageHasBits_NestedMessage&& from) noexcept {
  6430. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  6431. if (this != &from) InternalSwap(&from);
  6432. } else {
  6433. CopyFrom(from);
  6434. }
  6435. return *this;
  6436. }
  6437. #endif
  6438. inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
  6439. return _internal_metadata_.unknown_fields();
  6440. }
  6441. inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
  6442. return _internal_metadata_.mutable_unknown_fields();
  6443. }
  6444. inline ::google::protobuf::Arena* GetArena() const final {
  6445. return GetArenaNoVirtual();
  6446. }
  6447. inline void* GetMaybeArenaPointer() const final {
  6448. return MaybeArenaPtr();
  6449. }
  6450. static const ::google::protobuf::Descriptor* descriptor();
  6451. static const TestNestedMessageHasBits_NestedMessage& default_instance();
  6452. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  6453. static inline const TestNestedMessageHasBits_NestedMessage* internal_default_instance() {
  6454. return reinterpret_cast<const TestNestedMessageHasBits_NestedMessage*>(
  6455. &_TestNestedMessageHasBits_NestedMessage_default_instance_);
  6456. }
  6457. static constexpr int kIndexInFileMessages =
  6458. 38;
  6459. void UnsafeArenaSwap(TestNestedMessageHasBits_NestedMessage* other);
  6460. void Swap(TestNestedMessageHasBits_NestedMessage* other);
  6461. friend void swap(TestNestedMessageHasBits_NestedMessage& a, TestNestedMessageHasBits_NestedMessage& b) {
  6462. a.Swap(&b);
  6463. }
  6464. // implements Message ----------------------------------------------
  6465. inline TestNestedMessageHasBits_NestedMessage* New() const final {
  6466. return CreateMaybeMessage<TestNestedMessageHasBits_NestedMessage>(NULL);
  6467. }
  6468. TestNestedMessageHasBits_NestedMessage* New(::google::protobuf::Arena* arena) const final {
  6469. return CreateMaybeMessage<TestNestedMessageHasBits_NestedMessage>(arena);
  6470. }
  6471. void CopyFrom(const ::google::protobuf::Message& from) final;
  6472. void MergeFrom(const ::google::protobuf::Message& from) final;
  6473. void CopyFrom(const TestNestedMessageHasBits_NestedMessage& from);
  6474. void MergeFrom(const TestNestedMessageHasBits_NestedMessage& from);
  6475. void Clear() final;
  6476. bool IsInitialized() const final;
  6477. size_t ByteSizeLong() const final;
  6478. bool MergePartialFromCodedStream(
  6479. ::google::protobuf::io::CodedInputStream* input) final;
  6480. void SerializeWithCachedSizes(
  6481. ::google::protobuf::io::CodedOutputStream* output) const final;
  6482. ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
  6483. bool deterministic, ::google::protobuf::uint8* target) const final;
  6484. int GetCachedSize() const final { return _cached_size_.Get(); }
  6485. private:
  6486. void SharedCtor();
  6487. void SharedDtor();
  6488. void SetCachedSize(int size) const final;
  6489. void InternalSwap(TestNestedMessageHasBits_NestedMessage* other);
  6490. protected:
  6491. explicit TestNestedMessageHasBits_NestedMessage(::google::protobuf::Arena* arena);
  6492. private:
  6493. static void ArenaDtor(void* object);
  6494. inline void RegisterArenaDtor(::google::protobuf::Arena* arena);
  6495. private:
  6496. inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
  6497. return _internal_metadata_.arena();
  6498. }
  6499. inline void* MaybeArenaPtr() const {
  6500. return _internal_metadata_.raw_arena_ptr();
  6501. }
  6502. public:
  6503. ::google::protobuf::Metadata GetMetadata() const final;
  6504. // nested types ----------------------------------------------------
  6505. // accessors -------------------------------------------------------
  6506. // repeated int32 nestedmessage_repeated_int32 = 1;
  6507. int nestedmessage_repeated_int32_size() const;
  6508. void clear_nestedmessage_repeated_int32();
  6509. static const int kNestedmessageRepeatedInt32FieldNumber = 1;
  6510. ::google::protobuf::int32 nestedmessage_repeated_int32(int index) const;
  6511. void set_nestedmessage_repeated_int32(int index, ::google::protobuf::int32 value);
  6512. void add_nestedmessage_repeated_int32(::google::protobuf::int32 value);
  6513. const ::google::protobuf::RepeatedField< ::google::protobuf::int32 >&
  6514. nestedmessage_repeated_int32() const;
  6515. ::google::protobuf::RepeatedField< ::google::protobuf::int32 >*
  6516. mutable_nestedmessage_repeated_int32();
  6517. // repeated .protobuf_unittest.ForeignMessage nestedmessage_repeated_foreignmessage = 2;
  6518. int nestedmessage_repeated_foreignmessage_size() const;
  6519. void clear_nestedmessage_repeated_foreignmessage();
  6520. static const int kNestedmessageRepeatedForeignmessageFieldNumber = 2;
  6521. ::protobuf_unittest::ForeignMessage* mutable_nestedmessage_repeated_foreignmessage(int index);
  6522. ::google::protobuf::RepeatedPtrField< ::protobuf_unittest::ForeignMessage >*
  6523. mutable_nestedmessage_repeated_foreignmessage();
  6524. const ::protobuf_unittest::ForeignMessage& nestedmessage_repeated_foreignmessage(int index) const;
  6525. ::protobuf_unittest::ForeignMessage* add_nestedmessage_repeated_foreignmessage();
  6526. const ::google::protobuf::RepeatedPtrField< ::protobuf_unittest::ForeignMessage >&
  6527. nestedmessage_repeated_foreignmessage() const;
  6528. // @@protoc_insertion_point(class_scope:protobuf_unittest.TestNestedMessageHasBits.NestedMessage)
  6529. private:
  6530. ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
  6531. template <typename T> friend class ::google::protobuf::Arena::InternalHelper;
  6532. typedef void InternalArenaConstructable_;
  6533. typedef void DestructorSkippable_;
  6534. ::google::protobuf::internal::HasBits<1> _has_bits_;
  6535. mutable ::google::protobuf::internal::CachedSize _cached_size_;
  6536. ::google::protobuf::RepeatedField< ::google::protobuf::int32 > nestedmessage_repeated_int32_;
  6537. ::google::protobuf::RepeatedPtrField< ::protobuf_unittest::ForeignMessage > nestedmessage_repeated_foreignmessage_;
  6538. friend struct ::protobuf_google_2fprotobuf_2funittest_2eproto::TableStruct;
  6539. };
  6540. // -------------------------------------------------------------------
  6541. class TestNestedMessageHasBits : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:protobuf_unittest.TestNestedMessageHasBits) */ {
  6542. public:
  6543. TestNestedMessageHasBits();
  6544. virtual ~TestNestedMessageHasBits();
  6545. TestNestedMessageHasBits(const TestNestedMessageHasBits& from);
  6546. inline TestNestedMessageHasBits& operator=(const TestNestedMessageHasBits& from) {
  6547. CopyFrom(from);
  6548. return *this;
  6549. }
  6550. #if LANG_CXX11
  6551. TestNestedMessageHasBits(TestNestedMessageHasBits&& from) noexcept
  6552. : TestNestedMessageHasBits() {
  6553. *this = ::std::move(from);
  6554. }
  6555. inline TestNestedMessageHasBits& operator=(TestNestedMessageHasBits&& from) noexcept {
  6556. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  6557. if (this != &from) InternalSwap(&from);
  6558. } else {
  6559. CopyFrom(from);
  6560. }
  6561. return *this;
  6562. }
  6563. #endif
  6564. inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
  6565. return _internal_metadata_.unknown_fields();
  6566. }
  6567. inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
  6568. return _internal_metadata_.mutable_unknown_fields();
  6569. }
  6570. inline ::google::protobuf::Arena* GetArena() const final {
  6571. return GetArenaNoVirtual();
  6572. }
  6573. inline void* GetMaybeArenaPointer() const final {
  6574. return MaybeArenaPtr();
  6575. }
  6576. static const ::google::protobuf::Descriptor* descriptor();
  6577. static const TestNestedMessageHasBits& default_instance();
  6578. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  6579. static inline const TestNestedMessageHasBits* internal_default_instance() {
  6580. return reinterpret_cast<const TestNestedMessageHasBits*>(
  6581. &_TestNestedMessageHasBits_default_instance_);
  6582. }
  6583. static constexpr int kIndexInFileMessages =
  6584. 39;
  6585. void UnsafeArenaSwap(TestNestedMessageHasBits* other);
  6586. void Swap(TestNestedMessageHasBits* other);
  6587. friend void swap(TestNestedMessageHasBits& a, TestNestedMessageHasBits& b) {
  6588. a.Swap(&b);
  6589. }
  6590. // implements Message ----------------------------------------------
  6591. inline TestNestedMessageHasBits* New() const final {
  6592. return CreateMaybeMessage<TestNestedMessageHasBits>(NULL);
  6593. }
  6594. TestNestedMessageHasBits* New(::google::protobuf::Arena* arena) const final {
  6595. return CreateMaybeMessage<TestNestedMessageHasBits>(arena);
  6596. }
  6597. void CopyFrom(const ::google::protobuf::Message& from) final;
  6598. void MergeFrom(const ::google::protobuf::Message& from) final;
  6599. void CopyFrom(const TestNestedMessageHasBits& from);
  6600. void MergeFrom(const TestNestedMessageHasBits& from);
  6601. void Clear() final;
  6602. bool IsInitialized() const final;
  6603. size_t ByteSizeLong() const final;
  6604. bool MergePartialFromCodedStream(
  6605. ::google::protobuf::io::CodedInputStream* input) final;
  6606. void SerializeWithCachedSizes(
  6607. ::google::protobuf::io::CodedOutputStream* output) const final;
  6608. ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
  6609. bool deterministic, ::google::protobuf::uint8* target) const final;
  6610. int GetCachedSize() const final { return _cached_size_.Get(); }
  6611. private:
  6612. void SharedCtor();
  6613. void SharedDtor();
  6614. void SetCachedSize(int size) const final;
  6615. void InternalSwap(TestNestedMessageHasBits* other);
  6616. protected:
  6617. explicit TestNestedMessageHasBits(::google::protobuf::Arena* arena);
  6618. private:
  6619. static void ArenaDtor(void* object);
  6620. inline void RegisterArenaDtor(::google::protobuf::Arena* arena);
  6621. private:
  6622. inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
  6623. return _internal_metadata_.arena();
  6624. }
  6625. inline void* MaybeArenaPtr() const {
  6626. return _internal_metadata_.raw_arena_ptr();
  6627. }
  6628. public:
  6629. ::google::protobuf::Metadata GetMetadata() const final;
  6630. // nested types ----------------------------------------------------
  6631. typedef TestNestedMessageHasBits_NestedMessage NestedMessage;
  6632. // accessors -------------------------------------------------------
  6633. // optional .protobuf_unittest.TestNestedMessageHasBits.NestedMessage optional_nested_message = 1;
  6634. bool has_optional_nested_message() const;
  6635. void clear_optional_nested_message();
  6636. static const int kOptionalNestedMessageFieldNumber = 1;
  6637. private:
  6638. const ::protobuf_unittest::TestNestedMessageHasBits_NestedMessage& _internal_optional_nested_message() const;
  6639. public:
  6640. const ::protobuf_unittest::TestNestedMessageHasBits_NestedMessage& optional_nested_message() const;
  6641. ::protobuf_unittest::TestNestedMessageHasBits_NestedMessage* release_optional_nested_message();
  6642. ::protobuf_unittest::TestNestedMessageHasBits_NestedMessage* mutable_optional_nested_message();
  6643. void set_allocated_optional_nested_message(::protobuf_unittest::TestNestedMessageHasBits_NestedMessage* optional_nested_message);
  6644. void unsafe_arena_set_allocated_optional_nested_message(
  6645. ::protobuf_unittest::TestNestedMessageHasBits_NestedMessage* optional_nested_message);
  6646. ::protobuf_unittest::TestNestedMessageHasBits_NestedMessage* unsafe_arena_release_optional_nested_message();
  6647. // @@protoc_insertion_point(class_scope:protobuf_unittest.TestNestedMessageHasBits)
  6648. private:
  6649. void set_has_optional_nested_message();
  6650. void clear_has_optional_nested_message();
  6651. ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
  6652. template <typename T> friend class ::google::protobuf::Arena::InternalHelper;
  6653. typedef void InternalArenaConstructable_;
  6654. typedef void DestructorSkippable_;
  6655. ::google::protobuf::internal::HasBits<1> _has_bits_;
  6656. mutable ::google::protobuf::internal::CachedSize _cached_size_;
  6657. ::protobuf_unittest::TestNestedMessageHasBits_NestedMessage* optional_nested_message_;
  6658. friend struct ::protobuf_google_2fprotobuf_2funittest_2eproto::TableStruct;
  6659. };
  6660. // -------------------------------------------------------------------
  6661. class TestCamelCaseFieldNames : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:protobuf_unittest.TestCamelCaseFieldNames) */ {
  6662. public:
  6663. TestCamelCaseFieldNames();
  6664. virtual ~TestCamelCaseFieldNames();
  6665. TestCamelCaseFieldNames(const TestCamelCaseFieldNames& from);
  6666. inline TestCamelCaseFieldNames& operator=(const TestCamelCaseFieldNames& from) {
  6667. CopyFrom(from);
  6668. return *this;
  6669. }
  6670. #if LANG_CXX11
  6671. TestCamelCaseFieldNames(TestCamelCaseFieldNames&& from) noexcept
  6672. : TestCamelCaseFieldNames() {
  6673. *this = ::std::move(from);
  6674. }
  6675. inline TestCamelCaseFieldNames& operator=(TestCamelCaseFieldNames&& from) noexcept {
  6676. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  6677. if (this != &from) InternalSwap(&from);
  6678. } else {
  6679. CopyFrom(from);
  6680. }
  6681. return *this;
  6682. }
  6683. #endif
  6684. inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
  6685. return _internal_metadata_.unknown_fields();
  6686. }
  6687. inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
  6688. return _internal_metadata_.mutable_unknown_fields();
  6689. }
  6690. inline ::google::protobuf::Arena* GetArena() const final {
  6691. return GetArenaNoVirtual();
  6692. }
  6693. inline void* GetMaybeArenaPointer() const final {
  6694. return MaybeArenaPtr();
  6695. }
  6696. static const ::google::protobuf::Descriptor* descriptor();
  6697. static const TestCamelCaseFieldNames& default_instance();
  6698. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  6699. static inline const TestCamelCaseFieldNames* internal_default_instance() {
  6700. return reinterpret_cast<const TestCamelCaseFieldNames*>(
  6701. &_TestCamelCaseFieldNames_default_instance_);
  6702. }
  6703. static constexpr int kIndexInFileMessages =
  6704. 40;
  6705. void UnsafeArenaSwap(TestCamelCaseFieldNames* other);
  6706. void Swap(TestCamelCaseFieldNames* other);
  6707. friend void swap(TestCamelCaseFieldNames& a, TestCamelCaseFieldNames& b) {
  6708. a.Swap(&b);
  6709. }
  6710. // implements Message ----------------------------------------------
  6711. inline TestCamelCaseFieldNames* New() const final {
  6712. return CreateMaybeMessage<TestCamelCaseFieldNames>(NULL);
  6713. }
  6714. TestCamelCaseFieldNames* New(::google::protobuf::Arena* arena) const final {
  6715. return CreateMaybeMessage<TestCamelCaseFieldNames>(arena);
  6716. }
  6717. void CopyFrom(const ::google::protobuf::Message& from) final;
  6718. void MergeFrom(const ::google::protobuf::Message& from) final;
  6719. void CopyFrom(const TestCamelCaseFieldNames& from);
  6720. void MergeFrom(const TestCamelCaseFieldNames& from);
  6721. void Clear() final;
  6722. bool IsInitialized() const final;
  6723. size_t ByteSizeLong() const final;
  6724. bool MergePartialFromCodedStream(
  6725. ::google::protobuf::io::CodedInputStream* input) final;
  6726. void SerializeWithCachedSizes(
  6727. ::google::protobuf::io::CodedOutputStream* output) const final;
  6728. ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
  6729. bool deterministic, ::google::protobuf::uint8* target) const final;
  6730. int GetCachedSize() const final { return _cached_size_.Get(); }
  6731. private:
  6732. void SharedCtor();
  6733. void SharedDtor();
  6734. void SetCachedSize(int size) const final;
  6735. void InternalSwap(TestCamelCaseFieldNames* other);
  6736. protected:
  6737. explicit TestCamelCaseFieldNames(::google::protobuf::Arena* arena);
  6738. private:
  6739. static void ArenaDtor(void* object);
  6740. inline void RegisterArenaDtor(::google::protobuf::Arena* arena);
  6741. private:
  6742. inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
  6743. return _internal_metadata_.arena();
  6744. }
  6745. inline void* MaybeArenaPtr() const {
  6746. return _internal_metadata_.raw_arena_ptr();
  6747. }
  6748. public:
  6749. ::google::protobuf::Metadata GetMetadata() const final;
  6750. // nested types ----------------------------------------------------
  6751. // accessors -------------------------------------------------------
  6752. // repeated int32 RepeatedPrimitiveField = 7;
  6753. int repeatedprimitivefield_size() const;
  6754. void clear_repeatedprimitivefield();
  6755. static const int kRepeatedPrimitiveFieldFieldNumber = 7;
  6756. ::google::protobuf::int32 repeatedprimitivefield(int index) const;
  6757. void set_repeatedprimitivefield(int index, ::google::protobuf::int32 value);
  6758. void add_repeatedprimitivefield(::google::protobuf::int32 value);
  6759. const ::google::protobuf::RepeatedField< ::google::protobuf::int32 >&
  6760. repeatedprimitivefield() const;
  6761. ::google::protobuf::RepeatedField< ::google::protobuf::int32 >*
  6762. mutable_repeatedprimitivefield();
  6763. // repeated string RepeatedStringField = 8;
  6764. int repeatedstringfield_size() const;
  6765. void clear_repeatedstringfield();
  6766. static const int kRepeatedStringFieldFieldNumber = 8;
  6767. const ::std::string& repeatedstringfield(int index) const;
  6768. ::std::string* mutable_repeatedstringfield(int index);
  6769. void set_repeatedstringfield(int index, const ::std::string& value);
  6770. #if LANG_CXX11
  6771. void set_repeatedstringfield(int index, ::std::string&& value);
  6772. #endif
  6773. void set_repeatedstringfield(int index, const char* value);
  6774. void set_repeatedstringfield(int index, const char* value, size_t size);
  6775. ::std::string* add_repeatedstringfield();
  6776. void add_repeatedstringfield(const ::std::string& value);
  6777. #if LANG_CXX11
  6778. void add_repeatedstringfield(::std::string&& value);
  6779. #endif
  6780. void add_repeatedstringfield(const char* value);
  6781. void add_repeatedstringfield(const char* value, size_t size);
  6782. const ::google::protobuf::RepeatedPtrField< ::std::string>& repeatedstringfield() const;
  6783. ::google::protobuf::RepeatedPtrField< ::std::string>* mutable_repeatedstringfield();
  6784. // repeated .protobuf_unittest.ForeignEnum RepeatedEnumField = 9;
  6785. int repeatedenumfield_size() const;
  6786. void clear_repeatedenumfield();
  6787. static const int kRepeatedEnumFieldFieldNumber = 9;
  6788. ::protobuf_unittest::ForeignEnum repeatedenumfield(int index) const;
  6789. void set_repeatedenumfield(int index, ::protobuf_unittest::ForeignEnum value);
  6790. void add_repeatedenumfield(::protobuf_unittest::ForeignEnum value);
  6791. const ::google::protobuf::RepeatedField<int>& repeatedenumfield() const;
  6792. ::google::protobuf::RepeatedField<int>* mutable_repeatedenumfield();
  6793. // repeated .protobuf_unittest.ForeignMessage RepeatedMessageField = 10;
  6794. int repeatedmessagefield_size() const;
  6795. void clear_repeatedmessagefield();
  6796. static const int kRepeatedMessageFieldFieldNumber = 10;
  6797. ::protobuf_unittest::ForeignMessage* mutable_repeatedmessagefield(int index);
  6798. ::google::protobuf::RepeatedPtrField< ::protobuf_unittest::ForeignMessage >*
  6799. mutable_repeatedmessagefield();
  6800. const ::protobuf_unittest::ForeignMessage& repeatedmessagefield(int index) const;
  6801. ::protobuf_unittest::ForeignMessage* add_repeatedmessagefield();
  6802. const ::google::protobuf::RepeatedPtrField< ::protobuf_unittest::ForeignMessage >&
  6803. repeatedmessagefield() const;
  6804. // repeated string RepeatedStringPieceField = 11 [ctype = STRING_PIECE];
  6805. int repeatedstringpiecefield_size() const;
  6806. void clear_repeatedstringpiecefield();
  6807. static const int kRepeatedStringPieceFieldFieldNumber = 11;
  6808. private:
  6809. // Hidden due to unknown ctype option.
  6810. const ::std::string& repeatedstringpiecefield(int index) const;
  6811. ::std::string* mutable_repeatedstringpiecefield(int index);
  6812. void set_repeatedstringpiecefield(int index, const ::std::string& value);
  6813. #if LANG_CXX11
  6814. void set_repeatedstringpiecefield(int index, ::std::string&& value);
  6815. #endif
  6816. void set_repeatedstringpiecefield(int index, const char* value);
  6817. void set_repeatedstringpiecefield(int index, const char* value, size_t size);
  6818. ::std::string* add_repeatedstringpiecefield();
  6819. void add_repeatedstringpiecefield(const ::std::string& value);
  6820. #if LANG_CXX11
  6821. void add_repeatedstringpiecefield(::std::string&& value);
  6822. #endif
  6823. void add_repeatedstringpiecefield(const char* value);
  6824. void add_repeatedstringpiecefield(const char* value, size_t size);
  6825. const ::google::protobuf::RepeatedPtrField< ::std::string>& repeatedstringpiecefield() const;
  6826. ::google::protobuf::RepeatedPtrField< ::std::string>* mutable_repeatedstringpiecefield();
  6827. public:
  6828. // repeated string RepeatedCordField = 12 [ctype = CORD];
  6829. int repeatedcordfield_size() const;
  6830. void clear_repeatedcordfield();
  6831. static const int kRepeatedCordFieldFieldNumber = 12;
  6832. private:
  6833. // Hidden due to unknown ctype option.
  6834. const ::std::string& repeatedcordfield(int index) const;
  6835. ::std::string* mutable_repeatedcordfield(int index);
  6836. void set_repeatedcordfield(int index, const ::std::string& value);
  6837. #if LANG_CXX11
  6838. void set_repeatedcordfield(int index, ::std::string&& value);
  6839. #endif
  6840. void set_repeatedcordfield(int index, const char* value);
  6841. void set_repeatedcordfield(int index, const char* value, size_t size);
  6842. ::std::string* add_repeatedcordfield();
  6843. void add_repeatedcordfield(const ::std::string& value);
  6844. #if LANG_CXX11
  6845. void add_repeatedcordfield(::std::string&& value);
  6846. #endif
  6847. void add_repeatedcordfield(const char* value);
  6848. void add_repeatedcordfield(const char* value, size_t size);
  6849. const ::google::protobuf::RepeatedPtrField< ::std::string>& repeatedcordfield() const;
  6850. ::google::protobuf::RepeatedPtrField< ::std::string>* mutable_repeatedcordfield();
  6851. public:
  6852. // optional string StringField = 2;
  6853. bool has_stringfield() const;
  6854. void clear_stringfield();
  6855. static const int kStringFieldFieldNumber = 2;
  6856. const ::std::string& stringfield() const;
  6857. void set_stringfield(const ::std::string& value);
  6858. #if LANG_CXX11
  6859. void set_stringfield(::std::string&& value);
  6860. #endif
  6861. void set_stringfield(const char* value);
  6862. void set_stringfield(const char* value, size_t size);
  6863. ::std::string* mutable_stringfield();
  6864. ::std::string* release_stringfield();
  6865. void set_allocated_stringfield(::std::string* stringfield);
  6866. PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
  6867. " string fields are deprecated and will be removed in a"
  6868. " future release.")
  6869. ::std::string* unsafe_arena_release_stringfield();
  6870. PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
  6871. " string fields are deprecated and will be removed in a"
  6872. " future release.")
  6873. void unsafe_arena_set_allocated_stringfield(
  6874. ::std::string* stringfield);
  6875. // optional string StringPieceField = 5 [ctype = STRING_PIECE];
  6876. bool has_stringpiecefield() const;
  6877. void clear_stringpiecefield();
  6878. static const int kStringPieceFieldFieldNumber = 5;
  6879. private:
  6880. // Hidden due to unknown ctype option.
  6881. const ::std::string& stringpiecefield() const;
  6882. void set_stringpiecefield(const ::std::string& value);
  6883. #if LANG_CXX11
  6884. void set_stringpiecefield(::std::string&& value);
  6885. #endif
  6886. void set_stringpiecefield(const char* value);
  6887. void set_stringpiecefield(const char* value, size_t size);
  6888. ::std::string* mutable_stringpiecefield();
  6889. ::std::string* release_stringpiecefield();
  6890. void set_allocated_stringpiecefield(::std::string* stringpiecefield);
  6891. PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
  6892. " string fields are deprecated and will be removed in a"
  6893. " future release.")
  6894. ::std::string* unsafe_arena_release_stringpiecefield();
  6895. PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
  6896. " string fields are deprecated and will be removed in a"
  6897. " future release.")
  6898. void unsafe_arena_set_allocated_stringpiecefield(
  6899. ::std::string* stringpiecefield);
  6900. public:
  6901. // optional string CordField = 6 [ctype = CORD];
  6902. bool has_cordfield() const;
  6903. void clear_cordfield();
  6904. static const int kCordFieldFieldNumber = 6;
  6905. private:
  6906. // Hidden due to unknown ctype option.
  6907. const ::std::string& cordfield() const;
  6908. void set_cordfield(const ::std::string& value);
  6909. #if LANG_CXX11
  6910. void set_cordfield(::std::string&& value);
  6911. #endif
  6912. void set_cordfield(const char* value);
  6913. void set_cordfield(const char* value, size_t size);
  6914. ::std::string* mutable_cordfield();
  6915. ::std::string* release_cordfield();
  6916. void set_allocated_cordfield(::std::string* cordfield);
  6917. PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
  6918. " string fields are deprecated and will be removed in a"
  6919. " future release.")
  6920. ::std::string* unsafe_arena_release_cordfield();
  6921. PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
  6922. " string fields are deprecated and will be removed in a"
  6923. " future release.")
  6924. void unsafe_arena_set_allocated_cordfield(
  6925. ::std::string* cordfield);
  6926. public:
  6927. // optional .protobuf_unittest.ForeignMessage MessageField = 4;
  6928. bool has_messagefield() const;
  6929. void clear_messagefield();
  6930. static const int kMessageFieldFieldNumber = 4;
  6931. private:
  6932. const ::protobuf_unittest::ForeignMessage& _internal_messagefield() const;
  6933. public:
  6934. const ::protobuf_unittest::ForeignMessage& messagefield() const;
  6935. ::protobuf_unittest::ForeignMessage* release_messagefield();
  6936. ::protobuf_unittest::ForeignMessage* mutable_messagefield();
  6937. void set_allocated_messagefield(::protobuf_unittest::ForeignMessage* messagefield);
  6938. void unsafe_arena_set_allocated_messagefield(
  6939. ::protobuf_unittest::ForeignMessage* messagefield);
  6940. ::protobuf_unittest::ForeignMessage* unsafe_arena_release_messagefield();
  6941. // optional int32 PrimitiveField = 1;
  6942. bool has_primitivefield() const;
  6943. void clear_primitivefield();
  6944. static const int kPrimitiveFieldFieldNumber = 1;
  6945. ::google::protobuf::int32 primitivefield() const;
  6946. void set_primitivefield(::google::protobuf::int32 value);
  6947. // optional .protobuf_unittest.ForeignEnum EnumField = 3;
  6948. bool has_enumfield() const;
  6949. void clear_enumfield();
  6950. static const int kEnumFieldFieldNumber = 3;
  6951. ::protobuf_unittest::ForeignEnum enumfield() const;
  6952. void set_enumfield(::protobuf_unittest::ForeignEnum value);
  6953. // @@protoc_insertion_point(class_scope:protobuf_unittest.TestCamelCaseFieldNames)
  6954. private:
  6955. void set_has_primitivefield();
  6956. void clear_has_primitivefield();
  6957. void set_has_stringfield();
  6958. void clear_has_stringfield();
  6959. void set_has_enumfield();
  6960. void clear_has_enumfield();
  6961. void set_has_messagefield();
  6962. void clear_has_messagefield();
  6963. void set_has_stringpiecefield();
  6964. void clear_has_stringpiecefield();
  6965. void set_has_cordfield();
  6966. void clear_has_cordfield();
  6967. ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
  6968. template <typename T> friend class ::google::protobuf::Arena::InternalHelper;
  6969. typedef void InternalArenaConstructable_;
  6970. typedef void DestructorSkippable_;
  6971. ::google::protobuf::internal::HasBits<1> _has_bits_;
  6972. mutable ::google::protobuf::internal::CachedSize _cached_size_;
  6973. ::google::protobuf::RepeatedField< ::google::protobuf::int32 > repeatedprimitivefield_;
  6974. ::google::protobuf::RepeatedPtrField< ::std::string> repeatedstringfield_;
  6975. ::google::protobuf::RepeatedField<int> repeatedenumfield_;
  6976. ::google::protobuf::RepeatedPtrField< ::protobuf_unittest::ForeignMessage > repeatedmessagefield_;
  6977. ::google::protobuf::RepeatedPtrField< ::std::string> repeatedstringpiecefield_;
  6978. ::google::protobuf::RepeatedPtrField< ::std::string> repeatedcordfield_;
  6979. ::google::protobuf::internal::ArenaStringPtr stringfield_;
  6980. ::google::protobuf::internal::ArenaStringPtr stringpiecefield_;
  6981. ::google::protobuf::internal::ArenaStringPtr cordfield_;
  6982. ::protobuf_unittest::ForeignMessage* messagefield_;
  6983. ::google::protobuf::int32 primitivefield_;
  6984. int enumfield_;
  6985. friend struct ::protobuf_google_2fprotobuf_2funittest_2eproto::TableStruct;
  6986. };
  6987. // -------------------------------------------------------------------
  6988. class TestFieldOrderings_NestedMessage : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:protobuf_unittest.TestFieldOrderings.NestedMessage) */ {
  6989. public:
  6990. TestFieldOrderings_NestedMessage();
  6991. virtual ~TestFieldOrderings_NestedMessage();
  6992. TestFieldOrderings_NestedMessage(const TestFieldOrderings_NestedMessage& from);
  6993. inline TestFieldOrderings_NestedMessage& operator=(const TestFieldOrderings_NestedMessage& from) {
  6994. CopyFrom(from);
  6995. return *this;
  6996. }
  6997. #if LANG_CXX11
  6998. TestFieldOrderings_NestedMessage(TestFieldOrderings_NestedMessage&& from) noexcept
  6999. : TestFieldOrderings_NestedMessage() {
  7000. *this = ::std::move(from);
  7001. }
  7002. inline TestFieldOrderings_NestedMessage& operator=(TestFieldOrderings_NestedMessage&& from) noexcept {
  7003. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  7004. if (this != &from) InternalSwap(&from);
  7005. } else {
  7006. CopyFrom(from);
  7007. }
  7008. return *this;
  7009. }
  7010. #endif
  7011. inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
  7012. return _internal_metadata_.unknown_fields();
  7013. }
  7014. inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
  7015. return _internal_metadata_.mutable_unknown_fields();
  7016. }
  7017. inline ::google::protobuf::Arena* GetArena() const final {
  7018. return GetArenaNoVirtual();
  7019. }
  7020. inline void* GetMaybeArenaPointer() const final {
  7021. return MaybeArenaPtr();
  7022. }
  7023. static const ::google::protobuf::Descriptor* descriptor();
  7024. static const TestFieldOrderings_NestedMessage& default_instance();
  7025. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  7026. static inline const TestFieldOrderings_NestedMessage* internal_default_instance() {
  7027. return reinterpret_cast<const TestFieldOrderings_NestedMessage*>(
  7028. &_TestFieldOrderings_NestedMessage_default_instance_);
  7029. }
  7030. static constexpr int kIndexInFileMessages =
  7031. 41;
  7032. void UnsafeArenaSwap(TestFieldOrderings_NestedMessage* other);
  7033. void Swap(TestFieldOrderings_NestedMessage* other);
  7034. friend void swap(TestFieldOrderings_NestedMessage& a, TestFieldOrderings_NestedMessage& b) {
  7035. a.Swap(&b);
  7036. }
  7037. // implements Message ----------------------------------------------
  7038. inline TestFieldOrderings_NestedMessage* New() const final {
  7039. return CreateMaybeMessage<TestFieldOrderings_NestedMessage>(NULL);
  7040. }
  7041. TestFieldOrderings_NestedMessage* New(::google::protobuf::Arena* arena) const final {
  7042. return CreateMaybeMessage<TestFieldOrderings_NestedMessage>(arena);
  7043. }
  7044. void CopyFrom(const ::google::protobuf::Message& from) final;
  7045. void MergeFrom(const ::google::protobuf::Message& from) final;
  7046. void CopyFrom(const TestFieldOrderings_NestedMessage& from);
  7047. void MergeFrom(const TestFieldOrderings_NestedMessage& from);
  7048. void Clear() final;
  7049. bool IsInitialized() const final;
  7050. size_t ByteSizeLong() const final;
  7051. bool MergePartialFromCodedStream(
  7052. ::google::protobuf::io::CodedInputStream* input) final;
  7053. void SerializeWithCachedSizes(
  7054. ::google::protobuf::io::CodedOutputStream* output) const final;
  7055. ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
  7056. bool deterministic, ::google::protobuf::uint8* target) const final;
  7057. int GetCachedSize() const final { return _cached_size_.Get(); }
  7058. private:
  7059. void SharedCtor();
  7060. void SharedDtor();
  7061. void SetCachedSize(int size) const final;
  7062. void InternalSwap(TestFieldOrderings_NestedMessage* other);
  7063. protected:
  7064. explicit TestFieldOrderings_NestedMessage(::google::protobuf::Arena* arena);
  7065. private:
  7066. static void ArenaDtor(void* object);
  7067. inline void RegisterArenaDtor(::google::protobuf::Arena* arena);
  7068. private:
  7069. inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
  7070. return _internal_metadata_.arena();
  7071. }
  7072. inline void* MaybeArenaPtr() const {
  7073. return _internal_metadata_.raw_arena_ptr();
  7074. }
  7075. public:
  7076. ::google::protobuf::Metadata GetMetadata() const final;
  7077. // nested types ----------------------------------------------------
  7078. // accessors -------------------------------------------------------
  7079. // optional int64 oo = 2;
  7080. bool has_oo() const;
  7081. void clear_oo();
  7082. static const int kOoFieldNumber = 2;
  7083. ::google::protobuf::int64 oo() const;
  7084. void set_oo(::google::protobuf::int64 value);
  7085. // optional int32 bb = 1;
  7086. bool has_bb() const;
  7087. void clear_bb();
  7088. static const int kBbFieldNumber = 1;
  7089. ::google::protobuf::int32 bb() const;
  7090. void set_bb(::google::protobuf::int32 value);
  7091. // @@protoc_insertion_point(class_scope:protobuf_unittest.TestFieldOrderings.NestedMessage)
  7092. private:
  7093. void set_has_oo();
  7094. void clear_has_oo();
  7095. void set_has_bb();
  7096. void clear_has_bb();
  7097. ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
  7098. template <typename T> friend class ::google::protobuf::Arena::InternalHelper;
  7099. typedef void InternalArenaConstructable_;
  7100. typedef void DestructorSkippable_;
  7101. ::google::protobuf::internal::HasBits<1> _has_bits_;
  7102. mutable ::google::protobuf::internal::CachedSize _cached_size_;
  7103. ::google::protobuf::int64 oo_;
  7104. ::google::protobuf::int32 bb_;
  7105. friend struct ::protobuf_google_2fprotobuf_2funittest_2eproto::TableStruct;
  7106. };
  7107. // -------------------------------------------------------------------
  7108. class TestFieldOrderings : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:protobuf_unittest.TestFieldOrderings) */ {
  7109. public:
  7110. TestFieldOrderings();
  7111. virtual ~TestFieldOrderings();
  7112. TestFieldOrderings(const TestFieldOrderings& from);
  7113. inline TestFieldOrderings& operator=(const TestFieldOrderings& from) {
  7114. CopyFrom(from);
  7115. return *this;
  7116. }
  7117. #if LANG_CXX11
  7118. TestFieldOrderings(TestFieldOrderings&& from) noexcept
  7119. : TestFieldOrderings() {
  7120. *this = ::std::move(from);
  7121. }
  7122. inline TestFieldOrderings& operator=(TestFieldOrderings&& from) noexcept {
  7123. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  7124. if (this != &from) InternalSwap(&from);
  7125. } else {
  7126. CopyFrom(from);
  7127. }
  7128. return *this;
  7129. }
  7130. #endif
  7131. inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
  7132. return _internal_metadata_.unknown_fields();
  7133. }
  7134. inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
  7135. return _internal_metadata_.mutable_unknown_fields();
  7136. }
  7137. inline ::google::protobuf::Arena* GetArena() const final {
  7138. return GetArenaNoVirtual();
  7139. }
  7140. inline void* GetMaybeArenaPointer() const final {
  7141. return MaybeArenaPtr();
  7142. }
  7143. static const ::google::protobuf::Descriptor* descriptor();
  7144. static const TestFieldOrderings& default_instance();
  7145. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  7146. static inline const TestFieldOrderings* internal_default_instance() {
  7147. return reinterpret_cast<const TestFieldOrderings*>(
  7148. &_TestFieldOrderings_default_instance_);
  7149. }
  7150. static constexpr int kIndexInFileMessages =
  7151. 42;
  7152. void UnsafeArenaSwap(TestFieldOrderings* other);
  7153. void Swap(TestFieldOrderings* other);
  7154. friend void swap(TestFieldOrderings& a, TestFieldOrderings& b) {
  7155. a.Swap(&b);
  7156. }
  7157. // implements Message ----------------------------------------------
  7158. inline TestFieldOrderings* New() const final {
  7159. return CreateMaybeMessage<TestFieldOrderings>(NULL);
  7160. }
  7161. TestFieldOrderings* New(::google::protobuf::Arena* arena) const final {
  7162. return CreateMaybeMessage<TestFieldOrderings>(arena);
  7163. }
  7164. void CopyFrom(const ::google::protobuf::Message& from) final;
  7165. void MergeFrom(const ::google::protobuf::Message& from) final;
  7166. void CopyFrom(const TestFieldOrderings& from);
  7167. void MergeFrom(const TestFieldOrderings& from);
  7168. void Clear() final;
  7169. bool IsInitialized() const final;
  7170. size_t ByteSizeLong() const final;
  7171. bool MergePartialFromCodedStream(
  7172. ::google::protobuf::io::CodedInputStream* input) final;
  7173. void SerializeWithCachedSizes(
  7174. ::google::protobuf::io::CodedOutputStream* output) const final;
  7175. ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
  7176. bool deterministic, ::google::protobuf::uint8* target) const final;
  7177. int GetCachedSize() const final { return _cached_size_.Get(); }
  7178. private:
  7179. void SharedCtor();
  7180. void SharedDtor();
  7181. void SetCachedSize(int size) const final;
  7182. void InternalSwap(TestFieldOrderings* other);
  7183. protected:
  7184. explicit TestFieldOrderings(::google::protobuf::Arena* arena);
  7185. private:
  7186. static void ArenaDtor(void* object);
  7187. inline void RegisterArenaDtor(::google::protobuf::Arena* arena);
  7188. private:
  7189. inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
  7190. return _internal_metadata_.arena();
  7191. }
  7192. inline void* MaybeArenaPtr() const {
  7193. return _internal_metadata_.raw_arena_ptr();
  7194. }
  7195. public:
  7196. ::google::protobuf::Metadata GetMetadata() const final;
  7197. // nested types ----------------------------------------------------
  7198. typedef TestFieldOrderings_NestedMessage NestedMessage;
  7199. // accessors -------------------------------------------------------
  7200. // optional string my_string = 11;
  7201. bool has_my_string() const;
  7202. void clear_my_string();
  7203. static const int kMyStringFieldNumber = 11;
  7204. const ::std::string& my_string() const;
  7205. void set_my_string(const ::std::string& value);
  7206. #if LANG_CXX11
  7207. void set_my_string(::std::string&& value);
  7208. #endif
  7209. void set_my_string(const char* value);
  7210. void set_my_string(const char* value, size_t size);
  7211. ::std::string* mutable_my_string();
  7212. ::std::string* release_my_string();
  7213. void set_allocated_my_string(::std::string* my_string);
  7214. PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
  7215. " string fields are deprecated and will be removed in a"
  7216. " future release.")
  7217. ::std::string* unsafe_arena_release_my_string();
  7218. PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
  7219. " string fields are deprecated and will be removed in a"
  7220. " future release.")
  7221. void unsafe_arena_set_allocated_my_string(
  7222. ::std::string* my_string);
  7223. // optional .protobuf_unittest.TestFieldOrderings.NestedMessage optional_nested_message = 200;
  7224. bool has_optional_nested_message() const;
  7225. void clear_optional_nested_message();
  7226. static const int kOptionalNestedMessageFieldNumber = 200;
  7227. private:
  7228. const ::protobuf_unittest::TestFieldOrderings_NestedMessage& _internal_optional_nested_message() const;
  7229. public:
  7230. const ::protobuf_unittest::TestFieldOrderings_NestedMessage& optional_nested_message() const;
  7231. ::protobuf_unittest::TestFieldOrderings_NestedMessage* release_optional_nested_message();
  7232. ::protobuf_unittest::TestFieldOrderings_NestedMessage* mutable_optional_nested_message();
  7233. void set_allocated_optional_nested_message(::protobuf_unittest::TestFieldOrderings_NestedMessage* optional_nested_message);
  7234. void unsafe_arena_set_allocated_optional_nested_message(
  7235. ::protobuf_unittest::TestFieldOrderings_NestedMessage* optional_nested_message);
  7236. ::protobuf_unittest::TestFieldOrderings_NestedMessage* unsafe_arena_release_optional_nested_message();
  7237. // optional int64 my_int = 1;
  7238. bool has_my_int() const;
  7239. void clear_my_int();
  7240. static const int kMyIntFieldNumber = 1;
  7241. ::google::protobuf::int64 my_int() const;
  7242. void set_my_int(::google::protobuf::int64 value);
  7243. // optional float my_float = 101;
  7244. bool has_my_float() const;
  7245. void clear_my_float();
  7246. static const int kMyFloatFieldNumber = 101;
  7247. float my_float() const;
  7248. void set_my_float(float value);
  7249. GOOGLE_PROTOBUF_EXTENSION_ACCESSORS(TestFieldOrderings)
  7250. // @@protoc_insertion_point(class_scope:protobuf_unittest.TestFieldOrderings)
  7251. private:
  7252. void set_has_my_string();
  7253. void clear_has_my_string();
  7254. void set_has_my_int();
  7255. void clear_has_my_int();
  7256. void set_has_my_float();
  7257. void clear_has_my_float();
  7258. void set_has_optional_nested_message();
  7259. void clear_has_optional_nested_message();
  7260. ::google::protobuf::internal::ExtensionSet _extensions_;
  7261. ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
  7262. template <typename T> friend class ::google::protobuf::Arena::InternalHelper;
  7263. typedef void InternalArenaConstructable_;
  7264. typedef void DestructorSkippable_;
  7265. ::google::protobuf::internal::HasBits<1> _has_bits_;
  7266. mutable ::google::protobuf::internal::CachedSize _cached_size_;
  7267. ::google::protobuf::internal::ArenaStringPtr my_string_;
  7268. ::protobuf_unittest::TestFieldOrderings_NestedMessage* optional_nested_message_;
  7269. ::google::protobuf::int64 my_int_;
  7270. float my_float_;
  7271. friend struct ::protobuf_google_2fprotobuf_2funittest_2eproto::TableStruct;
  7272. };
  7273. // -------------------------------------------------------------------
  7274. class TestExtensionOrderings1 : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:protobuf_unittest.TestExtensionOrderings1) */ {
  7275. public:
  7276. TestExtensionOrderings1();
  7277. virtual ~TestExtensionOrderings1();
  7278. TestExtensionOrderings1(const TestExtensionOrderings1& from);
  7279. inline TestExtensionOrderings1& operator=(const TestExtensionOrderings1& from) {
  7280. CopyFrom(from);
  7281. return *this;
  7282. }
  7283. #if LANG_CXX11
  7284. TestExtensionOrderings1(TestExtensionOrderings1&& from) noexcept
  7285. : TestExtensionOrderings1() {
  7286. *this = ::std::move(from);
  7287. }
  7288. inline TestExtensionOrderings1& operator=(TestExtensionOrderings1&& from) noexcept {
  7289. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  7290. if (this != &from) InternalSwap(&from);
  7291. } else {
  7292. CopyFrom(from);
  7293. }
  7294. return *this;
  7295. }
  7296. #endif
  7297. inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
  7298. return _internal_metadata_.unknown_fields();
  7299. }
  7300. inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
  7301. return _internal_metadata_.mutable_unknown_fields();
  7302. }
  7303. inline ::google::protobuf::Arena* GetArena() const final {
  7304. return GetArenaNoVirtual();
  7305. }
  7306. inline void* GetMaybeArenaPointer() const final {
  7307. return MaybeArenaPtr();
  7308. }
  7309. static const ::google::protobuf::Descriptor* descriptor();
  7310. static const TestExtensionOrderings1& default_instance();
  7311. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  7312. static inline const TestExtensionOrderings1* internal_default_instance() {
  7313. return reinterpret_cast<const TestExtensionOrderings1*>(
  7314. &_TestExtensionOrderings1_default_instance_);
  7315. }
  7316. static constexpr int kIndexInFileMessages =
  7317. 43;
  7318. void UnsafeArenaSwap(TestExtensionOrderings1* other);
  7319. void Swap(TestExtensionOrderings1* other);
  7320. friend void swap(TestExtensionOrderings1& a, TestExtensionOrderings1& b) {
  7321. a.Swap(&b);
  7322. }
  7323. // implements Message ----------------------------------------------
  7324. inline TestExtensionOrderings1* New() const final {
  7325. return CreateMaybeMessage<TestExtensionOrderings1>(NULL);
  7326. }
  7327. TestExtensionOrderings1* New(::google::protobuf::Arena* arena) const final {
  7328. return CreateMaybeMessage<TestExtensionOrderings1>(arena);
  7329. }
  7330. void CopyFrom(const ::google::protobuf::Message& from) final;
  7331. void MergeFrom(const ::google::protobuf::Message& from) final;
  7332. void CopyFrom(const TestExtensionOrderings1& from);
  7333. void MergeFrom(const TestExtensionOrderings1& from);
  7334. void Clear() final;
  7335. bool IsInitialized() const final;
  7336. size_t ByteSizeLong() const final;
  7337. bool MergePartialFromCodedStream(
  7338. ::google::protobuf::io::CodedInputStream* input) final;
  7339. void SerializeWithCachedSizes(
  7340. ::google::protobuf::io::CodedOutputStream* output) const final;
  7341. ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
  7342. bool deterministic, ::google::protobuf::uint8* target) const final;
  7343. int GetCachedSize() const final { return _cached_size_.Get(); }
  7344. private:
  7345. void SharedCtor();
  7346. void SharedDtor();
  7347. void SetCachedSize(int size) const final;
  7348. void InternalSwap(TestExtensionOrderings1* other);
  7349. protected:
  7350. explicit TestExtensionOrderings1(::google::protobuf::Arena* arena);
  7351. private:
  7352. static void ArenaDtor(void* object);
  7353. inline void RegisterArenaDtor(::google::protobuf::Arena* arena);
  7354. private:
  7355. inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
  7356. return _internal_metadata_.arena();
  7357. }
  7358. inline void* MaybeArenaPtr() const {
  7359. return _internal_metadata_.raw_arena_ptr();
  7360. }
  7361. public:
  7362. ::google::protobuf::Metadata GetMetadata() const final;
  7363. // nested types ----------------------------------------------------
  7364. // accessors -------------------------------------------------------
  7365. // optional string my_string = 1;
  7366. bool has_my_string() const;
  7367. void clear_my_string();
  7368. static const int kMyStringFieldNumber = 1;
  7369. const ::std::string& my_string() const;
  7370. void set_my_string(const ::std::string& value);
  7371. #if LANG_CXX11
  7372. void set_my_string(::std::string&& value);
  7373. #endif
  7374. void set_my_string(const char* value);
  7375. void set_my_string(const char* value, size_t size);
  7376. ::std::string* mutable_my_string();
  7377. ::std::string* release_my_string();
  7378. void set_allocated_my_string(::std::string* my_string);
  7379. PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
  7380. " string fields are deprecated and will be removed in a"
  7381. " future release.")
  7382. ::std::string* unsafe_arena_release_my_string();
  7383. PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
  7384. " string fields are deprecated and will be removed in a"
  7385. " future release.")
  7386. void unsafe_arena_set_allocated_my_string(
  7387. ::std::string* my_string);
  7388. static const int kTestExtOrderings1FieldNumber = 13;
  7389. static ::google::protobuf::internal::ExtensionIdentifier< ::protobuf_unittest::TestFieldOrderings,
  7390. ::google::protobuf::internal::MessageTypeTraits< ::protobuf_unittest::TestExtensionOrderings1 >, 11, false >
  7391. test_ext_orderings1;
  7392. // @@protoc_insertion_point(class_scope:protobuf_unittest.TestExtensionOrderings1)
  7393. private:
  7394. void set_has_my_string();
  7395. void clear_has_my_string();
  7396. ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
  7397. template <typename T> friend class ::google::protobuf::Arena::InternalHelper;
  7398. typedef void InternalArenaConstructable_;
  7399. typedef void DestructorSkippable_;
  7400. ::google::protobuf::internal::HasBits<1> _has_bits_;
  7401. mutable ::google::protobuf::internal::CachedSize _cached_size_;
  7402. ::google::protobuf::internal::ArenaStringPtr my_string_;
  7403. friend struct ::protobuf_google_2fprotobuf_2funittest_2eproto::TableStruct;
  7404. };
  7405. // -------------------------------------------------------------------
  7406. class TestExtensionOrderings2_TestExtensionOrderings3 : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:protobuf_unittest.TestExtensionOrderings2.TestExtensionOrderings3) */ {
  7407. public:
  7408. TestExtensionOrderings2_TestExtensionOrderings3();
  7409. virtual ~TestExtensionOrderings2_TestExtensionOrderings3();
  7410. TestExtensionOrderings2_TestExtensionOrderings3(const TestExtensionOrderings2_TestExtensionOrderings3& from);
  7411. inline TestExtensionOrderings2_TestExtensionOrderings3& operator=(const TestExtensionOrderings2_TestExtensionOrderings3& from) {
  7412. CopyFrom(from);
  7413. return *this;
  7414. }
  7415. #if LANG_CXX11
  7416. TestExtensionOrderings2_TestExtensionOrderings3(TestExtensionOrderings2_TestExtensionOrderings3&& from) noexcept
  7417. : TestExtensionOrderings2_TestExtensionOrderings3() {
  7418. *this = ::std::move(from);
  7419. }
  7420. inline TestExtensionOrderings2_TestExtensionOrderings3& operator=(TestExtensionOrderings2_TestExtensionOrderings3&& from) noexcept {
  7421. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  7422. if (this != &from) InternalSwap(&from);
  7423. } else {
  7424. CopyFrom(from);
  7425. }
  7426. return *this;
  7427. }
  7428. #endif
  7429. inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
  7430. return _internal_metadata_.unknown_fields();
  7431. }
  7432. inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
  7433. return _internal_metadata_.mutable_unknown_fields();
  7434. }
  7435. inline ::google::protobuf::Arena* GetArena() const final {
  7436. return GetArenaNoVirtual();
  7437. }
  7438. inline void* GetMaybeArenaPointer() const final {
  7439. return MaybeArenaPtr();
  7440. }
  7441. static const ::google::protobuf::Descriptor* descriptor();
  7442. static const TestExtensionOrderings2_TestExtensionOrderings3& default_instance();
  7443. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  7444. static inline const TestExtensionOrderings2_TestExtensionOrderings3* internal_default_instance() {
  7445. return reinterpret_cast<const TestExtensionOrderings2_TestExtensionOrderings3*>(
  7446. &_TestExtensionOrderings2_TestExtensionOrderings3_default_instance_);
  7447. }
  7448. static constexpr int kIndexInFileMessages =
  7449. 44;
  7450. void UnsafeArenaSwap(TestExtensionOrderings2_TestExtensionOrderings3* other);
  7451. void Swap(TestExtensionOrderings2_TestExtensionOrderings3* other);
  7452. friend void swap(TestExtensionOrderings2_TestExtensionOrderings3& a, TestExtensionOrderings2_TestExtensionOrderings3& b) {
  7453. a.Swap(&b);
  7454. }
  7455. // implements Message ----------------------------------------------
  7456. inline TestExtensionOrderings2_TestExtensionOrderings3* New() const final {
  7457. return CreateMaybeMessage<TestExtensionOrderings2_TestExtensionOrderings3>(NULL);
  7458. }
  7459. TestExtensionOrderings2_TestExtensionOrderings3* New(::google::protobuf::Arena* arena) const final {
  7460. return CreateMaybeMessage<TestExtensionOrderings2_TestExtensionOrderings3>(arena);
  7461. }
  7462. void CopyFrom(const ::google::protobuf::Message& from) final;
  7463. void MergeFrom(const ::google::protobuf::Message& from) final;
  7464. void CopyFrom(const TestExtensionOrderings2_TestExtensionOrderings3& from);
  7465. void MergeFrom(const TestExtensionOrderings2_TestExtensionOrderings3& from);
  7466. void Clear() final;
  7467. bool IsInitialized() const final;
  7468. size_t ByteSizeLong() const final;
  7469. bool MergePartialFromCodedStream(
  7470. ::google::protobuf::io::CodedInputStream* input) final;
  7471. void SerializeWithCachedSizes(
  7472. ::google::protobuf::io::CodedOutputStream* output) const final;
  7473. ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
  7474. bool deterministic, ::google::protobuf::uint8* target) const final;
  7475. int GetCachedSize() const final { return _cached_size_.Get(); }
  7476. private:
  7477. void SharedCtor();
  7478. void SharedDtor();
  7479. void SetCachedSize(int size) const final;
  7480. void InternalSwap(TestExtensionOrderings2_TestExtensionOrderings3* other);
  7481. protected:
  7482. explicit TestExtensionOrderings2_TestExtensionOrderings3(::google::protobuf::Arena* arena);
  7483. private:
  7484. static void ArenaDtor(void* object);
  7485. inline void RegisterArenaDtor(::google::protobuf::Arena* arena);
  7486. private:
  7487. inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
  7488. return _internal_metadata_.arena();
  7489. }
  7490. inline void* MaybeArenaPtr() const {
  7491. return _internal_metadata_.raw_arena_ptr();
  7492. }
  7493. public:
  7494. ::google::protobuf::Metadata GetMetadata() const final;
  7495. // nested types ----------------------------------------------------
  7496. // accessors -------------------------------------------------------
  7497. // optional string my_string = 1;
  7498. bool has_my_string() const;
  7499. void clear_my_string();
  7500. static const int kMyStringFieldNumber = 1;
  7501. const ::std::string& my_string() const;
  7502. void set_my_string(const ::std::string& value);
  7503. #if LANG_CXX11
  7504. void set_my_string(::std::string&& value);
  7505. #endif
  7506. void set_my_string(const char* value);
  7507. void set_my_string(const char* value, size_t size);
  7508. ::std::string* mutable_my_string();
  7509. ::std::string* release_my_string();
  7510. void set_allocated_my_string(::std::string* my_string);
  7511. PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
  7512. " string fields are deprecated and will be removed in a"
  7513. " future release.")
  7514. ::std::string* unsafe_arena_release_my_string();
  7515. PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
  7516. " string fields are deprecated and will be removed in a"
  7517. " future release.")
  7518. void unsafe_arena_set_allocated_my_string(
  7519. ::std::string* my_string);
  7520. static const int kTestExtOrderings3FieldNumber = 14;
  7521. static ::google::protobuf::internal::ExtensionIdentifier< ::protobuf_unittest::TestFieldOrderings,
  7522. ::google::protobuf::internal::MessageTypeTraits< ::protobuf_unittest::TestExtensionOrderings2_TestExtensionOrderings3 >, 11, false >
  7523. test_ext_orderings3;
  7524. // @@protoc_insertion_point(class_scope:protobuf_unittest.TestExtensionOrderings2.TestExtensionOrderings3)
  7525. private:
  7526. void set_has_my_string();
  7527. void clear_has_my_string();
  7528. ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
  7529. template <typename T> friend class ::google::protobuf::Arena::InternalHelper;
  7530. typedef void InternalArenaConstructable_;
  7531. typedef void DestructorSkippable_;
  7532. ::google::protobuf::internal::HasBits<1> _has_bits_;
  7533. mutable ::google::protobuf::internal::CachedSize _cached_size_;
  7534. ::google::protobuf::internal::ArenaStringPtr my_string_;
  7535. friend struct ::protobuf_google_2fprotobuf_2funittest_2eproto::TableStruct;
  7536. };
  7537. // -------------------------------------------------------------------
  7538. class TestExtensionOrderings2 : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:protobuf_unittest.TestExtensionOrderings2) */ {
  7539. public:
  7540. TestExtensionOrderings2();
  7541. virtual ~TestExtensionOrderings2();
  7542. TestExtensionOrderings2(const TestExtensionOrderings2& from);
  7543. inline TestExtensionOrderings2& operator=(const TestExtensionOrderings2& from) {
  7544. CopyFrom(from);
  7545. return *this;
  7546. }
  7547. #if LANG_CXX11
  7548. TestExtensionOrderings2(TestExtensionOrderings2&& from) noexcept
  7549. : TestExtensionOrderings2() {
  7550. *this = ::std::move(from);
  7551. }
  7552. inline TestExtensionOrderings2& operator=(TestExtensionOrderings2&& from) noexcept {
  7553. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  7554. if (this != &from) InternalSwap(&from);
  7555. } else {
  7556. CopyFrom(from);
  7557. }
  7558. return *this;
  7559. }
  7560. #endif
  7561. inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
  7562. return _internal_metadata_.unknown_fields();
  7563. }
  7564. inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
  7565. return _internal_metadata_.mutable_unknown_fields();
  7566. }
  7567. inline ::google::protobuf::Arena* GetArena() const final {
  7568. return GetArenaNoVirtual();
  7569. }
  7570. inline void* GetMaybeArenaPointer() const final {
  7571. return MaybeArenaPtr();
  7572. }
  7573. static const ::google::protobuf::Descriptor* descriptor();
  7574. static const TestExtensionOrderings2& default_instance();
  7575. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  7576. static inline const TestExtensionOrderings2* internal_default_instance() {
  7577. return reinterpret_cast<const TestExtensionOrderings2*>(
  7578. &_TestExtensionOrderings2_default_instance_);
  7579. }
  7580. static constexpr int kIndexInFileMessages =
  7581. 45;
  7582. void UnsafeArenaSwap(TestExtensionOrderings2* other);
  7583. void Swap(TestExtensionOrderings2* other);
  7584. friend void swap(TestExtensionOrderings2& a, TestExtensionOrderings2& b) {
  7585. a.Swap(&b);
  7586. }
  7587. // implements Message ----------------------------------------------
  7588. inline TestExtensionOrderings2* New() const final {
  7589. return CreateMaybeMessage<TestExtensionOrderings2>(NULL);
  7590. }
  7591. TestExtensionOrderings2* New(::google::protobuf::Arena* arena) const final {
  7592. return CreateMaybeMessage<TestExtensionOrderings2>(arena);
  7593. }
  7594. void CopyFrom(const ::google::protobuf::Message& from) final;
  7595. void MergeFrom(const ::google::protobuf::Message& from) final;
  7596. void CopyFrom(const TestExtensionOrderings2& from);
  7597. void MergeFrom(const TestExtensionOrderings2& from);
  7598. void Clear() final;
  7599. bool IsInitialized() const final;
  7600. size_t ByteSizeLong() const final;
  7601. bool MergePartialFromCodedStream(
  7602. ::google::protobuf::io::CodedInputStream* input) final;
  7603. void SerializeWithCachedSizes(
  7604. ::google::protobuf::io::CodedOutputStream* output) const final;
  7605. ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
  7606. bool deterministic, ::google::protobuf::uint8* target) const final;
  7607. int GetCachedSize() const final { return _cached_size_.Get(); }
  7608. private:
  7609. void SharedCtor();
  7610. void SharedDtor();
  7611. void SetCachedSize(int size) const final;
  7612. void InternalSwap(TestExtensionOrderings2* other);
  7613. protected:
  7614. explicit TestExtensionOrderings2(::google::protobuf::Arena* arena);
  7615. private:
  7616. static void ArenaDtor(void* object);
  7617. inline void RegisterArenaDtor(::google::protobuf::Arena* arena);
  7618. private:
  7619. inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
  7620. return _internal_metadata_.arena();
  7621. }
  7622. inline void* MaybeArenaPtr() const {
  7623. return _internal_metadata_.raw_arena_ptr();
  7624. }
  7625. public:
  7626. ::google::protobuf::Metadata GetMetadata() const final;
  7627. // nested types ----------------------------------------------------
  7628. typedef TestExtensionOrderings2_TestExtensionOrderings3 TestExtensionOrderings3;
  7629. // accessors -------------------------------------------------------
  7630. // optional string my_string = 1;
  7631. bool has_my_string() const;
  7632. void clear_my_string();
  7633. static const int kMyStringFieldNumber = 1;
  7634. const ::std::string& my_string() const;
  7635. void set_my_string(const ::std::string& value);
  7636. #if LANG_CXX11
  7637. void set_my_string(::std::string&& value);
  7638. #endif
  7639. void set_my_string(const char* value);
  7640. void set_my_string(const char* value, size_t size);
  7641. ::std::string* mutable_my_string();
  7642. ::std::string* release_my_string();
  7643. void set_allocated_my_string(::std::string* my_string);
  7644. PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
  7645. " string fields are deprecated and will be removed in a"
  7646. " future release.")
  7647. ::std::string* unsafe_arena_release_my_string();
  7648. PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
  7649. " string fields are deprecated and will be removed in a"
  7650. " future release.")
  7651. void unsafe_arena_set_allocated_my_string(
  7652. ::std::string* my_string);
  7653. static const int kTestExtOrderings2FieldNumber = 12;
  7654. static ::google::protobuf::internal::ExtensionIdentifier< ::protobuf_unittest::TestFieldOrderings,
  7655. ::google::protobuf::internal::MessageTypeTraits< ::protobuf_unittest::TestExtensionOrderings2 >, 11, false >
  7656. test_ext_orderings2;
  7657. // @@protoc_insertion_point(class_scope:protobuf_unittest.TestExtensionOrderings2)
  7658. private:
  7659. void set_has_my_string();
  7660. void clear_has_my_string();
  7661. ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
  7662. template <typename T> friend class ::google::protobuf::Arena::InternalHelper;
  7663. typedef void InternalArenaConstructable_;
  7664. typedef void DestructorSkippable_;
  7665. ::google::protobuf::internal::HasBits<1> _has_bits_;
  7666. mutable ::google::protobuf::internal::CachedSize _cached_size_;
  7667. ::google::protobuf::internal::ArenaStringPtr my_string_;
  7668. friend struct ::protobuf_google_2fprotobuf_2funittest_2eproto::TableStruct;
  7669. };
  7670. // -------------------------------------------------------------------
  7671. class TestExtremeDefaultValues : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:protobuf_unittest.TestExtremeDefaultValues) */ {
  7672. public:
  7673. TestExtremeDefaultValues();
  7674. virtual ~TestExtremeDefaultValues();
  7675. TestExtremeDefaultValues(const TestExtremeDefaultValues& from);
  7676. inline TestExtremeDefaultValues& operator=(const TestExtremeDefaultValues& from) {
  7677. CopyFrom(from);
  7678. return *this;
  7679. }
  7680. #if LANG_CXX11
  7681. TestExtremeDefaultValues(TestExtremeDefaultValues&& from) noexcept
  7682. : TestExtremeDefaultValues() {
  7683. *this = ::std::move(from);
  7684. }
  7685. inline TestExtremeDefaultValues& operator=(TestExtremeDefaultValues&& from) noexcept {
  7686. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  7687. if (this != &from) InternalSwap(&from);
  7688. } else {
  7689. CopyFrom(from);
  7690. }
  7691. return *this;
  7692. }
  7693. #endif
  7694. inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
  7695. return _internal_metadata_.unknown_fields();
  7696. }
  7697. inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
  7698. return _internal_metadata_.mutable_unknown_fields();
  7699. }
  7700. inline ::google::protobuf::Arena* GetArena() const final {
  7701. return GetArenaNoVirtual();
  7702. }
  7703. inline void* GetMaybeArenaPointer() const final {
  7704. return MaybeArenaPtr();
  7705. }
  7706. static const ::google::protobuf::Descriptor* descriptor();
  7707. static const TestExtremeDefaultValues& default_instance();
  7708. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  7709. static inline const TestExtremeDefaultValues* internal_default_instance() {
  7710. return reinterpret_cast<const TestExtremeDefaultValues*>(
  7711. &_TestExtremeDefaultValues_default_instance_);
  7712. }
  7713. static constexpr int kIndexInFileMessages =
  7714. 46;
  7715. void UnsafeArenaSwap(TestExtremeDefaultValues* other);
  7716. void Swap(TestExtremeDefaultValues* other);
  7717. friend void swap(TestExtremeDefaultValues& a, TestExtremeDefaultValues& b) {
  7718. a.Swap(&b);
  7719. }
  7720. // implements Message ----------------------------------------------
  7721. inline TestExtremeDefaultValues* New() const final {
  7722. return CreateMaybeMessage<TestExtremeDefaultValues>(NULL);
  7723. }
  7724. TestExtremeDefaultValues* New(::google::protobuf::Arena* arena) const final {
  7725. return CreateMaybeMessage<TestExtremeDefaultValues>(arena);
  7726. }
  7727. void CopyFrom(const ::google::protobuf::Message& from) final;
  7728. void MergeFrom(const ::google::protobuf::Message& from) final;
  7729. void CopyFrom(const TestExtremeDefaultValues& from);
  7730. void MergeFrom(const TestExtremeDefaultValues& from);
  7731. void Clear() final;
  7732. bool IsInitialized() const final;
  7733. size_t ByteSizeLong() const final;
  7734. bool MergePartialFromCodedStream(
  7735. ::google::protobuf::io::CodedInputStream* input) final;
  7736. void SerializeWithCachedSizes(
  7737. ::google::protobuf::io::CodedOutputStream* output) const final;
  7738. ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
  7739. bool deterministic, ::google::protobuf::uint8* target) const final;
  7740. int GetCachedSize() const final { return _cached_size_.Get(); }
  7741. private:
  7742. void SharedCtor();
  7743. void SharedDtor();
  7744. void SetCachedSize(int size) const final;
  7745. void InternalSwap(TestExtremeDefaultValues* other);
  7746. protected:
  7747. explicit TestExtremeDefaultValues(::google::protobuf::Arena* arena);
  7748. private:
  7749. static void ArenaDtor(void* object);
  7750. inline void RegisterArenaDtor(::google::protobuf::Arena* arena);
  7751. private:
  7752. inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
  7753. return _internal_metadata_.arena();
  7754. }
  7755. inline void* MaybeArenaPtr() const {
  7756. return _internal_metadata_.raw_arena_ptr();
  7757. }
  7758. public:
  7759. ::google::protobuf::Metadata GetMetadata() const final;
  7760. // nested types ----------------------------------------------------
  7761. // accessors -------------------------------------------------------
  7762. // optional bytes escaped_bytes = 1 [default = "\000\001\007\010\014\n\r\t\013\\\'\"\376"];
  7763. bool has_escaped_bytes() const;
  7764. void clear_escaped_bytes();
  7765. static const int kEscapedBytesFieldNumber = 1;
  7766. const ::std::string& escaped_bytes() const;
  7767. void set_escaped_bytes(const ::std::string& value);
  7768. #if LANG_CXX11
  7769. void set_escaped_bytes(::std::string&& value);
  7770. #endif
  7771. void set_escaped_bytes(const char* value);
  7772. void set_escaped_bytes(const void* value, size_t size);
  7773. ::std::string* mutable_escaped_bytes();
  7774. ::std::string* release_escaped_bytes();
  7775. void set_allocated_escaped_bytes(::std::string* escaped_bytes);
  7776. PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
  7777. " string fields are deprecated and will be removed in a"
  7778. " future release.")
  7779. ::std::string* unsafe_arena_release_escaped_bytes();
  7780. PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
  7781. " string fields are deprecated and will be removed in a"
  7782. " future release.")
  7783. void unsafe_arena_set_allocated_escaped_bytes(
  7784. ::std::string* escaped_bytes);
  7785. // optional string utf8_string = 6 [default = "\341\210\264"];
  7786. bool has_utf8_string() const;
  7787. void clear_utf8_string();
  7788. static const int kUtf8StringFieldNumber = 6;
  7789. const ::std::string& utf8_string() const;
  7790. void set_utf8_string(const ::std::string& value);
  7791. #if LANG_CXX11
  7792. void set_utf8_string(::std::string&& value);
  7793. #endif
  7794. void set_utf8_string(const char* value);
  7795. void set_utf8_string(const char* value, size_t size);
  7796. ::std::string* mutable_utf8_string();
  7797. ::std::string* release_utf8_string();
  7798. void set_allocated_utf8_string(::std::string* utf8_string);
  7799. PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
  7800. " string fields are deprecated and will be removed in a"
  7801. " future release.")
  7802. ::std::string* unsafe_arena_release_utf8_string();
  7803. PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
  7804. " string fields are deprecated and will be removed in a"
  7805. " future release.")
  7806. void unsafe_arena_set_allocated_utf8_string(
  7807. ::std::string* utf8_string);
  7808. // optional string cpp_trigraph = 20 [default = "? ? ?? ?? ??? ??/ ??-"];
  7809. bool has_cpp_trigraph() const;
  7810. void clear_cpp_trigraph();
  7811. static const int kCppTrigraphFieldNumber = 20;
  7812. const ::std::string& cpp_trigraph() const;
  7813. void set_cpp_trigraph(const ::std::string& value);
  7814. #if LANG_CXX11
  7815. void set_cpp_trigraph(::std::string&& value);
  7816. #endif
  7817. void set_cpp_trigraph(const char* value);
  7818. void set_cpp_trigraph(const char* value, size_t size);
  7819. ::std::string* mutable_cpp_trigraph();
  7820. ::std::string* release_cpp_trigraph();
  7821. void set_allocated_cpp_trigraph(::std::string* cpp_trigraph);
  7822. PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
  7823. " string fields are deprecated and will be removed in a"
  7824. " future release.")
  7825. ::std::string* unsafe_arena_release_cpp_trigraph();
  7826. PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
  7827. " string fields are deprecated and will be removed in a"
  7828. " future release.")
  7829. void unsafe_arena_set_allocated_cpp_trigraph(
  7830. ::std::string* cpp_trigraph);
  7831. // optional string string_with_zero = 23 [default = "hel\000lo"];
  7832. bool has_string_with_zero() const;
  7833. void clear_string_with_zero();
  7834. static const int kStringWithZeroFieldNumber = 23;
  7835. const ::std::string& string_with_zero() const;
  7836. void set_string_with_zero(const ::std::string& value);
  7837. #if LANG_CXX11
  7838. void set_string_with_zero(::std::string&& value);
  7839. #endif
  7840. void set_string_with_zero(const char* value);
  7841. void set_string_with_zero(const char* value, size_t size);
  7842. ::std::string* mutable_string_with_zero();
  7843. ::std::string* release_string_with_zero();
  7844. void set_allocated_string_with_zero(::std::string* string_with_zero);
  7845. PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
  7846. " string fields are deprecated and will be removed in a"
  7847. " future release.")
  7848. ::std::string* unsafe_arena_release_string_with_zero();
  7849. PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
  7850. " string fields are deprecated and will be removed in a"
  7851. " future release.")
  7852. void unsafe_arena_set_allocated_string_with_zero(
  7853. ::std::string* string_with_zero);
  7854. // optional bytes bytes_with_zero = 24 [default = "wor\000ld"];
  7855. bool has_bytes_with_zero() const;
  7856. void clear_bytes_with_zero();
  7857. static const int kBytesWithZeroFieldNumber = 24;
  7858. const ::std::string& bytes_with_zero() const;
  7859. void set_bytes_with_zero(const ::std::string& value);
  7860. #if LANG_CXX11
  7861. void set_bytes_with_zero(::std::string&& value);
  7862. #endif
  7863. void set_bytes_with_zero(const char* value);
  7864. void set_bytes_with_zero(const void* value, size_t size);
  7865. ::std::string* mutable_bytes_with_zero();
  7866. ::std::string* release_bytes_with_zero();
  7867. void set_allocated_bytes_with_zero(::std::string* bytes_with_zero);
  7868. PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
  7869. " string fields are deprecated and will be removed in a"
  7870. " future release.")
  7871. ::std::string* unsafe_arena_release_bytes_with_zero();
  7872. PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
  7873. " string fields are deprecated and will be removed in a"
  7874. " future release.")
  7875. void unsafe_arena_set_allocated_bytes_with_zero(
  7876. ::std::string* bytes_with_zero);
  7877. // optional string string_piece_with_zero = 25 [default = "ab\000c", ctype = STRING_PIECE];
  7878. bool has_string_piece_with_zero() const;
  7879. void clear_string_piece_with_zero();
  7880. static const int kStringPieceWithZeroFieldNumber = 25;
  7881. private:
  7882. // Hidden due to unknown ctype option.
  7883. const ::std::string& string_piece_with_zero() const;
  7884. void set_string_piece_with_zero(const ::std::string& value);
  7885. #if LANG_CXX11
  7886. void set_string_piece_with_zero(::std::string&& value);
  7887. #endif
  7888. void set_string_piece_with_zero(const char* value);
  7889. void set_string_piece_with_zero(const char* value, size_t size);
  7890. ::std::string* mutable_string_piece_with_zero();
  7891. ::std::string* release_string_piece_with_zero();
  7892. void set_allocated_string_piece_with_zero(::std::string* string_piece_with_zero);
  7893. PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
  7894. " string fields are deprecated and will be removed in a"
  7895. " future release.")
  7896. ::std::string* unsafe_arena_release_string_piece_with_zero();
  7897. PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
  7898. " string fields are deprecated and will be removed in a"
  7899. " future release.")
  7900. void unsafe_arena_set_allocated_string_piece_with_zero(
  7901. ::std::string* string_piece_with_zero);
  7902. public:
  7903. // optional string cord_with_zero = 26 [default = "12\0003", ctype = CORD];
  7904. bool has_cord_with_zero() const;
  7905. void clear_cord_with_zero();
  7906. static const int kCordWithZeroFieldNumber = 26;
  7907. private:
  7908. // Hidden due to unknown ctype option.
  7909. const ::std::string& cord_with_zero() const;
  7910. void set_cord_with_zero(const ::std::string& value);
  7911. #if LANG_CXX11
  7912. void set_cord_with_zero(::std::string&& value);
  7913. #endif
  7914. void set_cord_with_zero(const char* value);
  7915. void set_cord_with_zero(const char* value, size_t size);
  7916. ::std::string* mutable_cord_with_zero();
  7917. ::std::string* release_cord_with_zero();
  7918. void set_allocated_cord_with_zero(::std::string* cord_with_zero);
  7919. PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
  7920. " string fields are deprecated and will be removed in a"
  7921. " future release.")
  7922. ::std::string* unsafe_arena_release_cord_with_zero();
  7923. PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
  7924. " string fields are deprecated and will be removed in a"
  7925. " future release.")
  7926. void unsafe_arena_set_allocated_cord_with_zero(
  7927. ::std::string* cord_with_zero);
  7928. public:
  7929. // optional string replacement_string = 27 [default = "${unknown}"];
  7930. bool has_replacement_string() const;
  7931. void clear_replacement_string();
  7932. static const int kReplacementStringFieldNumber = 27;
  7933. const ::std::string& replacement_string() const;
  7934. void set_replacement_string(const ::std::string& value);
  7935. #if LANG_CXX11
  7936. void set_replacement_string(::std::string&& value);
  7937. #endif
  7938. void set_replacement_string(const char* value);
  7939. void set_replacement_string(const char* value, size_t size);
  7940. ::std::string* mutable_replacement_string();
  7941. ::std::string* release_replacement_string();
  7942. void set_allocated_replacement_string(::std::string* replacement_string);
  7943. PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
  7944. " string fields are deprecated and will be removed in a"
  7945. " future release.")
  7946. ::std::string* unsafe_arena_release_replacement_string();
  7947. PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
  7948. " string fields are deprecated and will be removed in a"
  7949. " future release.")
  7950. void unsafe_arena_set_allocated_replacement_string(
  7951. ::std::string* replacement_string);
  7952. // optional float zero_float = 7 [default = 0];
  7953. bool has_zero_float() const;
  7954. void clear_zero_float();
  7955. static const int kZeroFloatFieldNumber = 7;
  7956. float zero_float() const;
  7957. void set_zero_float(float value);
  7958. // optional uint64 large_uint64 = 3 [default = 18446744073709551615];
  7959. bool has_large_uint64() const;
  7960. void clear_large_uint64();
  7961. static const int kLargeUint64FieldNumber = 3;
  7962. ::google::protobuf::uint64 large_uint64() const;
  7963. void set_large_uint64(::google::protobuf::uint64 value);
  7964. // optional uint32 large_uint32 = 2 [default = 4294967295];
  7965. bool has_large_uint32() const;
  7966. void clear_large_uint32();
  7967. static const int kLargeUint32FieldNumber = 2;
  7968. ::google::protobuf::uint32 large_uint32() const;
  7969. void set_large_uint32(::google::protobuf::uint32 value);
  7970. // optional int32 small_int32 = 4 [default = -2147483647];
  7971. bool has_small_int32() const;
  7972. void clear_small_int32();
  7973. static const int kSmallInt32FieldNumber = 4;
  7974. ::google::protobuf::int32 small_int32() const;
  7975. void set_small_int32(::google::protobuf::int32 value);
  7976. // optional int64 small_int64 = 5 [default = -9223372036854775807];
  7977. bool has_small_int64() const;
  7978. void clear_small_int64();
  7979. static const int kSmallInt64FieldNumber = 5;
  7980. ::google::protobuf::int64 small_int64() const;
  7981. void set_small_int64(::google::protobuf::int64 value);
  7982. // optional float one_float = 8 [default = 1];
  7983. bool has_one_float() const;
  7984. void clear_one_float();
  7985. static const int kOneFloatFieldNumber = 8;
  7986. float one_float() const;
  7987. void set_one_float(float value);
  7988. // optional float small_float = 9 [default = 1.5];
  7989. bool has_small_float() const;
  7990. void clear_small_float();
  7991. static const int kSmallFloatFieldNumber = 9;
  7992. float small_float() const;
  7993. void set_small_float(float value);
  7994. // optional float negative_one_float = 10 [default = -1];
  7995. bool has_negative_one_float() const;
  7996. void clear_negative_one_float();
  7997. static const int kNegativeOneFloatFieldNumber = 10;
  7998. float negative_one_float() const;
  7999. void set_negative_one_float(float value);
  8000. // optional float negative_float = 11 [default = -1.5];
  8001. bool has_negative_float() const;
  8002. void clear_negative_float();
  8003. static const int kNegativeFloatFieldNumber = 11;
  8004. float negative_float() const;
  8005. void set_negative_float(float value);
  8006. // optional float large_float = 12 [default = 2e+08];
  8007. bool has_large_float() const;
  8008. void clear_large_float();
  8009. static const int kLargeFloatFieldNumber = 12;
  8010. float large_float() const;
  8011. void set_large_float(float value);
  8012. // optional float small_negative_float = 13 [default = -8e-28];
  8013. bool has_small_negative_float() const;
  8014. void clear_small_negative_float();
  8015. static const int kSmallNegativeFloatFieldNumber = 13;
  8016. float small_negative_float() const;
  8017. void set_small_negative_float(float value);
  8018. // optional double inf_double = 14 [default = inf];
  8019. bool has_inf_double() const;
  8020. void clear_inf_double();
  8021. static const int kInfDoubleFieldNumber = 14;
  8022. double inf_double() const;
  8023. void set_inf_double(double value);
  8024. // optional double neg_inf_double = 15 [default = -inf];
  8025. bool has_neg_inf_double() const;
  8026. void clear_neg_inf_double();
  8027. static const int kNegInfDoubleFieldNumber = 15;
  8028. double neg_inf_double() const;
  8029. void set_neg_inf_double(double value);
  8030. // optional double nan_double = 16 [default = nan];
  8031. bool has_nan_double() const;
  8032. void clear_nan_double();
  8033. static const int kNanDoubleFieldNumber = 16;
  8034. double nan_double() const;
  8035. void set_nan_double(double value);
  8036. // optional float inf_float = 17 [default = inf];
  8037. bool has_inf_float() const;
  8038. void clear_inf_float();
  8039. static const int kInfFloatFieldNumber = 17;
  8040. float inf_float() const;
  8041. void set_inf_float(float value);
  8042. // optional float neg_inf_float = 18 [default = -inf];
  8043. bool has_neg_inf_float() const;
  8044. void clear_neg_inf_float();
  8045. static const int kNegInfFloatFieldNumber = 18;
  8046. float neg_inf_float() const;
  8047. void set_neg_inf_float(float value);
  8048. // optional float nan_float = 19 [default = nan];
  8049. bool has_nan_float() const;
  8050. void clear_nan_float();
  8051. static const int kNanFloatFieldNumber = 19;
  8052. float nan_float() const;
  8053. void set_nan_float(float value);
  8054. // optional int32 really_small_int32 = 21 [default = -2147483648];
  8055. bool has_really_small_int32() const;
  8056. void clear_really_small_int32();
  8057. static const int kReallySmallInt32FieldNumber = 21;
  8058. ::google::protobuf::int32 really_small_int32() const;
  8059. void set_really_small_int32(::google::protobuf::int32 value);
  8060. // optional int64 really_small_int64 = 22 [default = -9223372036854775808];
  8061. bool has_really_small_int64() const;
  8062. void clear_really_small_int64();
  8063. static const int kReallySmallInt64FieldNumber = 22;
  8064. ::google::protobuf::int64 really_small_int64() const;
  8065. void set_really_small_int64(::google::protobuf::int64 value);
  8066. // @@protoc_insertion_point(class_scope:protobuf_unittest.TestExtremeDefaultValues)
  8067. private:
  8068. void set_has_escaped_bytes();
  8069. void clear_has_escaped_bytes();
  8070. void set_has_large_uint32();
  8071. void clear_has_large_uint32();
  8072. void set_has_large_uint64();
  8073. void clear_has_large_uint64();
  8074. void set_has_small_int32();
  8075. void clear_has_small_int32();
  8076. void set_has_small_int64();
  8077. void clear_has_small_int64();
  8078. void set_has_really_small_int32();
  8079. void clear_has_really_small_int32();
  8080. void set_has_really_small_int64();
  8081. void clear_has_really_small_int64();
  8082. void set_has_utf8_string();
  8083. void clear_has_utf8_string();
  8084. void set_has_zero_float();
  8085. void clear_has_zero_float();
  8086. void set_has_one_float();
  8087. void clear_has_one_float();
  8088. void set_has_small_float();
  8089. void clear_has_small_float();
  8090. void set_has_negative_one_float();
  8091. void clear_has_negative_one_float();
  8092. void set_has_negative_float();
  8093. void clear_has_negative_float();
  8094. void set_has_large_float();
  8095. void clear_has_large_float();
  8096. void set_has_small_negative_float();
  8097. void clear_has_small_negative_float();
  8098. void set_has_inf_double();
  8099. void clear_has_inf_double();
  8100. void set_has_neg_inf_double();
  8101. void clear_has_neg_inf_double();
  8102. void set_has_nan_double();
  8103. void clear_has_nan_double();
  8104. void set_has_inf_float();
  8105. void clear_has_inf_float();
  8106. void set_has_neg_inf_float();
  8107. void clear_has_neg_inf_float();
  8108. void set_has_nan_float();
  8109. void clear_has_nan_float();
  8110. void set_has_cpp_trigraph();
  8111. void clear_has_cpp_trigraph();
  8112. void set_has_string_with_zero();
  8113. void clear_has_string_with_zero();
  8114. void set_has_bytes_with_zero();
  8115. void clear_has_bytes_with_zero();
  8116. void set_has_string_piece_with_zero();
  8117. void clear_has_string_piece_with_zero();
  8118. void set_has_cord_with_zero();
  8119. void clear_has_cord_with_zero();
  8120. void set_has_replacement_string();
  8121. void clear_has_replacement_string();
  8122. ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
  8123. template <typename T> friend class ::google::protobuf::Arena::InternalHelper;
  8124. typedef void InternalArenaConstructable_;
  8125. typedef void DestructorSkippable_;
  8126. ::google::protobuf::internal::HasBits<1> _has_bits_;
  8127. mutable ::google::protobuf::internal::CachedSize _cached_size_;
  8128. public:
  8129. static ::google::protobuf::internal::ExplicitlyConstructed< ::std::string> _i_give_permission_to_break_this_code_default_escaped_bytes_;
  8130. private:
  8131. ::google::protobuf::internal::ArenaStringPtr escaped_bytes_;
  8132. public:
  8133. static ::google::protobuf::internal::ExplicitlyConstructed< ::std::string> _i_give_permission_to_break_this_code_default_utf8_string_;
  8134. private:
  8135. ::google::protobuf::internal::ArenaStringPtr utf8_string_;
  8136. public:
  8137. static ::google::protobuf::internal::ExplicitlyConstructed< ::std::string> _i_give_permission_to_break_this_code_default_cpp_trigraph_;
  8138. private:
  8139. ::google::protobuf::internal::ArenaStringPtr cpp_trigraph_;
  8140. public:
  8141. static ::google::protobuf::internal::ExplicitlyConstructed< ::std::string> _i_give_permission_to_break_this_code_default_string_with_zero_;
  8142. private:
  8143. ::google::protobuf::internal::ArenaStringPtr string_with_zero_;
  8144. public:
  8145. static ::google::protobuf::internal::ExplicitlyConstructed< ::std::string> _i_give_permission_to_break_this_code_default_bytes_with_zero_;
  8146. private:
  8147. ::google::protobuf::internal::ArenaStringPtr bytes_with_zero_;
  8148. public:
  8149. static ::google::protobuf::internal::ExplicitlyConstructed< ::std::string> _i_give_permission_to_break_this_code_default_string_piece_with_zero_;
  8150. private:
  8151. ::google::protobuf::internal::ArenaStringPtr string_piece_with_zero_;
  8152. public:
  8153. static ::google::protobuf::internal::ExplicitlyConstructed< ::std::string> _i_give_permission_to_break_this_code_default_cord_with_zero_;
  8154. private:
  8155. ::google::protobuf::internal::ArenaStringPtr cord_with_zero_;
  8156. public:
  8157. static ::google::protobuf::internal::ExplicitlyConstructed< ::std::string> _i_give_permission_to_break_this_code_default_replacement_string_;
  8158. private:
  8159. ::google::protobuf::internal::ArenaStringPtr replacement_string_;
  8160. float zero_float_;
  8161. ::google::protobuf::uint64 large_uint64_;
  8162. ::google::protobuf::uint32 large_uint32_;
  8163. ::google::protobuf::int32 small_int32_;
  8164. ::google::protobuf::int64 small_int64_;
  8165. float one_float_;
  8166. float small_float_;
  8167. float negative_one_float_;
  8168. float negative_float_;
  8169. float large_float_;
  8170. float small_negative_float_;
  8171. double inf_double_;
  8172. double neg_inf_double_;
  8173. double nan_double_;
  8174. float inf_float_;
  8175. float neg_inf_float_;
  8176. float nan_float_;
  8177. ::google::protobuf::int32 really_small_int32_;
  8178. ::google::protobuf::int64 really_small_int64_;
  8179. friend struct ::protobuf_google_2fprotobuf_2funittest_2eproto::TableStruct;
  8180. };
  8181. // -------------------------------------------------------------------
  8182. class SparseEnumMessage : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:protobuf_unittest.SparseEnumMessage) */ {
  8183. public:
  8184. SparseEnumMessage();
  8185. virtual ~SparseEnumMessage();
  8186. SparseEnumMessage(const SparseEnumMessage& from);
  8187. inline SparseEnumMessage& operator=(const SparseEnumMessage& from) {
  8188. CopyFrom(from);
  8189. return *this;
  8190. }
  8191. #if LANG_CXX11
  8192. SparseEnumMessage(SparseEnumMessage&& from) noexcept
  8193. : SparseEnumMessage() {
  8194. *this = ::std::move(from);
  8195. }
  8196. inline SparseEnumMessage& operator=(SparseEnumMessage&& from) noexcept {
  8197. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  8198. if (this != &from) InternalSwap(&from);
  8199. } else {
  8200. CopyFrom(from);
  8201. }
  8202. return *this;
  8203. }
  8204. #endif
  8205. inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
  8206. return _internal_metadata_.unknown_fields();
  8207. }
  8208. inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
  8209. return _internal_metadata_.mutable_unknown_fields();
  8210. }
  8211. inline ::google::protobuf::Arena* GetArena() const final {
  8212. return GetArenaNoVirtual();
  8213. }
  8214. inline void* GetMaybeArenaPointer() const final {
  8215. return MaybeArenaPtr();
  8216. }
  8217. static const ::google::protobuf::Descriptor* descriptor();
  8218. static const SparseEnumMessage& default_instance();
  8219. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  8220. static inline const SparseEnumMessage* internal_default_instance() {
  8221. return reinterpret_cast<const SparseEnumMessage*>(
  8222. &_SparseEnumMessage_default_instance_);
  8223. }
  8224. static constexpr int kIndexInFileMessages =
  8225. 47;
  8226. void UnsafeArenaSwap(SparseEnumMessage* other);
  8227. void Swap(SparseEnumMessage* other);
  8228. friend void swap(SparseEnumMessage& a, SparseEnumMessage& b) {
  8229. a.Swap(&b);
  8230. }
  8231. // implements Message ----------------------------------------------
  8232. inline SparseEnumMessage* New() const final {
  8233. return CreateMaybeMessage<SparseEnumMessage>(NULL);
  8234. }
  8235. SparseEnumMessage* New(::google::protobuf::Arena* arena) const final {
  8236. return CreateMaybeMessage<SparseEnumMessage>(arena);
  8237. }
  8238. void CopyFrom(const ::google::protobuf::Message& from) final;
  8239. void MergeFrom(const ::google::protobuf::Message& from) final;
  8240. void CopyFrom(const SparseEnumMessage& from);
  8241. void MergeFrom(const SparseEnumMessage& from);
  8242. void Clear() final;
  8243. bool IsInitialized() const final;
  8244. size_t ByteSizeLong() const final;
  8245. bool MergePartialFromCodedStream(
  8246. ::google::protobuf::io::CodedInputStream* input) final;
  8247. void SerializeWithCachedSizes(
  8248. ::google::protobuf::io::CodedOutputStream* output) const final;
  8249. ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
  8250. bool deterministic, ::google::protobuf::uint8* target) const final;
  8251. int GetCachedSize() const final { return _cached_size_.Get(); }
  8252. private:
  8253. void SharedCtor();
  8254. void SharedDtor();
  8255. void SetCachedSize(int size) const final;
  8256. void InternalSwap(SparseEnumMessage* other);
  8257. protected:
  8258. explicit SparseEnumMessage(::google::protobuf::Arena* arena);
  8259. private:
  8260. static void ArenaDtor(void* object);
  8261. inline void RegisterArenaDtor(::google::protobuf::Arena* arena);
  8262. private:
  8263. inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
  8264. return _internal_metadata_.arena();
  8265. }
  8266. inline void* MaybeArenaPtr() const {
  8267. return _internal_metadata_.raw_arena_ptr();
  8268. }
  8269. public:
  8270. ::google::protobuf::Metadata GetMetadata() const final;
  8271. // nested types ----------------------------------------------------
  8272. // accessors -------------------------------------------------------
  8273. // optional .protobuf_unittest.TestSparseEnum sparse_enum = 1;
  8274. bool has_sparse_enum() const;
  8275. void clear_sparse_enum();
  8276. static const int kSparseEnumFieldNumber = 1;
  8277. ::protobuf_unittest::TestSparseEnum sparse_enum() const;
  8278. void set_sparse_enum(::protobuf_unittest::TestSparseEnum value);
  8279. // @@protoc_insertion_point(class_scope:protobuf_unittest.SparseEnumMessage)
  8280. private:
  8281. void set_has_sparse_enum();
  8282. void clear_has_sparse_enum();
  8283. ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
  8284. template <typename T> friend class ::google::protobuf::Arena::InternalHelper;
  8285. typedef void InternalArenaConstructable_;
  8286. typedef void DestructorSkippable_;
  8287. ::google::protobuf::internal::HasBits<1> _has_bits_;
  8288. mutable ::google::protobuf::internal::CachedSize _cached_size_;
  8289. int sparse_enum_;
  8290. friend struct ::protobuf_google_2fprotobuf_2funittest_2eproto::TableStruct;
  8291. };
  8292. // -------------------------------------------------------------------
  8293. class OneString : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:protobuf_unittest.OneString) */ {
  8294. public:
  8295. OneString();
  8296. virtual ~OneString();
  8297. OneString(const OneString& from);
  8298. inline OneString& operator=(const OneString& from) {
  8299. CopyFrom(from);
  8300. return *this;
  8301. }
  8302. #if LANG_CXX11
  8303. OneString(OneString&& from) noexcept
  8304. : OneString() {
  8305. *this = ::std::move(from);
  8306. }
  8307. inline OneString& operator=(OneString&& from) noexcept {
  8308. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  8309. if (this != &from) InternalSwap(&from);
  8310. } else {
  8311. CopyFrom(from);
  8312. }
  8313. return *this;
  8314. }
  8315. #endif
  8316. inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
  8317. return _internal_metadata_.unknown_fields();
  8318. }
  8319. inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
  8320. return _internal_metadata_.mutable_unknown_fields();
  8321. }
  8322. inline ::google::protobuf::Arena* GetArena() const final {
  8323. return GetArenaNoVirtual();
  8324. }
  8325. inline void* GetMaybeArenaPointer() const final {
  8326. return MaybeArenaPtr();
  8327. }
  8328. static const ::google::protobuf::Descriptor* descriptor();
  8329. static const OneString& default_instance();
  8330. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  8331. static inline const OneString* internal_default_instance() {
  8332. return reinterpret_cast<const OneString*>(
  8333. &_OneString_default_instance_);
  8334. }
  8335. static constexpr int kIndexInFileMessages =
  8336. 48;
  8337. void UnsafeArenaSwap(OneString* other);
  8338. void Swap(OneString* other);
  8339. friend void swap(OneString& a, OneString& b) {
  8340. a.Swap(&b);
  8341. }
  8342. // implements Message ----------------------------------------------
  8343. inline OneString* New() const final {
  8344. return CreateMaybeMessage<OneString>(NULL);
  8345. }
  8346. OneString* New(::google::protobuf::Arena* arena) const final {
  8347. return CreateMaybeMessage<OneString>(arena);
  8348. }
  8349. void CopyFrom(const ::google::protobuf::Message& from) final;
  8350. void MergeFrom(const ::google::protobuf::Message& from) final;
  8351. void CopyFrom(const OneString& from);
  8352. void MergeFrom(const OneString& from);
  8353. void Clear() final;
  8354. bool IsInitialized() const final;
  8355. size_t ByteSizeLong() const final;
  8356. bool MergePartialFromCodedStream(
  8357. ::google::protobuf::io::CodedInputStream* input) final;
  8358. void SerializeWithCachedSizes(
  8359. ::google::protobuf::io::CodedOutputStream* output) const final;
  8360. ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
  8361. bool deterministic, ::google::protobuf::uint8* target) const final;
  8362. int GetCachedSize() const final { return _cached_size_.Get(); }
  8363. private:
  8364. void SharedCtor();
  8365. void SharedDtor();
  8366. void SetCachedSize(int size) const final;
  8367. void InternalSwap(OneString* other);
  8368. protected:
  8369. explicit OneString(::google::protobuf::Arena* arena);
  8370. private:
  8371. static void ArenaDtor(void* object);
  8372. inline void RegisterArenaDtor(::google::protobuf::Arena* arena);
  8373. private:
  8374. inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
  8375. return _internal_metadata_.arena();
  8376. }
  8377. inline void* MaybeArenaPtr() const {
  8378. return _internal_metadata_.raw_arena_ptr();
  8379. }
  8380. public:
  8381. ::google::protobuf::Metadata GetMetadata() const final;
  8382. // nested types ----------------------------------------------------
  8383. // accessors -------------------------------------------------------
  8384. // optional string data = 1;
  8385. bool has_data() const;
  8386. void clear_data();
  8387. static const int kDataFieldNumber = 1;
  8388. const ::std::string& data() const;
  8389. void set_data(const ::std::string& value);
  8390. #if LANG_CXX11
  8391. void set_data(::std::string&& value);
  8392. #endif
  8393. void set_data(const char* value);
  8394. void set_data(const char* value, size_t size);
  8395. ::std::string* mutable_data();
  8396. ::std::string* release_data();
  8397. void set_allocated_data(::std::string* data);
  8398. PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
  8399. " string fields are deprecated and will be removed in a"
  8400. " future release.")
  8401. ::std::string* unsafe_arena_release_data();
  8402. PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
  8403. " string fields are deprecated and will be removed in a"
  8404. " future release.")
  8405. void unsafe_arena_set_allocated_data(
  8406. ::std::string* data);
  8407. // @@protoc_insertion_point(class_scope:protobuf_unittest.OneString)
  8408. private:
  8409. void set_has_data();
  8410. void clear_has_data();
  8411. ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
  8412. template <typename T> friend class ::google::protobuf::Arena::InternalHelper;
  8413. typedef void InternalArenaConstructable_;
  8414. typedef void DestructorSkippable_;
  8415. ::google::protobuf::internal::HasBits<1> _has_bits_;
  8416. mutable ::google::protobuf::internal::CachedSize _cached_size_;
  8417. ::google::protobuf::internal::ArenaStringPtr data_;
  8418. friend struct ::protobuf_google_2fprotobuf_2funittest_2eproto::TableStruct;
  8419. };
  8420. // -------------------------------------------------------------------
  8421. class MoreString : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:protobuf_unittest.MoreString) */ {
  8422. public:
  8423. MoreString();
  8424. virtual ~MoreString();
  8425. MoreString(const MoreString& from);
  8426. inline MoreString& operator=(const MoreString& from) {
  8427. CopyFrom(from);
  8428. return *this;
  8429. }
  8430. #if LANG_CXX11
  8431. MoreString(MoreString&& from) noexcept
  8432. : MoreString() {
  8433. *this = ::std::move(from);
  8434. }
  8435. inline MoreString& operator=(MoreString&& from) noexcept {
  8436. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  8437. if (this != &from) InternalSwap(&from);
  8438. } else {
  8439. CopyFrom(from);
  8440. }
  8441. return *this;
  8442. }
  8443. #endif
  8444. inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
  8445. return _internal_metadata_.unknown_fields();
  8446. }
  8447. inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
  8448. return _internal_metadata_.mutable_unknown_fields();
  8449. }
  8450. inline ::google::protobuf::Arena* GetArena() const final {
  8451. return GetArenaNoVirtual();
  8452. }
  8453. inline void* GetMaybeArenaPointer() const final {
  8454. return MaybeArenaPtr();
  8455. }
  8456. static const ::google::protobuf::Descriptor* descriptor();
  8457. static const MoreString& default_instance();
  8458. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  8459. static inline const MoreString* internal_default_instance() {
  8460. return reinterpret_cast<const MoreString*>(
  8461. &_MoreString_default_instance_);
  8462. }
  8463. static constexpr int kIndexInFileMessages =
  8464. 49;
  8465. void UnsafeArenaSwap(MoreString* other);
  8466. void Swap(MoreString* other);
  8467. friend void swap(MoreString& a, MoreString& b) {
  8468. a.Swap(&b);
  8469. }
  8470. // implements Message ----------------------------------------------
  8471. inline MoreString* New() const final {
  8472. return CreateMaybeMessage<MoreString>(NULL);
  8473. }
  8474. MoreString* New(::google::protobuf::Arena* arena) const final {
  8475. return CreateMaybeMessage<MoreString>(arena);
  8476. }
  8477. void CopyFrom(const ::google::protobuf::Message& from) final;
  8478. void MergeFrom(const ::google::protobuf::Message& from) final;
  8479. void CopyFrom(const MoreString& from);
  8480. void MergeFrom(const MoreString& from);
  8481. void Clear() final;
  8482. bool IsInitialized() const final;
  8483. size_t ByteSizeLong() const final;
  8484. bool MergePartialFromCodedStream(
  8485. ::google::protobuf::io::CodedInputStream* input) final;
  8486. void SerializeWithCachedSizes(
  8487. ::google::protobuf::io::CodedOutputStream* output) const final;
  8488. ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
  8489. bool deterministic, ::google::protobuf::uint8* target) const final;
  8490. int GetCachedSize() const final { return _cached_size_.Get(); }
  8491. private:
  8492. void SharedCtor();
  8493. void SharedDtor();
  8494. void SetCachedSize(int size) const final;
  8495. void InternalSwap(MoreString* other);
  8496. protected:
  8497. explicit MoreString(::google::protobuf::Arena* arena);
  8498. private:
  8499. static void ArenaDtor(void* object);
  8500. inline void RegisterArenaDtor(::google::protobuf::Arena* arena);
  8501. private:
  8502. inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
  8503. return _internal_metadata_.arena();
  8504. }
  8505. inline void* MaybeArenaPtr() const {
  8506. return _internal_metadata_.raw_arena_ptr();
  8507. }
  8508. public:
  8509. ::google::protobuf::Metadata GetMetadata() const final;
  8510. // nested types ----------------------------------------------------
  8511. // accessors -------------------------------------------------------
  8512. // repeated string data = 1;
  8513. int data_size() const;
  8514. void clear_data();
  8515. static const int kDataFieldNumber = 1;
  8516. const ::std::string& data(int index) const;
  8517. ::std::string* mutable_data(int index);
  8518. void set_data(int index, const ::std::string& value);
  8519. #if LANG_CXX11
  8520. void set_data(int index, ::std::string&& value);
  8521. #endif
  8522. void set_data(int index, const char* value);
  8523. void set_data(int index, const char* value, size_t size);
  8524. ::std::string* add_data();
  8525. void add_data(const ::std::string& value);
  8526. #if LANG_CXX11
  8527. void add_data(::std::string&& value);
  8528. #endif
  8529. void add_data(const char* value);
  8530. void add_data(const char* value, size_t size);
  8531. const ::google::protobuf::RepeatedPtrField< ::std::string>& data() const;
  8532. ::google::protobuf::RepeatedPtrField< ::std::string>* mutable_data();
  8533. // @@protoc_insertion_point(class_scope:protobuf_unittest.MoreString)
  8534. private:
  8535. ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
  8536. template <typename T> friend class ::google::protobuf::Arena::InternalHelper;
  8537. typedef void InternalArenaConstructable_;
  8538. typedef void DestructorSkippable_;
  8539. ::google::protobuf::internal::HasBits<1> _has_bits_;
  8540. mutable ::google::protobuf::internal::CachedSize _cached_size_;
  8541. ::google::protobuf::RepeatedPtrField< ::std::string> data_;
  8542. friend struct ::protobuf_google_2fprotobuf_2funittest_2eproto::TableStruct;
  8543. };
  8544. // -------------------------------------------------------------------
  8545. class OneBytes : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:protobuf_unittest.OneBytes) */ {
  8546. public:
  8547. OneBytes();
  8548. virtual ~OneBytes();
  8549. OneBytes(const OneBytes& from);
  8550. inline OneBytes& operator=(const OneBytes& from) {
  8551. CopyFrom(from);
  8552. return *this;
  8553. }
  8554. #if LANG_CXX11
  8555. OneBytes(OneBytes&& from) noexcept
  8556. : OneBytes() {
  8557. *this = ::std::move(from);
  8558. }
  8559. inline OneBytes& operator=(OneBytes&& from) noexcept {
  8560. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  8561. if (this != &from) InternalSwap(&from);
  8562. } else {
  8563. CopyFrom(from);
  8564. }
  8565. return *this;
  8566. }
  8567. #endif
  8568. inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
  8569. return _internal_metadata_.unknown_fields();
  8570. }
  8571. inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
  8572. return _internal_metadata_.mutable_unknown_fields();
  8573. }
  8574. inline ::google::protobuf::Arena* GetArena() const final {
  8575. return GetArenaNoVirtual();
  8576. }
  8577. inline void* GetMaybeArenaPointer() const final {
  8578. return MaybeArenaPtr();
  8579. }
  8580. static const ::google::protobuf::Descriptor* descriptor();
  8581. static const OneBytes& default_instance();
  8582. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  8583. static inline const OneBytes* internal_default_instance() {
  8584. return reinterpret_cast<const OneBytes*>(
  8585. &_OneBytes_default_instance_);
  8586. }
  8587. static constexpr int kIndexInFileMessages =
  8588. 50;
  8589. void UnsafeArenaSwap(OneBytes* other);
  8590. void Swap(OneBytes* other);
  8591. friend void swap(OneBytes& a, OneBytes& b) {
  8592. a.Swap(&b);
  8593. }
  8594. // implements Message ----------------------------------------------
  8595. inline OneBytes* New() const final {
  8596. return CreateMaybeMessage<OneBytes>(NULL);
  8597. }
  8598. OneBytes* New(::google::protobuf::Arena* arena) const final {
  8599. return CreateMaybeMessage<OneBytes>(arena);
  8600. }
  8601. void CopyFrom(const ::google::protobuf::Message& from) final;
  8602. void MergeFrom(const ::google::protobuf::Message& from) final;
  8603. void CopyFrom(const OneBytes& from);
  8604. void MergeFrom(const OneBytes& from);
  8605. void Clear() final;
  8606. bool IsInitialized() const final;
  8607. size_t ByteSizeLong() const final;
  8608. bool MergePartialFromCodedStream(
  8609. ::google::protobuf::io::CodedInputStream* input) final;
  8610. void SerializeWithCachedSizes(
  8611. ::google::protobuf::io::CodedOutputStream* output) const final;
  8612. ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
  8613. bool deterministic, ::google::protobuf::uint8* target) const final;
  8614. int GetCachedSize() const final { return _cached_size_.Get(); }
  8615. private:
  8616. void SharedCtor();
  8617. void SharedDtor();
  8618. void SetCachedSize(int size) const final;
  8619. void InternalSwap(OneBytes* other);
  8620. protected:
  8621. explicit OneBytes(::google::protobuf::Arena* arena);
  8622. private:
  8623. static void ArenaDtor(void* object);
  8624. inline void RegisterArenaDtor(::google::protobuf::Arena* arena);
  8625. private:
  8626. inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
  8627. return _internal_metadata_.arena();
  8628. }
  8629. inline void* MaybeArenaPtr() const {
  8630. return _internal_metadata_.raw_arena_ptr();
  8631. }
  8632. public:
  8633. ::google::protobuf::Metadata GetMetadata() const final;
  8634. // nested types ----------------------------------------------------
  8635. // accessors -------------------------------------------------------
  8636. // optional bytes data = 1;
  8637. bool has_data() const;
  8638. void clear_data();
  8639. static const int kDataFieldNumber = 1;
  8640. const ::std::string& data() const;
  8641. void set_data(const ::std::string& value);
  8642. #if LANG_CXX11
  8643. void set_data(::std::string&& value);
  8644. #endif
  8645. void set_data(const char* value);
  8646. void set_data(const void* value, size_t size);
  8647. ::std::string* mutable_data();
  8648. ::std::string* release_data();
  8649. void set_allocated_data(::std::string* data);
  8650. PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
  8651. " string fields are deprecated and will be removed in a"
  8652. " future release.")
  8653. ::std::string* unsafe_arena_release_data();
  8654. PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
  8655. " string fields are deprecated and will be removed in a"
  8656. " future release.")
  8657. void unsafe_arena_set_allocated_data(
  8658. ::std::string* data);
  8659. // @@protoc_insertion_point(class_scope:protobuf_unittest.OneBytes)
  8660. private:
  8661. void set_has_data();
  8662. void clear_has_data();
  8663. ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
  8664. template <typename T> friend class ::google::protobuf::Arena::InternalHelper;
  8665. typedef void InternalArenaConstructable_;
  8666. typedef void DestructorSkippable_;
  8667. ::google::protobuf::internal::HasBits<1> _has_bits_;
  8668. mutable ::google::protobuf::internal::CachedSize _cached_size_;
  8669. ::google::protobuf::internal::ArenaStringPtr data_;
  8670. friend struct ::protobuf_google_2fprotobuf_2funittest_2eproto::TableStruct;
  8671. };
  8672. // -------------------------------------------------------------------
  8673. class MoreBytes : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:protobuf_unittest.MoreBytes) */ {
  8674. public:
  8675. MoreBytes();
  8676. virtual ~MoreBytes();
  8677. MoreBytes(const MoreBytes& from);
  8678. inline MoreBytes& operator=(const MoreBytes& from) {
  8679. CopyFrom(from);
  8680. return *this;
  8681. }
  8682. #if LANG_CXX11
  8683. MoreBytes(MoreBytes&& from) noexcept
  8684. : MoreBytes() {
  8685. *this = ::std::move(from);
  8686. }
  8687. inline MoreBytes& operator=(MoreBytes&& from) noexcept {
  8688. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  8689. if (this != &from) InternalSwap(&from);
  8690. } else {
  8691. CopyFrom(from);
  8692. }
  8693. return *this;
  8694. }
  8695. #endif
  8696. inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
  8697. return _internal_metadata_.unknown_fields();
  8698. }
  8699. inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
  8700. return _internal_metadata_.mutable_unknown_fields();
  8701. }
  8702. inline ::google::protobuf::Arena* GetArena() const final {
  8703. return GetArenaNoVirtual();
  8704. }
  8705. inline void* GetMaybeArenaPointer() const final {
  8706. return MaybeArenaPtr();
  8707. }
  8708. static const ::google::protobuf::Descriptor* descriptor();
  8709. static const MoreBytes& default_instance();
  8710. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  8711. static inline const MoreBytes* internal_default_instance() {
  8712. return reinterpret_cast<const MoreBytes*>(
  8713. &_MoreBytes_default_instance_);
  8714. }
  8715. static constexpr int kIndexInFileMessages =
  8716. 51;
  8717. void UnsafeArenaSwap(MoreBytes* other);
  8718. void Swap(MoreBytes* other);
  8719. friend void swap(MoreBytes& a, MoreBytes& b) {
  8720. a.Swap(&b);
  8721. }
  8722. // implements Message ----------------------------------------------
  8723. inline MoreBytes* New() const final {
  8724. return CreateMaybeMessage<MoreBytes>(NULL);
  8725. }
  8726. MoreBytes* New(::google::protobuf::Arena* arena) const final {
  8727. return CreateMaybeMessage<MoreBytes>(arena);
  8728. }
  8729. void CopyFrom(const ::google::protobuf::Message& from) final;
  8730. void MergeFrom(const ::google::protobuf::Message& from) final;
  8731. void CopyFrom(const MoreBytes& from);
  8732. void MergeFrom(const MoreBytes& from);
  8733. void Clear() final;
  8734. bool IsInitialized() const final;
  8735. size_t ByteSizeLong() const final;
  8736. bool MergePartialFromCodedStream(
  8737. ::google::protobuf::io::CodedInputStream* input) final;
  8738. void SerializeWithCachedSizes(
  8739. ::google::protobuf::io::CodedOutputStream* output) const final;
  8740. ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
  8741. bool deterministic, ::google::protobuf::uint8* target) const final;
  8742. int GetCachedSize() const final { return _cached_size_.Get(); }
  8743. private:
  8744. void SharedCtor();
  8745. void SharedDtor();
  8746. void SetCachedSize(int size) const final;
  8747. void InternalSwap(MoreBytes* other);
  8748. protected:
  8749. explicit MoreBytes(::google::protobuf::Arena* arena);
  8750. private:
  8751. static void ArenaDtor(void* object);
  8752. inline void RegisterArenaDtor(::google::protobuf::Arena* arena);
  8753. private:
  8754. inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
  8755. return _internal_metadata_.arena();
  8756. }
  8757. inline void* MaybeArenaPtr() const {
  8758. return _internal_metadata_.raw_arena_ptr();
  8759. }
  8760. public:
  8761. ::google::protobuf::Metadata GetMetadata() const final;
  8762. // nested types ----------------------------------------------------
  8763. // accessors -------------------------------------------------------
  8764. // repeated bytes data = 1;
  8765. int data_size() const;
  8766. void clear_data();
  8767. static const int kDataFieldNumber = 1;
  8768. const ::std::string& data(int index) const;
  8769. ::std::string* mutable_data(int index);
  8770. void set_data(int index, const ::std::string& value);
  8771. #if LANG_CXX11
  8772. void set_data(int index, ::std::string&& value);
  8773. #endif
  8774. void set_data(int index, const char* value);
  8775. void set_data(int index, const void* value, size_t size);
  8776. ::std::string* add_data();
  8777. void add_data(const ::std::string& value);
  8778. #if LANG_CXX11
  8779. void add_data(::std::string&& value);
  8780. #endif
  8781. void add_data(const char* value);
  8782. void add_data(const void* value, size_t size);
  8783. const ::google::protobuf::RepeatedPtrField< ::std::string>& data() const;
  8784. ::google::protobuf::RepeatedPtrField< ::std::string>* mutable_data();
  8785. // @@protoc_insertion_point(class_scope:protobuf_unittest.MoreBytes)
  8786. private:
  8787. ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
  8788. template <typename T> friend class ::google::protobuf::Arena::InternalHelper;
  8789. typedef void InternalArenaConstructable_;
  8790. typedef void DestructorSkippable_;
  8791. ::google::protobuf::internal::HasBits<1> _has_bits_;
  8792. mutable ::google::protobuf::internal::CachedSize _cached_size_;
  8793. ::google::protobuf::RepeatedPtrField< ::std::string> data_;
  8794. friend struct ::protobuf_google_2fprotobuf_2funittest_2eproto::TableStruct;
  8795. };
  8796. // -------------------------------------------------------------------
  8797. class Int32Message : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:protobuf_unittest.Int32Message) */ {
  8798. public:
  8799. Int32Message();
  8800. virtual ~Int32Message();
  8801. Int32Message(const Int32Message& from);
  8802. inline Int32Message& operator=(const Int32Message& from) {
  8803. CopyFrom(from);
  8804. return *this;
  8805. }
  8806. #if LANG_CXX11
  8807. Int32Message(Int32Message&& from) noexcept
  8808. : Int32Message() {
  8809. *this = ::std::move(from);
  8810. }
  8811. inline Int32Message& operator=(Int32Message&& from) noexcept {
  8812. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  8813. if (this != &from) InternalSwap(&from);
  8814. } else {
  8815. CopyFrom(from);
  8816. }
  8817. return *this;
  8818. }
  8819. #endif
  8820. inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
  8821. return _internal_metadata_.unknown_fields();
  8822. }
  8823. inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
  8824. return _internal_metadata_.mutable_unknown_fields();
  8825. }
  8826. inline ::google::protobuf::Arena* GetArena() const final {
  8827. return GetArenaNoVirtual();
  8828. }
  8829. inline void* GetMaybeArenaPointer() const final {
  8830. return MaybeArenaPtr();
  8831. }
  8832. static const ::google::protobuf::Descriptor* descriptor();
  8833. static const Int32Message& default_instance();
  8834. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  8835. static inline const Int32Message* internal_default_instance() {
  8836. return reinterpret_cast<const Int32Message*>(
  8837. &_Int32Message_default_instance_);
  8838. }
  8839. static constexpr int kIndexInFileMessages =
  8840. 52;
  8841. void UnsafeArenaSwap(Int32Message* other);
  8842. void Swap(Int32Message* other);
  8843. friend void swap(Int32Message& a, Int32Message& b) {
  8844. a.Swap(&b);
  8845. }
  8846. // implements Message ----------------------------------------------
  8847. inline Int32Message* New() const final {
  8848. return CreateMaybeMessage<Int32Message>(NULL);
  8849. }
  8850. Int32Message* New(::google::protobuf::Arena* arena) const final {
  8851. return CreateMaybeMessage<Int32Message>(arena);
  8852. }
  8853. void CopyFrom(const ::google::protobuf::Message& from) final;
  8854. void MergeFrom(const ::google::protobuf::Message& from) final;
  8855. void CopyFrom(const Int32Message& from);
  8856. void MergeFrom(const Int32Message& from);
  8857. void Clear() final;
  8858. bool IsInitialized() const final;
  8859. size_t ByteSizeLong() const final;
  8860. bool MergePartialFromCodedStream(
  8861. ::google::protobuf::io::CodedInputStream* input) final;
  8862. void SerializeWithCachedSizes(
  8863. ::google::protobuf::io::CodedOutputStream* output) const final;
  8864. ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
  8865. bool deterministic, ::google::protobuf::uint8* target) const final;
  8866. int GetCachedSize() const final { return _cached_size_.Get(); }
  8867. private:
  8868. void SharedCtor();
  8869. void SharedDtor();
  8870. void SetCachedSize(int size) const final;
  8871. void InternalSwap(Int32Message* other);
  8872. protected:
  8873. explicit Int32Message(::google::protobuf::Arena* arena);
  8874. private:
  8875. static void ArenaDtor(void* object);
  8876. inline void RegisterArenaDtor(::google::protobuf::Arena* arena);
  8877. private:
  8878. inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
  8879. return _internal_metadata_.arena();
  8880. }
  8881. inline void* MaybeArenaPtr() const {
  8882. return _internal_metadata_.raw_arena_ptr();
  8883. }
  8884. public:
  8885. ::google::protobuf::Metadata GetMetadata() const final;
  8886. // nested types ----------------------------------------------------
  8887. // accessors -------------------------------------------------------
  8888. // optional int32 data = 1;
  8889. bool has_data() const;
  8890. void clear_data();
  8891. static const int kDataFieldNumber = 1;
  8892. ::google::protobuf::int32 data() const;
  8893. void set_data(::google::protobuf::int32 value);
  8894. // @@protoc_insertion_point(class_scope:protobuf_unittest.Int32Message)
  8895. private:
  8896. void set_has_data();
  8897. void clear_has_data();
  8898. ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
  8899. template <typename T> friend class ::google::protobuf::Arena::InternalHelper;
  8900. typedef void InternalArenaConstructable_;
  8901. typedef void DestructorSkippable_;
  8902. ::google::protobuf::internal::HasBits<1> _has_bits_;
  8903. mutable ::google::protobuf::internal::CachedSize _cached_size_;
  8904. ::google::protobuf::int32 data_;
  8905. friend struct ::protobuf_google_2fprotobuf_2funittest_2eproto::TableStruct;
  8906. };
  8907. // -------------------------------------------------------------------
  8908. class Uint32Message : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:protobuf_unittest.Uint32Message) */ {
  8909. public:
  8910. Uint32Message();
  8911. virtual ~Uint32Message();
  8912. Uint32Message(const Uint32Message& from);
  8913. inline Uint32Message& operator=(const Uint32Message& from) {
  8914. CopyFrom(from);
  8915. return *this;
  8916. }
  8917. #if LANG_CXX11
  8918. Uint32Message(Uint32Message&& from) noexcept
  8919. : Uint32Message() {
  8920. *this = ::std::move(from);
  8921. }
  8922. inline Uint32Message& operator=(Uint32Message&& from) noexcept {
  8923. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  8924. if (this != &from) InternalSwap(&from);
  8925. } else {
  8926. CopyFrom(from);
  8927. }
  8928. return *this;
  8929. }
  8930. #endif
  8931. inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
  8932. return _internal_metadata_.unknown_fields();
  8933. }
  8934. inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
  8935. return _internal_metadata_.mutable_unknown_fields();
  8936. }
  8937. inline ::google::protobuf::Arena* GetArena() const final {
  8938. return GetArenaNoVirtual();
  8939. }
  8940. inline void* GetMaybeArenaPointer() const final {
  8941. return MaybeArenaPtr();
  8942. }
  8943. static const ::google::protobuf::Descriptor* descriptor();
  8944. static const Uint32Message& default_instance();
  8945. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  8946. static inline const Uint32Message* internal_default_instance() {
  8947. return reinterpret_cast<const Uint32Message*>(
  8948. &_Uint32Message_default_instance_);
  8949. }
  8950. static constexpr int kIndexInFileMessages =
  8951. 53;
  8952. void UnsafeArenaSwap(Uint32Message* other);
  8953. void Swap(Uint32Message* other);
  8954. friend void swap(Uint32Message& a, Uint32Message& b) {
  8955. a.Swap(&b);
  8956. }
  8957. // implements Message ----------------------------------------------
  8958. inline Uint32Message* New() const final {
  8959. return CreateMaybeMessage<Uint32Message>(NULL);
  8960. }
  8961. Uint32Message* New(::google::protobuf::Arena* arena) const final {
  8962. return CreateMaybeMessage<Uint32Message>(arena);
  8963. }
  8964. void CopyFrom(const ::google::protobuf::Message& from) final;
  8965. void MergeFrom(const ::google::protobuf::Message& from) final;
  8966. void CopyFrom(const Uint32Message& from);
  8967. void MergeFrom(const Uint32Message& from);
  8968. void Clear() final;
  8969. bool IsInitialized() const final;
  8970. size_t ByteSizeLong() const final;
  8971. bool MergePartialFromCodedStream(
  8972. ::google::protobuf::io::CodedInputStream* input) final;
  8973. void SerializeWithCachedSizes(
  8974. ::google::protobuf::io::CodedOutputStream* output) const final;
  8975. ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
  8976. bool deterministic, ::google::protobuf::uint8* target) const final;
  8977. int GetCachedSize() const final { return _cached_size_.Get(); }
  8978. private:
  8979. void SharedCtor();
  8980. void SharedDtor();
  8981. void SetCachedSize(int size) const final;
  8982. void InternalSwap(Uint32Message* other);
  8983. protected:
  8984. explicit Uint32Message(::google::protobuf::Arena* arena);
  8985. private:
  8986. static void ArenaDtor(void* object);
  8987. inline void RegisterArenaDtor(::google::protobuf::Arena* arena);
  8988. private:
  8989. inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
  8990. return _internal_metadata_.arena();
  8991. }
  8992. inline void* MaybeArenaPtr() const {
  8993. return _internal_metadata_.raw_arena_ptr();
  8994. }
  8995. public:
  8996. ::google::protobuf::Metadata GetMetadata() const final;
  8997. // nested types ----------------------------------------------------
  8998. // accessors -------------------------------------------------------
  8999. // optional uint32 data = 1;
  9000. bool has_data() const;
  9001. void clear_data();
  9002. static const int kDataFieldNumber = 1;
  9003. ::google::protobuf::uint32 data() const;
  9004. void set_data(::google::protobuf::uint32 value);
  9005. // @@protoc_insertion_point(class_scope:protobuf_unittest.Uint32Message)
  9006. private:
  9007. void set_has_data();
  9008. void clear_has_data();
  9009. ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
  9010. template <typename T> friend class ::google::protobuf::Arena::InternalHelper;
  9011. typedef void InternalArenaConstructable_;
  9012. typedef void DestructorSkippable_;
  9013. ::google::protobuf::internal::HasBits<1> _has_bits_;
  9014. mutable ::google::protobuf::internal::CachedSize _cached_size_;
  9015. ::google::protobuf::uint32 data_;
  9016. friend struct ::protobuf_google_2fprotobuf_2funittest_2eproto::TableStruct;
  9017. };
  9018. // -------------------------------------------------------------------
  9019. class Int64Message : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:protobuf_unittest.Int64Message) */ {
  9020. public:
  9021. Int64Message();
  9022. virtual ~Int64Message();
  9023. Int64Message(const Int64Message& from);
  9024. inline Int64Message& operator=(const Int64Message& from) {
  9025. CopyFrom(from);
  9026. return *this;
  9027. }
  9028. #if LANG_CXX11
  9029. Int64Message(Int64Message&& from) noexcept
  9030. : Int64Message() {
  9031. *this = ::std::move(from);
  9032. }
  9033. inline Int64Message& operator=(Int64Message&& from) noexcept {
  9034. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  9035. if (this != &from) InternalSwap(&from);
  9036. } else {
  9037. CopyFrom(from);
  9038. }
  9039. return *this;
  9040. }
  9041. #endif
  9042. inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
  9043. return _internal_metadata_.unknown_fields();
  9044. }
  9045. inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
  9046. return _internal_metadata_.mutable_unknown_fields();
  9047. }
  9048. inline ::google::protobuf::Arena* GetArena() const final {
  9049. return GetArenaNoVirtual();
  9050. }
  9051. inline void* GetMaybeArenaPointer() const final {
  9052. return MaybeArenaPtr();
  9053. }
  9054. static const ::google::protobuf::Descriptor* descriptor();
  9055. static const Int64Message& default_instance();
  9056. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  9057. static inline const Int64Message* internal_default_instance() {
  9058. return reinterpret_cast<const Int64Message*>(
  9059. &_Int64Message_default_instance_);
  9060. }
  9061. static constexpr int kIndexInFileMessages =
  9062. 54;
  9063. void UnsafeArenaSwap(Int64Message* other);
  9064. void Swap(Int64Message* other);
  9065. friend void swap(Int64Message& a, Int64Message& b) {
  9066. a.Swap(&b);
  9067. }
  9068. // implements Message ----------------------------------------------
  9069. inline Int64Message* New() const final {
  9070. return CreateMaybeMessage<Int64Message>(NULL);
  9071. }
  9072. Int64Message* New(::google::protobuf::Arena* arena) const final {
  9073. return CreateMaybeMessage<Int64Message>(arena);
  9074. }
  9075. void CopyFrom(const ::google::protobuf::Message& from) final;
  9076. void MergeFrom(const ::google::protobuf::Message& from) final;
  9077. void CopyFrom(const Int64Message& from);
  9078. void MergeFrom(const Int64Message& from);
  9079. void Clear() final;
  9080. bool IsInitialized() const final;
  9081. size_t ByteSizeLong() const final;
  9082. bool MergePartialFromCodedStream(
  9083. ::google::protobuf::io::CodedInputStream* input) final;
  9084. void SerializeWithCachedSizes(
  9085. ::google::protobuf::io::CodedOutputStream* output) const final;
  9086. ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
  9087. bool deterministic, ::google::protobuf::uint8* target) const final;
  9088. int GetCachedSize() const final { return _cached_size_.Get(); }
  9089. private:
  9090. void SharedCtor();
  9091. void SharedDtor();
  9092. void SetCachedSize(int size) const final;
  9093. void InternalSwap(Int64Message* other);
  9094. protected:
  9095. explicit Int64Message(::google::protobuf::Arena* arena);
  9096. private:
  9097. static void ArenaDtor(void* object);
  9098. inline void RegisterArenaDtor(::google::protobuf::Arena* arena);
  9099. private:
  9100. inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
  9101. return _internal_metadata_.arena();
  9102. }
  9103. inline void* MaybeArenaPtr() const {
  9104. return _internal_metadata_.raw_arena_ptr();
  9105. }
  9106. public:
  9107. ::google::protobuf::Metadata GetMetadata() const final;
  9108. // nested types ----------------------------------------------------
  9109. // accessors -------------------------------------------------------
  9110. // optional int64 data = 1;
  9111. bool has_data() const;
  9112. void clear_data();
  9113. static const int kDataFieldNumber = 1;
  9114. ::google::protobuf::int64 data() const;
  9115. void set_data(::google::protobuf::int64 value);
  9116. // @@protoc_insertion_point(class_scope:protobuf_unittest.Int64Message)
  9117. private:
  9118. void set_has_data();
  9119. void clear_has_data();
  9120. ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
  9121. template <typename T> friend class ::google::protobuf::Arena::InternalHelper;
  9122. typedef void InternalArenaConstructable_;
  9123. typedef void DestructorSkippable_;
  9124. ::google::protobuf::internal::HasBits<1> _has_bits_;
  9125. mutable ::google::protobuf::internal::CachedSize _cached_size_;
  9126. ::google::protobuf::int64 data_;
  9127. friend struct ::protobuf_google_2fprotobuf_2funittest_2eproto::TableStruct;
  9128. };
  9129. // -------------------------------------------------------------------
  9130. class Uint64Message : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:protobuf_unittest.Uint64Message) */ {
  9131. public:
  9132. Uint64Message();
  9133. virtual ~Uint64Message();
  9134. Uint64Message(const Uint64Message& from);
  9135. inline Uint64Message& operator=(const Uint64Message& from) {
  9136. CopyFrom(from);
  9137. return *this;
  9138. }
  9139. #if LANG_CXX11
  9140. Uint64Message(Uint64Message&& from) noexcept
  9141. : Uint64Message() {
  9142. *this = ::std::move(from);
  9143. }
  9144. inline Uint64Message& operator=(Uint64Message&& from) noexcept {
  9145. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  9146. if (this != &from) InternalSwap(&from);
  9147. } else {
  9148. CopyFrom(from);
  9149. }
  9150. return *this;
  9151. }
  9152. #endif
  9153. inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
  9154. return _internal_metadata_.unknown_fields();
  9155. }
  9156. inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
  9157. return _internal_metadata_.mutable_unknown_fields();
  9158. }
  9159. inline ::google::protobuf::Arena* GetArena() const final {
  9160. return GetArenaNoVirtual();
  9161. }
  9162. inline void* GetMaybeArenaPointer() const final {
  9163. return MaybeArenaPtr();
  9164. }
  9165. static const ::google::protobuf::Descriptor* descriptor();
  9166. static const Uint64Message& default_instance();
  9167. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  9168. static inline const Uint64Message* internal_default_instance() {
  9169. return reinterpret_cast<const Uint64Message*>(
  9170. &_Uint64Message_default_instance_);
  9171. }
  9172. static constexpr int kIndexInFileMessages =
  9173. 55;
  9174. void UnsafeArenaSwap(Uint64Message* other);
  9175. void Swap(Uint64Message* other);
  9176. friend void swap(Uint64Message& a, Uint64Message& b) {
  9177. a.Swap(&b);
  9178. }
  9179. // implements Message ----------------------------------------------
  9180. inline Uint64Message* New() const final {
  9181. return CreateMaybeMessage<Uint64Message>(NULL);
  9182. }
  9183. Uint64Message* New(::google::protobuf::Arena* arena) const final {
  9184. return CreateMaybeMessage<Uint64Message>(arena);
  9185. }
  9186. void CopyFrom(const ::google::protobuf::Message& from) final;
  9187. void MergeFrom(const ::google::protobuf::Message& from) final;
  9188. void CopyFrom(const Uint64Message& from);
  9189. void MergeFrom(const Uint64Message& from);
  9190. void Clear() final;
  9191. bool IsInitialized() const final;
  9192. size_t ByteSizeLong() const final;
  9193. bool MergePartialFromCodedStream(
  9194. ::google::protobuf::io::CodedInputStream* input) final;
  9195. void SerializeWithCachedSizes(
  9196. ::google::protobuf::io::CodedOutputStream* output) const final;
  9197. ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
  9198. bool deterministic, ::google::protobuf::uint8* target) const final;
  9199. int GetCachedSize() const final { return _cached_size_.Get(); }
  9200. private:
  9201. void SharedCtor();
  9202. void SharedDtor();
  9203. void SetCachedSize(int size) const final;
  9204. void InternalSwap(Uint64Message* other);
  9205. protected:
  9206. explicit Uint64Message(::google::protobuf::Arena* arena);
  9207. private:
  9208. static void ArenaDtor(void* object);
  9209. inline void RegisterArenaDtor(::google::protobuf::Arena* arena);
  9210. private:
  9211. inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
  9212. return _internal_metadata_.arena();
  9213. }
  9214. inline void* MaybeArenaPtr() const {
  9215. return _internal_metadata_.raw_arena_ptr();
  9216. }
  9217. public:
  9218. ::google::protobuf::Metadata GetMetadata() const final;
  9219. // nested types ----------------------------------------------------
  9220. // accessors -------------------------------------------------------
  9221. // optional uint64 data = 1;
  9222. bool has_data() const;
  9223. void clear_data();
  9224. static const int kDataFieldNumber = 1;
  9225. ::google::protobuf::uint64 data() const;
  9226. void set_data(::google::protobuf::uint64 value);
  9227. // @@protoc_insertion_point(class_scope:protobuf_unittest.Uint64Message)
  9228. private:
  9229. void set_has_data();
  9230. void clear_has_data();
  9231. ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
  9232. template <typename T> friend class ::google::protobuf::Arena::InternalHelper;
  9233. typedef void InternalArenaConstructable_;
  9234. typedef void DestructorSkippable_;
  9235. ::google::protobuf::internal::HasBits<1> _has_bits_;
  9236. mutable ::google::protobuf::internal::CachedSize _cached_size_;
  9237. ::google::protobuf::uint64 data_;
  9238. friend struct ::protobuf_google_2fprotobuf_2funittest_2eproto::TableStruct;
  9239. };
  9240. // -------------------------------------------------------------------
  9241. class BoolMessage : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:protobuf_unittest.BoolMessage) */ {
  9242. public:
  9243. BoolMessage();
  9244. virtual ~BoolMessage();
  9245. BoolMessage(const BoolMessage& from);
  9246. inline BoolMessage& operator=(const BoolMessage& from) {
  9247. CopyFrom(from);
  9248. return *this;
  9249. }
  9250. #if LANG_CXX11
  9251. BoolMessage(BoolMessage&& from) noexcept
  9252. : BoolMessage() {
  9253. *this = ::std::move(from);
  9254. }
  9255. inline BoolMessage& operator=(BoolMessage&& from) noexcept {
  9256. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  9257. if (this != &from) InternalSwap(&from);
  9258. } else {
  9259. CopyFrom(from);
  9260. }
  9261. return *this;
  9262. }
  9263. #endif
  9264. inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
  9265. return _internal_metadata_.unknown_fields();
  9266. }
  9267. inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
  9268. return _internal_metadata_.mutable_unknown_fields();
  9269. }
  9270. inline ::google::protobuf::Arena* GetArena() const final {
  9271. return GetArenaNoVirtual();
  9272. }
  9273. inline void* GetMaybeArenaPointer() const final {
  9274. return MaybeArenaPtr();
  9275. }
  9276. static const ::google::protobuf::Descriptor* descriptor();
  9277. static const BoolMessage& default_instance();
  9278. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  9279. static inline const BoolMessage* internal_default_instance() {
  9280. return reinterpret_cast<const BoolMessage*>(
  9281. &_BoolMessage_default_instance_);
  9282. }
  9283. static constexpr int kIndexInFileMessages =
  9284. 56;
  9285. void UnsafeArenaSwap(BoolMessage* other);
  9286. void Swap(BoolMessage* other);
  9287. friend void swap(BoolMessage& a, BoolMessage& b) {
  9288. a.Swap(&b);
  9289. }
  9290. // implements Message ----------------------------------------------
  9291. inline BoolMessage* New() const final {
  9292. return CreateMaybeMessage<BoolMessage>(NULL);
  9293. }
  9294. BoolMessage* New(::google::protobuf::Arena* arena) const final {
  9295. return CreateMaybeMessage<BoolMessage>(arena);
  9296. }
  9297. void CopyFrom(const ::google::protobuf::Message& from) final;
  9298. void MergeFrom(const ::google::protobuf::Message& from) final;
  9299. void CopyFrom(const BoolMessage& from);
  9300. void MergeFrom(const BoolMessage& from);
  9301. void Clear() final;
  9302. bool IsInitialized() const final;
  9303. size_t ByteSizeLong() const final;
  9304. bool MergePartialFromCodedStream(
  9305. ::google::protobuf::io::CodedInputStream* input) final;
  9306. void SerializeWithCachedSizes(
  9307. ::google::protobuf::io::CodedOutputStream* output) const final;
  9308. ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
  9309. bool deterministic, ::google::protobuf::uint8* target) const final;
  9310. int GetCachedSize() const final { return _cached_size_.Get(); }
  9311. private:
  9312. void SharedCtor();
  9313. void SharedDtor();
  9314. void SetCachedSize(int size) const final;
  9315. void InternalSwap(BoolMessage* other);
  9316. protected:
  9317. explicit BoolMessage(::google::protobuf::Arena* arena);
  9318. private:
  9319. static void ArenaDtor(void* object);
  9320. inline void RegisterArenaDtor(::google::protobuf::Arena* arena);
  9321. private:
  9322. inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
  9323. return _internal_metadata_.arena();
  9324. }
  9325. inline void* MaybeArenaPtr() const {
  9326. return _internal_metadata_.raw_arena_ptr();
  9327. }
  9328. public:
  9329. ::google::protobuf::Metadata GetMetadata() const final;
  9330. // nested types ----------------------------------------------------
  9331. // accessors -------------------------------------------------------
  9332. // optional bool data = 1;
  9333. bool has_data() const;
  9334. void clear_data();
  9335. static const int kDataFieldNumber = 1;
  9336. bool data() const;
  9337. void set_data(bool value);
  9338. // @@protoc_insertion_point(class_scope:protobuf_unittest.BoolMessage)
  9339. private:
  9340. void set_has_data();
  9341. void clear_has_data();
  9342. ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
  9343. template <typename T> friend class ::google::protobuf::Arena::InternalHelper;
  9344. typedef void InternalArenaConstructable_;
  9345. typedef void DestructorSkippable_;
  9346. ::google::protobuf::internal::HasBits<1> _has_bits_;
  9347. mutable ::google::protobuf::internal::CachedSize _cached_size_;
  9348. bool data_;
  9349. friend struct ::protobuf_google_2fprotobuf_2funittest_2eproto::TableStruct;
  9350. };
  9351. // -------------------------------------------------------------------
  9352. class TestOneof_FooGroup : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:protobuf_unittest.TestOneof.FooGroup) */ {
  9353. public:
  9354. TestOneof_FooGroup();
  9355. virtual ~TestOneof_FooGroup();
  9356. TestOneof_FooGroup(const TestOneof_FooGroup& from);
  9357. inline TestOneof_FooGroup& operator=(const TestOneof_FooGroup& from) {
  9358. CopyFrom(from);
  9359. return *this;
  9360. }
  9361. #if LANG_CXX11
  9362. TestOneof_FooGroup(TestOneof_FooGroup&& from) noexcept
  9363. : TestOneof_FooGroup() {
  9364. *this = ::std::move(from);
  9365. }
  9366. inline TestOneof_FooGroup& operator=(TestOneof_FooGroup&& from) noexcept {
  9367. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  9368. if (this != &from) InternalSwap(&from);
  9369. } else {
  9370. CopyFrom(from);
  9371. }
  9372. return *this;
  9373. }
  9374. #endif
  9375. inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
  9376. return _internal_metadata_.unknown_fields();
  9377. }
  9378. inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
  9379. return _internal_metadata_.mutable_unknown_fields();
  9380. }
  9381. inline ::google::protobuf::Arena* GetArena() const final {
  9382. return GetArenaNoVirtual();
  9383. }
  9384. inline void* GetMaybeArenaPointer() const final {
  9385. return MaybeArenaPtr();
  9386. }
  9387. static const ::google::protobuf::Descriptor* descriptor();
  9388. static const TestOneof_FooGroup& default_instance();
  9389. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  9390. static inline const TestOneof_FooGroup* internal_default_instance() {
  9391. return reinterpret_cast<const TestOneof_FooGroup*>(
  9392. &_TestOneof_FooGroup_default_instance_);
  9393. }
  9394. static constexpr int kIndexInFileMessages =
  9395. 57;
  9396. void UnsafeArenaSwap(TestOneof_FooGroup* other);
  9397. void Swap(TestOneof_FooGroup* other);
  9398. friend void swap(TestOneof_FooGroup& a, TestOneof_FooGroup& b) {
  9399. a.Swap(&b);
  9400. }
  9401. // implements Message ----------------------------------------------
  9402. inline TestOneof_FooGroup* New() const final {
  9403. return CreateMaybeMessage<TestOneof_FooGroup>(NULL);
  9404. }
  9405. TestOneof_FooGroup* New(::google::protobuf::Arena* arena) const final {
  9406. return CreateMaybeMessage<TestOneof_FooGroup>(arena);
  9407. }
  9408. void CopyFrom(const ::google::protobuf::Message& from) final;
  9409. void MergeFrom(const ::google::protobuf::Message& from) final;
  9410. void CopyFrom(const TestOneof_FooGroup& from);
  9411. void MergeFrom(const TestOneof_FooGroup& from);
  9412. void Clear() final;
  9413. bool IsInitialized() const final;
  9414. size_t ByteSizeLong() const final;
  9415. bool MergePartialFromCodedStream(
  9416. ::google::protobuf::io::CodedInputStream* input) final;
  9417. void SerializeWithCachedSizes(
  9418. ::google::protobuf::io::CodedOutputStream* output) const final;
  9419. ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
  9420. bool deterministic, ::google::protobuf::uint8* target) const final;
  9421. int GetCachedSize() const final { return _cached_size_.Get(); }
  9422. private:
  9423. void SharedCtor();
  9424. void SharedDtor();
  9425. void SetCachedSize(int size) const final;
  9426. void InternalSwap(TestOneof_FooGroup* other);
  9427. protected:
  9428. explicit TestOneof_FooGroup(::google::protobuf::Arena* arena);
  9429. private:
  9430. static void ArenaDtor(void* object);
  9431. inline void RegisterArenaDtor(::google::protobuf::Arena* arena);
  9432. private:
  9433. inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
  9434. return _internal_metadata_.arena();
  9435. }
  9436. inline void* MaybeArenaPtr() const {
  9437. return _internal_metadata_.raw_arena_ptr();
  9438. }
  9439. public:
  9440. ::google::protobuf::Metadata GetMetadata() const final;
  9441. // nested types ----------------------------------------------------
  9442. // accessors -------------------------------------------------------
  9443. // optional string b = 6;
  9444. bool has_b() const;
  9445. void clear_b();
  9446. static const int kBFieldNumber = 6;
  9447. const ::std::string& b() const;
  9448. void set_b(const ::std::string& value);
  9449. #if LANG_CXX11
  9450. void set_b(::std::string&& value);
  9451. #endif
  9452. void set_b(const char* value);
  9453. void set_b(const char* value, size_t size);
  9454. ::std::string* mutable_b();
  9455. ::std::string* release_b();
  9456. void set_allocated_b(::std::string* b);
  9457. PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
  9458. " string fields are deprecated and will be removed in a"
  9459. " future release.")
  9460. ::std::string* unsafe_arena_release_b();
  9461. PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
  9462. " string fields are deprecated and will be removed in a"
  9463. " future release.")
  9464. void unsafe_arena_set_allocated_b(
  9465. ::std::string* b);
  9466. // optional int32 a = 5;
  9467. bool has_a() const;
  9468. void clear_a();
  9469. static const int kAFieldNumber = 5;
  9470. ::google::protobuf::int32 a() const;
  9471. void set_a(::google::protobuf::int32 value);
  9472. // @@protoc_insertion_point(class_scope:protobuf_unittest.TestOneof.FooGroup)
  9473. private:
  9474. void set_has_a();
  9475. void clear_has_a();
  9476. void set_has_b();
  9477. void clear_has_b();
  9478. ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
  9479. template <typename T> friend class ::google::protobuf::Arena::InternalHelper;
  9480. typedef void InternalArenaConstructable_;
  9481. typedef void DestructorSkippable_;
  9482. ::google::protobuf::internal::HasBits<1> _has_bits_;
  9483. mutable ::google::protobuf::internal::CachedSize _cached_size_;
  9484. ::google::protobuf::internal::ArenaStringPtr b_;
  9485. ::google::protobuf::int32 a_;
  9486. friend struct ::protobuf_google_2fprotobuf_2funittest_2eproto::TableStruct;
  9487. };
  9488. // -------------------------------------------------------------------
  9489. class TestOneof : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:protobuf_unittest.TestOneof) */ {
  9490. public:
  9491. TestOneof();
  9492. virtual ~TestOneof();
  9493. TestOneof(const TestOneof& from);
  9494. inline TestOneof& operator=(const TestOneof& from) {
  9495. CopyFrom(from);
  9496. return *this;
  9497. }
  9498. #if LANG_CXX11
  9499. TestOneof(TestOneof&& from) noexcept
  9500. : TestOneof() {
  9501. *this = ::std::move(from);
  9502. }
  9503. inline TestOneof& operator=(TestOneof&& from) noexcept {
  9504. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  9505. if (this != &from) InternalSwap(&from);
  9506. } else {
  9507. CopyFrom(from);
  9508. }
  9509. return *this;
  9510. }
  9511. #endif
  9512. inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
  9513. return _internal_metadata_.unknown_fields();
  9514. }
  9515. inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
  9516. return _internal_metadata_.mutable_unknown_fields();
  9517. }
  9518. inline ::google::protobuf::Arena* GetArena() const final {
  9519. return GetArenaNoVirtual();
  9520. }
  9521. inline void* GetMaybeArenaPointer() const final {
  9522. return MaybeArenaPtr();
  9523. }
  9524. static const ::google::protobuf::Descriptor* descriptor();
  9525. static const TestOneof& default_instance();
  9526. enum FooCase {
  9527. kFooInt = 1,
  9528. kFooString = 2,
  9529. kFooMessage = 3,
  9530. kFoogroup = 4,
  9531. FOO_NOT_SET = 0,
  9532. };
  9533. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  9534. static inline const TestOneof* internal_default_instance() {
  9535. return reinterpret_cast<const TestOneof*>(
  9536. &_TestOneof_default_instance_);
  9537. }
  9538. static constexpr int kIndexInFileMessages =
  9539. 58;
  9540. void UnsafeArenaSwap(TestOneof* other);
  9541. void Swap(TestOneof* other);
  9542. friend void swap(TestOneof& a, TestOneof& b) {
  9543. a.Swap(&b);
  9544. }
  9545. // implements Message ----------------------------------------------
  9546. inline TestOneof* New() const final {
  9547. return CreateMaybeMessage<TestOneof>(NULL);
  9548. }
  9549. TestOneof* New(::google::protobuf::Arena* arena) const final {
  9550. return CreateMaybeMessage<TestOneof>(arena);
  9551. }
  9552. void CopyFrom(const ::google::protobuf::Message& from) final;
  9553. void MergeFrom(const ::google::protobuf::Message& from) final;
  9554. void CopyFrom(const TestOneof& from);
  9555. void MergeFrom(const TestOneof& from);
  9556. void Clear() final;
  9557. bool IsInitialized() const final;
  9558. size_t ByteSizeLong() const final;
  9559. bool MergePartialFromCodedStream(
  9560. ::google::protobuf::io::CodedInputStream* input) final;
  9561. void SerializeWithCachedSizes(
  9562. ::google::protobuf::io::CodedOutputStream* output) const final;
  9563. ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
  9564. bool deterministic, ::google::protobuf::uint8* target) const final;
  9565. int GetCachedSize() const final { return _cached_size_.Get(); }
  9566. private:
  9567. void SharedCtor();
  9568. void SharedDtor();
  9569. void SetCachedSize(int size) const final;
  9570. void InternalSwap(TestOneof* other);
  9571. protected:
  9572. explicit TestOneof(::google::protobuf::Arena* arena);
  9573. private:
  9574. static void ArenaDtor(void* object);
  9575. inline void RegisterArenaDtor(::google::protobuf::Arena* arena);
  9576. private:
  9577. inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
  9578. return _internal_metadata_.arena();
  9579. }
  9580. inline void* MaybeArenaPtr() const {
  9581. return _internal_metadata_.raw_arena_ptr();
  9582. }
  9583. public:
  9584. ::google::protobuf::Metadata GetMetadata() const final;
  9585. // nested types ----------------------------------------------------
  9586. typedef TestOneof_FooGroup FooGroup;
  9587. // accessors -------------------------------------------------------
  9588. // optional int32 foo_int = 1;
  9589. bool has_foo_int() const;
  9590. void clear_foo_int();
  9591. static const int kFooIntFieldNumber = 1;
  9592. ::google::protobuf::int32 foo_int() const;
  9593. void set_foo_int(::google::protobuf::int32 value);
  9594. // optional string foo_string = 2;
  9595. bool has_foo_string() const;
  9596. void clear_foo_string();
  9597. static const int kFooStringFieldNumber = 2;
  9598. const ::std::string& foo_string() const;
  9599. void set_foo_string(const ::std::string& value);
  9600. #if LANG_CXX11
  9601. void set_foo_string(::std::string&& value);
  9602. #endif
  9603. void set_foo_string(const char* value);
  9604. void set_foo_string(const char* value, size_t size);
  9605. ::std::string* mutable_foo_string();
  9606. ::std::string* release_foo_string();
  9607. void set_allocated_foo_string(::std::string* foo_string);
  9608. PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
  9609. " string fields are deprecated and will be removed in a"
  9610. " future release.")
  9611. ::std::string* unsafe_arena_release_foo_string();
  9612. PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
  9613. " string fields are deprecated and will be removed in a"
  9614. " future release.")
  9615. void unsafe_arena_set_allocated_foo_string(
  9616. ::std::string* foo_string);
  9617. // optional .protobuf_unittest.TestAllTypes foo_message = 3;
  9618. bool has_foo_message() const;
  9619. void clear_foo_message();
  9620. static const int kFooMessageFieldNumber = 3;
  9621. private:
  9622. const ::protobuf_unittest::TestAllTypes& _internal_foo_message() const;
  9623. public:
  9624. const ::protobuf_unittest::TestAllTypes& foo_message() const;
  9625. ::protobuf_unittest::TestAllTypes* release_foo_message();
  9626. ::protobuf_unittest::TestAllTypes* mutable_foo_message();
  9627. void set_allocated_foo_message(::protobuf_unittest::TestAllTypes* foo_message);
  9628. void unsafe_arena_set_allocated_foo_message(
  9629. ::protobuf_unittest::TestAllTypes* foo_message);
  9630. ::protobuf_unittest::TestAllTypes* unsafe_arena_release_foo_message();
  9631. // optional group FooGroup = 4 { ... };
  9632. bool has_foogroup() const;
  9633. void clear_foogroup();
  9634. static const int kFoogroupFieldNumber = 4;
  9635. private:
  9636. const ::protobuf_unittest::TestOneof_FooGroup& _internal_foogroup() const;
  9637. public:
  9638. const ::protobuf_unittest::TestOneof_FooGroup& foogroup() const;
  9639. ::protobuf_unittest::TestOneof_FooGroup* release_foogroup();
  9640. ::protobuf_unittest::TestOneof_FooGroup* mutable_foogroup();
  9641. void set_allocated_foogroup(::protobuf_unittest::TestOneof_FooGroup* foogroup);
  9642. void unsafe_arena_set_allocated_foogroup(
  9643. ::protobuf_unittest::TestOneof_FooGroup* foogroup);
  9644. ::protobuf_unittest::TestOneof_FooGroup* unsafe_arena_release_foogroup();
  9645. void clear_foo();
  9646. FooCase foo_case() const;
  9647. // @@protoc_insertion_point(class_scope:protobuf_unittest.TestOneof)
  9648. private:
  9649. void set_has_foo_int();
  9650. void set_has_foo_string();
  9651. void set_has_foo_message();
  9652. void set_has_foogroup();
  9653. inline bool has_foo() const;
  9654. inline void clear_has_foo();
  9655. ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
  9656. template <typename T> friend class ::google::protobuf::Arena::InternalHelper;
  9657. typedef void InternalArenaConstructable_;
  9658. typedef void DestructorSkippable_;
  9659. ::google::protobuf::internal::HasBits<1> _has_bits_;
  9660. mutable ::google::protobuf::internal::CachedSize _cached_size_;
  9661. union FooUnion {
  9662. FooUnion() {}
  9663. ::google::protobuf::int32 foo_int_;
  9664. ::google::protobuf::internal::ArenaStringPtr foo_string_;
  9665. ::protobuf_unittest::TestAllTypes* foo_message_;
  9666. ::protobuf_unittest::TestOneof_FooGroup* foogroup_;
  9667. } foo_;
  9668. ::google::protobuf::uint32 _oneof_case_[1];
  9669. friend struct ::protobuf_google_2fprotobuf_2funittest_2eproto::TableStruct;
  9670. };
  9671. // -------------------------------------------------------------------
  9672. class TestOneofBackwardsCompatible_FooGroup : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:protobuf_unittest.TestOneofBackwardsCompatible.FooGroup) */ {
  9673. public:
  9674. TestOneofBackwardsCompatible_FooGroup();
  9675. virtual ~TestOneofBackwardsCompatible_FooGroup();
  9676. TestOneofBackwardsCompatible_FooGroup(const TestOneofBackwardsCompatible_FooGroup& from);
  9677. inline TestOneofBackwardsCompatible_FooGroup& operator=(const TestOneofBackwardsCompatible_FooGroup& from) {
  9678. CopyFrom(from);
  9679. return *this;
  9680. }
  9681. #if LANG_CXX11
  9682. TestOneofBackwardsCompatible_FooGroup(TestOneofBackwardsCompatible_FooGroup&& from) noexcept
  9683. : TestOneofBackwardsCompatible_FooGroup() {
  9684. *this = ::std::move(from);
  9685. }
  9686. inline TestOneofBackwardsCompatible_FooGroup& operator=(TestOneofBackwardsCompatible_FooGroup&& from) noexcept {
  9687. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  9688. if (this != &from) InternalSwap(&from);
  9689. } else {
  9690. CopyFrom(from);
  9691. }
  9692. return *this;
  9693. }
  9694. #endif
  9695. inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
  9696. return _internal_metadata_.unknown_fields();
  9697. }
  9698. inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
  9699. return _internal_metadata_.mutable_unknown_fields();
  9700. }
  9701. inline ::google::protobuf::Arena* GetArena() const final {
  9702. return GetArenaNoVirtual();
  9703. }
  9704. inline void* GetMaybeArenaPointer() const final {
  9705. return MaybeArenaPtr();
  9706. }
  9707. static const ::google::protobuf::Descriptor* descriptor();
  9708. static const TestOneofBackwardsCompatible_FooGroup& default_instance();
  9709. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  9710. static inline const TestOneofBackwardsCompatible_FooGroup* internal_default_instance() {
  9711. return reinterpret_cast<const TestOneofBackwardsCompatible_FooGroup*>(
  9712. &_TestOneofBackwardsCompatible_FooGroup_default_instance_);
  9713. }
  9714. static constexpr int kIndexInFileMessages =
  9715. 59;
  9716. void UnsafeArenaSwap(TestOneofBackwardsCompatible_FooGroup* other);
  9717. void Swap(TestOneofBackwardsCompatible_FooGroup* other);
  9718. friend void swap(TestOneofBackwardsCompatible_FooGroup& a, TestOneofBackwardsCompatible_FooGroup& b) {
  9719. a.Swap(&b);
  9720. }
  9721. // implements Message ----------------------------------------------
  9722. inline TestOneofBackwardsCompatible_FooGroup* New() const final {
  9723. return CreateMaybeMessage<TestOneofBackwardsCompatible_FooGroup>(NULL);
  9724. }
  9725. TestOneofBackwardsCompatible_FooGroup* New(::google::protobuf::Arena* arena) const final {
  9726. return CreateMaybeMessage<TestOneofBackwardsCompatible_FooGroup>(arena);
  9727. }
  9728. void CopyFrom(const ::google::protobuf::Message& from) final;
  9729. void MergeFrom(const ::google::protobuf::Message& from) final;
  9730. void CopyFrom(const TestOneofBackwardsCompatible_FooGroup& from);
  9731. void MergeFrom(const TestOneofBackwardsCompatible_FooGroup& from);
  9732. void Clear() final;
  9733. bool IsInitialized() const final;
  9734. size_t ByteSizeLong() const final;
  9735. bool MergePartialFromCodedStream(
  9736. ::google::protobuf::io::CodedInputStream* input) final;
  9737. void SerializeWithCachedSizes(
  9738. ::google::protobuf::io::CodedOutputStream* output) const final;
  9739. ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
  9740. bool deterministic, ::google::protobuf::uint8* target) const final;
  9741. int GetCachedSize() const final { return _cached_size_.Get(); }
  9742. private:
  9743. void SharedCtor();
  9744. void SharedDtor();
  9745. void SetCachedSize(int size) const final;
  9746. void InternalSwap(TestOneofBackwardsCompatible_FooGroup* other);
  9747. protected:
  9748. explicit TestOneofBackwardsCompatible_FooGroup(::google::protobuf::Arena* arena);
  9749. private:
  9750. static void ArenaDtor(void* object);
  9751. inline void RegisterArenaDtor(::google::protobuf::Arena* arena);
  9752. private:
  9753. inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
  9754. return _internal_metadata_.arena();
  9755. }
  9756. inline void* MaybeArenaPtr() const {
  9757. return _internal_metadata_.raw_arena_ptr();
  9758. }
  9759. public:
  9760. ::google::protobuf::Metadata GetMetadata() const final;
  9761. // nested types ----------------------------------------------------
  9762. // accessors -------------------------------------------------------
  9763. // optional string b = 6;
  9764. bool has_b() const;
  9765. void clear_b();
  9766. static const int kBFieldNumber = 6;
  9767. const ::std::string& b() const;
  9768. void set_b(const ::std::string& value);
  9769. #if LANG_CXX11
  9770. void set_b(::std::string&& value);
  9771. #endif
  9772. void set_b(const char* value);
  9773. void set_b(const char* value, size_t size);
  9774. ::std::string* mutable_b();
  9775. ::std::string* release_b();
  9776. void set_allocated_b(::std::string* b);
  9777. PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
  9778. " string fields are deprecated and will be removed in a"
  9779. " future release.")
  9780. ::std::string* unsafe_arena_release_b();
  9781. PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
  9782. " string fields are deprecated and will be removed in a"
  9783. " future release.")
  9784. void unsafe_arena_set_allocated_b(
  9785. ::std::string* b);
  9786. // optional int32 a = 5;
  9787. bool has_a() const;
  9788. void clear_a();
  9789. static const int kAFieldNumber = 5;
  9790. ::google::protobuf::int32 a() const;
  9791. void set_a(::google::protobuf::int32 value);
  9792. // @@protoc_insertion_point(class_scope:protobuf_unittest.TestOneofBackwardsCompatible.FooGroup)
  9793. private:
  9794. void set_has_a();
  9795. void clear_has_a();
  9796. void set_has_b();
  9797. void clear_has_b();
  9798. ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
  9799. template <typename T> friend class ::google::protobuf::Arena::InternalHelper;
  9800. typedef void InternalArenaConstructable_;
  9801. typedef void DestructorSkippable_;
  9802. ::google::protobuf::internal::HasBits<1> _has_bits_;
  9803. mutable ::google::protobuf::internal::CachedSize _cached_size_;
  9804. ::google::protobuf::internal::ArenaStringPtr b_;
  9805. ::google::protobuf::int32 a_;
  9806. friend struct ::protobuf_google_2fprotobuf_2funittest_2eproto::TableStruct;
  9807. };
  9808. // -------------------------------------------------------------------
  9809. class TestOneofBackwardsCompatible : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:protobuf_unittest.TestOneofBackwardsCompatible) */ {
  9810. public:
  9811. TestOneofBackwardsCompatible();
  9812. virtual ~TestOneofBackwardsCompatible();
  9813. TestOneofBackwardsCompatible(const TestOneofBackwardsCompatible& from);
  9814. inline TestOneofBackwardsCompatible& operator=(const TestOneofBackwardsCompatible& from) {
  9815. CopyFrom(from);
  9816. return *this;
  9817. }
  9818. #if LANG_CXX11
  9819. TestOneofBackwardsCompatible(TestOneofBackwardsCompatible&& from) noexcept
  9820. : TestOneofBackwardsCompatible() {
  9821. *this = ::std::move(from);
  9822. }
  9823. inline TestOneofBackwardsCompatible& operator=(TestOneofBackwardsCompatible&& from) noexcept {
  9824. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  9825. if (this != &from) InternalSwap(&from);
  9826. } else {
  9827. CopyFrom(from);
  9828. }
  9829. return *this;
  9830. }
  9831. #endif
  9832. inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
  9833. return _internal_metadata_.unknown_fields();
  9834. }
  9835. inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
  9836. return _internal_metadata_.mutable_unknown_fields();
  9837. }
  9838. inline ::google::protobuf::Arena* GetArena() const final {
  9839. return GetArenaNoVirtual();
  9840. }
  9841. inline void* GetMaybeArenaPointer() const final {
  9842. return MaybeArenaPtr();
  9843. }
  9844. static const ::google::protobuf::Descriptor* descriptor();
  9845. static const TestOneofBackwardsCompatible& default_instance();
  9846. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  9847. static inline const TestOneofBackwardsCompatible* internal_default_instance() {
  9848. return reinterpret_cast<const TestOneofBackwardsCompatible*>(
  9849. &_TestOneofBackwardsCompatible_default_instance_);
  9850. }
  9851. static constexpr int kIndexInFileMessages =
  9852. 60;
  9853. void UnsafeArenaSwap(TestOneofBackwardsCompatible* other);
  9854. void Swap(TestOneofBackwardsCompatible* other);
  9855. friend void swap(TestOneofBackwardsCompatible& a, TestOneofBackwardsCompatible& b) {
  9856. a.Swap(&b);
  9857. }
  9858. // implements Message ----------------------------------------------
  9859. inline TestOneofBackwardsCompatible* New() const final {
  9860. return CreateMaybeMessage<TestOneofBackwardsCompatible>(NULL);
  9861. }
  9862. TestOneofBackwardsCompatible* New(::google::protobuf::Arena* arena) const final {
  9863. return CreateMaybeMessage<TestOneofBackwardsCompatible>(arena);
  9864. }
  9865. void CopyFrom(const ::google::protobuf::Message& from) final;
  9866. void MergeFrom(const ::google::protobuf::Message& from) final;
  9867. void CopyFrom(const TestOneofBackwardsCompatible& from);
  9868. void MergeFrom(const TestOneofBackwardsCompatible& from);
  9869. void Clear() final;
  9870. bool IsInitialized() const final;
  9871. size_t ByteSizeLong() const final;
  9872. bool MergePartialFromCodedStream(
  9873. ::google::protobuf::io::CodedInputStream* input) final;
  9874. void SerializeWithCachedSizes(
  9875. ::google::protobuf::io::CodedOutputStream* output) const final;
  9876. ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
  9877. bool deterministic, ::google::protobuf::uint8* target) const final;
  9878. int GetCachedSize() const final { return _cached_size_.Get(); }
  9879. private:
  9880. void SharedCtor();
  9881. void SharedDtor();
  9882. void SetCachedSize(int size) const final;
  9883. void InternalSwap(TestOneofBackwardsCompatible* other);
  9884. protected:
  9885. explicit TestOneofBackwardsCompatible(::google::protobuf::Arena* arena);
  9886. private:
  9887. static void ArenaDtor(void* object);
  9888. inline void RegisterArenaDtor(::google::protobuf::Arena* arena);
  9889. private:
  9890. inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
  9891. return _internal_metadata_.arena();
  9892. }
  9893. inline void* MaybeArenaPtr() const {
  9894. return _internal_metadata_.raw_arena_ptr();
  9895. }
  9896. public:
  9897. ::google::protobuf::Metadata GetMetadata() const final;
  9898. // nested types ----------------------------------------------------
  9899. typedef TestOneofBackwardsCompatible_FooGroup FooGroup;
  9900. // accessors -------------------------------------------------------
  9901. // optional string foo_string = 2;
  9902. bool has_foo_string() const;
  9903. void clear_foo_string();
  9904. static const int kFooStringFieldNumber = 2;
  9905. const ::std::string& foo_string() const;
  9906. void set_foo_string(const ::std::string& value);
  9907. #if LANG_CXX11
  9908. void set_foo_string(::std::string&& value);
  9909. #endif
  9910. void set_foo_string(const char* value);
  9911. void set_foo_string(const char* value, size_t size);
  9912. ::std::string* mutable_foo_string();
  9913. ::std::string* release_foo_string();
  9914. void set_allocated_foo_string(::std::string* foo_string);
  9915. PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
  9916. " string fields are deprecated and will be removed in a"
  9917. " future release.")
  9918. ::std::string* unsafe_arena_release_foo_string();
  9919. PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
  9920. " string fields are deprecated and will be removed in a"
  9921. " future release.")
  9922. void unsafe_arena_set_allocated_foo_string(
  9923. ::std::string* foo_string);
  9924. // optional .protobuf_unittest.TestAllTypes foo_message = 3;
  9925. bool has_foo_message() const;
  9926. void clear_foo_message();
  9927. static const int kFooMessageFieldNumber = 3;
  9928. private:
  9929. const ::protobuf_unittest::TestAllTypes& _internal_foo_message() const;
  9930. public:
  9931. const ::protobuf_unittest::TestAllTypes& foo_message() const;
  9932. ::protobuf_unittest::TestAllTypes* release_foo_message();
  9933. ::protobuf_unittest::TestAllTypes* mutable_foo_message();
  9934. void set_allocated_foo_message(::protobuf_unittest::TestAllTypes* foo_message);
  9935. void unsafe_arena_set_allocated_foo_message(
  9936. ::protobuf_unittest::TestAllTypes* foo_message);
  9937. ::protobuf_unittest::TestAllTypes* unsafe_arena_release_foo_message();
  9938. // optional group FooGroup = 4 { ... };
  9939. bool has_foogroup() const;
  9940. void clear_foogroup();
  9941. static const int kFoogroupFieldNumber = 4;
  9942. private:
  9943. const ::protobuf_unittest::TestOneofBackwardsCompatible_FooGroup& _internal_foogroup() const;
  9944. public:
  9945. const ::protobuf_unittest::TestOneofBackwardsCompatible_FooGroup& foogroup() const;
  9946. ::protobuf_unittest::TestOneofBackwardsCompatible_FooGroup* release_foogroup();
  9947. ::protobuf_unittest::TestOneofBackwardsCompatible_FooGroup* mutable_foogroup();
  9948. void set_allocated_foogroup(::protobuf_unittest::TestOneofBackwardsCompatible_FooGroup* foogroup);
  9949. void unsafe_arena_set_allocated_foogroup(
  9950. ::protobuf_unittest::TestOneofBackwardsCompatible_FooGroup* foogroup);
  9951. ::protobuf_unittest::TestOneofBackwardsCompatible_FooGroup* unsafe_arena_release_foogroup();
  9952. // optional int32 foo_int = 1;
  9953. bool has_foo_int() const;
  9954. void clear_foo_int();
  9955. static const int kFooIntFieldNumber = 1;
  9956. ::google::protobuf::int32 foo_int() const;
  9957. void set_foo_int(::google::protobuf::int32 value);
  9958. // @@protoc_insertion_point(class_scope:protobuf_unittest.TestOneofBackwardsCompatible)
  9959. private:
  9960. void set_has_foo_int();
  9961. void clear_has_foo_int();
  9962. void set_has_foo_string();
  9963. void clear_has_foo_string();
  9964. void set_has_foo_message();
  9965. void clear_has_foo_message();
  9966. void set_has_foogroup();
  9967. void clear_has_foogroup();
  9968. ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
  9969. template <typename T> friend class ::google::protobuf::Arena::InternalHelper;
  9970. typedef void InternalArenaConstructable_;
  9971. typedef void DestructorSkippable_;
  9972. ::google::protobuf::internal::HasBits<1> _has_bits_;
  9973. mutable ::google::protobuf::internal::CachedSize _cached_size_;
  9974. ::google::protobuf::internal::ArenaStringPtr foo_string_;
  9975. ::protobuf_unittest::TestAllTypes* foo_message_;
  9976. ::protobuf_unittest::TestOneofBackwardsCompatible_FooGroup* foogroup_;
  9977. ::google::protobuf::int32 foo_int_;
  9978. friend struct ::protobuf_google_2fprotobuf_2funittest_2eproto::TableStruct;
  9979. };
  9980. // -------------------------------------------------------------------
  9981. class TestOneof2_FooGroup : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:protobuf_unittest.TestOneof2.FooGroup) */ {
  9982. public:
  9983. TestOneof2_FooGroup();
  9984. virtual ~TestOneof2_FooGroup();
  9985. TestOneof2_FooGroup(const TestOneof2_FooGroup& from);
  9986. inline TestOneof2_FooGroup& operator=(const TestOneof2_FooGroup& from) {
  9987. CopyFrom(from);
  9988. return *this;
  9989. }
  9990. #if LANG_CXX11
  9991. TestOneof2_FooGroup(TestOneof2_FooGroup&& from) noexcept
  9992. : TestOneof2_FooGroup() {
  9993. *this = ::std::move(from);
  9994. }
  9995. inline TestOneof2_FooGroup& operator=(TestOneof2_FooGroup&& from) noexcept {
  9996. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  9997. if (this != &from) InternalSwap(&from);
  9998. } else {
  9999. CopyFrom(from);
  10000. }
  10001. return *this;
  10002. }
  10003. #endif
  10004. inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
  10005. return _internal_metadata_.unknown_fields();
  10006. }
  10007. inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
  10008. return _internal_metadata_.mutable_unknown_fields();
  10009. }
  10010. inline ::google::protobuf::Arena* GetArena() const final {
  10011. return GetArenaNoVirtual();
  10012. }
  10013. inline void* GetMaybeArenaPointer() const final {
  10014. return MaybeArenaPtr();
  10015. }
  10016. static const ::google::protobuf::Descriptor* descriptor();
  10017. static const TestOneof2_FooGroup& default_instance();
  10018. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  10019. static inline const TestOneof2_FooGroup* internal_default_instance() {
  10020. return reinterpret_cast<const TestOneof2_FooGroup*>(
  10021. &_TestOneof2_FooGroup_default_instance_);
  10022. }
  10023. static constexpr int kIndexInFileMessages =
  10024. 61;
  10025. void UnsafeArenaSwap(TestOneof2_FooGroup* other);
  10026. void Swap(TestOneof2_FooGroup* other);
  10027. friend void swap(TestOneof2_FooGroup& a, TestOneof2_FooGroup& b) {
  10028. a.Swap(&b);
  10029. }
  10030. // implements Message ----------------------------------------------
  10031. inline TestOneof2_FooGroup* New() const final {
  10032. return CreateMaybeMessage<TestOneof2_FooGroup>(NULL);
  10033. }
  10034. TestOneof2_FooGroup* New(::google::protobuf::Arena* arena) const final {
  10035. return CreateMaybeMessage<TestOneof2_FooGroup>(arena);
  10036. }
  10037. void CopyFrom(const ::google::protobuf::Message& from) final;
  10038. void MergeFrom(const ::google::protobuf::Message& from) final;
  10039. void CopyFrom(const TestOneof2_FooGroup& from);
  10040. void MergeFrom(const TestOneof2_FooGroup& from);
  10041. void Clear() final;
  10042. bool IsInitialized() const final;
  10043. size_t ByteSizeLong() const final;
  10044. bool MergePartialFromCodedStream(
  10045. ::google::protobuf::io::CodedInputStream* input) final;
  10046. void SerializeWithCachedSizes(
  10047. ::google::protobuf::io::CodedOutputStream* output) const final;
  10048. ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
  10049. bool deterministic, ::google::protobuf::uint8* target) const final;
  10050. int GetCachedSize() const final { return _cached_size_.Get(); }
  10051. private:
  10052. void SharedCtor();
  10053. void SharedDtor();
  10054. void SetCachedSize(int size) const final;
  10055. void InternalSwap(TestOneof2_FooGroup* other);
  10056. protected:
  10057. explicit TestOneof2_FooGroup(::google::protobuf::Arena* arena);
  10058. private:
  10059. static void ArenaDtor(void* object);
  10060. inline void RegisterArenaDtor(::google::protobuf::Arena* arena);
  10061. private:
  10062. inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
  10063. return _internal_metadata_.arena();
  10064. }
  10065. inline void* MaybeArenaPtr() const {
  10066. return _internal_metadata_.raw_arena_ptr();
  10067. }
  10068. public:
  10069. ::google::protobuf::Metadata GetMetadata() const final;
  10070. // nested types ----------------------------------------------------
  10071. // accessors -------------------------------------------------------
  10072. // optional string b = 10;
  10073. bool has_b() const;
  10074. void clear_b();
  10075. static const int kBFieldNumber = 10;
  10076. const ::std::string& b() const;
  10077. void set_b(const ::std::string& value);
  10078. #if LANG_CXX11
  10079. void set_b(::std::string&& value);
  10080. #endif
  10081. void set_b(const char* value);
  10082. void set_b(const char* value, size_t size);
  10083. ::std::string* mutable_b();
  10084. ::std::string* release_b();
  10085. void set_allocated_b(::std::string* b);
  10086. PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
  10087. " string fields are deprecated and will be removed in a"
  10088. " future release.")
  10089. ::std::string* unsafe_arena_release_b();
  10090. PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
  10091. " string fields are deprecated and will be removed in a"
  10092. " future release.")
  10093. void unsafe_arena_set_allocated_b(
  10094. ::std::string* b);
  10095. // optional int32 a = 9;
  10096. bool has_a() const;
  10097. void clear_a();
  10098. static const int kAFieldNumber = 9;
  10099. ::google::protobuf::int32 a() const;
  10100. void set_a(::google::protobuf::int32 value);
  10101. // @@protoc_insertion_point(class_scope:protobuf_unittest.TestOneof2.FooGroup)
  10102. private:
  10103. void set_has_a();
  10104. void clear_has_a();
  10105. void set_has_b();
  10106. void clear_has_b();
  10107. ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
  10108. template <typename T> friend class ::google::protobuf::Arena::InternalHelper;
  10109. typedef void InternalArenaConstructable_;
  10110. typedef void DestructorSkippable_;
  10111. ::google::protobuf::internal::HasBits<1> _has_bits_;
  10112. mutable ::google::protobuf::internal::CachedSize _cached_size_;
  10113. ::google::protobuf::internal::ArenaStringPtr b_;
  10114. ::google::protobuf::int32 a_;
  10115. friend struct ::protobuf_google_2fprotobuf_2funittest_2eproto::TableStruct;
  10116. };
  10117. // -------------------------------------------------------------------
  10118. class TestOneof2_NestedMessage : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:protobuf_unittest.TestOneof2.NestedMessage) */ {
  10119. public:
  10120. TestOneof2_NestedMessage();
  10121. virtual ~TestOneof2_NestedMessage();
  10122. TestOneof2_NestedMessage(const TestOneof2_NestedMessage& from);
  10123. inline TestOneof2_NestedMessage& operator=(const TestOneof2_NestedMessage& from) {
  10124. CopyFrom(from);
  10125. return *this;
  10126. }
  10127. #if LANG_CXX11
  10128. TestOneof2_NestedMessage(TestOneof2_NestedMessage&& from) noexcept
  10129. : TestOneof2_NestedMessage() {
  10130. *this = ::std::move(from);
  10131. }
  10132. inline TestOneof2_NestedMessage& operator=(TestOneof2_NestedMessage&& from) noexcept {
  10133. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  10134. if (this != &from) InternalSwap(&from);
  10135. } else {
  10136. CopyFrom(from);
  10137. }
  10138. return *this;
  10139. }
  10140. #endif
  10141. inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
  10142. return _internal_metadata_.unknown_fields();
  10143. }
  10144. inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
  10145. return _internal_metadata_.mutable_unknown_fields();
  10146. }
  10147. inline ::google::protobuf::Arena* GetArena() const final {
  10148. return GetArenaNoVirtual();
  10149. }
  10150. inline void* GetMaybeArenaPointer() const final {
  10151. return MaybeArenaPtr();
  10152. }
  10153. static const ::google::protobuf::Descriptor* descriptor();
  10154. static const TestOneof2_NestedMessage& default_instance();
  10155. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  10156. static inline const TestOneof2_NestedMessage* internal_default_instance() {
  10157. return reinterpret_cast<const TestOneof2_NestedMessage*>(
  10158. &_TestOneof2_NestedMessage_default_instance_);
  10159. }
  10160. static constexpr int kIndexInFileMessages =
  10161. 62;
  10162. void UnsafeArenaSwap(TestOneof2_NestedMessage* other);
  10163. void Swap(TestOneof2_NestedMessage* other);
  10164. friend void swap(TestOneof2_NestedMessage& a, TestOneof2_NestedMessage& b) {
  10165. a.Swap(&b);
  10166. }
  10167. // implements Message ----------------------------------------------
  10168. inline TestOneof2_NestedMessage* New() const final {
  10169. return CreateMaybeMessage<TestOneof2_NestedMessage>(NULL);
  10170. }
  10171. TestOneof2_NestedMessage* New(::google::protobuf::Arena* arena) const final {
  10172. return CreateMaybeMessage<TestOneof2_NestedMessage>(arena);
  10173. }
  10174. void CopyFrom(const ::google::protobuf::Message& from) final;
  10175. void MergeFrom(const ::google::protobuf::Message& from) final;
  10176. void CopyFrom(const TestOneof2_NestedMessage& from);
  10177. void MergeFrom(const TestOneof2_NestedMessage& from);
  10178. void Clear() final;
  10179. bool IsInitialized() const final;
  10180. size_t ByteSizeLong() const final;
  10181. bool MergePartialFromCodedStream(
  10182. ::google::protobuf::io::CodedInputStream* input) final;
  10183. void SerializeWithCachedSizes(
  10184. ::google::protobuf::io::CodedOutputStream* output) const final;
  10185. ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
  10186. bool deterministic, ::google::protobuf::uint8* target) const final;
  10187. int GetCachedSize() const final { return _cached_size_.Get(); }
  10188. private:
  10189. void SharedCtor();
  10190. void SharedDtor();
  10191. void SetCachedSize(int size) const final;
  10192. void InternalSwap(TestOneof2_NestedMessage* other);
  10193. protected:
  10194. explicit TestOneof2_NestedMessage(::google::protobuf::Arena* arena);
  10195. private:
  10196. static void ArenaDtor(void* object);
  10197. inline void RegisterArenaDtor(::google::protobuf::Arena* arena);
  10198. private:
  10199. inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
  10200. return _internal_metadata_.arena();
  10201. }
  10202. inline void* MaybeArenaPtr() const {
  10203. return _internal_metadata_.raw_arena_ptr();
  10204. }
  10205. public:
  10206. ::google::protobuf::Metadata GetMetadata() const final;
  10207. // nested types ----------------------------------------------------
  10208. // accessors -------------------------------------------------------
  10209. // repeated int32 corge_int = 2;
  10210. int corge_int_size() const;
  10211. void clear_corge_int();
  10212. static const int kCorgeIntFieldNumber = 2;
  10213. ::google::protobuf::int32 corge_int(int index) const;
  10214. void set_corge_int(int index, ::google::protobuf::int32 value);
  10215. void add_corge_int(::google::protobuf::int32 value);
  10216. const ::google::protobuf::RepeatedField< ::google::protobuf::int32 >&
  10217. corge_int() const;
  10218. ::google::protobuf::RepeatedField< ::google::protobuf::int32 >*
  10219. mutable_corge_int();
  10220. // optional int64 qux_int = 1;
  10221. bool has_qux_int() const;
  10222. void clear_qux_int();
  10223. static const int kQuxIntFieldNumber = 1;
  10224. ::google::protobuf::int64 qux_int() const;
  10225. void set_qux_int(::google::protobuf::int64 value);
  10226. // @@protoc_insertion_point(class_scope:protobuf_unittest.TestOneof2.NestedMessage)
  10227. private:
  10228. void set_has_qux_int();
  10229. void clear_has_qux_int();
  10230. ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
  10231. template <typename T> friend class ::google::protobuf::Arena::InternalHelper;
  10232. typedef void InternalArenaConstructable_;
  10233. typedef void DestructorSkippable_;
  10234. ::google::protobuf::internal::HasBits<1> _has_bits_;
  10235. mutable ::google::protobuf::internal::CachedSize _cached_size_;
  10236. ::google::protobuf::RepeatedField< ::google::protobuf::int32 > corge_int_;
  10237. ::google::protobuf::int64 qux_int_;
  10238. friend struct ::protobuf_google_2fprotobuf_2funittest_2eproto::TableStruct;
  10239. };
  10240. // -------------------------------------------------------------------
  10241. class TestOneof2 : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:protobuf_unittest.TestOneof2) */ {
  10242. public:
  10243. TestOneof2();
  10244. virtual ~TestOneof2();
  10245. TestOneof2(const TestOneof2& from);
  10246. inline TestOneof2& operator=(const TestOneof2& from) {
  10247. CopyFrom(from);
  10248. return *this;
  10249. }
  10250. #if LANG_CXX11
  10251. TestOneof2(TestOneof2&& from) noexcept
  10252. : TestOneof2() {
  10253. *this = ::std::move(from);
  10254. }
  10255. inline TestOneof2& operator=(TestOneof2&& from) noexcept {
  10256. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  10257. if (this != &from) InternalSwap(&from);
  10258. } else {
  10259. CopyFrom(from);
  10260. }
  10261. return *this;
  10262. }
  10263. #endif
  10264. inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
  10265. return _internal_metadata_.unknown_fields();
  10266. }
  10267. inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
  10268. return _internal_metadata_.mutable_unknown_fields();
  10269. }
  10270. inline ::google::protobuf::Arena* GetArena() const final {
  10271. return GetArenaNoVirtual();
  10272. }
  10273. inline void* GetMaybeArenaPointer() const final {
  10274. return MaybeArenaPtr();
  10275. }
  10276. static const ::google::protobuf::Descriptor* descriptor();
  10277. static const TestOneof2& default_instance();
  10278. enum FooCase {
  10279. kFooInt = 1,
  10280. kFooString = 2,
  10281. kFooCord = 3,
  10282. kFooStringPiece = 4,
  10283. kFooBytes = 5,
  10284. kFooEnum = 6,
  10285. kFooMessage = 7,
  10286. kFoogroup = 8,
  10287. kFooLazyMessage = 11,
  10288. FOO_NOT_SET = 0,
  10289. };
  10290. enum BarCase {
  10291. kBarInt = 12,
  10292. kBarString = 13,
  10293. kBarCord = 14,
  10294. kBarStringPiece = 15,
  10295. kBarBytes = 16,
  10296. kBarEnum = 17,
  10297. BAR_NOT_SET = 0,
  10298. };
  10299. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  10300. static inline const TestOneof2* internal_default_instance() {
  10301. return reinterpret_cast<const TestOneof2*>(
  10302. &_TestOneof2_default_instance_);
  10303. }
  10304. static constexpr int kIndexInFileMessages =
  10305. 63;
  10306. void UnsafeArenaSwap(TestOneof2* other);
  10307. void Swap(TestOneof2* other);
  10308. friend void swap(TestOneof2& a, TestOneof2& b) {
  10309. a.Swap(&b);
  10310. }
  10311. // implements Message ----------------------------------------------
  10312. inline TestOneof2* New() const final {
  10313. return CreateMaybeMessage<TestOneof2>(NULL);
  10314. }
  10315. TestOneof2* New(::google::protobuf::Arena* arena) const final {
  10316. return CreateMaybeMessage<TestOneof2>(arena);
  10317. }
  10318. void CopyFrom(const ::google::protobuf::Message& from) final;
  10319. void MergeFrom(const ::google::protobuf::Message& from) final;
  10320. void CopyFrom(const TestOneof2& from);
  10321. void MergeFrom(const TestOneof2& from);
  10322. void Clear() final;
  10323. bool IsInitialized() const final;
  10324. size_t ByteSizeLong() const final;
  10325. bool MergePartialFromCodedStream(
  10326. ::google::protobuf::io::CodedInputStream* input) final;
  10327. void SerializeWithCachedSizes(
  10328. ::google::protobuf::io::CodedOutputStream* output) const final;
  10329. ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
  10330. bool deterministic, ::google::protobuf::uint8* target) const final;
  10331. int GetCachedSize() const final { return _cached_size_.Get(); }
  10332. private:
  10333. void SharedCtor();
  10334. void SharedDtor();
  10335. void SetCachedSize(int size) const final;
  10336. void InternalSwap(TestOneof2* other);
  10337. protected:
  10338. explicit TestOneof2(::google::protobuf::Arena* arena);
  10339. private:
  10340. static void ArenaDtor(void* object);
  10341. inline void RegisterArenaDtor(::google::protobuf::Arena* arena);
  10342. private:
  10343. inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
  10344. return _internal_metadata_.arena();
  10345. }
  10346. inline void* MaybeArenaPtr() const {
  10347. return _internal_metadata_.raw_arena_ptr();
  10348. }
  10349. public:
  10350. ::google::protobuf::Metadata GetMetadata() const final;
  10351. // nested types ----------------------------------------------------
  10352. typedef TestOneof2_FooGroup FooGroup;
  10353. typedef TestOneof2_NestedMessage NestedMessage;
  10354. typedef TestOneof2_NestedEnum NestedEnum;
  10355. static const NestedEnum FOO =
  10356. TestOneof2_NestedEnum_FOO;
  10357. static const NestedEnum BAR =
  10358. TestOneof2_NestedEnum_BAR;
  10359. static const NestedEnum BAZ =
  10360. TestOneof2_NestedEnum_BAZ;
  10361. static inline bool NestedEnum_IsValid(int value) {
  10362. return TestOneof2_NestedEnum_IsValid(value);
  10363. }
  10364. static const NestedEnum NestedEnum_MIN =
  10365. TestOneof2_NestedEnum_NestedEnum_MIN;
  10366. static const NestedEnum NestedEnum_MAX =
  10367. TestOneof2_NestedEnum_NestedEnum_MAX;
  10368. static const int NestedEnum_ARRAYSIZE =
  10369. TestOneof2_NestedEnum_NestedEnum_ARRAYSIZE;
  10370. static inline const ::google::protobuf::EnumDescriptor*
  10371. NestedEnum_descriptor() {
  10372. return TestOneof2_NestedEnum_descriptor();
  10373. }
  10374. static inline const ::std::string& NestedEnum_Name(NestedEnum value) {
  10375. return TestOneof2_NestedEnum_Name(value);
  10376. }
  10377. static inline bool NestedEnum_Parse(const ::std::string& name,
  10378. NestedEnum* value) {
  10379. return TestOneof2_NestedEnum_Parse(name, value);
  10380. }
  10381. // accessors -------------------------------------------------------
  10382. // optional string baz_string = 19 [default = "BAZ"];
  10383. bool has_baz_string() const;
  10384. void clear_baz_string();
  10385. static const int kBazStringFieldNumber = 19;
  10386. const ::std::string& baz_string() const;
  10387. void set_baz_string(const ::std::string& value);
  10388. #if LANG_CXX11
  10389. void set_baz_string(::std::string&& value);
  10390. #endif
  10391. void set_baz_string(const char* value);
  10392. void set_baz_string(const char* value, size_t size);
  10393. ::std::string* mutable_baz_string();
  10394. ::std::string* release_baz_string();
  10395. void set_allocated_baz_string(::std::string* baz_string);
  10396. PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
  10397. " string fields are deprecated and will be removed in a"
  10398. " future release.")
  10399. ::std::string* unsafe_arena_release_baz_string();
  10400. PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
  10401. " string fields are deprecated and will be removed in a"
  10402. " future release.")
  10403. void unsafe_arena_set_allocated_baz_string(
  10404. ::std::string* baz_string);
  10405. // optional int32 baz_int = 18;
  10406. bool has_baz_int() const;
  10407. void clear_baz_int();
  10408. static const int kBazIntFieldNumber = 18;
  10409. ::google::protobuf::int32 baz_int() const;
  10410. void set_baz_int(::google::protobuf::int32 value);
  10411. // optional int32 foo_int = 1;
  10412. bool has_foo_int() const;
  10413. void clear_foo_int();
  10414. static const int kFooIntFieldNumber = 1;
  10415. ::google::protobuf::int32 foo_int() const;
  10416. void set_foo_int(::google::protobuf::int32 value);
  10417. // optional string foo_string = 2;
  10418. bool has_foo_string() const;
  10419. void clear_foo_string();
  10420. static const int kFooStringFieldNumber = 2;
  10421. const ::std::string& foo_string() const;
  10422. void set_foo_string(const ::std::string& value);
  10423. #if LANG_CXX11
  10424. void set_foo_string(::std::string&& value);
  10425. #endif
  10426. void set_foo_string(const char* value);
  10427. void set_foo_string(const char* value, size_t size);
  10428. ::std::string* mutable_foo_string();
  10429. ::std::string* release_foo_string();
  10430. void set_allocated_foo_string(::std::string* foo_string);
  10431. PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
  10432. " string fields are deprecated and will be removed in a"
  10433. " future release.")
  10434. ::std::string* unsafe_arena_release_foo_string();
  10435. PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
  10436. " string fields are deprecated and will be removed in a"
  10437. " future release.")
  10438. void unsafe_arena_set_allocated_foo_string(
  10439. ::std::string* foo_string);
  10440. // optional string foo_cord = 3 [ctype = CORD];
  10441. bool has_foo_cord() const;
  10442. void clear_foo_cord();
  10443. static const int kFooCordFieldNumber = 3;
  10444. private:
  10445. // Hidden due to unknown ctype option.
  10446. const ::std::string& foo_cord() const;
  10447. void set_foo_cord(const ::std::string& value);
  10448. #if LANG_CXX11
  10449. void set_foo_cord(::std::string&& value);
  10450. #endif
  10451. void set_foo_cord(const char* value);
  10452. void set_foo_cord(const char* value, size_t size);
  10453. ::std::string* mutable_foo_cord();
  10454. ::std::string* release_foo_cord();
  10455. void set_allocated_foo_cord(::std::string* foo_cord);
  10456. PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
  10457. " string fields are deprecated and will be removed in a"
  10458. " future release.")
  10459. ::std::string* unsafe_arena_release_foo_cord();
  10460. PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
  10461. " string fields are deprecated and will be removed in a"
  10462. " future release.")
  10463. void unsafe_arena_set_allocated_foo_cord(
  10464. ::std::string* foo_cord);
  10465. public:
  10466. // optional string foo_string_piece = 4 [ctype = STRING_PIECE];
  10467. bool has_foo_string_piece() const;
  10468. void clear_foo_string_piece();
  10469. static const int kFooStringPieceFieldNumber = 4;
  10470. private:
  10471. // Hidden due to unknown ctype option.
  10472. const ::std::string& foo_string_piece() const;
  10473. void set_foo_string_piece(const ::std::string& value);
  10474. #if LANG_CXX11
  10475. void set_foo_string_piece(::std::string&& value);
  10476. #endif
  10477. void set_foo_string_piece(const char* value);
  10478. void set_foo_string_piece(const char* value, size_t size);
  10479. ::std::string* mutable_foo_string_piece();
  10480. ::std::string* release_foo_string_piece();
  10481. void set_allocated_foo_string_piece(::std::string* foo_string_piece);
  10482. PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
  10483. " string fields are deprecated and will be removed in a"
  10484. " future release.")
  10485. ::std::string* unsafe_arena_release_foo_string_piece();
  10486. PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
  10487. " string fields are deprecated and will be removed in a"
  10488. " future release.")
  10489. void unsafe_arena_set_allocated_foo_string_piece(
  10490. ::std::string* foo_string_piece);
  10491. public:
  10492. // optional bytes foo_bytes = 5;
  10493. bool has_foo_bytes() const;
  10494. void clear_foo_bytes();
  10495. static const int kFooBytesFieldNumber = 5;
  10496. const ::std::string& foo_bytes() const;
  10497. void set_foo_bytes(const ::std::string& value);
  10498. #if LANG_CXX11
  10499. void set_foo_bytes(::std::string&& value);
  10500. #endif
  10501. void set_foo_bytes(const char* value);
  10502. void set_foo_bytes(const void* value, size_t size);
  10503. ::std::string* mutable_foo_bytes();
  10504. ::std::string* release_foo_bytes();
  10505. void set_allocated_foo_bytes(::std::string* foo_bytes);
  10506. PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
  10507. " string fields are deprecated and will be removed in a"
  10508. " future release.")
  10509. ::std::string* unsafe_arena_release_foo_bytes();
  10510. PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
  10511. " string fields are deprecated and will be removed in a"
  10512. " future release.")
  10513. void unsafe_arena_set_allocated_foo_bytes(
  10514. ::std::string* foo_bytes);
  10515. // optional .protobuf_unittest.TestOneof2.NestedEnum foo_enum = 6;
  10516. bool has_foo_enum() const;
  10517. void clear_foo_enum();
  10518. static const int kFooEnumFieldNumber = 6;
  10519. ::protobuf_unittest::TestOneof2_NestedEnum foo_enum() const;
  10520. void set_foo_enum(::protobuf_unittest::TestOneof2_NestedEnum value);
  10521. // optional .protobuf_unittest.TestOneof2.NestedMessage foo_message = 7;
  10522. bool has_foo_message() const;
  10523. void clear_foo_message();
  10524. static const int kFooMessageFieldNumber = 7;
  10525. private:
  10526. const ::protobuf_unittest::TestOneof2_NestedMessage& _internal_foo_message() const;
  10527. public:
  10528. const ::protobuf_unittest::TestOneof2_NestedMessage& foo_message() const;
  10529. ::protobuf_unittest::TestOneof2_NestedMessage* release_foo_message();
  10530. ::protobuf_unittest::TestOneof2_NestedMessage* mutable_foo_message();
  10531. void set_allocated_foo_message(::protobuf_unittest::TestOneof2_NestedMessage* foo_message);
  10532. void unsafe_arena_set_allocated_foo_message(
  10533. ::protobuf_unittest::TestOneof2_NestedMessage* foo_message);
  10534. ::protobuf_unittest::TestOneof2_NestedMessage* unsafe_arena_release_foo_message();
  10535. // optional group FooGroup = 8 { ... };
  10536. bool has_foogroup() const;
  10537. void clear_foogroup();
  10538. static const int kFoogroupFieldNumber = 8;
  10539. private:
  10540. const ::protobuf_unittest::TestOneof2_FooGroup& _internal_foogroup() const;
  10541. public:
  10542. const ::protobuf_unittest::TestOneof2_FooGroup& foogroup() const;
  10543. ::protobuf_unittest::TestOneof2_FooGroup* release_foogroup();
  10544. ::protobuf_unittest::TestOneof2_FooGroup* mutable_foogroup();
  10545. void set_allocated_foogroup(::protobuf_unittest::TestOneof2_FooGroup* foogroup);
  10546. void unsafe_arena_set_allocated_foogroup(
  10547. ::protobuf_unittest::TestOneof2_FooGroup* foogroup);
  10548. ::protobuf_unittest::TestOneof2_FooGroup* unsafe_arena_release_foogroup();
  10549. // optional .protobuf_unittest.TestOneof2.NestedMessage foo_lazy_message = 11 [lazy = true];
  10550. bool has_foo_lazy_message() const;
  10551. void clear_foo_lazy_message();
  10552. static const int kFooLazyMessageFieldNumber = 11;
  10553. private:
  10554. const ::protobuf_unittest::TestOneof2_NestedMessage& _internal_foo_lazy_message() const;
  10555. public:
  10556. const ::protobuf_unittest::TestOneof2_NestedMessage& foo_lazy_message() const;
  10557. ::protobuf_unittest::TestOneof2_NestedMessage* release_foo_lazy_message();
  10558. ::protobuf_unittest::TestOneof2_NestedMessage* mutable_foo_lazy_message();
  10559. void set_allocated_foo_lazy_message(::protobuf_unittest::TestOneof2_NestedMessage* foo_lazy_message);
  10560. void unsafe_arena_set_allocated_foo_lazy_message(
  10561. ::protobuf_unittest::TestOneof2_NestedMessage* foo_lazy_message);
  10562. ::protobuf_unittest::TestOneof2_NestedMessage* unsafe_arena_release_foo_lazy_message();
  10563. // optional int32 bar_int = 12 [default = 5];
  10564. bool has_bar_int() const;
  10565. void clear_bar_int();
  10566. static const int kBarIntFieldNumber = 12;
  10567. ::google::protobuf::int32 bar_int() const;
  10568. void set_bar_int(::google::protobuf::int32 value);
  10569. // optional string bar_string = 13 [default = "STRING"];
  10570. bool has_bar_string() const;
  10571. void clear_bar_string();
  10572. static const int kBarStringFieldNumber = 13;
  10573. const ::std::string& bar_string() const;
  10574. void set_bar_string(const ::std::string& value);
  10575. #if LANG_CXX11
  10576. void set_bar_string(::std::string&& value);
  10577. #endif
  10578. void set_bar_string(const char* value);
  10579. void set_bar_string(const char* value, size_t size);
  10580. ::std::string* mutable_bar_string();
  10581. ::std::string* release_bar_string();
  10582. void set_allocated_bar_string(::std::string* bar_string);
  10583. PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
  10584. " string fields are deprecated and will be removed in a"
  10585. " future release.")
  10586. ::std::string* unsafe_arena_release_bar_string();
  10587. PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
  10588. " string fields are deprecated and will be removed in a"
  10589. " future release.")
  10590. void unsafe_arena_set_allocated_bar_string(
  10591. ::std::string* bar_string);
  10592. // optional string bar_cord = 14 [default = "CORD", ctype = CORD];
  10593. bool has_bar_cord() const;
  10594. void clear_bar_cord();
  10595. static const int kBarCordFieldNumber = 14;
  10596. private:
  10597. // Hidden due to unknown ctype option.
  10598. const ::std::string& bar_cord() const;
  10599. void set_bar_cord(const ::std::string& value);
  10600. #if LANG_CXX11
  10601. void set_bar_cord(::std::string&& value);
  10602. #endif
  10603. void set_bar_cord(const char* value);
  10604. void set_bar_cord(const char* value, size_t size);
  10605. ::std::string* mutable_bar_cord();
  10606. ::std::string* release_bar_cord();
  10607. void set_allocated_bar_cord(::std::string* bar_cord);
  10608. PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
  10609. " string fields are deprecated and will be removed in a"
  10610. " future release.")
  10611. ::std::string* unsafe_arena_release_bar_cord();
  10612. PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
  10613. " string fields are deprecated and will be removed in a"
  10614. " future release.")
  10615. void unsafe_arena_set_allocated_bar_cord(
  10616. ::std::string* bar_cord);
  10617. public:
  10618. // optional string bar_string_piece = 15 [default = "SPIECE", ctype = STRING_PIECE];
  10619. bool has_bar_string_piece() const;
  10620. void clear_bar_string_piece();
  10621. static const int kBarStringPieceFieldNumber = 15;
  10622. private:
  10623. // Hidden due to unknown ctype option.
  10624. const ::std::string& bar_string_piece() const;
  10625. void set_bar_string_piece(const ::std::string& value);
  10626. #if LANG_CXX11
  10627. void set_bar_string_piece(::std::string&& value);
  10628. #endif
  10629. void set_bar_string_piece(const char* value);
  10630. void set_bar_string_piece(const char* value, size_t size);
  10631. ::std::string* mutable_bar_string_piece();
  10632. ::std::string* release_bar_string_piece();
  10633. void set_allocated_bar_string_piece(::std::string* bar_string_piece);
  10634. PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
  10635. " string fields are deprecated and will be removed in a"
  10636. " future release.")
  10637. ::std::string* unsafe_arena_release_bar_string_piece();
  10638. PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
  10639. " string fields are deprecated and will be removed in a"
  10640. " future release.")
  10641. void unsafe_arena_set_allocated_bar_string_piece(
  10642. ::std::string* bar_string_piece);
  10643. public:
  10644. // optional bytes bar_bytes = 16 [default = "BYTES"];
  10645. bool has_bar_bytes() const;
  10646. void clear_bar_bytes();
  10647. static const int kBarBytesFieldNumber = 16;
  10648. const ::std::string& bar_bytes() const;
  10649. void set_bar_bytes(const ::std::string& value);
  10650. #if LANG_CXX11
  10651. void set_bar_bytes(::std::string&& value);
  10652. #endif
  10653. void set_bar_bytes(const char* value);
  10654. void set_bar_bytes(const void* value, size_t size);
  10655. ::std::string* mutable_bar_bytes();
  10656. ::std::string* release_bar_bytes();
  10657. void set_allocated_bar_bytes(::std::string* bar_bytes);
  10658. PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
  10659. " string fields are deprecated and will be removed in a"
  10660. " future release.")
  10661. ::std::string* unsafe_arena_release_bar_bytes();
  10662. PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
  10663. " string fields are deprecated and will be removed in a"
  10664. " future release.")
  10665. void unsafe_arena_set_allocated_bar_bytes(
  10666. ::std::string* bar_bytes);
  10667. // optional .protobuf_unittest.TestOneof2.NestedEnum bar_enum = 17 [default = BAR];
  10668. bool has_bar_enum() const;
  10669. void clear_bar_enum();
  10670. static const int kBarEnumFieldNumber = 17;
  10671. ::protobuf_unittest::TestOneof2_NestedEnum bar_enum() const;
  10672. void set_bar_enum(::protobuf_unittest::TestOneof2_NestedEnum value);
  10673. void clear_foo();
  10674. FooCase foo_case() const;
  10675. void clear_bar();
  10676. BarCase bar_case() const;
  10677. // @@protoc_insertion_point(class_scope:protobuf_unittest.TestOneof2)
  10678. private:
  10679. void set_has_foo_int();
  10680. void set_has_foo_string();
  10681. void set_has_foo_cord();
  10682. void set_has_foo_string_piece();
  10683. void set_has_foo_bytes();
  10684. void set_has_foo_enum();
  10685. void set_has_foo_message();
  10686. void set_has_foogroup();
  10687. void set_has_foo_lazy_message();
  10688. void set_has_bar_int();
  10689. void set_has_bar_string();
  10690. void set_has_bar_cord();
  10691. void set_has_bar_string_piece();
  10692. void set_has_bar_bytes();
  10693. void set_has_bar_enum();
  10694. void set_has_baz_int();
  10695. void clear_has_baz_int();
  10696. void set_has_baz_string();
  10697. void clear_has_baz_string();
  10698. inline bool has_foo() const;
  10699. inline void clear_has_foo();
  10700. inline bool has_bar() const;
  10701. inline void clear_has_bar();
  10702. ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
  10703. template <typename T> friend class ::google::protobuf::Arena::InternalHelper;
  10704. typedef void InternalArenaConstructable_;
  10705. typedef void DestructorSkippable_;
  10706. ::google::protobuf::internal::HasBits<1> _has_bits_;
  10707. mutable ::google::protobuf::internal::CachedSize _cached_size_;
  10708. public:
  10709. static ::google::protobuf::internal::ExplicitlyConstructed< ::std::string> _i_give_permission_to_break_this_code_default_baz_string_;
  10710. private:
  10711. ::google::protobuf::internal::ArenaStringPtr baz_string_;
  10712. ::google::protobuf::int32 baz_int_;
  10713. union FooUnion {
  10714. FooUnion() {}
  10715. ::google::protobuf::int32 foo_int_;
  10716. ::google::protobuf::internal::ArenaStringPtr foo_string_;
  10717. ::google::protobuf::internal::ArenaStringPtr foo_cord_;
  10718. ::google::protobuf::internal::ArenaStringPtr foo_string_piece_;
  10719. ::google::protobuf::internal::ArenaStringPtr foo_bytes_;
  10720. int foo_enum_;
  10721. ::protobuf_unittest::TestOneof2_NestedMessage* foo_message_;
  10722. ::protobuf_unittest::TestOneof2_FooGroup* foogroup_;
  10723. ::protobuf_unittest::TestOneof2_NestedMessage* foo_lazy_message_;
  10724. } foo_;
  10725. union BarUnion {
  10726. BarUnion() {}
  10727. ::google::protobuf::int32 bar_int_;
  10728. ::google::protobuf::internal::ArenaStringPtr bar_string_;
  10729. ::google::protobuf::internal::ArenaStringPtr bar_cord_;
  10730. ::google::protobuf::internal::ArenaStringPtr bar_string_piece_;
  10731. ::google::protobuf::internal::ArenaStringPtr bar_bytes_;
  10732. int bar_enum_;
  10733. } bar_;
  10734. public:
  10735. static ::google::protobuf::internal::ExplicitlyConstructed< ::std::string> _i_give_permission_to_break_this_code_default_bar_string_;
  10736. private:
  10737. public:
  10738. static ::google::protobuf::internal::ExplicitlyConstructed< ::std::string> _i_give_permission_to_break_this_code_default_bar_cord_;
  10739. private:
  10740. public:
  10741. static ::google::protobuf::internal::ExplicitlyConstructed< ::std::string> _i_give_permission_to_break_this_code_default_bar_string_piece_;
  10742. private:
  10743. public:
  10744. static ::google::protobuf::internal::ExplicitlyConstructed< ::std::string> _i_give_permission_to_break_this_code_default_bar_bytes_;
  10745. private:
  10746. ::google::protobuf::uint32 _oneof_case_[2];
  10747. friend struct ::protobuf_google_2fprotobuf_2funittest_2eproto::TableStruct;
  10748. };
  10749. // -------------------------------------------------------------------
  10750. class TestRequiredOneof_NestedMessage : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:protobuf_unittest.TestRequiredOneof.NestedMessage) */ {
  10751. public:
  10752. TestRequiredOneof_NestedMessage();
  10753. virtual ~TestRequiredOneof_NestedMessage();
  10754. TestRequiredOneof_NestedMessage(const TestRequiredOneof_NestedMessage& from);
  10755. inline TestRequiredOneof_NestedMessage& operator=(const TestRequiredOneof_NestedMessage& from) {
  10756. CopyFrom(from);
  10757. return *this;
  10758. }
  10759. #if LANG_CXX11
  10760. TestRequiredOneof_NestedMessage(TestRequiredOneof_NestedMessage&& from) noexcept
  10761. : TestRequiredOneof_NestedMessage() {
  10762. *this = ::std::move(from);
  10763. }
  10764. inline TestRequiredOneof_NestedMessage& operator=(TestRequiredOneof_NestedMessage&& from) noexcept {
  10765. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  10766. if (this != &from) InternalSwap(&from);
  10767. } else {
  10768. CopyFrom(from);
  10769. }
  10770. return *this;
  10771. }
  10772. #endif
  10773. inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
  10774. return _internal_metadata_.unknown_fields();
  10775. }
  10776. inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
  10777. return _internal_metadata_.mutable_unknown_fields();
  10778. }
  10779. inline ::google::protobuf::Arena* GetArena() const final {
  10780. return GetArenaNoVirtual();
  10781. }
  10782. inline void* GetMaybeArenaPointer() const final {
  10783. return MaybeArenaPtr();
  10784. }
  10785. static const ::google::protobuf::Descriptor* descriptor();
  10786. static const TestRequiredOneof_NestedMessage& default_instance();
  10787. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  10788. static inline const TestRequiredOneof_NestedMessage* internal_default_instance() {
  10789. return reinterpret_cast<const TestRequiredOneof_NestedMessage*>(
  10790. &_TestRequiredOneof_NestedMessage_default_instance_);
  10791. }
  10792. static constexpr int kIndexInFileMessages =
  10793. 64;
  10794. void UnsafeArenaSwap(TestRequiredOneof_NestedMessage* other);
  10795. void Swap(TestRequiredOneof_NestedMessage* other);
  10796. friend void swap(TestRequiredOneof_NestedMessage& a, TestRequiredOneof_NestedMessage& b) {
  10797. a.Swap(&b);
  10798. }
  10799. // implements Message ----------------------------------------------
  10800. inline TestRequiredOneof_NestedMessage* New() const final {
  10801. return CreateMaybeMessage<TestRequiredOneof_NestedMessage>(NULL);
  10802. }
  10803. TestRequiredOneof_NestedMessage* New(::google::protobuf::Arena* arena) const final {
  10804. return CreateMaybeMessage<TestRequiredOneof_NestedMessage>(arena);
  10805. }
  10806. void CopyFrom(const ::google::protobuf::Message& from) final;
  10807. void MergeFrom(const ::google::protobuf::Message& from) final;
  10808. void CopyFrom(const TestRequiredOneof_NestedMessage& from);
  10809. void MergeFrom(const TestRequiredOneof_NestedMessage& from);
  10810. void Clear() final;
  10811. bool IsInitialized() const final;
  10812. size_t ByteSizeLong() const final;
  10813. bool MergePartialFromCodedStream(
  10814. ::google::protobuf::io::CodedInputStream* input) final;
  10815. void SerializeWithCachedSizes(
  10816. ::google::protobuf::io::CodedOutputStream* output) const final;
  10817. ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
  10818. bool deterministic, ::google::protobuf::uint8* target) const final;
  10819. int GetCachedSize() const final { return _cached_size_.Get(); }
  10820. private:
  10821. void SharedCtor();
  10822. void SharedDtor();
  10823. void SetCachedSize(int size) const final;
  10824. void InternalSwap(TestRequiredOneof_NestedMessage* other);
  10825. protected:
  10826. explicit TestRequiredOneof_NestedMessage(::google::protobuf::Arena* arena);
  10827. private:
  10828. static void ArenaDtor(void* object);
  10829. inline void RegisterArenaDtor(::google::protobuf::Arena* arena);
  10830. private:
  10831. inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
  10832. return _internal_metadata_.arena();
  10833. }
  10834. inline void* MaybeArenaPtr() const {
  10835. return _internal_metadata_.raw_arena_ptr();
  10836. }
  10837. public:
  10838. ::google::protobuf::Metadata GetMetadata() const final;
  10839. // nested types ----------------------------------------------------
  10840. // accessors -------------------------------------------------------
  10841. // required double required_double = 1;
  10842. bool has_required_double() const;
  10843. void clear_required_double();
  10844. static const int kRequiredDoubleFieldNumber = 1;
  10845. double required_double() const;
  10846. void set_required_double(double value);
  10847. // @@protoc_insertion_point(class_scope:protobuf_unittest.TestRequiredOneof.NestedMessage)
  10848. private:
  10849. void set_has_required_double();
  10850. void clear_has_required_double();
  10851. ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
  10852. template <typename T> friend class ::google::protobuf::Arena::InternalHelper;
  10853. typedef void InternalArenaConstructable_;
  10854. typedef void DestructorSkippable_;
  10855. ::google::protobuf::internal::HasBits<1> _has_bits_;
  10856. mutable ::google::protobuf::internal::CachedSize _cached_size_;
  10857. double required_double_;
  10858. friend struct ::protobuf_google_2fprotobuf_2funittest_2eproto::TableStruct;
  10859. };
  10860. // -------------------------------------------------------------------
  10861. class TestRequiredOneof : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:protobuf_unittest.TestRequiredOneof) */ {
  10862. public:
  10863. TestRequiredOneof();
  10864. virtual ~TestRequiredOneof();
  10865. TestRequiredOneof(const TestRequiredOneof& from);
  10866. inline TestRequiredOneof& operator=(const TestRequiredOneof& from) {
  10867. CopyFrom(from);
  10868. return *this;
  10869. }
  10870. #if LANG_CXX11
  10871. TestRequiredOneof(TestRequiredOneof&& from) noexcept
  10872. : TestRequiredOneof() {
  10873. *this = ::std::move(from);
  10874. }
  10875. inline TestRequiredOneof& operator=(TestRequiredOneof&& from) noexcept {
  10876. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  10877. if (this != &from) InternalSwap(&from);
  10878. } else {
  10879. CopyFrom(from);
  10880. }
  10881. return *this;
  10882. }
  10883. #endif
  10884. inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
  10885. return _internal_metadata_.unknown_fields();
  10886. }
  10887. inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
  10888. return _internal_metadata_.mutable_unknown_fields();
  10889. }
  10890. inline ::google::protobuf::Arena* GetArena() const final {
  10891. return GetArenaNoVirtual();
  10892. }
  10893. inline void* GetMaybeArenaPointer() const final {
  10894. return MaybeArenaPtr();
  10895. }
  10896. static const ::google::protobuf::Descriptor* descriptor();
  10897. static const TestRequiredOneof& default_instance();
  10898. enum FooCase {
  10899. kFooInt = 1,
  10900. kFooString = 2,
  10901. kFooMessage = 3,
  10902. FOO_NOT_SET = 0,
  10903. };
  10904. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  10905. static inline const TestRequiredOneof* internal_default_instance() {
  10906. return reinterpret_cast<const TestRequiredOneof*>(
  10907. &_TestRequiredOneof_default_instance_);
  10908. }
  10909. static constexpr int kIndexInFileMessages =
  10910. 65;
  10911. void UnsafeArenaSwap(TestRequiredOneof* other);
  10912. void Swap(TestRequiredOneof* other);
  10913. friend void swap(TestRequiredOneof& a, TestRequiredOneof& b) {
  10914. a.Swap(&b);
  10915. }
  10916. // implements Message ----------------------------------------------
  10917. inline TestRequiredOneof* New() const final {
  10918. return CreateMaybeMessage<TestRequiredOneof>(NULL);
  10919. }
  10920. TestRequiredOneof* New(::google::protobuf::Arena* arena) const final {
  10921. return CreateMaybeMessage<TestRequiredOneof>(arena);
  10922. }
  10923. void CopyFrom(const ::google::protobuf::Message& from) final;
  10924. void MergeFrom(const ::google::protobuf::Message& from) final;
  10925. void CopyFrom(const TestRequiredOneof& from);
  10926. void MergeFrom(const TestRequiredOneof& from);
  10927. void Clear() final;
  10928. bool IsInitialized() const final;
  10929. size_t ByteSizeLong() const final;
  10930. bool MergePartialFromCodedStream(
  10931. ::google::protobuf::io::CodedInputStream* input) final;
  10932. void SerializeWithCachedSizes(
  10933. ::google::protobuf::io::CodedOutputStream* output) const final;
  10934. ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
  10935. bool deterministic, ::google::protobuf::uint8* target) const final;
  10936. int GetCachedSize() const final { return _cached_size_.Get(); }
  10937. private:
  10938. void SharedCtor();
  10939. void SharedDtor();
  10940. void SetCachedSize(int size) const final;
  10941. void InternalSwap(TestRequiredOneof* other);
  10942. protected:
  10943. explicit TestRequiredOneof(::google::protobuf::Arena* arena);
  10944. private:
  10945. static void ArenaDtor(void* object);
  10946. inline void RegisterArenaDtor(::google::protobuf::Arena* arena);
  10947. private:
  10948. inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
  10949. return _internal_metadata_.arena();
  10950. }
  10951. inline void* MaybeArenaPtr() const {
  10952. return _internal_metadata_.raw_arena_ptr();
  10953. }
  10954. public:
  10955. ::google::protobuf::Metadata GetMetadata() const final;
  10956. // nested types ----------------------------------------------------
  10957. typedef TestRequiredOneof_NestedMessage NestedMessage;
  10958. // accessors -------------------------------------------------------
  10959. // optional int32 foo_int = 1;
  10960. bool has_foo_int() const;
  10961. void clear_foo_int();
  10962. static const int kFooIntFieldNumber = 1;
  10963. ::google::protobuf::int32 foo_int() const;
  10964. void set_foo_int(::google::protobuf::int32 value);
  10965. // optional string foo_string = 2;
  10966. bool has_foo_string() const;
  10967. void clear_foo_string();
  10968. static const int kFooStringFieldNumber = 2;
  10969. const ::std::string& foo_string() const;
  10970. void set_foo_string(const ::std::string& value);
  10971. #if LANG_CXX11
  10972. void set_foo_string(::std::string&& value);
  10973. #endif
  10974. void set_foo_string(const char* value);
  10975. void set_foo_string(const char* value, size_t size);
  10976. ::std::string* mutable_foo_string();
  10977. ::std::string* release_foo_string();
  10978. void set_allocated_foo_string(::std::string* foo_string);
  10979. PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
  10980. " string fields are deprecated and will be removed in a"
  10981. " future release.")
  10982. ::std::string* unsafe_arena_release_foo_string();
  10983. PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
  10984. " string fields are deprecated and will be removed in a"
  10985. " future release.")
  10986. void unsafe_arena_set_allocated_foo_string(
  10987. ::std::string* foo_string);
  10988. // optional .protobuf_unittest.TestRequiredOneof.NestedMessage foo_message = 3;
  10989. bool has_foo_message() const;
  10990. void clear_foo_message();
  10991. static const int kFooMessageFieldNumber = 3;
  10992. private:
  10993. const ::protobuf_unittest::TestRequiredOneof_NestedMessage& _internal_foo_message() const;
  10994. public:
  10995. const ::protobuf_unittest::TestRequiredOneof_NestedMessage& foo_message() const;
  10996. ::protobuf_unittest::TestRequiredOneof_NestedMessage* release_foo_message();
  10997. ::protobuf_unittest::TestRequiredOneof_NestedMessage* mutable_foo_message();
  10998. void set_allocated_foo_message(::protobuf_unittest::TestRequiredOneof_NestedMessage* foo_message);
  10999. void unsafe_arena_set_allocated_foo_message(
  11000. ::protobuf_unittest::TestRequiredOneof_NestedMessage* foo_message);
  11001. ::protobuf_unittest::TestRequiredOneof_NestedMessage* unsafe_arena_release_foo_message();
  11002. void clear_foo();
  11003. FooCase foo_case() const;
  11004. // @@protoc_insertion_point(class_scope:protobuf_unittest.TestRequiredOneof)
  11005. private:
  11006. void set_has_foo_int();
  11007. void set_has_foo_string();
  11008. void set_has_foo_message();
  11009. inline bool has_foo() const;
  11010. inline void clear_has_foo();
  11011. ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
  11012. template <typename T> friend class ::google::protobuf::Arena::InternalHelper;
  11013. typedef void InternalArenaConstructable_;
  11014. typedef void DestructorSkippable_;
  11015. ::google::protobuf::internal::HasBits<1> _has_bits_;
  11016. mutable ::google::protobuf::internal::CachedSize _cached_size_;
  11017. union FooUnion {
  11018. FooUnion() {}
  11019. ::google::protobuf::int32 foo_int_;
  11020. ::google::protobuf::internal::ArenaStringPtr foo_string_;
  11021. ::protobuf_unittest::TestRequiredOneof_NestedMessage* foo_message_;
  11022. } foo_;
  11023. ::google::protobuf::uint32 _oneof_case_[1];
  11024. friend struct ::protobuf_google_2fprotobuf_2funittest_2eproto::TableStruct;
  11025. };
  11026. // -------------------------------------------------------------------
  11027. class TestPackedTypes : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:protobuf_unittest.TestPackedTypes) */ {
  11028. public:
  11029. TestPackedTypes();
  11030. virtual ~TestPackedTypes();
  11031. TestPackedTypes(const TestPackedTypes& from);
  11032. inline TestPackedTypes& operator=(const TestPackedTypes& from) {
  11033. CopyFrom(from);
  11034. return *this;
  11035. }
  11036. #if LANG_CXX11
  11037. TestPackedTypes(TestPackedTypes&& from) noexcept
  11038. : TestPackedTypes() {
  11039. *this = ::std::move(from);
  11040. }
  11041. inline TestPackedTypes& operator=(TestPackedTypes&& from) noexcept {
  11042. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  11043. if (this != &from) InternalSwap(&from);
  11044. } else {
  11045. CopyFrom(from);
  11046. }
  11047. return *this;
  11048. }
  11049. #endif
  11050. inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
  11051. return _internal_metadata_.unknown_fields();
  11052. }
  11053. inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
  11054. return _internal_metadata_.mutable_unknown_fields();
  11055. }
  11056. inline ::google::protobuf::Arena* GetArena() const final {
  11057. return GetArenaNoVirtual();
  11058. }
  11059. inline void* GetMaybeArenaPointer() const final {
  11060. return MaybeArenaPtr();
  11061. }
  11062. static const ::google::protobuf::Descriptor* descriptor();
  11063. static const TestPackedTypes& default_instance();
  11064. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  11065. static inline const TestPackedTypes* internal_default_instance() {
  11066. return reinterpret_cast<const TestPackedTypes*>(
  11067. &_TestPackedTypes_default_instance_);
  11068. }
  11069. static constexpr int kIndexInFileMessages =
  11070. 66;
  11071. void UnsafeArenaSwap(TestPackedTypes* other);
  11072. void Swap(TestPackedTypes* other);
  11073. friend void swap(TestPackedTypes& a, TestPackedTypes& b) {
  11074. a.Swap(&b);
  11075. }
  11076. // implements Message ----------------------------------------------
  11077. inline TestPackedTypes* New() const final {
  11078. return CreateMaybeMessage<TestPackedTypes>(NULL);
  11079. }
  11080. TestPackedTypes* New(::google::protobuf::Arena* arena) const final {
  11081. return CreateMaybeMessage<TestPackedTypes>(arena);
  11082. }
  11083. void CopyFrom(const ::google::protobuf::Message& from) final;
  11084. void MergeFrom(const ::google::protobuf::Message& from) final;
  11085. void CopyFrom(const TestPackedTypes& from);
  11086. void MergeFrom(const TestPackedTypes& from);
  11087. void Clear() final;
  11088. bool IsInitialized() const final;
  11089. size_t ByteSizeLong() const final;
  11090. bool MergePartialFromCodedStream(
  11091. ::google::protobuf::io::CodedInputStream* input) final;
  11092. void SerializeWithCachedSizes(
  11093. ::google::protobuf::io::CodedOutputStream* output) const final;
  11094. ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
  11095. bool deterministic, ::google::protobuf::uint8* target) const final;
  11096. int GetCachedSize() const final { return _cached_size_.Get(); }
  11097. private:
  11098. void SharedCtor();
  11099. void SharedDtor();
  11100. void SetCachedSize(int size) const final;
  11101. void InternalSwap(TestPackedTypes* other);
  11102. protected:
  11103. explicit TestPackedTypes(::google::protobuf::Arena* arena);
  11104. private:
  11105. static void ArenaDtor(void* object);
  11106. inline void RegisterArenaDtor(::google::protobuf::Arena* arena);
  11107. private:
  11108. inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
  11109. return _internal_metadata_.arena();
  11110. }
  11111. inline void* MaybeArenaPtr() const {
  11112. return _internal_metadata_.raw_arena_ptr();
  11113. }
  11114. public:
  11115. ::google::protobuf::Metadata GetMetadata() const final;
  11116. // nested types ----------------------------------------------------
  11117. // accessors -------------------------------------------------------
  11118. // repeated int32 packed_int32 = 90 [packed = true];
  11119. int packed_int32_size() const;
  11120. void clear_packed_int32();
  11121. static const int kPackedInt32FieldNumber = 90;
  11122. ::google::protobuf::int32 packed_int32(int index) const;
  11123. void set_packed_int32(int index, ::google::protobuf::int32 value);
  11124. void add_packed_int32(::google::protobuf::int32 value);
  11125. const ::google::protobuf::RepeatedField< ::google::protobuf::int32 >&
  11126. packed_int32() const;
  11127. ::google::protobuf::RepeatedField< ::google::protobuf::int32 >*
  11128. mutable_packed_int32();
  11129. // repeated int64 packed_int64 = 91 [packed = true];
  11130. int packed_int64_size() const;
  11131. void clear_packed_int64();
  11132. static const int kPackedInt64FieldNumber = 91;
  11133. ::google::protobuf::int64 packed_int64(int index) const;
  11134. void set_packed_int64(int index, ::google::protobuf::int64 value);
  11135. void add_packed_int64(::google::protobuf::int64 value);
  11136. const ::google::protobuf::RepeatedField< ::google::protobuf::int64 >&
  11137. packed_int64() const;
  11138. ::google::protobuf::RepeatedField< ::google::protobuf::int64 >*
  11139. mutable_packed_int64();
  11140. // repeated uint32 packed_uint32 = 92 [packed = true];
  11141. int packed_uint32_size() const;
  11142. void clear_packed_uint32();
  11143. static const int kPackedUint32FieldNumber = 92;
  11144. ::google::protobuf::uint32 packed_uint32(int index) const;
  11145. void set_packed_uint32(int index, ::google::protobuf::uint32 value);
  11146. void add_packed_uint32(::google::protobuf::uint32 value);
  11147. const ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >&
  11148. packed_uint32() const;
  11149. ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >*
  11150. mutable_packed_uint32();
  11151. // repeated uint64 packed_uint64 = 93 [packed = true];
  11152. int packed_uint64_size() const;
  11153. void clear_packed_uint64();
  11154. static const int kPackedUint64FieldNumber = 93;
  11155. ::google::protobuf::uint64 packed_uint64(int index) const;
  11156. void set_packed_uint64(int index, ::google::protobuf::uint64 value);
  11157. void add_packed_uint64(::google::protobuf::uint64 value);
  11158. const ::google::protobuf::RepeatedField< ::google::protobuf::uint64 >&
  11159. packed_uint64() const;
  11160. ::google::protobuf::RepeatedField< ::google::protobuf::uint64 >*
  11161. mutable_packed_uint64();
  11162. // repeated sint32 packed_sint32 = 94 [packed = true];
  11163. int packed_sint32_size() const;
  11164. void clear_packed_sint32();
  11165. static const int kPackedSint32FieldNumber = 94;
  11166. ::google::protobuf::int32 packed_sint32(int index) const;
  11167. void set_packed_sint32(int index, ::google::protobuf::int32 value);
  11168. void add_packed_sint32(::google::protobuf::int32 value);
  11169. const ::google::protobuf::RepeatedField< ::google::protobuf::int32 >&
  11170. packed_sint32() const;
  11171. ::google::protobuf::RepeatedField< ::google::protobuf::int32 >*
  11172. mutable_packed_sint32();
  11173. // repeated sint64 packed_sint64 = 95 [packed = true];
  11174. int packed_sint64_size() const;
  11175. void clear_packed_sint64();
  11176. static const int kPackedSint64FieldNumber = 95;
  11177. ::google::protobuf::int64 packed_sint64(int index) const;
  11178. void set_packed_sint64(int index, ::google::protobuf::int64 value);
  11179. void add_packed_sint64(::google::protobuf::int64 value);
  11180. const ::google::protobuf::RepeatedField< ::google::protobuf::int64 >&
  11181. packed_sint64() const;
  11182. ::google::protobuf::RepeatedField< ::google::protobuf::int64 >*
  11183. mutable_packed_sint64();
  11184. // repeated fixed32 packed_fixed32 = 96 [packed = true];
  11185. int packed_fixed32_size() const;
  11186. void clear_packed_fixed32();
  11187. static const int kPackedFixed32FieldNumber = 96;
  11188. ::google::protobuf::uint32 packed_fixed32(int index) const;
  11189. void set_packed_fixed32(int index, ::google::protobuf::uint32 value);
  11190. void add_packed_fixed32(::google::protobuf::uint32 value);
  11191. const ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >&
  11192. packed_fixed32() const;
  11193. ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >*
  11194. mutable_packed_fixed32();
  11195. // repeated fixed64 packed_fixed64 = 97 [packed = true];
  11196. int packed_fixed64_size() const;
  11197. void clear_packed_fixed64();
  11198. static const int kPackedFixed64FieldNumber = 97;
  11199. ::google::protobuf::uint64 packed_fixed64(int index) const;
  11200. void set_packed_fixed64(int index, ::google::protobuf::uint64 value);
  11201. void add_packed_fixed64(::google::protobuf::uint64 value);
  11202. const ::google::protobuf::RepeatedField< ::google::protobuf::uint64 >&
  11203. packed_fixed64() const;
  11204. ::google::protobuf::RepeatedField< ::google::protobuf::uint64 >*
  11205. mutable_packed_fixed64();
  11206. // repeated sfixed32 packed_sfixed32 = 98 [packed = true];
  11207. int packed_sfixed32_size() const;
  11208. void clear_packed_sfixed32();
  11209. static const int kPackedSfixed32FieldNumber = 98;
  11210. ::google::protobuf::int32 packed_sfixed32(int index) const;
  11211. void set_packed_sfixed32(int index, ::google::protobuf::int32 value);
  11212. void add_packed_sfixed32(::google::protobuf::int32 value);
  11213. const ::google::protobuf::RepeatedField< ::google::protobuf::int32 >&
  11214. packed_sfixed32() const;
  11215. ::google::protobuf::RepeatedField< ::google::protobuf::int32 >*
  11216. mutable_packed_sfixed32();
  11217. // repeated sfixed64 packed_sfixed64 = 99 [packed = true];
  11218. int packed_sfixed64_size() const;
  11219. void clear_packed_sfixed64();
  11220. static const int kPackedSfixed64FieldNumber = 99;
  11221. ::google::protobuf::int64 packed_sfixed64(int index) const;
  11222. void set_packed_sfixed64(int index, ::google::protobuf::int64 value);
  11223. void add_packed_sfixed64(::google::protobuf::int64 value);
  11224. const ::google::protobuf::RepeatedField< ::google::protobuf::int64 >&
  11225. packed_sfixed64() const;
  11226. ::google::protobuf::RepeatedField< ::google::protobuf::int64 >*
  11227. mutable_packed_sfixed64();
  11228. // repeated float packed_float = 100 [packed = true];
  11229. int packed_float_size() const;
  11230. void clear_packed_float();
  11231. static const int kPackedFloatFieldNumber = 100;
  11232. float packed_float(int index) const;
  11233. void set_packed_float(int index, float value);
  11234. void add_packed_float(float value);
  11235. const ::google::protobuf::RepeatedField< float >&
  11236. packed_float() const;
  11237. ::google::protobuf::RepeatedField< float >*
  11238. mutable_packed_float();
  11239. // repeated double packed_double = 101 [packed = true];
  11240. int packed_double_size() const;
  11241. void clear_packed_double();
  11242. static const int kPackedDoubleFieldNumber = 101;
  11243. double packed_double(int index) const;
  11244. void set_packed_double(int index, double value);
  11245. void add_packed_double(double value);
  11246. const ::google::protobuf::RepeatedField< double >&
  11247. packed_double() const;
  11248. ::google::protobuf::RepeatedField< double >*
  11249. mutable_packed_double();
  11250. // repeated bool packed_bool = 102 [packed = true];
  11251. int packed_bool_size() const;
  11252. void clear_packed_bool();
  11253. static const int kPackedBoolFieldNumber = 102;
  11254. bool packed_bool(int index) const;
  11255. void set_packed_bool(int index, bool value);
  11256. void add_packed_bool(bool value);
  11257. const ::google::protobuf::RepeatedField< bool >&
  11258. packed_bool() const;
  11259. ::google::protobuf::RepeatedField< bool >*
  11260. mutable_packed_bool();
  11261. // repeated .protobuf_unittest.ForeignEnum packed_enum = 103 [packed = true];
  11262. int packed_enum_size() const;
  11263. void clear_packed_enum();
  11264. static const int kPackedEnumFieldNumber = 103;
  11265. ::protobuf_unittest::ForeignEnum packed_enum(int index) const;
  11266. void set_packed_enum(int index, ::protobuf_unittest::ForeignEnum value);
  11267. void add_packed_enum(::protobuf_unittest::ForeignEnum value);
  11268. const ::google::protobuf::RepeatedField<int>& packed_enum() const;
  11269. ::google::protobuf::RepeatedField<int>* mutable_packed_enum();
  11270. // @@protoc_insertion_point(class_scope:protobuf_unittest.TestPackedTypes)
  11271. private:
  11272. ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
  11273. template <typename T> friend class ::google::protobuf::Arena::InternalHelper;
  11274. typedef void InternalArenaConstructable_;
  11275. typedef void DestructorSkippable_;
  11276. ::google::protobuf::internal::HasBits<1> _has_bits_;
  11277. mutable ::google::protobuf::internal::CachedSize _cached_size_;
  11278. ::google::protobuf::RepeatedField< ::google::protobuf::int32 > packed_int32_;
  11279. mutable int _packed_int32_cached_byte_size_;
  11280. ::google::protobuf::RepeatedField< ::google::protobuf::int64 > packed_int64_;
  11281. mutable int _packed_int64_cached_byte_size_;
  11282. ::google::protobuf::RepeatedField< ::google::protobuf::uint32 > packed_uint32_;
  11283. mutable int _packed_uint32_cached_byte_size_;
  11284. ::google::protobuf::RepeatedField< ::google::protobuf::uint64 > packed_uint64_;
  11285. mutable int _packed_uint64_cached_byte_size_;
  11286. ::google::protobuf::RepeatedField< ::google::protobuf::int32 > packed_sint32_;
  11287. mutable int _packed_sint32_cached_byte_size_;
  11288. ::google::protobuf::RepeatedField< ::google::protobuf::int64 > packed_sint64_;
  11289. mutable int _packed_sint64_cached_byte_size_;
  11290. ::google::protobuf::RepeatedField< ::google::protobuf::uint32 > packed_fixed32_;
  11291. mutable int _packed_fixed32_cached_byte_size_;
  11292. ::google::protobuf::RepeatedField< ::google::protobuf::uint64 > packed_fixed64_;
  11293. mutable int _packed_fixed64_cached_byte_size_;
  11294. ::google::protobuf::RepeatedField< ::google::protobuf::int32 > packed_sfixed32_;
  11295. mutable int _packed_sfixed32_cached_byte_size_;
  11296. ::google::protobuf::RepeatedField< ::google::protobuf::int64 > packed_sfixed64_;
  11297. mutable int _packed_sfixed64_cached_byte_size_;
  11298. ::google::protobuf::RepeatedField< float > packed_float_;
  11299. mutable int _packed_float_cached_byte_size_;
  11300. ::google::protobuf::RepeatedField< double > packed_double_;
  11301. mutable int _packed_double_cached_byte_size_;
  11302. ::google::protobuf::RepeatedField< bool > packed_bool_;
  11303. mutable int _packed_bool_cached_byte_size_;
  11304. ::google::protobuf::RepeatedField<int> packed_enum_;
  11305. mutable int _packed_enum_cached_byte_size_;
  11306. friend struct ::protobuf_google_2fprotobuf_2funittest_2eproto::TableStruct;
  11307. };
  11308. // -------------------------------------------------------------------
  11309. class TestUnpackedTypes : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:protobuf_unittest.TestUnpackedTypes) */ {
  11310. public:
  11311. TestUnpackedTypes();
  11312. virtual ~TestUnpackedTypes();
  11313. TestUnpackedTypes(const TestUnpackedTypes& from);
  11314. inline TestUnpackedTypes& operator=(const TestUnpackedTypes& from) {
  11315. CopyFrom(from);
  11316. return *this;
  11317. }
  11318. #if LANG_CXX11
  11319. TestUnpackedTypes(TestUnpackedTypes&& from) noexcept
  11320. : TestUnpackedTypes() {
  11321. *this = ::std::move(from);
  11322. }
  11323. inline TestUnpackedTypes& operator=(TestUnpackedTypes&& from) noexcept {
  11324. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  11325. if (this != &from) InternalSwap(&from);
  11326. } else {
  11327. CopyFrom(from);
  11328. }
  11329. return *this;
  11330. }
  11331. #endif
  11332. inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
  11333. return _internal_metadata_.unknown_fields();
  11334. }
  11335. inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
  11336. return _internal_metadata_.mutable_unknown_fields();
  11337. }
  11338. inline ::google::protobuf::Arena* GetArena() const final {
  11339. return GetArenaNoVirtual();
  11340. }
  11341. inline void* GetMaybeArenaPointer() const final {
  11342. return MaybeArenaPtr();
  11343. }
  11344. static const ::google::protobuf::Descriptor* descriptor();
  11345. static const TestUnpackedTypes& default_instance();
  11346. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  11347. static inline const TestUnpackedTypes* internal_default_instance() {
  11348. return reinterpret_cast<const TestUnpackedTypes*>(
  11349. &_TestUnpackedTypes_default_instance_);
  11350. }
  11351. static constexpr int kIndexInFileMessages =
  11352. 67;
  11353. void UnsafeArenaSwap(TestUnpackedTypes* other);
  11354. void Swap(TestUnpackedTypes* other);
  11355. friend void swap(TestUnpackedTypes& a, TestUnpackedTypes& b) {
  11356. a.Swap(&b);
  11357. }
  11358. // implements Message ----------------------------------------------
  11359. inline TestUnpackedTypes* New() const final {
  11360. return CreateMaybeMessage<TestUnpackedTypes>(NULL);
  11361. }
  11362. TestUnpackedTypes* New(::google::protobuf::Arena* arena) const final {
  11363. return CreateMaybeMessage<TestUnpackedTypes>(arena);
  11364. }
  11365. void CopyFrom(const ::google::protobuf::Message& from) final;
  11366. void MergeFrom(const ::google::protobuf::Message& from) final;
  11367. void CopyFrom(const TestUnpackedTypes& from);
  11368. void MergeFrom(const TestUnpackedTypes& from);
  11369. void Clear() final;
  11370. bool IsInitialized() const final;
  11371. size_t ByteSizeLong() const final;
  11372. bool MergePartialFromCodedStream(
  11373. ::google::protobuf::io::CodedInputStream* input) final;
  11374. void SerializeWithCachedSizes(
  11375. ::google::protobuf::io::CodedOutputStream* output) const final;
  11376. ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
  11377. bool deterministic, ::google::protobuf::uint8* target) const final;
  11378. int GetCachedSize() const final { return _cached_size_.Get(); }
  11379. private:
  11380. void SharedCtor();
  11381. void SharedDtor();
  11382. void SetCachedSize(int size) const final;
  11383. void InternalSwap(TestUnpackedTypes* other);
  11384. protected:
  11385. explicit TestUnpackedTypes(::google::protobuf::Arena* arena);
  11386. private:
  11387. static void ArenaDtor(void* object);
  11388. inline void RegisterArenaDtor(::google::protobuf::Arena* arena);
  11389. private:
  11390. inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
  11391. return _internal_metadata_.arena();
  11392. }
  11393. inline void* MaybeArenaPtr() const {
  11394. return _internal_metadata_.raw_arena_ptr();
  11395. }
  11396. public:
  11397. ::google::protobuf::Metadata GetMetadata() const final;
  11398. // nested types ----------------------------------------------------
  11399. // accessors -------------------------------------------------------
  11400. // repeated int32 unpacked_int32 = 90 [packed = false];
  11401. int unpacked_int32_size() const;
  11402. void clear_unpacked_int32();
  11403. static const int kUnpackedInt32FieldNumber = 90;
  11404. ::google::protobuf::int32 unpacked_int32(int index) const;
  11405. void set_unpacked_int32(int index, ::google::protobuf::int32 value);
  11406. void add_unpacked_int32(::google::protobuf::int32 value);
  11407. const ::google::protobuf::RepeatedField< ::google::protobuf::int32 >&
  11408. unpacked_int32() const;
  11409. ::google::protobuf::RepeatedField< ::google::protobuf::int32 >*
  11410. mutable_unpacked_int32();
  11411. // repeated int64 unpacked_int64 = 91 [packed = false];
  11412. int unpacked_int64_size() const;
  11413. void clear_unpacked_int64();
  11414. static const int kUnpackedInt64FieldNumber = 91;
  11415. ::google::protobuf::int64 unpacked_int64(int index) const;
  11416. void set_unpacked_int64(int index, ::google::protobuf::int64 value);
  11417. void add_unpacked_int64(::google::protobuf::int64 value);
  11418. const ::google::protobuf::RepeatedField< ::google::protobuf::int64 >&
  11419. unpacked_int64() const;
  11420. ::google::protobuf::RepeatedField< ::google::protobuf::int64 >*
  11421. mutable_unpacked_int64();
  11422. // repeated uint32 unpacked_uint32 = 92 [packed = false];
  11423. int unpacked_uint32_size() const;
  11424. void clear_unpacked_uint32();
  11425. static const int kUnpackedUint32FieldNumber = 92;
  11426. ::google::protobuf::uint32 unpacked_uint32(int index) const;
  11427. void set_unpacked_uint32(int index, ::google::protobuf::uint32 value);
  11428. void add_unpacked_uint32(::google::protobuf::uint32 value);
  11429. const ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >&
  11430. unpacked_uint32() const;
  11431. ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >*
  11432. mutable_unpacked_uint32();
  11433. // repeated uint64 unpacked_uint64 = 93 [packed = false];
  11434. int unpacked_uint64_size() const;
  11435. void clear_unpacked_uint64();
  11436. static const int kUnpackedUint64FieldNumber = 93;
  11437. ::google::protobuf::uint64 unpacked_uint64(int index) const;
  11438. void set_unpacked_uint64(int index, ::google::protobuf::uint64 value);
  11439. void add_unpacked_uint64(::google::protobuf::uint64 value);
  11440. const ::google::protobuf::RepeatedField< ::google::protobuf::uint64 >&
  11441. unpacked_uint64() const;
  11442. ::google::protobuf::RepeatedField< ::google::protobuf::uint64 >*
  11443. mutable_unpacked_uint64();
  11444. // repeated sint32 unpacked_sint32 = 94 [packed = false];
  11445. int unpacked_sint32_size() const;
  11446. void clear_unpacked_sint32();
  11447. static const int kUnpackedSint32FieldNumber = 94;
  11448. ::google::protobuf::int32 unpacked_sint32(int index) const;
  11449. void set_unpacked_sint32(int index, ::google::protobuf::int32 value);
  11450. void add_unpacked_sint32(::google::protobuf::int32 value);
  11451. const ::google::protobuf::RepeatedField< ::google::protobuf::int32 >&
  11452. unpacked_sint32() const;
  11453. ::google::protobuf::RepeatedField< ::google::protobuf::int32 >*
  11454. mutable_unpacked_sint32();
  11455. // repeated sint64 unpacked_sint64 = 95 [packed = false];
  11456. int unpacked_sint64_size() const;
  11457. void clear_unpacked_sint64();
  11458. static const int kUnpackedSint64FieldNumber = 95;
  11459. ::google::protobuf::int64 unpacked_sint64(int index) const;
  11460. void set_unpacked_sint64(int index, ::google::protobuf::int64 value);
  11461. void add_unpacked_sint64(::google::protobuf::int64 value);
  11462. const ::google::protobuf::RepeatedField< ::google::protobuf::int64 >&
  11463. unpacked_sint64() const;
  11464. ::google::protobuf::RepeatedField< ::google::protobuf::int64 >*
  11465. mutable_unpacked_sint64();
  11466. // repeated fixed32 unpacked_fixed32 = 96 [packed = false];
  11467. int unpacked_fixed32_size() const;
  11468. void clear_unpacked_fixed32();
  11469. static const int kUnpackedFixed32FieldNumber = 96;
  11470. ::google::protobuf::uint32 unpacked_fixed32(int index) const;
  11471. void set_unpacked_fixed32(int index, ::google::protobuf::uint32 value);
  11472. void add_unpacked_fixed32(::google::protobuf::uint32 value);
  11473. const ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >&
  11474. unpacked_fixed32() const;
  11475. ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >*
  11476. mutable_unpacked_fixed32();
  11477. // repeated fixed64 unpacked_fixed64 = 97 [packed = false];
  11478. int unpacked_fixed64_size() const;
  11479. void clear_unpacked_fixed64();
  11480. static const int kUnpackedFixed64FieldNumber = 97;
  11481. ::google::protobuf::uint64 unpacked_fixed64(int index) const;
  11482. void set_unpacked_fixed64(int index, ::google::protobuf::uint64 value);
  11483. void add_unpacked_fixed64(::google::protobuf::uint64 value);
  11484. const ::google::protobuf::RepeatedField< ::google::protobuf::uint64 >&
  11485. unpacked_fixed64() const;
  11486. ::google::protobuf::RepeatedField< ::google::protobuf::uint64 >*
  11487. mutable_unpacked_fixed64();
  11488. // repeated sfixed32 unpacked_sfixed32 = 98 [packed = false];
  11489. int unpacked_sfixed32_size() const;
  11490. void clear_unpacked_sfixed32();
  11491. static const int kUnpackedSfixed32FieldNumber = 98;
  11492. ::google::protobuf::int32 unpacked_sfixed32(int index) const;
  11493. void set_unpacked_sfixed32(int index, ::google::protobuf::int32 value);
  11494. void add_unpacked_sfixed32(::google::protobuf::int32 value);
  11495. const ::google::protobuf::RepeatedField< ::google::protobuf::int32 >&
  11496. unpacked_sfixed32() const;
  11497. ::google::protobuf::RepeatedField< ::google::protobuf::int32 >*
  11498. mutable_unpacked_sfixed32();
  11499. // repeated sfixed64 unpacked_sfixed64 = 99 [packed = false];
  11500. int unpacked_sfixed64_size() const;
  11501. void clear_unpacked_sfixed64();
  11502. static const int kUnpackedSfixed64FieldNumber = 99;
  11503. ::google::protobuf::int64 unpacked_sfixed64(int index) const;
  11504. void set_unpacked_sfixed64(int index, ::google::protobuf::int64 value);
  11505. void add_unpacked_sfixed64(::google::protobuf::int64 value);
  11506. const ::google::protobuf::RepeatedField< ::google::protobuf::int64 >&
  11507. unpacked_sfixed64() const;
  11508. ::google::protobuf::RepeatedField< ::google::protobuf::int64 >*
  11509. mutable_unpacked_sfixed64();
  11510. // repeated float unpacked_float = 100 [packed = false];
  11511. int unpacked_float_size() const;
  11512. void clear_unpacked_float();
  11513. static const int kUnpackedFloatFieldNumber = 100;
  11514. float unpacked_float(int index) const;
  11515. void set_unpacked_float(int index, float value);
  11516. void add_unpacked_float(float value);
  11517. const ::google::protobuf::RepeatedField< float >&
  11518. unpacked_float() const;
  11519. ::google::protobuf::RepeatedField< float >*
  11520. mutable_unpacked_float();
  11521. // repeated double unpacked_double = 101 [packed = false];
  11522. int unpacked_double_size() const;
  11523. void clear_unpacked_double();
  11524. static const int kUnpackedDoubleFieldNumber = 101;
  11525. double unpacked_double(int index) const;
  11526. void set_unpacked_double(int index, double value);
  11527. void add_unpacked_double(double value);
  11528. const ::google::protobuf::RepeatedField< double >&
  11529. unpacked_double() const;
  11530. ::google::protobuf::RepeatedField< double >*
  11531. mutable_unpacked_double();
  11532. // repeated bool unpacked_bool = 102 [packed = false];
  11533. int unpacked_bool_size() const;
  11534. void clear_unpacked_bool();
  11535. static const int kUnpackedBoolFieldNumber = 102;
  11536. bool unpacked_bool(int index) const;
  11537. void set_unpacked_bool(int index, bool value);
  11538. void add_unpacked_bool(bool value);
  11539. const ::google::protobuf::RepeatedField< bool >&
  11540. unpacked_bool() const;
  11541. ::google::protobuf::RepeatedField< bool >*
  11542. mutable_unpacked_bool();
  11543. // repeated .protobuf_unittest.ForeignEnum unpacked_enum = 103 [packed = false];
  11544. int unpacked_enum_size() const;
  11545. void clear_unpacked_enum();
  11546. static const int kUnpackedEnumFieldNumber = 103;
  11547. ::protobuf_unittest::ForeignEnum unpacked_enum(int index) const;
  11548. void set_unpacked_enum(int index, ::protobuf_unittest::ForeignEnum value);
  11549. void add_unpacked_enum(::protobuf_unittest::ForeignEnum value);
  11550. const ::google::protobuf::RepeatedField<int>& unpacked_enum() const;
  11551. ::google::protobuf::RepeatedField<int>* mutable_unpacked_enum();
  11552. // @@protoc_insertion_point(class_scope:protobuf_unittest.TestUnpackedTypes)
  11553. private:
  11554. ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
  11555. template <typename T> friend class ::google::protobuf::Arena::InternalHelper;
  11556. typedef void InternalArenaConstructable_;
  11557. typedef void DestructorSkippable_;
  11558. ::google::protobuf::internal::HasBits<1> _has_bits_;
  11559. mutable ::google::protobuf::internal::CachedSize _cached_size_;
  11560. ::google::protobuf::RepeatedField< ::google::protobuf::int32 > unpacked_int32_;
  11561. ::google::protobuf::RepeatedField< ::google::protobuf::int64 > unpacked_int64_;
  11562. ::google::protobuf::RepeatedField< ::google::protobuf::uint32 > unpacked_uint32_;
  11563. ::google::protobuf::RepeatedField< ::google::protobuf::uint64 > unpacked_uint64_;
  11564. ::google::protobuf::RepeatedField< ::google::protobuf::int32 > unpacked_sint32_;
  11565. ::google::protobuf::RepeatedField< ::google::protobuf::int64 > unpacked_sint64_;
  11566. ::google::protobuf::RepeatedField< ::google::protobuf::uint32 > unpacked_fixed32_;
  11567. ::google::protobuf::RepeatedField< ::google::protobuf::uint64 > unpacked_fixed64_;
  11568. ::google::protobuf::RepeatedField< ::google::protobuf::int32 > unpacked_sfixed32_;
  11569. ::google::protobuf::RepeatedField< ::google::protobuf::int64 > unpacked_sfixed64_;
  11570. ::google::protobuf::RepeatedField< float > unpacked_float_;
  11571. ::google::protobuf::RepeatedField< double > unpacked_double_;
  11572. ::google::protobuf::RepeatedField< bool > unpacked_bool_;
  11573. ::google::protobuf::RepeatedField<int> unpacked_enum_;
  11574. friend struct ::protobuf_google_2fprotobuf_2funittest_2eproto::TableStruct;
  11575. };
  11576. // -------------------------------------------------------------------
  11577. class TestPackedExtensions : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:protobuf_unittest.TestPackedExtensions) */ {
  11578. public:
  11579. TestPackedExtensions();
  11580. virtual ~TestPackedExtensions();
  11581. TestPackedExtensions(const TestPackedExtensions& from);
  11582. inline TestPackedExtensions& operator=(const TestPackedExtensions& from) {
  11583. CopyFrom(from);
  11584. return *this;
  11585. }
  11586. #if LANG_CXX11
  11587. TestPackedExtensions(TestPackedExtensions&& from) noexcept
  11588. : TestPackedExtensions() {
  11589. *this = ::std::move(from);
  11590. }
  11591. inline TestPackedExtensions& operator=(TestPackedExtensions&& from) noexcept {
  11592. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  11593. if (this != &from) InternalSwap(&from);
  11594. } else {
  11595. CopyFrom(from);
  11596. }
  11597. return *this;
  11598. }
  11599. #endif
  11600. inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
  11601. return _internal_metadata_.unknown_fields();
  11602. }
  11603. inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
  11604. return _internal_metadata_.mutable_unknown_fields();
  11605. }
  11606. inline ::google::protobuf::Arena* GetArena() const final {
  11607. return GetArenaNoVirtual();
  11608. }
  11609. inline void* GetMaybeArenaPointer() const final {
  11610. return MaybeArenaPtr();
  11611. }
  11612. static const ::google::protobuf::Descriptor* descriptor();
  11613. static const TestPackedExtensions& default_instance();
  11614. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  11615. static inline const TestPackedExtensions* internal_default_instance() {
  11616. return reinterpret_cast<const TestPackedExtensions*>(
  11617. &_TestPackedExtensions_default_instance_);
  11618. }
  11619. static constexpr int kIndexInFileMessages =
  11620. 68;
  11621. void UnsafeArenaSwap(TestPackedExtensions* other);
  11622. void Swap(TestPackedExtensions* other);
  11623. friend void swap(TestPackedExtensions& a, TestPackedExtensions& b) {
  11624. a.Swap(&b);
  11625. }
  11626. // implements Message ----------------------------------------------
  11627. inline TestPackedExtensions* New() const final {
  11628. return CreateMaybeMessage<TestPackedExtensions>(NULL);
  11629. }
  11630. TestPackedExtensions* New(::google::protobuf::Arena* arena) const final {
  11631. return CreateMaybeMessage<TestPackedExtensions>(arena);
  11632. }
  11633. void CopyFrom(const ::google::protobuf::Message& from) final;
  11634. void MergeFrom(const ::google::protobuf::Message& from) final;
  11635. void CopyFrom(const TestPackedExtensions& from);
  11636. void MergeFrom(const TestPackedExtensions& from);
  11637. void Clear() final;
  11638. bool IsInitialized() const final;
  11639. size_t ByteSizeLong() const final;
  11640. bool MergePartialFromCodedStream(
  11641. ::google::protobuf::io::CodedInputStream* input) final;
  11642. void SerializeWithCachedSizes(
  11643. ::google::protobuf::io::CodedOutputStream* output) const final;
  11644. ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
  11645. bool deterministic, ::google::protobuf::uint8* target) const final;
  11646. int GetCachedSize() const final { return _cached_size_.Get(); }
  11647. private:
  11648. void SharedCtor();
  11649. void SharedDtor();
  11650. void SetCachedSize(int size) const final;
  11651. void InternalSwap(TestPackedExtensions* other);
  11652. protected:
  11653. explicit TestPackedExtensions(::google::protobuf::Arena* arena);
  11654. private:
  11655. static void ArenaDtor(void* object);
  11656. inline void RegisterArenaDtor(::google::protobuf::Arena* arena);
  11657. private:
  11658. inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
  11659. return _internal_metadata_.arena();
  11660. }
  11661. inline void* MaybeArenaPtr() const {
  11662. return _internal_metadata_.raw_arena_ptr();
  11663. }
  11664. public:
  11665. ::google::protobuf::Metadata GetMetadata() const final;
  11666. // nested types ----------------------------------------------------
  11667. // accessors -------------------------------------------------------
  11668. GOOGLE_PROTOBUF_EXTENSION_ACCESSORS(TestPackedExtensions)
  11669. // @@protoc_insertion_point(class_scope:protobuf_unittest.TestPackedExtensions)
  11670. private:
  11671. ::google::protobuf::internal::ExtensionSet _extensions_;
  11672. ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
  11673. template <typename T> friend class ::google::protobuf::Arena::InternalHelper;
  11674. typedef void InternalArenaConstructable_;
  11675. typedef void DestructorSkippable_;
  11676. ::google::protobuf::internal::HasBits<1> _has_bits_;
  11677. mutable ::google::protobuf::internal::CachedSize _cached_size_;
  11678. friend struct ::protobuf_google_2fprotobuf_2funittest_2eproto::TableStruct;
  11679. };
  11680. // -------------------------------------------------------------------
  11681. class TestUnpackedExtensions : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:protobuf_unittest.TestUnpackedExtensions) */ {
  11682. public:
  11683. TestUnpackedExtensions();
  11684. virtual ~TestUnpackedExtensions();
  11685. TestUnpackedExtensions(const TestUnpackedExtensions& from);
  11686. inline TestUnpackedExtensions& operator=(const TestUnpackedExtensions& from) {
  11687. CopyFrom(from);
  11688. return *this;
  11689. }
  11690. #if LANG_CXX11
  11691. TestUnpackedExtensions(TestUnpackedExtensions&& from) noexcept
  11692. : TestUnpackedExtensions() {
  11693. *this = ::std::move(from);
  11694. }
  11695. inline TestUnpackedExtensions& operator=(TestUnpackedExtensions&& from) noexcept {
  11696. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  11697. if (this != &from) InternalSwap(&from);
  11698. } else {
  11699. CopyFrom(from);
  11700. }
  11701. return *this;
  11702. }
  11703. #endif
  11704. inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
  11705. return _internal_metadata_.unknown_fields();
  11706. }
  11707. inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
  11708. return _internal_metadata_.mutable_unknown_fields();
  11709. }
  11710. inline ::google::protobuf::Arena* GetArena() const final {
  11711. return GetArenaNoVirtual();
  11712. }
  11713. inline void* GetMaybeArenaPointer() const final {
  11714. return MaybeArenaPtr();
  11715. }
  11716. static const ::google::protobuf::Descriptor* descriptor();
  11717. static const TestUnpackedExtensions& default_instance();
  11718. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  11719. static inline const TestUnpackedExtensions* internal_default_instance() {
  11720. return reinterpret_cast<const TestUnpackedExtensions*>(
  11721. &_TestUnpackedExtensions_default_instance_);
  11722. }
  11723. static constexpr int kIndexInFileMessages =
  11724. 69;
  11725. void UnsafeArenaSwap(TestUnpackedExtensions* other);
  11726. void Swap(TestUnpackedExtensions* other);
  11727. friend void swap(TestUnpackedExtensions& a, TestUnpackedExtensions& b) {
  11728. a.Swap(&b);
  11729. }
  11730. // implements Message ----------------------------------------------
  11731. inline TestUnpackedExtensions* New() const final {
  11732. return CreateMaybeMessage<TestUnpackedExtensions>(NULL);
  11733. }
  11734. TestUnpackedExtensions* New(::google::protobuf::Arena* arena) const final {
  11735. return CreateMaybeMessage<TestUnpackedExtensions>(arena);
  11736. }
  11737. void CopyFrom(const ::google::protobuf::Message& from) final;
  11738. void MergeFrom(const ::google::protobuf::Message& from) final;
  11739. void CopyFrom(const TestUnpackedExtensions& from);
  11740. void MergeFrom(const TestUnpackedExtensions& from);
  11741. void Clear() final;
  11742. bool IsInitialized() const final;
  11743. size_t ByteSizeLong() const final;
  11744. bool MergePartialFromCodedStream(
  11745. ::google::protobuf::io::CodedInputStream* input) final;
  11746. void SerializeWithCachedSizes(
  11747. ::google::protobuf::io::CodedOutputStream* output) const final;
  11748. ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
  11749. bool deterministic, ::google::protobuf::uint8* target) const final;
  11750. int GetCachedSize() const final { return _cached_size_.Get(); }
  11751. private:
  11752. void SharedCtor();
  11753. void SharedDtor();
  11754. void SetCachedSize(int size) const final;
  11755. void InternalSwap(TestUnpackedExtensions* other);
  11756. protected:
  11757. explicit TestUnpackedExtensions(::google::protobuf::Arena* arena);
  11758. private:
  11759. static void ArenaDtor(void* object);
  11760. inline void RegisterArenaDtor(::google::protobuf::Arena* arena);
  11761. private:
  11762. inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
  11763. return _internal_metadata_.arena();
  11764. }
  11765. inline void* MaybeArenaPtr() const {
  11766. return _internal_metadata_.raw_arena_ptr();
  11767. }
  11768. public:
  11769. ::google::protobuf::Metadata GetMetadata() const final;
  11770. // nested types ----------------------------------------------------
  11771. // accessors -------------------------------------------------------
  11772. GOOGLE_PROTOBUF_EXTENSION_ACCESSORS(TestUnpackedExtensions)
  11773. // @@protoc_insertion_point(class_scope:protobuf_unittest.TestUnpackedExtensions)
  11774. private:
  11775. ::google::protobuf::internal::ExtensionSet _extensions_;
  11776. ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
  11777. template <typename T> friend class ::google::protobuf::Arena::InternalHelper;
  11778. typedef void InternalArenaConstructable_;
  11779. typedef void DestructorSkippable_;
  11780. ::google::protobuf::internal::HasBits<1> _has_bits_;
  11781. mutable ::google::protobuf::internal::CachedSize _cached_size_;
  11782. friend struct ::protobuf_google_2fprotobuf_2funittest_2eproto::TableStruct;
  11783. };
  11784. // -------------------------------------------------------------------
  11785. class TestDynamicExtensions_DynamicMessageType : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:protobuf_unittest.TestDynamicExtensions.DynamicMessageType) */ {
  11786. public:
  11787. TestDynamicExtensions_DynamicMessageType();
  11788. virtual ~TestDynamicExtensions_DynamicMessageType();
  11789. TestDynamicExtensions_DynamicMessageType(const TestDynamicExtensions_DynamicMessageType& from);
  11790. inline TestDynamicExtensions_DynamicMessageType& operator=(const TestDynamicExtensions_DynamicMessageType& from) {
  11791. CopyFrom(from);
  11792. return *this;
  11793. }
  11794. #if LANG_CXX11
  11795. TestDynamicExtensions_DynamicMessageType(TestDynamicExtensions_DynamicMessageType&& from) noexcept
  11796. : TestDynamicExtensions_DynamicMessageType() {
  11797. *this = ::std::move(from);
  11798. }
  11799. inline TestDynamicExtensions_DynamicMessageType& operator=(TestDynamicExtensions_DynamicMessageType&& from) noexcept {
  11800. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  11801. if (this != &from) InternalSwap(&from);
  11802. } else {
  11803. CopyFrom(from);
  11804. }
  11805. return *this;
  11806. }
  11807. #endif
  11808. inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
  11809. return _internal_metadata_.unknown_fields();
  11810. }
  11811. inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
  11812. return _internal_metadata_.mutable_unknown_fields();
  11813. }
  11814. inline ::google::protobuf::Arena* GetArena() const final {
  11815. return GetArenaNoVirtual();
  11816. }
  11817. inline void* GetMaybeArenaPointer() const final {
  11818. return MaybeArenaPtr();
  11819. }
  11820. static const ::google::protobuf::Descriptor* descriptor();
  11821. static const TestDynamicExtensions_DynamicMessageType& default_instance();
  11822. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  11823. static inline const TestDynamicExtensions_DynamicMessageType* internal_default_instance() {
  11824. return reinterpret_cast<const TestDynamicExtensions_DynamicMessageType*>(
  11825. &_TestDynamicExtensions_DynamicMessageType_default_instance_);
  11826. }
  11827. static constexpr int kIndexInFileMessages =
  11828. 70;
  11829. void UnsafeArenaSwap(TestDynamicExtensions_DynamicMessageType* other);
  11830. void Swap(TestDynamicExtensions_DynamicMessageType* other);
  11831. friend void swap(TestDynamicExtensions_DynamicMessageType& a, TestDynamicExtensions_DynamicMessageType& b) {
  11832. a.Swap(&b);
  11833. }
  11834. // implements Message ----------------------------------------------
  11835. inline TestDynamicExtensions_DynamicMessageType* New() const final {
  11836. return CreateMaybeMessage<TestDynamicExtensions_DynamicMessageType>(NULL);
  11837. }
  11838. TestDynamicExtensions_DynamicMessageType* New(::google::protobuf::Arena* arena) const final {
  11839. return CreateMaybeMessage<TestDynamicExtensions_DynamicMessageType>(arena);
  11840. }
  11841. void CopyFrom(const ::google::protobuf::Message& from) final;
  11842. void MergeFrom(const ::google::protobuf::Message& from) final;
  11843. void CopyFrom(const TestDynamicExtensions_DynamicMessageType& from);
  11844. void MergeFrom(const TestDynamicExtensions_DynamicMessageType& from);
  11845. void Clear() final;
  11846. bool IsInitialized() const final;
  11847. size_t ByteSizeLong() const final;
  11848. bool MergePartialFromCodedStream(
  11849. ::google::protobuf::io::CodedInputStream* input) final;
  11850. void SerializeWithCachedSizes(
  11851. ::google::protobuf::io::CodedOutputStream* output) const final;
  11852. ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
  11853. bool deterministic, ::google::protobuf::uint8* target) const final;
  11854. int GetCachedSize() const final { return _cached_size_.Get(); }
  11855. private:
  11856. void SharedCtor();
  11857. void SharedDtor();
  11858. void SetCachedSize(int size) const final;
  11859. void InternalSwap(TestDynamicExtensions_DynamicMessageType* other);
  11860. protected:
  11861. explicit TestDynamicExtensions_DynamicMessageType(::google::protobuf::Arena* arena);
  11862. private:
  11863. static void ArenaDtor(void* object);
  11864. inline void RegisterArenaDtor(::google::protobuf::Arena* arena);
  11865. private:
  11866. inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
  11867. return _internal_metadata_.arena();
  11868. }
  11869. inline void* MaybeArenaPtr() const {
  11870. return _internal_metadata_.raw_arena_ptr();
  11871. }
  11872. public:
  11873. ::google::protobuf::Metadata GetMetadata() const final;
  11874. // nested types ----------------------------------------------------
  11875. // accessors -------------------------------------------------------
  11876. // optional int32 dynamic_field = 2100;
  11877. bool has_dynamic_field() const;
  11878. void clear_dynamic_field();
  11879. static const int kDynamicFieldFieldNumber = 2100;
  11880. ::google::protobuf::int32 dynamic_field() const;
  11881. void set_dynamic_field(::google::protobuf::int32 value);
  11882. // @@protoc_insertion_point(class_scope:protobuf_unittest.TestDynamicExtensions.DynamicMessageType)
  11883. private:
  11884. void set_has_dynamic_field();
  11885. void clear_has_dynamic_field();
  11886. ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
  11887. template <typename T> friend class ::google::protobuf::Arena::InternalHelper;
  11888. typedef void InternalArenaConstructable_;
  11889. typedef void DestructorSkippable_;
  11890. ::google::protobuf::internal::HasBits<1> _has_bits_;
  11891. mutable ::google::protobuf::internal::CachedSize _cached_size_;
  11892. ::google::protobuf::int32 dynamic_field_;
  11893. friend struct ::protobuf_google_2fprotobuf_2funittest_2eproto::TableStruct;
  11894. };
  11895. // -------------------------------------------------------------------
  11896. class TestDynamicExtensions : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:protobuf_unittest.TestDynamicExtensions) */ {
  11897. public:
  11898. TestDynamicExtensions();
  11899. virtual ~TestDynamicExtensions();
  11900. TestDynamicExtensions(const TestDynamicExtensions& from);
  11901. inline TestDynamicExtensions& operator=(const TestDynamicExtensions& from) {
  11902. CopyFrom(from);
  11903. return *this;
  11904. }
  11905. #if LANG_CXX11
  11906. TestDynamicExtensions(TestDynamicExtensions&& from) noexcept
  11907. : TestDynamicExtensions() {
  11908. *this = ::std::move(from);
  11909. }
  11910. inline TestDynamicExtensions& operator=(TestDynamicExtensions&& from) noexcept {
  11911. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  11912. if (this != &from) InternalSwap(&from);
  11913. } else {
  11914. CopyFrom(from);
  11915. }
  11916. return *this;
  11917. }
  11918. #endif
  11919. inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
  11920. return _internal_metadata_.unknown_fields();
  11921. }
  11922. inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
  11923. return _internal_metadata_.mutable_unknown_fields();
  11924. }
  11925. inline ::google::protobuf::Arena* GetArena() const final {
  11926. return GetArenaNoVirtual();
  11927. }
  11928. inline void* GetMaybeArenaPointer() const final {
  11929. return MaybeArenaPtr();
  11930. }
  11931. static const ::google::protobuf::Descriptor* descriptor();
  11932. static const TestDynamicExtensions& default_instance();
  11933. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  11934. static inline const TestDynamicExtensions* internal_default_instance() {
  11935. return reinterpret_cast<const TestDynamicExtensions*>(
  11936. &_TestDynamicExtensions_default_instance_);
  11937. }
  11938. static constexpr int kIndexInFileMessages =
  11939. 71;
  11940. void UnsafeArenaSwap(TestDynamicExtensions* other);
  11941. void Swap(TestDynamicExtensions* other);
  11942. friend void swap(TestDynamicExtensions& a, TestDynamicExtensions& b) {
  11943. a.Swap(&b);
  11944. }
  11945. // implements Message ----------------------------------------------
  11946. inline TestDynamicExtensions* New() const final {
  11947. return CreateMaybeMessage<TestDynamicExtensions>(NULL);
  11948. }
  11949. TestDynamicExtensions* New(::google::protobuf::Arena* arena) const final {
  11950. return CreateMaybeMessage<TestDynamicExtensions>(arena);
  11951. }
  11952. void CopyFrom(const ::google::protobuf::Message& from) final;
  11953. void MergeFrom(const ::google::protobuf::Message& from) final;
  11954. void CopyFrom(const TestDynamicExtensions& from);
  11955. void MergeFrom(const TestDynamicExtensions& from);
  11956. void Clear() final;
  11957. bool IsInitialized() const final;
  11958. size_t ByteSizeLong() const final;
  11959. bool MergePartialFromCodedStream(
  11960. ::google::protobuf::io::CodedInputStream* input) final;
  11961. void SerializeWithCachedSizes(
  11962. ::google::protobuf::io::CodedOutputStream* output) const final;
  11963. ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
  11964. bool deterministic, ::google::protobuf::uint8* target) const final;
  11965. int GetCachedSize() const final { return _cached_size_.Get(); }
  11966. private:
  11967. void SharedCtor();
  11968. void SharedDtor();
  11969. void SetCachedSize(int size) const final;
  11970. void InternalSwap(TestDynamicExtensions* other);
  11971. protected:
  11972. explicit TestDynamicExtensions(::google::protobuf::Arena* arena);
  11973. private:
  11974. static void ArenaDtor(void* object);
  11975. inline void RegisterArenaDtor(::google::protobuf::Arena* arena);
  11976. private:
  11977. inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
  11978. return _internal_metadata_.arena();
  11979. }
  11980. inline void* MaybeArenaPtr() const {
  11981. return _internal_metadata_.raw_arena_ptr();
  11982. }
  11983. public:
  11984. ::google::protobuf::Metadata GetMetadata() const final;
  11985. // nested types ----------------------------------------------------
  11986. typedef TestDynamicExtensions_DynamicMessageType DynamicMessageType;
  11987. typedef TestDynamicExtensions_DynamicEnumType DynamicEnumType;
  11988. static const DynamicEnumType DYNAMIC_FOO =
  11989. TestDynamicExtensions_DynamicEnumType_DYNAMIC_FOO;
  11990. static const DynamicEnumType DYNAMIC_BAR =
  11991. TestDynamicExtensions_DynamicEnumType_DYNAMIC_BAR;
  11992. static const DynamicEnumType DYNAMIC_BAZ =
  11993. TestDynamicExtensions_DynamicEnumType_DYNAMIC_BAZ;
  11994. static inline bool DynamicEnumType_IsValid(int value) {
  11995. return TestDynamicExtensions_DynamicEnumType_IsValid(value);
  11996. }
  11997. static const DynamicEnumType DynamicEnumType_MIN =
  11998. TestDynamicExtensions_DynamicEnumType_DynamicEnumType_MIN;
  11999. static const DynamicEnumType DynamicEnumType_MAX =
  12000. TestDynamicExtensions_DynamicEnumType_DynamicEnumType_MAX;
  12001. static const int DynamicEnumType_ARRAYSIZE =
  12002. TestDynamicExtensions_DynamicEnumType_DynamicEnumType_ARRAYSIZE;
  12003. static inline const ::google::protobuf::EnumDescriptor*
  12004. DynamicEnumType_descriptor() {
  12005. return TestDynamicExtensions_DynamicEnumType_descriptor();
  12006. }
  12007. static inline const ::std::string& DynamicEnumType_Name(DynamicEnumType value) {
  12008. return TestDynamicExtensions_DynamicEnumType_Name(value);
  12009. }
  12010. static inline bool DynamicEnumType_Parse(const ::std::string& name,
  12011. DynamicEnumType* value) {
  12012. return TestDynamicExtensions_DynamicEnumType_Parse(name, value);
  12013. }
  12014. // accessors -------------------------------------------------------
  12015. // repeated string repeated_extension = 2005;
  12016. int repeated_extension_size() const;
  12017. void clear_repeated_extension();
  12018. static const int kRepeatedExtensionFieldNumber = 2005;
  12019. const ::std::string& repeated_extension(int index) const;
  12020. ::std::string* mutable_repeated_extension(int index);
  12021. void set_repeated_extension(int index, const ::std::string& value);
  12022. #if LANG_CXX11
  12023. void set_repeated_extension(int index, ::std::string&& value);
  12024. #endif
  12025. void set_repeated_extension(int index, const char* value);
  12026. void set_repeated_extension(int index, const char* value, size_t size);
  12027. ::std::string* add_repeated_extension();
  12028. void add_repeated_extension(const ::std::string& value);
  12029. #if LANG_CXX11
  12030. void add_repeated_extension(::std::string&& value);
  12031. #endif
  12032. void add_repeated_extension(const char* value);
  12033. void add_repeated_extension(const char* value, size_t size);
  12034. const ::google::protobuf::RepeatedPtrField< ::std::string>& repeated_extension() const;
  12035. ::google::protobuf::RepeatedPtrField< ::std::string>* mutable_repeated_extension();
  12036. // repeated sint32 packed_extension = 2006 [packed = true];
  12037. int packed_extension_size() const;
  12038. void clear_packed_extension();
  12039. static const int kPackedExtensionFieldNumber = 2006;
  12040. ::google::protobuf::int32 packed_extension(int index) const;
  12041. void set_packed_extension(int index, ::google::protobuf::int32 value);
  12042. void add_packed_extension(::google::protobuf::int32 value);
  12043. const ::google::protobuf::RepeatedField< ::google::protobuf::int32 >&
  12044. packed_extension() const;
  12045. ::google::protobuf::RepeatedField< ::google::protobuf::int32 >*
  12046. mutable_packed_extension();
  12047. // optional .protobuf_unittest.ForeignMessage message_extension = 2003;
  12048. bool has_message_extension() const;
  12049. void clear_message_extension();
  12050. static const int kMessageExtensionFieldNumber = 2003;
  12051. private:
  12052. const ::protobuf_unittest::ForeignMessage& _internal_message_extension() const;
  12053. public:
  12054. const ::protobuf_unittest::ForeignMessage& message_extension() const;
  12055. ::protobuf_unittest::ForeignMessage* release_message_extension();
  12056. ::protobuf_unittest::ForeignMessage* mutable_message_extension();
  12057. void set_allocated_message_extension(::protobuf_unittest::ForeignMessage* message_extension);
  12058. void unsafe_arena_set_allocated_message_extension(
  12059. ::protobuf_unittest::ForeignMessage* message_extension);
  12060. ::protobuf_unittest::ForeignMessage* unsafe_arena_release_message_extension();
  12061. // optional .protobuf_unittest.TestDynamicExtensions.DynamicMessageType dynamic_message_extension = 2004;
  12062. bool has_dynamic_message_extension() const;
  12063. void clear_dynamic_message_extension();
  12064. static const int kDynamicMessageExtensionFieldNumber = 2004;
  12065. private:
  12066. const ::protobuf_unittest::TestDynamicExtensions_DynamicMessageType& _internal_dynamic_message_extension() const;
  12067. public:
  12068. const ::protobuf_unittest::TestDynamicExtensions_DynamicMessageType& dynamic_message_extension() const;
  12069. ::protobuf_unittest::TestDynamicExtensions_DynamicMessageType* release_dynamic_message_extension();
  12070. ::protobuf_unittest::TestDynamicExtensions_DynamicMessageType* mutable_dynamic_message_extension();
  12071. void set_allocated_dynamic_message_extension(::protobuf_unittest::TestDynamicExtensions_DynamicMessageType* dynamic_message_extension);
  12072. void unsafe_arena_set_allocated_dynamic_message_extension(
  12073. ::protobuf_unittest::TestDynamicExtensions_DynamicMessageType* dynamic_message_extension);
  12074. ::protobuf_unittest::TestDynamicExtensions_DynamicMessageType* unsafe_arena_release_dynamic_message_extension();
  12075. // optional fixed32 scalar_extension = 2000;
  12076. bool has_scalar_extension() const;
  12077. void clear_scalar_extension();
  12078. static const int kScalarExtensionFieldNumber = 2000;
  12079. ::google::protobuf::uint32 scalar_extension() const;
  12080. void set_scalar_extension(::google::protobuf::uint32 value);
  12081. // optional .protobuf_unittest.ForeignEnum enum_extension = 2001;
  12082. bool has_enum_extension() const;
  12083. void clear_enum_extension();
  12084. static const int kEnumExtensionFieldNumber = 2001;
  12085. ::protobuf_unittest::ForeignEnum enum_extension() const;
  12086. void set_enum_extension(::protobuf_unittest::ForeignEnum value);
  12087. // optional .protobuf_unittest.TestDynamicExtensions.DynamicEnumType dynamic_enum_extension = 2002;
  12088. bool has_dynamic_enum_extension() const;
  12089. void clear_dynamic_enum_extension();
  12090. static const int kDynamicEnumExtensionFieldNumber = 2002;
  12091. ::protobuf_unittest::TestDynamicExtensions_DynamicEnumType dynamic_enum_extension() const;
  12092. void set_dynamic_enum_extension(::protobuf_unittest::TestDynamicExtensions_DynamicEnumType value);
  12093. // @@protoc_insertion_point(class_scope:protobuf_unittest.TestDynamicExtensions)
  12094. private:
  12095. void set_has_scalar_extension();
  12096. void clear_has_scalar_extension();
  12097. void set_has_enum_extension();
  12098. void clear_has_enum_extension();
  12099. void set_has_dynamic_enum_extension();
  12100. void clear_has_dynamic_enum_extension();
  12101. void set_has_message_extension();
  12102. void clear_has_message_extension();
  12103. void set_has_dynamic_message_extension();
  12104. void clear_has_dynamic_message_extension();
  12105. ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
  12106. template <typename T> friend class ::google::protobuf::Arena::InternalHelper;
  12107. typedef void InternalArenaConstructable_;
  12108. typedef void DestructorSkippable_;
  12109. ::google::protobuf::internal::HasBits<1> _has_bits_;
  12110. mutable ::google::protobuf::internal::CachedSize _cached_size_;
  12111. ::google::protobuf::RepeatedPtrField< ::std::string> repeated_extension_;
  12112. ::google::protobuf::RepeatedField< ::google::protobuf::int32 > packed_extension_;
  12113. mutable int _packed_extension_cached_byte_size_;
  12114. ::protobuf_unittest::ForeignMessage* message_extension_;
  12115. ::protobuf_unittest::TestDynamicExtensions_DynamicMessageType* dynamic_message_extension_;
  12116. ::google::protobuf::uint32 scalar_extension_;
  12117. int enum_extension_;
  12118. int dynamic_enum_extension_;
  12119. friend struct ::protobuf_google_2fprotobuf_2funittest_2eproto::TableStruct;
  12120. };
  12121. // -------------------------------------------------------------------
  12122. class TestRepeatedScalarDifferentTagSizes : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:protobuf_unittest.TestRepeatedScalarDifferentTagSizes) */ {
  12123. public:
  12124. TestRepeatedScalarDifferentTagSizes();
  12125. virtual ~TestRepeatedScalarDifferentTagSizes();
  12126. TestRepeatedScalarDifferentTagSizes(const TestRepeatedScalarDifferentTagSizes& from);
  12127. inline TestRepeatedScalarDifferentTagSizes& operator=(const TestRepeatedScalarDifferentTagSizes& from) {
  12128. CopyFrom(from);
  12129. return *this;
  12130. }
  12131. #if LANG_CXX11
  12132. TestRepeatedScalarDifferentTagSizes(TestRepeatedScalarDifferentTagSizes&& from) noexcept
  12133. : TestRepeatedScalarDifferentTagSizes() {
  12134. *this = ::std::move(from);
  12135. }
  12136. inline TestRepeatedScalarDifferentTagSizes& operator=(TestRepeatedScalarDifferentTagSizes&& from) noexcept {
  12137. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  12138. if (this != &from) InternalSwap(&from);
  12139. } else {
  12140. CopyFrom(from);
  12141. }
  12142. return *this;
  12143. }
  12144. #endif
  12145. inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
  12146. return _internal_metadata_.unknown_fields();
  12147. }
  12148. inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
  12149. return _internal_metadata_.mutable_unknown_fields();
  12150. }
  12151. inline ::google::protobuf::Arena* GetArena() const final {
  12152. return GetArenaNoVirtual();
  12153. }
  12154. inline void* GetMaybeArenaPointer() const final {
  12155. return MaybeArenaPtr();
  12156. }
  12157. static const ::google::protobuf::Descriptor* descriptor();
  12158. static const TestRepeatedScalarDifferentTagSizes& default_instance();
  12159. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  12160. static inline const TestRepeatedScalarDifferentTagSizes* internal_default_instance() {
  12161. return reinterpret_cast<const TestRepeatedScalarDifferentTagSizes*>(
  12162. &_TestRepeatedScalarDifferentTagSizes_default_instance_);
  12163. }
  12164. static constexpr int kIndexInFileMessages =
  12165. 72;
  12166. void UnsafeArenaSwap(TestRepeatedScalarDifferentTagSizes* other);
  12167. void Swap(TestRepeatedScalarDifferentTagSizes* other);
  12168. friend void swap(TestRepeatedScalarDifferentTagSizes& a, TestRepeatedScalarDifferentTagSizes& b) {
  12169. a.Swap(&b);
  12170. }
  12171. // implements Message ----------------------------------------------
  12172. inline TestRepeatedScalarDifferentTagSizes* New() const final {
  12173. return CreateMaybeMessage<TestRepeatedScalarDifferentTagSizes>(NULL);
  12174. }
  12175. TestRepeatedScalarDifferentTagSizes* New(::google::protobuf::Arena* arena) const final {
  12176. return CreateMaybeMessage<TestRepeatedScalarDifferentTagSizes>(arena);
  12177. }
  12178. void CopyFrom(const ::google::protobuf::Message& from) final;
  12179. void MergeFrom(const ::google::protobuf::Message& from) final;
  12180. void CopyFrom(const TestRepeatedScalarDifferentTagSizes& from);
  12181. void MergeFrom(const TestRepeatedScalarDifferentTagSizes& from);
  12182. void Clear() final;
  12183. bool IsInitialized() const final;
  12184. size_t ByteSizeLong() const final;
  12185. bool MergePartialFromCodedStream(
  12186. ::google::protobuf::io::CodedInputStream* input) final;
  12187. void SerializeWithCachedSizes(
  12188. ::google::protobuf::io::CodedOutputStream* output) const final;
  12189. ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
  12190. bool deterministic, ::google::protobuf::uint8* target) const final;
  12191. int GetCachedSize() const final { return _cached_size_.Get(); }
  12192. private:
  12193. void SharedCtor();
  12194. void SharedDtor();
  12195. void SetCachedSize(int size) const final;
  12196. void InternalSwap(TestRepeatedScalarDifferentTagSizes* other);
  12197. protected:
  12198. explicit TestRepeatedScalarDifferentTagSizes(::google::protobuf::Arena* arena);
  12199. private:
  12200. static void ArenaDtor(void* object);
  12201. inline void RegisterArenaDtor(::google::protobuf::Arena* arena);
  12202. private:
  12203. inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
  12204. return _internal_metadata_.arena();
  12205. }
  12206. inline void* MaybeArenaPtr() const {
  12207. return _internal_metadata_.raw_arena_ptr();
  12208. }
  12209. public:
  12210. ::google::protobuf::Metadata GetMetadata() const final;
  12211. // nested types ----------------------------------------------------
  12212. // accessors -------------------------------------------------------
  12213. // repeated fixed32 repeated_fixed32 = 12;
  12214. int repeated_fixed32_size() const;
  12215. void clear_repeated_fixed32();
  12216. static const int kRepeatedFixed32FieldNumber = 12;
  12217. ::google::protobuf::uint32 repeated_fixed32(int index) const;
  12218. void set_repeated_fixed32(int index, ::google::protobuf::uint32 value);
  12219. void add_repeated_fixed32(::google::protobuf::uint32 value);
  12220. const ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >&
  12221. repeated_fixed32() const;
  12222. ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >*
  12223. mutable_repeated_fixed32();
  12224. // repeated int32 repeated_int32 = 13;
  12225. int repeated_int32_size() const;
  12226. void clear_repeated_int32();
  12227. static const int kRepeatedInt32FieldNumber = 13;
  12228. ::google::protobuf::int32 repeated_int32(int index) const;
  12229. void set_repeated_int32(int index, ::google::protobuf::int32 value);
  12230. void add_repeated_int32(::google::protobuf::int32 value);
  12231. const ::google::protobuf::RepeatedField< ::google::protobuf::int32 >&
  12232. repeated_int32() const;
  12233. ::google::protobuf::RepeatedField< ::google::protobuf::int32 >*
  12234. mutable_repeated_int32();
  12235. // repeated fixed64 repeated_fixed64 = 2046;
  12236. int repeated_fixed64_size() const;
  12237. void clear_repeated_fixed64();
  12238. static const int kRepeatedFixed64FieldNumber = 2046;
  12239. ::google::protobuf::uint64 repeated_fixed64(int index) const;
  12240. void set_repeated_fixed64(int index, ::google::protobuf::uint64 value);
  12241. void add_repeated_fixed64(::google::protobuf::uint64 value);
  12242. const ::google::protobuf::RepeatedField< ::google::protobuf::uint64 >&
  12243. repeated_fixed64() const;
  12244. ::google::protobuf::RepeatedField< ::google::protobuf::uint64 >*
  12245. mutable_repeated_fixed64();
  12246. // repeated int64 repeated_int64 = 2047;
  12247. int repeated_int64_size() const;
  12248. void clear_repeated_int64();
  12249. static const int kRepeatedInt64FieldNumber = 2047;
  12250. ::google::protobuf::int64 repeated_int64(int index) const;
  12251. void set_repeated_int64(int index, ::google::protobuf::int64 value);
  12252. void add_repeated_int64(::google::protobuf::int64 value);
  12253. const ::google::protobuf::RepeatedField< ::google::protobuf::int64 >&
  12254. repeated_int64() const;
  12255. ::google::protobuf::RepeatedField< ::google::protobuf::int64 >*
  12256. mutable_repeated_int64();
  12257. // repeated float repeated_float = 262142;
  12258. int repeated_float_size() const;
  12259. void clear_repeated_float();
  12260. static const int kRepeatedFloatFieldNumber = 262142;
  12261. float repeated_float(int index) const;
  12262. void set_repeated_float(int index, float value);
  12263. void add_repeated_float(float value);
  12264. const ::google::protobuf::RepeatedField< float >&
  12265. repeated_float() const;
  12266. ::google::protobuf::RepeatedField< float >*
  12267. mutable_repeated_float();
  12268. // repeated uint64 repeated_uint64 = 262143;
  12269. int repeated_uint64_size() const;
  12270. void clear_repeated_uint64();
  12271. static const int kRepeatedUint64FieldNumber = 262143;
  12272. ::google::protobuf::uint64 repeated_uint64(int index) const;
  12273. void set_repeated_uint64(int index, ::google::protobuf::uint64 value);
  12274. void add_repeated_uint64(::google::protobuf::uint64 value);
  12275. const ::google::protobuf::RepeatedField< ::google::protobuf::uint64 >&
  12276. repeated_uint64() const;
  12277. ::google::protobuf::RepeatedField< ::google::protobuf::uint64 >*
  12278. mutable_repeated_uint64();
  12279. // @@protoc_insertion_point(class_scope:protobuf_unittest.TestRepeatedScalarDifferentTagSizes)
  12280. private:
  12281. ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
  12282. template <typename T> friend class ::google::protobuf::Arena::InternalHelper;
  12283. typedef void InternalArenaConstructable_;
  12284. typedef void DestructorSkippable_;
  12285. ::google::protobuf::internal::HasBits<1> _has_bits_;
  12286. mutable ::google::protobuf::internal::CachedSize _cached_size_;
  12287. ::google::protobuf::RepeatedField< ::google::protobuf::uint32 > repeated_fixed32_;
  12288. ::google::protobuf::RepeatedField< ::google::protobuf::int32 > repeated_int32_;
  12289. ::google::protobuf::RepeatedField< ::google::protobuf::uint64 > repeated_fixed64_;
  12290. ::google::protobuf::RepeatedField< ::google::protobuf::int64 > repeated_int64_;
  12291. ::google::protobuf::RepeatedField< float > repeated_float_;
  12292. ::google::protobuf::RepeatedField< ::google::protobuf::uint64 > repeated_uint64_;
  12293. friend struct ::protobuf_google_2fprotobuf_2funittest_2eproto::TableStruct;
  12294. };
  12295. // -------------------------------------------------------------------
  12296. class TestParsingMerge_RepeatedFieldsGenerator_Group1 : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:protobuf_unittest.TestParsingMerge.RepeatedFieldsGenerator.Group1) */ {
  12297. public:
  12298. TestParsingMerge_RepeatedFieldsGenerator_Group1();
  12299. virtual ~TestParsingMerge_RepeatedFieldsGenerator_Group1();
  12300. TestParsingMerge_RepeatedFieldsGenerator_Group1(const TestParsingMerge_RepeatedFieldsGenerator_Group1& from);
  12301. inline TestParsingMerge_RepeatedFieldsGenerator_Group1& operator=(const TestParsingMerge_RepeatedFieldsGenerator_Group1& from) {
  12302. CopyFrom(from);
  12303. return *this;
  12304. }
  12305. #if LANG_CXX11
  12306. TestParsingMerge_RepeatedFieldsGenerator_Group1(TestParsingMerge_RepeatedFieldsGenerator_Group1&& from) noexcept
  12307. : TestParsingMerge_RepeatedFieldsGenerator_Group1() {
  12308. *this = ::std::move(from);
  12309. }
  12310. inline TestParsingMerge_RepeatedFieldsGenerator_Group1& operator=(TestParsingMerge_RepeatedFieldsGenerator_Group1&& from) noexcept {
  12311. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  12312. if (this != &from) InternalSwap(&from);
  12313. } else {
  12314. CopyFrom(from);
  12315. }
  12316. return *this;
  12317. }
  12318. #endif
  12319. inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
  12320. return _internal_metadata_.unknown_fields();
  12321. }
  12322. inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
  12323. return _internal_metadata_.mutable_unknown_fields();
  12324. }
  12325. inline ::google::protobuf::Arena* GetArena() const final {
  12326. return GetArenaNoVirtual();
  12327. }
  12328. inline void* GetMaybeArenaPointer() const final {
  12329. return MaybeArenaPtr();
  12330. }
  12331. static const ::google::protobuf::Descriptor* descriptor();
  12332. static const TestParsingMerge_RepeatedFieldsGenerator_Group1& default_instance();
  12333. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  12334. static inline const TestParsingMerge_RepeatedFieldsGenerator_Group1* internal_default_instance() {
  12335. return reinterpret_cast<const TestParsingMerge_RepeatedFieldsGenerator_Group1*>(
  12336. &_TestParsingMerge_RepeatedFieldsGenerator_Group1_default_instance_);
  12337. }
  12338. static constexpr int kIndexInFileMessages =
  12339. 73;
  12340. void UnsafeArenaSwap(TestParsingMerge_RepeatedFieldsGenerator_Group1* other);
  12341. void Swap(TestParsingMerge_RepeatedFieldsGenerator_Group1* other);
  12342. friend void swap(TestParsingMerge_RepeatedFieldsGenerator_Group1& a, TestParsingMerge_RepeatedFieldsGenerator_Group1& b) {
  12343. a.Swap(&b);
  12344. }
  12345. // implements Message ----------------------------------------------
  12346. inline TestParsingMerge_RepeatedFieldsGenerator_Group1* New() const final {
  12347. return CreateMaybeMessage<TestParsingMerge_RepeatedFieldsGenerator_Group1>(NULL);
  12348. }
  12349. TestParsingMerge_RepeatedFieldsGenerator_Group1* New(::google::protobuf::Arena* arena) const final {
  12350. return CreateMaybeMessage<TestParsingMerge_RepeatedFieldsGenerator_Group1>(arena);
  12351. }
  12352. void CopyFrom(const ::google::protobuf::Message& from) final;
  12353. void MergeFrom(const ::google::protobuf::Message& from) final;
  12354. void CopyFrom(const TestParsingMerge_RepeatedFieldsGenerator_Group1& from);
  12355. void MergeFrom(const TestParsingMerge_RepeatedFieldsGenerator_Group1& from);
  12356. void Clear() final;
  12357. bool IsInitialized() const final;
  12358. size_t ByteSizeLong() const final;
  12359. bool MergePartialFromCodedStream(
  12360. ::google::protobuf::io::CodedInputStream* input) final;
  12361. void SerializeWithCachedSizes(
  12362. ::google::protobuf::io::CodedOutputStream* output) const final;
  12363. ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
  12364. bool deterministic, ::google::protobuf::uint8* target) const final;
  12365. int GetCachedSize() const final { return _cached_size_.Get(); }
  12366. private:
  12367. void SharedCtor();
  12368. void SharedDtor();
  12369. void SetCachedSize(int size) const final;
  12370. void InternalSwap(TestParsingMerge_RepeatedFieldsGenerator_Group1* other);
  12371. protected:
  12372. explicit TestParsingMerge_RepeatedFieldsGenerator_Group1(::google::protobuf::Arena* arena);
  12373. private:
  12374. static void ArenaDtor(void* object);
  12375. inline void RegisterArenaDtor(::google::protobuf::Arena* arena);
  12376. private:
  12377. inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
  12378. return _internal_metadata_.arena();
  12379. }
  12380. inline void* MaybeArenaPtr() const {
  12381. return _internal_metadata_.raw_arena_ptr();
  12382. }
  12383. public:
  12384. ::google::protobuf::Metadata GetMetadata() const final;
  12385. // nested types ----------------------------------------------------
  12386. // accessors -------------------------------------------------------
  12387. // optional .protobuf_unittest.TestAllTypes field1 = 11;
  12388. bool has_field1() const;
  12389. void clear_field1();
  12390. static const int kField1FieldNumber = 11;
  12391. private:
  12392. const ::protobuf_unittest::TestAllTypes& _internal_field1() const;
  12393. public:
  12394. const ::protobuf_unittest::TestAllTypes& field1() const;
  12395. ::protobuf_unittest::TestAllTypes* release_field1();
  12396. ::protobuf_unittest::TestAllTypes* mutable_field1();
  12397. void set_allocated_field1(::protobuf_unittest::TestAllTypes* field1);
  12398. void unsafe_arena_set_allocated_field1(
  12399. ::protobuf_unittest::TestAllTypes* field1);
  12400. ::protobuf_unittest::TestAllTypes* unsafe_arena_release_field1();
  12401. // @@protoc_insertion_point(class_scope:protobuf_unittest.TestParsingMerge.RepeatedFieldsGenerator.Group1)
  12402. private:
  12403. void set_has_field1();
  12404. void clear_has_field1();
  12405. ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
  12406. template <typename T> friend class ::google::protobuf::Arena::InternalHelper;
  12407. typedef void InternalArenaConstructable_;
  12408. typedef void DestructorSkippable_;
  12409. ::google::protobuf::internal::HasBits<1> _has_bits_;
  12410. mutable ::google::protobuf::internal::CachedSize _cached_size_;
  12411. ::protobuf_unittest::TestAllTypes* field1_;
  12412. friend struct ::protobuf_google_2fprotobuf_2funittest_2eproto::TableStruct;
  12413. };
  12414. // -------------------------------------------------------------------
  12415. class TestParsingMerge_RepeatedFieldsGenerator_Group2 : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:protobuf_unittest.TestParsingMerge.RepeatedFieldsGenerator.Group2) */ {
  12416. public:
  12417. TestParsingMerge_RepeatedFieldsGenerator_Group2();
  12418. virtual ~TestParsingMerge_RepeatedFieldsGenerator_Group2();
  12419. TestParsingMerge_RepeatedFieldsGenerator_Group2(const TestParsingMerge_RepeatedFieldsGenerator_Group2& from);
  12420. inline TestParsingMerge_RepeatedFieldsGenerator_Group2& operator=(const TestParsingMerge_RepeatedFieldsGenerator_Group2& from) {
  12421. CopyFrom(from);
  12422. return *this;
  12423. }
  12424. #if LANG_CXX11
  12425. TestParsingMerge_RepeatedFieldsGenerator_Group2(TestParsingMerge_RepeatedFieldsGenerator_Group2&& from) noexcept
  12426. : TestParsingMerge_RepeatedFieldsGenerator_Group2() {
  12427. *this = ::std::move(from);
  12428. }
  12429. inline TestParsingMerge_RepeatedFieldsGenerator_Group2& operator=(TestParsingMerge_RepeatedFieldsGenerator_Group2&& from) noexcept {
  12430. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  12431. if (this != &from) InternalSwap(&from);
  12432. } else {
  12433. CopyFrom(from);
  12434. }
  12435. return *this;
  12436. }
  12437. #endif
  12438. inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
  12439. return _internal_metadata_.unknown_fields();
  12440. }
  12441. inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
  12442. return _internal_metadata_.mutable_unknown_fields();
  12443. }
  12444. inline ::google::protobuf::Arena* GetArena() const final {
  12445. return GetArenaNoVirtual();
  12446. }
  12447. inline void* GetMaybeArenaPointer() const final {
  12448. return MaybeArenaPtr();
  12449. }
  12450. static const ::google::protobuf::Descriptor* descriptor();
  12451. static const TestParsingMerge_RepeatedFieldsGenerator_Group2& default_instance();
  12452. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  12453. static inline const TestParsingMerge_RepeatedFieldsGenerator_Group2* internal_default_instance() {
  12454. return reinterpret_cast<const TestParsingMerge_RepeatedFieldsGenerator_Group2*>(
  12455. &_TestParsingMerge_RepeatedFieldsGenerator_Group2_default_instance_);
  12456. }
  12457. static constexpr int kIndexInFileMessages =
  12458. 74;
  12459. void UnsafeArenaSwap(TestParsingMerge_RepeatedFieldsGenerator_Group2* other);
  12460. void Swap(TestParsingMerge_RepeatedFieldsGenerator_Group2* other);
  12461. friend void swap(TestParsingMerge_RepeatedFieldsGenerator_Group2& a, TestParsingMerge_RepeatedFieldsGenerator_Group2& b) {
  12462. a.Swap(&b);
  12463. }
  12464. // implements Message ----------------------------------------------
  12465. inline TestParsingMerge_RepeatedFieldsGenerator_Group2* New() const final {
  12466. return CreateMaybeMessage<TestParsingMerge_RepeatedFieldsGenerator_Group2>(NULL);
  12467. }
  12468. TestParsingMerge_RepeatedFieldsGenerator_Group2* New(::google::protobuf::Arena* arena) const final {
  12469. return CreateMaybeMessage<TestParsingMerge_RepeatedFieldsGenerator_Group2>(arena);
  12470. }
  12471. void CopyFrom(const ::google::protobuf::Message& from) final;
  12472. void MergeFrom(const ::google::protobuf::Message& from) final;
  12473. void CopyFrom(const TestParsingMerge_RepeatedFieldsGenerator_Group2& from);
  12474. void MergeFrom(const TestParsingMerge_RepeatedFieldsGenerator_Group2& from);
  12475. void Clear() final;
  12476. bool IsInitialized() const final;
  12477. size_t ByteSizeLong() const final;
  12478. bool MergePartialFromCodedStream(
  12479. ::google::protobuf::io::CodedInputStream* input) final;
  12480. void SerializeWithCachedSizes(
  12481. ::google::protobuf::io::CodedOutputStream* output) const final;
  12482. ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
  12483. bool deterministic, ::google::protobuf::uint8* target) const final;
  12484. int GetCachedSize() const final { return _cached_size_.Get(); }
  12485. private:
  12486. void SharedCtor();
  12487. void SharedDtor();
  12488. void SetCachedSize(int size) const final;
  12489. void InternalSwap(TestParsingMerge_RepeatedFieldsGenerator_Group2* other);
  12490. protected:
  12491. explicit TestParsingMerge_RepeatedFieldsGenerator_Group2(::google::protobuf::Arena* arena);
  12492. private:
  12493. static void ArenaDtor(void* object);
  12494. inline void RegisterArenaDtor(::google::protobuf::Arena* arena);
  12495. private:
  12496. inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
  12497. return _internal_metadata_.arena();
  12498. }
  12499. inline void* MaybeArenaPtr() const {
  12500. return _internal_metadata_.raw_arena_ptr();
  12501. }
  12502. public:
  12503. ::google::protobuf::Metadata GetMetadata() const final;
  12504. // nested types ----------------------------------------------------
  12505. // accessors -------------------------------------------------------
  12506. // optional .protobuf_unittest.TestAllTypes field1 = 21;
  12507. bool has_field1() const;
  12508. void clear_field1();
  12509. static const int kField1FieldNumber = 21;
  12510. private:
  12511. const ::protobuf_unittest::TestAllTypes& _internal_field1() const;
  12512. public:
  12513. const ::protobuf_unittest::TestAllTypes& field1() const;
  12514. ::protobuf_unittest::TestAllTypes* release_field1();
  12515. ::protobuf_unittest::TestAllTypes* mutable_field1();
  12516. void set_allocated_field1(::protobuf_unittest::TestAllTypes* field1);
  12517. void unsafe_arena_set_allocated_field1(
  12518. ::protobuf_unittest::TestAllTypes* field1);
  12519. ::protobuf_unittest::TestAllTypes* unsafe_arena_release_field1();
  12520. // @@protoc_insertion_point(class_scope:protobuf_unittest.TestParsingMerge.RepeatedFieldsGenerator.Group2)
  12521. private:
  12522. void set_has_field1();
  12523. void clear_has_field1();
  12524. ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
  12525. template <typename T> friend class ::google::protobuf::Arena::InternalHelper;
  12526. typedef void InternalArenaConstructable_;
  12527. typedef void DestructorSkippable_;
  12528. ::google::protobuf::internal::HasBits<1> _has_bits_;
  12529. mutable ::google::protobuf::internal::CachedSize _cached_size_;
  12530. ::protobuf_unittest::TestAllTypes* field1_;
  12531. friend struct ::protobuf_google_2fprotobuf_2funittest_2eproto::TableStruct;
  12532. };
  12533. // -------------------------------------------------------------------
  12534. class TestParsingMerge_RepeatedFieldsGenerator : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:protobuf_unittest.TestParsingMerge.RepeatedFieldsGenerator) */ {
  12535. public:
  12536. TestParsingMerge_RepeatedFieldsGenerator();
  12537. virtual ~TestParsingMerge_RepeatedFieldsGenerator();
  12538. TestParsingMerge_RepeatedFieldsGenerator(const TestParsingMerge_RepeatedFieldsGenerator& from);
  12539. inline TestParsingMerge_RepeatedFieldsGenerator& operator=(const TestParsingMerge_RepeatedFieldsGenerator& from) {
  12540. CopyFrom(from);
  12541. return *this;
  12542. }
  12543. #if LANG_CXX11
  12544. TestParsingMerge_RepeatedFieldsGenerator(TestParsingMerge_RepeatedFieldsGenerator&& from) noexcept
  12545. : TestParsingMerge_RepeatedFieldsGenerator() {
  12546. *this = ::std::move(from);
  12547. }
  12548. inline TestParsingMerge_RepeatedFieldsGenerator& operator=(TestParsingMerge_RepeatedFieldsGenerator&& from) noexcept {
  12549. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  12550. if (this != &from) InternalSwap(&from);
  12551. } else {
  12552. CopyFrom(from);
  12553. }
  12554. return *this;
  12555. }
  12556. #endif
  12557. inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
  12558. return _internal_metadata_.unknown_fields();
  12559. }
  12560. inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
  12561. return _internal_metadata_.mutable_unknown_fields();
  12562. }
  12563. inline ::google::protobuf::Arena* GetArena() const final {
  12564. return GetArenaNoVirtual();
  12565. }
  12566. inline void* GetMaybeArenaPointer() const final {
  12567. return MaybeArenaPtr();
  12568. }
  12569. static const ::google::protobuf::Descriptor* descriptor();
  12570. static const TestParsingMerge_RepeatedFieldsGenerator& default_instance();
  12571. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  12572. static inline const TestParsingMerge_RepeatedFieldsGenerator* internal_default_instance() {
  12573. return reinterpret_cast<const TestParsingMerge_RepeatedFieldsGenerator*>(
  12574. &_TestParsingMerge_RepeatedFieldsGenerator_default_instance_);
  12575. }
  12576. static constexpr int kIndexInFileMessages =
  12577. 75;
  12578. void UnsafeArenaSwap(TestParsingMerge_RepeatedFieldsGenerator* other);
  12579. void Swap(TestParsingMerge_RepeatedFieldsGenerator* other);
  12580. friend void swap(TestParsingMerge_RepeatedFieldsGenerator& a, TestParsingMerge_RepeatedFieldsGenerator& b) {
  12581. a.Swap(&b);
  12582. }
  12583. // implements Message ----------------------------------------------
  12584. inline TestParsingMerge_RepeatedFieldsGenerator* New() const final {
  12585. return CreateMaybeMessage<TestParsingMerge_RepeatedFieldsGenerator>(NULL);
  12586. }
  12587. TestParsingMerge_RepeatedFieldsGenerator* New(::google::protobuf::Arena* arena) const final {
  12588. return CreateMaybeMessage<TestParsingMerge_RepeatedFieldsGenerator>(arena);
  12589. }
  12590. void CopyFrom(const ::google::protobuf::Message& from) final;
  12591. void MergeFrom(const ::google::protobuf::Message& from) final;
  12592. void CopyFrom(const TestParsingMerge_RepeatedFieldsGenerator& from);
  12593. void MergeFrom(const TestParsingMerge_RepeatedFieldsGenerator& from);
  12594. void Clear() final;
  12595. bool IsInitialized() const final;
  12596. size_t ByteSizeLong() const final;
  12597. bool MergePartialFromCodedStream(
  12598. ::google::protobuf::io::CodedInputStream* input) final;
  12599. void SerializeWithCachedSizes(
  12600. ::google::protobuf::io::CodedOutputStream* output) const final;
  12601. ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
  12602. bool deterministic, ::google::protobuf::uint8* target) const final;
  12603. int GetCachedSize() const final { return _cached_size_.Get(); }
  12604. private:
  12605. void SharedCtor();
  12606. void SharedDtor();
  12607. void SetCachedSize(int size) const final;
  12608. void InternalSwap(TestParsingMerge_RepeatedFieldsGenerator* other);
  12609. protected:
  12610. explicit TestParsingMerge_RepeatedFieldsGenerator(::google::protobuf::Arena* arena);
  12611. private:
  12612. static void ArenaDtor(void* object);
  12613. inline void RegisterArenaDtor(::google::protobuf::Arena* arena);
  12614. private:
  12615. inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
  12616. return _internal_metadata_.arena();
  12617. }
  12618. inline void* MaybeArenaPtr() const {
  12619. return _internal_metadata_.raw_arena_ptr();
  12620. }
  12621. public:
  12622. ::google::protobuf::Metadata GetMetadata() const final;
  12623. // nested types ----------------------------------------------------
  12624. typedef TestParsingMerge_RepeatedFieldsGenerator_Group1 Group1;
  12625. typedef TestParsingMerge_RepeatedFieldsGenerator_Group2 Group2;
  12626. // accessors -------------------------------------------------------
  12627. // repeated .protobuf_unittest.TestAllTypes field1 = 1;
  12628. int field1_size() const;
  12629. void clear_field1();
  12630. static const int kField1FieldNumber = 1;
  12631. ::protobuf_unittest::TestAllTypes* mutable_field1(int index);
  12632. ::google::protobuf::RepeatedPtrField< ::protobuf_unittest::TestAllTypes >*
  12633. mutable_field1();
  12634. const ::protobuf_unittest::TestAllTypes& field1(int index) const;
  12635. ::protobuf_unittest::TestAllTypes* add_field1();
  12636. const ::google::protobuf::RepeatedPtrField< ::protobuf_unittest::TestAllTypes >&
  12637. field1() const;
  12638. // repeated .protobuf_unittest.TestAllTypes field2 = 2;
  12639. int field2_size() const;
  12640. void clear_field2();
  12641. static const int kField2FieldNumber = 2;
  12642. ::protobuf_unittest::TestAllTypes* mutable_field2(int index);
  12643. ::google::protobuf::RepeatedPtrField< ::protobuf_unittest::TestAllTypes >*
  12644. mutable_field2();
  12645. const ::protobuf_unittest::TestAllTypes& field2(int index) const;
  12646. ::protobuf_unittest::TestAllTypes* add_field2();
  12647. const ::google::protobuf::RepeatedPtrField< ::protobuf_unittest::TestAllTypes >&
  12648. field2() const;
  12649. // repeated .protobuf_unittest.TestAllTypes field3 = 3;
  12650. int field3_size() const;
  12651. void clear_field3();
  12652. static const int kField3FieldNumber = 3;
  12653. ::protobuf_unittest::TestAllTypes* mutable_field3(int index);
  12654. ::google::protobuf::RepeatedPtrField< ::protobuf_unittest::TestAllTypes >*
  12655. mutable_field3();
  12656. const ::protobuf_unittest::TestAllTypes& field3(int index) const;
  12657. ::protobuf_unittest::TestAllTypes* add_field3();
  12658. const ::google::protobuf::RepeatedPtrField< ::protobuf_unittest::TestAllTypes >&
  12659. field3() const;
  12660. // repeated group Group1 = 10 { ... };
  12661. int group1_size() const;
  12662. void clear_group1();
  12663. static const int kGroup1FieldNumber = 10;
  12664. ::protobuf_unittest::TestParsingMerge_RepeatedFieldsGenerator_Group1* mutable_group1(int index);
  12665. ::google::protobuf::RepeatedPtrField< ::protobuf_unittest::TestParsingMerge_RepeatedFieldsGenerator_Group1 >*
  12666. mutable_group1();
  12667. const ::protobuf_unittest::TestParsingMerge_RepeatedFieldsGenerator_Group1& group1(int index) const;
  12668. ::protobuf_unittest::TestParsingMerge_RepeatedFieldsGenerator_Group1* add_group1();
  12669. const ::google::protobuf::RepeatedPtrField< ::protobuf_unittest::TestParsingMerge_RepeatedFieldsGenerator_Group1 >&
  12670. group1() const;
  12671. // repeated group Group2 = 20 { ... };
  12672. int group2_size() const;
  12673. void clear_group2();
  12674. static const int kGroup2FieldNumber = 20;
  12675. ::protobuf_unittest::TestParsingMerge_RepeatedFieldsGenerator_Group2* mutable_group2(int index);
  12676. ::google::protobuf::RepeatedPtrField< ::protobuf_unittest::TestParsingMerge_RepeatedFieldsGenerator_Group2 >*
  12677. mutable_group2();
  12678. const ::protobuf_unittest::TestParsingMerge_RepeatedFieldsGenerator_Group2& group2(int index) const;
  12679. ::protobuf_unittest::TestParsingMerge_RepeatedFieldsGenerator_Group2* add_group2();
  12680. const ::google::protobuf::RepeatedPtrField< ::protobuf_unittest::TestParsingMerge_RepeatedFieldsGenerator_Group2 >&
  12681. group2() const;
  12682. // repeated .protobuf_unittest.TestAllTypes ext1 = 1000;
  12683. int ext1_size() const;
  12684. void clear_ext1();
  12685. static const int kExt1FieldNumber = 1000;
  12686. ::protobuf_unittest::TestAllTypes* mutable_ext1(int index);
  12687. ::google::protobuf::RepeatedPtrField< ::protobuf_unittest::TestAllTypes >*
  12688. mutable_ext1();
  12689. const ::protobuf_unittest::TestAllTypes& ext1(int index) const;
  12690. ::protobuf_unittest::TestAllTypes* add_ext1();
  12691. const ::google::protobuf::RepeatedPtrField< ::protobuf_unittest::TestAllTypes >&
  12692. ext1() const;
  12693. // repeated .protobuf_unittest.TestAllTypes ext2 = 1001;
  12694. int ext2_size() const;
  12695. void clear_ext2();
  12696. static const int kExt2FieldNumber = 1001;
  12697. ::protobuf_unittest::TestAllTypes* mutable_ext2(int index);
  12698. ::google::protobuf::RepeatedPtrField< ::protobuf_unittest::TestAllTypes >*
  12699. mutable_ext2();
  12700. const ::protobuf_unittest::TestAllTypes& ext2(int index) const;
  12701. ::protobuf_unittest::TestAllTypes* add_ext2();
  12702. const ::google::protobuf::RepeatedPtrField< ::protobuf_unittest::TestAllTypes >&
  12703. ext2() const;
  12704. // @@protoc_insertion_point(class_scope:protobuf_unittest.TestParsingMerge.RepeatedFieldsGenerator)
  12705. private:
  12706. ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
  12707. template <typename T> friend class ::google::protobuf::Arena::InternalHelper;
  12708. typedef void InternalArenaConstructable_;
  12709. typedef void DestructorSkippable_;
  12710. ::google::protobuf::internal::HasBits<1> _has_bits_;
  12711. mutable ::google::protobuf::internal::CachedSize _cached_size_;
  12712. ::google::protobuf::RepeatedPtrField< ::protobuf_unittest::TestAllTypes > field1_;
  12713. ::google::protobuf::RepeatedPtrField< ::protobuf_unittest::TestAllTypes > field2_;
  12714. ::google::protobuf::RepeatedPtrField< ::protobuf_unittest::TestAllTypes > field3_;
  12715. ::google::protobuf::RepeatedPtrField< ::protobuf_unittest::TestParsingMerge_RepeatedFieldsGenerator_Group1 > group1_;
  12716. ::google::protobuf::RepeatedPtrField< ::protobuf_unittest::TestParsingMerge_RepeatedFieldsGenerator_Group2 > group2_;
  12717. ::google::protobuf::RepeatedPtrField< ::protobuf_unittest::TestAllTypes > ext1_;
  12718. ::google::protobuf::RepeatedPtrField< ::protobuf_unittest::TestAllTypes > ext2_;
  12719. friend struct ::protobuf_google_2fprotobuf_2funittest_2eproto::TableStruct;
  12720. };
  12721. // -------------------------------------------------------------------
  12722. class TestParsingMerge_OptionalGroup : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:protobuf_unittest.TestParsingMerge.OptionalGroup) */ {
  12723. public:
  12724. TestParsingMerge_OptionalGroup();
  12725. virtual ~TestParsingMerge_OptionalGroup();
  12726. TestParsingMerge_OptionalGroup(const TestParsingMerge_OptionalGroup& from);
  12727. inline TestParsingMerge_OptionalGroup& operator=(const TestParsingMerge_OptionalGroup& from) {
  12728. CopyFrom(from);
  12729. return *this;
  12730. }
  12731. #if LANG_CXX11
  12732. TestParsingMerge_OptionalGroup(TestParsingMerge_OptionalGroup&& from) noexcept
  12733. : TestParsingMerge_OptionalGroup() {
  12734. *this = ::std::move(from);
  12735. }
  12736. inline TestParsingMerge_OptionalGroup& operator=(TestParsingMerge_OptionalGroup&& from) noexcept {
  12737. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  12738. if (this != &from) InternalSwap(&from);
  12739. } else {
  12740. CopyFrom(from);
  12741. }
  12742. return *this;
  12743. }
  12744. #endif
  12745. inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
  12746. return _internal_metadata_.unknown_fields();
  12747. }
  12748. inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
  12749. return _internal_metadata_.mutable_unknown_fields();
  12750. }
  12751. inline ::google::protobuf::Arena* GetArena() const final {
  12752. return GetArenaNoVirtual();
  12753. }
  12754. inline void* GetMaybeArenaPointer() const final {
  12755. return MaybeArenaPtr();
  12756. }
  12757. static const ::google::protobuf::Descriptor* descriptor();
  12758. static const TestParsingMerge_OptionalGroup& default_instance();
  12759. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  12760. static inline const TestParsingMerge_OptionalGroup* internal_default_instance() {
  12761. return reinterpret_cast<const TestParsingMerge_OptionalGroup*>(
  12762. &_TestParsingMerge_OptionalGroup_default_instance_);
  12763. }
  12764. static constexpr int kIndexInFileMessages =
  12765. 76;
  12766. void UnsafeArenaSwap(TestParsingMerge_OptionalGroup* other);
  12767. void Swap(TestParsingMerge_OptionalGroup* other);
  12768. friend void swap(TestParsingMerge_OptionalGroup& a, TestParsingMerge_OptionalGroup& b) {
  12769. a.Swap(&b);
  12770. }
  12771. // implements Message ----------------------------------------------
  12772. inline TestParsingMerge_OptionalGroup* New() const final {
  12773. return CreateMaybeMessage<TestParsingMerge_OptionalGroup>(NULL);
  12774. }
  12775. TestParsingMerge_OptionalGroup* New(::google::protobuf::Arena* arena) const final {
  12776. return CreateMaybeMessage<TestParsingMerge_OptionalGroup>(arena);
  12777. }
  12778. void CopyFrom(const ::google::protobuf::Message& from) final;
  12779. void MergeFrom(const ::google::protobuf::Message& from) final;
  12780. void CopyFrom(const TestParsingMerge_OptionalGroup& from);
  12781. void MergeFrom(const TestParsingMerge_OptionalGroup& from);
  12782. void Clear() final;
  12783. bool IsInitialized() const final;
  12784. size_t ByteSizeLong() const final;
  12785. bool MergePartialFromCodedStream(
  12786. ::google::protobuf::io::CodedInputStream* input) final;
  12787. void SerializeWithCachedSizes(
  12788. ::google::protobuf::io::CodedOutputStream* output) const final;
  12789. ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
  12790. bool deterministic, ::google::protobuf::uint8* target) const final;
  12791. int GetCachedSize() const final { return _cached_size_.Get(); }
  12792. private:
  12793. void SharedCtor();
  12794. void SharedDtor();
  12795. void SetCachedSize(int size) const final;
  12796. void InternalSwap(TestParsingMerge_OptionalGroup* other);
  12797. protected:
  12798. explicit TestParsingMerge_OptionalGroup(::google::protobuf::Arena* arena);
  12799. private:
  12800. static void ArenaDtor(void* object);
  12801. inline void RegisterArenaDtor(::google::protobuf::Arena* arena);
  12802. private:
  12803. inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
  12804. return _internal_metadata_.arena();
  12805. }
  12806. inline void* MaybeArenaPtr() const {
  12807. return _internal_metadata_.raw_arena_ptr();
  12808. }
  12809. public:
  12810. ::google::protobuf::Metadata GetMetadata() const final;
  12811. // nested types ----------------------------------------------------
  12812. // accessors -------------------------------------------------------
  12813. // optional .protobuf_unittest.TestAllTypes optional_group_all_types = 11;
  12814. bool has_optional_group_all_types() const;
  12815. void clear_optional_group_all_types();
  12816. static const int kOptionalGroupAllTypesFieldNumber = 11;
  12817. private:
  12818. const ::protobuf_unittest::TestAllTypes& _internal_optional_group_all_types() const;
  12819. public:
  12820. const ::protobuf_unittest::TestAllTypes& optional_group_all_types() const;
  12821. ::protobuf_unittest::TestAllTypes* release_optional_group_all_types();
  12822. ::protobuf_unittest::TestAllTypes* mutable_optional_group_all_types();
  12823. void set_allocated_optional_group_all_types(::protobuf_unittest::TestAllTypes* optional_group_all_types);
  12824. void unsafe_arena_set_allocated_optional_group_all_types(
  12825. ::protobuf_unittest::TestAllTypes* optional_group_all_types);
  12826. ::protobuf_unittest::TestAllTypes* unsafe_arena_release_optional_group_all_types();
  12827. // @@protoc_insertion_point(class_scope:protobuf_unittest.TestParsingMerge.OptionalGroup)
  12828. private:
  12829. void set_has_optional_group_all_types();
  12830. void clear_has_optional_group_all_types();
  12831. ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
  12832. template <typename T> friend class ::google::protobuf::Arena::InternalHelper;
  12833. typedef void InternalArenaConstructable_;
  12834. typedef void DestructorSkippable_;
  12835. ::google::protobuf::internal::HasBits<1> _has_bits_;
  12836. mutable ::google::protobuf::internal::CachedSize _cached_size_;
  12837. ::protobuf_unittest::TestAllTypes* optional_group_all_types_;
  12838. friend struct ::protobuf_google_2fprotobuf_2funittest_2eproto::TableStruct;
  12839. };
  12840. // -------------------------------------------------------------------
  12841. class TestParsingMerge_RepeatedGroup : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:protobuf_unittest.TestParsingMerge.RepeatedGroup) */ {
  12842. public:
  12843. TestParsingMerge_RepeatedGroup();
  12844. virtual ~TestParsingMerge_RepeatedGroup();
  12845. TestParsingMerge_RepeatedGroup(const TestParsingMerge_RepeatedGroup& from);
  12846. inline TestParsingMerge_RepeatedGroup& operator=(const TestParsingMerge_RepeatedGroup& from) {
  12847. CopyFrom(from);
  12848. return *this;
  12849. }
  12850. #if LANG_CXX11
  12851. TestParsingMerge_RepeatedGroup(TestParsingMerge_RepeatedGroup&& from) noexcept
  12852. : TestParsingMerge_RepeatedGroup() {
  12853. *this = ::std::move(from);
  12854. }
  12855. inline TestParsingMerge_RepeatedGroup& operator=(TestParsingMerge_RepeatedGroup&& from) noexcept {
  12856. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  12857. if (this != &from) InternalSwap(&from);
  12858. } else {
  12859. CopyFrom(from);
  12860. }
  12861. return *this;
  12862. }
  12863. #endif
  12864. inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
  12865. return _internal_metadata_.unknown_fields();
  12866. }
  12867. inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
  12868. return _internal_metadata_.mutable_unknown_fields();
  12869. }
  12870. inline ::google::protobuf::Arena* GetArena() const final {
  12871. return GetArenaNoVirtual();
  12872. }
  12873. inline void* GetMaybeArenaPointer() const final {
  12874. return MaybeArenaPtr();
  12875. }
  12876. static const ::google::protobuf::Descriptor* descriptor();
  12877. static const TestParsingMerge_RepeatedGroup& default_instance();
  12878. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  12879. static inline const TestParsingMerge_RepeatedGroup* internal_default_instance() {
  12880. return reinterpret_cast<const TestParsingMerge_RepeatedGroup*>(
  12881. &_TestParsingMerge_RepeatedGroup_default_instance_);
  12882. }
  12883. static constexpr int kIndexInFileMessages =
  12884. 77;
  12885. void UnsafeArenaSwap(TestParsingMerge_RepeatedGroup* other);
  12886. void Swap(TestParsingMerge_RepeatedGroup* other);
  12887. friend void swap(TestParsingMerge_RepeatedGroup& a, TestParsingMerge_RepeatedGroup& b) {
  12888. a.Swap(&b);
  12889. }
  12890. // implements Message ----------------------------------------------
  12891. inline TestParsingMerge_RepeatedGroup* New() const final {
  12892. return CreateMaybeMessage<TestParsingMerge_RepeatedGroup>(NULL);
  12893. }
  12894. TestParsingMerge_RepeatedGroup* New(::google::protobuf::Arena* arena) const final {
  12895. return CreateMaybeMessage<TestParsingMerge_RepeatedGroup>(arena);
  12896. }
  12897. void CopyFrom(const ::google::protobuf::Message& from) final;
  12898. void MergeFrom(const ::google::protobuf::Message& from) final;
  12899. void CopyFrom(const TestParsingMerge_RepeatedGroup& from);
  12900. void MergeFrom(const TestParsingMerge_RepeatedGroup& from);
  12901. void Clear() final;
  12902. bool IsInitialized() const final;
  12903. size_t ByteSizeLong() const final;
  12904. bool MergePartialFromCodedStream(
  12905. ::google::protobuf::io::CodedInputStream* input) final;
  12906. void SerializeWithCachedSizes(
  12907. ::google::protobuf::io::CodedOutputStream* output) const final;
  12908. ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
  12909. bool deterministic, ::google::protobuf::uint8* target) const final;
  12910. int GetCachedSize() const final { return _cached_size_.Get(); }
  12911. private:
  12912. void SharedCtor();
  12913. void SharedDtor();
  12914. void SetCachedSize(int size) const final;
  12915. void InternalSwap(TestParsingMerge_RepeatedGroup* other);
  12916. protected:
  12917. explicit TestParsingMerge_RepeatedGroup(::google::protobuf::Arena* arena);
  12918. private:
  12919. static void ArenaDtor(void* object);
  12920. inline void RegisterArenaDtor(::google::protobuf::Arena* arena);
  12921. private:
  12922. inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
  12923. return _internal_metadata_.arena();
  12924. }
  12925. inline void* MaybeArenaPtr() const {
  12926. return _internal_metadata_.raw_arena_ptr();
  12927. }
  12928. public:
  12929. ::google::protobuf::Metadata GetMetadata() const final;
  12930. // nested types ----------------------------------------------------
  12931. // accessors -------------------------------------------------------
  12932. // optional .protobuf_unittest.TestAllTypes repeated_group_all_types = 21;
  12933. bool has_repeated_group_all_types() const;
  12934. void clear_repeated_group_all_types();
  12935. static const int kRepeatedGroupAllTypesFieldNumber = 21;
  12936. private:
  12937. const ::protobuf_unittest::TestAllTypes& _internal_repeated_group_all_types() const;
  12938. public:
  12939. const ::protobuf_unittest::TestAllTypes& repeated_group_all_types() const;
  12940. ::protobuf_unittest::TestAllTypes* release_repeated_group_all_types();
  12941. ::protobuf_unittest::TestAllTypes* mutable_repeated_group_all_types();
  12942. void set_allocated_repeated_group_all_types(::protobuf_unittest::TestAllTypes* repeated_group_all_types);
  12943. void unsafe_arena_set_allocated_repeated_group_all_types(
  12944. ::protobuf_unittest::TestAllTypes* repeated_group_all_types);
  12945. ::protobuf_unittest::TestAllTypes* unsafe_arena_release_repeated_group_all_types();
  12946. // @@protoc_insertion_point(class_scope:protobuf_unittest.TestParsingMerge.RepeatedGroup)
  12947. private:
  12948. void set_has_repeated_group_all_types();
  12949. void clear_has_repeated_group_all_types();
  12950. ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
  12951. template <typename T> friend class ::google::protobuf::Arena::InternalHelper;
  12952. typedef void InternalArenaConstructable_;
  12953. typedef void DestructorSkippable_;
  12954. ::google::protobuf::internal::HasBits<1> _has_bits_;
  12955. mutable ::google::protobuf::internal::CachedSize _cached_size_;
  12956. ::protobuf_unittest::TestAllTypes* repeated_group_all_types_;
  12957. friend struct ::protobuf_google_2fprotobuf_2funittest_2eproto::TableStruct;
  12958. };
  12959. // -------------------------------------------------------------------
  12960. class TestParsingMerge : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:protobuf_unittest.TestParsingMerge) */ {
  12961. public:
  12962. TestParsingMerge();
  12963. virtual ~TestParsingMerge();
  12964. TestParsingMerge(const TestParsingMerge& from);
  12965. inline TestParsingMerge& operator=(const TestParsingMerge& from) {
  12966. CopyFrom(from);
  12967. return *this;
  12968. }
  12969. #if LANG_CXX11
  12970. TestParsingMerge(TestParsingMerge&& from) noexcept
  12971. : TestParsingMerge() {
  12972. *this = ::std::move(from);
  12973. }
  12974. inline TestParsingMerge& operator=(TestParsingMerge&& from) noexcept {
  12975. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  12976. if (this != &from) InternalSwap(&from);
  12977. } else {
  12978. CopyFrom(from);
  12979. }
  12980. return *this;
  12981. }
  12982. #endif
  12983. inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
  12984. return _internal_metadata_.unknown_fields();
  12985. }
  12986. inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
  12987. return _internal_metadata_.mutable_unknown_fields();
  12988. }
  12989. inline ::google::protobuf::Arena* GetArena() const final {
  12990. return GetArenaNoVirtual();
  12991. }
  12992. inline void* GetMaybeArenaPointer() const final {
  12993. return MaybeArenaPtr();
  12994. }
  12995. static const ::google::protobuf::Descriptor* descriptor();
  12996. static const TestParsingMerge& default_instance();
  12997. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  12998. static inline const TestParsingMerge* internal_default_instance() {
  12999. return reinterpret_cast<const TestParsingMerge*>(
  13000. &_TestParsingMerge_default_instance_);
  13001. }
  13002. static constexpr int kIndexInFileMessages =
  13003. 78;
  13004. void UnsafeArenaSwap(TestParsingMerge* other);
  13005. void Swap(TestParsingMerge* other);
  13006. friend void swap(TestParsingMerge& a, TestParsingMerge& b) {
  13007. a.Swap(&b);
  13008. }
  13009. // implements Message ----------------------------------------------
  13010. inline TestParsingMerge* New() const final {
  13011. return CreateMaybeMessage<TestParsingMerge>(NULL);
  13012. }
  13013. TestParsingMerge* New(::google::protobuf::Arena* arena) const final {
  13014. return CreateMaybeMessage<TestParsingMerge>(arena);
  13015. }
  13016. void CopyFrom(const ::google::protobuf::Message& from) final;
  13017. void MergeFrom(const ::google::protobuf::Message& from) final;
  13018. void CopyFrom(const TestParsingMerge& from);
  13019. void MergeFrom(const TestParsingMerge& from);
  13020. void Clear() final;
  13021. bool IsInitialized() const final;
  13022. size_t ByteSizeLong() const final;
  13023. bool MergePartialFromCodedStream(
  13024. ::google::protobuf::io::CodedInputStream* input) final;
  13025. void SerializeWithCachedSizes(
  13026. ::google::protobuf::io::CodedOutputStream* output) const final;
  13027. ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
  13028. bool deterministic, ::google::protobuf::uint8* target) const final;
  13029. int GetCachedSize() const final { return _cached_size_.Get(); }
  13030. private:
  13031. void SharedCtor();
  13032. void SharedDtor();
  13033. void SetCachedSize(int size) const final;
  13034. void InternalSwap(TestParsingMerge* other);
  13035. protected:
  13036. explicit TestParsingMerge(::google::protobuf::Arena* arena);
  13037. private:
  13038. static void ArenaDtor(void* object);
  13039. inline void RegisterArenaDtor(::google::protobuf::Arena* arena);
  13040. private:
  13041. inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
  13042. return _internal_metadata_.arena();
  13043. }
  13044. inline void* MaybeArenaPtr() const {
  13045. return _internal_metadata_.raw_arena_ptr();
  13046. }
  13047. public:
  13048. ::google::protobuf::Metadata GetMetadata() const final;
  13049. // nested types ----------------------------------------------------
  13050. typedef TestParsingMerge_RepeatedFieldsGenerator RepeatedFieldsGenerator;
  13051. typedef TestParsingMerge_OptionalGroup OptionalGroup;
  13052. typedef TestParsingMerge_RepeatedGroup RepeatedGroup;
  13053. // accessors -------------------------------------------------------
  13054. // repeated .protobuf_unittest.TestAllTypes repeated_all_types = 3;
  13055. int repeated_all_types_size() const;
  13056. void clear_repeated_all_types();
  13057. static const int kRepeatedAllTypesFieldNumber = 3;
  13058. ::protobuf_unittest::TestAllTypes* mutable_repeated_all_types(int index);
  13059. ::google::protobuf::RepeatedPtrField< ::protobuf_unittest::TestAllTypes >*
  13060. mutable_repeated_all_types();
  13061. const ::protobuf_unittest::TestAllTypes& repeated_all_types(int index) const;
  13062. ::protobuf_unittest::TestAllTypes* add_repeated_all_types();
  13063. const ::google::protobuf::RepeatedPtrField< ::protobuf_unittest::TestAllTypes >&
  13064. repeated_all_types() const;
  13065. // repeated group RepeatedGroup = 20 { ... };
  13066. int repeatedgroup_size() const;
  13067. void clear_repeatedgroup();
  13068. static const int kRepeatedgroupFieldNumber = 20;
  13069. ::protobuf_unittest::TestParsingMerge_RepeatedGroup* mutable_repeatedgroup(int index);
  13070. ::google::protobuf::RepeatedPtrField< ::protobuf_unittest::TestParsingMerge_RepeatedGroup >*
  13071. mutable_repeatedgroup();
  13072. const ::protobuf_unittest::TestParsingMerge_RepeatedGroup& repeatedgroup(int index) const;
  13073. ::protobuf_unittest::TestParsingMerge_RepeatedGroup* add_repeatedgroup();
  13074. const ::google::protobuf::RepeatedPtrField< ::protobuf_unittest::TestParsingMerge_RepeatedGroup >&
  13075. repeatedgroup() const;
  13076. // required .protobuf_unittest.TestAllTypes required_all_types = 1;
  13077. bool has_required_all_types() const;
  13078. void clear_required_all_types();
  13079. static const int kRequiredAllTypesFieldNumber = 1;
  13080. private:
  13081. const ::protobuf_unittest::TestAllTypes& _internal_required_all_types() const;
  13082. public:
  13083. const ::protobuf_unittest::TestAllTypes& required_all_types() const;
  13084. ::protobuf_unittest::TestAllTypes* release_required_all_types();
  13085. ::protobuf_unittest::TestAllTypes* mutable_required_all_types();
  13086. void set_allocated_required_all_types(::protobuf_unittest::TestAllTypes* required_all_types);
  13087. void unsafe_arena_set_allocated_required_all_types(
  13088. ::protobuf_unittest::TestAllTypes* required_all_types);
  13089. ::protobuf_unittest::TestAllTypes* unsafe_arena_release_required_all_types();
  13090. // optional .protobuf_unittest.TestAllTypes optional_all_types = 2;
  13091. bool has_optional_all_types() const;
  13092. void clear_optional_all_types();
  13093. static const int kOptionalAllTypesFieldNumber = 2;
  13094. private:
  13095. const ::protobuf_unittest::TestAllTypes& _internal_optional_all_types() const;
  13096. public:
  13097. const ::protobuf_unittest::TestAllTypes& optional_all_types() const;
  13098. ::protobuf_unittest::TestAllTypes* release_optional_all_types();
  13099. ::protobuf_unittest::TestAllTypes* mutable_optional_all_types();
  13100. void set_allocated_optional_all_types(::protobuf_unittest::TestAllTypes* optional_all_types);
  13101. void unsafe_arena_set_allocated_optional_all_types(
  13102. ::protobuf_unittest::TestAllTypes* optional_all_types);
  13103. ::protobuf_unittest::TestAllTypes* unsafe_arena_release_optional_all_types();
  13104. // optional group OptionalGroup = 10 { ... };
  13105. bool has_optionalgroup() const;
  13106. void clear_optionalgroup();
  13107. static const int kOptionalgroupFieldNumber = 10;
  13108. private:
  13109. const ::protobuf_unittest::TestParsingMerge_OptionalGroup& _internal_optionalgroup() const;
  13110. public:
  13111. const ::protobuf_unittest::TestParsingMerge_OptionalGroup& optionalgroup() const;
  13112. ::protobuf_unittest::TestParsingMerge_OptionalGroup* release_optionalgroup();
  13113. ::protobuf_unittest::TestParsingMerge_OptionalGroup* mutable_optionalgroup();
  13114. void set_allocated_optionalgroup(::protobuf_unittest::TestParsingMerge_OptionalGroup* optionalgroup);
  13115. void unsafe_arena_set_allocated_optionalgroup(
  13116. ::protobuf_unittest::TestParsingMerge_OptionalGroup* optionalgroup);
  13117. ::protobuf_unittest::TestParsingMerge_OptionalGroup* unsafe_arena_release_optionalgroup();
  13118. GOOGLE_PROTOBUF_EXTENSION_ACCESSORS(TestParsingMerge)
  13119. static const int kOptionalExtFieldNumber = 1000;
  13120. static ::google::protobuf::internal::ExtensionIdentifier< ::protobuf_unittest::TestParsingMerge,
  13121. ::google::protobuf::internal::MessageTypeTraits< ::protobuf_unittest::TestAllTypes >, 11, false >
  13122. optional_ext;
  13123. static const int kRepeatedExtFieldNumber = 1001;
  13124. static ::google::protobuf::internal::ExtensionIdentifier< ::protobuf_unittest::TestParsingMerge,
  13125. ::google::protobuf::internal::RepeatedMessageTypeTraits< ::protobuf_unittest::TestAllTypes >, 11, false >
  13126. repeated_ext;
  13127. // @@protoc_insertion_point(class_scope:protobuf_unittest.TestParsingMerge)
  13128. private:
  13129. void set_has_required_all_types();
  13130. void clear_has_required_all_types();
  13131. void set_has_optional_all_types();
  13132. void clear_has_optional_all_types();
  13133. void set_has_optionalgroup();
  13134. void clear_has_optionalgroup();
  13135. ::google::protobuf::internal::ExtensionSet _extensions_;
  13136. ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
  13137. template <typename T> friend class ::google::protobuf::Arena::InternalHelper;
  13138. typedef void InternalArenaConstructable_;
  13139. typedef void DestructorSkippable_;
  13140. ::google::protobuf::internal::HasBits<1> _has_bits_;
  13141. mutable ::google::protobuf::internal::CachedSize _cached_size_;
  13142. ::google::protobuf::RepeatedPtrField< ::protobuf_unittest::TestAllTypes > repeated_all_types_;
  13143. ::google::protobuf::RepeatedPtrField< ::protobuf_unittest::TestParsingMerge_RepeatedGroup > repeatedgroup_;
  13144. ::protobuf_unittest::TestAllTypes* required_all_types_;
  13145. ::protobuf_unittest::TestAllTypes* optional_all_types_;
  13146. ::protobuf_unittest::TestParsingMerge_OptionalGroup* optionalgroup_;
  13147. friend struct ::protobuf_google_2fprotobuf_2funittest_2eproto::TableStruct;
  13148. };
  13149. // -------------------------------------------------------------------
  13150. class TestCommentInjectionMessage : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:protobuf_unittest.TestCommentInjectionMessage) */ {
  13151. public:
  13152. TestCommentInjectionMessage();
  13153. virtual ~TestCommentInjectionMessage();
  13154. TestCommentInjectionMessage(const TestCommentInjectionMessage& from);
  13155. inline TestCommentInjectionMessage& operator=(const TestCommentInjectionMessage& from) {
  13156. CopyFrom(from);
  13157. return *this;
  13158. }
  13159. #if LANG_CXX11
  13160. TestCommentInjectionMessage(TestCommentInjectionMessage&& from) noexcept
  13161. : TestCommentInjectionMessage() {
  13162. *this = ::std::move(from);
  13163. }
  13164. inline TestCommentInjectionMessage& operator=(TestCommentInjectionMessage&& from) noexcept {
  13165. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  13166. if (this != &from) InternalSwap(&from);
  13167. } else {
  13168. CopyFrom(from);
  13169. }
  13170. return *this;
  13171. }
  13172. #endif
  13173. inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
  13174. return _internal_metadata_.unknown_fields();
  13175. }
  13176. inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
  13177. return _internal_metadata_.mutable_unknown_fields();
  13178. }
  13179. inline ::google::protobuf::Arena* GetArena() const final {
  13180. return GetArenaNoVirtual();
  13181. }
  13182. inline void* GetMaybeArenaPointer() const final {
  13183. return MaybeArenaPtr();
  13184. }
  13185. static const ::google::protobuf::Descriptor* descriptor();
  13186. static const TestCommentInjectionMessage& default_instance();
  13187. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  13188. static inline const TestCommentInjectionMessage* internal_default_instance() {
  13189. return reinterpret_cast<const TestCommentInjectionMessage*>(
  13190. &_TestCommentInjectionMessage_default_instance_);
  13191. }
  13192. static constexpr int kIndexInFileMessages =
  13193. 79;
  13194. void UnsafeArenaSwap(TestCommentInjectionMessage* other);
  13195. void Swap(TestCommentInjectionMessage* other);
  13196. friend void swap(TestCommentInjectionMessage& a, TestCommentInjectionMessage& b) {
  13197. a.Swap(&b);
  13198. }
  13199. // implements Message ----------------------------------------------
  13200. inline TestCommentInjectionMessage* New() const final {
  13201. return CreateMaybeMessage<TestCommentInjectionMessage>(NULL);
  13202. }
  13203. TestCommentInjectionMessage* New(::google::protobuf::Arena* arena) const final {
  13204. return CreateMaybeMessage<TestCommentInjectionMessage>(arena);
  13205. }
  13206. void CopyFrom(const ::google::protobuf::Message& from) final;
  13207. void MergeFrom(const ::google::protobuf::Message& from) final;
  13208. void CopyFrom(const TestCommentInjectionMessage& from);
  13209. void MergeFrom(const TestCommentInjectionMessage& from);
  13210. void Clear() final;
  13211. bool IsInitialized() const final;
  13212. size_t ByteSizeLong() const final;
  13213. bool MergePartialFromCodedStream(
  13214. ::google::protobuf::io::CodedInputStream* input) final;
  13215. void SerializeWithCachedSizes(
  13216. ::google::protobuf::io::CodedOutputStream* output) const final;
  13217. ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
  13218. bool deterministic, ::google::protobuf::uint8* target) const final;
  13219. int GetCachedSize() const final { return _cached_size_.Get(); }
  13220. private:
  13221. void SharedCtor();
  13222. void SharedDtor();
  13223. void SetCachedSize(int size) const final;
  13224. void InternalSwap(TestCommentInjectionMessage* other);
  13225. protected:
  13226. explicit TestCommentInjectionMessage(::google::protobuf::Arena* arena);
  13227. private:
  13228. static void ArenaDtor(void* object);
  13229. inline void RegisterArenaDtor(::google::protobuf::Arena* arena);
  13230. private:
  13231. inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
  13232. return _internal_metadata_.arena();
  13233. }
  13234. inline void* MaybeArenaPtr() const {
  13235. return _internal_metadata_.raw_arena_ptr();
  13236. }
  13237. public:
  13238. ::google::protobuf::Metadata GetMetadata() const final;
  13239. // nested types ----------------------------------------------------
  13240. // accessors -------------------------------------------------------
  13241. // optional string a = 1 [default = "*/ <- Neither should this."];
  13242. bool has_a() const;
  13243. void clear_a();
  13244. static const int kAFieldNumber = 1;
  13245. const ::std::string& a() const;
  13246. void set_a(const ::std::string& value);
  13247. #if LANG_CXX11
  13248. void set_a(::std::string&& value);
  13249. #endif
  13250. void set_a(const char* value);
  13251. void set_a(const char* value, size_t size);
  13252. ::std::string* mutable_a();
  13253. ::std::string* release_a();
  13254. void set_allocated_a(::std::string* a);
  13255. PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
  13256. " string fields are deprecated and will be removed in a"
  13257. " future release.")
  13258. ::std::string* unsafe_arena_release_a();
  13259. PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
  13260. " string fields are deprecated and will be removed in a"
  13261. " future release.")
  13262. void unsafe_arena_set_allocated_a(
  13263. ::std::string* a);
  13264. // @@protoc_insertion_point(class_scope:protobuf_unittest.TestCommentInjectionMessage)
  13265. private:
  13266. void set_has_a();
  13267. void clear_has_a();
  13268. ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
  13269. template <typename T> friend class ::google::protobuf::Arena::InternalHelper;
  13270. typedef void InternalArenaConstructable_;
  13271. typedef void DestructorSkippable_;
  13272. ::google::protobuf::internal::HasBits<1> _has_bits_;
  13273. mutable ::google::protobuf::internal::CachedSize _cached_size_;
  13274. public:
  13275. static ::google::protobuf::internal::ExplicitlyConstructed< ::std::string> _i_give_permission_to_break_this_code_default_a_;
  13276. private:
  13277. ::google::protobuf::internal::ArenaStringPtr a_;
  13278. friend struct ::protobuf_google_2fprotobuf_2funittest_2eproto::TableStruct;
  13279. };
  13280. // -------------------------------------------------------------------
  13281. class FooRequest : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:protobuf_unittest.FooRequest) */ {
  13282. public:
  13283. FooRequest();
  13284. virtual ~FooRequest();
  13285. FooRequest(const FooRequest& from);
  13286. inline FooRequest& operator=(const FooRequest& from) {
  13287. CopyFrom(from);
  13288. return *this;
  13289. }
  13290. #if LANG_CXX11
  13291. FooRequest(FooRequest&& from) noexcept
  13292. : FooRequest() {
  13293. *this = ::std::move(from);
  13294. }
  13295. inline FooRequest& operator=(FooRequest&& from) noexcept {
  13296. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  13297. if (this != &from) InternalSwap(&from);
  13298. } else {
  13299. CopyFrom(from);
  13300. }
  13301. return *this;
  13302. }
  13303. #endif
  13304. inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
  13305. return _internal_metadata_.unknown_fields();
  13306. }
  13307. inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
  13308. return _internal_metadata_.mutable_unknown_fields();
  13309. }
  13310. inline ::google::protobuf::Arena* GetArena() const final {
  13311. return GetArenaNoVirtual();
  13312. }
  13313. inline void* GetMaybeArenaPointer() const final {
  13314. return MaybeArenaPtr();
  13315. }
  13316. static const ::google::protobuf::Descriptor* descriptor();
  13317. static const FooRequest& default_instance();
  13318. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  13319. static inline const FooRequest* internal_default_instance() {
  13320. return reinterpret_cast<const FooRequest*>(
  13321. &_FooRequest_default_instance_);
  13322. }
  13323. static constexpr int kIndexInFileMessages =
  13324. 80;
  13325. void UnsafeArenaSwap(FooRequest* other);
  13326. void Swap(FooRequest* other);
  13327. friend void swap(FooRequest& a, FooRequest& b) {
  13328. a.Swap(&b);
  13329. }
  13330. // implements Message ----------------------------------------------
  13331. inline FooRequest* New() const final {
  13332. return CreateMaybeMessage<FooRequest>(NULL);
  13333. }
  13334. FooRequest* New(::google::protobuf::Arena* arena) const final {
  13335. return CreateMaybeMessage<FooRequest>(arena);
  13336. }
  13337. void CopyFrom(const ::google::protobuf::Message& from) final;
  13338. void MergeFrom(const ::google::protobuf::Message& from) final;
  13339. void CopyFrom(const FooRequest& from);
  13340. void MergeFrom(const FooRequest& from);
  13341. void Clear() final;
  13342. bool IsInitialized() const final;
  13343. size_t ByteSizeLong() const final;
  13344. bool MergePartialFromCodedStream(
  13345. ::google::protobuf::io::CodedInputStream* input) final;
  13346. void SerializeWithCachedSizes(
  13347. ::google::protobuf::io::CodedOutputStream* output) const final;
  13348. ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
  13349. bool deterministic, ::google::protobuf::uint8* target) const final;
  13350. int GetCachedSize() const final { return _cached_size_.Get(); }
  13351. private:
  13352. void SharedCtor();
  13353. void SharedDtor();
  13354. void SetCachedSize(int size) const final;
  13355. void InternalSwap(FooRequest* other);
  13356. protected:
  13357. explicit FooRequest(::google::protobuf::Arena* arena);
  13358. private:
  13359. static void ArenaDtor(void* object);
  13360. inline void RegisterArenaDtor(::google::protobuf::Arena* arena);
  13361. private:
  13362. inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
  13363. return _internal_metadata_.arena();
  13364. }
  13365. inline void* MaybeArenaPtr() const {
  13366. return _internal_metadata_.raw_arena_ptr();
  13367. }
  13368. public:
  13369. ::google::protobuf::Metadata GetMetadata() const final;
  13370. // nested types ----------------------------------------------------
  13371. // accessors -------------------------------------------------------
  13372. // @@protoc_insertion_point(class_scope:protobuf_unittest.FooRequest)
  13373. private:
  13374. ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
  13375. template <typename T> friend class ::google::protobuf::Arena::InternalHelper;
  13376. typedef void InternalArenaConstructable_;
  13377. typedef void DestructorSkippable_;
  13378. ::google::protobuf::internal::HasBits<1> _has_bits_;
  13379. mutable ::google::protobuf::internal::CachedSize _cached_size_;
  13380. friend struct ::protobuf_google_2fprotobuf_2funittest_2eproto::TableStruct;
  13381. };
  13382. // -------------------------------------------------------------------
  13383. class FooResponse : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:protobuf_unittest.FooResponse) */ {
  13384. public:
  13385. FooResponse();
  13386. virtual ~FooResponse();
  13387. FooResponse(const FooResponse& from);
  13388. inline FooResponse& operator=(const FooResponse& from) {
  13389. CopyFrom(from);
  13390. return *this;
  13391. }
  13392. #if LANG_CXX11
  13393. FooResponse(FooResponse&& from) noexcept
  13394. : FooResponse() {
  13395. *this = ::std::move(from);
  13396. }
  13397. inline FooResponse& operator=(FooResponse&& from) noexcept {
  13398. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  13399. if (this != &from) InternalSwap(&from);
  13400. } else {
  13401. CopyFrom(from);
  13402. }
  13403. return *this;
  13404. }
  13405. #endif
  13406. inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
  13407. return _internal_metadata_.unknown_fields();
  13408. }
  13409. inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
  13410. return _internal_metadata_.mutable_unknown_fields();
  13411. }
  13412. inline ::google::protobuf::Arena* GetArena() const final {
  13413. return GetArenaNoVirtual();
  13414. }
  13415. inline void* GetMaybeArenaPointer() const final {
  13416. return MaybeArenaPtr();
  13417. }
  13418. static const ::google::protobuf::Descriptor* descriptor();
  13419. static const FooResponse& default_instance();
  13420. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  13421. static inline const FooResponse* internal_default_instance() {
  13422. return reinterpret_cast<const FooResponse*>(
  13423. &_FooResponse_default_instance_);
  13424. }
  13425. static constexpr int kIndexInFileMessages =
  13426. 81;
  13427. void UnsafeArenaSwap(FooResponse* other);
  13428. void Swap(FooResponse* other);
  13429. friend void swap(FooResponse& a, FooResponse& b) {
  13430. a.Swap(&b);
  13431. }
  13432. // implements Message ----------------------------------------------
  13433. inline FooResponse* New() const final {
  13434. return CreateMaybeMessage<FooResponse>(NULL);
  13435. }
  13436. FooResponse* New(::google::protobuf::Arena* arena) const final {
  13437. return CreateMaybeMessage<FooResponse>(arena);
  13438. }
  13439. void CopyFrom(const ::google::protobuf::Message& from) final;
  13440. void MergeFrom(const ::google::protobuf::Message& from) final;
  13441. void CopyFrom(const FooResponse& from);
  13442. void MergeFrom(const FooResponse& from);
  13443. void Clear() final;
  13444. bool IsInitialized() const final;
  13445. size_t ByteSizeLong() const final;
  13446. bool MergePartialFromCodedStream(
  13447. ::google::protobuf::io::CodedInputStream* input) final;
  13448. void SerializeWithCachedSizes(
  13449. ::google::protobuf::io::CodedOutputStream* output) const final;
  13450. ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
  13451. bool deterministic, ::google::protobuf::uint8* target) const final;
  13452. int GetCachedSize() const final { return _cached_size_.Get(); }
  13453. private:
  13454. void SharedCtor();
  13455. void SharedDtor();
  13456. void SetCachedSize(int size) const final;
  13457. void InternalSwap(FooResponse* other);
  13458. protected:
  13459. explicit FooResponse(::google::protobuf::Arena* arena);
  13460. private:
  13461. static void ArenaDtor(void* object);
  13462. inline void RegisterArenaDtor(::google::protobuf::Arena* arena);
  13463. private:
  13464. inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
  13465. return _internal_metadata_.arena();
  13466. }
  13467. inline void* MaybeArenaPtr() const {
  13468. return _internal_metadata_.raw_arena_ptr();
  13469. }
  13470. public:
  13471. ::google::protobuf::Metadata GetMetadata() const final;
  13472. // nested types ----------------------------------------------------
  13473. // accessors -------------------------------------------------------
  13474. // @@protoc_insertion_point(class_scope:protobuf_unittest.FooResponse)
  13475. private:
  13476. ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
  13477. template <typename T> friend class ::google::protobuf::Arena::InternalHelper;
  13478. typedef void InternalArenaConstructable_;
  13479. typedef void DestructorSkippable_;
  13480. ::google::protobuf::internal::HasBits<1> _has_bits_;
  13481. mutable ::google::protobuf::internal::CachedSize _cached_size_;
  13482. friend struct ::protobuf_google_2fprotobuf_2funittest_2eproto::TableStruct;
  13483. };
  13484. // -------------------------------------------------------------------
  13485. class FooClientMessage : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:protobuf_unittest.FooClientMessage) */ {
  13486. public:
  13487. FooClientMessage();
  13488. virtual ~FooClientMessage();
  13489. FooClientMessage(const FooClientMessage& from);
  13490. inline FooClientMessage& operator=(const FooClientMessage& from) {
  13491. CopyFrom(from);
  13492. return *this;
  13493. }
  13494. #if LANG_CXX11
  13495. FooClientMessage(FooClientMessage&& from) noexcept
  13496. : FooClientMessage() {
  13497. *this = ::std::move(from);
  13498. }
  13499. inline FooClientMessage& operator=(FooClientMessage&& from) noexcept {
  13500. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  13501. if (this != &from) InternalSwap(&from);
  13502. } else {
  13503. CopyFrom(from);
  13504. }
  13505. return *this;
  13506. }
  13507. #endif
  13508. inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
  13509. return _internal_metadata_.unknown_fields();
  13510. }
  13511. inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
  13512. return _internal_metadata_.mutable_unknown_fields();
  13513. }
  13514. inline ::google::protobuf::Arena* GetArena() const final {
  13515. return GetArenaNoVirtual();
  13516. }
  13517. inline void* GetMaybeArenaPointer() const final {
  13518. return MaybeArenaPtr();
  13519. }
  13520. static const ::google::protobuf::Descriptor* descriptor();
  13521. static const FooClientMessage& default_instance();
  13522. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  13523. static inline const FooClientMessage* internal_default_instance() {
  13524. return reinterpret_cast<const FooClientMessage*>(
  13525. &_FooClientMessage_default_instance_);
  13526. }
  13527. static constexpr int kIndexInFileMessages =
  13528. 82;
  13529. void UnsafeArenaSwap(FooClientMessage* other);
  13530. void Swap(FooClientMessage* other);
  13531. friend void swap(FooClientMessage& a, FooClientMessage& b) {
  13532. a.Swap(&b);
  13533. }
  13534. // implements Message ----------------------------------------------
  13535. inline FooClientMessage* New() const final {
  13536. return CreateMaybeMessage<FooClientMessage>(NULL);
  13537. }
  13538. FooClientMessage* New(::google::protobuf::Arena* arena) const final {
  13539. return CreateMaybeMessage<FooClientMessage>(arena);
  13540. }
  13541. void CopyFrom(const ::google::protobuf::Message& from) final;
  13542. void MergeFrom(const ::google::protobuf::Message& from) final;
  13543. void CopyFrom(const FooClientMessage& from);
  13544. void MergeFrom(const FooClientMessage& from);
  13545. void Clear() final;
  13546. bool IsInitialized() const final;
  13547. size_t ByteSizeLong() const final;
  13548. bool MergePartialFromCodedStream(
  13549. ::google::protobuf::io::CodedInputStream* input) final;
  13550. void SerializeWithCachedSizes(
  13551. ::google::protobuf::io::CodedOutputStream* output) const final;
  13552. ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
  13553. bool deterministic, ::google::protobuf::uint8* target) const final;
  13554. int GetCachedSize() const final { return _cached_size_.Get(); }
  13555. private:
  13556. void SharedCtor();
  13557. void SharedDtor();
  13558. void SetCachedSize(int size) const final;
  13559. void InternalSwap(FooClientMessage* other);
  13560. protected:
  13561. explicit FooClientMessage(::google::protobuf::Arena* arena);
  13562. private:
  13563. static void ArenaDtor(void* object);
  13564. inline void RegisterArenaDtor(::google::protobuf::Arena* arena);
  13565. private:
  13566. inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
  13567. return _internal_metadata_.arena();
  13568. }
  13569. inline void* MaybeArenaPtr() const {
  13570. return _internal_metadata_.raw_arena_ptr();
  13571. }
  13572. public:
  13573. ::google::protobuf::Metadata GetMetadata() const final;
  13574. // nested types ----------------------------------------------------
  13575. // accessors -------------------------------------------------------
  13576. // @@protoc_insertion_point(class_scope:protobuf_unittest.FooClientMessage)
  13577. private:
  13578. ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
  13579. template <typename T> friend class ::google::protobuf::Arena::InternalHelper;
  13580. typedef void InternalArenaConstructable_;
  13581. typedef void DestructorSkippable_;
  13582. ::google::protobuf::internal::HasBits<1> _has_bits_;
  13583. mutable ::google::protobuf::internal::CachedSize _cached_size_;
  13584. friend struct ::protobuf_google_2fprotobuf_2funittest_2eproto::TableStruct;
  13585. };
  13586. // -------------------------------------------------------------------
  13587. class FooServerMessage : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:protobuf_unittest.FooServerMessage) */ {
  13588. public:
  13589. FooServerMessage();
  13590. virtual ~FooServerMessage();
  13591. FooServerMessage(const FooServerMessage& from);
  13592. inline FooServerMessage& operator=(const FooServerMessage& from) {
  13593. CopyFrom(from);
  13594. return *this;
  13595. }
  13596. #if LANG_CXX11
  13597. FooServerMessage(FooServerMessage&& from) noexcept
  13598. : FooServerMessage() {
  13599. *this = ::std::move(from);
  13600. }
  13601. inline FooServerMessage& operator=(FooServerMessage&& from) noexcept {
  13602. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  13603. if (this != &from) InternalSwap(&from);
  13604. } else {
  13605. CopyFrom(from);
  13606. }
  13607. return *this;
  13608. }
  13609. #endif
  13610. inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
  13611. return _internal_metadata_.unknown_fields();
  13612. }
  13613. inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
  13614. return _internal_metadata_.mutable_unknown_fields();
  13615. }
  13616. inline ::google::protobuf::Arena* GetArena() const final {
  13617. return GetArenaNoVirtual();
  13618. }
  13619. inline void* GetMaybeArenaPointer() const final {
  13620. return MaybeArenaPtr();
  13621. }
  13622. static const ::google::protobuf::Descriptor* descriptor();
  13623. static const FooServerMessage& default_instance();
  13624. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  13625. static inline const FooServerMessage* internal_default_instance() {
  13626. return reinterpret_cast<const FooServerMessage*>(
  13627. &_FooServerMessage_default_instance_);
  13628. }
  13629. static constexpr int kIndexInFileMessages =
  13630. 83;
  13631. void UnsafeArenaSwap(FooServerMessage* other);
  13632. void Swap(FooServerMessage* other);
  13633. friend void swap(FooServerMessage& a, FooServerMessage& b) {
  13634. a.Swap(&b);
  13635. }
  13636. // implements Message ----------------------------------------------
  13637. inline FooServerMessage* New() const final {
  13638. return CreateMaybeMessage<FooServerMessage>(NULL);
  13639. }
  13640. FooServerMessage* New(::google::protobuf::Arena* arena) const final {
  13641. return CreateMaybeMessage<FooServerMessage>(arena);
  13642. }
  13643. void CopyFrom(const ::google::protobuf::Message& from) final;
  13644. void MergeFrom(const ::google::protobuf::Message& from) final;
  13645. void CopyFrom(const FooServerMessage& from);
  13646. void MergeFrom(const FooServerMessage& from);
  13647. void Clear() final;
  13648. bool IsInitialized() const final;
  13649. size_t ByteSizeLong() const final;
  13650. bool MergePartialFromCodedStream(
  13651. ::google::protobuf::io::CodedInputStream* input) final;
  13652. void SerializeWithCachedSizes(
  13653. ::google::protobuf::io::CodedOutputStream* output) const final;
  13654. ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
  13655. bool deterministic, ::google::protobuf::uint8* target) const final;
  13656. int GetCachedSize() const final { return _cached_size_.Get(); }
  13657. private:
  13658. void SharedCtor();
  13659. void SharedDtor();
  13660. void SetCachedSize(int size) const final;
  13661. void InternalSwap(FooServerMessage* other);
  13662. protected:
  13663. explicit FooServerMessage(::google::protobuf::Arena* arena);
  13664. private:
  13665. static void ArenaDtor(void* object);
  13666. inline void RegisterArenaDtor(::google::protobuf::Arena* arena);
  13667. private:
  13668. inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
  13669. return _internal_metadata_.arena();
  13670. }
  13671. inline void* MaybeArenaPtr() const {
  13672. return _internal_metadata_.raw_arena_ptr();
  13673. }
  13674. public:
  13675. ::google::protobuf::Metadata GetMetadata() const final;
  13676. // nested types ----------------------------------------------------
  13677. // accessors -------------------------------------------------------
  13678. // @@protoc_insertion_point(class_scope:protobuf_unittest.FooServerMessage)
  13679. private:
  13680. ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
  13681. template <typename T> friend class ::google::protobuf::Arena::InternalHelper;
  13682. typedef void InternalArenaConstructable_;
  13683. typedef void DestructorSkippable_;
  13684. ::google::protobuf::internal::HasBits<1> _has_bits_;
  13685. mutable ::google::protobuf::internal::CachedSize _cached_size_;
  13686. friend struct ::protobuf_google_2fprotobuf_2funittest_2eproto::TableStruct;
  13687. };
  13688. // -------------------------------------------------------------------
  13689. class BarRequest : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:protobuf_unittest.BarRequest) */ {
  13690. public:
  13691. BarRequest();
  13692. virtual ~BarRequest();
  13693. BarRequest(const BarRequest& from);
  13694. inline BarRequest& operator=(const BarRequest& from) {
  13695. CopyFrom(from);
  13696. return *this;
  13697. }
  13698. #if LANG_CXX11
  13699. BarRequest(BarRequest&& from) noexcept
  13700. : BarRequest() {
  13701. *this = ::std::move(from);
  13702. }
  13703. inline BarRequest& operator=(BarRequest&& from) noexcept {
  13704. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  13705. if (this != &from) InternalSwap(&from);
  13706. } else {
  13707. CopyFrom(from);
  13708. }
  13709. return *this;
  13710. }
  13711. #endif
  13712. inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
  13713. return _internal_metadata_.unknown_fields();
  13714. }
  13715. inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
  13716. return _internal_metadata_.mutable_unknown_fields();
  13717. }
  13718. inline ::google::protobuf::Arena* GetArena() const final {
  13719. return GetArenaNoVirtual();
  13720. }
  13721. inline void* GetMaybeArenaPointer() const final {
  13722. return MaybeArenaPtr();
  13723. }
  13724. static const ::google::protobuf::Descriptor* descriptor();
  13725. static const BarRequest& default_instance();
  13726. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  13727. static inline const BarRequest* internal_default_instance() {
  13728. return reinterpret_cast<const BarRequest*>(
  13729. &_BarRequest_default_instance_);
  13730. }
  13731. static constexpr int kIndexInFileMessages =
  13732. 84;
  13733. void UnsafeArenaSwap(BarRequest* other);
  13734. void Swap(BarRequest* other);
  13735. friend void swap(BarRequest& a, BarRequest& b) {
  13736. a.Swap(&b);
  13737. }
  13738. // implements Message ----------------------------------------------
  13739. inline BarRequest* New() const final {
  13740. return CreateMaybeMessage<BarRequest>(NULL);
  13741. }
  13742. BarRequest* New(::google::protobuf::Arena* arena) const final {
  13743. return CreateMaybeMessage<BarRequest>(arena);
  13744. }
  13745. void CopyFrom(const ::google::protobuf::Message& from) final;
  13746. void MergeFrom(const ::google::protobuf::Message& from) final;
  13747. void CopyFrom(const BarRequest& from);
  13748. void MergeFrom(const BarRequest& from);
  13749. void Clear() final;
  13750. bool IsInitialized() const final;
  13751. size_t ByteSizeLong() const final;
  13752. bool MergePartialFromCodedStream(
  13753. ::google::protobuf::io::CodedInputStream* input) final;
  13754. void SerializeWithCachedSizes(
  13755. ::google::protobuf::io::CodedOutputStream* output) const final;
  13756. ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
  13757. bool deterministic, ::google::protobuf::uint8* target) const final;
  13758. int GetCachedSize() const final { return _cached_size_.Get(); }
  13759. private:
  13760. void SharedCtor();
  13761. void SharedDtor();
  13762. void SetCachedSize(int size) const final;
  13763. void InternalSwap(BarRequest* other);
  13764. protected:
  13765. explicit BarRequest(::google::protobuf::Arena* arena);
  13766. private:
  13767. static void ArenaDtor(void* object);
  13768. inline void RegisterArenaDtor(::google::protobuf::Arena* arena);
  13769. private:
  13770. inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
  13771. return _internal_metadata_.arena();
  13772. }
  13773. inline void* MaybeArenaPtr() const {
  13774. return _internal_metadata_.raw_arena_ptr();
  13775. }
  13776. public:
  13777. ::google::protobuf::Metadata GetMetadata() const final;
  13778. // nested types ----------------------------------------------------
  13779. // accessors -------------------------------------------------------
  13780. // @@protoc_insertion_point(class_scope:protobuf_unittest.BarRequest)
  13781. private:
  13782. ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
  13783. template <typename T> friend class ::google::protobuf::Arena::InternalHelper;
  13784. typedef void InternalArenaConstructable_;
  13785. typedef void DestructorSkippable_;
  13786. ::google::protobuf::internal::HasBits<1> _has_bits_;
  13787. mutable ::google::protobuf::internal::CachedSize _cached_size_;
  13788. friend struct ::protobuf_google_2fprotobuf_2funittest_2eproto::TableStruct;
  13789. };
  13790. // -------------------------------------------------------------------
  13791. class BarResponse : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:protobuf_unittest.BarResponse) */ {
  13792. public:
  13793. BarResponse();
  13794. virtual ~BarResponse();
  13795. BarResponse(const BarResponse& from);
  13796. inline BarResponse& operator=(const BarResponse& from) {
  13797. CopyFrom(from);
  13798. return *this;
  13799. }
  13800. #if LANG_CXX11
  13801. BarResponse(BarResponse&& from) noexcept
  13802. : BarResponse() {
  13803. *this = ::std::move(from);
  13804. }
  13805. inline BarResponse& operator=(BarResponse&& from) noexcept {
  13806. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  13807. if (this != &from) InternalSwap(&from);
  13808. } else {
  13809. CopyFrom(from);
  13810. }
  13811. return *this;
  13812. }
  13813. #endif
  13814. inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
  13815. return _internal_metadata_.unknown_fields();
  13816. }
  13817. inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
  13818. return _internal_metadata_.mutable_unknown_fields();
  13819. }
  13820. inline ::google::protobuf::Arena* GetArena() const final {
  13821. return GetArenaNoVirtual();
  13822. }
  13823. inline void* GetMaybeArenaPointer() const final {
  13824. return MaybeArenaPtr();
  13825. }
  13826. static const ::google::protobuf::Descriptor* descriptor();
  13827. static const BarResponse& default_instance();
  13828. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  13829. static inline const BarResponse* internal_default_instance() {
  13830. return reinterpret_cast<const BarResponse*>(
  13831. &_BarResponse_default_instance_);
  13832. }
  13833. static constexpr int kIndexInFileMessages =
  13834. 85;
  13835. void UnsafeArenaSwap(BarResponse* other);
  13836. void Swap(BarResponse* other);
  13837. friend void swap(BarResponse& a, BarResponse& b) {
  13838. a.Swap(&b);
  13839. }
  13840. // implements Message ----------------------------------------------
  13841. inline BarResponse* New() const final {
  13842. return CreateMaybeMessage<BarResponse>(NULL);
  13843. }
  13844. BarResponse* New(::google::protobuf::Arena* arena) const final {
  13845. return CreateMaybeMessage<BarResponse>(arena);
  13846. }
  13847. void CopyFrom(const ::google::protobuf::Message& from) final;
  13848. void MergeFrom(const ::google::protobuf::Message& from) final;
  13849. void CopyFrom(const BarResponse& from);
  13850. void MergeFrom(const BarResponse& from);
  13851. void Clear() final;
  13852. bool IsInitialized() const final;
  13853. size_t ByteSizeLong() const final;
  13854. bool MergePartialFromCodedStream(
  13855. ::google::protobuf::io::CodedInputStream* input) final;
  13856. void SerializeWithCachedSizes(
  13857. ::google::protobuf::io::CodedOutputStream* output) const final;
  13858. ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
  13859. bool deterministic, ::google::protobuf::uint8* target) const final;
  13860. int GetCachedSize() const final { return _cached_size_.Get(); }
  13861. private:
  13862. void SharedCtor();
  13863. void SharedDtor();
  13864. void SetCachedSize(int size) const final;
  13865. void InternalSwap(BarResponse* other);
  13866. protected:
  13867. explicit BarResponse(::google::protobuf::Arena* arena);
  13868. private:
  13869. static void ArenaDtor(void* object);
  13870. inline void RegisterArenaDtor(::google::protobuf::Arena* arena);
  13871. private:
  13872. inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
  13873. return _internal_metadata_.arena();
  13874. }
  13875. inline void* MaybeArenaPtr() const {
  13876. return _internal_metadata_.raw_arena_ptr();
  13877. }
  13878. public:
  13879. ::google::protobuf::Metadata GetMetadata() const final;
  13880. // nested types ----------------------------------------------------
  13881. // accessors -------------------------------------------------------
  13882. // @@protoc_insertion_point(class_scope:protobuf_unittest.BarResponse)
  13883. private:
  13884. ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
  13885. template <typename T> friend class ::google::protobuf::Arena::InternalHelper;
  13886. typedef void InternalArenaConstructable_;
  13887. typedef void DestructorSkippable_;
  13888. ::google::protobuf::internal::HasBits<1> _has_bits_;
  13889. mutable ::google::protobuf::internal::CachedSize _cached_size_;
  13890. friend struct ::protobuf_google_2fprotobuf_2funittest_2eproto::TableStruct;
  13891. };
  13892. // -------------------------------------------------------------------
  13893. class TestJsonName : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:protobuf_unittest.TestJsonName) */ {
  13894. public:
  13895. TestJsonName();
  13896. virtual ~TestJsonName();
  13897. TestJsonName(const TestJsonName& from);
  13898. inline TestJsonName& operator=(const TestJsonName& from) {
  13899. CopyFrom(from);
  13900. return *this;
  13901. }
  13902. #if LANG_CXX11
  13903. TestJsonName(TestJsonName&& from) noexcept
  13904. : TestJsonName() {
  13905. *this = ::std::move(from);
  13906. }
  13907. inline TestJsonName& operator=(TestJsonName&& from) noexcept {
  13908. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  13909. if (this != &from) InternalSwap(&from);
  13910. } else {
  13911. CopyFrom(from);
  13912. }
  13913. return *this;
  13914. }
  13915. #endif
  13916. inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
  13917. return _internal_metadata_.unknown_fields();
  13918. }
  13919. inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
  13920. return _internal_metadata_.mutable_unknown_fields();
  13921. }
  13922. inline ::google::protobuf::Arena* GetArena() const final {
  13923. return GetArenaNoVirtual();
  13924. }
  13925. inline void* GetMaybeArenaPointer() const final {
  13926. return MaybeArenaPtr();
  13927. }
  13928. static const ::google::protobuf::Descriptor* descriptor();
  13929. static const TestJsonName& default_instance();
  13930. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  13931. static inline const TestJsonName* internal_default_instance() {
  13932. return reinterpret_cast<const TestJsonName*>(
  13933. &_TestJsonName_default_instance_);
  13934. }
  13935. static constexpr int kIndexInFileMessages =
  13936. 86;
  13937. void UnsafeArenaSwap(TestJsonName* other);
  13938. void Swap(TestJsonName* other);
  13939. friend void swap(TestJsonName& a, TestJsonName& b) {
  13940. a.Swap(&b);
  13941. }
  13942. // implements Message ----------------------------------------------
  13943. inline TestJsonName* New() const final {
  13944. return CreateMaybeMessage<TestJsonName>(NULL);
  13945. }
  13946. TestJsonName* New(::google::protobuf::Arena* arena) const final {
  13947. return CreateMaybeMessage<TestJsonName>(arena);
  13948. }
  13949. void CopyFrom(const ::google::protobuf::Message& from) final;
  13950. void MergeFrom(const ::google::protobuf::Message& from) final;
  13951. void CopyFrom(const TestJsonName& from);
  13952. void MergeFrom(const TestJsonName& from);
  13953. void Clear() final;
  13954. bool IsInitialized() const final;
  13955. size_t ByteSizeLong() const final;
  13956. bool MergePartialFromCodedStream(
  13957. ::google::protobuf::io::CodedInputStream* input) final;
  13958. void SerializeWithCachedSizes(
  13959. ::google::protobuf::io::CodedOutputStream* output) const final;
  13960. ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
  13961. bool deterministic, ::google::protobuf::uint8* target) const final;
  13962. int GetCachedSize() const final { return _cached_size_.Get(); }
  13963. private:
  13964. void SharedCtor();
  13965. void SharedDtor();
  13966. void SetCachedSize(int size) const final;
  13967. void InternalSwap(TestJsonName* other);
  13968. protected:
  13969. explicit TestJsonName(::google::protobuf::Arena* arena);
  13970. private:
  13971. static void ArenaDtor(void* object);
  13972. inline void RegisterArenaDtor(::google::protobuf::Arena* arena);
  13973. private:
  13974. inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
  13975. return _internal_metadata_.arena();
  13976. }
  13977. inline void* MaybeArenaPtr() const {
  13978. return _internal_metadata_.raw_arena_ptr();
  13979. }
  13980. public:
  13981. ::google::protobuf::Metadata GetMetadata() const final;
  13982. // nested types ----------------------------------------------------
  13983. // accessors -------------------------------------------------------
  13984. // optional int32 field_name1 = 1;
  13985. bool has_field_name1() const;
  13986. void clear_field_name1();
  13987. static const int kFieldName1FieldNumber = 1;
  13988. ::google::protobuf::int32 field_name1() const;
  13989. void set_field_name1(::google::protobuf::int32 value);
  13990. // optional int32 fieldName2 = 2;
  13991. bool has_fieldname2() const;
  13992. void clear_fieldname2();
  13993. static const int kFieldName2FieldNumber = 2;
  13994. ::google::protobuf::int32 fieldname2() const;
  13995. void set_fieldname2(::google::protobuf::int32 value);
  13996. // optional int32 FieldName3 = 3;
  13997. bool has_fieldname3() const;
  13998. void clear_fieldname3();
  13999. static const int kFieldName3FieldNumber = 3;
  14000. ::google::protobuf::int32 fieldname3() const;
  14001. void set_fieldname3(::google::protobuf::int32 value);
  14002. // optional int32 _field_name4 = 4;
  14003. bool has__field_name4() const;
  14004. void clear__field_name4();
  14005. static const int kFieldName4FieldNumber = 4;
  14006. ::google::protobuf::int32 _field_name4() const;
  14007. void set__field_name4(::google::protobuf::int32 value);
  14008. // optional int32 FIELD_NAME5 = 5;
  14009. bool has_field_name5() const;
  14010. void clear_field_name5();
  14011. static const int kFIELDNAME5FieldNumber = 5;
  14012. ::google::protobuf::int32 field_name5() const;
  14013. void set_field_name5(::google::protobuf::int32 value);
  14014. // optional int32 field_name6 = 6[json_name = "@type"];
  14015. bool has_field_name6() const;
  14016. void clear_field_name6();
  14017. static const int kFieldName6FieldNumber = 6;
  14018. ::google::protobuf::int32 field_name6() const;
  14019. void set_field_name6(::google::protobuf::int32 value);
  14020. // @@protoc_insertion_point(class_scope:protobuf_unittest.TestJsonName)
  14021. private:
  14022. void set_has_field_name1();
  14023. void clear_has_field_name1();
  14024. void set_has_fieldname2();
  14025. void clear_has_fieldname2();
  14026. void set_has_fieldname3();
  14027. void clear_has_fieldname3();
  14028. void set_has__field_name4();
  14029. void clear_has__field_name4();
  14030. void set_has_field_name5();
  14031. void clear_has_field_name5();
  14032. void set_has_field_name6();
  14033. void clear_has_field_name6();
  14034. ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
  14035. template <typename T> friend class ::google::protobuf::Arena::InternalHelper;
  14036. typedef void InternalArenaConstructable_;
  14037. typedef void DestructorSkippable_;
  14038. ::google::protobuf::internal::HasBits<1> _has_bits_;
  14039. mutable ::google::protobuf::internal::CachedSize _cached_size_;
  14040. ::google::protobuf::int32 field_name1_;
  14041. ::google::protobuf::int32 fieldname2_;
  14042. ::google::protobuf::int32 fieldname3_;
  14043. ::google::protobuf::int32 _field_name4_;
  14044. ::google::protobuf::int32 field_name5_;
  14045. ::google::protobuf::int32 field_name6_;
  14046. friend struct ::protobuf_google_2fprotobuf_2funittest_2eproto::TableStruct;
  14047. };
  14048. // -------------------------------------------------------------------
  14049. class TestHugeFieldNumbers_OptionalGroup : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:protobuf_unittest.TestHugeFieldNumbers.OptionalGroup) */ {
  14050. public:
  14051. TestHugeFieldNumbers_OptionalGroup();
  14052. virtual ~TestHugeFieldNumbers_OptionalGroup();
  14053. TestHugeFieldNumbers_OptionalGroup(const TestHugeFieldNumbers_OptionalGroup& from);
  14054. inline TestHugeFieldNumbers_OptionalGroup& operator=(const TestHugeFieldNumbers_OptionalGroup& from) {
  14055. CopyFrom(from);
  14056. return *this;
  14057. }
  14058. #if LANG_CXX11
  14059. TestHugeFieldNumbers_OptionalGroup(TestHugeFieldNumbers_OptionalGroup&& from) noexcept
  14060. : TestHugeFieldNumbers_OptionalGroup() {
  14061. *this = ::std::move(from);
  14062. }
  14063. inline TestHugeFieldNumbers_OptionalGroup& operator=(TestHugeFieldNumbers_OptionalGroup&& from) noexcept {
  14064. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  14065. if (this != &from) InternalSwap(&from);
  14066. } else {
  14067. CopyFrom(from);
  14068. }
  14069. return *this;
  14070. }
  14071. #endif
  14072. inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
  14073. return _internal_metadata_.unknown_fields();
  14074. }
  14075. inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
  14076. return _internal_metadata_.mutable_unknown_fields();
  14077. }
  14078. inline ::google::protobuf::Arena* GetArena() const final {
  14079. return GetArenaNoVirtual();
  14080. }
  14081. inline void* GetMaybeArenaPointer() const final {
  14082. return MaybeArenaPtr();
  14083. }
  14084. static const ::google::protobuf::Descriptor* descriptor();
  14085. static const TestHugeFieldNumbers_OptionalGroup& default_instance();
  14086. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  14087. static inline const TestHugeFieldNumbers_OptionalGroup* internal_default_instance() {
  14088. return reinterpret_cast<const TestHugeFieldNumbers_OptionalGroup*>(
  14089. &_TestHugeFieldNumbers_OptionalGroup_default_instance_);
  14090. }
  14091. static constexpr int kIndexInFileMessages =
  14092. 87;
  14093. void UnsafeArenaSwap(TestHugeFieldNumbers_OptionalGroup* other);
  14094. void Swap(TestHugeFieldNumbers_OptionalGroup* other);
  14095. friend void swap(TestHugeFieldNumbers_OptionalGroup& a, TestHugeFieldNumbers_OptionalGroup& b) {
  14096. a.Swap(&b);
  14097. }
  14098. // implements Message ----------------------------------------------
  14099. inline TestHugeFieldNumbers_OptionalGroup* New() const final {
  14100. return CreateMaybeMessage<TestHugeFieldNumbers_OptionalGroup>(NULL);
  14101. }
  14102. TestHugeFieldNumbers_OptionalGroup* New(::google::protobuf::Arena* arena) const final {
  14103. return CreateMaybeMessage<TestHugeFieldNumbers_OptionalGroup>(arena);
  14104. }
  14105. void CopyFrom(const ::google::protobuf::Message& from) final;
  14106. void MergeFrom(const ::google::protobuf::Message& from) final;
  14107. void CopyFrom(const TestHugeFieldNumbers_OptionalGroup& from);
  14108. void MergeFrom(const TestHugeFieldNumbers_OptionalGroup& from);
  14109. void Clear() final;
  14110. bool IsInitialized() const final;
  14111. size_t ByteSizeLong() const final;
  14112. bool MergePartialFromCodedStream(
  14113. ::google::protobuf::io::CodedInputStream* input) final;
  14114. void SerializeWithCachedSizes(
  14115. ::google::protobuf::io::CodedOutputStream* output) const final;
  14116. ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
  14117. bool deterministic, ::google::protobuf::uint8* target) const final;
  14118. int GetCachedSize() const final { return _cached_size_.Get(); }
  14119. private:
  14120. void SharedCtor();
  14121. void SharedDtor();
  14122. void SetCachedSize(int size) const final;
  14123. void InternalSwap(TestHugeFieldNumbers_OptionalGroup* other);
  14124. protected:
  14125. explicit TestHugeFieldNumbers_OptionalGroup(::google::protobuf::Arena* arena);
  14126. private:
  14127. static void ArenaDtor(void* object);
  14128. inline void RegisterArenaDtor(::google::protobuf::Arena* arena);
  14129. private:
  14130. inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
  14131. return _internal_metadata_.arena();
  14132. }
  14133. inline void* MaybeArenaPtr() const {
  14134. return _internal_metadata_.raw_arena_ptr();
  14135. }
  14136. public:
  14137. ::google::protobuf::Metadata GetMetadata() const final;
  14138. // nested types ----------------------------------------------------
  14139. // accessors -------------------------------------------------------
  14140. // optional int32 group_a = 536870009;
  14141. bool has_group_a() const;
  14142. void clear_group_a();
  14143. static const int kGroupAFieldNumber = 536870009;
  14144. ::google::protobuf::int32 group_a() const;
  14145. void set_group_a(::google::protobuf::int32 value);
  14146. // @@protoc_insertion_point(class_scope:protobuf_unittest.TestHugeFieldNumbers.OptionalGroup)
  14147. private:
  14148. void set_has_group_a();
  14149. void clear_has_group_a();
  14150. ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
  14151. template <typename T> friend class ::google::protobuf::Arena::InternalHelper;
  14152. typedef void InternalArenaConstructable_;
  14153. typedef void DestructorSkippable_;
  14154. ::google::protobuf::internal::HasBits<1> _has_bits_;
  14155. mutable ::google::protobuf::internal::CachedSize _cached_size_;
  14156. ::google::protobuf::int32 group_a_;
  14157. friend struct ::protobuf_google_2fprotobuf_2funittest_2eproto::TableStruct;
  14158. };
  14159. // -------------------------------------------------------------------
  14160. class TestHugeFieldNumbers_StringStringMapEntry_DoNotUse : public ::google::protobuf::internal::MapEntry<TestHugeFieldNumbers_StringStringMapEntry_DoNotUse,
  14161. ::std::string, ::std::string,
  14162. ::google::protobuf::internal::WireFormatLite::TYPE_STRING,
  14163. ::google::protobuf::internal::WireFormatLite::TYPE_STRING,
  14164. 0 > {
  14165. public:
  14166. typedef ::google::protobuf::internal::MapEntry<TestHugeFieldNumbers_StringStringMapEntry_DoNotUse,
  14167. ::std::string, ::std::string,
  14168. ::google::protobuf::internal::WireFormatLite::TYPE_STRING,
  14169. ::google::protobuf::internal::WireFormatLite::TYPE_STRING,
  14170. 0 > SuperType;
  14171. TestHugeFieldNumbers_StringStringMapEntry_DoNotUse();
  14172. TestHugeFieldNumbers_StringStringMapEntry_DoNotUse(::google::protobuf::Arena* arena);
  14173. void MergeFrom(const TestHugeFieldNumbers_StringStringMapEntry_DoNotUse& other);
  14174. static const TestHugeFieldNumbers_StringStringMapEntry_DoNotUse* internal_default_instance() { return reinterpret_cast<const TestHugeFieldNumbers_StringStringMapEntry_DoNotUse*>(&_TestHugeFieldNumbers_StringStringMapEntry_DoNotUse_default_instance_); }
  14175. void MergeFrom(const ::google::protobuf::Message& other) final;
  14176. ::google::protobuf::Metadata GetMetadata() const;
  14177. };
  14178. // -------------------------------------------------------------------
  14179. class TestHugeFieldNumbers : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:protobuf_unittest.TestHugeFieldNumbers) */ {
  14180. public:
  14181. TestHugeFieldNumbers();
  14182. virtual ~TestHugeFieldNumbers();
  14183. TestHugeFieldNumbers(const TestHugeFieldNumbers& from);
  14184. inline TestHugeFieldNumbers& operator=(const TestHugeFieldNumbers& from) {
  14185. CopyFrom(from);
  14186. return *this;
  14187. }
  14188. #if LANG_CXX11
  14189. TestHugeFieldNumbers(TestHugeFieldNumbers&& from) noexcept
  14190. : TestHugeFieldNumbers() {
  14191. *this = ::std::move(from);
  14192. }
  14193. inline TestHugeFieldNumbers& operator=(TestHugeFieldNumbers&& from) noexcept {
  14194. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  14195. if (this != &from) InternalSwap(&from);
  14196. } else {
  14197. CopyFrom(from);
  14198. }
  14199. return *this;
  14200. }
  14201. #endif
  14202. inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
  14203. return _internal_metadata_.unknown_fields();
  14204. }
  14205. inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
  14206. return _internal_metadata_.mutable_unknown_fields();
  14207. }
  14208. inline ::google::protobuf::Arena* GetArena() const final {
  14209. return GetArenaNoVirtual();
  14210. }
  14211. inline void* GetMaybeArenaPointer() const final {
  14212. return MaybeArenaPtr();
  14213. }
  14214. static const ::google::protobuf::Descriptor* descriptor();
  14215. static const TestHugeFieldNumbers& default_instance();
  14216. enum OneofFieldCase {
  14217. kOneofUint32 = 536870011,
  14218. kOneofTestAllTypes = 536870012,
  14219. kOneofString = 536870013,
  14220. kOneofBytes = 536870014,
  14221. ONEOF_FIELD_NOT_SET = 0,
  14222. };
  14223. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  14224. static inline const TestHugeFieldNumbers* internal_default_instance() {
  14225. return reinterpret_cast<const TestHugeFieldNumbers*>(
  14226. &_TestHugeFieldNumbers_default_instance_);
  14227. }
  14228. static constexpr int kIndexInFileMessages =
  14229. 89;
  14230. void UnsafeArenaSwap(TestHugeFieldNumbers* other);
  14231. void Swap(TestHugeFieldNumbers* other);
  14232. friend void swap(TestHugeFieldNumbers& a, TestHugeFieldNumbers& b) {
  14233. a.Swap(&b);
  14234. }
  14235. // implements Message ----------------------------------------------
  14236. inline TestHugeFieldNumbers* New() const final {
  14237. return CreateMaybeMessage<TestHugeFieldNumbers>(NULL);
  14238. }
  14239. TestHugeFieldNumbers* New(::google::protobuf::Arena* arena) const final {
  14240. return CreateMaybeMessage<TestHugeFieldNumbers>(arena);
  14241. }
  14242. void CopyFrom(const ::google::protobuf::Message& from) final;
  14243. void MergeFrom(const ::google::protobuf::Message& from) final;
  14244. void CopyFrom(const TestHugeFieldNumbers& from);
  14245. void MergeFrom(const TestHugeFieldNumbers& from);
  14246. void Clear() final;
  14247. bool IsInitialized() const final;
  14248. size_t ByteSizeLong() const final;
  14249. bool MergePartialFromCodedStream(
  14250. ::google::protobuf::io::CodedInputStream* input) final;
  14251. void SerializeWithCachedSizes(
  14252. ::google::protobuf::io::CodedOutputStream* output) const final;
  14253. ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
  14254. bool deterministic, ::google::protobuf::uint8* target) const final;
  14255. int GetCachedSize() const final { return _cached_size_.Get(); }
  14256. private:
  14257. void SharedCtor();
  14258. void SharedDtor();
  14259. void SetCachedSize(int size) const final;
  14260. void InternalSwap(TestHugeFieldNumbers* other);
  14261. protected:
  14262. explicit TestHugeFieldNumbers(::google::protobuf::Arena* arena);
  14263. private:
  14264. static void ArenaDtor(void* object);
  14265. inline void RegisterArenaDtor(::google::protobuf::Arena* arena);
  14266. private:
  14267. inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
  14268. return _internal_metadata_.arena();
  14269. }
  14270. inline void* MaybeArenaPtr() const {
  14271. return _internal_metadata_.raw_arena_ptr();
  14272. }
  14273. public:
  14274. ::google::protobuf::Metadata GetMetadata() const final;
  14275. // nested types ----------------------------------------------------
  14276. typedef TestHugeFieldNumbers_OptionalGroup OptionalGroup;
  14277. // accessors -------------------------------------------------------
  14278. // repeated int32 repeated_int32 = 536870002 [packed = false];
  14279. int repeated_int32_size() const;
  14280. void clear_repeated_int32();
  14281. static const int kRepeatedInt32FieldNumber = 536870002;
  14282. ::google::protobuf::int32 repeated_int32(int index) const;
  14283. void set_repeated_int32(int index, ::google::protobuf::int32 value);
  14284. void add_repeated_int32(::google::protobuf::int32 value);
  14285. const ::google::protobuf::RepeatedField< ::google::protobuf::int32 >&
  14286. repeated_int32() const;
  14287. ::google::protobuf::RepeatedField< ::google::protobuf::int32 >*
  14288. mutable_repeated_int32();
  14289. // repeated int32 packed_int32 = 536870003 [packed = true];
  14290. int packed_int32_size() const;
  14291. void clear_packed_int32();
  14292. static const int kPackedInt32FieldNumber = 536870003;
  14293. ::google::protobuf::int32 packed_int32(int index) const;
  14294. void set_packed_int32(int index, ::google::protobuf::int32 value);
  14295. void add_packed_int32(::google::protobuf::int32 value);
  14296. const ::google::protobuf::RepeatedField< ::google::protobuf::int32 >&
  14297. packed_int32() const;
  14298. ::google::protobuf::RepeatedField< ::google::protobuf::int32 >*
  14299. mutable_packed_int32();
  14300. // map<string, string> string_string_map = 536870010;
  14301. int string_string_map_size() const;
  14302. void clear_string_string_map();
  14303. static const int kStringStringMapFieldNumber = 536870010;
  14304. const ::google::protobuf::Map< ::std::string, ::std::string >&
  14305. string_string_map() const;
  14306. ::google::protobuf::Map< ::std::string, ::std::string >*
  14307. mutable_string_string_map();
  14308. // optional string optional_string = 536870005;
  14309. bool has_optional_string() const;
  14310. void clear_optional_string();
  14311. static const int kOptionalStringFieldNumber = 536870005;
  14312. const ::std::string& optional_string() const;
  14313. void set_optional_string(const ::std::string& value);
  14314. #if LANG_CXX11
  14315. void set_optional_string(::std::string&& value);
  14316. #endif
  14317. void set_optional_string(const char* value);
  14318. void set_optional_string(const char* value, size_t size);
  14319. ::std::string* mutable_optional_string();
  14320. ::std::string* release_optional_string();
  14321. void set_allocated_optional_string(::std::string* optional_string);
  14322. PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
  14323. " string fields are deprecated and will be removed in a"
  14324. " future release.")
  14325. ::std::string* unsafe_arena_release_optional_string();
  14326. PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
  14327. " string fields are deprecated and will be removed in a"
  14328. " future release.")
  14329. void unsafe_arena_set_allocated_optional_string(
  14330. ::std::string* optional_string);
  14331. // optional bytes optional_bytes = 536870006;
  14332. bool has_optional_bytes() const;
  14333. void clear_optional_bytes();
  14334. static const int kOptionalBytesFieldNumber = 536870006;
  14335. const ::std::string& optional_bytes() const;
  14336. void set_optional_bytes(const ::std::string& value);
  14337. #if LANG_CXX11
  14338. void set_optional_bytes(::std::string&& value);
  14339. #endif
  14340. void set_optional_bytes(const char* value);
  14341. void set_optional_bytes(const void* value, size_t size);
  14342. ::std::string* mutable_optional_bytes();
  14343. ::std::string* release_optional_bytes();
  14344. void set_allocated_optional_bytes(::std::string* optional_bytes);
  14345. PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
  14346. " string fields are deprecated and will be removed in a"
  14347. " future release.")
  14348. ::std::string* unsafe_arena_release_optional_bytes();
  14349. PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
  14350. " string fields are deprecated and will be removed in a"
  14351. " future release.")
  14352. void unsafe_arena_set_allocated_optional_bytes(
  14353. ::std::string* optional_bytes);
  14354. // optional .protobuf_unittest.ForeignMessage optional_message = 536870007;
  14355. bool has_optional_message() const;
  14356. void clear_optional_message();
  14357. static const int kOptionalMessageFieldNumber = 536870007;
  14358. private:
  14359. const ::protobuf_unittest::ForeignMessage& _internal_optional_message() const;
  14360. public:
  14361. const ::protobuf_unittest::ForeignMessage& optional_message() const;
  14362. ::protobuf_unittest::ForeignMessage* release_optional_message();
  14363. ::protobuf_unittest::ForeignMessage* mutable_optional_message();
  14364. void set_allocated_optional_message(::protobuf_unittest::ForeignMessage* optional_message);
  14365. void unsafe_arena_set_allocated_optional_message(
  14366. ::protobuf_unittest::ForeignMessage* optional_message);
  14367. ::protobuf_unittest::ForeignMessage* unsafe_arena_release_optional_message();
  14368. // optional group OptionalGroup = 536870008 { ... };
  14369. bool has_optionalgroup() const;
  14370. void clear_optionalgroup();
  14371. static const int kOptionalgroupFieldNumber = 536870008;
  14372. private:
  14373. const ::protobuf_unittest::TestHugeFieldNumbers_OptionalGroup& _internal_optionalgroup() const;
  14374. public:
  14375. const ::protobuf_unittest::TestHugeFieldNumbers_OptionalGroup& optionalgroup() const;
  14376. ::protobuf_unittest::TestHugeFieldNumbers_OptionalGroup* release_optionalgroup();
  14377. ::protobuf_unittest::TestHugeFieldNumbers_OptionalGroup* mutable_optionalgroup();
  14378. void set_allocated_optionalgroup(::protobuf_unittest::TestHugeFieldNumbers_OptionalGroup* optionalgroup);
  14379. void unsafe_arena_set_allocated_optionalgroup(
  14380. ::protobuf_unittest::TestHugeFieldNumbers_OptionalGroup* optionalgroup);
  14381. ::protobuf_unittest::TestHugeFieldNumbers_OptionalGroup* unsafe_arena_release_optionalgroup();
  14382. // optional int32 optional_int32 = 536870000;
  14383. bool has_optional_int32() const;
  14384. void clear_optional_int32();
  14385. static const int kOptionalInt32FieldNumber = 536870000;
  14386. ::google::protobuf::int32 optional_int32() const;
  14387. void set_optional_int32(::google::protobuf::int32 value);
  14388. // optional int32 fixed_32 = 536870001;
  14389. bool has_fixed_32() const;
  14390. void clear_fixed_32();
  14391. static const int kFixed32FieldNumber = 536870001;
  14392. ::google::protobuf::int32 fixed_32() const;
  14393. void set_fixed_32(::google::protobuf::int32 value);
  14394. // optional .protobuf_unittest.ForeignEnum optional_enum = 536870004;
  14395. bool has_optional_enum() const;
  14396. void clear_optional_enum();
  14397. static const int kOptionalEnumFieldNumber = 536870004;
  14398. ::protobuf_unittest::ForeignEnum optional_enum() const;
  14399. void set_optional_enum(::protobuf_unittest::ForeignEnum value);
  14400. // optional uint32 oneof_uint32 = 536870011;
  14401. bool has_oneof_uint32() const;
  14402. void clear_oneof_uint32();
  14403. static const int kOneofUint32FieldNumber = 536870011;
  14404. ::google::protobuf::uint32 oneof_uint32() const;
  14405. void set_oneof_uint32(::google::protobuf::uint32 value);
  14406. // optional .protobuf_unittest.TestAllTypes oneof_test_all_types = 536870012;
  14407. bool has_oneof_test_all_types() const;
  14408. void clear_oneof_test_all_types();
  14409. static const int kOneofTestAllTypesFieldNumber = 536870012;
  14410. private:
  14411. const ::protobuf_unittest::TestAllTypes& _internal_oneof_test_all_types() const;
  14412. public:
  14413. const ::protobuf_unittest::TestAllTypes& oneof_test_all_types() const;
  14414. ::protobuf_unittest::TestAllTypes* release_oneof_test_all_types();
  14415. ::protobuf_unittest::TestAllTypes* mutable_oneof_test_all_types();
  14416. void set_allocated_oneof_test_all_types(::protobuf_unittest::TestAllTypes* oneof_test_all_types);
  14417. void unsafe_arena_set_allocated_oneof_test_all_types(
  14418. ::protobuf_unittest::TestAllTypes* oneof_test_all_types);
  14419. ::protobuf_unittest::TestAllTypes* unsafe_arena_release_oneof_test_all_types();
  14420. // optional string oneof_string = 536870013;
  14421. bool has_oneof_string() const;
  14422. void clear_oneof_string();
  14423. static const int kOneofStringFieldNumber = 536870013;
  14424. const ::std::string& oneof_string() const;
  14425. void set_oneof_string(const ::std::string& value);
  14426. #if LANG_CXX11
  14427. void set_oneof_string(::std::string&& value);
  14428. #endif
  14429. void set_oneof_string(const char* value);
  14430. void set_oneof_string(const char* value, size_t size);
  14431. ::std::string* mutable_oneof_string();
  14432. ::std::string* release_oneof_string();
  14433. void set_allocated_oneof_string(::std::string* oneof_string);
  14434. PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
  14435. " string fields are deprecated and will be removed in a"
  14436. " future release.")
  14437. ::std::string* unsafe_arena_release_oneof_string();
  14438. PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
  14439. " string fields are deprecated and will be removed in a"
  14440. " future release.")
  14441. void unsafe_arena_set_allocated_oneof_string(
  14442. ::std::string* oneof_string);
  14443. // optional bytes oneof_bytes = 536870014;
  14444. bool has_oneof_bytes() const;
  14445. void clear_oneof_bytes();
  14446. static const int kOneofBytesFieldNumber = 536870014;
  14447. const ::std::string& oneof_bytes() const;
  14448. void set_oneof_bytes(const ::std::string& value);
  14449. #if LANG_CXX11
  14450. void set_oneof_bytes(::std::string&& value);
  14451. #endif
  14452. void set_oneof_bytes(const char* value);
  14453. void set_oneof_bytes(const void* value, size_t size);
  14454. ::std::string* mutable_oneof_bytes();
  14455. ::std::string* release_oneof_bytes();
  14456. void set_allocated_oneof_bytes(::std::string* oneof_bytes);
  14457. PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
  14458. " string fields are deprecated and will be removed in a"
  14459. " future release.")
  14460. ::std::string* unsafe_arena_release_oneof_bytes();
  14461. PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
  14462. " string fields are deprecated and will be removed in a"
  14463. " future release.")
  14464. void unsafe_arena_set_allocated_oneof_bytes(
  14465. ::std::string* oneof_bytes);
  14466. GOOGLE_PROTOBUF_EXTENSION_ACCESSORS(TestHugeFieldNumbers)
  14467. void clear_oneof_field();
  14468. OneofFieldCase oneof_field_case() const;
  14469. // @@protoc_insertion_point(class_scope:protobuf_unittest.TestHugeFieldNumbers)
  14470. private:
  14471. void set_has_optional_int32();
  14472. void clear_has_optional_int32();
  14473. void set_has_fixed_32();
  14474. void clear_has_fixed_32();
  14475. void set_has_optional_enum();
  14476. void clear_has_optional_enum();
  14477. void set_has_optional_string();
  14478. void clear_has_optional_string();
  14479. void set_has_optional_bytes();
  14480. void clear_has_optional_bytes();
  14481. void set_has_optional_message();
  14482. void clear_has_optional_message();
  14483. void set_has_optionalgroup();
  14484. void clear_has_optionalgroup();
  14485. void set_has_oneof_uint32();
  14486. void set_has_oneof_test_all_types();
  14487. void set_has_oneof_string();
  14488. void set_has_oneof_bytes();
  14489. inline bool has_oneof_field() const;
  14490. inline void clear_has_oneof_field();
  14491. ::google::protobuf::internal::ExtensionSet _extensions_;
  14492. ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
  14493. template <typename T> friend class ::google::protobuf::Arena::InternalHelper;
  14494. typedef void InternalArenaConstructable_;
  14495. typedef void DestructorSkippable_;
  14496. ::google::protobuf::internal::HasBits<1> _has_bits_;
  14497. mutable ::google::protobuf::internal::CachedSize _cached_size_;
  14498. ::google::protobuf::RepeatedField< ::google::protobuf::int32 > repeated_int32_;
  14499. ::google::protobuf::RepeatedField< ::google::protobuf::int32 > packed_int32_;
  14500. mutable int _packed_int32_cached_byte_size_;
  14501. ::google::protobuf::internal::MapField<
  14502. TestHugeFieldNumbers_StringStringMapEntry_DoNotUse,
  14503. ::std::string, ::std::string,
  14504. ::google::protobuf::internal::WireFormatLite::TYPE_STRING,
  14505. ::google::protobuf::internal::WireFormatLite::TYPE_STRING,
  14506. 0 > string_string_map_;
  14507. ::google::protobuf::internal::ArenaStringPtr optional_string_;
  14508. ::google::protobuf::internal::ArenaStringPtr optional_bytes_;
  14509. ::protobuf_unittest::ForeignMessage* optional_message_;
  14510. ::protobuf_unittest::TestHugeFieldNumbers_OptionalGroup* optionalgroup_;
  14511. ::google::protobuf::int32 optional_int32_;
  14512. ::google::protobuf::int32 fixed_32_;
  14513. int optional_enum_;
  14514. union OneofFieldUnion {
  14515. OneofFieldUnion() {}
  14516. ::google::protobuf::uint32 oneof_uint32_;
  14517. ::protobuf_unittest::TestAllTypes* oneof_test_all_types_;
  14518. ::google::protobuf::internal::ArenaStringPtr oneof_string_;
  14519. ::google::protobuf::internal::ArenaStringPtr oneof_bytes_;
  14520. } oneof_field_;
  14521. ::google::protobuf::uint32 _oneof_case_[1];
  14522. friend struct ::protobuf_google_2fprotobuf_2funittest_2eproto::TableStruct;
  14523. };
  14524. // -------------------------------------------------------------------
  14525. class TestExtensionInsideTable : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:protobuf_unittest.TestExtensionInsideTable) */ {
  14526. public:
  14527. TestExtensionInsideTable();
  14528. virtual ~TestExtensionInsideTable();
  14529. TestExtensionInsideTable(const TestExtensionInsideTable& from);
  14530. inline TestExtensionInsideTable& operator=(const TestExtensionInsideTable& from) {
  14531. CopyFrom(from);
  14532. return *this;
  14533. }
  14534. #if LANG_CXX11
  14535. TestExtensionInsideTable(TestExtensionInsideTable&& from) noexcept
  14536. : TestExtensionInsideTable() {
  14537. *this = ::std::move(from);
  14538. }
  14539. inline TestExtensionInsideTable& operator=(TestExtensionInsideTable&& from) noexcept {
  14540. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  14541. if (this != &from) InternalSwap(&from);
  14542. } else {
  14543. CopyFrom(from);
  14544. }
  14545. return *this;
  14546. }
  14547. #endif
  14548. inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
  14549. return _internal_metadata_.unknown_fields();
  14550. }
  14551. inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
  14552. return _internal_metadata_.mutable_unknown_fields();
  14553. }
  14554. inline ::google::protobuf::Arena* GetArena() const final {
  14555. return GetArenaNoVirtual();
  14556. }
  14557. inline void* GetMaybeArenaPointer() const final {
  14558. return MaybeArenaPtr();
  14559. }
  14560. static const ::google::protobuf::Descriptor* descriptor();
  14561. static const TestExtensionInsideTable& default_instance();
  14562. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  14563. static inline const TestExtensionInsideTable* internal_default_instance() {
  14564. return reinterpret_cast<const TestExtensionInsideTable*>(
  14565. &_TestExtensionInsideTable_default_instance_);
  14566. }
  14567. static constexpr int kIndexInFileMessages =
  14568. 90;
  14569. void UnsafeArenaSwap(TestExtensionInsideTable* other);
  14570. void Swap(TestExtensionInsideTable* other);
  14571. friend void swap(TestExtensionInsideTable& a, TestExtensionInsideTable& b) {
  14572. a.Swap(&b);
  14573. }
  14574. // implements Message ----------------------------------------------
  14575. inline TestExtensionInsideTable* New() const final {
  14576. return CreateMaybeMessage<TestExtensionInsideTable>(NULL);
  14577. }
  14578. TestExtensionInsideTable* New(::google::protobuf::Arena* arena) const final {
  14579. return CreateMaybeMessage<TestExtensionInsideTable>(arena);
  14580. }
  14581. void CopyFrom(const ::google::protobuf::Message& from) final;
  14582. void MergeFrom(const ::google::protobuf::Message& from) final;
  14583. void CopyFrom(const TestExtensionInsideTable& from);
  14584. void MergeFrom(const TestExtensionInsideTable& from);
  14585. void Clear() final;
  14586. bool IsInitialized() const final;
  14587. size_t ByteSizeLong() const final;
  14588. bool MergePartialFromCodedStream(
  14589. ::google::protobuf::io::CodedInputStream* input) final;
  14590. void SerializeWithCachedSizes(
  14591. ::google::protobuf::io::CodedOutputStream* output) const final;
  14592. ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
  14593. bool deterministic, ::google::protobuf::uint8* target) const final;
  14594. int GetCachedSize() const final { return _cached_size_.Get(); }
  14595. private:
  14596. void SharedCtor();
  14597. void SharedDtor();
  14598. void SetCachedSize(int size) const final;
  14599. void InternalSwap(TestExtensionInsideTable* other);
  14600. protected:
  14601. explicit TestExtensionInsideTable(::google::protobuf::Arena* arena);
  14602. private:
  14603. static void ArenaDtor(void* object);
  14604. inline void RegisterArenaDtor(::google::protobuf::Arena* arena);
  14605. private:
  14606. inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
  14607. return _internal_metadata_.arena();
  14608. }
  14609. inline void* MaybeArenaPtr() const {
  14610. return _internal_metadata_.raw_arena_ptr();
  14611. }
  14612. public:
  14613. ::google::protobuf::Metadata GetMetadata() const final;
  14614. // nested types ----------------------------------------------------
  14615. // accessors -------------------------------------------------------
  14616. // optional int32 field1 = 1;
  14617. bool has_field1() const;
  14618. void clear_field1();
  14619. static const int kField1FieldNumber = 1;
  14620. ::google::protobuf::int32 field1() const;
  14621. void set_field1(::google::protobuf::int32 value);
  14622. // optional int32 field2 = 2;
  14623. bool has_field2() const;
  14624. void clear_field2();
  14625. static const int kField2FieldNumber = 2;
  14626. ::google::protobuf::int32 field2() const;
  14627. void set_field2(::google::protobuf::int32 value);
  14628. // optional int32 field3 = 3;
  14629. bool has_field3() const;
  14630. void clear_field3();
  14631. static const int kField3FieldNumber = 3;
  14632. ::google::protobuf::int32 field3() const;
  14633. void set_field3(::google::protobuf::int32 value);
  14634. // optional int32 field4 = 4;
  14635. bool has_field4() const;
  14636. void clear_field4();
  14637. static const int kField4FieldNumber = 4;
  14638. ::google::protobuf::int32 field4() const;
  14639. void set_field4(::google::protobuf::int32 value);
  14640. // optional int32 field6 = 6;
  14641. bool has_field6() const;
  14642. void clear_field6();
  14643. static const int kField6FieldNumber = 6;
  14644. ::google::protobuf::int32 field6() const;
  14645. void set_field6(::google::protobuf::int32 value);
  14646. // optional int32 field7 = 7;
  14647. bool has_field7() const;
  14648. void clear_field7();
  14649. static const int kField7FieldNumber = 7;
  14650. ::google::protobuf::int32 field7() const;
  14651. void set_field7(::google::protobuf::int32 value);
  14652. // optional int32 field8 = 8;
  14653. bool has_field8() const;
  14654. void clear_field8();
  14655. static const int kField8FieldNumber = 8;
  14656. ::google::protobuf::int32 field8() const;
  14657. void set_field8(::google::protobuf::int32 value);
  14658. // optional int32 field9 = 9;
  14659. bool has_field9() const;
  14660. void clear_field9();
  14661. static const int kField9FieldNumber = 9;
  14662. ::google::protobuf::int32 field9() const;
  14663. void set_field9(::google::protobuf::int32 value);
  14664. // optional int32 field10 = 10;
  14665. bool has_field10() const;
  14666. void clear_field10();
  14667. static const int kField10FieldNumber = 10;
  14668. ::google::protobuf::int32 field10() const;
  14669. void set_field10(::google::protobuf::int32 value);
  14670. GOOGLE_PROTOBUF_EXTENSION_ACCESSORS(TestExtensionInsideTable)
  14671. // @@protoc_insertion_point(class_scope:protobuf_unittest.TestExtensionInsideTable)
  14672. private:
  14673. void set_has_field1();
  14674. void clear_has_field1();
  14675. void set_has_field2();
  14676. void clear_has_field2();
  14677. void set_has_field3();
  14678. void clear_has_field3();
  14679. void set_has_field4();
  14680. void clear_has_field4();
  14681. void set_has_field6();
  14682. void clear_has_field6();
  14683. void set_has_field7();
  14684. void clear_has_field7();
  14685. void set_has_field8();
  14686. void clear_has_field8();
  14687. void set_has_field9();
  14688. void clear_has_field9();
  14689. void set_has_field10();
  14690. void clear_has_field10();
  14691. ::google::protobuf::internal::ExtensionSet _extensions_;
  14692. ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
  14693. template <typename T> friend class ::google::protobuf::Arena::InternalHelper;
  14694. typedef void InternalArenaConstructable_;
  14695. typedef void DestructorSkippable_;
  14696. ::google::protobuf::internal::HasBits<1> _has_bits_;
  14697. mutable ::google::protobuf::internal::CachedSize _cached_size_;
  14698. ::google::protobuf::int32 field1_;
  14699. ::google::protobuf::int32 field2_;
  14700. ::google::protobuf::int32 field3_;
  14701. ::google::protobuf::int32 field4_;
  14702. ::google::protobuf::int32 field6_;
  14703. ::google::protobuf::int32 field7_;
  14704. ::google::protobuf::int32 field8_;
  14705. ::google::protobuf::int32 field9_;
  14706. ::google::protobuf::int32 field10_;
  14707. friend struct ::protobuf_google_2fprotobuf_2funittest_2eproto::TableStruct;
  14708. };
  14709. // ===================================================================
  14710. class TestService_Stub;
  14711. class TestService : public ::google::protobuf::Service {
  14712. protected:
  14713. // This class should be treated as an abstract interface.
  14714. inline TestService() {};
  14715. public:
  14716. virtual ~TestService();
  14717. typedef TestService_Stub Stub;
  14718. static const ::google::protobuf::ServiceDescriptor* descriptor();
  14719. virtual void Foo(::google::protobuf::RpcController* controller,
  14720. const ::protobuf_unittest::FooRequest* request,
  14721. ::protobuf_unittest::FooResponse* response,
  14722. ::google::protobuf::Closure* done);
  14723. virtual void Bar(::google::protobuf::RpcController* controller,
  14724. const ::protobuf_unittest::BarRequest* request,
  14725. ::protobuf_unittest::BarResponse* response,
  14726. ::google::protobuf::Closure* done);
  14727. // implements Service ----------------------------------------------
  14728. const ::google::protobuf::ServiceDescriptor* GetDescriptor();
  14729. void CallMethod(const ::google::protobuf::MethodDescriptor* method,
  14730. ::google::protobuf::RpcController* controller,
  14731. const ::google::protobuf::Message* request,
  14732. ::google::protobuf::Message* response,
  14733. ::google::protobuf::Closure* done);
  14734. const ::google::protobuf::Message& GetRequestPrototype(
  14735. const ::google::protobuf::MethodDescriptor* method) const;
  14736. const ::google::protobuf::Message& GetResponsePrototype(
  14737. const ::google::protobuf::MethodDescriptor* method) const;
  14738. private:
  14739. GOOGLE_DISALLOW_EVIL_CONSTRUCTORS(TestService);
  14740. };
  14741. class TestService_Stub : public TestService {
  14742. public:
  14743. TestService_Stub(::google::protobuf::RpcChannel* channel);
  14744. TestService_Stub(::google::protobuf::RpcChannel* channel,
  14745. ::google::protobuf::Service::ChannelOwnership ownership);
  14746. ~TestService_Stub();
  14747. inline ::google::protobuf::RpcChannel* channel() { return channel_; }
  14748. // implements TestService ------------------------------------------
  14749. void Foo(::google::protobuf::RpcController* controller,
  14750. const ::protobuf_unittest::FooRequest* request,
  14751. ::protobuf_unittest::FooResponse* response,
  14752. ::google::protobuf::Closure* done);
  14753. void Bar(::google::protobuf::RpcController* controller,
  14754. const ::protobuf_unittest::BarRequest* request,
  14755. ::protobuf_unittest::BarResponse* response,
  14756. ::google::protobuf::Closure* done);
  14757. private:
  14758. ::google::protobuf::RpcChannel* channel_;
  14759. bool owns_channel_;
  14760. GOOGLE_DISALLOW_EVIL_CONSTRUCTORS(TestService_Stub);
  14761. };
  14762. // ===================================================================
  14763. static const int kOptionalInt32ExtensionFieldNumber = 1;
  14764. extern ::google::protobuf::internal::ExtensionIdentifier< ::protobuf_unittest::TestAllExtensions,
  14765. ::google::protobuf::internal::PrimitiveTypeTraits< ::google::protobuf::int32 >, 5, false >
  14766. optional_int32_extension;
  14767. static const int kOptionalInt64ExtensionFieldNumber = 2;
  14768. extern ::google::protobuf::internal::ExtensionIdentifier< ::protobuf_unittest::TestAllExtensions,
  14769. ::google::protobuf::internal::PrimitiveTypeTraits< ::google::protobuf::int64 >, 3, false >
  14770. optional_int64_extension;
  14771. static const int kOptionalUint32ExtensionFieldNumber = 3;
  14772. extern ::google::protobuf::internal::ExtensionIdentifier< ::protobuf_unittest::TestAllExtensions,
  14773. ::google::protobuf::internal::PrimitiveTypeTraits< ::google::protobuf::uint32 >, 13, false >
  14774. optional_uint32_extension;
  14775. static const int kOptionalUint64ExtensionFieldNumber = 4;
  14776. extern ::google::protobuf::internal::ExtensionIdentifier< ::protobuf_unittest::TestAllExtensions,
  14777. ::google::protobuf::internal::PrimitiveTypeTraits< ::google::protobuf::uint64 >, 4, false >
  14778. optional_uint64_extension;
  14779. static const int kOptionalSint32ExtensionFieldNumber = 5;
  14780. extern ::google::protobuf::internal::ExtensionIdentifier< ::protobuf_unittest::TestAllExtensions,
  14781. ::google::protobuf::internal::PrimitiveTypeTraits< ::google::protobuf::int32 >, 17, false >
  14782. optional_sint32_extension;
  14783. static const int kOptionalSint64ExtensionFieldNumber = 6;
  14784. extern ::google::protobuf::internal::ExtensionIdentifier< ::protobuf_unittest::TestAllExtensions,
  14785. ::google::protobuf::internal::PrimitiveTypeTraits< ::google::protobuf::int64 >, 18, false >
  14786. optional_sint64_extension;
  14787. static const int kOptionalFixed32ExtensionFieldNumber = 7;
  14788. extern ::google::protobuf::internal::ExtensionIdentifier< ::protobuf_unittest::TestAllExtensions,
  14789. ::google::protobuf::internal::PrimitiveTypeTraits< ::google::protobuf::uint32 >, 7, false >
  14790. optional_fixed32_extension;
  14791. static const int kOptionalFixed64ExtensionFieldNumber = 8;
  14792. extern ::google::protobuf::internal::ExtensionIdentifier< ::protobuf_unittest::TestAllExtensions,
  14793. ::google::protobuf::internal::PrimitiveTypeTraits< ::google::protobuf::uint64 >, 6, false >
  14794. optional_fixed64_extension;
  14795. static const int kOptionalSfixed32ExtensionFieldNumber = 9;
  14796. extern ::google::protobuf::internal::ExtensionIdentifier< ::protobuf_unittest::TestAllExtensions,
  14797. ::google::protobuf::internal::PrimitiveTypeTraits< ::google::protobuf::int32 >, 15, false >
  14798. optional_sfixed32_extension;
  14799. static const int kOptionalSfixed64ExtensionFieldNumber = 10;
  14800. extern ::google::protobuf::internal::ExtensionIdentifier< ::protobuf_unittest::TestAllExtensions,
  14801. ::google::protobuf::internal::PrimitiveTypeTraits< ::google::protobuf::int64 >, 16, false >
  14802. optional_sfixed64_extension;
  14803. static const int kOptionalFloatExtensionFieldNumber = 11;
  14804. extern ::google::protobuf::internal::ExtensionIdentifier< ::protobuf_unittest::TestAllExtensions,
  14805. ::google::protobuf::internal::PrimitiveTypeTraits< float >, 2, false >
  14806. optional_float_extension;
  14807. static const int kOptionalDoubleExtensionFieldNumber = 12;
  14808. extern ::google::protobuf::internal::ExtensionIdentifier< ::protobuf_unittest::TestAllExtensions,
  14809. ::google::protobuf::internal::PrimitiveTypeTraits< double >, 1, false >
  14810. optional_double_extension;
  14811. static const int kOptionalBoolExtensionFieldNumber = 13;
  14812. extern ::google::protobuf::internal::ExtensionIdentifier< ::protobuf_unittest::TestAllExtensions,
  14813. ::google::protobuf::internal::PrimitiveTypeTraits< bool >, 8, false >
  14814. optional_bool_extension;
  14815. static const int kOptionalStringExtensionFieldNumber = 14;
  14816. extern ::google::protobuf::internal::ExtensionIdentifier< ::protobuf_unittest::TestAllExtensions,
  14817. ::google::protobuf::internal::StringTypeTraits, 9, false >
  14818. optional_string_extension;
  14819. static const int kOptionalBytesExtensionFieldNumber = 15;
  14820. extern ::google::protobuf::internal::ExtensionIdentifier< ::protobuf_unittest::TestAllExtensions,
  14821. ::google::protobuf::internal::StringTypeTraits, 12, false >
  14822. optional_bytes_extension;
  14823. static const int kOptionalgroupExtensionFieldNumber = 16;
  14824. extern ::google::protobuf::internal::ExtensionIdentifier< ::protobuf_unittest::TestAllExtensions,
  14825. ::google::protobuf::internal::MessageTypeTraits< ::protobuf_unittest::OptionalGroup_extension >, 10, false >
  14826. optionalgroup_extension;
  14827. static const int kOptionalNestedMessageExtensionFieldNumber = 18;
  14828. extern ::google::protobuf::internal::ExtensionIdentifier< ::protobuf_unittest::TestAllExtensions,
  14829. ::google::protobuf::internal::MessageTypeTraits< ::protobuf_unittest::TestAllTypes_NestedMessage >, 11, false >
  14830. optional_nested_message_extension;
  14831. static const int kOptionalForeignMessageExtensionFieldNumber = 19;
  14832. extern ::google::protobuf::internal::ExtensionIdentifier< ::protobuf_unittest::TestAllExtensions,
  14833. ::google::protobuf::internal::MessageTypeTraits< ::protobuf_unittest::ForeignMessage >, 11, false >
  14834. optional_foreign_message_extension;
  14835. static const int kOptionalImportMessageExtensionFieldNumber = 20;
  14836. extern ::google::protobuf::internal::ExtensionIdentifier< ::protobuf_unittest::TestAllExtensions,
  14837. ::google::protobuf::internal::MessageTypeTraits< ::protobuf_unittest_import::ImportMessage >, 11, false >
  14838. optional_import_message_extension;
  14839. static const int kOptionalNestedEnumExtensionFieldNumber = 21;
  14840. extern ::google::protobuf::internal::ExtensionIdentifier< ::protobuf_unittest::TestAllExtensions,
  14841. ::google::protobuf::internal::EnumTypeTraits< ::protobuf_unittest::TestAllTypes_NestedEnum, ::protobuf_unittest::TestAllTypes_NestedEnum_IsValid>, 14, false >
  14842. optional_nested_enum_extension;
  14843. static const int kOptionalForeignEnumExtensionFieldNumber = 22;
  14844. extern ::google::protobuf::internal::ExtensionIdentifier< ::protobuf_unittest::TestAllExtensions,
  14845. ::google::protobuf::internal::EnumTypeTraits< ::protobuf_unittest::ForeignEnum, ::protobuf_unittest::ForeignEnum_IsValid>, 14, false >
  14846. optional_foreign_enum_extension;
  14847. static const int kOptionalImportEnumExtensionFieldNumber = 23;
  14848. extern ::google::protobuf::internal::ExtensionIdentifier< ::protobuf_unittest::TestAllExtensions,
  14849. ::google::protobuf::internal::EnumTypeTraits< ::protobuf_unittest_import::ImportEnum, ::protobuf_unittest_import::ImportEnum_IsValid>, 14, false >
  14850. optional_import_enum_extension;
  14851. static const int kOptionalStringPieceExtensionFieldNumber = 24;
  14852. extern ::google::protobuf::internal::ExtensionIdentifier< ::protobuf_unittest::TestAllExtensions,
  14853. ::google::protobuf::internal::StringTypeTraits, 9, false >
  14854. optional_string_piece_extension;
  14855. static const int kOptionalCordExtensionFieldNumber = 25;
  14856. extern ::google::protobuf::internal::ExtensionIdentifier< ::protobuf_unittest::TestAllExtensions,
  14857. ::google::protobuf::internal::StringTypeTraits, 9, false >
  14858. optional_cord_extension;
  14859. static const int kOptionalPublicImportMessageExtensionFieldNumber = 26;
  14860. extern ::google::protobuf::internal::ExtensionIdentifier< ::protobuf_unittest::TestAllExtensions,
  14861. ::google::protobuf::internal::MessageTypeTraits< ::protobuf_unittest_import::PublicImportMessage >, 11, false >
  14862. optional_public_import_message_extension;
  14863. static const int kOptionalLazyMessageExtensionFieldNumber = 27;
  14864. extern ::google::protobuf::internal::ExtensionIdentifier< ::protobuf_unittest::TestAllExtensions,
  14865. ::google::protobuf::internal::MessageTypeTraits< ::protobuf_unittest::TestAllTypes_NestedMessage >, 11, false >
  14866. optional_lazy_message_extension;
  14867. static const int kRepeatedInt32ExtensionFieldNumber = 31;
  14868. extern ::google::protobuf::internal::ExtensionIdentifier< ::protobuf_unittest::TestAllExtensions,
  14869. ::google::protobuf::internal::RepeatedPrimitiveTypeTraits< ::google::protobuf::int32 >, 5, false >
  14870. repeated_int32_extension;
  14871. static const int kRepeatedInt64ExtensionFieldNumber = 32;
  14872. extern ::google::protobuf::internal::ExtensionIdentifier< ::protobuf_unittest::TestAllExtensions,
  14873. ::google::protobuf::internal::RepeatedPrimitiveTypeTraits< ::google::protobuf::int64 >, 3, false >
  14874. repeated_int64_extension;
  14875. static const int kRepeatedUint32ExtensionFieldNumber = 33;
  14876. extern ::google::protobuf::internal::ExtensionIdentifier< ::protobuf_unittest::TestAllExtensions,
  14877. ::google::protobuf::internal::RepeatedPrimitiveTypeTraits< ::google::protobuf::uint32 >, 13, false >
  14878. repeated_uint32_extension;
  14879. static const int kRepeatedUint64ExtensionFieldNumber = 34;
  14880. extern ::google::protobuf::internal::ExtensionIdentifier< ::protobuf_unittest::TestAllExtensions,
  14881. ::google::protobuf::internal::RepeatedPrimitiveTypeTraits< ::google::protobuf::uint64 >, 4, false >
  14882. repeated_uint64_extension;
  14883. static const int kRepeatedSint32ExtensionFieldNumber = 35;
  14884. extern ::google::protobuf::internal::ExtensionIdentifier< ::protobuf_unittest::TestAllExtensions,
  14885. ::google::protobuf::internal::RepeatedPrimitiveTypeTraits< ::google::protobuf::int32 >, 17, false >
  14886. repeated_sint32_extension;
  14887. static const int kRepeatedSint64ExtensionFieldNumber = 36;
  14888. extern ::google::protobuf::internal::ExtensionIdentifier< ::protobuf_unittest::TestAllExtensions,
  14889. ::google::protobuf::internal::RepeatedPrimitiveTypeTraits< ::google::protobuf::int64 >, 18, false >
  14890. repeated_sint64_extension;
  14891. static const int kRepeatedFixed32ExtensionFieldNumber = 37;
  14892. extern ::google::protobuf::internal::ExtensionIdentifier< ::protobuf_unittest::TestAllExtensions,
  14893. ::google::protobuf::internal::RepeatedPrimitiveTypeTraits< ::google::protobuf::uint32 >, 7, false >
  14894. repeated_fixed32_extension;
  14895. static const int kRepeatedFixed64ExtensionFieldNumber = 38;
  14896. extern ::google::protobuf::internal::ExtensionIdentifier< ::protobuf_unittest::TestAllExtensions,
  14897. ::google::protobuf::internal::RepeatedPrimitiveTypeTraits< ::google::protobuf::uint64 >, 6, false >
  14898. repeated_fixed64_extension;
  14899. static const int kRepeatedSfixed32ExtensionFieldNumber = 39;
  14900. extern ::google::protobuf::internal::ExtensionIdentifier< ::protobuf_unittest::TestAllExtensions,
  14901. ::google::protobuf::internal::RepeatedPrimitiveTypeTraits< ::google::protobuf::int32 >, 15, false >
  14902. repeated_sfixed32_extension;
  14903. static const int kRepeatedSfixed64ExtensionFieldNumber = 40;
  14904. extern ::google::protobuf::internal::ExtensionIdentifier< ::protobuf_unittest::TestAllExtensions,
  14905. ::google::protobuf::internal::RepeatedPrimitiveTypeTraits< ::google::protobuf::int64 >, 16, false >
  14906. repeated_sfixed64_extension;
  14907. static const int kRepeatedFloatExtensionFieldNumber = 41;
  14908. extern ::google::protobuf::internal::ExtensionIdentifier< ::protobuf_unittest::TestAllExtensions,
  14909. ::google::protobuf::internal::RepeatedPrimitiveTypeTraits< float >, 2, false >
  14910. repeated_float_extension;
  14911. static const int kRepeatedDoubleExtensionFieldNumber = 42;
  14912. extern ::google::protobuf::internal::ExtensionIdentifier< ::protobuf_unittest::TestAllExtensions,
  14913. ::google::protobuf::internal::RepeatedPrimitiveTypeTraits< double >, 1, false >
  14914. repeated_double_extension;
  14915. static const int kRepeatedBoolExtensionFieldNumber = 43;
  14916. extern ::google::protobuf::internal::ExtensionIdentifier< ::protobuf_unittest::TestAllExtensions,
  14917. ::google::protobuf::internal::RepeatedPrimitiveTypeTraits< bool >, 8, false >
  14918. repeated_bool_extension;
  14919. static const int kRepeatedStringExtensionFieldNumber = 44;
  14920. extern ::google::protobuf::internal::ExtensionIdentifier< ::protobuf_unittest::TestAllExtensions,
  14921. ::google::protobuf::internal::RepeatedStringTypeTraits, 9, false >
  14922. repeated_string_extension;
  14923. static const int kRepeatedBytesExtensionFieldNumber = 45;
  14924. extern ::google::protobuf::internal::ExtensionIdentifier< ::protobuf_unittest::TestAllExtensions,
  14925. ::google::protobuf::internal::RepeatedStringTypeTraits, 12, false >
  14926. repeated_bytes_extension;
  14927. static const int kRepeatedgroupExtensionFieldNumber = 46;
  14928. extern ::google::protobuf::internal::ExtensionIdentifier< ::protobuf_unittest::TestAllExtensions,
  14929. ::google::protobuf::internal::RepeatedMessageTypeTraits< ::protobuf_unittest::RepeatedGroup_extension >, 10, false >
  14930. repeatedgroup_extension;
  14931. static const int kRepeatedNestedMessageExtensionFieldNumber = 48;
  14932. extern ::google::protobuf::internal::ExtensionIdentifier< ::protobuf_unittest::TestAllExtensions,
  14933. ::google::protobuf::internal::RepeatedMessageTypeTraits< ::protobuf_unittest::TestAllTypes_NestedMessage >, 11, false >
  14934. repeated_nested_message_extension;
  14935. static const int kRepeatedForeignMessageExtensionFieldNumber = 49;
  14936. extern ::google::protobuf::internal::ExtensionIdentifier< ::protobuf_unittest::TestAllExtensions,
  14937. ::google::protobuf::internal::RepeatedMessageTypeTraits< ::protobuf_unittest::ForeignMessage >, 11, false >
  14938. repeated_foreign_message_extension;
  14939. static const int kRepeatedImportMessageExtensionFieldNumber = 50;
  14940. extern ::google::protobuf::internal::ExtensionIdentifier< ::protobuf_unittest::TestAllExtensions,
  14941. ::google::protobuf::internal::RepeatedMessageTypeTraits< ::protobuf_unittest_import::ImportMessage >, 11, false >
  14942. repeated_import_message_extension;
  14943. static const int kRepeatedNestedEnumExtensionFieldNumber = 51;
  14944. extern ::google::protobuf::internal::ExtensionIdentifier< ::protobuf_unittest::TestAllExtensions,
  14945. ::google::protobuf::internal::RepeatedEnumTypeTraits< ::protobuf_unittest::TestAllTypes_NestedEnum, ::protobuf_unittest::TestAllTypes_NestedEnum_IsValid>, 14, false >
  14946. repeated_nested_enum_extension;
  14947. static const int kRepeatedForeignEnumExtensionFieldNumber = 52;
  14948. extern ::google::protobuf::internal::ExtensionIdentifier< ::protobuf_unittest::TestAllExtensions,
  14949. ::google::protobuf::internal::RepeatedEnumTypeTraits< ::protobuf_unittest::ForeignEnum, ::protobuf_unittest::ForeignEnum_IsValid>, 14, false >
  14950. repeated_foreign_enum_extension;
  14951. static const int kRepeatedImportEnumExtensionFieldNumber = 53;
  14952. extern ::google::protobuf::internal::ExtensionIdentifier< ::protobuf_unittest::TestAllExtensions,
  14953. ::google::protobuf::internal::RepeatedEnumTypeTraits< ::protobuf_unittest_import::ImportEnum, ::protobuf_unittest_import::ImportEnum_IsValid>, 14, false >
  14954. repeated_import_enum_extension;
  14955. static const int kRepeatedStringPieceExtensionFieldNumber = 54;
  14956. extern ::google::protobuf::internal::ExtensionIdentifier< ::protobuf_unittest::TestAllExtensions,
  14957. ::google::protobuf::internal::RepeatedStringTypeTraits, 9, false >
  14958. repeated_string_piece_extension;
  14959. static const int kRepeatedCordExtensionFieldNumber = 55;
  14960. extern ::google::protobuf::internal::ExtensionIdentifier< ::protobuf_unittest::TestAllExtensions,
  14961. ::google::protobuf::internal::RepeatedStringTypeTraits, 9, false >
  14962. repeated_cord_extension;
  14963. static const int kRepeatedLazyMessageExtensionFieldNumber = 57;
  14964. extern ::google::protobuf::internal::ExtensionIdentifier< ::protobuf_unittest::TestAllExtensions,
  14965. ::google::protobuf::internal::RepeatedMessageTypeTraits< ::protobuf_unittest::TestAllTypes_NestedMessage >, 11, false >
  14966. repeated_lazy_message_extension;
  14967. static const int kDefaultInt32ExtensionFieldNumber = 61;
  14968. extern ::google::protobuf::internal::ExtensionIdentifier< ::protobuf_unittest::TestAllExtensions,
  14969. ::google::protobuf::internal::PrimitiveTypeTraits< ::google::protobuf::int32 >, 5, false >
  14970. default_int32_extension;
  14971. static const int kDefaultInt64ExtensionFieldNumber = 62;
  14972. extern ::google::protobuf::internal::ExtensionIdentifier< ::protobuf_unittest::TestAllExtensions,
  14973. ::google::protobuf::internal::PrimitiveTypeTraits< ::google::protobuf::int64 >, 3, false >
  14974. default_int64_extension;
  14975. static const int kDefaultUint32ExtensionFieldNumber = 63;
  14976. extern ::google::protobuf::internal::ExtensionIdentifier< ::protobuf_unittest::TestAllExtensions,
  14977. ::google::protobuf::internal::PrimitiveTypeTraits< ::google::protobuf::uint32 >, 13, false >
  14978. default_uint32_extension;
  14979. static const int kDefaultUint64ExtensionFieldNumber = 64;
  14980. extern ::google::protobuf::internal::ExtensionIdentifier< ::protobuf_unittest::TestAllExtensions,
  14981. ::google::protobuf::internal::PrimitiveTypeTraits< ::google::protobuf::uint64 >, 4, false >
  14982. default_uint64_extension;
  14983. static const int kDefaultSint32ExtensionFieldNumber = 65;
  14984. extern ::google::protobuf::internal::ExtensionIdentifier< ::protobuf_unittest::TestAllExtensions,
  14985. ::google::protobuf::internal::PrimitiveTypeTraits< ::google::protobuf::int32 >, 17, false >
  14986. default_sint32_extension;
  14987. static const int kDefaultSint64ExtensionFieldNumber = 66;
  14988. extern ::google::protobuf::internal::ExtensionIdentifier< ::protobuf_unittest::TestAllExtensions,
  14989. ::google::protobuf::internal::PrimitiveTypeTraits< ::google::protobuf::int64 >, 18, false >
  14990. default_sint64_extension;
  14991. static const int kDefaultFixed32ExtensionFieldNumber = 67;
  14992. extern ::google::protobuf::internal::ExtensionIdentifier< ::protobuf_unittest::TestAllExtensions,
  14993. ::google::protobuf::internal::PrimitiveTypeTraits< ::google::protobuf::uint32 >, 7, false >
  14994. default_fixed32_extension;
  14995. static const int kDefaultFixed64ExtensionFieldNumber = 68;
  14996. extern ::google::protobuf::internal::ExtensionIdentifier< ::protobuf_unittest::TestAllExtensions,
  14997. ::google::protobuf::internal::PrimitiveTypeTraits< ::google::protobuf::uint64 >, 6, false >
  14998. default_fixed64_extension;
  14999. static const int kDefaultSfixed32ExtensionFieldNumber = 69;
  15000. extern ::google::protobuf::internal::ExtensionIdentifier< ::protobuf_unittest::TestAllExtensions,
  15001. ::google::protobuf::internal::PrimitiveTypeTraits< ::google::protobuf::int32 >, 15, false >
  15002. default_sfixed32_extension;
  15003. static const int kDefaultSfixed64ExtensionFieldNumber = 70;
  15004. extern ::google::protobuf::internal::ExtensionIdentifier< ::protobuf_unittest::TestAllExtensions,
  15005. ::google::protobuf::internal::PrimitiveTypeTraits< ::google::protobuf::int64 >, 16, false >
  15006. default_sfixed64_extension;
  15007. static const int kDefaultFloatExtensionFieldNumber = 71;
  15008. extern ::google::protobuf::internal::ExtensionIdentifier< ::protobuf_unittest::TestAllExtensions,
  15009. ::google::protobuf::internal::PrimitiveTypeTraits< float >, 2, false >
  15010. default_float_extension;
  15011. static const int kDefaultDoubleExtensionFieldNumber = 72;
  15012. extern ::google::protobuf::internal::ExtensionIdentifier< ::protobuf_unittest::TestAllExtensions,
  15013. ::google::protobuf::internal::PrimitiveTypeTraits< double >, 1, false >
  15014. default_double_extension;
  15015. static const int kDefaultBoolExtensionFieldNumber = 73;
  15016. extern ::google::protobuf::internal::ExtensionIdentifier< ::protobuf_unittest::TestAllExtensions,
  15017. ::google::protobuf::internal::PrimitiveTypeTraits< bool >, 8, false >
  15018. default_bool_extension;
  15019. static const int kDefaultStringExtensionFieldNumber = 74;
  15020. extern ::google::protobuf::internal::ExtensionIdentifier< ::protobuf_unittest::TestAllExtensions,
  15021. ::google::protobuf::internal::StringTypeTraits, 9, false >
  15022. default_string_extension;
  15023. static const int kDefaultBytesExtensionFieldNumber = 75;
  15024. extern ::google::protobuf::internal::ExtensionIdentifier< ::protobuf_unittest::TestAllExtensions,
  15025. ::google::protobuf::internal::StringTypeTraits, 12, false >
  15026. default_bytes_extension;
  15027. static const int kDefaultNestedEnumExtensionFieldNumber = 81;
  15028. extern ::google::protobuf::internal::ExtensionIdentifier< ::protobuf_unittest::TestAllExtensions,
  15029. ::google::protobuf::internal::EnumTypeTraits< ::protobuf_unittest::TestAllTypes_NestedEnum, ::protobuf_unittest::TestAllTypes_NestedEnum_IsValid>, 14, false >
  15030. default_nested_enum_extension;
  15031. static const int kDefaultForeignEnumExtensionFieldNumber = 82;
  15032. extern ::google::protobuf::internal::ExtensionIdentifier< ::protobuf_unittest::TestAllExtensions,
  15033. ::google::protobuf::internal::EnumTypeTraits< ::protobuf_unittest::ForeignEnum, ::protobuf_unittest::ForeignEnum_IsValid>, 14, false >
  15034. default_foreign_enum_extension;
  15035. static const int kDefaultImportEnumExtensionFieldNumber = 83;
  15036. extern ::google::protobuf::internal::ExtensionIdentifier< ::protobuf_unittest::TestAllExtensions,
  15037. ::google::protobuf::internal::EnumTypeTraits< ::protobuf_unittest_import::ImportEnum, ::protobuf_unittest_import::ImportEnum_IsValid>, 14, false >
  15038. default_import_enum_extension;
  15039. static const int kDefaultStringPieceExtensionFieldNumber = 84;
  15040. extern ::google::protobuf::internal::ExtensionIdentifier< ::protobuf_unittest::TestAllExtensions,
  15041. ::google::protobuf::internal::StringTypeTraits, 9, false >
  15042. default_string_piece_extension;
  15043. static const int kDefaultCordExtensionFieldNumber = 85;
  15044. extern ::google::protobuf::internal::ExtensionIdentifier< ::protobuf_unittest::TestAllExtensions,
  15045. ::google::protobuf::internal::StringTypeTraits, 9, false >
  15046. default_cord_extension;
  15047. static const int kOneofUint32ExtensionFieldNumber = 111;
  15048. extern ::google::protobuf::internal::ExtensionIdentifier< ::protobuf_unittest::TestAllExtensions,
  15049. ::google::protobuf::internal::PrimitiveTypeTraits< ::google::protobuf::uint32 >, 13, false >
  15050. oneof_uint32_extension;
  15051. static const int kOneofNestedMessageExtensionFieldNumber = 112;
  15052. extern ::google::protobuf::internal::ExtensionIdentifier< ::protobuf_unittest::TestAllExtensions,
  15053. ::google::protobuf::internal::MessageTypeTraits< ::protobuf_unittest::TestAllTypes_NestedMessage >, 11, false >
  15054. oneof_nested_message_extension;
  15055. static const int kOneofStringExtensionFieldNumber = 113;
  15056. extern ::google::protobuf::internal::ExtensionIdentifier< ::protobuf_unittest::TestAllExtensions,
  15057. ::google::protobuf::internal::StringTypeTraits, 9, false >
  15058. oneof_string_extension;
  15059. static const int kOneofBytesExtensionFieldNumber = 114;
  15060. extern ::google::protobuf::internal::ExtensionIdentifier< ::protobuf_unittest::TestAllExtensions,
  15061. ::google::protobuf::internal::StringTypeTraits, 12, false >
  15062. oneof_bytes_extension;
  15063. static const int kMyExtensionStringFieldNumber = 50;
  15064. extern ::google::protobuf::internal::ExtensionIdentifier< ::protobuf_unittest::TestFieldOrderings,
  15065. ::google::protobuf::internal::StringTypeTraits, 9, false >
  15066. my_extension_string;
  15067. static const int kMyExtensionIntFieldNumber = 5;
  15068. extern ::google::protobuf::internal::ExtensionIdentifier< ::protobuf_unittest::TestFieldOrderings,
  15069. ::google::protobuf::internal::PrimitiveTypeTraits< ::google::protobuf::int32 >, 5, false >
  15070. my_extension_int;
  15071. static const int kPackedInt32ExtensionFieldNumber = 90;
  15072. extern ::google::protobuf::internal::ExtensionIdentifier< ::protobuf_unittest::TestPackedExtensions,
  15073. ::google::protobuf::internal::RepeatedPrimitiveTypeTraits< ::google::protobuf::int32 >, 5, true >
  15074. packed_int32_extension;
  15075. static const int kPackedInt64ExtensionFieldNumber = 91;
  15076. extern ::google::protobuf::internal::ExtensionIdentifier< ::protobuf_unittest::TestPackedExtensions,
  15077. ::google::protobuf::internal::RepeatedPrimitiveTypeTraits< ::google::protobuf::int64 >, 3, true >
  15078. packed_int64_extension;
  15079. static const int kPackedUint32ExtensionFieldNumber = 92;
  15080. extern ::google::protobuf::internal::ExtensionIdentifier< ::protobuf_unittest::TestPackedExtensions,
  15081. ::google::protobuf::internal::RepeatedPrimitiveTypeTraits< ::google::protobuf::uint32 >, 13, true >
  15082. packed_uint32_extension;
  15083. static const int kPackedUint64ExtensionFieldNumber = 93;
  15084. extern ::google::protobuf::internal::ExtensionIdentifier< ::protobuf_unittest::TestPackedExtensions,
  15085. ::google::protobuf::internal::RepeatedPrimitiveTypeTraits< ::google::protobuf::uint64 >, 4, true >
  15086. packed_uint64_extension;
  15087. static const int kPackedSint32ExtensionFieldNumber = 94;
  15088. extern ::google::protobuf::internal::ExtensionIdentifier< ::protobuf_unittest::TestPackedExtensions,
  15089. ::google::protobuf::internal::RepeatedPrimitiveTypeTraits< ::google::protobuf::int32 >, 17, true >
  15090. packed_sint32_extension;
  15091. static const int kPackedSint64ExtensionFieldNumber = 95;
  15092. extern ::google::protobuf::internal::ExtensionIdentifier< ::protobuf_unittest::TestPackedExtensions,
  15093. ::google::protobuf::internal::RepeatedPrimitiveTypeTraits< ::google::protobuf::int64 >, 18, true >
  15094. packed_sint64_extension;
  15095. static const int kPackedFixed32ExtensionFieldNumber = 96;
  15096. extern ::google::protobuf::internal::ExtensionIdentifier< ::protobuf_unittest::TestPackedExtensions,
  15097. ::google::protobuf::internal::RepeatedPrimitiveTypeTraits< ::google::protobuf::uint32 >, 7, true >
  15098. packed_fixed32_extension;
  15099. static const int kPackedFixed64ExtensionFieldNumber = 97;
  15100. extern ::google::protobuf::internal::ExtensionIdentifier< ::protobuf_unittest::TestPackedExtensions,
  15101. ::google::protobuf::internal::RepeatedPrimitiveTypeTraits< ::google::protobuf::uint64 >, 6, true >
  15102. packed_fixed64_extension;
  15103. static const int kPackedSfixed32ExtensionFieldNumber = 98;
  15104. extern ::google::protobuf::internal::ExtensionIdentifier< ::protobuf_unittest::TestPackedExtensions,
  15105. ::google::protobuf::internal::RepeatedPrimitiveTypeTraits< ::google::protobuf::int32 >, 15, true >
  15106. packed_sfixed32_extension;
  15107. static const int kPackedSfixed64ExtensionFieldNumber = 99;
  15108. extern ::google::protobuf::internal::ExtensionIdentifier< ::protobuf_unittest::TestPackedExtensions,
  15109. ::google::protobuf::internal::RepeatedPrimitiveTypeTraits< ::google::protobuf::int64 >, 16, true >
  15110. packed_sfixed64_extension;
  15111. static const int kPackedFloatExtensionFieldNumber = 100;
  15112. extern ::google::protobuf::internal::ExtensionIdentifier< ::protobuf_unittest::TestPackedExtensions,
  15113. ::google::protobuf::internal::RepeatedPrimitiveTypeTraits< float >, 2, true >
  15114. packed_float_extension;
  15115. static const int kPackedDoubleExtensionFieldNumber = 101;
  15116. extern ::google::protobuf::internal::ExtensionIdentifier< ::protobuf_unittest::TestPackedExtensions,
  15117. ::google::protobuf::internal::RepeatedPrimitiveTypeTraits< double >, 1, true >
  15118. packed_double_extension;
  15119. static const int kPackedBoolExtensionFieldNumber = 102;
  15120. extern ::google::protobuf::internal::ExtensionIdentifier< ::protobuf_unittest::TestPackedExtensions,
  15121. ::google::protobuf::internal::RepeatedPrimitiveTypeTraits< bool >, 8, true >
  15122. packed_bool_extension;
  15123. static const int kPackedEnumExtensionFieldNumber = 103;
  15124. extern ::google::protobuf::internal::ExtensionIdentifier< ::protobuf_unittest::TestPackedExtensions,
  15125. ::google::protobuf::internal::RepeatedEnumTypeTraits< ::protobuf_unittest::ForeignEnum, ::protobuf_unittest::ForeignEnum_IsValid>, 14, true >
  15126. packed_enum_extension;
  15127. static const int kUnpackedInt32ExtensionFieldNumber = 90;
  15128. extern ::google::protobuf::internal::ExtensionIdentifier< ::protobuf_unittest::TestUnpackedExtensions,
  15129. ::google::protobuf::internal::RepeatedPrimitiveTypeTraits< ::google::protobuf::int32 >, 5, false >
  15130. unpacked_int32_extension;
  15131. static const int kUnpackedInt64ExtensionFieldNumber = 91;
  15132. extern ::google::protobuf::internal::ExtensionIdentifier< ::protobuf_unittest::TestUnpackedExtensions,
  15133. ::google::protobuf::internal::RepeatedPrimitiveTypeTraits< ::google::protobuf::int64 >, 3, false >
  15134. unpacked_int64_extension;
  15135. static const int kUnpackedUint32ExtensionFieldNumber = 92;
  15136. extern ::google::protobuf::internal::ExtensionIdentifier< ::protobuf_unittest::TestUnpackedExtensions,
  15137. ::google::protobuf::internal::RepeatedPrimitiveTypeTraits< ::google::protobuf::uint32 >, 13, false >
  15138. unpacked_uint32_extension;
  15139. static const int kUnpackedUint64ExtensionFieldNumber = 93;
  15140. extern ::google::protobuf::internal::ExtensionIdentifier< ::protobuf_unittest::TestUnpackedExtensions,
  15141. ::google::protobuf::internal::RepeatedPrimitiveTypeTraits< ::google::protobuf::uint64 >, 4, false >
  15142. unpacked_uint64_extension;
  15143. static const int kUnpackedSint32ExtensionFieldNumber = 94;
  15144. extern ::google::protobuf::internal::ExtensionIdentifier< ::protobuf_unittest::TestUnpackedExtensions,
  15145. ::google::protobuf::internal::RepeatedPrimitiveTypeTraits< ::google::protobuf::int32 >, 17, false >
  15146. unpacked_sint32_extension;
  15147. static const int kUnpackedSint64ExtensionFieldNumber = 95;
  15148. extern ::google::protobuf::internal::ExtensionIdentifier< ::protobuf_unittest::TestUnpackedExtensions,
  15149. ::google::protobuf::internal::RepeatedPrimitiveTypeTraits< ::google::protobuf::int64 >, 18, false >
  15150. unpacked_sint64_extension;
  15151. static const int kUnpackedFixed32ExtensionFieldNumber = 96;
  15152. extern ::google::protobuf::internal::ExtensionIdentifier< ::protobuf_unittest::TestUnpackedExtensions,
  15153. ::google::protobuf::internal::RepeatedPrimitiveTypeTraits< ::google::protobuf::uint32 >, 7, false >
  15154. unpacked_fixed32_extension;
  15155. static const int kUnpackedFixed64ExtensionFieldNumber = 97;
  15156. extern ::google::protobuf::internal::ExtensionIdentifier< ::protobuf_unittest::TestUnpackedExtensions,
  15157. ::google::protobuf::internal::RepeatedPrimitiveTypeTraits< ::google::protobuf::uint64 >, 6, false >
  15158. unpacked_fixed64_extension;
  15159. static const int kUnpackedSfixed32ExtensionFieldNumber = 98;
  15160. extern ::google::protobuf::internal::ExtensionIdentifier< ::protobuf_unittest::TestUnpackedExtensions,
  15161. ::google::protobuf::internal::RepeatedPrimitiveTypeTraits< ::google::protobuf::int32 >, 15, false >
  15162. unpacked_sfixed32_extension;
  15163. static const int kUnpackedSfixed64ExtensionFieldNumber = 99;
  15164. extern ::google::protobuf::internal::ExtensionIdentifier< ::protobuf_unittest::TestUnpackedExtensions,
  15165. ::google::protobuf::internal::RepeatedPrimitiveTypeTraits< ::google::protobuf::int64 >, 16, false >
  15166. unpacked_sfixed64_extension;
  15167. static const int kUnpackedFloatExtensionFieldNumber = 100;
  15168. extern ::google::protobuf::internal::ExtensionIdentifier< ::protobuf_unittest::TestUnpackedExtensions,
  15169. ::google::protobuf::internal::RepeatedPrimitiveTypeTraits< float >, 2, false >
  15170. unpacked_float_extension;
  15171. static const int kUnpackedDoubleExtensionFieldNumber = 101;
  15172. extern ::google::protobuf::internal::ExtensionIdentifier< ::protobuf_unittest::TestUnpackedExtensions,
  15173. ::google::protobuf::internal::RepeatedPrimitiveTypeTraits< double >, 1, false >
  15174. unpacked_double_extension;
  15175. static const int kUnpackedBoolExtensionFieldNumber = 102;
  15176. extern ::google::protobuf::internal::ExtensionIdentifier< ::protobuf_unittest::TestUnpackedExtensions,
  15177. ::google::protobuf::internal::RepeatedPrimitiveTypeTraits< bool >, 8, false >
  15178. unpacked_bool_extension;
  15179. static const int kUnpackedEnumExtensionFieldNumber = 103;
  15180. extern ::google::protobuf::internal::ExtensionIdentifier< ::protobuf_unittest::TestUnpackedExtensions,
  15181. ::google::protobuf::internal::RepeatedEnumTypeTraits< ::protobuf_unittest::ForeignEnum, ::protobuf_unittest::ForeignEnum_IsValid>, 14, false >
  15182. unpacked_enum_extension;
  15183. static const int kTestAllTypesFieldNumber = 536860000;
  15184. extern ::google::protobuf::internal::ExtensionIdentifier< ::protobuf_unittest::TestHugeFieldNumbers,
  15185. ::google::protobuf::internal::MessageTypeTraits< ::protobuf_unittest::TestAllTypes >, 11, false >
  15186. test_all_types;
  15187. static const int kTestExtensionInsideTableExtensionFieldNumber = 5;
  15188. extern ::google::protobuf::internal::ExtensionIdentifier< ::protobuf_unittest::TestExtensionInsideTable,
  15189. ::google::protobuf::internal::PrimitiveTypeTraits< ::google::protobuf::int32 >, 5, false >
  15190. test_extension_inside_table_extension;
  15191. // ===================================================================
  15192. #ifdef __GNUC__
  15193. #pragma GCC diagnostic push
  15194. #pragma GCC diagnostic ignored "-Wstrict-aliasing"
  15195. #endif // __GNUC__
  15196. // TestAllTypes_NestedMessage
  15197. // optional int32 bb = 1;
  15198. inline bool TestAllTypes_NestedMessage::has_bb() const {
  15199. return (_has_bits_[0] & 0x00000001u) != 0;
  15200. }
  15201. inline void TestAllTypes_NestedMessage::set_has_bb() {
  15202. _has_bits_[0] |= 0x00000001u;
  15203. }
  15204. inline void TestAllTypes_NestedMessage::clear_has_bb() {
  15205. _has_bits_[0] &= ~0x00000001u;
  15206. }
  15207. inline void TestAllTypes_NestedMessage::clear_bb() {
  15208. bb_ = 0;
  15209. clear_has_bb();
  15210. }
  15211. inline ::google::protobuf::int32 TestAllTypes_NestedMessage::bb() const {
  15212. // @@protoc_insertion_point(field_get:protobuf_unittest.TestAllTypes.NestedMessage.bb)
  15213. return bb_;
  15214. }
  15215. inline void TestAllTypes_NestedMessage::set_bb(::google::protobuf::int32 value) {
  15216. set_has_bb();
  15217. bb_ = value;
  15218. // @@protoc_insertion_point(field_set:protobuf_unittest.TestAllTypes.NestedMessage.bb)
  15219. }
  15220. // -------------------------------------------------------------------
  15221. // TestAllTypes_OptionalGroup
  15222. // optional int32 a = 17;
  15223. inline bool TestAllTypes_OptionalGroup::has_a() const {
  15224. return (_has_bits_[0] & 0x00000001u) != 0;
  15225. }
  15226. inline void TestAllTypes_OptionalGroup::set_has_a() {
  15227. _has_bits_[0] |= 0x00000001u;
  15228. }
  15229. inline void TestAllTypes_OptionalGroup::clear_has_a() {
  15230. _has_bits_[0] &= ~0x00000001u;
  15231. }
  15232. inline void TestAllTypes_OptionalGroup::clear_a() {
  15233. a_ = 0;
  15234. clear_has_a();
  15235. }
  15236. inline ::google::protobuf::int32 TestAllTypes_OptionalGroup::a() const {
  15237. // @@protoc_insertion_point(field_get:protobuf_unittest.TestAllTypes.OptionalGroup.a)
  15238. return a_;
  15239. }
  15240. inline void TestAllTypes_OptionalGroup::set_a(::google::protobuf::int32 value) {
  15241. set_has_a();
  15242. a_ = value;
  15243. // @@protoc_insertion_point(field_set:protobuf_unittest.TestAllTypes.OptionalGroup.a)
  15244. }
  15245. // -------------------------------------------------------------------
  15246. // TestAllTypes_RepeatedGroup
  15247. // optional int32 a = 47;
  15248. inline bool TestAllTypes_RepeatedGroup::has_a() const {
  15249. return (_has_bits_[0] & 0x00000001u) != 0;
  15250. }
  15251. inline void TestAllTypes_RepeatedGroup::set_has_a() {
  15252. _has_bits_[0] |= 0x00000001u;
  15253. }
  15254. inline void TestAllTypes_RepeatedGroup::clear_has_a() {
  15255. _has_bits_[0] &= ~0x00000001u;
  15256. }
  15257. inline void TestAllTypes_RepeatedGroup::clear_a() {
  15258. a_ = 0;
  15259. clear_has_a();
  15260. }
  15261. inline ::google::protobuf::int32 TestAllTypes_RepeatedGroup::a() const {
  15262. // @@protoc_insertion_point(field_get:protobuf_unittest.TestAllTypes.RepeatedGroup.a)
  15263. return a_;
  15264. }
  15265. inline void TestAllTypes_RepeatedGroup::set_a(::google::protobuf::int32 value) {
  15266. set_has_a();
  15267. a_ = value;
  15268. // @@protoc_insertion_point(field_set:protobuf_unittest.TestAllTypes.RepeatedGroup.a)
  15269. }
  15270. // -------------------------------------------------------------------
  15271. // TestAllTypes
  15272. // optional int32 optional_int32 = 1;
  15273. inline bool TestAllTypes::has_optional_int32() const {
  15274. return (_has_bits_[0] & 0x00008000u) != 0;
  15275. }
  15276. inline void TestAllTypes::set_has_optional_int32() {
  15277. _has_bits_[0] |= 0x00008000u;
  15278. }
  15279. inline void TestAllTypes::clear_has_optional_int32() {
  15280. _has_bits_[0] &= ~0x00008000u;
  15281. }
  15282. inline void TestAllTypes::clear_optional_int32() {
  15283. optional_int32_ = 0;
  15284. clear_has_optional_int32();
  15285. }
  15286. inline ::google::protobuf::int32 TestAllTypes::optional_int32() const {
  15287. // @@protoc_insertion_point(field_get:protobuf_unittest.TestAllTypes.optional_int32)
  15288. return optional_int32_;
  15289. }
  15290. inline void TestAllTypes::set_optional_int32(::google::protobuf::int32 value) {
  15291. set_has_optional_int32();
  15292. optional_int32_ = value;
  15293. // @@protoc_insertion_point(field_set:protobuf_unittest.TestAllTypes.optional_int32)
  15294. }
  15295. // optional int64 optional_int64 = 2;
  15296. inline bool TestAllTypes::has_optional_int64() const {
  15297. return (_has_bits_[0] & 0x00004000u) != 0;
  15298. }
  15299. inline void TestAllTypes::set_has_optional_int64() {
  15300. _has_bits_[0] |= 0x00004000u;
  15301. }
  15302. inline void TestAllTypes::clear_has_optional_int64() {
  15303. _has_bits_[0] &= ~0x00004000u;
  15304. }
  15305. inline void TestAllTypes::clear_optional_int64() {
  15306. optional_int64_ = GOOGLE_LONGLONG(0);
  15307. clear_has_optional_int64();
  15308. }
  15309. inline ::google::protobuf::int64 TestAllTypes::optional_int64() const {
  15310. // @@protoc_insertion_point(field_get:protobuf_unittest.TestAllTypes.optional_int64)
  15311. return optional_int64_;
  15312. }
  15313. inline void TestAllTypes::set_optional_int64(::google::protobuf::int64 value) {
  15314. set_has_optional_int64();
  15315. optional_int64_ = value;
  15316. // @@protoc_insertion_point(field_set:protobuf_unittest.TestAllTypes.optional_int64)
  15317. }
  15318. // optional uint32 optional_uint32 = 3;
  15319. inline bool TestAllTypes::has_optional_uint32() const {
  15320. return (_has_bits_[0] & 0x00010000u) != 0;
  15321. }
  15322. inline void TestAllTypes::set_has_optional_uint32() {
  15323. _has_bits_[0] |= 0x00010000u;
  15324. }
  15325. inline void TestAllTypes::clear_has_optional_uint32() {
  15326. _has_bits_[0] &= ~0x00010000u;
  15327. }
  15328. inline void TestAllTypes::clear_optional_uint32() {
  15329. optional_uint32_ = 0u;
  15330. clear_has_optional_uint32();
  15331. }
  15332. inline ::google::protobuf::uint32 TestAllTypes::optional_uint32() const {
  15333. // @@protoc_insertion_point(field_get:protobuf_unittest.TestAllTypes.optional_uint32)
  15334. return optional_uint32_;
  15335. }
  15336. inline void TestAllTypes::set_optional_uint32(::google::protobuf::uint32 value) {
  15337. set_has_optional_uint32();
  15338. optional_uint32_ = value;
  15339. // @@protoc_insertion_point(field_set:protobuf_unittest.TestAllTypes.optional_uint32)
  15340. }
  15341. // optional uint64 optional_uint64 = 4;
  15342. inline bool TestAllTypes::has_optional_uint64() const {
  15343. return (_has_bits_[0] & 0x00020000u) != 0;
  15344. }
  15345. inline void TestAllTypes::set_has_optional_uint64() {
  15346. _has_bits_[0] |= 0x00020000u;
  15347. }
  15348. inline void TestAllTypes::clear_has_optional_uint64() {
  15349. _has_bits_[0] &= ~0x00020000u;
  15350. }
  15351. inline void TestAllTypes::clear_optional_uint64() {
  15352. optional_uint64_ = GOOGLE_ULONGLONG(0);
  15353. clear_has_optional_uint64();
  15354. }
  15355. inline ::google::protobuf::uint64 TestAllTypes::optional_uint64() const {
  15356. // @@protoc_insertion_point(field_get:protobuf_unittest.TestAllTypes.optional_uint64)
  15357. return optional_uint64_;
  15358. }
  15359. inline void TestAllTypes::set_optional_uint64(::google::protobuf::uint64 value) {
  15360. set_has_optional_uint64();
  15361. optional_uint64_ = value;
  15362. // @@protoc_insertion_point(field_set:protobuf_unittest.TestAllTypes.optional_uint64)
  15363. }
  15364. // optional sint32 optional_sint32 = 5;
  15365. inline bool TestAllTypes::has_optional_sint32() const {
  15366. return (_has_bits_[0] & 0x00080000u) != 0;
  15367. }
  15368. inline void TestAllTypes::set_has_optional_sint32() {
  15369. _has_bits_[0] |= 0x00080000u;
  15370. }
  15371. inline void TestAllTypes::clear_has_optional_sint32() {
  15372. _has_bits_[0] &= ~0x00080000u;
  15373. }
  15374. inline void TestAllTypes::clear_optional_sint32() {
  15375. optional_sint32_ = 0;
  15376. clear_has_optional_sint32();
  15377. }
  15378. inline ::google::protobuf::int32 TestAllTypes::optional_sint32() const {
  15379. // @@protoc_insertion_point(field_get:protobuf_unittest.TestAllTypes.optional_sint32)
  15380. return optional_sint32_;
  15381. }
  15382. inline void TestAllTypes::set_optional_sint32(::google::protobuf::int32 value) {
  15383. set_has_optional_sint32();
  15384. optional_sint32_ = value;
  15385. // @@protoc_insertion_point(field_set:protobuf_unittest.TestAllTypes.optional_sint32)
  15386. }
  15387. // optional sint64 optional_sint64 = 6;
  15388. inline bool TestAllTypes::has_optional_sint64() const {
  15389. return (_has_bits_[0] & 0x00040000u) != 0;
  15390. }
  15391. inline void TestAllTypes::set_has_optional_sint64() {
  15392. _has_bits_[0] |= 0x00040000u;
  15393. }
  15394. inline void TestAllTypes::clear_has_optional_sint64() {
  15395. _has_bits_[0] &= ~0x00040000u;
  15396. }
  15397. inline void TestAllTypes::clear_optional_sint64() {
  15398. optional_sint64_ = GOOGLE_LONGLONG(0);
  15399. clear_has_optional_sint64();
  15400. }
  15401. inline ::google::protobuf::int64 TestAllTypes::optional_sint64() const {
  15402. // @@protoc_insertion_point(field_get:protobuf_unittest.TestAllTypes.optional_sint64)
  15403. return optional_sint64_;
  15404. }
  15405. inline void TestAllTypes::set_optional_sint64(::google::protobuf::int64 value) {
  15406. set_has_optional_sint64();
  15407. optional_sint64_ = value;
  15408. // @@protoc_insertion_point(field_set:protobuf_unittest.TestAllTypes.optional_sint64)
  15409. }
  15410. // optional fixed32 optional_fixed32 = 7;
  15411. inline bool TestAllTypes::has_optional_fixed32() const {
  15412. return (_has_bits_[0] & 0x00100000u) != 0;
  15413. }
  15414. inline void TestAllTypes::set_has_optional_fixed32() {
  15415. _has_bits_[0] |= 0x00100000u;
  15416. }
  15417. inline void TestAllTypes::clear_has_optional_fixed32() {
  15418. _has_bits_[0] &= ~0x00100000u;
  15419. }
  15420. inline void TestAllTypes::clear_optional_fixed32() {
  15421. optional_fixed32_ = 0u;
  15422. clear_has_optional_fixed32();
  15423. }
  15424. inline ::google::protobuf::uint32 TestAllTypes::optional_fixed32() const {
  15425. // @@protoc_insertion_point(field_get:protobuf_unittest.TestAllTypes.optional_fixed32)
  15426. return optional_fixed32_;
  15427. }
  15428. inline void TestAllTypes::set_optional_fixed32(::google::protobuf::uint32 value) {
  15429. set_has_optional_fixed32();
  15430. optional_fixed32_ = value;
  15431. // @@protoc_insertion_point(field_set:protobuf_unittest.TestAllTypes.optional_fixed32)
  15432. }
  15433. // optional fixed64 optional_fixed64 = 8;
  15434. inline bool TestAllTypes::has_optional_fixed64() const {
  15435. return (_has_bits_[0] & 0x00200000u) != 0;
  15436. }
  15437. inline void TestAllTypes::set_has_optional_fixed64() {
  15438. _has_bits_[0] |= 0x00200000u;
  15439. }
  15440. inline void TestAllTypes::clear_has_optional_fixed64() {
  15441. _has_bits_[0] &= ~0x00200000u;
  15442. }
  15443. inline void TestAllTypes::clear_optional_fixed64() {
  15444. optional_fixed64_ = GOOGLE_ULONGLONG(0);
  15445. clear_has_optional_fixed64();
  15446. }
  15447. inline ::google::protobuf::uint64 TestAllTypes::optional_fixed64() const {
  15448. // @@protoc_insertion_point(field_get:protobuf_unittest.TestAllTypes.optional_fixed64)
  15449. return optional_fixed64_;
  15450. }
  15451. inline void TestAllTypes::set_optional_fixed64(::google::protobuf::uint64 value) {
  15452. set_has_optional_fixed64();
  15453. optional_fixed64_ = value;
  15454. // @@protoc_insertion_point(field_set:protobuf_unittest.TestAllTypes.optional_fixed64)
  15455. }
  15456. // optional sfixed32 optional_sfixed32 = 9;
  15457. inline bool TestAllTypes::has_optional_sfixed32() const {
  15458. return (_has_bits_[0] & 0x00800000u) != 0;
  15459. }
  15460. inline void TestAllTypes::set_has_optional_sfixed32() {
  15461. _has_bits_[0] |= 0x00800000u;
  15462. }
  15463. inline void TestAllTypes::clear_has_optional_sfixed32() {
  15464. _has_bits_[0] &= ~0x00800000u;
  15465. }
  15466. inline void TestAllTypes::clear_optional_sfixed32() {
  15467. optional_sfixed32_ = 0;
  15468. clear_has_optional_sfixed32();
  15469. }
  15470. inline ::google::protobuf::int32 TestAllTypes::optional_sfixed32() const {
  15471. // @@protoc_insertion_point(field_get:protobuf_unittest.TestAllTypes.optional_sfixed32)
  15472. return optional_sfixed32_;
  15473. }
  15474. inline void TestAllTypes::set_optional_sfixed32(::google::protobuf::int32 value) {
  15475. set_has_optional_sfixed32();
  15476. optional_sfixed32_ = value;
  15477. // @@protoc_insertion_point(field_set:protobuf_unittest.TestAllTypes.optional_sfixed32)
  15478. }
  15479. // optional sfixed64 optional_sfixed64 = 10;
  15480. inline bool TestAllTypes::has_optional_sfixed64() const {
  15481. return (_has_bits_[0] & 0x00400000u) != 0;
  15482. }
  15483. inline void TestAllTypes::set_has_optional_sfixed64() {
  15484. _has_bits_[0] |= 0x00400000u;
  15485. }
  15486. inline void TestAllTypes::clear_has_optional_sfixed64() {
  15487. _has_bits_[0] &= ~0x00400000u;
  15488. }
  15489. inline void TestAllTypes::clear_optional_sfixed64() {
  15490. optional_sfixed64_ = GOOGLE_LONGLONG(0);
  15491. clear_has_optional_sfixed64();
  15492. }
  15493. inline ::google::protobuf::int64 TestAllTypes::optional_sfixed64() const {
  15494. // @@protoc_insertion_point(field_get:protobuf_unittest.TestAllTypes.optional_sfixed64)
  15495. return optional_sfixed64_;
  15496. }
  15497. inline void TestAllTypes::set_optional_sfixed64(::google::protobuf::int64 value) {
  15498. set_has_optional_sfixed64();
  15499. optional_sfixed64_ = value;
  15500. // @@protoc_insertion_point(field_set:protobuf_unittest.TestAllTypes.optional_sfixed64)
  15501. }
  15502. // optional float optional_float = 11;
  15503. inline bool TestAllTypes::has_optional_float() const {
  15504. return (_has_bits_[0] & 0x01000000u) != 0;
  15505. }
  15506. inline void TestAllTypes::set_has_optional_float() {
  15507. _has_bits_[0] |= 0x01000000u;
  15508. }
  15509. inline void TestAllTypes::clear_has_optional_float() {
  15510. _has_bits_[0] &= ~0x01000000u;
  15511. }
  15512. inline void TestAllTypes::clear_optional_float() {
  15513. optional_float_ = 0;
  15514. clear_has_optional_float();
  15515. }
  15516. inline float TestAllTypes::optional_float() const {
  15517. // @@protoc_insertion_point(field_get:protobuf_unittest.TestAllTypes.optional_float)
  15518. return optional_float_;
  15519. }
  15520. inline void TestAllTypes::set_optional_float(float value) {
  15521. set_has_optional_float();
  15522. optional_float_ = value;
  15523. // @@protoc_insertion_point(field_set:protobuf_unittest.TestAllTypes.optional_float)
  15524. }
  15525. // optional double optional_double = 12;
  15526. inline bool TestAllTypes::has_optional_double() const {
  15527. return (_has_bits_[0] & 0x02000000u) != 0;
  15528. }
  15529. inline void TestAllTypes::set_has_optional_double() {
  15530. _has_bits_[0] |= 0x02000000u;
  15531. }
  15532. inline void TestAllTypes::clear_has_optional_double() {
  15533. _has_bits_[0] &= ~0x02000000u;
  15534. }
  15535. inline void TestAllTypes::clear_optional_double() {
  15536. optional_double_ = 0;
  15537. clear_has_optional_double();
  15538. }
  15539. inline double TestAllTypes::optional_double() const {
  15540. // @@protoc_insertion_point(field_get:protobuf_unittest.TestAllTypes.optional_double)
  15541. return optional_double_;
  15542. }
  15543. inline void TestAllTypes::set_optional_double(double value) {
  15544. set_has_optional_double();
  15545. optional_double_ = value;
  15546. // @@protoc_insertion_point(field_set:protobuf_unittest.TestAllTypes.optional_double)
  15547. }
  15548. // optional bool optional_bool = 13;
  15549. inline bool TestAllTypes::has_optional_bool() const {
  15550. return (_has_bits_[0] & 0x04000000u) != 0;
  15551. }
  15552. inline void TestAllTypes::set_has_optional_bool() {
  15553. _has_bits_[0] |= 0x04000000u;
  15554. }
  15555. inline void TestAllTypes::clear_has_optional_bool() {
  15556. _has_bits_[0] &= ~0x04000000u;
  15557. }
  15558. inline void TestAllTypes::clear_optional_bool() {
  15559. optional_bool_ = false;
  15560. clear_has_optional_bool();
  15561. }
  15562. inline bool TestAllTypes::optional_bool() const {
  15563. // @@protoc_insertion_point(field_get:protobuf_unittest.TestAllTypes.optional_bool)
  15564. return optional_bool_;
  15565. }
  15566. inline void TestAllTypes::set_optional_bool(bool value) {
  15567. set_has_optional_bool();
  15568. optional_bool_ = value;
  15569. // @@protoc_insertion_point(field_set:protobuf_unittest.TestAllTypes.optional_bool)
  15570. }
  15571. // optional string optional_string = 14;
  15572. inline bool TestAllTypes::has_optional_string() const {
  15573. return (_has_bits_[0] & 0x00000001u) != 0;
  15574. }
  15575. inline void TestAllTypes::set_has_optional_string() {
  15576. _has_bits_[0] |= 0x00000001u;
  15577. }
  15578. inline void TestAllTypes::clear_has_optional_string() {
  15579. _has_bits_[0] &= ~0x00000001u;
  15580. }
  15581. inline void TestAllTypes::clear_optional_string() {
  15582. optional_string_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
  15583. clear_has_optional_string();
  15584. }
  15585. inline const ::std::string& TestAllTypes::optional_string() const {
  15586. // @@protoc_insertion_point(field_get:protobuf_unittest.TestAllTypes.optional_string)
  15587. return optional_string_.Get();
  15588. }
  15589. inline void TestAllTypes::set_optional_string(const ::std::string& value) {
  15590. set_has_optional_string();
  15591. optional_string_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual());
  15592. // @@protoc_insertion_point(field_set:protobuf_unittest.TestAllTypes.optional_string)
  15593. }
  15594. #if LANG_CXX11
  15595. inline void TestAllTypes::set_optional_string(::std::string&& value) {
  15596. set_has_optional_string();
  15597. optional_string_.Set(
  15598. &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual());
  15599. // @@protoc_insertion_point(field_set_rvalue:protobuf_unittest.TestAllTypes.optional_string)
  15600. }
  15601. #endif
  15602. inline void TestAllTypes::set_optional_string(const char* value) {
  15603. GOOGLE_DCHECK(value != NULL);
  15604. set_has_optional_string();
  15605. optional_string_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value),
  15606. GetArenaNoVirtual());
  15607. // @@protoc_insertion_point(field_set_char:protobuf_unittest.TestAllTypes.optional_string)
  15608. }
  15609. inline void TestAllTypes::set_optional_string(const char* value,
  15610. size_t size) {
  15611. set_has_optional_string();
  15612. optional_string_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(
  15613. reinterpret_cast<const char*>(value), size), GetArenaNoVirtual());
  15614. // @@protoc_insertion_point(field_set_pointer:protobuf_unittest.TestAllTypes.optional_string)
  15615. }
  15616. inline ::std::string* TestAllTypes::mutable_optional_string() {
  15617. set_has_optional_string();
  15618. // @@protoc_insertion_point(field_mutable:protobuf_unittest.TestAllTypes.optional_string)
  15619. return optional_string_.Mutable(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
  15620. }
  15621. inline ::std::string* TestAllTypes::release_optional_string() {
  15622. // @@protoc_insertion_point(field_release:protobuf_unittest.TestAllTypes.optional_string)
  15623. if (!has_optional_string()) {
  15624. return NULL;
  15625. }
  15626. clear_has_optional_string();
  15627. return optional_string_.ReleaseNonDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
  15628. }
  15629. inline void TestAllTypes::set_allocated_optional_string(::std::string* optional_string) {
  15630. if (optional_string != NULL) {
  15631. set_has_optional_string();
  15632. } else {
  15633. clear_has_optional_string();
  15634. }
  15635. optional_string_.SetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), optional_string,
  15636. GetArenaNoVirtual());
  15637. // @@protoc_insertion_point(field_set_allocated:protobuf_unittest.TestAllTypes.optional_string)
  15638. }
  15639. inline ::std::string* TestAllTypes::unsafe_arena_release_optional_string() {
  15640. // @@protoc_insertion_point(field_unsafe_arena_release:protobuf_unittest.TestAllTypes.optional_string)
  15641. GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
  15642. clear_has_optional_string();
  15643. return optional_string_.UnsafeArenaRelease(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  15644. GetArenaNoVirtual());
  15645. }
  15646. inline void TestAllTypes::unsafe_arena_set_allocated_optional_string(
  15647. ::std::string* optional_string) {
  15648. GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
  15649. if (optional_string != NULL) {
  15650. set_has_optional_string();
  15651. } else {
  15652. clear_has_optional_string();
  15653. }
  15654. optional_string_.UnsafeArenaSetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  15655. optional_string, GetArenaNoVirtual());
  15656. // @@protoc_insertion_point(field_unsafe_arena_set_allocated:protobuf_unittest.TestAllTypes.optional_string)
  15657. }
  15658. // optional bytes optional_bytes = 15;
  15659. inline bool TestAllTypes::has_optional_bytes() const {
  15660. return (_has_bits_[0] & 0x00000002u) != 0;
  15661. }
  15662. inline void TestAllTypes::set_has_optional_bytes() {
  15663. _has_bits_[0] |= 0x00000002u;
  15664. }
  15665. inline void TestAllTypes::clear_has_optional_bytes() {
  15666. _has_bits_[0] &= ~0x00000002u;
  15667. }
  15668. inline void TestAllTypes::clear_optional_bytes() {
  15669. optional_bytes_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
  15670. clear_has_optional_bytes();
  15671. }
  15672. inline const ::std::string& TestAllTypes::optional_bytes() const {
  15673. // @@protoc_insertion_point(field_get:protobuf_unittest.TestAllTypes.optional_bytes)
  15674. return optional_bytes_.Get();
  15675. }
  15676. inline void TestAllTypes::set_optional_bytes(const ::std::string& value) {
  15677. set_has_optional_bytes();
  15678. optional_bytes_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual());
  15679. // @@protoc_insertion_point(field_set:protobuf_unittest.TestAllTypes.optional_bytes)
  15680. }
  15681. #if LANG_CXX11
  15682. inline void TestAllTypes::set_optional_bytes(::std::string&& value) {
  15683. set_has_optional_bytes();
  15684. optional_bytes_.Set(
  15685. &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual());
  15686. // @@protoc_insertion_point(field_set_rvalue:protobuf_unittest.TestAllTypes.optional_bytes)
  15687. }
  15688. #endif
  15689. inline void TestAllTypes::set_optional_bytes(const char* value) {
  15690. GOOGLE_DCHECK(value != NULL);
  15691. set_has_optional_bytes();
  15692. optional_bytes_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value),
  15693. GetArenaNoVirtual());
  15694. // @@protoc_insertion_point(field_set_char:protobuf_unittest.TestAllTypes.optional_bytes)
  15695. }
  15696. inline void TestAllTypes::set_optional_bytes(const void* value,
  15697. size_t size) {
  15698. set_has_optional_bytes();
  15699. optional_bytes_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(
  15700. reinterpret_cast<const char*>(value), size), GetArenaNoVirtual());
  15701. // @@protoc_insertion_point(field_set_pointer:protobuf_unittest.TestAllTypes.optional_bytes)
  15702. }
  15703. inline ::std::string* TestAllTypes::mutable_optional_bytes() {
  15704. set_has_optional_bytes();
  15705. // @@protoc_insertion_point(field_mutable:protobuf_unittest.TestAllTypes.optional_bytes)
  15706. return optional_bytes_.Mutable(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
  15707. }
  15708. inline ::std::string* TestAllTypes::release_optional_bytes() {
  15709. // @@protoc_insertion_point(field_release:protobuf_unittest.TestAllTypes.optional_bytes)
  15710. if (!has_optional_bytes()) {
  15711. return NULL;
  15712. }
  15713. clear_has_optional_bytes();
  15714. return optional_bytes_.ReleaseNonDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
  15715. }
  15716. inline void TestAllTypes::set_allocated_optional_bytes(::std::string* optional_bytes) {
  15717. if (optional_bytes != NULL) {
  15718. set_has_optional_bytes();
  15719. } else {
  15720. clear_has_optional_bytes();
  15721. }
  15722. optional_bytes_.SetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), optional_bytes,
  15723. GetArenaNoVirtual());
  15724. // @@protoc_insertion_point(field_set_allocated:protobuf_unittest.TestAllTypes.optional_bytes)
  15725. }
  15726. inline ::std::string* TestAllTypes::unsafe_arena_release_optional_bytes() {
  15727. // @@protoc_insertion_point(field_unsafe_arena_release:protobuf_unittest.TestAllTypes.optional_bytes)
  15728. GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
  15729. clear_has_optional_bytes();
  15730. return optional_bytes_.UnsafeArenaRelease(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  15731. GetArenaNoVirtual());
  15732. }
  15733. inline void TestAllTypes::unsafe_arena_set_allocated_optional_bytes(
  15734. ::std::string* optional_bytes) {
  15735. GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
  15736. if (optional_bytes != NULL) {
  15737. set_has_optional_bytes();
  15738. } else {
  15739. clear_has_optional_bytes();
  15740. }
  15741. optional_bytes_.UnsafeArenaSetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  15742. optional_bytes, GetArenaNoVirtual());
  15743. // @@protoc_insertion_point(field_unsafe_arena_set_allocated:protobuf_unittest.TestAllTypes.optional_bytes)
  15744. }
  15745. // optional group OptionalGroup = 16 { ... };
  15746. inline bool TestAllTypes::has_optionalgroup() const {
  15747. return (_has_bits_[0] & 0x00000100u) != 0;
  15748. }
  15749. inline void TestAllTypes::set_has_optionalgroup() {
  15750. _has_bits_[0] |= 0x00000100u;
  15751. }
  15752. inline void TestAllTypes::clear_has_optionalgroup() {
  15753. _has_bits_[0] &= ~0x00000100u;
  15754. }
  15755. inline void TestAllTypes::clear_optionalgroup() {
  15756. if (optionalgroup_ != NULL) optionalgroup_->Clear();
  15757. clear_has_optionalgroup();
  15758. }
  15759. inline const ::protobuf_unittest::TestAllTypes_OptionalGroup& TestAllTypes::_internal_optionalgroup() const {
  15760. return *optionalgroup_;
  15761. }
  15762. inline const ::protobuf_unittest::TestAllTypes_OptionalGroup& TestAllTypes::optionalgroup() const {
  15763. const ::protobuf_unittest::TestAllTypes_OptionalGroup* p = optionalgroup_;
  15764. // @@protoc_insertion_point(field_get:protobuf_unittest.TestAllTypes.optionalgroup)
  15765. return p != NULL ? *p : *reinterpret_cast<const ::protobuf_unittest::TestAllTypes_OptionalGroup*>(
  15766. &::protobuf_unittest::_TestAllTypes_OptionalGroup_default_instance_);
  15767. }
  15768. inline ::protobuf_unittest::TestAllTypes_OptionalGroup* TestAllTypes::release_optionalgroup() {
  15769. // @@protoc_insertion_point(field_release:protobuf_unittest.TestAllTypes.optionalgroup)
  15770. clear_has_optionalgroup();
  15771. ::protobuf_unittest::TestAllTypes_OptionalGroup* temp = optionalgroup_;
  15772. if (GetArenaNoVirtual() != NULL) {
  15773. temp = ::google::protobuf::internal::DuplicateIfNonNull(temp);
  15774. }
  15775. optionalgroup_ = NULL;
  15776. return temp;
  15777. }
  15778. inline ::protobuf_unittest::TestAllTypes_OptionalGroup* TestAllTypes::unsafe_arena_release_optionalgroup() {
  15779. // @@protoc_insertion_point(field_unsafe_arena_release:protobuf_unittest.TestAllTypes.optionalgroup)
  15780. clear_has_optionalgroup();
  15781. ::protobuf_unittest::TestAllTypes_OptionalGroup* temp = optionalgroup_;
  15782. optionalgroup_ = NULL;
  15783. return temp;
  15784. }
  15785. inline ::protobuf_unittest::TestAllTypes_OptionalGroup* TestAllTypes::mutable_optionalgroup() {
  15786. set_has_optionalgroup();
  15787. if (optionalgroup_ == NULL) {
  15788. auto* p = CreateMaybeMessage<::protobuf_unittest::TestAllTypes_OptionalGroup>(GetArenaNoVirtual());
  15789. optionalgroup_ = p;
  15790. }
  15791. // @@protoc_insertion_point(field_mutable:protobuf_unittest.TestAllTypes.optionalgroup)
  15792. return optionalgroup_;
  15793. }
  15794. inline void TestAllTypes::set_allocated_optionalgroup(::protobuf_unittest::TestAllTypes_OptionalGroup* optionalgroup) {
  15795. ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
  15796. if (message_arena == NULL) {
  15797. delete optionalgroup_;
  15798. }
  15799. if (optionalgroup) {
  15800. ::google::protobuf::Arena* submessage_arena =
  15801. ::google::protobuf::Arena::GetArena(optionalgroup);
  15802. if (message_arena != submessage_arena) {
  15803. optionalgroup = ::google::protobuf::internal::GetOwnedMessage(
  15804. message_arena, optionalgroup, submessage_arena);
  15805. }
  15806. set_has_optionalgroup();
  15807. } else {
  15808. clear_has_optionalgroup();
  15809. }
  15810. optionalgroup_ = optionalgroup;
  15811. // @@protoc_insertion_point(field_set_allocated:protobuf_unittest.TestAllTypes.optionalgroup)
  15812. }
  15813. // optional .protobuf_unittest.TestAllTypes.NestedMessage optional_nested_message = 18;
  15814. inline bool TestAllTypes::has_optional_nested_message() const {
  15815. return (_has_bits_[0] & 0x00000200u) != 0;
  15816. }
  15817. inline void TestAllTypes::set_has_optional_nested_message() {
  15818. _has_bits_[0] |= 0x00000200u;
  15819. }
  15820. inline void TestAllTypes::clear_has_optional_nested_message() {
  15821. _has_bits_[0] &= ~0x00000200u;
  15822. }
  15823. inline void TestAllTypes::clear_optional_nested_message() {
  15824. if (optional_nested_message_ != NULL) optional_nested_message_->Clear();
  15825. clear_has_optional_nested_message();
  15826. }
  15827. inline const ::protobuf_unittest::TestAllTypes_NestedMessage& TestAllTypes::_internal_optional_nested_message() const {
  15828. return *optional_nested_message_;
  15829. }
  15830. inline const ::protobuf_unittest::TestAllTypes_NestedMessage& TestAllTypes::optional_nested_message() const {
  15831. const ::protobuf_unittest::TestAllTypes_NestedMessage* p = optional_nested_message_;
  15832. // @@protoc_insertion_point(field_get:protobuf_unittest.TestAllTypes.optional_nested_message)
  15833. return p != NULL ? *p : *reinterpret_cast<const ::protobuf_unittest::TestAllTypes_NestedMessage*>(
  15834. &::protobuf_unittest::_TestAllTypes_NestedMessage_default_instance_);
  15835. }
  15836. inline ::protobuf_unittest::TestAllTypes_NestedMessage* TestAllTypes::release_optional_nested_message() {
  15837. // @@protoc_insertion_point(field_release:protobuf_unittest.TestAllTypes.optional_nested_message)
  15838. clear_has_optional_nested_message();
  15839. ::protobuf_unittest::TestAllTypes_NestedMessage* temp = optional_nested_message_;
  15840. if (GetArenaNoVirtual() != NULL) {
  15841. temp = ::google::protobuf::internal::DuplicateIfNonNull(temp);
  15842. }
  15843. optional_nested_message_ = NULL;
  15844. return temp;
  15845. }
  15846. inline ::protobuf_unittest::TestAllTypes_NestedMessage* TestAllTypes::unsafe_arena_release_optional_nested_message() {
  15847. // @@protoc_insertion_point(field_unsafe_arena_release:protobuf_unittest.TestAllTypes.optional_nested_message)
  15848. clear_has_optional_nested_message();
  15849. ::protobuf_unittest::TestAllTypes_NestedMessage* temp = optional_nested_message_;
  15850. optional_nested_message_ = NULL;
  15851. return temp;
  15852. }
  15853. inline ::protobuf_unittest::TestAllTypes_NestedMessage* TestAllTypes::mutable_optional_nested_message() {
  15854. set_has_optional_nested_message();
  15855. if (optional_nested_message_ == NULL) {
  15856. auto* p = CreateMaybeMessage<::protobuf_unittest::TestAllTypes_NestedMessage>(GetArenaNoVirtual());
  15857. optional_nested_message_ = p;
  15858. }
  15859. // @@protoc_insertion_point(field_mutable:protobuf_unittest.TestAllTypes.optional_nested_message)
  15860. return optional_nested_message_;
  15861. }
  15862. inline void TestAllTypes::set_allocated_optional_nested_message(::protobuf_unittest::TestAllTypes_NestedMessage* optional_nested_message) {
  15863. ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
  15864. if (message_arena == NULL) {
  15865. delete optional_nested_message_;
  15866. }
  15867. if (optional_nested_message) {
  15868. ::google::protobuf::Arena* submessage_arena =
  15869. ::google::protobuf::Arena::GetArena(optional_nested_message);
  15870. if (message_arena != submessage_arena) {
  15871. optional_nested_message = ::google::protobuf::internal::GetOwnedMessage(
  15872. message_arena, optional_nested_message, submessage_arena);
  15873. }
  15874. set_has_optional_nested_message();
  15875. } else {
  15876. clear_has_optional_nested_message();
  15877. }
  15878. optional_nested_message_ = optional_nested_message;
  15879. // @@protoc_insertion_point(field_set_allocated:protobuf_unittest.TestAllTypes.optional_nested_message)
  15880. }
  15881. // optional .protobuf_unittest.ForeignMessage optional_foreign_message = 19;
  15882. inline bool TestAllTypes::has_optional_foreign_message() const {
  15883. return (_has_bits_[0] & 0x00000400u) != 0;
  15884. }
  15885. inline void TestAllTypes::set_has_optional_foreign_message() {
  15886. _has_bits_[0] |= 0x00000400u;
  15887. }
  15888. inline void TestAllTypes::clear_has_optional_foreign_message() {
  15889. _has_bits_[0] &= ~0x00000400u;
  15890. }
  15891. inline void TestAllTypes::clear_optional_foreign_message() {
  15892. if (optional_foreign_message_ != NULL) optional_foreign_message_->Clear();
  15893. clear_has_optional_foreign_message();
  15894. }
  15895. inline const ::protobuf_unittest::ForeignMessage& TestAllTypes::_internal_optional_foreign_message() const {
  15896. return *optional_foreign_message_;
  15897. }
  15898. inline const ::protobuf_unittest::ForeignMessage& TestAllTypes::optional_foreign_message() const {
  15899. const ::protobuf_unittest::ForeignMessage* p = optional_foreign_message_;
  15900. // @@protoc_insertion_point(field_get:protobuf_unittest.TestAllTypes.optional_foreign_message)
  15901. return p != NULL ? *p : *reinterpret_cast<const ::protobuf_unittest::ForeignMessage*>(
  15902. &::protobuf_unittest::_ForeignMessage_default_instance_);
  15903. }
  15904. inline ::protobuf_unittest::ForeignMessage* TestAllTypes::release_optional_foreign_message() {
  15905. // @@protoc_insertion_point(field_release:protobuf_unittest.TestAllTypes.optional_foreign_message)
  15906. clear_has_optional_foreign_message();
  15907. ::protobuf_unittest::ForeignMessage* temp = optional_foreign_message_;
  15908. if (GetArenaNoVirtual() != NULL) {
  15909. temp = ::google::protobuf::internal::DuplicateIfNonNull(temp);
  15910. }
  15911. optional_foreign_message_ = NULL;
  15912. return temp;
  15913. }
  15914. inline ::protobuf_unittest::ForeignMessage* TestAllTypes::unsafe_arena_release_optional_foreign_message() {
  15915. // @@protoc_insertion_point(field_unsafe_arena_release:protobuf_unittest.TestAllTypes.optional_foreign_message)
  15916. clear_has_optional_foreign_message();
  15917. ::protobuf_unittest::ForeignMessage* temp = optional_foreign_message_;
  15918. optional_foreign_message_ = NULL;
  15919. return temp;
  15920. }
  15921. inline ::protobuf_unittest::ForeignMessage* TestAllTypes::mutable_optional_foreign_message() {
  15922. set_has_optional_foreign_message();
  15923. if (optional_foreign_message_ == NULL) {
  15924. auto* p = CreateMaybeMessage<::protobuf_unittest::ForeignMessage>(GetArenaNoVirtual());
  15925. optional_foreign_message_ = p;
  15926. }
  15927. // @@protoc_insertion_point(field_mutable:protobuf_unittest.TestAllTypes.optional_foreign_message)
  15928. return optional_foreign_message_;
  15929. }
  15930. inline void TestAllTypes::set_allocated_optional_foreign_message(::protobuf_unittest::ForeignMessage* optional_foreign_message) {
  15931. ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
  15932. if (message_arena == NULL) {
  15933. delete optional_foreign_message_;
  15934. }
  15935. if (optional_foreign_message) {
  15936. ::google::protobuf::Arena* submessage_arena =
  15937. ::google::protobuf::Arena::GetArena(optional_foreign_message);
  15938. if (message_arena != submessage_arena) {
  15939. optional_foreign_message = ::google::protobuf::internal::GetOwnedMessage(
  15940. message_arena, optional_foreign_message, submessage_arena);
  15941. }
  15942. set_has_optional_foreign_message();
  15943. } else {
  15944. clear_has_optional_foreign_message();
  15945. }
  15946. optional_foreign_message_ = optional_foreign_message;
  15947. // @@protoc_insertion_point(field_set_allocated:protobuf_unittest.TestAllTypes.optional_foreign_message)
  15948. }
  15949. // optional .protobuf_unittest_import.ImportMessage optional_import_message = 20;
  15950. inline bool TestAllTypes::has_optional_import_message() const {
  15951. return (_has_bits_[0] & 0x00000800u) != 0;
  15952. }
  15953. inline void TestAllTypes::set_has_optional_import_message() {
  15954. _has_bits_[0] |= 0x00000800u;
  15955. }
  15956. inline void TestAllTypes::clear_has_optional_import_message() {
  15957. _has_bits_[0] &= ~0x00000800u;
  15958. }
  15959. inline const ::protobuf_unittest_import::ImportMessage& TestAllTypes::_internal_optional_import_message() const {
  15960. return *optional_import_message_;
  15961. }
  15962. inline const ::protobuf_unittest_import::ImportMessage& TestAllTypes::optional_import_message() const {
  15963. const ::protobuf_unittest_import::ImportMessage* p = optional_import_message_;
  15964. // @@protoc_insertion_point(field_get:protobuf_unittest.TestAllTypes.optional_import_message)
  15965. return p != NULL ? *p : *reinterpret_cast<const ::protobuf_unittest_import::ImportMessage*>(
  15966. &::protobuf_unittest_import::_ImportMessage_default_instance_);
  15967. }
  15968. inline ::protobuf_unittest_import::ImportMessage* TestAllTypes::release_optional_import_message() {
  15969. // @@protoc_insertion_point(field_release:protobuf_unittest.TestAllTypes.optional_import_message)
  15970. clear_has_optional_import_message();
  15971. ::protobuf_unittest_import::ImportMessage* temp = optional_import_message_;
  15972. if (GetArenaNoVirtual() != NULL) {
  15973. temp = ::google::protobuf::internal::DuplicateIfNonNull(temp);
  15974. }
  15975. optional_import_message_ = NULL;
  15976. return temp;
  15977. }
  15978. inline ::protobuf_unittest_import::ImportMessage* TestAllTypes::unsafe_arena_release_optional_import_message() {
  15979. // @@protoc_insertion_point(field_unsafe_arena_release:protobuf_unittest.TestAllTypes.optional_import_message)
  15980. clear_has_optional_import_message();
  15981. ::protobuf_unittest_import::ImportMessage* temp = optional_import_message_;
  15982. optional_import_message_ = NULL;
  15983. return temp;
  15984. }
  15985. inline ::protobuf_unittest_import::ImportMessage* TestAllTypes::mutable_optional_import_message() {
  15986. set_has_optional_import_message();
  15987. if (optional_import_message_ == NULL) {
  15988. auto* p = CreateMaybeMessage<::protobuf_unittest_import::ImportMessage>(GetArenaNoVirtual());
  15989. optional_import_message_ = p;
  15990. }
  15991. // @@protoc_insertion_point(field_mutable:protobuf_unittest.TestAllTypes.optional_import_message)
  15992. return optional_import_message_;
  15993. }
  15994. inline void TestAllTypes::set_allocated_optional_import_message(::protobuf_unittest_import::ImportMessage* optional_import_message) {
  15995. ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
  15996. if (message_arena == NULL) {
  15997. delete reinterpret_cast< ::google::protobuf::MessageLite*>(optional_import_message_);
  15998. }
  15999. if (optional_import_message) {
  16000. ::google::protobuf::Arena* submessage_arena =
  16001. reinterpret_cast<::google::protobuf::MessageLite*>(optional_import_message)->GetArena();
  16002. if (message_arena != submessage_arena) {
  16003. optional_import_message = ::google::protobuf::internal::GetOwnedMessage(
  16004. message_arena, optional_import_message, submessage_arena);
  16005. }
  16006. set_has_optional_import_message();
  16007. } else {
  16008. clear_has_optional_import_message();
  16009. }
  16010. optional_import_message_ = optional_import_message;
  16011. // @@protoc_insertion_point(field_set_allocated:protobuf_unittest.TestAllTypes.optional_import_message)
  16012. }
  16013. // optional .protobuf_unittest.TestAllTypes.NestedEnum optional_nested_enum = 21;
  16014. inline bool TestAllTypes::has_optional_nested_enum() const {
  16015. return (_has_bits_[0] & 0x10000000u) != 0;
  16016. }
  16017. inline void TestAllTypes::set_has_optional_nested_enum() {
  16018. _has_bits_[0] |= 0x10000000u;
  16019. }
  16020. inline void TestAllTypes::clear_has_optional_nested_enum() {
  16021. _has_bits_[0] &= ~0x10000000u;
  16022. }
  16023. inline void TestAllTypes::clear_optional_nested_enum() {
  16024. optional_nested_enum_ = 1;
  16025. clear_has_optional_nested_enum();
  16026. }
  16027. inline ::protobuf_unittest::TestAllTypes_NestedEnum TestAllTypes::optional_nested_enum() const {
  16028. // @@protoc_insertion_point(field_get:protobuf_unittest.TestAllTypes.optional_nested_enum)
  16029. return static_cast< ::protobuf_unittest::TestAllTypes_NestedEnum >(optional_nested_enum_);
  16030. }
  16031. inline void TestAllTypes::set_optional_nested_enum(::protobuf_unittest::TestAllTypes_NestedEnum value) {
  16032. assert(::protobuf_unittest::TestAllTypes_NestedEnum_IsValid(value));
  16033. set_has_optional_nested_enum();
  16034. optional_nested_enum_ = value;
  16035. // @@protoc_insertion_point(field_set:protobuf_unittest.TestAllTypes.optional_nested_enum)
  16036. }
  16037. // optional .protobuf_unittest.ForeignEnum optional_foreign_enum = 22;
  16038. inline bool TestAllTypes::has_optional_foreign_enum() const {
  16039. return (_has_bits_[0] & 0x20000000u) != 0;
  16040. }
  16041. inline void TestAllTypes::set_has_optional_foreign_enum() {
  16042. _has_bits_[0] |= 0x20000000u;
  16043. }
  16044. inline void TestAllTypes::clear_has_optional_foreign_enum() {
  16045. _has_bits_[0] &= ~0x20000000u;
  16046. }
  16047. inline void TestAllTypes::clear_optional_foreign_enum() {
  16048. optional_foreign_enum_ = 4;
  16049. clear_has_optional_foreign_enum();
  16050. }
  16051. inline ::protobuf_unittest::ForeignEnum TestAllTypes::optional_foreign_enum() const {
  16052. // @@protoc_insertion_point(field_get:protobuf_unittest.TestAllTypes.optional_foreign_enum)
  16053. return static_cast< ::protobuf_unittest::ForeignEnum >(optional_foreign_enum_);
  16054. }
  16055. inline void TestAllTypes::set_optional_foreign_enum(::protobuf_unittest::ForeignEnum value) {
  16056. assert(::protobuf_unittest::ForeignEnum_IsValid(value));
  16057. set_has_optional_foreign_enum();
  16058. optional_foreign_enum_ = value;
  16059. // @@protoc_insertion_point(field_set:protobuf_unittest.TestAllTypes.optional_foreign_enum)
  16060. }
  16061. // optional .protobuf_unittest_import.ImportEnum optional_import_enum = 23;
  16062. inline bool TestAllTypes::has_optional_import_enum() const {
  16063. return (_has_bits_[0] & 0x40000000u) != 0;
  16064. }
  16065. inline void TestAllTypes::set_has_optional_import_enum() {
  16066. _has_bits_[0] |= 0x40000000u;
  16067. }
  16068. inline void TestAllTypes::clear_has_optional_import_enum() {
  16069. _has_bits_[0] &= ~0x40000000u;
  16070. }
  16071. inline void TestAllTypes::clear_optional_import_enum() {
  16072. optional_import_enum_ = 7;
  16073. clear_has_optional_import_enum();
  16074. }
  16075. inline ::protobuf_unittest_import::ImportEnum TestAllTypes::optional_import_enum() const {
  16076. // @@protoc_insertion_point(field_get:protobuf_unittest.TestAllTypes.optional_import_enum)
  16077. return static_cast< ::protobuf_unittest_import::ImportEnum >(optional_import_enum_);
  16078. }
  16079. inline void TestAllTypes::set_optional_import_enum(::protobuf_unittest_import::ImportEnum value) {
  16080. assert(::protobuf_unittest_import::ImportEnum_IsValid(value));
  16081. set_has_optional_import_enum();
  16082. optional_import_enum_ = value;
  16083. // @@protoc_insertion_point(field_set:protobuf_unittest.TestAllTypes.optional_import_enum)
  16084. }
  16085. // optional string optional_string_piece = 24 [ctype = STRING_PIECE];
  16086. inline bool TestAllTypes::has_optional_string_piece() const {
  16087. return (_has_bits_[0] & 0x00000004u) != 0;
  16088. }
  16089. inline void TestAllTypes::set_has_optional_string_piece() {
  16090. _has_bits_[0] |= 0x00000004u;
  16091. }
  16092. inline void TestAllTypes::clear_has_optional_string_piece() {
  16093. _has_bits_[0] &= ~0x00000004u;
  16094. }
  16095. inline void TestAllTypes::clear_optional_string_piece() {
  16096. optional_string_piece_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
  16097. clear_has_optional_string_piece();
  16098. }
  16099. inline const ::std::string& TestAllTypes::optional_string_piece() const {
  16100. // @@protoc_insertion_point(field_get:protobuf_unittest.TestAllTypes.optional_string_piece)
  16101. return optional_string_piece_.Get();
  16102. }
  16103. inline void TestAllTypes::set_optional_string_piece(const ::std::string& value) {
  16104. set_has_optional_string_piece();
  16105. optional_string_piece_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual());
  16106. // @@protoc_insertion_point(field_set:protobuf_unittest.TestAllTypes.optional_string_piece)
  16107. }
  16108. #if LANG_CXX11
  16109. inline void TestAllTypes::set_optional_string_piece(::std::string&& value) {
  16110. set_has_optional_string_piece();
  16111. optional_string_piece_.Set(
  16112. &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual());
  16113. // @@protoc_insertion_point(field_set_rvalue:protobuf_unittest.TestAllTypes.optional_string_piece)
  16114. }
  16115. #endif
  16116. inline void TestAllTypes::set_optional_string_piece(const char* value) {
  16117. GOOGLE_DCHECK(value != NULL);
  16118. set_has_optional_string_piece();
  16119. optional_string_piece_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value),
  16120. GetArenaNoVirtual());
  16121. // @@protoc_insertion_point(field_set_char:protobuf_unittest.TestAllTypes.optional_string_piece)
  16122. }
  16123. inline void TestAllTypes::set_optional_string_piece(const char* value,
  16124. size_t size) {
  16125. set_has_optional_string_piece();
  16126. optional_string_piece_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(
  16127. reinterpret_cast<const char*>(value), size), GetArenaNoVirtual());
  16128. // @@protoc_insertion_point(field_set_pointer:protobuf_unittest.TestAllTypes.optional_string_piece)
  16129. }
  16130. inline ::std::string* TestAllTypes::mutable_optional_string_piece() {
  16131. set_has_optional_string_piece();
  16132. // @@protoc_insertion_point(field_mutable:protobuf_unittest.TestAllTypes.optional_string_piece)
  16133. return optional_string_piece_.Mutable(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
  16134. }
  16135. inline ::std::string* TestAllTypes::release_optional_string_piece() {
  16136. // @@protoc_insertion_point(field_release:protobuf_unittest.TestAllTypes.optional_string_piece)
  16137. if (!has_optional_string_piece()) {
  16138. return NULL;
  16139. }
  16140. clear_has_optional_string_piece();
  16141. return optional_string_piece_.ReleaseNonDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
  16142. }
  16143. inline void TestAllTypes::set_allocated_optional_string_piece(::std::string* optional_string_piece) {
  16144. if (optional_string_piece != NULL) {
  16145. set_has_optional_string_piece();
  16146. } else {
  16147. clear_has_optional_string_piece();
  16148. }
  16149. optional_string_piece_.SetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), optional_string_piece,
  16150. GetArenaNoVirtual());
  16151. // @@protoc_insertion_point(field_set_allocated:protobuf_unittest.TestAllTypes.optional_string_piece)
  16152. }
  16153. inline ::std::string* TestAllTypes::unsafe_arena_release_optional_string_piece() {
  16154. // @@protoc_insertion_point(field_unsafe_arena_release:protobuf_unittest.TestAllTypes.optional_string_piece)
  16155. GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
  16156. clear_has_optional_string_piece();
  16157. return optional_string_piece_.UnsafeArenaRelease(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  16158. GetArenaNoVirtual());
  16159. }
  16160. inline void TestAllTypes::unsafe_arena_set_allocated_optional_string_piece(
  16161. ::std::string* optional_string_piece) {
  16162. GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
  16163. if (optional_string_piece != NULL) {
  16164. set_has_optional_string_piece();
  16165. } else {
  16166. clear_has_optional_string_piece();
  16167. }
  16168. optional_string_piece_.UnsafeArenaSetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  16169. optional_string_piece, GetArenaNoVirtual());
  16170. // @@protoc_insertion_point(field_unsafe_arena_set_allocated:protobuf_unittest.TestAllTypes.optional_string_piece)
  16171. }
  16172. // optional string optional_cord = 25 [ctype = CORD];
  16173. inline bool TestAllTypes::has_optional_cord() const {
  16174. return (_has_bits_[0] & 0x00000008u) != 0;
  16175. }
  16176. inline void TestAllTypes::set_has_optional_cord() {
  16177. _has_bits_[0] |= 0x00000008u;
  16178. }
  16179. inline void TestAllTypes::clear_has_optional_cord() {
  16180. _has_bits_[0] &= ~0x00000008u;
  16181. }
  16182. inline void TestAllTypes::clear_optional_cord() {
  16183. optional_cord_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
  16184. clear_has_optional_cord();
  16185. }
  16186. inline const ::std::string& TestAllTypes::optional_cord() const {
  16187. // @@protoc_insertion_point(field_get:protobuf_unittest.TestAllTypes.optional_cord)
  16188. return optional_cord_.Get();
  16189. }
  16190. inline void TestAllTypes::set_optional_cord(const ::std::string& value) {
  16191. set_has_optional_cord();
  16192. optional_cord_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual());
  16193. // @@protoc_insertion_point(field_set:protobuf_unittest.TestAllTypes.optional_cord)
  16194. }
  16195. #if LANG_CXX11
  16196. inline void TestAllTypes::set_optional_cord(::std::string&& value) {
  16197. set_has_optional_cord();
  16198. optional_cord_.Set(
  16199. &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual());
  16200. // @@protoc_insertion_point(field_set_rvalue:protobuf_unittest.TestAllTypes.optional_cord)
  16201. }
  16202. #endif
  16203. inline void TestAllTypes::set_optional_cord(const char* value) {
  16204. GOOGLE_DCHECK(value != NULL);
  16205. set_has_optional_cord();
  16206. optional_cord_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value),
  16207. GetArenaNoVirtual());
  16208. // @@protoc_insertion_point(field_set_char:protobuf_unittest.TestAllTypes.optional_cord)
  16209. }
  16210. inline void TestAllTypes::set_optional_cord(const char* value,
  16211. size_t size) {
  16212. set_has_optional_cord();
  16213. optional_cord_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(
  16214. reinterpret_cast<const char*>(value), size), GetArenaNoVirtual());
  16215. // @@protoc_insertion_point(field_set_pointer:protobuf_unittest.TestAllTypes.optional_cord)
  16216. }
  16217. inline ::std::string* TestAllTypes::mutable_optional_cord() {
  16218. set_has_optional_cord();
  16219. // @@protoc_insertion_point(field_mutable:protobuf_unittest.TestAllTypes.optional_cord)
  16220. return optional_cord_.Mutable(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
  16221. }
  16222. inline ::std::string* TestAllTypes::release_optional_cord() {
  16223. // @@protoc_insertion_point(field_release:protobuf_unittest.TestAllTypes.optional_cord)
  16224. if (!has_optional_cord()) {
  16225. return NULL;
  16226. }
  16227. clear_has_optional_cord();
  16228. return optional_cord_.ReleaseNonDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
  16229. }
  16230. inline void TestAllTypes::set_allocated_optional_cord(::std::string* optional_cord) {
  16231. if (optional_cord != NULL) {
  16232. set_has_optional_cord();
  16233. } else {
  16234. clear_has_optional_cord();
  16235. }
  16236. optional_cord_.SetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), optional_cord,
  16237. GetArenaNoVirtual());
  16238. // @@protoc_insertion_point(field_set_allocated:protobuf_unittest.TestAllTypes.optional_cord)
  16239. }
  16240. inline ::std::string* TestAllTypes::unsafe_arena_release_optional_cord() {
  16241. // @@protoc_insertion_point(field_unsafe_arena_release:protobuf_unittest.TestAllTypes.optional_cord)
  16242. GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
  16243. clear_has_optional_cord();
  16244. return optional_cord_.UnsafeArenaRelease(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  16245. GetArenaNoVirtual());
  16246. }
  16247. inline void TestAllTypes::unsafe_arena_set_allocated_optional_cord(
  16248. ::std::string* optional_cord) {
  16249. GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
  16250. if (optional_cord != NULL) {
  16251. set_has_optional_cord();
  16252. } else {
  16253. clear_has_optional_cord();
  16254. }
  16255. optional_cord_.UnsafeArenaSetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  16256. optional_cord, GetArenaNoVirtual());
  16257. // @@protoc_insertion_point(field_unsafe_arena_set_allocated:protobuf_unittest.TestAllTypes.optional_cord)
  16258. }
  16259. // optional .protobuf_unittest_import.PublicImportMessage optional_public_import_message = 26;
  16260. inline bool TestAllTypes::has_optional_public_import_message() const {
  16261. return (_has_bits_[0] & 0x00001000u) != 0;
  16262. }
  16263. inline void TestAllTypes::set_has_optional_public_import_message() {
  16264. _has_bits_[0] |= 0x00001000u;
  16265. }
  16266. inline void TestAllTypes::clear_has_optional_public_import_message() {
  16267. _has_bits_[0] &= ~0x00001000u;
  16268. }
  16269. inline const ::protobuf_unittest_import::PublicImportMessage& TestAllTypes::_internal_optional_public_import_message() const {
  16270. return *optional_public_import_message_;
  16271. }
  16272. inline const ::protobuf_unittest_import::PublicImportMessage& TestAllTypes::optional_public_import_message() const {
  16273. const ::protobuf_unittest_import::PublicImportMessage* p = optional_public_import_message_;
  16274. // @@protoc_insertion_point(field_get:protobuf_unittest.TestAllTypes.optional_public_import_message)
  16275. return p != NULL ? *p : *reinterpret_cast<const ::protobuf_unittest_import::PublicImportMessage*>(
  16276. &::protobuf_unittest_import::_PublicImportMessage_default_instance_);
  16277. }
  16278. inline ::protobuf_unittest_import::PublicImportMessage* TestAllTypes::release_optional_public_import_message() {
  16279. // @@protoc_insertion_point(field_release:protobuf_unittest.TestAllTypes.optional_public_import_message)
  16280. clear_has_optional_public_import_message();
  16281. ::protobuf_unittest_import::PublicImportMessage* temp = optional_public_import_message_;
  16282. if (GetArenaNoVirtual() != NULL) {
  16283. temp = ::google::protobuf::internal::DuplicateIfNonNull(temp);
  16284. }
  16285. optional_public_import_message_ = NULL;
  16286. return temp;
  16287. }
  16288. inline ::protobuf_unittest_import::PublicImportMessage* TestAllTypes::unsafe_arena_release_optional_public_import_message() {
  16289. // @@protoc_insertion_point(field_unsafe_arena_release:protobuf_unittest.TestAllTypes.optional_public_import_message)
  16290. clear_has_optional_public_import_message();
  16291. ::protobuf_unittest_import::PublicImportMessage* temp = optional_public_import_message_;
  16292. optional_public_import_message_ = NULL;
  16293. return temp;
  16294. }
  16295. inline ::protobuf_unittest_import::PublicImportMessage* TestAllTypes::mutable_optional_public_import_message() {
  16296. set_has_optional_public_import_message();
  16297. if (optional_public_import_message_ == NULL) {
  16298. auto* p = CreateMaybeMessage<::protobuf_unittest_import::PublicImportMessage>(GetArenaNoVirtual());
  16299. optional_public_import_message_ = p;
  16300. }
  16301. // @@protoc_insertion_point(field_mutable:protobuf_unittest.TestAllTypes.optional_public_import_message)
  16302. return optional_public_import_message_;
  16303. }
  16304. inline void TestAllTypes::set_allocated_optional_public_import_message(::protobuf_unittest_import::PublicImportMessage* optional_public_import_message) {
  16305. ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
  16306. if (message_arena == NULL) {
  16307. delete reinterpret_cast< ::google::protobuf::MessageLite*>(optional_public_import_message_);
  16308. }
  16309. if (optional_public_import_message) {
  16310. ::google::protobuf::Arena* submessage_arena = NULL;
  16311. if (message_arena != submessage_arena) {
  16312. optional_public_import_message = ::google::protobuf::internal::GetOwnedMessage(
  16313. message_arena, optional_public_import_message, submessage_arena);
  16314. }
  16315. set_has_optional_public_import_message();
  16316. } else {
  16317. clear_has_optional_public_import_message();
  16318. }
  16319. optional_public_import_message_ = optional_public_import_message;
  16320. // @@protoc_insertion_point(field_set_allocated:protobuf_unittest.TestAllTypes.optional_public_import_message)
  16321. }
  16322. // optional .protobuf_unittest.TestAllTypes.NestedMessage optional_lazy_message = 27 [lazy = true];
  16323. inline bool TestAllTypes::has_optional_lazy_message() const {
  16324. return (_has_bits_[0] & 0x00002000u) != 0;
  16325. }
  16326. inline void TestAllTypes::set_has_optional_lazy_message() {
  16327. _has_bits_[0] |= 0x00002000u;
  16328. }
  16329. inline void TestAllTypes::clear_has_optional_lazy_message() {
  16330. _has_bits_[0] &= ~0x00002000u;
  16331. }
  16332. inline void TestAllTypes::clear_optional_lazy_message() {
  16333. if (optional_lazy_message_ != NULL) optional_lazy_message_->Clear();
  16334. clear_has_optional_lazy_message();
  16335. }
  16336. inline const ::protobuf_unittest::TestAllTypes_NestedMessage& TestAllTypes::_internal_optional_lazy_message() const {
  16337. return *optional_lazy_message_;
  16338. }
  16339. inline const ::protobuf_unittest::TestAllTypes_NestedMessage& TestAllTypes::optional_lazy_message() const {
  16340. const ::protobuf_unittest::TestAllTypes_NestedMessage* p = optional_lazy_message_;
  16341. // @@protoc_insertion_point(field_get:protobuf_unittest.TestAllTypes.optional_lazy_message)
  16342. return p != NULL ? *p : *reinterpret_cast<const ::protobuf_unittest::TestAllTypes_NestedMessage*>(
  16343. &::protobuf_unittest::_TestAllTypes_NestedMessage_default_instance_);
  16344. }
  16345. inline ::protobuf_unittest::TestAllTypes_NestedMessage* TestAllTypes::release_optional_lazy_message() {
  16346. // @@protoc_insertion_point(field_release:protobuf_unittest.TestAllTypes.optional_lazy_message)
  16347. clear_has_optional_lazy_message();
  16348. ::protobuf_unittest::TestAllTypes_NestedMessage* temp = optional_lazy_message_;
  16349. if (GetArenaNoVirtual() != NULL) {
  16350. temp = ::google::protobuf::internal::DuplicateIfNonNull(temp);
  16351. }
  16352. optional_lazy_message_ = NULL;
  16353. return temp;
  16354. }
  16355. inline ::protobuf_unittest::TestAllTypes_NestedMessage* TestAllTypes::unsafe_arena_release_optional_lazy_message() {
  16356. // @@protoc_insertion_point(field_unsafe_arena_release:protobuf_unittest.TestAllTypes.optional_lazy_message)
  16357. clear_has_optional_lazy_message();
  16358. ::protobuf_unittest::TestAllTypes_NestedMessage* temp = optional_lazy_message_;
  16359. optional_lazy_message_ = NULL;
  16360. return temp;
  16361. }
  16362. inline ::protobuf_unittest::TestAllTypes_NestedMessage* TestAllTypes::mutable_optional_lazy_message() {
  16363. set_has_optional_lazy_message();
  16364. if (optional_lazy_message_ == NULL) {
  16365. auto* p = CreateMaybeMessage<::protobuf_unittest::TestAllTypes_NestedMessage>(GetArenaNoVirtual());
  16366. optional_lazy_message_ = p;
  16367. }
  16368. // @@protoc_insertion_point(field_mutable:protobuf_unittest.TestAllTypes.optional_lazy_message)
  16369. return optional_lazy_message_;
  16370. }
  16371. inline void TestAllTypes::set_allocated_optional_lazy_message(::protobuf_unittest::TestAllTypes_NestedMessage* optional_lazy_message) {
  16372. ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
  16373. if (message_arena == NULL) {
  16374. delete optional_lazy_message_;
  16375. }
  16376. if (optional_lazy_message) {
  16377. ::google::protobuf::Arena* submessage_arena =
  16378. ::google::protobuf::Arena::GetArena(optional_lazy_message);
  16379. if (message_arena != submessage_arena) {
  16380. optional_lazy_message = ::google::protobuf::internal::GetOwnedMessage(
  16381. message_arena, optional_lazy_message, submessage_arena);
  16382. }
  16383. set_has_optional_lazy_message();
  16384. } else {
  16385. clear_has_optional_lazy_message();
  16386. }
  16387. optional_lazy_message_ = optional_lazy_message;
  16388. // @@protoc_insertion_point(field_set_allocated:protobuf_unittest.TestAllTypes.optional_lazy_message)
  16389. }
  16390. // repeated int32 repeated_int32 = 31;
  16391. inline int TestAllTypes::repeated_int32_size() const {
  16392. return repeated_int32_.size();
  16393. }
  16394. inline void TestAllTypes::clear_repeated_int32() {
  16395. repeated_int32_.Clear();
  16396. }
  16397. inline ::google::protobuf::int32 TestAllTypes::repeated_int32(int index) const {
  16398. // @@protoc_insertion_point(field_get:protobuf_unittest.TestAllTypes.repeated_int32)
  16399. return repeated_int32_.Get(index);
  16400. }
  16401. inline void TestAllTypes::set_repeated_int32(int index, ::google::protobuf::int32 value) {
  16402. repeated_int32_.Set(index, value);
  16403. // @@protoc_insertion_point(field_set:protobuf_unittest.TestAllTypes.repeated_int32)
  16404. }
  16405. inline void TestAllTypes::add_repeated_int32(::google::protobuf::int32 value) {
  16406. repeated_int32_.Add(value);
  16407. // @@protoc_insertion_point(field_add:protobuf_unittest.TestAllTypes.repeated_int32)
  16408. }
  16409. inline const ::google::protobuf::RepeatedField< ::google::protobuf::int32 >&
  16410. TestAllTypes::repeated_int32() const {
  16411. // @@protoc_insertion_point(field_list:protobuf_unittest.TestAllTypes.repeated_int32)
  16412. return repeated_int32_;
  16413. }
  16414. inline ::google::protobuf::RepeatedField< ::google::protobuf::int32 >*
  16415. TestAllTypes::mutable_repeated_int32() {
  16416. // @@protoc_insertion_point(field_mutable_list:protobuf_unittest.TestAllTypes.repeated_int32)
  16417. return &repeated_int32_;
  16418. }
  16419. // repeated int64 repeated_int64 = 32;
  16420. inline int TestAllTypes::repeated_int64_size() const {
  16421. return repeated_int64_.size();
  16422. }
  16423. inline void TestAllTypes::clear_repeated_int64() {
  16424. repeated_int64_.Clear();
  16425. }
  16426. inline ::google::protobuf::int64 TestAllTypes::repeated_int64(int index) const {
  16427. // @@protoc_insertion_point(field_get:protobuf_unittest.TestAllTypes.repeated_int64)
  16428. return repeated_int64_.Get(index);
  16429. }
  16430. inline void TestAllTypes::set_repeated_int64(int index, ::google::protobuf::int64 value) {
  16431. repeated_int64_.Set(index, value);
  16432. // @@protoc_insertion_point(field_set:protobuf_unittest.TestAllTypes.repeated_int64)
  16433. }
  16434. inline void TestAllTypes::add_repeated_int64(::google::protobuf::int64 value) {
  16435. repeated_int64_.Add(value);
  16436. // @@protoc_insertion_point(field_add:protobuf_unittest.TestAllTypes.repeated_int64)
  16437. }
  16438. inline const ::google::protobuf::RepeatedField< ::google::protobuf::int64 >&
  16439. TestAllTypes::repeated_int64() const {
  16440. // @@protoc_insertion_point(field_list:protobuf_unittest.TestAllTypes.repeated_int64)
  16441. return repeated_int64_;
  16442. }
  16443. inline ::google::protobuf::RepeatedField< ::google::protobuf::int64 >*
  16444. TestAllTypes::mutable_repeated_int64() {
  16445. // @@protoc_insertion_point(field_mutable_list:protobuf_unittest.TestAllTypes.repeated_int64)
  16446. return &repeated_int64_;
  16447. }
  16448. // repeated uint32 repeated_uint32 = 33;
  16449. inline int TestAllTypes::repeated_uint32_size() const {
  16450. return repeated_uint32_.size();
  16451. }
  16452. inline void TestAllTypes::clear_repeated_uint32() {
  16453. repeated_uint32_.Clear();
  16454. }
  16455. inline ::google::protobuf::uint32 TestAllTypes::repeated_uint32(int index) const {
  16456. // @@protoc_insertion_point(field_get:protobuf_unittest.TestAllTypes.repeated_uint32)
  16457. return repeated_uint32_.Get(index);
  16458. }
  16459. inline void TestAllTypes::set_repeated_uint32(int index, ::google::protobuf::uint32 value) {
  16460. repeated_uint32_.Set(index, value);
  16461. // @@protoc_insertion_point(field_set:protobuf_unittest.TestAllTypes.repeated_uint32)
  16462. }
  16463. inline void TestAllTypes::add_repeated_uint32(::google::protobuf::uint32 value) {
  16464. repeated_uint32_.Add(value);
  16465. // @@protoc_insertion_point(field_add:protobuf_unittest.TestAllTypes.repeated_uint32)
  16466. }
  16467. inline const ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >&
  16468. TestAllTypes::repeated_uint32() const {
  16469. // @@protoc_insertion_point(field_list:protobuf_unittest.TestAllTypes.repeated_uint32)
  16470. return repeated_uint32_;
  16471. }
  16472. inline ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >*
  16473. TestAllTypes::mutable_repeated_uint32() {
  16474. // @@protoc_insertion_point(field_mutable_list:protobuf_unittest.TestAllTypes.repeated_uint32)
  16475. return &repeated_uint32_;
  16476. }
  16477. // repeated uint64 repeated_uint64 = 34;
  16478. inline int TestAllTypes::repeated_uint64_size() const {
  16479. return repeated_uint64_.size();
  16480. }
  16481. inline void TestAllTypes::clear_repeated_uint64() {
  16482. repeated_uint64_.Clear();
  16483. }
  16484. inline ::google::protobuf::uint64 TestAllTypes::repeated_uint64(int index) const {
  16485. // @@protoc_insertion_point(field_get:protobuf_unittest.TestAllTypes.repeated_uint64)
  16486. return repeated_uint64_.Get(index);
  16487. }
  16488. inline void TestAllTypes::set_repeated_uint64(int index, ::google::protobuf::uint64 value) {
  16489. repeated_uint64_.Set(index, value);
  16490. // @@protoc_insertion_point(field_set:protobuf_unittest.TestAllTypes.repeated_uint64)
  16491. }
  16492. inline void TestAllTypes::add_repeated_uint64(::google::protobuf::uint64 value) {
  16493. repeated_uint64_.Add(value);
  16494. // @@protoc_insertion_point(field_add:protobuf_unittest.TestAllTypes.repeated_uint64)
  16495. }
  16496. inline const ::google::protobuf::RepeatedField< ::google::protobuf::uint64 >&
  16497. TestAllTypes::repeated_uint64() const {
  16498. // @@protoc_insertion_point(field_list:protobuf_unittest.TestAllTypes.repeated_uint64)
  16499. return repeated_uint64_;
  16500. }
  16501. inline ::google::protobuf::RepeatedField< ::google::protobuf::uint64 >*
  16502. TestAllTypes::mutable_repeated_uint64() {
  16503. // @@protoc_insertion_point(field_mutable_list:protobuf_unittest.TestAllTypes.repeated_uint64)
  16504. return &repeated_uint64_;
  16505. }
  16506. // repeated sint32 repeated_sint32 = 35;
  16507. inline int TestAllTypes::repeated_sint32_size() const {
  16508. return repeated_sint32_.size();
  16509. }
  16510. inline void TestAllTypes::clear_repeated_sint32() {
  16511. repeated_sint32_.Clear();
  16512. }
  16513. inline ::google::protobuf::int32 TestAllTypes::repeated_sint32(int index) const {
  16514. // @@protoc_insertion_point(field_get:protobuf_unittest.TestAllTypes.repeated_sint32)
  16515. return repeated_sint32_.Get(index);
  16516. }
  16517. inline void TestAllTypes::set_repeated_sint32(int index, ::google::protobuf::int32 value) {
  16518. repeated_sint32_.Set(index, value);
  16519. // @@protoc_insertion_point(field_set:protobuf_unittest.TestAllTypes.repeated_sint32)
  16520. }
  16521. inline void TestAllTypes::add_repeated_sint32(::google::protobuf::int32 value) {
  16522. repeated_sint32_.Add(value);
  16523. // @@protoc_insertion_point(field_add:protobuf_unittest.TestAllTypes.repeated_sint32)
  16524. }
  16525. inline const ::google::protobuf::RepeatedField< ::google::protobuf::int32 >&
  16526. TestAllTypes::repeated_sint32() const {
  16527. // @@protoc_insertion_point(field_list:protobuf_unittest.TestAllTypes.repeated_sint32)
  16528. return repeated_sint32_;
  16529. }
  16530. inline ::google::protobuf::RepeatedField< ::google::protobuf::int32 >*
  16531. TestAllTypes::mutable_repeated_sint32() {
  16532. // @@protoc_insertion_point(field_mutable_list:protobuf_unittest.TestAllTypes.repeated_sint32)
  16533. return &repeated_sint32_;
  16534. }
  16535. // repeated sint64 repeated_sint64 = 36;
  16536. inline int TestAllTypes::repeated_sint64_size() const {
  16537. return repeated_sint64_.size();
  16538. }
  16539. inline void TestAllTypes::clear_repeated_sint64() {
  16540. repeated_sint64_.Clear();
  16541. }
  16542. inline ::google::protobuf::int64 TestAllTypes::repeated_sint64(int index) const {
  16543. // @@protoc_insertion_point(field_get:protobuf_unittest.TestAllTypes.repeated_sint64)
  16544. return repeated_sint64_.Get(index);
  16545. }
  16546. inline void TestAllTypes::set_repeated_sint64(int index, ::google::protobuf::int64 value) {
  16547. repeated_sint64_.Set(index, value);
  16548. // @@protoc_insertion_point(field_set:protobuf_unittest.TestAllTypes.repeated_sint64)
  16549. }
  16550. inline void TestAllTypes::add_repeated_sint64(::google::protobuf::int64 value) {
  16551. repeated_sint64_.Add(value);
  16552. // @@protoc_insertion_point(field_add:protobuf_unittest.TestAllTypes.repeated_sint64)
  16553. }
  16554. inline const ::google::protobuf::RepeatedField< ::google::protobuf::int64 >&
  16555. TestAllTypes::repeated_sint64() const {
  16556. // @@protoc_insertion_point(field_list:protobuf_unittest.TestAllTypes.repeated_sint64)
  16557. return repeated_sint64_;
  16558. }
  16559. inline ::google::protobuf::RepeatedField< ::google::protobuf::int64 >*
  16560. TestAllTypes::mutable_repeated_sint64() {
  16561. // @@protoc_insertion_point(field_mutable_list:protobuf_unittest.TestAllTypes.repeated_sint64)
  16562. return &repeated_sint64_;
  16563. }
  16564. // repeated fixed32 repeated_fixed32 = 37;
  16565. inline int TestAllTypes::repeated_fixed32_size() const {
  16566. return repeated_fixed32_.size();
  16567. }
  16568. inline void TestAllTypes::clear_repeated_fixed32() {
  16569. repeated_fixed32_.Clear();
  16570. }
  16571. inline ::google::protobuf::uint32 TestAllTypes::repeated_fixed32(int index) const {
  16572. // @@protoc_insertion_point(field_get:protobuf_unittest.TestAllTypes.repeated_fixed32)
  16573. return repeated_fixed32_.Get(index);
  16574. }
  16575. inline void TestAllTypes::set_repeated_fixed32(int index, ::google::protobuf::uint32 value) {
  16576. repeated_fixed32_.Set(index, value);
  16577. // @@protoc_insertion_point(field_set:protobuf_unittest.TestAllTypes.repeated_fixed32)
  16578. }
  16579. inline void TestAllTypes::add_repeated_fixed32(::google::protobuf::uint32 value) {
  16580. repeated_fixed32_.Add(value);
  16581. // @@protoc_insertion_point(field_add:protobuf_unittest.TestAllTypes.repeated_fixed32)
  16582. }
  16583. inline const ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >&
  16584. TestAllTypes::repeated_fixed32() const {
  16585. // @@protoc_insertion_point(field_list:protobuf_unittest.TestAllTypes.repeated_fixed32)
  16586. return repeated_fixed32_;
  16587. }
  16588. inline ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >*
  16589. TestAllTypes::mutable_repeated_fixed32() {
  16590. // @@protoc_insertion_point(field_mutable_list:protobuf_unittest.TestAllTypes.repeated_fixed32)
  16591. return &repeated_fixed32_;
  16592. }
  16593. // repeated fixed64 repeated_fixed64 = 38;
  16594. inline int TestAllTypes::repeated_fixed64_size() const {
  16595. return repeated_fixed64_.size();
  16596. }
  16597. inline void TestAllTypes::clear_repeated_fixed64() {
  16598. repeated_fixed64_.Clear();
  16599. }
  16600. inline ::google::protobuf::uint64 TestAllTypes::repeated_fixed64(int index) const {
  16601. // @@protoc_insertion_point(field_get:protobuf_unittest.TestAllTypes.repeated_fixed64)
  16602. return repeated_fixed64_.Get(index);
  16603. }
  16604. inline void TestAllTypes::set_repeated_fixed64(int index, ::google::protobuf::uint64 value) {
  16605. repeated_fixed64_.Set(index, value);
  16606. // @@protoc_insertion_point(field_set:protobuf_unittest.TestAllTypes.repeated_fixed64)
  16607. }
  16608. inline void TestAllTypes::add_repeated_fixed64(::google::protobuf::uint64 value) {
  16609. repeated_fixed64_.Add(value);
  16610. // @@protoc_insertion_point(field_add:protobuf_unittest.TestAllTypes.repeated_fixed64)
  16611. }
  16612. inline const ::google::protobuf::RepeatedField< ::google::protobuf::uint64 >&
  16613. TestAllTypes::repeated_fixed64() const {
  16614. // @@protoc_insertion_point(field_list:protobuf_unittest.TestAllTypes.repeated_fixed64)
  16615. return repeated_fixed64_;
  16616. }
  16617. inline ::google::protobuf::RepeatedField< ::google::protobuf::uint64 >*
  16618. TestAllTypes::mutable_repeated_fixed64() {
  16619. // @@protoc_insertion_point(field_mutable_list:protobuf_unittest.TestAllTypes.repeated_fixed64)
  16620. return &repeated_fixed64_;
  16621. }
  16622. // repeated sfixed32 repeated_sfixed32 = 39;
  16623. inline int TestAllTypes::repeated_sfixed32_size() const {
  16624. return repeated_sfixed32_.size();
  16625. }
  16626. inline void TestAllTypes::clear_repeated_sfixed32() {
  16627. repeated_sfixed32_.Clear();
  16628. }
  16629. inline ::google::protobuf::int32 TestAllTypes::repeated_sfixed32(int index) const {
  16630. // @@protoc_insertion_point(field_get:protobuf_unittest.TestAllTypes.repeated_sfixed32)
  16631. return repeated_sfixed32_.Get(index);
  16632. }
  16633. inline void TestAllTypes::set_repeated_sfixed32(int index, ::google::protobuf::int32 value) {
  16634. repeated_sfixed32_.Set(index, value);
  16635. // @@protoc_insertion_point(field_set:protobuf_unittest.TestAllTypes.repeated_sfixed32)
  16636. }
  16637. inline void TestAllTypes::add_repeated_sfixed32(::google::protobuf::int32 value) {
  16638. repeated_sfixed32_.Add(value);
  16639. // @@protoc_insertion_point(field_add:protobuf_unittest.TestAllTypes.repeated_sfixed32)
  16640. }
  16641. inline const ::google::protobuf::RepeatedField< ::google::protobuf::int32 >&
  16642. TestAllTypes::repeated_sfixed32() const {
  16643. // @@protoc_insertion_point(field_list:protobuf_unittest.TestAllTypes.repeated_sfixed32)
  16644. return repeated_sfixed32_;
  16645. }
  16646. inline ::google::protobuf::RepeatedField< ::google::protobuf::int32 >*
  16647. TestAllTypes::mutable_repeated_sfixed32() {
  16648. // @@protoc_insertion_point(field_mutable_list:protobuf_unittest.TestAllTypes.repeated_sfixed32)
  16649. return &repeated_sfixed32_;
  16650. }
  16651. // repeated sfixed64 repeated_sfixed64 = 40;
  16652. inline int TestAllTypes::repeated_sfixed64_size() const {
  16653. return repeated_sfixed64_.size();
  16654. }
  16655. inline void TestAllTypes::clear_repeated_sfixed64() {
  16656. repeated_sfixed64_.Clear();
  16657. }
  16658. inline ::google::protobuf::int64 TestAllTypes::repeated_sfixed64(int index) const {
  16659. // @@protoc_insertion_point(field_get:protobuf_unittest.TestAllTypes.repeated_sfixed64)
  16660. return repeated_sfixed64_.Get(index);
  16661. }
  16662. inline void TestAllTypes::set_repeated_sfixed64(int index, ::google::protobuf::int64 value) {
  16663. repeated_sfixed64_.Set(index, value);
  16664. // @@protoc_insertion_point(field_set:protobuf_unittest.TestAllTypes.repeated_sfixed64)
  16665. }
  16666. inline void TestAllTypes::add_repeated_sfixed64(::google::protobuf::int64 value) {
  16667. repeated_sfixed64_.Add(value);
  16668. // @@protoc_insertion_point(field_add:protobuf_unittest.TestAllTypes.repeated_sfixed64)
  16669. }
  16670. inline const ::google::protobuf::RepeatedField< ::google::protobuf::int64 >&
  16671. TestAllTypes::repeated_sfixed64() const {
  16672. // @@protoc_insertion_point(field_list:protobuf_unittest.TestAllTypes.repeated_sfixed64)
  16673. return repeated_sfixed64_;
  16674. }
  16675. inline ::google::protobuf::RepeatedField< ::google::protobuf::int64 >*
  16676. TestAllTypes::mutable_repeated_sfixed64() {
  16677. // @@protoc_insertion_point(field_mutable_list:protobuf_unittest.TestAllTypes.repeated_sfixed64)
  16678. return &repeated_sfixed64_;
  16679. }
  16680. // repeated float repeated_float = 41;
  16681. inline int TestAllTypes::repeated_float_size() const {
  16682. return repeated_float_.size();
  16683. }
  16684. inline void TestAllTypes::clear_repeated_float() {
  16685. repeated_float_.Clear();
  16686. }
  16687. inline float TestAllTypes::repeated_float(int index) const {
  16688. // @@protoc_insertion_point(field_get:protobuf_unittest.TestAllTypes.repeated_float)
  16689. return repeated_float_.Get(index);
  16690. }
  16691. inline void TestAllTypes::set_repeated_float(int index, float value) {
  16692. repeated_float_.Set(index, value);
  16693. // @@protoc_insertion_point(field_set:protobuf_unittest.TestAllTypes.repeated_float)
  16694. }
  16695. inline void TestAllTypes::add_repeated_float(float value) {
  16696. repeated_float_.Add(value);
  16697. // @@protoc_insertion_point(field_add:protobuf_unittest.TestAllTypes.repeated_float)
  16698. }
  16699. inline const ::google::protobuf::RepeatedField< float >&
  16700. TestAllTypes::repeated_float() const {
  16701. // @@protoc_insertion_point(field_list:protobuf_unittest.TestAllTypes.repeated_float)
  16702. return repeated_float_;
  16703. }
  16704. inline ::google::protobuf::RepeatedField< float >*
  16705. TestAllTypes::mutable_repeated_float() {
  16706. // @@protoc_insertion_point(field_mutable_list:protobuf_unittest.TestAllTypes.repeated_float)
  16707. return &repeated_float_;
  16708. }
  16709. // repeated double repeated_double = 42;
  16710. inline int TestAllTypes::repeated_double_size() const {
  16711. return repeated_double_.size();
  16712. }
  16713. inline void TestAllTypes::clear_repeated_double() {
  16714. repeated_double_.Clear();
  16715. }
  16716. inline double TestAllTypes::repeated_double(int index) const {
  16717. // @@protoc_insertion_point(field_get:protobuf_unittest.TestAllTypes.repeated_double)
  16718. return repeated_double_.Get(index);
  16719. }
  16720. inline void TestAllTypes::set_repeated_double(int index, double value) {
  16721. repeated_double_.Set(index, value);
  16722. // @@protoc_insertion_point(field_set:protobuf_unittest.TestAllTypes.repeated_double)
  16723. }
  16724. inline void TestAllTypes::add_repeated_double(double value) {
  16725. repeated_double_.Add(value);
  16726. // @@protoc_insertion_point(field_add:protobuf_unittest.TestAllTypes.repeated_double)
  16727. }
  16728. inline const ::google::protobuf::RepeatedField< double >&
  16729. TestAllTypes::repeated_double() const {
  16730. // @@protoc_insertion_point(field_list:protobuf_unittest.TestAllTypes.repeated_double)
  16731. return repeated_double_;
  16732. }
  16733. inline ::google::protobuf::RepeatedField< double >*
  16734. TestAllTypes::mutable_repeated_double() {
  16735. // @@protoc_insertion_point(field_mutable_list:protobuf_unittest.TestAllTypes.repeated_double)
  16736. return &repeated_double_;
  16737. }
  16738. // repeated bool repeated_bool = 43;
  16739. inline int TestAllTypes::repeated_bool_size() const {
  16740. return repeated_bool_.size();
  16741. }
  16742. inline void TestAllTypes::clear_repeated_bool() {
  16743. repeated_bool_.Clear();
  16744. }
  16745. inline bool TestAllTypes::repeated_bool(int index) const {
  16746. // @@protoc_insertion_point(field_get:protobuf_unittest.TestAllTypes.repeated_bool)
  16747. return repeated_bool_.Get(index);
  16748. }
  16749. inline void TestAllTypes::set_repeated_bool(int index, bool value) {
  16750. repeated_bool_.Set(index, value);
  16751. // @@protoc_insertion_point(field_set:protobuf_unittest.TestAllTypes.repeated_bool)
  16752. }
  16753. inline void TestAllTypes::add_repeated_bool(bool value) {
  16754. repeated_bool_.Add(value);
  16755. // @@protoc_insertion_point(field_add:protobuf_unittest.TestAllTypes.repeated_bool)
  16756. }
  16757. inline const ::google::protobuf::RepeatedField< bool >&
  16758. TestAllTypes::repeated_bool() const {
  16759. // @@protoc_insertion_point(field_list:protobuf_unittest.TestAllTypes.repeated_bool)
  16760. return repeated_bool_;
  16761. }
  16762. inline ::google::protobuf::RepeatedField< bool >*
  16763. TestAllTypes::mutable_repeated_bool() {
  16764. // @@protoc_insertion_point(field_mutable_list:protobuf_unittest.TestAllTypes.repeated_bool)
  16765. return &repeated_bool_;
  16766. }
  16767. // repeated string repeated_string = 44;
  16768. inline int TestAllTypes::repeated_string_size() const {
  16769. return repeated_string_.size();
  16770. }
  16771. inline void TestAllTypes::clear_repeated_string() {
  16772. repeated_string_.Clear();
  16773. }
  16774. inline const ::std::string& TestAllTypes::repeated_string(int index) const {
  16775. // @@protoc_insertion_point(field_get:protobuf_unittest.TestAllTypes.repeated_string)
  16776. return repeated_string_.Get(index);
  16777. }
  16778. inline ::std::string* TestAllTypes::mutable_repeated_string(int index) {
  16779. // @@protoc_insertion_point(field_mutable:protobuf_unittest.TestAllTypes.repeated_string)
  16780. return repeated_string_.Mutable(index);
  16781. }
  16782. inline void TestAllTypes::set_repeated_string(int index, const ::std::string& value) {
  16783. // @@protoc_insertion_point(field_set:protobuf_unittest.TestAllTypes.repeated_string)
  16784. repeated_string_.Mutable(index)->assign(value);
  16785. }
  16786. #if LANG_CXX11
  16787. inline void TestAllTypes::set_repeated_string(int index, ::std::string&& value) {
  16788. // @@protoc_insertion_point(field_set:protobuf_unittest.TestAllTypes.repeated_string)
  16789. repeated_string_.Mutable(index)->assign(std::move(value));
  16790. }
  16791. #endif
  16792. inline void TestAllTypes::set_repeated_string(int index, const char* value) {
  16793. GOOGLE_DCHECK(value != NULL);
  16794. repeated_string_.Mutable(index)->assign(value);
  16795. // @@protoc_insertion_point(field_set_char:protobuf_unittest.TestAllTypes.repeated_string)
  16796. }
  16797. inline void TestAllTypes::set_repeated_string(int index, const char* value, size_t size) {
  16798. repeated_string_.Mutable(index)->assign(
  16799. reinterpret_cast<const char*>(value), size);
  16800. // @@protoc_insertion_point(field_set_pointer:protobuf_unittest.TestAllTypes.repeated_string)
  16801. }
  16802. inline ::std::string* TestAllTypes::add_repeated_string() {
  16803. // @@protoc_insertion_point(field_add_mutable:protobuf_unittest.TestAllTypes.repeated_string)
  16804. return repeated_string_.Add();
  16805. }
  16806. inline void TestAllTypes::add_repeated_string(const ::std::string& value) {
  16807. repeated_string_.Add()->assign(value);
  16808. // @@protoc_insertion_point(field_add:protobuf_unittest.TestAllTypes.repeated_string)
  16809. }
  16810. #if LANG_CXX11
  16811. inline void TestAllTypes::add_repeated_string(::std::string&& value) {
  16812. repeated_string_.Add(std::move(value));
  16813. // @@protoc_insertion_point(field_add:protobuf_unittest.TestAllTypes.repeated_string)
  16814. }
  16815. #endif
  16816. inline void TestAllTypes::add_repeated_string(const char* value) {
  16817. GOOGLE_DCHECK(value != NULL);
  16818. repeated_string_.Add()->assign(value);
  16819. // @@protoc_insertion_point(field_add_char:protobuf_unittest.TestAllTypes.repeated_string)
  16820. }
  16821. inline void TestAllTypes::add_repeated_string(const char* value, size_t size) {
  16822. repeated_string_.Add()->assign(reinterpret_cast<const char*>(value), size);
  16823. // @@protoc_insertion_point(field_add_pointer:protobuf_unittest.TestAllTypes.repeated_string)
  16824. }
  16825. inline const ::google::protobuf::RepeatedPtrField< ::std::string>&
  16826. TestAllTypes::repeated_string() const {
  16827. // @@protoc_insertion_point(field_list:protobuf_unittest.TestAllTypes.repeated_string)
  16828. return repeated_string_;
  16829. }
  16830. inline ::google::protobuf::RepeatedPtrField< ::std::string>*
  16831. TestAllTypes::mutable_repeated_string() {
  16832. // @@protoc_insertion_point(field_mutable_list:protobuf_unittest.TestAllTypes.repeated_string)
  16833. return &repeated_string_;
  16834. }
  16835. // repeated bytes repeated_bytes = 45;
  16836. inline int TestAllTypes::repeated_bytes_size() const {
  16837. return repeated_bytes_.size();
  16838. }
  16839. inline void TestAllTypes::clear_repeated_bytes() {
  16840. repeated_bytes_.Clear();
  16841. }
  16842. inline const ::std::string& TestAllTypes::repeated_bytes(int index) const {
  16843. // @@protoc_insertion_point(field_get:protobuf_unittest.TestAllTypes.repeated_bytes)
  16844. return repeated_bytes_.Get(index);
  16845. }
  16846. inline ::std::string* TestAllTypes::mutable_repeated_bytes(int index) {
  16847. // @@protoc_insertion_point(field_mutable:protobuf_unittest.TestAllTypes.repeated_bytes)
  16848. return repeated_bytes_.Mutable(index);
  16849. }
  16850. inline void TestAllTypes::set_repeated_bytes(int index, const ::std::string& value) {
  16851. // @@protoc_insertion_point(field_set:protobuf_unittest.TestAllTypes.repeated_bytes)
  16852. repeated_bytes_.Mutable(index)->assign(value);
  16853. }
  16854. #if LANG_CXX11
  16855. inline void TestAllTypes::set_repeated_bytes(int index, ::std::string&& value) {
  16856. // @@protoc_insertion_point(field_set:protobuf_unittest.TestAllTypes.repeated_bytes)
  16857. repeated_bytes_.Mutable(index)->assign(std::move(value));
  16858. }
  16859. #endif
  16860. inline void TestAllTypes::set_repeated_bytes(int index, const char* value) {
  16861. GOOGLE_DCHECK(value != NULL);
  16862. repeated_bytes_.Mutable(index)->assign(value);
  16863. // @@protoc_insertion_point(field_set_char:protobuf_unittest.TestAllTypes.repeated_bytes)
  16864. }
  16865. inline void TestAllTypes::set_repeated_bytes(int index, const void* value, size_t size) {
  16866. repeated_bytes_.Mutable(index)->assign(
  16867. reinterpret_cast<const char*>(value), size);
  16868. // @@protoc_insertion_point(field_set_pointer:protobuf_unittest.TestAllTypes.repeated_bytes)
  16869. }
  16870. inline ::std::string* TestAllTypes::add_repeated_bytes() {
  16871. // @@protoc_insertion_point(field_add_mutable:protobuf_unittest.TestAllTypes.repeated_bytes)
  16872. return repeated_bytes_.Add();
  16873. }
  16874. inline void TestAllTypes::add_repeated_bytes(const ::std::string& value) {
  16875. repeated_bytes_.Add()->assign(value);
  16876. // @@protoc_insertion_point(field_add:protobuf_unittest.TestAllTypes.repeated_bytes)
  16877. }
  16878. #if LANG_CXX11
  16879. inline void TestAllTypes::add_repeated_bytes(::std::string&& value) {
  16880. repeated_bytes_.Add(std::move(value));
  16881. // @@protoc_insertion_point(field_add:protobuf_unittest.TestAllTypes.repeated_bytes)
  16882. }
  16883. #endif
  16884. inline void TestAllTypes::add_repeated_bytes(const char* value) {
  16885. GOOGLE_DCHECK(value != NULL);
  16886. repeated_bytes_.Add()->assign(value);
  16887. // @@protoc_insertion_point(field_add_char:protobuf_unittest.TestAllTypes.repeated_bytes)
  16888. }
  16889. inline void TestAllTypes::add_repeated_bytes(const void* value, size_t size) {
  16890. repeated_bytes_.Add()->assign(reinterpret_cast<const char*>(value), size);
  16891. // @@protoc_insertion_point(field_add_pointer:protobuf_unittest.TestAllTypes.repeated_bytes)
  16892. }
  16893. inline const ::google::protobuf::RepeatedPtrField< ::std::string>&
  16894. TestAllTypes::repeated_bytes() const {
  16895. // @@protoc_insertion_point(field_list:protobuf_unittest.TestAllTypes.repeated_bytes)
  16896. return repeated_bytes_;
  16897. }
  16898. inline ::google::protobuf::RepeatedPtrField< ::std::string>*
  16899. TestAllTypes::mutable_repeated_bytes() {
  16900. // @@protoc_insertion_point(field_mutable_list:protobuf_unittest.TestAllTypes.repeated_bytes)
  16901. return &repeated_bytes_;
  16902. }
  16903. // repeated group RepeatedGroup = 46 { ... };
  16904. inline int TestAllTypes::repeatedgroup_size() const {
  16905. return repeatedgroup_.size();
  16906. }
  16907. inline void TestAllTypes::clear_repeatedgroup() {
  16908. repeatedgroup_.Clear();
  16909. }
  16910. inline ::protobuf_unittest::TestAllTypes_RepeatedGroup* TestAllTypes::mutable_repeatedgroup(int index) {
  16911. // @@protoc_insertion_point(field_mutable:protobuf_unittest.TestAllTypes.repeatedgroup)
  16912. return repeatedgroup_.Mutable(index);
  16913. }
  16914. inline ::google::protobuf::RepeatedPtrField< ::protobuf_unittest::TestAllTypes_RepeatedGroup >*
  16915. TestAllTypes::mutable_repeatedgroup() {
  16916. // @@protoc_insertion_point(field_mutable_list:protobuf_unittest.TestAllTypes.repeatedgroup)
  16917. return &repeatedgroup_;
  16918. }
  16919. inline const ::protobuf_unittest::TestAllTypes_RepeatedGroup& TestAllTypes::repeatedgroup(int index) const {
  16920. // @@protoc_insertion_point(field_get:protobuf_unittest.TestAllTypes.repeatedgroup)
  16921. return repeatedgroup_.Get(index);
  16922. }
  16923. inline ::protobuf_unittest::TestAllTypes_RepeatedGroup* TestAllTypes::add_repeatedgroup() {
  16924. // @@protoc_insertion_point(field_add:protobuf_unittest.TestAllTypes.repeatedgroup)
  16925. return repeatedgroup_.Add();
  16926. }
  16927. inline const ::google::protobuf::RepeatedPtrField< ::protobuf_unittest::TestAllTypes_RepeatedGroup >&
  16928. TestAllTypes::repeatedgroup() const {
  16929. // @@protoc_insertion_point(field_list:protobuf_unittest.TestAllTypes.repeatedgroup)
  16930. return repeatedgroup_;
  16931. }
  16932. // repeated .protobuf_unittest.TestAllTypes.NestedMessage repeated_nested_message = 48;
  16933. inline int TestAllTypes::repeated_nested_message_size() const {
  16934. return repeated_nested_message_.size();
  16935. }
  16936. inline void TestAllTypes::clear_repeated_nested_message() {
  16937. repeated_nested_message_.Clear();
  16938. }
  16939. inline ::protobuf_unittest::TestAllTypes_NestedMessage* TestAllTypes::mutable_repeated_nested_message(int index) {
  16940. // @@protoc_insertion_point(field_mutable:protobuf_unittest.TestAllTypes.repeated_nested_message)
  16941. return repeated_nested_message_.Mutable(index);
  16942. }
  16943. inline ::google::protobuf::RepeatedPtrField< ::protobuf_unittest::TestAllTypes_NestedMessage >*
  16944. TestAllTypes::mutable_repeated_nested_message() {
  16945. // @@protoc_insertion_point(field_mutable_list:protobuf_unittest.TestAllTypes.repeated_nested_message)
  16946. return &repeated_nested_message_;
  16947. }
  16948. inline const ::protobuf_unittest::TestAllTypes_NestedMessage& TestAllTypes::repeated_nested_message(int index) const {
  16949. // @@protoc_insertion_point(field_get:protobuf_unittest.TestAllTypes.repeated_nested_message)
  16950. return repeated_nested_message_.Get(index);
  16951. }
  16952. inline ::protobuf_unittest::TestAllTypes_NestedMessage* TestAllTypes::add_repeated_nested_message() {
  16953. // @@protoc_insertion_point(field_add:protobuf_unittest.TestAllTypes.repeated_nested_message)
  16954. return repeated_nested_message_.Add();
  16955. }
  16956. inline const ::google::protobuf::RepeatedPtrField< ::protobuf_unittest::TestAllTypes_NestedMessage >&
  16957. TestAllTypes::repeated_nested_message() const {
  16958. // @@protoc_insertion_point(field_list:protobuf_unittest.TestAllTypes.repeated_nested_message)
  16959. return repeated_nested_message_;
  16960. }
  16961. // repeated .protobuf_unittest.ForeignMessage repeated_foreign_message = 49;
  16962. inline int TestAllTypes::repeated_foreign_message_size() const {
  16963. return repeated_foreign_message_.size();
  16964. }
  16965. inline void TestAllTypes::clear_repeated_foreign_message() {
  16966. repeated_foreign_message_.Clear();
  16967. }
  16968. inline ::protobuf_unittest::ForeignMessage* TestAllTypes::mutable_repeated_foreign_message(int index) {
  16969. // @@protoc_insertion_point(field_mutable:protobuf_unittest.TestAllTypes.repeated_foreign_message)
  16970. return repeated_foreign_message_.Mutable(index);
  16971. }
  16972. inline ::google::protobuf::RepeatedPtrField< ::protobuf_unittest::ForeignMessage >*
  16973. TestAllTypes::mutable_repeated_foreign_message() {
  16974. // @@protoc_insertion_point(field_mutable_list:protobuf_unittest.TestAllTypes.repeated_foreign_message)
  16975. return &repeated_foreign_message_;
  16976. }
  16977. inline const ::protobuf_unittest::ForeignMessage& TestAllTypes::repeated_foreign_message(int index) const {
  16978. // @@protoc_insertion_point(field_get:protobuf_unittest.TestAllTypes.repeated_foreign_message)
  16979. return repeated_foreign_message_.Get(index);
  16980. }
  16981. inline ::protobuf_unittest::ForeignMessage* TestAllTypes::add_repeated_foreign_message() {
  16982. // @@protoc_insertion_point(field_add:protobuf_unittest.TestAllTypes.repeated_foreign_message)
  16983. return repeated_foreign_message_.Add();
  16984. }
  16985. inline const ::google::protobuf::RepeatedPtrField< ::protobuf_unittest::ForeignMessage >&
  16986. TestAllTypes::repeated_foreign_message() const {
  16987. // @@protoc_insertion_point(field_list:protobuf_unittest.TestAllTypes.repeated_foreign_message)
  16988. return repeated_foreign_message_;
  16989. }
  16990. // repeated .protobuf_unittest_import.ImportMessage repeated_import_message = 50;
  16991. inline int TestAllTypes::repeated_import_message_size() const {
  16992. return repeated_import_message_.size();
  16993. }
  16994. inline ::protobuf_unittest_import::ImportMessage* TestAllTypes::mutable_repeated_import_message(int index) {
  16995. // @@protoc_insertion_point(field_mutable:protobuf_unittest.TestAllTypes.repeated_import_message)
  16996. return repeated_import_message_.Mutable(index);
  16997. }
  16998. inline ::google::protobuf::RepeatedPtrField< ::protobuf_unittest_import::ImportMessage >*
  16999. TestAllTypes::mutable_repeated_import_message() {
  17000. // @@protoc_insertion_point(field_mutable_list:protobuf_unittest.TestAllTypes.repeated_import_message)
  17001. return &repeated_import_message_;
  17002. }
  17003. inline const ::protobuf_unittest_import::ImportMessage& TestAllTypes::repeated_import_message(int index) const {
  17004. // @@protoc_insertion_point(field_get:protobuf_unittest.TestAllTypes.repeated_import_message)
  17005. return repeated_import_message_.Get(index);
  17006. }
  17007. inline ::protobuf_unittest_import::ImportMessage* TestAllTypes::add_repeated_import_message() {
  17008. // @@protoc_insertion_point(field_add:protobuf_unittest.TestAllTypes.repeated_import_message)
  17009. return repeated_import_message_.Add();
  17010. }
  17011. inline const ::google::protobuf::RepeatedPtrField< ::protobuf_unittest_import::ImportMessage >&
  17012. TestAllTypes::repeated_import_message() const {
  17013. // @@protoc_insertion_point(field_list:protobuf_unittest.TestAllTypes.repeated_import_message)
  17014. return repeated_import_message_;
  17015. }
  17016. // repeated .protobuf_unittest.TestAllTypes.NestedEnum repeated_nested_enum = 51;
  17017. inline int TestAllTypes::repeated_nested_enum_size() const {
  17018. return repeated_nested_enum_.size();
  17019. }
  17020. inline void TestAllTypes::clear_repeated_nested_enum() {
  17021. repeated_nested_enum_.Clear();
  17022. }
  17023. inline ::protobuf_unittest::TestAllTypes_NestedEnum TestAllTypes::repeated_nested_enum(int index) const {
  17024. // @@protoc_insertion_point(field_get:protobuf_unittest.TestAllTypes.repeated_nested_enum)
  17025. return static_cast< ::protobuf_unittest::TestAllTypes_NestedEnum >(repeated_nested_enum_.Get(index));
  17026. }
  17027. inline void TestAllTypes::set_repeated_nested_enum(int index, ::protobuf_unittest::TestAllTypes_NestedEnum value) {
  17028. assert(::protobuf_unittest::TestAllTypes_NestedEnum_IsValid(value));
  17029. repeated_nested_enum_.Set(index, value);
  17030. // @@protoc_insertion_point(field_set:protobuf_unittest.TestAllTypes.repeated_nested_enum)
  17031. }
  17032. inline void TestAllTypes::add_repeated_nested_enum(::protobuf_unittest::TestAllTypes_NestedEnum value) {
  17033. assert(::protobuf_unittest::TestAllTypes_NestedEnum_IsValid(value));
  17034. repeated_nested_enum_.Add(value);
  17035. // @@protoc_insertion_point(field_add:protobuf_unittest.TestAllTypes.repeated_nested_enum)
  17036. }
  17037. inline const ::google::protobuf::RepeatedField<int>&
  17038. TestAllTypes::repeated_nested_enum() const {
  17039. // @@protoc_insertion_point(field_list:protobuf_unittest.TestAllTypes.repeated_nested_enum)
  17040. return repeated_nested_enum_;
  17041. }
  17042. inline ::google::protobuf::RepeatedField<int>*
  17043. TestAllTypes::mutable_repeated_nested_enum() {
  17044. // @@protoc_insertion_point(field_mutable_list:protobuf_unittest.TestAllTypes.repeated_nested_enum)
  17045. return &repeated_nested_enum_;
  17046. }
  17047. // repeated .protobuf_unittest.ForeignEnum repeated_foreign_enum = 52;
  17048. inline int TestAllTypes::repeated_foreign_enum_size() const {
  17049. return repeated_foreign_enum_.size();
  17050. }
  17051. inline void TestAllTypes::clear_repeated_foreign_enum() {
  17052. repeated_foreign_enum_.Clear();
  17053. }
  17054. inline ::protobuf_unittest::ForeignEnum TestAllTypes::repeated_foreign_enum(int index) const {
  17055. // @@protoc_insertion_point(field_get:protobuf_unittest.TestAllTypes.repeated_foreign_enum)
  17056. return static_cast< ::protobuf_unittest::ForeignEnum >(repeated_foreign_enum_.Get(index));
  17057. }
  17058. inline void TestAllTypes::set_repeated_foreign_enum(int index, ::protobuf_unittest::ForeignEnum value) {
  17059. assert(::protobuf_unittest::ForeignEnum_IsValid(value));
  17060. repeated_foreign_enum_.Set(index, value);
  17061. // @@protoc_insertion_point(field_set:protobuf_unittest.TestAllTypes.repeated_foreign_enum)
  17062. }
  17063. inline void TestAllTypes::add_repeated_foreign_enum(::protobuf_unittest::ForeignEnum value) {
  17064. assert(::protobuf_unittest::ForeignEnum_IsValid(value));
  17065. repeated_foreign_enum_.Add(value);
  17066. // @@protoc_insertion_point(field_add:protobuf_unittest.TestAllTypes.repeated_foreign_enum)
  17067. }
  17068. inline const ::google::protobuf::RepeatedField<int>&
  17069. TestAllTypes::repeated_foreign_enum() const {
  17070. // @@protoc_insertion_point(field_list:protobuf_unittest.TestAllTypes.repeated_foreign_enum)
  17071. return repeated_foreign_enum_;
  17072. }
  17073. inline ::google::protobuf::RepeatedField<int>*
  17074. TestAllTypes::mutable_repeated_foreign_enum() {
  17075. // @@protoc_insertion_point(field_mutable_list:protobuf_unittest.TestAllTypes.repeated_foreign_enum)
  17076. return &repeated_foreign_enum_;
  17077. }
  17078. // repeated .protobuf_unittest_import.ImportEnum repeated_import_enum = 53;
  17079. inline int TestAllTypes::repeated_import_enum_size() const {
  17080. return repeated_import_enum_.size();
  17081. }
  17082. inline void TestAllTypes::clear_repeated_import_enum() {
  17083. repeated_import_enum_.Clear();
  17084. }
  17085. inline ::protobuf_unittest_import::ImportEnum TestAllTypes::repeated_import_enum(int index) const {
  17086. // @@protoc_insertion_point(field_get:protobuf_unittest.TestAllTypes.repeated_import_enum)
  17087. return static_cast< ::protobuf_unittest_import::ImportEnum >(repeated_import_enum_.Get(index));
  17088. }
  17089. inline void TestAllTypes::set_repeated_import_enum(int index, ::protobuf_unittest_import::ImportEnum value) {
  17090. assert(::protobuf_unittest_import::ImportEnum_IsValid(value));
  17091. repeated_import_enum_.Set(index, value);
  17092. // @@protoc_insertion_point(field_set:protobuf_unittest.TestAllTypes.repeated_import_enum)
  17093. }
  17094. inline void TestAllTypes::add_repeated_import_enum(::protobuf_unittest_import::ImportEnum value) {
  17095. assert(::protobuf_unittest_import::ImportEnum_IsValid(value));
  17096. repeated_import_enum_.Add(value);
  17097. // @@protoc_insertion_point(field_add:protobuf_unittest.TestAllTypes.repeated_import_enum)
  17098. }
  17099. inline const ::google::protobuf::RepeatedField<int>&
  17100. TestAllTypes::repeated_import_enum() const {
  17101. // @@protoc_insertion_point(field_list:protobuf_unittest.TestAllTypes.repeated_import_enum)
  17102. return repeated_import_enum_;
  17103. }
  17104. inline ::google::protobuf::RepeatedField<int>*
  17105. TestAllTypes::mutable_repeated_import_enum() {
  17106. // @@protoc_insertion_point(field_mutable_list:protobuf_unittest.TestAllTypes.repeated_import_enum)
  17107. return &repeated_import_enum_;
  17108. }
  17109. // repeated string repeated_string_piece = 54 [ctype = STRING_PIECE];
  17110. inline int TestAllTypes::repeated_string_piece_size() const {
  17111. return repeated_string_piece_.size();
  17112. }
  17113. inline void TestAllTypes::clear_repeated_string_piece() {
  17114. repeated_string_piece_.Clear();
  17115. }
  17116. inline const ::std::string& TestAllTypes::repeated_string_piece(int index) const {
  17117. // @@protoc_insertion_point(field_get:protobuf_unittest.TestAllTypes.repeated_string_piece)
  17118. return repeated_string_piece_.Get(index);
  17119. }
  17120. inline ::std::string* TestAllTypes::mutable_repeated_string_piece(int index) {
  17121. // @@protoc_insertion_point(field_mutable:protobuf_unittest.TestAllTypes.repeated_string_piece)
  17122. return repeated_string_piece_.Mutable(index);
  17123. }
  17124. inline void TestAllTypes::set_repeated_string_piece(int index, const ::std::string& value) {
  17125. // @@protoc_insertion_point(field_set:protobuf_unittest.TestAllTypes.repeated_string_piece)
  17126. repeated_string_piece_.Mutable(index)->assign(value);
  17127. }
  17128. #if LANG_CXX11
  17129. inline void TestAllTypes::set_repeated_string_piece(int index, ::std::string&& value) {
  17130. // @@protoc_insertion_point(field_set:protobuf_unittest.TestAllTypes.repeated_string_piece)
  17131. repeated_string_piece_.Mutable(index)->assign(std::move(value));
  17132. }
  17133. #endif
  17134. inline void TestAllTypes::set_repeated_string_piece(int index, const char* value) {
  17135. GOOGLE_DCHECK(value != NULL);
  17136. repeated_string_piece_.Mutable(index)->assign(value);
  17137. // @@protoc_insertion_point(field_set_char:protobuf_unittest.TestAllTypes.repeated_string_piece)
  17138. }
  17139. inline void TestAllTypes::set_repeated_string_piece(int index, const char* value, size_t size) {
  17140. repeated_string_piece_.Mutable(index)->assign(
  17141. reinterpret_cast<const char*>(value), size);
  17142. // @@protoc_insertion_point(field_set_pointer:protobuf_unittest.TestAllTypes.repeated_string_piece)
  17143. }
  17144. inline ::std::string* TestAllTypes::add_repeated_string_piece() {
  17145. // @@protoc_insertion_point(field_add_mutable:protobuf_unittest.TestAllTypes.repeated_string_piece)
  17146. return repeated_string_piece_.Add();
  17147. }
  17148. inline void TestAllTypes::add_repeated_string_piece(const ::std::string& value) {
  17149. repeated_string_piece_.Add()->assign(value);
  17150. // @@protoc_insertion_point(field_add:protobuf_unittest.TestAllTypes.repeated_string_piece)
  17151. }
  17152. #if LANG_CXX11
  17153. inline void TestAllTypes::add_repeated_string_piece(::std::string&& value) {
  17154. repeated_string_piece_.Add(std::move(value));
  17155. // @@protoc_insertion_point(field_add:protobuf_unittest.TestAllTypes.repeated_string_piece)
  17156. }
  17157. #endif
  17158. inline void TestAllTypes::add_repeated_string_piece(const char* value) {
  17159. GOOGLE_DCHECK(value != NULL);
  17160. repeated_string_piece_.Add()->assign(value);
  17161. // @@protoc_insertion_point(field_add_char:protobuf_unittest.TestAllTypes.repeated_string_piece)
  17162. }
  17163. inline void TestAllTypes::add_repeated_string_piece(const char* value, size_t size) {
  17164. repeated_string_piece_.Add()->assign(reinterpret_cast<const char*>(value), size);
  17165. // @@protoc_insertion_point(field_add_pointer:protobuf_unittest.TestAllTypes.repeated_string_piece)
  17166. }
  17167. inline const ::google::protobuf::RepeatedPtrField< ::std::string>&
  17168. TestAllTypes::repeated_string_piece() const {
  17169. // @@protoc_insertion_point(field_list:protobuf_unittest.TestAllTypes.repeated_string_piece)
  17170. return repeated_string_piece_;
  17171. }
  17172. inline ::google::protobuf::RepeatedPtrField< ::std::string>*
  17173. TestAllTypes::mutable_repeated_string_piece() {
  17174. // @@protoc_insertion_point(field_mutable_list:protobuf_unittest.TestAllTypes.repeated_string_piece)
  17175. return &repeated_string_piece_;
  17176. }
  17177. // repeated string repeated_cord = 55 [ctype = CORD];
  17178. inline int TestAllTypes::repeated_cord_size() const {
  17179. return repeated_cord_.size();
  17180. }
  17181. inline void TestAllTypes::clear_repeated_cord() {
  17182. repeated_cord_.Clear();
  17183. }
  17184. inline const ::std::string& TestAllTypes::repeated_cord(int index) const {
  17185. // @@protoc_insertion_point(field_get:protobuf_unittest.TestAllTypes.repeated_cord)
  17186. return repeated_cord_.Get(index);
  17187. }
  17188. inline ::std::string* TestAllTypes::mutable_repeated_cord(int index) {
  17189. // @@protoc_insertion_point(field_mutable:protobuf_unittest.TestAllTypes.repeated_cord)
  17190. return repeated_cord_.Mutable(index);
  17191. }
  17192. inline void TestAllTypes::set_repeated_cord(int index, const ::std::string& value) {
  17193. // @@protoc_insertion_point(field_set:protobuf_unittest.TestAllTypes.repeated_cord)
  17194. repeated_cord_.Mutable(index)->assign(value);
  17195. }
  17196. #if LANG_CXX11
  17197. inline void TestAllTypes::set_repeated_cord(int index, ::std::string&& value) {
  17198. // @@protoc_insertion_point(field_set:protobuf_unittest.TestAllTypes.repeated_cord)
  17199. repeated_cord_.Mutable(index)->assign(std::move(value));
  17200. }
  17201. #endif
  17202. inline void TestAllTypes::set_repeated_cord(int index, const char* value) {
  17203. GOOGLE_DCHECK(value != NULL);
  17204. repeated_cord_.Mutable(index)->assign(value);
  17205. // @@protoc_insertion_point(field_set_char:protobuf_unittest.TestAllTypes.repeated_cord)
  17206. }
  17207. inline void TestAllTypes::set_repeated_cord(int index, const char* value, size_t size) {
  17208. repeated_cord_.Mutable(index)->assign(
  17209. reinterpret_cast<const char*>(value), size);
  17210. // @@protoc_insertion_point(field_set_pointer:protobuf_unittest.TestAllTypes.repeated_cord)
  17211. }
  17212. inline ::std::string* TestAllTypes::add_repeated_cord() {
  17213. // @@protoc_insertion_point(field_add_mutable:protobuf_unittest.TestAllTypes.repeated_cord)
  17214. return repeated_cord_.Add();
  17215. }
  17216. inline void TestAllTypes::add_repeated_cord(const ::std::string& value) {
  17217. repeated_cord_.Add()->assign(value);
  17218. // @@protoc_insertion_point(field_add:protobuf_unittest.TestAllTypes.repeated_cord)
  17219. }
  17220. #if LANG_CXX11
  17221. inline void TestAllTypes::add_repeated_cord(::std::string&& value) {
  17222. repeated_cord_.Add(std::move(value));
  17223. // @@protoc_insertion_point(field_add:protobuf_unittest.TestAllTypes.repeated_cord)
  17224. }
  17225. #endif
  17226. inline void TestAllTypes::add_repeated_cord(const char* value) {
  17227. GOOGLE_DCHECK(value != NULL);
  17228. repeated_cord_.Add()->assign(value);
  17229. // @@protoc_insertion_point(field_add_char:protobuf_unittest.TestAllTypes.repeated_cord)
  17230. }
  17231. inline void TestAllTypes::add_repeated_cord(const char* value, size_t size) {
  17232. repeated_cord_.Add()->assign(reinterpret_cast<const char*>(value), size);
  17233. // @@protoc_insertion_point(field_add_pointer:protobuf_unittest.TestAllTypes.repeated_cord)
  17234. }
  17235. inline const ::google::protobuf::RepeatedPtrField< ::std::string>&
  17236. TestAllTypes::repeated_cord() const {
  17237. // @@protoc_insertion_point(field_list:protobuf_unittest.TestAllTypes.repeated_cord)
  17238. return repeated_cord_;
  17239. }
  17240. inline ::google::protobuf::RepeatedPtrField< ::std::string>*
  17241. TestAllTypes::mutable_repeated_cord() {
  17242. // @@protoc_insertion_point(field_mutable_list:protobuf_unittest.TestAllTypes.repeated_cord)
  17243. return &repeated_cord_;
  17244. }
  17245. // repeated .protobuf_unittest.TestAllTypes.NestedMessage repeated_lazy_message = 57 [lazy = true];
  17246. inline int TestAllTypes::repeated_lazy_message_size() const {
  17247. return repeated_lazy_message_.size();
  17248. }
  17249. inline void TestAllTypes::clear_repeated_lazy_message() {
  17250. repeated_lazy_message_.Clear();
  17251. }
  17252. inline ::protobuf_unittest::TestAllTypes_NestedMessage* TestAllTypes::mutable_repeated_lazy_message(int index) {
  17253. // @@protoc_insertion_point(field_mutable:protobuf_unittest.TestAllTypes.repeated_lazy_message)
  17254. return repeated_lazy_message_.Mutable(index);
  17255. }
  17256. inline ::google::protobuf::RepeatedPtrField< ::protobuf_unittest::TestAllTypes_NestedMessage >*
  17257. TestAllTypes::mutable_repeated_lazy_message() {
  17258. // @@protoc_insertion_point(field_mutable_list:protobuf_unittest.TestAllTypes.repeated_lazy_message)
  17259. return &repeated_lazy_message_;
  17260. }
  17261. inline const ::protobuf_unittest::TestAllTypes_NestedMessage& TestAllTypes::repeated_lazy_message(int index) const {
  17262. // @@protoc_insertion_point(field_get:protobuf_unittest.TestAllTypes.repeated_lazy_message)
  17263. return repeated_lazy_message_.Get(index);
  17264. }
  17265. inline ::protobuf_unittest::TestAllTypes_NestedMessage* TestAllTypes::add_repeated_lazy_message() {
  17266. // @@protoc_insertion_point(field_add:protobuf_unittest.TestAllTypes.repeated_lazy_message)
  17267. return repeated_lazy_message_.Add();
  17268. }
  17269. inline const ::google::protobuf::RepeatedPtrField< ::protobuf_unittest::TestAllTypes_NestedMessage >&
  17270. TestAllTypes::repeated_lazy_message() const {
  17271. // @@protoc_insertion_point(field_list:protobuf_unittest.TestAllTypes.repeated_lazy_message)
  17272. return repeated_lazy_message_;
  17273. }
  17274. // optional int32 default_int32 = 61 [default = 41];
  17275. inline bool TestAllTypes::has_default_int32() const {
  17276. return (_has_bits_[0] & 0x80000000u) != 0;
  17277. }
  17278. inline void TestAllTypes::set_has_default_int32() {
  17279. _has_bits_[0] |= 0x80000000u;
  17280. }
  17281. inline void TestAllTypes::clear_has_default_int32() {
  17282. _has_bits_[0] &= ~0x80000000u;
  17283. }
  17284. inline void TestAllTypes::clear_default_int32() {
  17285. default_int32_ = 41;
  17286. clear_has_default_int32();
  17287. }
  17288. inline ::google::protobuf::int32 TestAllTypes::default_int32() const {
  17289. // @@protoc_insertion_point(field_get:protobuf_unittest.TestAllTypes.default_int32)
  17290. return default_int32_;
  17291. }
  17292. inline void TestAllTypes::set_default_int32(::google::protobuf::int32 value) {
  17293. set_has_default_int32();
  17294. default_int32_ = value;
  17295. // @@protoc_insertion_point(field_set:protobuf_unittest.TestAllTypes.default_int32)
  17296. }
  17297. // optional int64 default_int64 = 62 [default = 42];
  17298. inline bool TestAllTypes::has_default_int64() const {
  17299. return (_has_bits_[1] & 0x00000001u) != 0;
  17300. }
  17301. inline void TestAllTypes::set_has_default_int64() {
  17302. _has_bits_[1] |= 0x00000001u;
  17303. }
  17304. inline void TestAllTypes::clear_has_default_int64() {
  17305. _has_bits_[1] &= ~0x00000001u;
  17306. }
  17307. inline void TestAllTypes::clear_default_int64() {
  17308. default_int64_ = GOOGLE_LONGLONG(42);
  17309. clear_has_default_int64();
  17310. }
  17311. inline ::google::protobuf::int64 TestAllTypes::default_int64() const {
  17312. // @@protoc_insertion_point(field_get:protobuf_unittest.TestAllTypes.default_int64)
  17313. return default_int64_;
  17314. }
  17315. inline void TestAllTypes::set_default_int64(::google::protobuf::int64 value) {
  17316. set_has_default_int64();
  17317. default_int64_ = value;
  17318. // @@protoc_insertion_point(field_set:protobuf_unittest.TestAllTypes.default_int64)
  17319. }
  17320. // optional uint32 default_uint32 = 63 [default = 43];
  17321. inline bool TestAllTypes::has_default_uint32() const {
  17322. return (_has_bits_[1] & 0x00000004u) != 0;
  17323. }
  17324. inline void TestAllTypes::set_has_default_uint32() {
  17325. _has_bits_[1] |= 0x00000004u;
  17326. }
  17327. inline void TestAllTypes::clear_has_default_uint32() {
  17328. _has_bits_[1] &= ~0x00000004u;
  17329. }
  17330. inline void TestAllTypes::clear_default_uint32() {
  17331. default_uint32_ = 43u;
  17332. clear_has_default_uint32();
  17333. }
  17334. inline ::google::protobuf::uint32 TestAllTypes::default_uint32() const {
  17335. // @@protoc_insertion_point(field_get:protobuf_unittest.TestAllTypes.default_uint32)
  17336. return default_uint32_;
  17337. }
  17338. inline void TestAllTypes::set_default_uint32(::google::protobuf::uint32 value) {
  17339. set_has_default_uint32();
  17340. default_uint32_ = value;
  17341. // @@protoc_insertion_point(field_set:protobuf_unittest.TestAllTypes.default_uint32)
  17342. }
  17343. // optional uint64 default_uint64 = 64 [default = 44];
  17344. inline bool TestAllTypes::has_default_uint64() const {
  17345. return (_has_bits_[1] & 0x00000002u) != 0;
  17346. }
  17347. inline void TestAllTypes::set_has_default_uint64() {
  17348. _has_bits_[1] |= 0x00000002u;
  17349. }
  17350. inline void TestAllTypes::clear_has_default_uint64() {
  17351. _has_bits_[1] &= ~0x00000002u;
  17352. }
  17353. inline void TestAllTypes::clear_default_uint64() {
  17354. default_uint64_ = GOOGLE_ULONGLONG(44);
  17355. clear_has_default_uint64();
  17356. }
  17357. inline ::google::protobuf::uint64 TestAllTypes::default_uint64() const {
  17358. // @@protoc_insertion_point(field_get:protobuf_unittest.TestAllTypes.default_uint64)
  17359. return default_uint64_;
  17360. }
  17361. inline void TestAllTypes::set_default_uint64(::google::protobuf::uint64 value) {
  17362. set_has_default_uint64();
  17363. default_uint64_ = value;
  17364. // @@protoc_insertion_point(field_set:protobuf_unittest.TestAllTypes.default_uint64)
  17365. }
  17366. // optional sint32 default_sint32 = 65 [default = -45];
  17367. inline bool TestAllTypes::has_default_sint32() const {
  17368. return (_has_bits_[1] & 0x00000008u) != 0;
  17369. }
  17370. inline void TestAllTypes::set_has_default_sint32() {
  17371. _has_bits_[1] |= 0x00000008u;
  17372. }
  17373. inline void TestAllTypes::clear_has_default_sint32() {
  17374. _has_bits_[1] &= ~0x00000008u;
  17375. }
  17376. inline void TestAllTypes::clear_default_sint32() {
  17377. default_sint32_ = -45;
  17378. clear_has_default_sint32();
  17379. }
  17380. inline ::google::protobuf::int32 TestAllTypes::default_sint32() const {
  17381. // @@protoc_insertion_point(field_get:protobuf_unittest.TestAllTypes.default_sint32)
  17382. return default_sint32_;
  17383. }
  17384. inline void TestAllTypes::set_default_sint32(::google::protobuf::int32 value) {
  17385. set_has_default_sint32();
  17386. default_sint32_ = value;
  17387. // @@protoc_insertion_point(field_set:protobuf_unittest.TestAllTypes.default_sint32)
  17388. }
  17389. // optional sint64 default_sint64 = 66 [default = 46];
  17390. inline bool TestAllTypes::has_default_sint64() const {
  17391. return (_has_bits_[1] & 0x00000010u) != 0;
  17392. }
  17393. inline void TestAllTypes::set_has_default_sint64() {
  17394. _has_bits_[1] |= 0x00000010u;
  17395. }
  17396. inline void TestAllTypes::clear_has_default_sint64() {
  17397. _has_bits_[1] &= ~0x00000010u;
  17398. }
  17399. inline void TestAllTypes::clear_default_sint64() {
  17400. default_sint64_ = GOOGLE_LONGLONG(46);
  17401. clear_has_default_sint64();
  17402. }
  17403. inline ::google::protobuf::int64 TestAllTypes::default_sint64() const {
  17404. // @@protoc_insertion_point(field_get:protobuf_unittest.TestAllTypes.default_sint64)
  17405. return default_sint64_;
  17406. }
  17407. inline void TestAllTypes::set_default_sint64(::google::protobuf::int64 value) {
  17408. set_has_default_sint64();
  17409. default_sint64_ = value;
  17410. // @@protoc_insertion_point(field_set:protobuf_unittest.TestAllTypes.default_sint64)
  17411. }
  17412. // optional fixed32 default_fixed32 = 67 [default = 47];
  17413. inline bool TestAllTypes::has_default_fixed32() const {
  17414. return (_has_bits_[1] & 0x00000040u) != 0;
  17415. }
  17416. inline void TestAllTypes::set_has_default_fixed32() {
  17417. _has_bits_[1] |= 0x00000040u;
  17418. }
  17419. inline void TestAllTypes::clear_has_default_fixed32() {
  17420. _has_bits_[1] &= ~0x00000040u;
  17421. }
  17422. inline void TestAllTypes::clear_default_fixed32() {
  17423. default_fixed32_ = 47u;
  17424. clear_has_default_fixed32();
  17425. }
  17426. inline ::google::protobuf::uint32 TestAllTypes::default_fixed32() const {
  17427. // @@protoc_insertion_point(field_get:protobuf_unittest.TestAllTypes.default_fixed32)
  17428. return default_fixed32_;
  17429. }
  17430. inline void TestAllTypes::set_default_fixed32(::google::protobuf::uint32 value) {
  17431. set_has_default_fixed32();
  17432. default_fixed32_ = value;
  17433. // @@protoc_insertion_point(field_set:protobuf_unittest.TestAllTypes.default_fixed32)
  17434. }
  17435. // optional fixed64 default_fixed64 = 68 [default = 48];
  17436. inline bool TestAllTypes::has_default_fixed64() const {
  17437. return (_has_bits_[1] & 0x00000020u) != 0;
  17438. }
  17439. inline void TestAllTypes::set_has_default_fixed64() {
  17440. _has_bits_[1] |= 0x00000020u;
  17441. }
  17442. inline void TestAllTypes::clear_has_default_fixed64() {
  17443. _has_bits_[1] &= ~0x00000020u;
  17444. }
  17445. inline void TestAllTypes::clear_default_fixed64() {
  17446. default_fixed64_ = GOOGLE_ULONGLONG(48);
  17447. clear_has_default_fixed64();
  17448. }
  17449. inline ::google::protobuf::uint64 TestAllTypes::default_fixed64() const {
  17450. // @@protoc_insertion_point(field_get:protobuf_unittest.TestAllTypes.default_fixed64)
  17451. return default_fixed64_;
  17452. }
  17453. inline void TestAllTypes::set_default_fixed64(::google::protobuf::uint64 value) {
  17454. set_has_default_fixed64();
  17455. default_fixed64_ = value;
  17456. // @@protoc_insertion_point(field_set:protobuf_unittest.TestAllTypes.default_fixed64)
  17457. }
  17458. // optional sfixed32 default_sfixed32 = 69 [default = 49];
  17459. inline bool TestAllTypes::has_default_sfixed32() const {
  17460. return (_has_bits_[1] & 0x00000080u) != 0;
  17461. }
  17462. inline void TestAllTypes::set_has_default_sfixed32() {
  17463. _has_bits_[1] |= 0x00000080u;
  17464. }
  17465. inline void TestAllTypes::clear_has_default_sfixed32() {
  17466. _has_bits_[1] &= ~0x00000080u;
  17467. }
  17468. inline void TestAllTypes::clear_default_sfixed32() {
  17469. default_sfixed32_ = 49;
  17470. clear_has_default_sfixed32();
  17471. }
  17472. inline ::google::protobuf::int32 TestAllTypes::default_sfixed32() const {
  17473. // @@protoc_insertion_point(field_get:protobuf_unittest.TestAllTypes.default_sfixed32)
  17474. return default_sfixed32_;
  17475. }
  17476. inline void TestAllTypes::set_default_sfixed32(::google::protobuf::int32 value) {
  17477. set_has_default_sfixed32();
  17478. default_sfixed32_ = value;
  17479. // @@protoc_insertion_point(field_set:protobuf_unittest.TestAllTypes.default_sfixed32)
  17480. }
  17481. // optional sfixed64 default_sfixed64 = 70 [default = -50];
  17482. inline bool TestAllTypes::has_default_sfixed64() const {
  17483. return (_has_bits_[1] & 0x00000100u) != 0;
  17484. }
  17485. inline void TestAllTypes::set_has_default_sfixed64() {
  17486. _has_bits_[1] |= 0x00000100u;
  17487. }
  17488. inline void TestAllTypes::clear_has_default_sfixed64() {
  17489. _has_bits_[1] &= ~0x00000100u;
  17490. }
  17491. inline void TestAllTypes::clear_default_sfixed64() {
  17492. default_sfixed64_ = GOOGLE_LONGLONG(-50);
  17493. clear_has_default_sfixed64();
  17494. }
  17495. inline ::google::protobuf::int64 TestAllTypes::default_sfixed64() const {
  17496. // @@protoc_insertion_point(field_get:protobuf_unittest.TestAllTypes.default_sfixed64)
  17497. return default_sfixed64_;
  17498. }
  17499. inline void TestAllTypes::set_default_sfixed64(::google::protobuf::int64 value) {
  17500. set_has_default_sfixed64();
  17501. default_sfixed64_ = value;
  17502. // @@protoc_insertion_point(field_set:protobuf_unittest.TestAllTypes.default_sfixed64)
  17503. }
  17504. // optional float default_float = 71 [default = 51.5];
  17505. inline bool TestAllTypes::has_default_float() const {
  17506. return (_has_bits_[1] & 0x00000400u) != 0;
  17507. }
  17508. inline void TestAllTypes::set_has_default_float() {
  17509. _has_bits_[1] |= 0x00000400u;
  17510. }
  17511. inline void TestAllTypes::clear_has_default_float() {
  17512. _has_bits_[1] &= ~0x00000400u;
  17513. }
  17514. inline void TestAllTypes::clear_default_float() {
  17515. default_float_ = 51.5f;
  17516. clear_has_default_float();
  17517. }
  17518. inline float TestAllTypes::default_float() const {
  17519. // @@protoc_insertion_point(field_get:protobuf_unittest.TestAllTypes.default_float)
  17520. return default_float_;
  17521. }
  17522. inline void TestAllTypes::set_default_float(float value) {
  17523. set_has_default_float();
  17524. default_float_ = value;
  17525. // @@protoc_insertion_point(field_set:protobuf_unittest.TestAllTypes.default_float)
  17526. }
  17527. // optional double default_double = 72 [default = 52000];
  17528. inline bool TestAllTypes::has_default_double() const {
  17529. return (_has_bits_[1] & 0x00000200u) != 0;
  17530. }
  17531. inline void TestAllTypes::set_has_default_double() {
  17532. _has_bits_[1] |= 0x00000200u;
  17533. }
  17534. inline void TestAllTypes::clear_has_default_double() {
  17535. _has_bits_[1] &= ~0x00000200u;
  17536. }
  17537. inline void TestAllTypes::clear_default_double() {
  17538. default_double_ = 52000;
  17539. clear_has_default_double();
  17540. }
  17541. inline double TestAllTypes::default_double() const {
  17542. // @@protoc_insertion_point(field_get:protobuf_unittest.TestAllTypes.default_double)
  17543. return default_double_;
  17544. }
  17545. inline void TestAllTypes::set_default_double(double value) {
  17546. set_has_default_double();
  17547. default_double_ = value;
  17548. // @@protoc_insertion_point(field_set:protobuf_unittest.TestAllTypes.default_double)
  17549. }
  17550. // optional bool default_bool = 73 [default = true];
  17551. inline bool TestAllTypes::has_default_bool() const {
  17552. return (_has_bits_[1] & 0x00000800u) != 0;
  17553. }
  17554. inline void TestAllTypes::set_has_default_bool() {
  17555. _has_bits_[1] |= 0x00000800u;
  17556. }
  17557. inline void TestAllTypes::clear_has_default_bool() {
  17558. _has_bits_[1] &= ~0x00000800u;
  17559. }
  17560. inline void TestAllTypes::clear_default_bool() {
  17561. default_bool_ = true;
  17562. clear_has_default_bool();
  17563. }
  17564. inline bool TestAllTypes::default_bool() const {
  17565. // @@protoc_insertion_point(field_get:protobuf_unittest.TestAllTypes.default_bool)
  17566. return default_bool_;
  17567. }
  17568. inline void TestAllTypes::set_default_bool(bool value) {
  17569. set_has_default_bool();
  17570. default_bool_ = value;
  17571. // @@protoc_insertion_point(field_set:protobuf_unittest.TestAllTypes.default_bool)
  17572. }
  17573. // optional string default_string = 74 [default = "hello"];
  17574. inline bool TestAllTypes::has_default_string() const {
  17575. return (_has_bits_[0] & 0x00000010u) != 0;
  17576. }
  17577. inline void TestAllTypes::set_has_default_string() {
  17578. _has_bits_[0] |= 0x00000010u;
  17579. }
  17580. inline void TestAllTypes::clear_has_default_string() {
  17581. _has_bits_[0] &= ~0x00000010u;
  17582. }
  17583. inline void TestAllTypes::clear_default_string() {
  17584. default_string_.ClearToDefault(&::protobuf_unittest::TestAllTypes::_i_give_permission_to_break_this_code_default_default_string_.get(), GetArenaNoVirtual());
  17585. clear_has_default_string();
  17586. }
  17587. inline const ::std::string& TestAllTypes::default_string() const {
  17588. // @@protoc_insertion_point(field_get:protobuf_unittest.TestAllTypes.default_string)
  17589. return default_string_.Get();
  17590. }
  17591. inline void TestAllTypes::set_default_string(const ::std::string& value) {
  17592. set_has_default_string();
  17593. default_string_.Set(&::protobuf_unittest::TestAllTypes::_i_give_permission_to_break_this_code_default_default_string_.get(), value, GetArenaNoVirtual());
  17594. // @@protoc_insertion_point(field_set:protobuf_unittest.TestAllTypes.default_string)
  17595. }
  17596. #if LANG_CXX11
  17597. inline void TestAllTypes::set_default_string(::std::string&& value) {
  17598. set_has_default_string();
  17599. default_string_.Set(
  17600. &::protobuf_unittest::TestAllTypes::_i_give_permission_to_break_this_code_default_default_string_.get(), ::std::move(value), GetArenaNoVirtual());
  17601. // @@protoc_insertion_point(field_set_rvalue:protobuf_unittest.TestAllTypes.default_string)
  17602. }
  17603. #endif
  17604. inline void TestAllTypes::set_default_string(const char* value) {
  17605. GOOGLE_DCHECK(value != NULL);
  17606. set_has_default_string();
  17607. default_string_.Set(&::protobuf_unittest::TestAllTypes::_i_give_permission_to_break_this_code_default_default_string_.get(), ::std::string(value),
  17608. GetArenaNoVirtual());
  17609. // @@protoc_insertion_point(field_set_char:protobuf_unittest.TestAllTypes.default_string)
  17610. }
  17611. inline void TestAllTypes::set_default_string(const char* value,
  17612. size_t size) {
  17613. set_has_default_string();
  17614. default_string_.Set(&::protobuf_unittest::TestAllTypes::_i_give_permission_to_break_this_code_default_default_string_.get(), ::std::string(
  17615. reinterpret_cast<const char*>(value), size), GetArenaNoVirtual());
  17616. // @@protoc_insertion_point(field_set_pointer:protobuf_unittest.TestAllTypes.default_string)
  17617. }
  17618. inline ::std::string* TestAllTypes::mutable_default_string() {
  17619. set_has_default_string();
  17620. // @@protoc_insertion_point(field_mutable:protobuf_unittest.TestAllTypes.default_string)
  17621. return default_string_.Mutable(&::protobuf_unittest::TestAllTypes::_i_give_permission_to_break_this_code_default_default_string_.get(), GetArenaNoVirtual());
  17622. }
  17623. inline ::std::string* TestAllTypes::release_default_string() {
  17624. // @@protoc_insertion_point(field_release:protobuf_unittest.TestAllTypes.default_string)
  17625. if (!has_default_string()) {
  17626. return NULL;
  17627. }
  17628. clear_has_default_string();
  17629. return default_string_.ReleaseNonDefault(&::protobuf_unittest::TestAllTypes::_i_give_permission_to_break_this_code_default_default_string_.get(), GetArenaNoVirtual());
  17630. }
  17631. inline void TestAllTypes::set_allocated_default_string(::std::string* default_string) {
  17632. if (default_string != NULL) {
  17633. set_has_default_string();
  17634. } else {
  17635. clear_has_default_string();
  17636. }
  17637. default_string_.SetAllocated(&::protobuf_unittest::TestAllTypes::_i_give_permission_to_break_this_code_default_default_string_.get(), default_string,
  17638. GetArenaNoVirtual());
  17639. // @@protoc_insertion_point(field_set_allocated:protobuf_unittest.TestAllTypes.default_string)
  17640. }
  17641. inline ::std::string* TestAllTypes::unsafe_arena_release_default_string() {
  17642. // @@protoc_insertion_point(field_unsafe_arena_release:protobuf_unittest.TestAllTypes.default_string)
  17643. GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
  17644. clear_has_default_string();
  17645. return default_string_.UnsafeArenaRelease(&::protobuf_unittest::TestAllTypes::_i_give_permission_to_break_this_code_default_default_string_.get(),
  17646. GetArenaNoVirtual());
  17647. }
  17648. inline void TestAllTypes::unsafe_arena_set_allocated_default_string(
  17649. ::std::string* default_string) {
  17650. GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
  17651. if (default_string != NULL) {
  17652. set_has_default_string();
  17653. } else {
  17654. clear_has_default_string();
  17655. }
  17656. default_string_.UnsafeArenaSetAllocated(&::protobuf_unittest::TestAllTypes::_i_give_permission_to_break_this_code_default_default_string_.get(),
  17657. default_string, GetArenaNoVirtual());
  17658. // @@protoc_insertion_point(field_unsafe_arena_set_allocated:protobuf_unittest.TestAllTypes.default_string)
  17659. }
  17660. // optional bytes default_bytes = 75 [default = "world"];
  17661. inline bool TestAllTypes::has_default_bytes() const {
  17662. return (_has_bits_[0] & 0x00000020u) != 0;
  17663. }
  17664. inline void TestAllTypes::set_has_default_bytes() {
  17665. _has_bits_[0] |= 0x00000020u;
  17666. }
  17667. inline void TestAllTypes::clear_has_default_bytes() {
  17668. _has_bits_[0] &= ~0x00000020u;
  17669. }
  17670. inline void TestAllTypes::clear_default_bytes() {
  17671. default_bytes_.ClearToDefault(&::protobuf_unittest::TestAllTypes::_i_give_permission_to_break_this_code_default_default_bytes_.get(), GetArenaNoVirtual());
  17672. clear_has_default_bytes();
  17673. }
  17674. inline const ::std::string& TestAllTypes::default_bytes() const {
  17675. // @@protoc_insertion_point(field_get:protobuf_unittest.TestAllTypes.default_bytes)
  17676. return default_bytes_.Get();
  17677. }
  17678. inline void TestAllTypes::set_default_bytes(const ::std::string& value) {
  17679. set_has_default_bytes();
  17680. default_bytes_.Set(&::protobuf_unittest::TestAllTypes::_i_give_permission_to_break_this_code_default_default_bytes_.get(), value, GetArenaNoVirtual());
  17681. // @@protoc_insertion_point(field_set:protobuf_unittest.TestAllTypes.default_bytes)
  17682. }
  17683. #if LANG_CXX11
  17684. inline void TestAllTypes::set_default_bytes(::std::string&& value) {
  17685. set_has_default_bytes();
  17686. default_bytes_.Set(
  17687. &::protobuf_unittest::TestAllTypes::_i_give_permission_to_break_this_code_default_default_bytes_.get(), ::std::move(value), GetArenaNoVirtual());
  17688. // @@protoc_insertion_point(field_set_rvalue:protobuf_unittest.TestAllTypes.default_bytes)
  17689. }
  17690. #endif
  17691. inline void TestAllTypes::set_default_bytes(const char* value) {
  17692. GOOGLE_DCHECK(value != NULL);
  17693. set_has_default_bytes();
  17694. default_bytes_.Set(&::protobuf_unittest::TestAllTypes::_i_give_permission_to_break_this_code_default_default_bytes_.get(), ::std::string(value),
  17695. GetArenaNoVirtual());
  17696. // @@protoc_insertion_point(field_set_char:protobuf_unittest.TestAllTypes.default_bytes)
  17697. }
  17698. inline void TestAllTypes::set_default_bytes(const void* value,
  17699. size_t size) {
  17700. set_has_default_bytes();
  17701. default_bytes_.Set(&::protobuf_unittest::TestAllTypes::_i_give_permission_to_break_this_code_default_default_bytes_.get(), ::std::string(
  17702. reinterpret_cast<const char*>(value), size), GetArenaNoVirtual());
  17703. // @@protoc_insertion_point(field_set_pointer:protobuf_unittest.TestAllTypes.default_bytes)
  17704. }
  17705. inline ::std::string* TestAllTypes::mutable_default_bytes() {
  17706. set_has_default_bytes();
  17707. // @@protoc_insertion_point(field_mutable:protobuf_unittest.TestAllTypes.default_bytes)
  17708. return default_bytes_.Mutable(&::protobuf_unittest::TestAllTypes::_i_give_permission_to_break_this_code_default_default_bytes_.get(), GetArenaNoVirtual());
  17709. }
  17710. inline ::std::string* TestAllTypes::release_default_bytes() {
  17711. // @@protoc_insertion_point(field_release:protobuf_unittest.TestAllTypes.default_bytes)
  17712. if (!has_default_bytes()) {
  17713. return NULL;
  17714. }
  17715. clear_has_default_bytes();
  17716. return default_bytes_.ReleaseNonDefault(&::protobuf_unittest::TestAllTypes::_i_give_permission_to_break_this_code_default_default_bytes_.get(), GetArenaNoVirtual());
  17717. }
  17718. inline void TestAllTypes::set_allocated_default_bytes(::std::string* default_bytes) {
  17719. if (default_bytes != NULL) {
  17720. set_has_default_bytes();
  17721. } else {
  17722. clear_has_default_bytes();
  17723. }
  17724. default_bytes_.SetAllocated(&::protobuf_unittest::TestAllTypes::_i_give_permission_to_break_this_code_default_default_bytes_.get(), default_bytes,
  17725. GetArenaNoVirtual());
  17726. // @@protoc_insertion_point(field_set_allocated:protobuf_unittest.TestAllTypes.default_bytes)
  17727. }
  17728. inline ::std::string* TestAllTypes::unsafe_arena_release_default_bytes() {
  17729. // @@protoc_insertion_point(field_unsafe_arena_release:protobuf_unittest.TestAllTypes.default_bytes)
  17730. GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
  17731. clear_has_default_bytes();
  17732. return default_bytes_.UnsafeArenaRelease(&::protobuf_unittest::TestAllTypes::_i_give_permission_to_break_this_code_default_default_bytes_.get(),
  17733. GetArenaNoVirtual());
  17734. }
  17735. inline void TestAllTypes::unsafe_arena_set_allocated_default_bytes(
  17736. ::std::string* default_bytes) {
  17737. GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
  17738. if (default_bytes != NULL) {
  17739. set_has_default_bytes();
  17740. } else {
  17741. clear_has_default_bytes();
  17742. }
  17743. default_bytes_.UnsafeArenaSetAllocated(&::protobuf_unittest::TestAllTypes::_i_give_permission_to_break_this_code_default_default_bytes_.get(),
  17744. default_bytes, GetArenaNoVirtual());
  17745. // @@protoc_insertion_point(field_unsafe_arena_set_allocated:protobuf_unittest.TestAllTypes.default_bytes)
  17746. }
  17747. // optional .protobuf_unittest.TestAllTypes.NestedEnum default_nested_enum = 81 [default = BAR];
  17748. inline bool TestAllTypes::has_default_nested_enum() const {
  17749. return (_has_bits_[1] & 0x00001000u) != 0;
  17750. }
  17751. inline void TestAllTypes::set_has_default_nested_enum() {
  17752. _has_bits_[1] |= 0x00001000u;
  17753. }
  17754. inline void TestAllTypes::clear_has_default_nested_enum() {
  17755. _has_bits_[1] &= ~0x00001000u;
  17756. }
  17757. inline void TestAllTypes::clear_default_nested_enum() {
  17758. default_nested_enum_ = 2;
  17759. clear_has_default_nested_enum();
  17760. }
  17761. inline ::protobuf_unittest::TestAllTypes_NestedEnum TestAllTypes::default_nested_enum() const {
  17762. // @@protoc_insertion_point(field_get:protobuf_unittest.TestAllTypes.default_nested_enum)
  17763. return static_cast< ::protobuf_unittest::TestAllTypes_NestedEnum >(default_nested_enum_);
  17764. }
  17765. inline void TestAllTypes::set_default_nested_enum(::protobuf_unittest::TestAllTypes_NestedEnum value) {
  17766. assert(::protobuf_unittest::TestAllTypes_NestedEnum_IsValid(value));
  17767. set_has_default_nested_enum();
  17768. default_nested_enum_ = value;
  17769. // @@protoc_insertion_point(field_set:protobuf_unittest.TestAllTypes.default_nested_enum)
  17770. }
  17771. // optional .protobuf_unittest.ForeignEnum default_foreign_enum = 82 [default = FOREIGN_BAR];
  17772. inline bool TestAllTypes::has_default_foreign_enum() const {
  17773. return (_has_bits_[1] & 0x00002000u) != 0;
  17774. }
  17775. inline void TestAllTypes::set_has_default_foreign_enum() {
  17776. _has_bits_[1] |= 0x00002000u;
  17777. }
  17778. inline void TestAllTypes::clear_has_default_foreign_enum() {
  17779. _has_bits_[1] &= ~0x00002000u;
  17780. }
  17781. inline void TestAllTypes::clear_default_foreign_enum() {
  17782. default_foreign_enum_ = 5;
  17783. clear_has_default_foreign_enum();
  17784. }
  17785. inline ::protobuf_unittest::ForeignEnum TestAllTypes::default_foreign_enum() const {
  17786. // @@protoc_insertion_point(field_get:protobuf_unittest.TestAllTypes.default_foreign_enum)
  17787. return static_cast< ::protobuf_unittest::ForeignEnum >(default_foreign_enum_);
  17788. }
  17789. inline void TestAllTypes::set_default_foreign_enum(::protobuf_unittest::ForeignEnum value) {
  17790. assert(::protobuf_unittest::ForeignEnum_IsValid(value));
  17791. set_has_default_foreign_enum();
  17792. default_foreign_enum_ = value;
  17793. // @@protoc_insertion_point(field_set:protobuf_unittest.TestAllTypes.default_foreign_enum)
  17794. }
  17795. // optional .protobuf_unittest_import.ImportEnum default_import_enum = 83 [default = IMPORT_BAR];
  17796. inline bool TestAllTypes::has_default_import_enum() const {
  17797. return (_has_bits_[0] & 0x08000000u) != 0;
  17798. }
  17799. inline void TestAllTypes::set_has_default_import_enum() {
  17800. _has_bits_[0] |= 0x08000000u;
  17801. }
  17802. inline void TestAllTypes::clear_has_default_import_enum() {
  17803. _has_bits_[0] &= ~0x08000000u;
  17804. }
  17805. inline void TestAllTypes::clear_default_import_enum() {
  17806. default_import_enum_ = 8;
  17807. clear_has_default_import_enum();
  17808. }
  17809. inline ::protobuf_unittest_import::ImportEnum TestAllTypes::default_import_enum() const {
  17810. // @@protoc_insertion_point(field_get:protobuf_unittest.TestAllTypes.default_import_enum)
  17811. return static_cast< ::protobuf_unittest_import::ImportEnum >(default_import_enum_);
  17812. }
  17813. inline void TestAllTypes::set_default_import_enum(::protobuf_unittest_import::ImportEnum value) {
  17814. assert(::protobuf_unittest_import::ImportEnum_IsValid(value));
  17815. set_has_default_import_enum();
  17816. default_import_enum_ = value;
  17817. // @@protoc_insertion_point(field_set:protobuf_unittest.TestAllTypes.default_import_enum)
  17818. }
  17819. // optional string default_string_piece = 84 [default = "abc", ctype = STRING_PIECE];
  17820. inline bool TestAllTypes::has_default_string_piece() const {
  17821. return (_has_bits_[0] & 0x00000040u) != 0;
  17822. }
  17823. inline void TestAllTypes::set_has_default_string_piece() {
  17824. _has_bits_[0] |= 0x00000040u;
  17825. }
  17826. inline void TestAllTypes::clear_has_default_string_piece() {
  17827. _has_bits_[0] &= ~0x00000040u;
  17828. }
  17829. inline void TestAllTypes::clear_default_string_piece() {
  17830. default_string_piece_.ClearToDefault(&::protobuf_unittest::TestAllTypes::_i_give_permission_to_break_this_code_default_default_string_piece_.get(), GetArenaNoVirtual());
  17831. clear_has_default_string_piece();
  17832. }
  17833. inline const ::std::string& TestAllTypes::default_string_piece() const {
  17834. // @@protoc_insertion_point(field_get:protobuf_unittest.TestAllTypes.default_string_piece)
  17835. return default_string_piece_.Get();
  17836. }
  17837. inline void TestAllTypes::set_default_string_piece(const ::std::string& value) {
  17838. set_has_default_string_piece();
  17839. default_string_piece_.Set(&::protobuf_unittest::TestAllTypes::_i_give_permission_to_break_this_code_default_default_string_piece_.get(), value, GetArenaNoVirtual());
  17840. // @@protoc_insertion_point(field_set:protobuf_unittest.TestAllTypes.default_string_piece)
  17841. }
  17842. #if LANG_CXX11
  17843. inline void TestAllTypes::set_default_string_piece(::std::string&& value) {
  17844. set_has_default_string_piece();
  17845. default_string_piece_.Set(
  17846. &::protobuf_unittest::TestAllTypes::_i_give_permission_to_break_this_code_default_default_string_piece_.get(), ::std::move(value), GetArenaNoVirtual());
  17847. // @@protoc_insertion_point(field_set_rvalue:protobuf_unittest.TestAllTypes.default_string_piece)
  17848. }
  17849. #endif
  17850. inline void TestAllTypes::set_default_string_piece(const char* value) {
  17851. GOOGLE_DCHECK(value != NULL);
  17852. set_has_default_string_piece();
  17853. default_string_piece_.Set(&::protobuf_unittest::TestAllTypes::_i_give_permission_to_break_this_code_default_default_string_piece_.get(), ::std::string(value),
  17854. GetArenaNoVirtual());
  17855. // @@protoc_insertion_point(field_set_char:protobuf_unittest.TestAllTypes.default_string_piece)
  17856. }
  17857. inline void TestAllTypes::set_default_string_piece(const char* value,
  17858. size_t size) {
  17859. set_has_default_string_piece();
  17860. default_string_piece_.Set(&::protobuf_unittest::TestAllTypes::_i_give_permission_to_break_this_code_default_default_string_piece_.get(), ::std::string(
  17861. reinterpret_cast<const char*>(value), size), GetArenaNoVirtual());
  17862. // @@protoc_insertion_point(field_set_pointer:protobuf_unittest.TestAllTypes.default_string_piece)
  17863. }
  17864. inline ::std::string* TestAllTypes::mutable_default_string_piece() {
  17865. set_has_default_string_piece();
  17866. // @@protoc_insertion_point(field_mutable:protobuf_unittest.TestAllTypes.default_string_piece)
  17867. return default_string_piece_.Mutable(&::protobuf_unittest::TestAllTypes::_i_give_permission_to_break_this_code_default_default_string_piece_.get(), GetArenaNoVirtual());
  17868. }
  17869. inline ::std::string* TestAllTypes::release_default_string_piece() {
  17870. // @@protoc_insertion_point(field_release:protobuf_unittest.TestAllTypes.default_string_piece)
  17871. if (!has_default_string_piece()) {
  17872. return NULL;
  17873. }
  17874. clear_has_default_string_piece();
  17875. return default_string_piece_.ReleaseNonDefault(&::protobuf_unittest::TestAllTypes::_i_give_permission_to_break_this_code_default_default_string_piece_.get(), GetArenaNoVirtual());
  17876. }
  17877. inline void TestAllTypes::set_allocated_default_string_piece(::std::string* default_string_piece) {
  17878. if (default_string_piece != NULL) {
  17879. set_has_default_string_piece();
  17880. } else {
  17881. clear_has_default_string_piece();
  17882. }
  17883. default_string_piece_.SetAllocated(&::protobuf_unittest::TestAllTypes::_i_give_permission_to_break_this_code_default_default_string_piece_.get(), default_string_piece,
  17884. GetArenaNoVirtual());
  17885. // @@protoc_insertion_point(field_set_allocated:protobuf_unittest.TestAllTypes.default_string_piece)
  17886. }
  17887. inline ::std::string* TestAllTypes::unsafe_arena_release_default_string_piece() {
  17888. // @@protoc_insertion_point(field_unsafe_arena_release:protobuf_unittest.TestAllTypes.default_string_piece)
  17889. GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
  17890. clear_has_default_string_piece();
  17891. return default_string_piece_.UnsafeArenaRelease(&::protobuf_unittest::TestAllTypes::_i_give_permission_to_break_this_code_default_default_string_piece_.get(),
  17892. GetArenaNoVirtual());
  17893. }
  17894. inline void TestAllTypes::unsafe_arena_set_allocated_default_string_piece(
  17895. ::std::string* default_string_piece) {
  17896. GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
  17897. if (default_string_piece != NULL) {
  17898. set_has_default_string_piece();
  17899. } else {
  17900. clear_has_default_string_piece();
  17901. }
  17902. default_string_piece_.UnsafeArenaSetAllocated(&::protobuf_unittest::TestAllTypes::_i_give_permission_to_break_this_code_default_default_string_piece_.get(),
  17903. default_string_piece, GetArenaNoVirtual());
  17904. // @@protoc_insertion_point(field_unsafe_arena_set_allocated:protobuf_unittest.TestAllTypes.default_string_piece)
  17905. }
  17906. // optional string default_cord = 85 [default = "123", ctype = CORD];
  17907. inline bool TestAllTypes::has_default_cord() const {
  17908. return (_has_bits_[0] & 0x00000080u) != 0;
  17909. }
  17910. inline void TestAllTypes::set_has_default_cord() {
  17911. _has_bits_[0] |= 0x00000080u;
  17912. }
  17913. inline void TestAllTypes::clear_has_default_cord() {
  17914. _has_bits_[0] &= ~0x00000080u;
  17915. }
  17916. inline void TestAllTypes::clear_default_cord() {
  17917. default_cord_.ClearToDefault(&::protobuf_unittest::TestAllTypes::_i_give_permission_to_break_this_code_default_default_cord_.get(), GetArenaNoVirtual());
  17918. clear_has_default_cord();
  17919. }
  17920. inline const ::std::string& TestAllTypes::default_cord() const {
  17921. // @@protoc_insertion_point(field_get:protobuf_unittest.TestAllTypes.default_cord)
  17922. return default_cord_.Get();
  17923. }
  17924. inline void TestAllTypes::set_default_cord(const ::std::string& value) {
  17925. set_has_default_cord();
  17926. default_cord_.Set(&::protobuf_unittest::TestAllTypes::_i_give_permission_to_break_this_code_default_default_cord_.get(), value, GetArenaNoVirtual());
  17927. // @@protoc_insertion_point(field_set:protobuf_unittest.TestAllTypes.default_cord)
  17928. }
  17929. #if LANG_CXX11
  17930. inline void TestAllTypes::set_default_cord(::std::string&& value) {
  17931. set_has_default_cord();
  17932. default_cord_.Set(
  17933. &::protobuf_unittest::TestAllTypes::_i_give_permission_to_break_this_code_default_default_cord_.get(), ::std::move(value), GetArenaNoVirtual());
  17934. // @@protoc_insertion_point(field_set_rvalue:protobuf_unittest.TestAllTypes.default_cord)
  17935. }
  17936. #endif
  17937. inline void TestAllTypes::set_default_cord(const char* value) {
  17938. GOOGLE_DCHECK(value != NULL);
  17939. set_has_default_cord();
  17940. default_cord_.Set(&::protobuf_unittest::TestAllTypes::_i_give_permission_to_break_this_code_default_default_cord_.get(), ::std::string(value),
  17941. GetArenaNoVirtual());
  17942. // @@protoc_insertion_point(field_set_char:protobuf_unittest.TestAllTypes.default_cord)
  17943. }
  17944. inline void TestAllTypes::set_default_cord(const char* value,
  17945. size_t size) {
  17946. set_has_default_cord();
  17947. default_cord_.Set(&::protobuf_unittest::TestAllTypes::_i_give_permission_to_break_this_code_default_default_cord_.get(), ::std::string(
  17948. reinterpret_cast<const char*>(value), size), GetArenaNoVirtual());
  17949. // @@protoc_insertion_point(field_set_pointer:protobuf_unittest.TestAllTypes.default_cord)
  17950. }
  17951. inline ::std::string* TestAllTypes::mutable_default_cord() {
  17952. set_has_default_cord();
  17953. // @@protoc_insertion_point(field_mutable:protobuf_unittest.TestAllTypes.default_cord)
  17954. return default_cord_.Mutable(&::protobuf_unittest::TestAllTypes::_i_give_permission_to_break_this_code_default_default_cord_.get(), GetArenaNoVirtual());
  17955. }
  17956. inline ::std::string* TestAllTypes::release_default_cord() {
  17957. // @@protoc_insertion_point(field_release:protobuf_unittest.TestAllTypes.default_cord)
  17958. if (!has_default_cord()) {
  17959. return NULL;
  17960. }
  17961. clear_has_default_cord();
  17962. return default_cord_.ReleaseNonDefault(&::protobuf_unittest::TestAllTypes::_i_give_permission_to_break_this_code_default_default_cord_.get(), GetArenaNoVirtual());
  17963. }
  17964. inline void TestAllTypes::set_allocated_default_cord(::std::string* default_cord) {
  17965. if (default_cord != NULL) {
  17966. set_has_default_cord();
  17967. } else {
  17968. clear_has_default_cord();
  17969. }
  17970. default_cord_.SetAllocated(&::protobuf_unittest::TestAllTypes::_i_give_permission_to_break_this_code_default_default_cord_.get(), default_cord,
  17971. GetArenaNoVirtual());
  17972. // @@protoc_insertion_point(field_set_allocated:protobuf_unittest.TestAllTypes.default_cord)
  17973. }
  17974. inline ::std::string* TestAllTypes::unsafe_arena_release_default_cord() {
  17975. // @@protoc_insertion_point(field_unsafe_arena_release:protobuf_unittest.TestAllTypes.default_cord)
  17976. GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
  17977. clear_has_default_cord();
  17978. return default_cord_.UnsafeArenaRelease(&::protobuf_unittest::TestAllTypes::_i_give_permission_to_break_this_code_default_default_cord_.get(),
  17979. GetArenaNoVirtual());
  17980. }
  17981. inline void TestAllTypes::unsafe_arena_set_allocated_default_cord(
  17982. ::std::string* default_cord) {
  17983. GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
  17984. if (default_cord != NULL) {
  17985. set_has_default_cord();
  17986. } else {
  17987. clear_has_default_cord();
  17988. }
  17989. default_cord_.UnsafeArenaSetAllocated(&::protobuf_unittest::TestAllTypes::_i_give_permission_to_break_this_code_default_default_cord_.get(),
  17990. default_cord, GetArenaNoVirtual());
  17991. // @@protoc_insertion_point(field_unsafe_arena_set_allocated:protobuf_unittest.TestAllTypes.default_cord)
  17992. }
  17993. // optional uint32 oneof_uint32 = 111;
  17994. inline bool TestAllTypes::has_oneof_uint32() const {
  17995. return oneof_field_case() == kOneofUint32;
  17996. }
  17997. inline void TestAllTypes::set_has_oneof_uint32() {
  17998. _oneof_case_[0] = kOneofUint32;
  17999. }
  18000. inline void TestAllTypes::clear_oneof_uint32() {
  18001. if (has_oneof_uint32()) {
  18002. oneof_field_.oneof_uint32_ = 0u;
  18003. clear_has_oneof_field();
  18004. }
  18005. }
  18006. inline ::google::protobuf::uint32 TestAllTypes::oneof_uint32() const {
  18007. // @@protoc_insertion_point(field_get:protobuf_unittest.TestAllTypes.oneof_uint32)
  18008. if (has_oneof_uint32()) {
  18009. return oneof_field_.oneof_uint32_;
  18010. }
  18011. return 0u;
  18012. }
  18013. inline void TestAllTypes::set_oneof_uint32(::google::protobuf::uint32 value) {
  18014. if (!has_oneof_uint32()) {
  18015. clear_oneof_field();
  18016. set_has_oneof_uint32();
  18017. }
  18018. oneof_field_.oneof_uint32_ = value;
  18019. // @@protoc_insertion_point(field_set:protobuf_unittest.TestAllTypes.oneof_uint32)
  18020. }
  18021. // optional .protobuf_unittest.TestAllTypes.NestedMessage oneof_nested_message = 112;
  18022. inline bool TestAllTypes::has_oneof_nested_message() const {
  18023. return oneof_field_case() == kOneofNestedMessage;
  18024. }
  18025. inline void TestAllTypes::set_has_oneof_nested_message() {
  18026. _oneof_case_[0] = kOneofNestedMessage;
  18027. }
  18028. inline void TestAllTypes::clear_oneof_nested_message() {
  18029. if (has_oneof_nested_message()) {
  18030. if (GetArenaNoVirtual() == NULL) {
  18031. delete oneof_field_.oneof_nested_message_;
  18032. }
  18033. clear_has_oneof_field();
  18034. }
  18035. }
  18036. inline const ::protobuf_unittest::TestAllTypes_NestedMessage& TestAllTypes::_internal_oneof_nested_message() const {
  18037. return *oneof_field_.oneof_nested_message_;
  18038. }
  18039. inline ::protobuf_unittest::TestAllTypes_NestedMessage* TestAllTypes::release_oneof_nested_message() {
  18040. // @@protoc_insertion_point(field_release:protobuf_unittest.TestAllTypes.oneof_nested_message)
  18041. if (has_oneof_nested_message()) {
  18042. clear_has_oneof_field();
  18043. ::protobuf_unittest::TestAllTypes_NestedMessage* temp = oneof_field_.oneof_nested_message_;
  18044. if (GetArenaNoVirtual() != NULL) {
  18045. temp = ::google::protobuf::internal::DuplicateIfNonNull(temp);
  18046. }
  18047. oneof_field_.oneof_nested_message_ = NULL;
  18048. return temp;
  18049. } else {
  18050. return NULL;
  18051. }
  18052. }
  18053. inline const ::protobuf_unittest::TestAllTypes_NestedMessage& TestAllTypes::oneof_nested_message() const {
  18054. // @@protoc_insertion_point(field_get:protobuf_unittest.TestAllTypes.oneof_nested_message)
  18055. return has_oneof_nested_message()
  18056. ? *oneof_field_.oneof_nested_message_
  18057. : *reinterpret_cast< ::protobuf_unittest::TestAllTypes_NestedMessage*>(&::protobuf_unittest::_TestAllTypes_NestedMessage_default_instance_);
  18058. }
  18059. inline ::protobuf_unittest::TestAllTypes_NestedMessage* TestAllTypes::unsafe_arena_release_oneof_nested_message() {
  18060. // @@protoc_insertion_point(field_unsafe_arena_release:protobuf_unittest.TestAllTypes.oneof_nested_message)
  18061. if (has_oneof_nested_message()) {
  18062. clear_has_oneof_field();
  18063. ::protobuf_unittest::TestAllTypes_NestedMessage* temp = oneof_field_.oneof_nested_message_;
  18064. oneof_field_.oneof_nested_message_ = NULL;
  18065. return temp;
  18066. } else {
  18067. return NULL;
  18068. }
  18069. }
  18070. inline void TestAllTypes::unsafe_arena_set_allocated_oneof_nested_message(::protobuf_unittest::TestAllTypes_NestedMessage* oneof_nested_message) {
  18071. clear_oneof_field();
  18072. if (oneof_nested_message) {
  18073. set_has_oneof_nested_message();
  18074. oneof_field_.oneof_nested_message_ = oneof_nested_message;
  18075. }
  18076. // @@protoc_insertion_point(field_unsafe_arena_set_allocated:protobuf_unittest.TestAllTypes.oneof_nested_message)
  18077. }
  18078. inline ::protobuf_unittest::TestAllTypes_NestedMessage* TestAllTypes::mutable_oneof_nested_message() {
  18079. if (!has_oneof_nested_message()) {
  18080. clear_oneof_field();
  18081. set_has_oneof_nested_message();
  18082. oneof_field_.oneof_nested_message_ = CreateMaybeMessage< ::protobuf_unittest::TestAllTypes_NestedMessage >(
  18083. GetArenaNoVirtual());
  18084. }
  18085. // @@protoc_insertion_point(field_mutable:protobuf_unittest.TestAllTypes.oneof_nested_message)
  18086. return oneof_field_.oneof_nested_message_;
  18087. }
  18088. // optional string oneof_string = 113;
  18089. inline bool TestAllTypes::has_oneof_string() const {
  18090. return oneof_field_case() == kOneofString;
  18091. }
  18092. inline void TestAllTypes::set_has_oneof_string() {
  18093. _oneof_case_[0] = kOneofString;
  18094. }
  18095. inline void TestAllTypes::clear_oneof_string() {
  18096. if (has_oneof_string()) {
  18097. oneof_field_.oneof_string_.Destroy(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  18098. GetArenaNoVirtual());
  18099. clear_has_oneof_field();
  18100. }
  18101. }
  18102. inline const ::std::string& TestAllTypes::oneof_string() const {
  18103. // @@protoc_insertion_point(field_get:protobuf_unittest.TestAllTypes.oneof_string)
  18104. if (has_oneof_string()) {
  18105. return oneof_field_.oneof_string_.Get();
  18106. }
  18107. return *&::google::protobuf::internal::GetEmptyStringAlreadyInited();
  18108. }
  18109. inline void TestAllTypes::set_oneof_string(const ::std::string& value) {
  18110. if (!has_oneof_string()) {
  18111. clear_oneof_field();
  18112. set_has_oneof_string();
  18113. oneof_field_.oneof_string_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  18114. }
  18115. oneof_field_.oneof_string_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value,
  18116. GetArenaNoVirtual());
  18117. // @@protoc_insertion_point(field_set:protobuf_unittest.TestAllTypes.oneof_string)
  18118. }
  18119. #if LANG_CXX11
  18120. inline void TestAllTypes::set_oneof_string(::std::string&& value) {
  18121. // @@protoc_insertion_point(field_set:protobuf_unittest.TestAllTypes.oneof_string)
  18122. if (!has_oneof_string()) {
  18123. clear_oneof_field();
  18124. set_has_oneof_string();
  18125. oneof_field_.oneof_string_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  18126. }
  18127. oneof_field_.oneof_string_.Set(
  18128. &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual());
  18129. // @@protoc_insertion_point(field_set_rvalue:protobuf_unittest.TestAllTypes.oneof_string)
  18130. }
  18131. #endif
  18132. inline void TestAllTypes::set_oneof_string(const char* value) {
  18133. GOOGLE_DCHECK(value != NULL);
  18134. if (!has_oneof_string()) {
  18135. clear_oneof_field();
  18136. set_has_oneof_string();
  18137. oneof_field_.oneof_string_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  18138. }
  18139. oneof_field_.oneof_string_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  18140. ::std::string(value), GetArenaNoVirtual());
  18141. // @@protoc_insertion_point(field_set_char:protobuf_unittest.TestAllTypes.oneof_string)
  18142. }
  18143. inline void TestAllTypes::set_oneof_string(const char* value,
  18144. size_t size) {
  18145. if (!has_oneof_string()) {
  18146. clear_oneof_field();
  18147. set_has_oneof_string();
  18148. oneof_field_.oneof_string_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  18149. }
  18150. oneof_field_.oneof_string_.Set(
  18151. &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(
  18152. reinterpret_cast<const char*>(value), size),
  18153. GetArenaNoVirtual());
  18154. // @@protoc_insertion_point(field_set_pointer:protobuf_unittest.TestAllTypes.oneof_string)
  18155. }
  18156. inline ::std::string* TestAllTypes::mutable_oneof_string() {
  18157. if (!has_oneof_string()) {
  18158. clear_oneof_field();
  18159. set_has_oneof_string();
  18160. oneof_field_.oneof_string_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  18161. }
  18162. return oneof_field_.oneof_string_.Mutable(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  18163. GetArenaNoVirtual());
  18164. // @@protoc_insertion_point(field_mutable:protobuf_unittest.TestAllTypes.oneof_string)
  18165. }
  18166. inline ::std::string* TestAllTypes::release_oneof_string() {
  18167. // @@protoc_insertion_point(field_release:protobuf_unittest.TestAllTypes.oneof_string)
  18168. if (has_oneof_string()) {
  18169. clear_has_oneof_field();
  18170. return oneof_field_.oneof_string_.Release(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  18171. GetArenaNoVirtual());
  18172. } else {
  18173. return NULL;
  18174. }
  18175. }
  18176. inline void TestAllTypes::set_allocated_oneof_string(::std::string* oneof_string) {
  18177. if (!has_oneof_string()) {
  18178. oneof_field_.oneof_string_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  18179. }
  18180. clear_oneof_field();
  18181. if (oneof_string != NULL) {
  18182. set_has_oneof_string();
  18183. oneof_field_.oneof_string_.SetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), oneof_string,
  18184. GetArenaNoVirtual());
  18185. }
  18186. // @@protoc_insertion_point(field_set_allocated:protobuf_unittest.TestAllTypes.oneof_string)
  18187. }
  18188. inline ::std::string* TestAllTypes::unsafe_arena_release_oneof_string() {
  18189. // @@protoc_insertion_point(field_unsafe_arena_release:protobuf_unittest.TestAllTypes.oneof_string)
  18190. GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
  18191. if (has_oneof_string()) {
  18192. clear_has_oneof_field();
  18193. return oneof_field_.oneof_string_.UnsafeArenaRelease(
  18194. &::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
  18195. } else {
  18196. return NULL;
  18197. }
  18198. }
  18199. inline void TestAllTypes::unsafe_arena_set_allocated_oneof_string(::std::string* oneof_string) {
  18200. GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
  18201. if (!has_oneof_string()) {
  18202. oneof_field_.oneof_string_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  18203. }
  18204. clear_oneof_field();
  18205. if (oneof_string) {
  18206. set_has_oneof_string();
  18207. oneof_field_.oneof_string_.UnsafeArenaSetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), oneof_string, GetArenaNoVirtual());
  18208. }
  18209. // @@protoc_insertion_point(field_unsafe_arena_set_allocated:protobuf_unittest.TestAllTypes.oneof_string)
  18210. }
  18211. // optional bytes oneof_bytes = 114;
  18212. inline bool TestAllTypes::has_oneof_bytes() const {
  18213. return oneof_field_case() == kOneofBytes;
  18214. }
  18215. inline void TestAllTypes::set_has_oneof_bytes() {
  18216. _oneof_case_[0] = kOneofBytes;
  18217. }
  18218. inline void TestAllTypes::clear_oneof_bytes() {
  18219. if (has_oneof_bytes()) {
  18220. oneof_field_.oneof_bytes_.Destroy(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  18221. GetArenaNoVirtual());
  18222. clear_has_oneof_field();
  18223. }
  18224. }
  18225. inline const ::std::string& TestAllTypes::oneof_bytes() const {
  18226. // @@protoc_insertion_point(field_get:protobuf_unittest.TestAllTypes.oneof_bytes)
  18227. if (has_oneof_bytes()) {
  18228. return oneof_field_.oneof_bytes_.Get();
  18229. }
  18230. return *&::google::protobuf::internal::GetEmptyStringAlreadyInited();
  18231. }
  18232. inline void TestAllTypes::set_oneof_bytes(const ::std::string& value) {
  18233. if (!has_oneof_bytes()) {
  18234. clear_oneof_field();
  18235. set_has_oneof_bytes();
  18236. oneof_field_.oneof_bytes_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  18237. }
  18238. oneof_field_.oneof_bytes_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value,
  18239. GetArenaNoVirtual());
  18240. // @@protoc_insertion_point(field_set:protobuf_unittest.TestAllTypes.oneof_bytes)
  18241. }
  18242. #if LANG_CXX11
  18243. inline void TestAllTypes::set_oneof_bytes(::std::string&& value) {
  18244. // @@protoc_insertion_point(field_set:protobuf_unittest.TestAllTypes.oneof_bytes)
  18245. if (!has_oneof_bytes()) {
  18246. clear_oneof_field();
  18247. set_has_oneof_bytes();
  18248. oneof_field_.oneof_bytes_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  18249. }
  18250. oneof_field_.oneof_bytes_.Set(
  18251. &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual());
  18252. // @@protoc_insertion_point(field_set_rvalue:protobuf_unittest.TestAllTypes.oneof_bytes)
  18253. }
  18254. #endif
  18255. inline void TestAllTypes::set_oneof_bytes(const char* value) {
  18256. GOOGLE_DCHECK(value != NULL);
  18257. if (!has_oneof_bytes()) {
  18258. clear_oneof_field();
  18259. set_has_oneof_bytes();
  18260. oneof_field_.oneof_bytes_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  18261. }
  18262. oneof_field_.oneof_bytes_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  18263. ::std::string(value), GetArenaNoVirtual());
  18264. // @@protoc_insertion_point(field_set_char:protobuf_unittest.TestAllTypes.oneof_bytes)
  18265. }
  18266. inline void TestAllTypes::set_oneof_bytes(const void* value,
  18267. size_t size) {
  18268. if (!has_oneof_bytes()) {
  18269. clear_oneof_field();
  18270. set_has_oneof_bytes();
  18271. oneof_field_.oneof_bytes_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  18272. }
  18273. oneof_field_.oneof_bytes_.Set(
  18274. &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(
  18275. reinterpret_cast<const char*>(value), size),
  18276. GetArenaNoVirtual());
  18277. // @@protoc_insertion_point(field_set_pointer:protobuf_unittest.TestAllTypes.oneof_bytes)
  18278. }
  18279. inline ::std::string* TestAllTypes::mutable_oneof_bytes() {
  18280. if (!has_oneof_bytes()) {
  18281. clear_oneof_field();
  18282. set_has_oneof_bytes();
  18283. oneof_field_.oneof_bytes_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  18284. }
  18285. return oneof_field_.oneof_bytes_.Mutable(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  18286. GetArenaNoVirtual());
  18287. // @@protoc_insertion_point(field_mutable:protobuf_unittest.TestAllTypes.oneof_bytes)
  18288. }
  18289. inline ::std::string* TestAllTypes::release_oneof_bytes() {
  18290. // @@protoc_insertion_point(field_release:protobuf_unittest.TestAllTypes.oneof_bytes)
  18291. if (has_oneof_bytes()) {
  18292. clear_has_oneof_field();
  18293. return oneof_field_.oneof_bytes_.Release(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  18294. GetArenaNoVirtual());
  18295. } else {
  18296. return NULL;
  18297. }
  18298. }
  18299. inline void TestAllTypes::set_allocated_oneof_bytes(::std::string* oneof_bytes) {
  18300. if (!has_oneof_bytes()) {
  18301. oneof_field_.oneof_bytes_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  18302. }
  18303. clear_oneof_field();
  18304. if (oneof_bytes != NULL) {
  18305. set_has_oneof_bytes();
  18306. oneof_field_.oneof_bytes_.SetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), oneof_bytes,
  18307. GetArenaNoVirtual());
  18308. }
  18309. // @@protoc_insertion_point(field_set_allocated:protobuf_unittest.TestAllTypes.oneof_bytes)
  18310. }
  18311. inline ::std::string* TestAllTypes::unsafe_arena_release_oneof_bytes() {
  18312. // @@protoc_insertion_point(field_unsafe_arena_release:protobuf_unittest.TestAllTypes.oneof_bytes)
  18313. GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
  18314. if (has_oneof_bytes()) {
  18315. clear_has_oneof_field();
  18316. return oneof_field_.oneof_bytes_.UnsafeArenaRelease(
  18317. &::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
  18318. } else {
  18319. return NULL;
  18320. }
  18321. }
  18322. inline void TestAllTypes::unsafe_arena_set_allocated_oneof_bytes(::std::string* oneof_bytes) {
  18323. GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
  18324. if (!has_oneof_bytes()) {
  18325. oneof_field_.oneof_bytes_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  18326. }
  18327. clear_oneof_field();
  18328. if (oneof_bytes) {
  18329. set_has_oneof_bytes();
  18330. oneof_field_.oneof_bytes_.UnsafeArenaSetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), oneof_bytes, GetArenaNoVirtual());
  18331. }
  18332. // @@protoc_insertion_point(field_unsafe_arena_set_allocated:protobuf_unittest.TestAllTypes.oneof_bytes)
  18333. }
  18334. inline bool TestAllTypes::has_oneof_field() const {
  18335. return oneof_field_case() != ONEOF_FIELD_NOT_SET;
  18336. }
  18337. inline void TestAllTypes::clear_has_oneof_field() {
  18338. _oneof_case_[0] = ONEOF_FIELD_NOT_SET;
  18339. }
  18340. inline TestAllTypes::OneofFieldCase TestAllTypes::oneof_field_case() const {
  18341. return TestAllTypes::OneofFieldCase(_oneof_case_[0]);
  18342. }
  18343. // -------------------------------------------------------------------
  18344. // NestedTestAllTypes
  18345. // optional .protobuf_unittest.NestedTestAllTypes child = 1;
  18346. inline bool NestedTestAllTypes::has_child() const {
  18347. return (_has_bits_[0] & 0x00000001u) != 0;
  18348. }
  18349. inline void NestedTestAllTypes::set_has_child() {
  18350. _has_bits_[0] |= 0x00000001u;
  18351. }
  18352. inline void NestedTestAllTypes::clear_has_child() {
  18353. _has_bits_[0] &= ~0x00000001u;
  18354. }
  18355. inline void NestedTestAllTypes::clear_child() {
  18356. if (child_ != NULL) child_->Clear();
  18357. clear_has_child();
  18358. }
  18359. inline const ::protobuf_unittest::NestedTestAllTypes& NestedTestAllTypes::_internal_child() const {
  18360. return *child_;
  18361. }
  18362. inline const ::protobuf_unittest::NestedTestAllTypes& NestedTestAllTypes::child() const {
  18363. const ::protobuf_unittest::NestedTestAllTypes* p = child_;
  18364. // @@protoc_insertion_point(field_get:protobuf_unittest.NestedTestAllTypes.child)
  18365. return p != NULL ? *p : *reinterpret_cast<const ::protobuf_unittest::NestedTestAllTypes*>(
  18366. &::protobuf_unittest::_NestedTestAllTypes_default_instance_);
  18367. }
  18368. inline ::protobuf_unittest::NestedTestAllTypes* NestedTestAllTypes::release_child() {
  18369. // @@protoc_insertion_point(field_release:protobuf_unittest.NestedTestAllTypes.child)
  18370. clear_has_child();
  18371. ::protobuf_unittest::NestedTestAllTypes* temp = child_;
  18372. if (GetArenaNoVirtual() != NULL) {
  18373. temp = ::google::protobuf::internal::DuplicateIfNonNull(temp);
  18374. }
  18375. child_ = NULL;
  18376. return temp;
  18377. }
  18378. inline ::protobuf_unittest::NestedTestAllTypes* NestedTestAllTypes::unsafe_arena_release_child() {
  18379. // @@protoc_insertion_point(field_unsafe_arena_release:protobuf_unittest.NestedTestAllTypes.child)
  18380. clear_has_child();
  18381. ::protobuf_unittest::NestedTestAllTypes* temp = child_;
  18382. child_ = NULL;
  18383. return temp;
  18384. }
  18385. inline ::protobuf_unittest::NestedTestAllTypes* NestedTestAllTypes::mutable_child() {
  18386. set_has_child();
  18387. if (child_ == NULL) {
  18388. auto* p = CreateMaybeMessage<::protobuf_unittest::NestedTestAllTypes>(GetArenaNoVirtual());
  18389. child_ = p;
  18390. }
  18391. // @@protoc_insertion_point(field_mutable:protobuf_unittest.NestedTestAllTypes.child)
  18392. return child_;
  18393. }
  18394. inline void NestedTestAllTypes::set_allocated_child(::protobuf_unittest::NestedTestAllTypes* child) {
  18395. ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
  18396. if (message_arena == NULL) {
  18397. delete child_;
  18398. }
  18399. if (child) {
  18400. ::google::protobuf::Arena* submessage_arena =
  18401. ::google::protobuf::Arena::GetArena(child);
  18402. if (message_arena != submessage_arena) {
  18403. child = ::google::protobuf::internal::GetOwnedMessage(
  18404. message_arena, child, submessage_arena);
  18405. }
  18406. set_has_child();
  18407. } else {
  18408. clear_has_child();
  18409. }
  18410. child_ = child;
  18411. // @@protoc_insertion_point(field_set_allocated:protobuf_unittest.NestedTestAllTypes.child)
  18412. }
  18413. // optional .protobuf_unittest.TestAllTypes payload = 2;
  18414. inline bool NestedTestAllTypes::has_payload() const {
  18415. return (_has_bits_[0] & 0x00000002u) != 0;
  18416. }
  18417. inline void NestedTestAllTypes::set_has_payload() {
  18418. _has_bits_[0] |= 0x00000002u;
  18419. }
  18420. inline void NestedTestAllTypes::clear_has_payload() {
  18421. _has_bits_[0] &= ~0x00000002u;
  18422. }
  18423. inline void NestedTestAllTypes::clear_payload() {
  18424. if (payload_ != NULL) payload_->Clear();
  18425. clear_has_payload();
  18426. }
  18427. inline const ::protobuf_unittest::TestAllTypes& NestedTestAllTypes::_internal_payload() const {
  18428. return *payload_;
  18429. }
  18430. inline const ::protobuf_unittest::TestAllTypes& NestedTestAllTypes::payload() const {
  18431. const ::protobuf_unittest::TestAllTypes* p = payload_;
  18432. // @@protoc_insertion_point(field_get:protobuf_unittest.NestedTestAllTypes.payload)
  18433. return p != NULL ? *p : *reinterpret_cast<const ::protobuf_unittest::TestAllTypes*>(
  18434. &::protobuf_unittest::_TestAllTypes_default_instance_);
  18435. }
  18436. inline ::protobuf_unittest::TestAllTypes* NestedTestAllTypes::release_payload() {
  18437. // @@protoc_insertion_point(field_release:protobuf_unittest.NestedTestAllTypes.payload)
  18438. clear_has_payload();
  18439. ::protobuf_unittest::TestAllTypes* temp = payload_;
  18440. if (GetArenaNoVirtual() != NULL) {
  18441. temp = ::google::protobuf::internal::DuplicateIfNonNull(temp);
  18442. }
  18443. payload_ = NULL;
  18444. return temp;
  18445. }
  18446. inline ::protobuf_unittest::TestAllTypes* NestedTestAllTypes::unsafe_arena_release_payload() {
  18447. // @@protoc_insertion_point(field_unsafe_arena_release:protobuf_unittest.NestedTestAllTypes.payload)
  18448. clear_has_payload();
  18449. ::protobuf_unittest::TestAllTypes* temp = payload_;
  18450. payload_ = NULL;
  18451. return temp;
  18452. }
  18453. inline ::protobuf_unittest::TestAllTypes* NestedTestAllTypes::mutable_payload() {
  18454. set_has_payload();
  18455. if (payload_ == NULL) {
  18456. auto* p = CreateMaybeMessage<::protobuf_unittest::TestAllTypes>(GetArenaNoVirtual());
  18457. payload_ = p;
  18458. }
  18459. // @@protoc_insertion_point(field_mutable:protobuf_unittest.NestedTestAllTypes.payload)
  18460. return payload_;
  18461. }
  18462. inline void NestedTestAllTypes::set_allocated_payload(::protobuf_unittest::TestAllTypes* payload) {
  18463. ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
  18464. if (message_arena == NULL) {
  18465. delete payload_;
  18466. }
  18467. if (payload) {
  18468. ::google::protobuf::Arena* submessage_arena =
  18469. ::google::protobuf::Arena::GetArena(payload);
  18470. if (message_arena != submessage_arena) {
  18471. payload = ::google::protobuf::internal::GetOwnedMessage(
  18472. message_arena, payload, submessage_arena);
  18473. }
  18474. set_has_payload();
  18475. } else {
  18476. clear_has_payload();
  18477. }
  18478. payload_ = payload;
  18479. // @@protoc_insertion_point(field_set_allocated:protobuf_unittest.NestedTestAllTypes.payload)
  18480. }
  18481. // repeated .protobuf_unittest.NestedTestAllTypes repeated_child = 3;
  18482. inline int NestedTestAllTypes::repeated_child_size() const {
  18483. return repeated_child_.size();
  18484. }
  18485. inline void NestedTestAllTypes::clear_repeated_child() {
  18486. repeated_child_.Clear();
  18487. }
  18488. inline ::protobuf_unittest::NestedTestAllTypes* NestedTestAllTypes::mutable_repeated_child(int index) {
  18489. // @@protoc_insertion_point(field_mutable:protobuf_unittest.NestedTestAllTypes.repeated_child)
  18490. return repeated_child_.Mutable(index);
  18491. }
  18492. inline ::google::protobuf::RepeatedPtrField< ::protobuf_unittest::NestedTestAllTypes >*
  18493. NestedTestAllTypes::mutable_repeated_child() {
  18494. // @@protoc_insertion_point(field_mutable_list:protobuf_unittest.NestedTestAllTypes.repeated_child)
  18495. return &repeated_child_;
  18496. }
  18497. inline const ::protobuf_unittest::NestedTestAllTypes& NestedTestAllTypes::repeated_child(int index) const {
  18498. // @@protoc_insertion_point(field_get:protobuf_unittest.NestedTestAllTypes.repeated_child)
  18499. return repeated_child_.Get(index);
  18500. }
  18501. inline ::protobuf_unittest::NestedTestAllTypes* NestedTestAllTypes::add_repeated_child() {
  18502. // @@protoc_insertion_point(field_add:protobuf_unittest.NestedTestAllTypes.repeated_child)
  18503. return repeated_child_.Add();
  18504. }
  18505. inline const ::google::protobuf::RepeatedPtrField< ::protobuf_unittest::NestedTestAllTypes >&
  18506. NestedTestAllTypes::repeated_child() const {
  18507. // @@protoc_insertion_point(field_list:protobuf_unittest.NestedTestAllTypes.repeated_child)
  18508. return repeated_child_;
  18509. }
  18510. // -------------------------------------------------------------------
  18511. // TestDeprecatedFields
  18512. // optional int32 deprecated_int32 = 1 [deprecated = true];
  18513. inline bool TestDeprecatedFields::has_deprecated_int32() const {
  18514. return (_has_bits_[0] & 0x00000001u) != 0;
  18515. }
  18516. inline void TestDeprecatedFields::set_has_deprecated_int32() {
  18517. _has_bits_[0] |= 0x00000001u;
  18518. }
  18519. inline void TestDeprecatedFields::clear_has_deprecated_int32() {
  18520. _has_bits_[0] &= ~0x00000001u;
  18521. }
  18522. inline void TestDeprecatedFields::clear_deprecated_int32() {
  18523. deprecated_int32_ = 0;
  18524. clear_has_deprecated_int32();
  18525. }
  18526. inline ::google::protobuf::int32 TestDeprecatedFields::deprecated_int32() const {
  18527. // @@protoc_insertion_point(field_get:protobuf_unittest.TestDeprecatedFields.deprecated_int32)
  18528. return deprecated_int32_;
  18529. }
  18530. inline void TestDeprecatedFields::set_deprecated_int32(::google::protobuf::int32 value) {
  18531. set_has_deprecated_int32();
  18532. deprecated_int32_ = value;
  18533. // @@protoc_insertion_point(field_set:protobuf_unittest.TestDeprecatedFields.deprecated_int32)
  18534. }
  18535. // optional int32 deprecated_int32_in_oneof = 2 [deprecated = true];
  18536. inline bool TestDeprecatedFields::has_deprecated_int32_in_oneof() const {
  18537. return oneof_fields_case() == kDeprecatedInt32InOneof;
  18538. }
  18539. inline void TestDeprecatedFields::set_has_deprecated_int32_in_oneof() {
  18540. _oneof_case_[0] = kDeprecatedInt32InOneof;
  18541. }
  18542. inline void TestDeprecatedFields::clear_deprecated_int32_in_oneof() {
  18543. if (has_deprecated_int32_in_oneof()) {
  18544. oneof_fields_.deprecated_int32_in_oneof_ = 0;
  18545. clear_has_oneof_fields();
  18546. }
  18547. }
  18548. inline ::google::protobuf::int32 TestDeprecatedFields::deprecated_int32_in_oneof() const {
  18549. // @@protoc_insertion_point(field_get:protobuf_unittest.TestDeprecatedFields.deprecated_int32_in_oneof)
  18550. if (has_deprecated_int32_in_oneof()) {
  18551. return oneof_fields_.deprecated_int32_in_oneof_;
  18552. }
  18553. return 0;
  18554. }
  18555. inline void TestDeprecatedFields::set_deprecated_int32_in_oneof(::google::protobuf::int32 value) {
  18556. if (!has_deprecated_int32_in_oneof()) {
  18557. clear_oneof_fields();
  18558. set_has_deprecated_int32_in_oneof();
  18559. }
  18560. oneof_fields_.deprecated_int32_in_oneof_ = value;
  18561. // @@protoc_insertion_point(field_set:protobuf_unittest.TestDeprecatedFields.deprecated_int32_in_oneof)
  18562. }
  18563. inline bool TestDeprecatedFields::has_oneof_fields() const {
  18564. return oneof_fields_case() != ONEOF_FIELDS_NOT_SET;
  18565. }
  18566. inline void TestDeprecatedFields::clear_has_oneof_fields() {
  18567. _oneof_case_[0] = ONEOF_FIELDS_NOT_SET;
  18568. }
  18569. inline TestDeprecatedFields::OneofFieldsCase TestDeprecatedFields::oneof_fields_case() const {
  18570. return TestDeprecatedFields::OneofFieldsCase(_oneof_case_[0]);
  18571. }
  18572. // -------------------------------------------------------------------
  18573. // TestDeprecatedMessage
  18574. // -------------------------------------------------------------------
  18575. // ForeignMessage
  18576. // optional int32 c = 1;
  18577. inline bool ForeignMessage::has_c() const {
  18578. return (_has_bits_[0] & 0x00000001u) != 0;
  18579. }
  18580. inline void ForeignMessage::set_has_c() {
  18581. _has_bits_[0] |= 0x00000001u;
  18582. }
  18583. inline void ForeignMessage::clear_has_c() {
  18584. _has_bits_[0] &= ~0x00000001u;
  18585. }
  18586. inline void ForeignMessage::clear_c() {
  18587. c_ = 0;
  18588. clear_has_c();
  18589. }
  18590. inline ::google::protobuf::int32 ForeignMessage::c() const {
  18591. // @@protoc_insertion_point(field_get:protobuf_unittest.ForeignMessage.c)
  18592. return c_;
  18593. }
  18594. inline void ForeignMessage::set_c(::google::protobuf::int32 value) {
  18595. set_has_c();
  18596. c_ = value;
  18597. // @@protoc_insertion_point(field_set:protobuf_unittest.ForeignMessage.c)
  18598. }
  18599. // optional int32 d = 2;
  18600. inline bool ForeignMessage::has_d() const {
  18601. return (_has_bits_[0] & 0x00000002u) != 0;
  18602. }
  18603. inline void ForeignMessage::set_has_d() {
  18604. _has_bits_[0] |= 0x00000002u;
  18605. }
  18606. inline void ForeignMessage::clear_has_d() {
  18607. _has_bits_[0] &= ~0x00000002u;
  18608. }
  18609. inline void ForeignMessage::clear_d() {
  18610. d_ = 0;
  18611. clear_has_d();
  18612. }
  18613. inline ::google::protobuf::int32 ForeignMessage::d() const {
  18614. // @@protoc_insertion_point(field_get:protobuf_unittest.ForeignMessage.d)
  18615. return d_;
  18616. }
  18617. inline void ForeignMessage::set_d(::google::protobuf::int32 value) {
  18618. set_has_d();
  18619. d_ = value;
  18620. // @@protoc_insertion_point(field_set:protobuf_unittest.ForeignMessage.d)
  18621. }
  18622. // -------------------------------------------------------------------
  18623. // TestReservedFields
  18624. // -------------------------------------------------------------------
  18625. // TestAllExtensions
  18626. // -------------------------------------------------------------------
  18627. // OptionalGroup_extension
  18628. // optional int32 a = 17;
  18629. inline bool OptionalGroup_extension::has_a() const {
  18630. return (_has_bits_[0] & 0x00000001u) != 0;
  18631. }
  18632. inline void OptionalGroup_extension::set_has_a() {
  18633. _has_bits_[0] |= 0x00000001u;
  18634. }
  18635. inline void OptionalGroup_extension::clear_has_a() {
  18636. _has_bits_[0] &= ~0x00000001u;
  18637. }
  18638. inline void OptionalGroup_extension::clear_a() {
  18639. a_ = 0;
  18640. clear_has_a();
  18641. }
  18642. inline ::google::protobuf::int32 OptionalGroup_extension::a() const {
  18643. // @@protoc_insertion_point(field_get:protobuf_unittest.OptionalGroup_extension.a)
  18644. return a_;
  18645. }
  18646. inline void OptionalGroup_extension::set_a(::google::protobuf::int32 value) {
  18647. set_has_a();
  18648. a_ = value;
  18649. // @@protoc_insertion_point(field_set:protobuf_unittest.OptionalGroup_extension.a)
  18650. }
  18651. // -------------------------------------------------------------------
  18652. // RepeatedGroup_extension
  18653. // optional int32 a = 47;
  18654. inline bool RepeatedGroup_extension::has_a() const {
  18655. return (_has_bits_[0] & 0x00000001u) != 0;
  18656. }
  18657. inline void RepeatedGroup_extension::set_has_a() {
  18658. _has_bits_[0] |= 0x00000001u;
  18659. }
  18660. inline void RepeatedGroup_extension::clear_has_a() {
  18661. _has_bits_[0] &= ~0x00000001u;
  18662. }
  18663. inline void RepeatedGroup_extension::clear_a() {
  18664. a_ = 0;
  18665. clear_has_a();
  18666. }
  18667. inline ::google::protobuf::int32 RepeatedGroup_extension::a() const {
  18668. // @@protoc_insertion_point(field_get:protobuf_unittest.RepeatedGroup_extension.a)
  18669. return a_;
  18670. }
  18671. inline void RepeatedGroup_extension::set_a(::google::protobuf::int32 value) {
  18672. set_has_a();
  18673. a_ = value;
  18674. // @@protoc_insertion_point(field_set:protobuf_unittest.RepeatedGroup_extension.a)
  18675. }
  18676. // -------------------------------------------------------------------
  18677. // TestGroup_OptionalGroup
  18678. // optional int32 a = 17;
  18679. inline bool TestGroup_OptionalGroup::has_a() const {
  18680. return (_has_bits_[0] & 0x00000001u) != 0;
  18681. }
  18682. inline void TestGroup_OptionalGroup::set_has_a() {
  18683. _has_bits_[0] |= 0x00000001u;
  18684. }
  18685. inline void TestGroup_OptionalGroup::clear_has_a() {
  18686. _has_bits_[0] &= ~0x00000001u;
  18687. }
  18688. inline void TestGroup_OptionalGroup::clear_a() {
  18689. a_ = 0;
  18690. clear_has_a();
  18691. }
  18692. inline ::google::protobuf::int32 TestGroup_OptionalGroup::a() const {
  18693. // @@protoc_insertion_point(field_get:protobuf_unittest.TestGroup.OptionalGroup.a)
  18694. return a_;
  18695. }
  18696. inline void TestGroup_OptionalGroup::set_a(::google::protobuf::int32 value) {
  18697. set_has_a();
  18698. a_ = value;
  18699. // @@protoc_insertion_point(field_set:protobuf_unittest.TestGroup.OptionalGroup.a)
  18700. }
  18701. // -------------------------------------------------------------------
  18702. // TestGroup
  18703. // optional group OptionalGroup = 16 { ... };
  18704. inline bool TestGroup::has_optionalgroup() const {
  18705. return (_has_bits_[0] & 0x00000001u) != 0;
  18706. }
  18707. inline void TestGroup::set_has_optionalgroup() {
  18708. _has_bits_[0] |= 0x00000001u;
  18709. }
  18710. inline void TestGroup::clear_has_optionalgroup() {
  18711. _has_bits_[0] &= ~0x00000001u;
  18712. }
  18713. inline void TestGroup::clear_optionalgroup() {
  18714. if (optionalgroup_ != NULL) optionalgroup_->Clear();
  18715. clear_has_optionalgroup();
  18716. }
  18717. inline const ::protobuf_unittest::TestGroup_OptionalGroup& TestGroup::_internal_optionalgroup() const {
  18718. return *optionalgroup_;
  18719. }
  18720. inline const ::protobuf_unittest::TestGroup_OptionalGroup& TestGroup::optionalgroup() const {
  18721. const ::protobuf_unittest::TestGroup_OptionalGroup* p = optionalgroup_;
  18722. // @@protoc_insertion_point(field_get:protobuf_unittest.TestGroup.optionalgroup)
  18723. return p != NULL ? *p : *reinterpret_cast<const ::protobuf_unittest::TestGroup_OptionalGroup*>(
  18724. &::protobuf_unittest::_TestGroup_OptionalGroup_default_instance_);
  18725. }
  18726. inline ::protobuf_unittest::TestGroup_OptionalGroup* TestGroup::release_optionalgroup() {
  18727. // @@protoc_insertion_point(field_release:protobuf_unittest.TestGroup.optionalgroup)
  18728. clear_has_optionalgroup();
  18729. ::protobuf_unittest::TestGroup_OptionalGroup* temp = optionalgroup_;
  18730. if (GetArenaNoVirtual() != NULL) {
  18731. temp = ::google::protobuf::internal::DuplicateIfNonNull(temp);
  18732. }
  18733. optionalgroup_ = NULL;
  18734. return temp;
  18735. }
  18736. inline ::protobuf_unittest::TestGroup_OptionalGroup* TestGroup::unsafe_arena_release_optionalgroup() {
  18737. // @@protoc_insertion_point(field_unsafe_arena_release:protobuf_unittest.TestGroup.optionalgroup)
  18738. clear_has_optionalgroup();
  18739. ::protobuf_unittest::TestGroup_OptionalGroup* temp = optionalgroup_;
  18740. optionalgroup_ = NULL;
  18741. return temp;
  18742. }
  18743. inline ::protobuf_unittest::TestGroup_OptionalGroup* TestGroup::mutable_optionalgroup() {
  18744. set_has_optionalgroup();
  18745. if (optionalgroup_ == NULL) {
  18746. auto* p = CreateMaybeMessage<::protobuf_unittest::TestGroup_OptionalGroup>(GetArenaNoVirtual());
  18747. optionalgroup_ = p;
  18748. }
  18749. // @@protoc_insertion_point(field_mutable:protobuf_unittest.TestGroup.optionalgroup)
  18750. return optionalgroup_;
  18751. }
  18752. inline void TestGroup::set_allocated_optionalgroup(::protobuf_unittest::TestGroup_OptionalGroup* optionalgroup) {
  18753. ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
  18754. if (message_arena == NULL) {
  18755. delete optionalgroup_;
  18756. }
  18757. if (optionalgroup) {
  18758. ::google::protobuf::Arena* submessage_arena =
  18759. ::google::protobuf::Arena::GetArena(optionalgroup);
  18760. if (message_arena != submessage_arena) {
  18761. optionalgroup = ::google::protobuf::internal::GetOwnedMessage(
  18762. message_arena, optionalgroup, submessage_arena);
  18763. }
  18764. set_has_optionalgroup();
  18765. } else {
  18766. clear_has_optionalgroup();
  18767. }
  18768. optionalgroup_ = optionalgroup;
  18769. // @@protoc_insertion_point(field_set_allocated:protobuf_unittest.TestGroup.optionalgroup)
  18770. }
  18771. // optional .protobuf_unittest.ForeignEnum optional_foreign_enum = 22;
  18772. inline bool TestGroup::has_optional_foreign_enum() const {
  18773. return (_has_bits_[0] & 0x00000002u) != 0;
  18774. }
  18775. inline void TestGroup::set_has_optional_foreign_enum() {
  18776. _has_bits_[0] |= 0x00000002u;
  18777. }
  18778. inline void TestGroup::clear_has_optional_foreign_enum() {
  18779. _has_bits_[0] &= ~0x00000002u;
  18780. }
  18781. inline void TestGroup::clear_optional_foreign_enum() {
  18782. optional_foreign_enum_ = 4;
  18783. clear_has_optional_foreign_enum();
  18784. }
  18785. inline ::protobuf_unittest::ForeignEnum TestGroup::optional_foreign_enum() const {
  18786. // @@protoc_insertion_point(field_get:protobuf_unittest.TestGroup.optional_foreign_enum)
  18787. return static_cast< ::protobuf_unittest::ForeignEnum >(optional_foreign_enum_);
  18788. }
  18789. inline void TestGroup::set_optional_foreign_enum(::protobuf_unittest::ForeignEnum value) {
  18790. assert(::protobuf_unittest::ForeignEnum_IsValid(value));
  18791. set_has_optional_foreign_enum();
  18792. optional_foreign_enum_ = value;
  18793. // @@protoc_insertion_point(field_set:protobuf_unittest.TestGroup.optional_foreign_enum)
  18794. }
  18795. // -------------------------------------------------------------------
  18796. // TestGroupExtension
  18797. // -------------------------------------------------------------------
  18798. // TestNestedExtension_OptionalGroup_extension
  18799. // optional int32 a = 17;
  18800. inline bool TestNestedExtension_OptionalGroup_extension::has_a() const {
  18801. return (_has_bits_[0] & 0x00000001u) != 0;
  18802. }
  18803. inline void TestNestedExtension_OptionalGroup_extension::set_has_a() {
  18804. _has_bits_[0] |= 0x00000001u;
  18805. }
  18806. inline void TestNestedExtension_OptionalGroup_extension::clear_has_a() {
  18807. _has_bits_[0] &= ~0x00000001u;
  18808. }
  18809. inline void TestNestedExtension_OptionalGroup_extension::clear_a() {
  18810. a_ = 0;
  18811. clear_has_a();
  18812. }
  18813. inline ::google::protobuf::int32 TestNestedExtension_OptionalGroup_extension::a() const {
  18814. // @@protoc_insertion_point(field_get:protobuf_unittest.TestNestedExtension.OptionalGroup_extension.a)
  18815. return a_;
  18816. }
  18817. inline void TestNestedExtension_OptionalGroup_extension::set_a(::google::protobuf::int32 value) {
  18818. set_has_a();
  18819. a_ = value;
  18820. // @@protoc_insertion_point(field_set:protobuf_unittest.TestNestedExtension.OptionalGroup_extension.a)
  18821. }
  18822. // -------------------------------------------------------------------
  18823. // TestNestedExtension
  18824. // -------------------------------------------------------------------
  18825. // TestRequired
  18826. // required int32 a = 1;
  18827. inline bool TestRequired::has_a() const {
  18828. return (_has_bits_[0] & 0x00000001u) != 0;
  18829. }
  18830. inline void TestRequired::set_has_a() {
  18831. _has_bits_[0] |= 0x00000001u;
  18832. }
  18833. inline void TestRequired::clear_has_a() {
  18834. _has_bits_[0] &= ~0x00000001u;
  18835. }
  18836. inline void TestRequired::clear_a() {
  18837. a_ = 0;
  18838. clear_has_a();
  18839. }
  18840. inline ::google::protobuf::int32 TestRequired::a() const {
  18841. // @@protoc_insertion_point(field_get:protobuf_unittest.TestRequired.a)
  18842. return a_;
  18843. }
  18844. inline void TestRequired::set_a(::google::protobuf::int32 value) {
  18845. set_has_a();
  18846. a_ = value;
  18847. // @@protoc_insertion_point(field_set:protobuf_unittest.TestRequired.a)
  18848. }
  18849. // optional int32 dummy2 = 2;
  18850. inline bool TestRequired::has_dummy2() const {
  18851. return (_has_bits_[0] & 0x00000002u) != 0;
  18852. }
  18853. inline void TestRequired::set_has_dummy2() {
  18854. _has_bits_[0] |= 0x00000002u;
  18855. }
  18856. inline void TestRequired::clear_has_dummy2() {
  18857. _has_bits_[0] &= ~0x00000002u;
  18858. }
  18859. inline void TestRequired::clear_dummy2() {
  18860. dummy2_ = 0;
  18861. clear_has_dummy2();
  18862. }
  18863. inline ::google::protobuf::int32 TestRequired::dummy2() const {
  18864. // @@protoc_insertion_point(field_get:protobuf_unittest.TestRequired.dummy2)
  18865. return dummy2_;
  18866. }
  18867. inline void TestRequired::set_dummy2(::google::protobuf::int32 value) {
  18868. set_has_dummy2();
  18869. dummy2_ = value;
  18870. // @@protoc_insertion_point(field_set:protobuf_unittest.TestRequired.dummy2)
  18871. }
  18872. // required int32 b = 3;
  18873. inline bool TestRequired::has_b() const {
  18874. return (_has_bits_[0] & 0x00000004u) != 0;
  18875. }
  18876. inline void TestRequired::set_has_b() {
  18877. _has_bits_[0] |= 0x00000004u;
  18878. }
  18879. inline void TestRequired::clear_has_b() {
  18880. _has_bits_[0] &= ~0x00000004u;
  18881. }
  18882. inline void TestRequired::clear_b() {
  18883. b_ = 0;
  18884. clear_has_b();
  18885. }
  18886. inline ::google::protobuf::int32 TestRequired::b() const {
  18887. // @@protoc_insertion_point(field_get:protobuf_unittest.TestRequired.b)
  18888. return b_;
  18889. }
  18890. inline void TestRequired::set_b(::google::protobuf::int32 value) {
  18891. set_has_b();
  18892. b_ = value;
  18893. // @@protoc_insertion_point(field_set:protobuf_unittest.TestRequired.b)
  18894. }
  18895. // optional int32 dummy4 = 4;
  18896. inline bool TestRequired::has_dummy4() const {
  18897. return (_has_bits_[0] & 0x00000008u) != 0;
  18898. }
  18899. inline void TestRequired::set_has_dummy4() {
  18900. _has_bits_[0] |= 0x00000008u;
  18901. }
  18902. inline void TestRequired::clear_has_dummy4() {
  18903. _has_bits_[0] &= ~0x00000008u;
  18904. }
  18905. inline void TestRequired::clear_dummy4() {
  18906. dummy4_ = 0;
  18907. clear_has_dummy4();
  18908. }
  18909. inline ::google::protobuf::int32 TestRequired::dummy4() const {
  18910. // @@protoc_insertion_point(field_get:protobuf_unittest.TestRequired.dummy4)
  18911. return dummy4_;
  18912. }
  18913. inline void TestRequired::set_dummy4(::google::protobuf::int32 value) {
  18914. set_has_dummy4();
  18915. dummy4_ = value;
  18916. // @@protoc_insertion_point(field_set:protobuf_unittest.TestRequired.dummy4)
  18917. }
  18918. // optional int32 dummy5 = 5;
  18919. inline bool TestRequired::has_dummy5() const {
  18920. return (_has_bits_[0] & 0x00000010u) != 0;
  18921. }
  18922. inline void TestRequired::set_has_dummy5() {
  18923. _has_bits_[0] |= 0x00000010u;
  18924. }
  18925. inline void TestRequired::clear_has_dummy5() {
  18926. _has_bits_[0] &= ~0x00000010u;
  18927. }
  18928. inline void TestRequired::clear_dummy5() {
  18929. dummy5_ = 0;
  18930. clear_has_dummy5();
  18931. }
  18932. inline ::google::protobuf::int32 TestRequired::dummy5() const {
  18933. // @@protoc_insertion_point(field_get:protobuf_unittest.TestRequired.dummy5)
  18934. return dummy5_;
  18935. }
  18936. inline void TestRequired::set_dummy5(::google::protobuf::int32 value) {
  18937. set_has_dummy5();
  18938. dummy5_ = value;
  18939. // @@protoc_insertion_point(field_set:protobuf_unittest.TestRequired.dummy5)
  18940. }
  18941. // optional int32 dummy6 = 6;
  18942. inline bool TestRequired::has_dummy6() const {
  18943. return (_has_bits_[0] & 0x00000020u) != 0;
  18944. }
  18945. inline void TestRequired::set_has_dummy6() {
  18946. _has_bits_[0] |= 0x00000020u;
  18947. }
  18948. inline void TestRequired::clear_has_dummy6() {
  18949. _has_bits_[0] &= ~0x00000020u;
  18950. }
  18951. inline void TestRequired::clear_dummy6() {
  18952. dummy6_ = 0;
  18953. clear_has_dummy6();
  18954. }
  18955. inline ::google::protobuf::int32 TestRequired::dummy6() const {
  18956. // @@protoc_insertion_point(field_get:protobuf_unittest.TestRequired.dummy6)
  18957. return dummy6_;
  18958. }
  18959. inline void TestRequired::set_dummy6(::google::protobuf::int32 value) {
  18960. set_has_dummy6();
  18961. dummy6_ = value;
  18962. // @@protoc_insertion_point(field_set:protobuf_unittest.TestRequired.dummy6)
  18963. }
  18964. // optional int32 dummy7 = 7;
  18965. inline bool TestRequired::has_dummy7() const {
  18966. return (_has_bits_[0] & 0x00000040u) != 0;
  18967. }
  18968. inline void TestRequired::set_has_dummy7() {
  18969. _has_bits_[0] |= 0x00000040u;
  18970. }
  18971. inline void TestRequired::clear_has_dummy7() {
  18972. _has_bits_[0] &= ~0x00000040u;
  18973. }
  18974. inline void TestRequired::clear_dummy7() {
  18975. dummy7_ = 0;
  18976. clear_has_dummy7();
  18977. }
  18978. inline ::google::protobuf::int32 TestRequired::dummy7() const {
  18979. // @@protoc_insertion_point(field_get:protobuf_unittest.TestRequired.dummy7)
  18980. return dummy7_;
  18981. }
  18982. inline void TestRequired::set_dummy7(::google::protobuf::int32 value) {
  18983. set_has_dummy7();
  18984. dummy7_ = value;
  18985. // @@protoc_insertion_point(field_set:protobuf_unittest.TestRequired.dummy7)
  18986. }
  18987. // optional int32 dummy8 = 8;
  18988. inline bool TestRequired::has_dummy8() const {
  18989. return (_has_bits_[0] & 0x00000080u) != 0;
  18990. }
  18991. inline void TestRequired::set_has_dummy8() {
  18992. _has_bits_[0] |= 0x00000080u;
  18993. }
  18994. inline void TestRequired::clear_has_dummy8() {
  18995. _has_bits_[0] &= ~0x00000080u;
  18996. }
  18997. inline void TestRequired::clear_dummy8() {
  18998. dummy8_ = 0;
  18999. clear_has_dummy8();
  19000. }
  19001. inline ::google::protobuf::int32 TestRequired::dummy8() const {
  19002. // @@protoc_insertion_point(field_get:protobuf_unittest.TestRequired.dummy8)
  19003. return dummy8_;
  19004. }
  19005. inline void TestRequired::set_dummy8(::google::protobuf::int32 value) {
  19006. set_has_dummy8();
  19007. dummy8_ = value;
  19008. // @@protoc_insertion_point(field_set:protobuf_unittest.TestRequired.dummy8)
  19009. }
  19010. // optional int32 dummy9 = 9;
  19011. inline bool TestRequired::has_dummy9() const {
  19012. return (_has_bits_[0] & 0x00000100u) != 0;
  19013. }
  19014. inline void TestRequired::set_has_dummy9() {
  19015. _has_bits_[0] |= 0x00000100u;
  19016. }
  19017. inline void TestRequired::clear_has_dummy9() {
  19018. _has_bits_[0] &= ~0x00000100u;
  19019. }
  19020. inline void TestRequired::clear_dummy9() {
  19021. dummy9_ = 0;
  19022. clear_has_dummy9();
  19023. }
  19024. inline ::google::protobuf::int32 TestRequired::dummy9() const {
  19025. // @@protoc_insertion_point(field_get:protobuf_unittest.TestRequired.dummy9)
  19026. return dummy9_;
  19027. }
  19028. inline void TestRequired::set_dummy9(::google::protobuf::int32 value) {
  19029. set_has_dummy9();
  19030. dummy9_ = value;
  19031. // @@protoc_insertion_point(field_set:protobuf_unittest.TestRequired.dummy9)
  19032. }
  19033. // optional int32 dummy10 = 10;
  19034. inline bool TestRequired::has_dummy10() const {
  19035. return (_has_bits_[0] & 0x00000200u) != 0;
  19036. }
  19037. inline void TestRequired::set_has_dummy10() {
  19038. _has_bits_[0] |= 0x00000200u;
  19039. }
  19040. inline void TestRequired::clear_has_dummy10() {
  19041. _has_bits_[0] &= ~0x00000200u;
  19042. }
  19043. inline void TestRequired::clear_dummy10() {
  19044. dummy10_ = 0;
  19045. clear_has_dummy10();
  19046. }
  19047. inline ::google::protobuf::int32 TestRequired::dummy10() const {
  19048. // @@protoc_insertion_point(field_get:protobuf_unittest.TestRequired.dummy10)
  19049. return dummy10_;
  19050. }
  19051. inline void TestRequired::set_dummy10(::google::protobuf::int32 value) {
  19052. set_has_dummy10();
  19053. dummy10_ = value;
  19054. // @@protoc_insertion_point(field_set:protobuf_unittest.TestRequired.dummy10)
  19055. }
  19056. // optional int32 dummy11 = 11;
  19057. inline bool TestRequired::has_dummy11() const {
  19058. return (_has_bits_[0] & 0x00000400u) != 0;
  19059. }
  19060. inline void TestRequired::set_has_dummy11() {
  19061. _has_bits_[0] |= 0x00000400u;
  19062. }
  19063. inline void TestRequired::clear_has_dummy11() {
  19064. _has_bits_[0] &= ~0x00000400u;
  19065. }
  19066. inline void TestRequired::clear_dummy11() {
  19067. dummy11_ = 0;
  19068. clear_has_dummy11();
  19069. }
  19070. inline ::google::protobuf::int32 TestRequired::dummy11() const {
  19071. // @@protoc_insertion_point(field_get:protobuf_unittest.TestRequired.dummy11)
  19072. return dummy11_;
  19073. }
  19074. inline void TestRequired::set_dummy11(::google::protobuf::int32 value) {
  19075. set_has_dummy11();
  19076. dummy11_ = value;
  19077. // @@protoc_insertion_point(field_set:protobuf_unittest.TestRequired.dummy11)
  19078. }
  19079. // optional int32 dummy12 = 12;
  19080. inline bool TestRequired::has_dummy12() const {
  19081. return (_has_bits_[0] & 0x00000800u) != 0;
  19082. }
  19083. inline void TestRequired::set_has_dummy12() {
  19084. _has_bits_[0] |= 0x00000800u;
  19085. }
  19086. inline void TestRequired::clear_has_dummy12() {
  19087. _has_bits_[0] &= ~0x00000800u;
  19088. }
  19089. inline void TestRequired::clear_dummy12() {
  19090. dummy12_ = 0;
  19091. clear_has_dummy12();
  19092. }
  19093. inline ::google::protobuf::int32 TestRequired::dummy12() const {
  19094. // @@protoc_insertion_point(field_get:protobuf_unittest.TestRequired.dummy12)
  19095. return dummy12_;
  19096. }
  19097. inline void TestRequired::set_dummy12(::google::protobuf::int32 value) {
  19098. set_has_dummy12();
  19099. dummy12_ = value;
  19100. // @@protoc_insertion_point(field_set:protobuf_unittest.TestRequired.dummy12)
  19101. }
  19102. // optional int32 dummy13 = 13;
  19103. inline bool TestRequired::has_dummy13() const {
  19104. return (_has_bits_[0] & 0x00001000u) != 0;
  19105. }
  19106. inline void TestRequired::set_has_dummy13() {
  19107. _has_bits_[0] |= 0x00001000u;
  19108. }
  19109. inline void TestRequired::clear_has_dummy13() {
  19110. _has_bits_[0] &= ~0x00001000u;
  19111. }
  19112. inline void TestRequired::clear_dummy13() {
  19113. dummy13_ = 0;
  19114. clear_has_dummy13();
  19115. }
  19116. inline ::google::protobuf::int32 TestRequired::dummy13() const {
  19117. // @@protoc_insertion_point(field_get:protobuf_unittest.TestRequired.dummy13)
  19118. return dummy13_;
  19119. }
  19120. inline void TestRequired::set_dummy13(::google::protobuf::int32 value) {
  19121. set_has_dummy13();
  19122. dummy13_ = value;
  19123. // @@protoc_insertion_point(field_set:protobuf_unittest.TestRequired.dummy13)
  19124. }
  19125. // optional int32 dummy14 = 14;
  19126. inline bool TestRequired::has_dummy14() const {
  19127. return (_has_bits_[0] & 0x00002000u) != 0;
  19128. }
  19129. inline void TestRequired::set_has_dummy14() {
  19130. _has_bits_[0] |= 0x00002000u;
  19131. }
  19132. inline void TestRequired::clear_has_dummy14() {
  19133. _has_bits_[0] &= ~0x00002000u;
  19134. }
  19135. inline void TestRequired::clear_dummy14() {
  19136. dummy14_ = 0;
  19137. clear_has_dummy14();
  19138. }
  19139. inline ::google::protobuf::int32 TestRequired::dummy14() const {
  19140. // @@protoc_insertion_point(field_get:protobuf_unittest.TestRequired.dummy14)
  19141. return dummy14_;
  19142. }
  19143. inline void TestRequired::set_dummy14(::google::protobuf::int32 value) {
  19144. set_has_dummy14();
  19145. dummy14_ = value;
  19146. // @@protoc_insertion_point(field_set:protobuf_unittest.TestRequired.dummy14)
  19147. }
  19148. // optional int32 dummy15 = 15;
  19149. inline bool TestRequired::has_dummy15() const {
  19150. return (_has_bits_[0] & 0x00004000u) != 0;
  19151. }
  19152. inline void TestRequired::set_has_dummy15() {
  19153. _has_bits_[0] |= 0x00004000u;
  19154. }
  19155. inline void TestRequired::clear_has_dummy15() {
  19156. _has_bits_[0] &= ~0x00004000u;
  19157. }
  19158. inline void TestRequired::clear_dummy15() {
  19159. dummy15_ = 0;
  19160. clear_has_dummy15();
  19161. }
  19162. inline ::google::protobuf::int32 TestRequired::dummy15() const {
  19163. // @@protoc_insertion_point(field_get:protobuf_unittest.TestRequired.dummy15)
  19164. return dummy15_;
  19165. }
  19166. inline void TestRequired::set_dummy15(::google::protobuf::int32 value) {
  19167. set_has_dummy15();
  19168. dummy15_ = value;
  19169. // @@protoc_insertion_point(field_set:protobuf_unittest.TestRequired.dummy15)
  19170. }
  19171. // optional int32 dummy16 = 16;
  19172. inline bool TestRequired::has_dummy16() const {
  19173. return (_has_bits_[0] & 0x00008000u) != 0;
  19174. }
  19175. inline void TestRequired::set_has_dummy16() {
  19176. _has_bits_[0] |= 0x00008000u;
  19177. }
  19178. inline void TestRequired::clear_has_dummy16() {
  19179. _has_bits_[0] &= ~0x00008000u;
  19180. }
  19181. inline void TestRequired::clear_dummy16() {
  19182. dummy16_ = 0;
  19183. clear_has_dummy16();
  19184. }
  19185. inline ::google::protobuf::int32 TestRequired::dummy16() const {
  19186. // @@protoc_insertion_point(field_get:protobuf_unittest.TestRequired.dummy16)
  19187. return dummy16_;
  19188. }
  19189. inline void TestRequired::set_dummy16(::google::protobuf::int32 value) {
  19190. set_has_dummy16();
  19191. dummy16_ = value;
  19192. // @@protoc_insertion_point(field_set:protobuf_unittest.TestRequired.dummy16)
  19193. }
  19194. // optional int32 dummy17 = 17;
  19195. inline bool TestRequired::has_dummy17() const {
  19196. return (_has_bits_[0] & 0x00010000u) != 0;
  19197. }
  19198. inline void TestRequired::set_has_dummy17() {
  19199. _has_bits_[0] |= 0x00010000u;
  19200. }
  19201. inline void TestRequired::clear_has_dummy17() {
  19202. _has_bits_[0] &= ~0x00010000u;
  19203. }
  19204. inline void TestRequired::clear_dummy17() {
  19205. dummy17_ = 0;
  19206. clear_has_dummy17();
  19207. }
  19208. inline ::google::protobuf::int32 TestRequired::dummy17() const {
  19209. // @@protoc_insertion_point(field_get:protobuf_unittest.TestRequired.dummy17)
  19210. return dummy17_;
  19211. }
  19212. inline void TestRequired::set_dummy17(::google::protobuf::int32 value) {
  19213. set_has_dummy17();
  19214. dummy17_ = value;
  19215. // @@protoc_insertion_point(field_set:protobuf_unittest.TestRequired.dummy17)
  19216. }
  19217. // optional int32 dummy18 = 18;
  19218. inline bool TestRequired::has_dummy18() const {
  19219. return (_has_bits_[0] & 0x00020000u) != 0;
  19220. }
  19221. inline void TestRequired::set_has_dummy18() {
  19222. _has_bits_[0] |= 0x00020000u;
  19223. }
  19224. inline void TestRequired::clear_has_dummy18() {
  19225. _has_bits_[0] &= ~0x00020000u;
  19226. }
  19227. inline void TestRequired::clear_dummy18() {
  19228. dummy18_ = 0;
  19229. clear_has_dummy18();
  19230. }
  19231. inline ::google::protobuf::int32 TestRequired::dummy18() const {
  19232. // @@protoc_insertion_point(field_get:protobuf_unittest.TestRequired.dummy18)
  19233. return dummy18_;
  19234. }
  19235. inline void TestRequired::set_dummy18(::google::protobuf::int32 value) {
  19236. set_has_dummy18();
  19237. dummy18_ = value;
  19238. // @@protoc_insertion_point(field_set:protobuf_unittest.TestRequired.dummy18)
  19239. }
  19240. // optional int32 dummy19 = 19;
  19241. inline bool TestRequired::has_dummy19() const {
  19242. return (_has_bits_[0] & 0x00040000u) != 0;
  19243. }
  19244. inline void TestRequired::set_has_dummy19() {
  19245. _has_bits_[0] |= 0x00040000u;
  19246. }
  19247. inline void TestRequired::clear_has_dummy19() {
  19248. _has_bits_[0] &= ~0x00040000u;
  19249. }
  19250. inline void TestRequired::clear_dummy19() {
  19251. dummy19_ = 0;
  19252. clear_has_dummy19();
  19253. }
  19254. inline ::google::protobuf::int32 TestRequired::dummy19() const {
  19255. // @@protoc_insertion_point(field_get:protobuf_unittest.TestRequired.dummy19)
  19256. return dummy19_;
  19257. }
  19258. inline void TestRequired::set_dummy19(::google::protobuf::int32 value) {
  19259. set_has_dummy19();
  19260. dummy19_ = value;
  19261. // @@protoc_insertion_point(field_set:protobuf_unittest.TestRequired.dummy19)
  19262. }
  19263. // optional int32 dummy20 = 20;
  19264. inline bool TestRequired::has_dummy20() const {
  19265. return (_has_bits_[0] & 0x00080000u) != 0;
  19266. }
  19267. inline void TestRequired::set_has_dummy20() {
  19268. _has_bits_[0] |= 0x00080000u;
  19269. }
  19270. inline void TestRequired::clear_has_dummy20() {
  19271. _has_bits_[0] &= ~0x00080000u;
  19272. }
  19273. inline void TestRequired::clear_dummy20() {
  19274. dummy20_ = 0;
  19275. clear_has_dummy20();
  19276. }
  19277. inline ::google::protobuf::int32 TestRequired::dummy20() const {
  19278. // @@protoc_insertion_point(field_get:protobuf_unittest.TestRequired.dummy20)
  19279. return dummy20_;
  19280. }
  19281. inline void TestRequired::set_dummy20(::google::protobuf::int32 value) {
  19282. set_has_dummy20();
  19283. dummy20_ = value;
  19284. // @@protoc_insertion_point(field_set:protobuf_unittest.TestRequired.dummy20)
  19285. }
  19286. // optional int32 dummy21 = 21;
  19287. inline bool TestRequired::has_dummy21() const {
  19288. return (_has_bits_[0] & 0x00100000u) != 0;
  19289. }
  19290. inline void TestRequired::set_has_dummy21() {
  19291. _has_bits_[0] |= 0x00100000u;
  19292. }
  19293. inline void TestRequired::clear_has_dummy21() {
  19294. _has_bits_[0] &= ~0x00100000u;
  19295. }
  19296. inline void TestRequired::clear_dummy21() {
  19297. dummy21_ = 0;
  19298. clear_has_dummy21();
  19299. }
  19300. inline ::google::protobuf::int32 TestRequired::dummy21() const {
  19301. // @@protoc_insertion_point(field_get:protobuf_unittest.TestRequired.dummy21)
  19302. return dummy21_;
  19303. }
  19304. inline void TestRequired::set_dummy21(::google::protobuf::int32 value) {
  19305. set_has_dummy21();
  19306. dummy21_ = value;
  19307. // @@protoc_insertion_point(field_set:protobuf_unittest.TestRequired.dummy21)
  19308. }
  19309. // optional int32 dummy22 = 22;
  19310. inline bool TestRequired::has_dummy22() const {
  19311. return (_has_bits_[0] & 0x00200000u) != 0;
  19312. }
  19313. inline void TestRequired::set_has_dummy22() {
  19314. _has_bits_[0] |= 0x00200000u;
  19315. }
  19316. inline void TestRequired::clear_has_dummy22() {
  19317. _has_bits_[0] &= ~0x00200000u;
  19318. }
  19319. inline void TestRequired::clear_dummy22() {
  19320. dummy22_ = 0;
  19321. clear_has_dummy22();
  19322. }
  19323. inline ::google::protobuf::int32 TestRequired::dummy22() const {
  19324. // @@protoc_insertion_point(field_get:protobuf_unittest.TestRequired.dummy22)
  19325. return dummy22_;
  19326. }
  19327. inline void TestRequired::set_dummy22(::google::protobuf::int32 value) {
  19328. set_has_dummy22();
  19329. dummy22_ = value;
  19330. // @@protoc_insertion_point(field_set:protobuf_unittest.TestRequired.dummy22)
  19331. }
  19332. // optional int32 dummy23 = 23;
  19333. inline bool TestRequired::has_dummy23() const {
  19334. return (_has_bits_[0] & 0x00400000u) != 0;
  19335. }
  19336. inline void TestRequired::set_has_dummy23() {
  19337. _has_bits_[0] |= 0x00400000u;
  19338. }
  19339. inline void TestRequired::clear_has_dummy23() {
  19340. _has_bits_[0] &= ~0x00400000u;
  19341. }
  19342. inline void TestRequired::clear_dummy23() {
  19343. dummy23_ = 0;
  19344. clear_has_dummy23();
  19345. }
  19346. inline ::google::protobuf::int32 TestRequired::dummy23() const {
  19347. // @@protoc_insertion_point(field_get:protobuf_unittest.TestRequired.dummy23)
  19348. return dummy23_;
  19349. }
  19350. inline void TestRequired::set_dummy23(::google::protobuf::int32 value) {
  19351. set_has_dummy23();
  19352. dummy23_ = value;
  19353. // @@protoc_insertion_point(field_set:protobuf_unittest.TestRequired.dummy23)
  19354. }
  19355. // optional int32 dummy24 = 24;
  19356. inline bool TestRequired::has_dummy24() const {
  19357. return (_has_bits_[0] & 0x00800000u) != 0;
  19358. }
  19359. inline void TestRequired::set_has_dummy24() {
  19360. _has_bits_[0] |= 0x00800000u;
  19361. }
  19362. inline void TestRequired::clear_has_dummy24() {
  19363. _has_bits_[0] &= ~0x00800000u;
  19364. }
  19365. inline void TestRequired::clear_dummy24() {
  19366. dummy24_ = 0;
  19367. clear_has_dummy24();
  19368. }
  19369. inline ::google::protobuf::int32 TestRequired::dummy24() const {
  19370. // @@protoc_insertion_point(field_get:protobuf_unittest.TestRequired.dummy24)
  19371. return dummy24_;
  19372. }
  19373. inline void TestRequired::set_dummy24(::google::protobuf::int32 value) {
  19374. set_has_dummy24();
  19375. dummy24_ = value;
  19376. // @@protoc_insertion_point(field_set:protobuf_unittest.TestRequired.dummy24)
  19377. }
  19378. // optional int32 dummy25 = 25;
  19379. inline bool TestRequired::has_dummy25() const {
  19380. return (_has_bits_[0] & 0x01000000u) != 0;
  19381. }
  19382. inline void TestRequired::set_has_dummy25() {
  19383. _has_bits_[0] |= 0x01000000u;
  19384. }
  19385. inline void TestRequired::clear_has_dummy25() {
  19386. _has_bits_[0] &= ~0x01000000u;
  19387. }
  19388. inline void TestRequired::clear_dummy25() {
  19389. dummy25_ = 0;
  19390. clear_has_dummy25();
  19391. }
  19392. inline ::google::protobuf::int32 TestRequired::dummy25() const {
  19393. // @@protoc_insertion_point(field_get:protobuf_unittest.TestRequired.dummy25)
  19394. return dummy25_;
  19395. }
  19396. inline void TestRequired::set_dummy25(::google::protobuf::int32 value) {
  19397. set_has_dummy25();
  19398. dummy25_ = value;
  19399. // @@protoc_insertion_point(field_set:protobuf_unittest.TestRequired.dummy25)
  19400. }
  19401. // optional int32 dummy26 = 26;
  19402. inline bool TestRequired::has_dummy26() const {
  19403. return (_has_bits_[0] & 0x02000000u) != 0;
  19404. }
  19405. inline void TestRequired::set_has_dummy26() {
  19406. _has_bits_[0] |= 0x02000000u;
  19407. }
  19408. inline void TestRequired::clear_has_dummy26() {
  19409. _has_bits_[0] &= ~0x02000000u;
  19410. }
  19411. inline void TestRequired::clear_dummy26() {
  19412. dummy26_ = 0;
  19413. clear_has_dummy26();
  19414. }
  19415. inline ::google::protobuf::int32 TestRequired::dummy26() const {
  19416. // @@protoc_insertion_point(field_get:protobuf_unittest.TestRequired.dummy26)
  19417. return dummy26_;
  19418. }
  19419. inline void TestRequired::set_dummy26(::google::protobuf::int32 value) {
  19420. set_has_dummy26();
  19421. dummy26_ = value;
  19422. // @@protoc_insertion_point(field_set:protobuf_unittest.TestRequired.dummy26)
  19423. }
  19424. // optional int32 dummy27 = 27;
  19425. inline bool TestRequired::has_dummy27() const {
  19426. return (_has_bits_[0] & 0x04000000u) != 0;
  19427. }
  19428. inline void TestRequired::set_has_dummy27() {
  19429. _has_bits_[0] |= 0x04000000u;
  19430. }
  19431. inline void TestRequired::clear_has_dummy27() {
  19432. _has_bits_[0] &= ~0x04000000u;
  19433. }
  19434. inline void TestRequired::clear_dummy27() {
  19435. dummy27_ = 0;
  19436. clear_has_dummy27();
  19437. }
  19438. inline ::google::protobuf::int32 TestRequired::dummy27() const {
  19439. // @@protoc_insertion_point(field_get:protobuf_unittest.TestRequired.dummy27)
  19440. return dummy27_;
  19441. }
  19442. inline void TestRequired::set_dummy27(::google::protobuf::int32 value) {
  19443. set_has_dummy27();
  19444. dummy27_ = value;
  19445. // @@protoc_insertion_point(field_set:protobuf_unittest.TestRequired.dummy27)
  19446. }
  19447. // optional int32 dummy28 = 28;
  19448. inline bool TestRequired::has_dummy28() const {
  19449. return (_has_bits_[0] & 0x08000000u) != 0;
  19450. }
  19451. inline void TestRequired::set_has_dummy28() {
  19452. _has_bits_[0] |= 0x08000000u;
  19453. }
  19454. inline void TestRequired::clear_has_dummy28() {
  19455. _has_bits_[0] &= ~0x08000000u;
  19456. }
  19457. inline void TestRequired::clear_dummy28() {
  19458. dummy28_ = 0;
  19459. clear_has_dummy28();
  19460. }
  19461. inline ::google::protobuf::int32 TestRequired::dummy28() const {
  19462. // @@protoc_insertion_point(field_get:protobuf_unittest.TestRequired.dummy28)
  19463. return dummy28_;
  19464. }
  19465. inline void TestRequired::set_dummy28(::google::protobuf::int32 value) {
  19466. set_has_dummy28();
  19467. dummy28_ = value;
  19468. // @@protoc_insertion_point(field_set:protobuf_unittest.TestRequired.dummy28)
  19469. }
  19470. // optional int32 dummy29 = 29;
  19471. inline bool TestRequired::has_dummy29() const {
  19472. return (_has_bits_[0] & 0x10000000u) != 0;
  19473. }
  19474. inline void TestRequired::set_has_dummy29() {
  19475. _has_bits_[0] |= 0x10000000u;
  19476. }
  19477. inline void TestRequired::clear_has_dummy29() {
  19478. _has_bits_[0] &= ~0x10000000u;
  19479. }
  19480. inline void TestRequired::clear_dummy29() {
  19481. dummy29_ = 0;
  19482. clear_has_dummy29();
  19483. }
  19484. inline ::google::protobuf::int32 TestRequired::dummy29() const {
  19485. // @@protoc_insertion_point(field_get:protobuf_unittest.TestRequired.dummy29)
  19486. return dummy29_;
  19487. }
  19488. inline void TestRequired::set_dummy29(::google::protobuf::int32 value) {
  19489. set_has_dummy29();
  19490. dummy29_ = value;
  19491. // @@protoc_insertion_point(field_set:protobuf_unittest.TestRequired.dummy29)
  19492. }
  19493. // optional int32 dummy30 = 30;
  19494. inline bool TestRequired::has_dummy30() const {
  19495. return (_has_bits_[0] & 0x20000000u) != 0;
  19496. }
  19497. inline void TestRequired::set_has_dummy30() {
  19498. _has_bits_[0] |= 0x20000000u;
  19499. }
  19500. inline void TestRequired::clear_has_dummy30() {
  19501. _has_bits_[0] &= ~0x20000000u;
  19502. }
  19503. inline void TestRequired::clear_dummy30() {
  19504. dummy30_ = 0;
  19505. clear_has_dummy30();
  19506. }
  19507. inline ::google::protobuf::int32 TestRequired::dummy30() const {
  19508. // @@protoc_insertion_point(field_get:protobuf_unittest.TestRequired.dummy30)
  19509. return dummy30_;
  19510. }
  19511. inline void TestRequired::set_dummy30(::google::protobuf::int32 value) {
  19512. set_has_dummy30();
  19513. dummy30_ = value;
  19514. // @@protoc_insertion_point(field_set:protobuf_unittest.TestRequired.dummy30)
  19515. }
  19516. // optional int32 dummy31 = 31;
  19517. inline bool TestRequired::has_dummy31() const {
  19518. return (_has_bits_[0] & 0x40000000u) != 0;
  19519. }
  19520. inline void TestRequired::set_has_dummy31() {
  19521. _has_bits_[0] |= 0x40000000u;
  19522. }
  19523. inline void TestRequired::clear_has_dummy31() {
  19524. _has_bits_[0] &= ~0x40000000u;
  19525. }
  19526. inline void TestRequired::clear_dummy31() {
  19527. dummy31_ = 0;
  19528. clear_has_dummy31();
  19529. }
  19530. inline ::google::protobuf::int32 TestRequired::dummy31() const {
  19531. // @@protoc_insertion_point(field_get:protobuf_unittest.TestRequired.dummy31)
  19532. return dummy31_;
  19533. }
  19534. inline void TestRequired::set_dummy31(::google::protobuf::int32 value) {
  19535. set_has_dummy31();
  19536. dummy31_ = value;
  19537. // @@protoc_insertion_point(field_set:protobuf_unittest.TestRequired.dummy31)
  19538. }
  19539. // optional int32 dummy32 = 32;
  19540. inline bool TestRequired::has_dummy32() const {
  19541. return (_has_bits_[0] & 0x80000000u) != 0;
  19542. }
  19543. inline void TestRequired::set_has_dummy32() {
  19544. _has_bits_[0] |= 0x80000000u;
  19545. }
  19546. inline void TestRequired::clear_has_dummy32() {
  19547. _has_bits_[0] &= ~0x80000000u;
  19548. }
  19549. inline void TestRequired::clear_dummy32() {
  19550. dummy32_ = 0;
  19551. clear_has_dummy32();
  19552. }
  19553. inline ::google::protobuf::int32 TestRequired::dummy32() const {
  19554. // @@protoc_insertion_point(field_get:protobuf_unittest.TestRequired.dummy32)
  19555. return dummy32_;
  19556. }
  19557. inline void TestRequired::set_dummy32(::google::protobuf::int32 value) {
  19558. set_has_dummy32();
  19559. dummy32_ = value;
  19560. // @@protoc_insertion_point(field_set:protobuf_unittest.TestRequired.dummy32)
  19561. }
  19562. // required int32 c = 33;
  19563. inline bool TestRequired::has_c() const {
  19564. return (_has_bits_[1] & 0x00000001u) != 0;
  19565. }
  19566. inline void TestRequired::set_has_c() {
  19567. _has_bits_[1] |= 0x00000001u;
  19568. }
  19569. inline void TestRequired::clear_has_c() {
  19570. _has_bits_[1] &= ~0x00000001u;
  19571. }
  19572. inline void TestRequired::clear_c() {
  19573. c_ = 0;
  19574. clear_has_c();
  19575. }
  19576. inline ::google::protobuf::int32 TestRequired::c() const {
  19577. // @@protoc_insertion_point(field_get:protobuf_unittest.TestRequired.c)
  19578. return c_;
  19579. }
  19580. inline void TestRequired::set_c(::google::protobuf::int32 value) {
  19581. set_has_c();
  19582. c_ = value;
  19583. // @@protoc_insertion_point(field_set:protobuf_unittest.TestRequired.c)
  19584. }
  19585. // -------------------------------------------------------------------
  19586. // TestRequiredForeign
  19587. // optional .protobuf_unittest.TestRequired optional_message = 1;
  19588. inline bool TestRequiredForeign::has_optional_message() const {
  19589. return (_has_bits_[0] & 0x00000001u) != 0;
  19590. }
  19591. inline void TestRequiredForeign::set_has_optional_message() {
  19592. _has_bits_[0] |= 0x00000001u;
  19593. }
  19594. inline void TestRequiredForeign::clear_has_optional_message() {
  19595. _has_bits_[0] &= ~0x00000001u;
  19596. }
  19597. inline void TestRequiredForeign::clear_optional_message() {
  19598. if (optional_message_ != NULL) optional_message_->Clear();
  19599. clear_has_optional_message();
  19600. }
  19601. inline const ::protobuf_unittest::TestRequired& TestRequiredForeign::_internal_optional_message() const {
  19602. return *optional_message_;
  19603. }
  19604. inline const ::protobuf_unittest::TestRequired& TestRequiredForeign::optional_message() const {
  19605. const ::protobuf_unittest::TestRequired* p = optional_message_;
  19606. // @@protoc_insertion_point(field_get:protobuf_unittest.TestRequiredForeign.optional_message)
  19607. return p != NULL ? *p : *reinterpret_cast<const ::protobuf_unittest::TestRequired*>(
  19608. &::protobuf_unittest::_TestRequired_default_instance_);
  19609. }
  19610. inline ::protobuf_unittest::TestRequired* TestRequiredForeign::release_optional_message() {
  19611. // @@protoc_insertion_point(field_release:protobuf_unittest.TestRequiredForeign.optional_message)
  19612. clear_has_optional_message();
  19613. ::protobuf_unittest::TestRequired* temp = optional_message_;
  19614. if (GetArenaNoVirtual() != NULL) {
  19615. temp = ::google::protobuf::internal::DuplicateIfNonNull(temp);
  19616. }
  19617. optional_message_ = NULL;
  19618. return temp;
  19619. }
  19620. inline ::protobuf_unittest::TestRequired* TestRequiredForeign::unsafe_arena_release_optional_message() {
  19621. // @@protoc_insertion_point(field_unsafe_arena_release:protobuf_unittest.TestRequiredForeign.optional_message)
  19622. clear_has_optional_message();
  19623. ::protobuf_unittest::TestRequired* temp = optional_message_;
  19624. optional_message_ = NULL;
  19625. return temp;
  19626. }
  19627. inline ::protobuf_unittest::TestRequired* TestRequiredForeign::mutable_optional_message() {
  19628. set_has_optional_message();
  19629. if (optional_message_ == NULL) {
  19630. auto* p = CreateMaybeMessage<::protobuf_unittest::TestRequired>(GetArenaNoVirtual());
  19631. optional_message_ = p;
  19632. }
  19633. // @@protoc_insertion_point(field_mutable:protobuf_unittest.TestRequiredForeign.optional_message)
  19634. return optional_message_;
  19635. }
  19636. inline void TestRequiredForeign::set_allocated_optional_message(::protobuf_unittest::TestRequired* optional_message) {
  19637. ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
  19638. if (message_arena == NULL) {
  19639. delete optional_message_;
  19640. }
  19641. if (optional_message) {
  19642. ::google::protobuf::Arena* submessage_arena =
  19643. ::google::protobuf::Arena::GetArena(optional_message);
  19644. if (message_arena != submessage_arena) {
  19645. optional_message = ::google::protobuf::internal::GetOwnedMessage(
  19646. message_arena, optional_message, submessage_arena);
  19647. }
  19648. set_has_optional_message();
  19649. } else {
  19650. clear_has_optional_message();
  19651. }
  19652. optional_message_ = optional_message;
  19653. // @@protoc_insertion_point(field_set_allocated:protobuf_unittest.TestRequiredForeign.optional_message)
  19654. }
  19655. // repeated .protobuf_unittest.TestRequired repeated_message = 2;
  19656. inline int TestRequiredForeign::repeated_message_size() const {
  19657. return repeated_message_.size();
  19658. }
  19659. inline void TestRequiredForeign::clear_repeated_message() {
  19660. repeated_message_.Clear();
  19661. }
  19662. inline ::protobuf_unittest::TestRequired* TestRequiredForeign::mutable_repeated_message(int index) {
  19663. // @@protoc_insertion_point(field_mutable:protobuf_unittest.TestRequiredForeign.repeated_message)
  19664. return repeated_message_.Mutable(index);
  19665. }
  19666. inline ::google::protobuf::RepeatedPtrField< ::protobuf_unittest::TestRequired >*
  19667. TestRequiredForeign::mutable_repeated_message() {
  19668. // @@protoc_insertion_point(field_mutable_list:protobuf_unittest.TestRequiredForeign.repeated_message)
  19669. return &repeated_message_;
  19670. }
  19671. inline const ::protobuf_unittest::TestRequired& TestRequiredForeign::repeated_message(int index) const {
  19672. // @@protoc_insertion_point(field_get:protobuf_unittest.TestRequiredForeign.repeated_message)
  19673. return repeated_message_.Get(index);
  19674. }
  19675. inline ::protobuf_unittest::TestRequired* TestRequiredForeign::add_repeated_message() {
  19676. // @@protoc_insertion_point(field_add:protobuf_unittest.TestRequiredForeign.repeated_message)
  19677. return repeated_message_.Add();
  19678. }
  19679. inline const ::google::protobuf::RepeatedPtrField< ::protobuf_unittest::TestRequired >&
  19680. TestRequiredForeign::repeated_message() const {
  19681. // @@protoc_insertion_point(field_list:protobuf_unittest.TestRequiredForeign.repeated_message)
  19682. return repeated_message_;
  19683. }
  19684. // optional int32 dummy = 3;
  19685. inline bool TestRequiredForeign::has_dummy() const {
  19686. return (_has_bits_[0] & 0x00000002u) != 0;
  19687. }
  19688. inline void TestRequiredForeign::set_has_dummy() {
  19689. _has_bits_[0] |= 0x00000002u;
  19690. }
  19691. inline void TestRequiredForeign::clear_has_dummy() {
  19692. _has_bits_[0] &= ~0x00000002u;
  19693. }
  19694. inline void TestRequiredForeign::clear_dummy() {
  19695. dummy_ = 0;
  19696. clear_has_dummy();
  19697. }
  19698. inline ::google::protobuf::int32 TestRequiredForeign::dummy() const {
  19699. // @@protoc_insertion_point(field_get:protobuf_unittest.TestRequiredForeign.dummy)
  19700. return dummy_;
  19701. }
  19702. inline void TestRequiredForeign::set_dummy(::google::protobuf::int32 value) {
  19703. set_has_dummy();
  19704. dummy_ = value;
  19705. // @@protoc_insertion_point(field_set:protobuf_unittest.TestRequiredForeign.dummy)
  19706. }
  19707. // -------------------------------------------------------------------
  19708. // TestRequiredMessage
  19709. // optional .protobuf_unittest.TestRequired optional_message = 1;
  19710. inline bool TestRequiredMessage::has_optional_message() const {
  19711. return (_has_bits_[0] & 0x00000001u) != 0;
  19712. }
  19713. inline void TestRequiredMessage::set_has_optional_message() {
  19714. _has_bits_[0] |= 0x00000001u;
  19715. }
  19716. inline void TestRequiredMessage::clear_has_optional_message() {
  19717. _has_bits_[0] &= ~0x00000001u;
  19718. }
  19719. inline void TestRequiredMessage::clear_optional_message() {
  19720. if (optional_message_ != NULL) optional_message_->Clear();
  19721. clear_has_optional_message();
  19722. }
  19723. inline const ::protobuf_unittest::TestRequired& TestRequiredMessage::_internal_optional_message() const {
  19724. return *optional_message_;
  19725. }
  19726. inline const ::protobuf_unittest::TestRequired& TestRequiredMessage::optional_message() const {
  19727. const ::protobuf_unittest::TestRequired* p = optional_message_;
  19728. // @@protoc_insertion_point(field_get:protobuf_unittest.TestRequiredMessage.optional_message)
  19729. return p != NULL ? *p : *reinterpret_cast<const ::protobuf_unittest::TestRequired*>(
  19730. &::protobuf_unittest::_TestRequired_default_instance_);
  19731. }
  19732. inline ::protobuf_unittest::TestRequired* TestRequiredMessage::release_optional_message() {
  19733. // @@protoc_insertion_point(field_release:protobuf_unittest.TestRequiredMessage.optional_message)
  19734. clear_has_optional_message();
  19735. ::protobuf_unittest::TestRequired* temp = optional_message_;
  19736. if (GetArenaNoVirtual() != NULL) {
  19737. temp = ::google::protobuf::internal::DuplicateIfNonNull(temp);
  19738. }
  19739. optional_message_ = NULL;
  19740. return temp;
  19741. }
  19742. inline ::protobuf_unittest::TestRequired* TestRequiredMessage::unsafe_arena_release_optional_message() {
  19743. // @@protoc_insertion_point(field_unsafe_arena_release:protobuf_unittest.TestRequiredMessage.optional_message)
  19744. clear_has_optional_message();
  19745. ::protobuf_unittest::TestRequired* temp = optional_message_;
  19746. optional_message_ = NULL;
  19747. return temp;
  19748. }
  19749. inline ::protobuf_unittest::TestRequired* TestRequiredMessage::mutable_optional_message() {
  19750. set_has_optional_message();
  19751. if (optional_message_ == NULL) {
  19752. auto* p = CreateMaybeMessage<::protobuf_unittest::TestRequired>(GetArenaNoVirtual());
  19753. optional_message_ = p;
  19754. }
  19755. // @@protoc_insertion_point(field_mutable:protobuf_unittest.TestRequiredMessage.optional_message)
  19756. return optional_message_;
  19757. }
  19758. inline void TestRequiredMessage::set_allocated_optional_message(::protobuf_unittest::TestRequired* optional_message) {
  19759. ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
  19760. if (message_arena == NULL) {
  19761. delete optional_message_;
  19762. }
  19763. if (optional_message) {
  19764. ::google::protobuf::Arena* submessage_arena =
  19765. ::google::protobuf::Arena::GetArena(optional_message);
  19766. if (message_arena != submessage_arena) {
  19767. optional_message = ::google::protobuf::internal::GetOwnedMessage(
  19768. message_arena, optional_message, submessage_arena);
  19769. }
  19770. set_has_optional_message();
  19771. } else {
  19772. clear_has_optional_message();
  19773. }
  19774. optional_message_ = optional_message;
  19775. // @@protoc_insertion_point(field_set_allocated:protobuf_unittest.TestRequiredMessage.optional_message)
  19776. }
  19777. // repeated .protobuf_unittest.TestRequired repeated_message = 2;
  19778. inline int TestRequiredMessage::repeated_message_size() const {
  19779. return repeated_message_.size();
  19780. }
  19781. inline void TestRequiredMessage::clear_repeated_message() {
  19782. repeated_message_.Clear();
  19783. }
  19784. inline ::protobuf_unittest::TestRequired* TestRequiredMessage::mutable_repeated_message(int index) {
  19785. // @@protoc_insertion_point(field_mutable:protobuf_unittest.TestRequiredMessage.repeated_message)
  19786. return repeated_message_.Mutable(index);
  19787. }
  19788. inline ::google::protobuf::RepeatedPtrField< ::protobuf_unittest::TestRequired >*
  19789. TestRequiredMessage::mutable_repeated_message() {
  19790. // @@protoc_insertion_point(field_mutable_list:protobuf_unittest.TestRequiredMessage.repeated_message)
  19791. return &repeated_message_;
  19792. }
  19793. inline const ::protobuf_unittest::TestRequired& TestRequiredMessage::repeated_message(int index) const {
  19794. // @@protoc_insertion_point(field_get:protobuf_unittest.TestRequiredMessage.repeated_message)
  19795. return repeated_message_.Get(index);
  19796. }
  19797. inline ::protobuf_unittest::TestRequired* TestRequiredMessage::add_repeated_message() {
  19798. // @@protoc_insertion_point(field_add:protobuf_unittest.TestRequiredMessage.repeated_message)
  19799. return repeated_message_.Add();
  19800. }
  19801. inline const ::google::protobuf::RepeatedPtrField< ::protobuf_unittest::TestRequired >&
  19802. TestRequiredMessage::repeated_message() const {
  19803. // @@protoc_insertion_point(field_list:protobuf_unittest.TestRequiredMessage.repeated_message)
  19804. return repeated_message_;
  19805. }
  19806. // required .protobuf_unittest.TestRequired required_message = 3;
  19807. inline bool TestRequiredMessage::has_required_message() const {
  19808. return (_has_bits_[0] & 0x00000002u) != 0;
  19809. }
  19810. inline void TestRequiredMessage::set_has_required_message() {
  19811. _has_bits_[0] |= 0x00000002u;
  19812. }
  19813. inline void TestRequiredMessage::clear_has_required_message() {
  19814. _has_bits_[0] &= ~0x00000002u;
  19815. }
  19816. inline void TestRequiredMessage::clear_required_message() {
  19817. if (required_message_ != NULL) required_message_->Clear();
  19818. clear_has_required_message();
  19819. }
  19820. inline const ::protobuf_unittest::TestRequired& TestRequiredMessage::_internal_required_message() const {
  19821. return *required_message_;
  19822. }
  19823. inline const ::protobuf_unittest::TestRequired& TestRequiredMessage::required_message() const {
  19824. const ::protobuf_unittest::TestRequired* p = required_message_;
  19825. // @@protoc_insertion_point(field_get:protobuf_unittest.TestRequiredMessage.required_message)
  19826. return p != NULL ? *p : *reinterpret_cast<const ::protobuf_unittest::TestRequired*>(
  19827. &::protobuf_unittest::_TestRequired_default_instance_);
  19828. }
  19829. inline ::protobuf_unittest::TestRequired* TestRequiredMessage::release_required_message() {
  19830. // @@protoc_insertion_point(field_release:protobuf_unittest.TestRequiredMessage.required_message)
  19831. clear_has_required_message();
  19832. ::protobuf_unittest::TestRequired* temp = required_message_;
  19833. if (GetArenaNoVirtual() != NULL) {
  19834. temp = ::google::protobuf::internal::DuplicateIfNonNull(temp);
  19835. }
  19836. required_message_ = NULL;
  19837. return temp;
  19838. }
  19839. inline ::protobuf_unittest::TestRequired* TestRequiredMessage::unsafe_arena_release_required_message() {
  19840. // @@protoc_insertion_point(field_unsafe_arena_release:protobuf_unittest.TestRequiredMessage.required_message)
  19841. clear_has_required_message();
  19842. ::protobuf_unittest::TestRequired* temp = required_message_;
  19843. required_message_ = NULL;
  19844. return temp;
  19845. }
  19846. inline ::protobuf_unittest::TestRequired* TestRequiredMessage::mutable_required_message() {
  19847. set_has_required_message();
  19848. if (required_message_ == NULL) {
  19849. auto* p = CreateMaybeMessage<::protobuf_unittest::TestRequired>(GetArenaNoVirtual());
  19850. required_message_ = p;
  19851. }
  19852. // @@protoc_insertion_point(field_mutable:protobuf_unittest.TestRequiredMessage.required_message)
  19853. return required_message_;
  19854. }
  19855. inline void TestRequiredMessage::set_allocated_required_message(::protobuf_unittest::TestRequired* required_message) {
  19856. ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
  19857. if (message_arena == NULL) {
  19858. delete required_message_;
  19859. }
  19860. if (required_message) {
  19861. ::google::protobuf::Arena* submessage_arena =
  19862. ::google::protobuf::Arena::GetArena(required_message);
  19863. if (message_arena != submessage_arena) {
  19864. required_message = ::google::protobuf::internal::GetOwnedMessage(
  19865. message_arena, required_message, submessage_arena);
  19866. }
  19867. set_has_required_message();
  19868. } else {
  19869. clear_has_required_message();
  19870. }
  19871. required_message_ = required_message;
  19872. // @@protoc_insertion_point(field_set_allocated:protobuf_unittest.TestRequiredMessage.required_message)
  19873. }
  19874. // -------------------------------------------------------------------
  19875. // TestForeignNested
  19876. // optional .protobuf_unittest.TestAllTypes.NestedMessage foreign_nested = 1;
  19877. inline bool TestForeignNested::has_foreign_nested() const {
  19878. return (_has_bits_[0] & 0x00000001u) != 0;
  19879. }
  19880. inline void TestForeignNested::set_has_foreign_nested() {
  19881. _has_bits_[0] |= 0x00000001u;
  19882. }
  19883. inline void TestForeignNested::clear_has_foreign_nested() {
  19884. _has_bits_[0] &= ~0x00000001u;
  19885. }
  19886. inline void TestForeignNested::clear_foreign_nested() {
  19887. if (foreign_nested_ != NULL) foreign_nested_->Clear();
  19888. clear_has_foreign_nested();
  19889. }
  19890. inline const ::protobuf_unittest::TestAllTypes_NestedMessage& TestForeignNested::_internal_foreign_nested() const {
  19891. return *foreign_nested_;
  19892. }
  19893. inline const ::protobuf_unittest::TestAllTypes_NestedMessage& TestForeignNested::foreign_nested() const {
  19894. const ::protobuf_unittest::TestAllTypes_NestedMessage* p = foreign_nested_;
  19895. // @@protoc_insertion_point(field_get:protobuf_unittest.TestForeignNested.foreign_nested)
  19896. return p != NULL ? *p : *reinterpret_cast<const ::protobuf_unittest::TestAllTypes_NestedMessage*>(
  19897. &::protobuf_unittest::_TestAllTypes_NestedMessage_default_instance_);
  19898. }
  19899. inline ::protobuf_unittest::TestAllTypes_NestedMessage* TestForeignNested::release_foreign_nested() {
  19900. // @@protoc_insertion_point(field_release:protobuf_unittest.TestForeignNested.foreign_nested)
  19901. clear_has_foreign_nested();
  19902. ::protobuf_unittest::TestAllTypes_NestedMessage* temp = foreign_nested_;
  19903. if (GetArenaNoVirtual() != NULL) {
  19904. temp = ::google::protobuf::internal::DuplicateIfNonNull(temp);
  19905. }
  19906. foreign_nested_ = NULL;
  19907. return temp;
  19908. }
  19909. inline ::protobuf_unittest::TestAllTypes_NestedMessage* TestForeignNested::unsafe_arena_release_foreign_nested() {
  19910. // @@protoc_insertion_point(field_unsafe_arena_release:protobuf_unittest.TestForeignNested.foreign_nested)
  19911. clear_has_foreign_nested();
  19912. ::protobuf_unittest::TestAllTypes_NestedMessage* temp = foreign_nested_;
  19913. foreign_nested_ = NULL;
  19914. return temp;
  19915. }
  19916. inline ::protobuf_unittest::TestAllTypes_NestedMessage* TestForeignNested::mutable_foreign_nested() {
  19917. set_has_foreign_nested();
  19918. if (foreign_nested_ == NULL) {
  19919. auto* p = CreateMaybeMessage<::protobuf_unittest::TestAllTypes_NestedMessage>(GetArenaNoVirtual());
  19920. foreign_nested_ = p;
  19921. }
  19922. // @@protoc_insertion_point(field_mutable:protobuf_unittest.TestForeignNested.foreign_nested)
  19923. return foreign_nested_;
  19924. }
  19925. inline void TestForeignNested::set_allocated_foreign_nested(::protobuf_unittest::TestAllTypes_NestedMessage* foreign_nested) {
  19926. ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
  19927. if (message_arena == NULL) {
  19928. delete foreign_nested_;
  19929. }
  19930. if (foreign_nested) {
  19931. ::google::protobuf::Arena* submessage_arena =
  19932. ::google::protobuf::Arena::GetArena(foreign_nested);
  19933. if (message_arena != submessage_arena) {
  19934. foreign_nested = ::google::protobuf::internal::GetOwnedMessage(
  19935. message_arena, foreign_nested, submessage_arena);
  19936. }
  19937. set_has_foreign_nested();
  19938. } else {
  19939. clear_has_foreign_nested();
  19940. }
  19941. foreign_nested_ = foreign_nested;
  19942. // @@protoc_insertion_point(field_set_allocated:protobuf_unittest.TestForeignNested.foreign_nested)
  19943. }
  19944. // -------------------------------------------------------------------
  19945. // TestEmptyMessage
  19946. // -------------------------------------------------------------------
  19947. // TestEmptyMessageWithExtensions
  19948. // -------------------------------------------------------------------
  19949. // TestMultipleExtensionRanges
  19950. // -------------------------------------------------------------------
  19951. // TestReallyLargeTagNumber
  19952. // optional int32 a = 1;
  19953. inline bool TestReallyLargeTagNumber::has_a() const {
  19954. return (_has_bits_[0] & 0x00000001u) != 0;
  19955. }
  19956. inline void TestReallyLargeTagNumber::set_has_a() {
  19957. _has_bits_[0] |= 0x00000001u;
  19958. }
  19959. inline void TestReallyLargeTagNumber::clear_has_a() {
  19960. _has_bits_[0] &= ~0x00000001u;
  19961. }
  19962. inline void TestReallyLargeTagNumber::clear_a() {
  19963. a_ = 0;
  19964. clear_has_a();
  19965. }
  19966. inline ::google::protobuf::int32 TestReallyLargeTagNumber::a() const {
  19967. // @@protoc_insertion_point(field_get:protobuf_unittest.TestReallyLargeTagNumber.a)
  19968. return a_;
  19969. }
  19970. inline void TestReallyLargeTagNumber::set_a(::google::protobuf::int32 value) {
  19971. set_has_a();
  19972. a_ = value;
  19973. // @@protoc_insertion_point(field_set:protobuf_unittest.TestReallyLargeTagNumber.a)
  19974. }
  19975. // optional int32 bb = 268435455;
  19976. inline bool TestReallyLargeTagNumber::has_bb() const {
  19977. return (_has_bits_[0] & 0x00000002u) != 0;
  19978. }
  19979. inline void TestReallyLargeTagNumber::set_has_bb() {
  19980. _has_bits_[0] |= 0x00000002u;
  19981. }
  19982. inline void TestReallyLargeTagNumber::clear_has_bb() {
  19983. _has_bits_[0] &= ~0x00000002u;
  19984. }
  19985. inline void TestReallyLargeTagNumber::clear_bb() {
  19986. bb_ = 0;
  19987. clear_has_bb();
  19988. }
  19989. inline ::google::protobuf::int32 TestReallyLargeTagNumber::bb() const {
  19990. // @@protoc_insertion_point(field_get:protobuf_unittest.TestReallyLargeTagNumber.bb)
  19991. return bb_;
  19992. }
  19993. inline void TestReallyLargeTagNumber::set_bb(::google::protobuf::int32 value) {
  19994. set_has_bb();
  19995. bb_ = value;
  19996. // @@protoc_insertion_point(field_set:protobuf_unittest.TestReallyLargeTagNumber.bb)
  19997. }
  19998. // -------------------------------------------------------------------
  19999. // TestRecursiveMessage
  20000. // optional .protobuf_unittest.TestRecursiveMessage a = 1;
  20001. inline bool TestRecursiveMessage::has_a() const {
  20002. return (_has_bits_[0] & 0x00000001u) != 0;
  20003. }
  20004. inline void TestRecursiveMessage::set_has_a() {
  20005. _has_bits_[0] |= 0x00000001u;
  20006. }
  20007. inline void TestRecursiveMessage::clear_has_a() {
  20008. _has_bits_[0] &= ~0x00000001u;
  20009. }
  20010. inline void TestRecursiveMessage::clear_a() {
  20011. if (a_ != NULL) a_->Clear();
  20012. clear_has_a();
  20013. }
  20014. inline const ::protobuf_unittest::TestRecursiveMessage& TestRecursiveMessage::_internal_a() const {
  20015. return *a_;
  20016. }
  20017. inline const ::protobuf_unittest::TestRecursiveMessage& TestRecursiveMessage::a() const {
  20018. const ::protobuf_unittest::TestRecursiveMessage* p = a_;
  20019. // @@protoc_insertion_point(field_get:protobuf_unittest.TestRecursiveMessage.a)
  20020. return p != NULL ? *p : *reinterpret_cast<const ::protobuf_unittest::TestRecursiveMessage*>(
  20021. &::protobuf_unittest::_TestRecursiveMessage_default_instance_);
  20022. }
  20023. inline ::protobuf_unittest::TestRecursiveMessage* TestRecursiveMessage::release_a() {
  20024. // @@protoc_insertion_point(field_release:protobuf_unittest.TestRecursiveMessage.a)
  20025. clear_has_a();
  20026. ::protobuf_unittest::TestRecursiveMessage* temp = a_;
  20027. if (GetArenaNoVirtual() != NULL) {
  20028. temp = ::google::protobuf::internal::DuplicateIfNonNull(temp);
  20029. }
  20030. a_ = NULL;
  20031. return temp;
  20032. }
  20033. inline ::protobuf_unittest::TestRecursiveMessage* TestRecursiveMessage::unsafe_arena_release_a() {
  20034. // @@protoc_insertion_point(field_unsafe_arena_release:protobuf_unittest.TestRecursiveMessage.a)
  20035. clear_has_a();
  20036. ::protobuf_unittest::TestRecursiveMessage* temp = a_;
  20037. a_ = NULL;
  20038. return temp;
  20039. }
  20040. inline ::protobuf_unittest::TestRecursiveMessage* TestRecursiveMessage::mutable_a() {
  20041. set_has_a();
  20042. if (a_ == NULL) {
  20043. auto* p = CreateMaybeMessage<::protobuf_unittest::TestRecursiveMessage>(GetArenaNoVirtual());
  20044. a_ = p;
  20045. }
  20046. // @@protoc_insertion_point(field_mutable:protobuf_unittest.TestRecursiveMessage.a)
  20047. return a_;
  20048. }
  20049. inline void TestRecursiveMessage::set_allocated_a(::protobuf_unittest::TestRecursiveMessage* a) {
  20050. ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
  20051. if (message_arena == NULL) {
  20052. delete a_;
  20053. }
  20054. if (a) {
  20055. ::google::protobuf::Arena* submessage_arena =
  20056. ::google::protobuf::Arena::GetArena(a);
  20057. if (message_arena != submessage_arena) {
  20058. a = ::google::protobuf::internal::GetOwnedMessage(
  20059. message_arena, a, submessage_arena);
  20060. }
  20061. set_has_a();
  20062. } else {
  20063. clear_has_a();
  20064. }
  20065. a_ = a;
  20066. // @@protoc_insertion_point(field_set_allocated:protobuf_unittest.TestRecursiveMessage.a)
  20067. }
  20068. // optional int32 i = 2;
  20069. inline bool TestRecursiveMessage::has_i() const {
  20070. return (_has_bits_[0] & 0x00000002u) != 0;
  20071. }
  20072. inline void TestRecursiveMessage::set_has_i() {
  20073. _has_bits_[0] |= 0x00000002u;
  20074. }
  20075. inline void TestRecursiveMessage::clear_has_i() {
  20076. _has_bits_[0] &= ~0x00000002u;
  20077. }
  20078. inline void TestRecursiveMessage::clear_i() {
  20079. i_ = 0;
  20080. clear_has_i();
  20081. }
  20082. inline ::google::protobuf::int32 TestRecursiveMessage::i() const {
  20083. // @@protoc_insertion_point(field_get:protobuf_unittest.TestRecursiveMessage.i)
  20084. return i_;
  20085. }
  20086. inline void TestRecursiveMessage::set_i(::google::protobuf::int32 value) {
  20087. set_has_i();
  20088. i_ = value;
  20089. // @@protoc_insertion_point(field_set:protobuf_unittest.TestRecursiveMessage.i)
  20090. }
  20091. // -------------------------------------------------------------------
  20092. // TestMutualRecursionA_SubMessage
  20093. // optional .protobuf_unittest.TestMutualRecursionB b = 1;
  20094. inline bool TestMutualRecursionA_SubMessage::has_b() const {
  20095. return (_has_bits_[0] & 0x00000001u) != 0;
  20096. }
  20097. inline void TestMutualRecursionA_SubMessage::set_has_b() {
  20098. _has_bits_[0] |= 0x00000001u;
  20099. }
  20100. inline void TestMutualRecursionA_SubMessage::clear_has_b() {
  20101. _has_bits_[0] &= ~0x00000001u;
  20102. }
  20103. inline void TestMutualRecursionA_SubMessage::clear_b() {
  20104. if (b_ != NULL) b_->Clear();
  20105. clear_has_b();
  20106. }
  20107. inline const ::protobuf_unittest::TestMutualRecursionB& TestMutualRecursionA_SubMessage::_internal_b() const {
  20108. return *b_;
  20109. }
  20110. inline const ::protobuf_unittest::TestMutualRecursionB& TestMutualRecursionA_SubMessage::b() const {
  20111. const ::protobuf_unittest::TestMutualRecursionB* p = b_;
  20112. // @@protoc_insertion_point(field_get:protobuf_unittest.TestMutualRecursionA.SubMessage.b)
  20113. return p != NULL ? *p : *reinterpret_cast<const ::protobuf_unittest::TestMutualRecursionB*>(
  20114. &::protobuf_unittest::_TestMutualRecursionB_default_instance_);
  20115. }
  20116. inline ::protobuf_unittest::TestMutualRecursionB* TestMutualRecursionA_SubMessage::release_b() {
  20117. // @@protoc_insertion_point(field_release:protobuf_unittest.TestMutualRecursionA.SubMessage.b)
  20118. clear_has_b();
  20119. ::protobuf_unittest::TestMutualRecursionB* temp = b_;
  20120. if (GetArenaNoVirtual() != NULL) {
  20121. temp = ::google::protobuf::internal::DuplicateIfNonNull(temp);
  20122. }
  20123. b_ = NULL;
  20124. return temp;
  20125. }
  20126. inline ::protobuf_unittest::TestMutualRecursionB* TestMutualRecursionA_SubMessage::unsafe_arena_release_b() {
  20127. // @@protoc_insertion_point(field_unsafe_arena_release:protobuf_unittest.TestMutualRecursionA.SubMessage.b)
  20128. clear_has_b();
  20129. ::protobuf_unittest::TestMutualRecursionB* temp = b_;
  20130. b_ = NULL;
  20131. return temp;
  20132. }
  20133. inline ::protobuf_unittest::TestMutualRecursionB* TestMutualRecursionA_SubMessage::mutable_b() {
  20134. set_has_b();
  20135. if (b_ == NULL) {
  20136. auto* p = CreateMaybeMessage<::protobuf_unittest::TestMutualRecursionB>(GetArenaNoVirtual());
  20137. b_ = p;
  20138. }
  20139. // @@protoc_insertion_point(field_mutable:protobuf_unittest.TestMutualRecursionA.SubMessage.b)
  20140. return b_;
  20141. }
  20142. inline void TestMutualRecursionA_SubMessage::set_allocated_b(::protobuf_unittest::TestMutualRecursionB* b) {
  20143. ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
  20144. if (message_arena == NULL) {
  20145. delete b_;
  20146. }
  20147. if (b) {
  20148. ::google::protobuf::Arena* submessage_arena =
  20149. ::google::protobuf::Arena::GetArena(b);
  20150. if (message_arena != submessage_arena) {
  20151. b = ::google::protobuf::internal::GetOwnedMessage(
  20152. message_arena, b, submessage_arena);
  20153. }
  20154. set_has_b();
  20155. } else {
  20156. clear_has_b();
  20157. }
  20158. b_ = b;
  20159. // @@protoc_insertion_point(field_set_allocated:protobuf_unittest.TestMutualRecursionA.SubMessage.b)
  20160. }
  20161. // -------------------------------------------------------------------
  20162. // TestMutualRecursionA_SubGroup
  20163. // optional .protobuf_unittest.TestMutualRecursionA.SubMessage sub_message = 3;
  20164. inline bool TestMutualRecursionA_SubGroup::has_sub_message() const {
  20165. return (_has_bits_[0] & 0x00000001u) != 0;
  20166. }
  20167. inline void TestMutualRecursionA_SubGroup::set_has_sub_message() {
  20168. _has_bits_[0] |= 0x00000001u;
  20169. }
  20170. inline void TestMutualRecursionA_SubGroup::clear_has_sub_message() {
  20171. _has_bits_[0] &= ~0x00000001u;
  20172. }
  20173. inline void TestMutualRecursionA_SubGroup::clear_sub_message() {
  20174. if (sub_message_ != NULL) sub_message_->Clear();
  20175. clear_has_sub_message();
  20176. }
  20177. inline const ::protobuf_unittest::TestMutualRecursionA_SubMessage& TestMutualRecursionA_SubGroup::_internal_sub_message() const {
  20178. return *sub_message_;
  20179. }
  20180. inline const ::protobuf_unittest::TestMutualRecursionA_SubMessage& TestMutualRecursionA_SubGroup::sub_message() const {
  20181. const ::protobuf_unittest::TestMutualRecursionA_SubMessage* p = sub_message_;
  20182. // @@protoc_insertion_point(field_get:protobuf_unittest.TestMutualRecursionA.SubGroup.sub_message)
  20183. return p != NULL ? *p : *reinterpret_cast<const ::protobuf_unittest::TestMutualRecursionA_SubMessage*>(
  20184. &::protobuf_unittest::_TestMutualRecursionA_SubMessage_default_instance_);
  20185. }
  20186. inline ::protobuf_unittest::TestMutualRecursionA_SubMessage* TestMutualRecursionA_SubGroup::release_sub_message() {
  20187. // @@protoc_insertion_point(field_release:protobuf_unittest.TestMutualRecursionA.SubGroup.sub_message)
  20188. clear_has_sub_message();
  20189. ::protobuf_unittest::TestMutualRecursionA_SubMessage* temp = sub_message_;
  20190. if (GetArenaNoVirtual() != NULL) {
  20191. temp = ::google::protobuf::internal::DuplicateIfNonNull(temp);
  20192. }
  20193. sub_message_ = NULL;
  20194. return temp;
  20195. }
  20196. inline ::protobuf_unittest::TestMutualRecursionA_SubMessage* TestMutualRecursionA_SubGroup::unsafe_arena_release_sub_message() {
  20197. // @@protoc_insertion_point(field_unsafe_arena_release:protobuf_unittest.TestMutualRecursionA.SubGroup.sub_message)
  20198. clear_has_sub_message();
  20199. ::protobuf_unittest::TestMutualRecursionA_SubMessage* temp = sub_message_;
  20200. sub_message_ = NULL;
  20201. return temp;
  20202. }
  20203. inline ::protobuf_unittest::TestMutualRecursionA_SubMessage* TestMutualRecursionA_SubGroup::mutable_sub_message() {
  20204. set_has_sub_message();
  20205. if (sub_message_ == NULL) {
  20206. auto* p = CreateMaybeMessage<::protobuf_unittest::TestMutualRecursionA_SubMessage>(GetArenaNoVirtual());
  20207. sub_message_ = p;
  20208. }
  20209. // @@protoc_insertion_point(field_mutable:protobuf_unittest.TestMutualRecursionA.SubGroup.sub_message)
  20210. return sub_message_;
  20211. }
  20212. inline void TestMutualRecursionA_SubGroup::set_allocated_sub_message(::protobuf_unittest::TestMutualRecursionA_SubMessage* sub_message) {
  20213. ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
  20214. if (message_arena == NULL) {
  20215. delete sub_message_;
  20216. }
  20217. if (sub_message) {
  20218. ::google::protobuf::Arena* submessage_arena =
  20219. ::google::protobuf::Arena::GetArena(sub_message);
  20220. if (message_arena != submessage_arena) {
  20221. sub_message = ::google::protobuf::internal::GetOwnedMessage(
  20222. message_arena, sub_message, submessage_arena);
  20223. }
  20224. set_has_sub_message();
  20225. } else {
  20226. clear_has_sub_message();
  20227. }
  20228. sub_message_ = sub_message;
  20229. // @@protoc_insertion_point(field_set_allocated:protobuf_unittest.TestMutualRecursionA.SubGroup.sub_message)
  20230. }
  20231. // optional .protobuf_unittest.TestAllTypes not_in_this_scc = 4;
  20232. inline bool TestMutualRecursionA_SubGroup::has_not_in_this_scc() const {
  20233. return (_has_bits_[0] & 0x00000002u) != 0;
  20234. }
  20235. inline void TestMutualRecursionA_SubGroup::set_has_not_in_this_scc() {
  20236. _has_bits_[0] |= 0x00000002u;
  20237. }
  20238. inline void TestMutualRecursionA_SubGroup::clear_has_not_in_this_scc() {
  20239. _has_bits_[0] &= ~0x00000002u;
  20240. }
  20241. inline void TestMutualRecursionA_SubGroup::clear_not_in_this_scc() {
  20242. if (not_in_this_scc_ != NULL) not_in_this_scc_->Clear();
  20243. clear_has_not_in_this_scc();
  20244. }
  20245. inline const ::protobuf_unittest::TestAllTypes& TestMutualRecursionA_SubGroup::_internal_not_in_this_scc() const {
  20246. return *not_in_this_scc_;
  20247. }
  20248. inline const ::protobuf_unittest::TestAllTypes& TestMutualRecursionA_SubGroup::not_in_this_scc() const {
  20249. const ::protobuf_unittest::TestAllTypes* p = not_in_this_scc_;
  20250. // @@protoc_insertion_point(field_get:protobuf_unittest.TestMutualRecursionA.SubGroup.not_in_this_scc)
  20251. return p != NULL ? *p : *reinterpret_cast<const ::protobuf_unittest::TestAllTypes*>(
  20252. &::protobuf_unittest::_TestAllTypes_default_instance_);
  20253. }
  20254. inline ::protobuf_unittest::TestAllTypes* TestMutualRecursionA_SubGroup::release_not_in_this_scc() {
  20255. // @@protoc_insertion_point(field_release:protobuf_unittest.TestMutualRecursionA.SubGroup.not_in_this_scc)
  20256. clear_has_not_in_this_scc();
  20257. ::protobuf_unittest::TestAllTypes* temp = not_in_this_scc_;
  20258. if (GetArenaNoVirtual() != NULL) {
  20259. temp = ::google::protobuf::internal::DuplicateIfNonNull(temp);
  20260. }
  20261. not_in_this_scc_ = NULL;
  20262. return temp;
  20263. }
  20264. inline ::protobuf_unittest::TestAllTypes* TestMutualRecursionA_SubGroup::unsafe_arena_release_not_in_this_scc() {
  20265. // @@protoc_insertion_point(field_unsafe_arena_release:protobuf_unittest.TestMutualRecursionA.SubGroup.not_in_this_scc)
  20266. clear_has_not_in_this_scc();
  20267. ::protobuf_unittest::TestAllTypes* temp = not_in_this_scc_;
  20268. not_in_this_scc_ = NULL;
  20269. return temp;
  20270. }
  20271. inline ::protobuf_unittest::TestAllTypes* TestMutualRecursionA_SubGroup::mutable_not_in_this_scc() {
  20272. set_has_not_in_this_scc();
  20273. if (not_in_this_scc_ == NULL) {
  20274. auto* p = CreateMaybeMessage<::protobuf_unittest::TestAllTypes>(GetArenaNoVirtual());
  20275. not_in_this_scc_ = p;
  20276. }
  20277. // @@protoc_insertion_point(field_mutable:protobuf_unittest.TestMutualRecursionA.SubGroup.not_in_this_scc)
  20278. return not_in_this_scc_;
  20279. }
  20280. inline void TestMutualRecursionA_SubGroup::set_allocated_not_in_this_scc(::protobuf_unittest::TestAllTypes* not_in_this_scc) {
  20281. ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
  20282. if (message_arena == NULL) {
  20283. delete not_in_this_scc_;
  20284. }
  20285. if (not_in_this_scc) {
  20286. ::google::protobuf::Arena* submessage_arena =
  20287. ::google::protobuf::Arena::GetArena(not_in_this_scc);
  20288. if (message_arena != submessage_arena) {
  20289. not_in_this_scc = ::google::protobuf::internal::GetOwnedMessage(
  20290. message_arena, not_in_this_scc, submessage_arena);
  20291. }
  20292. set_has_not_in_this_scc();
  20293. } else {
  20294. clear_has_not_in_this_scc();
  20295. }
  20296. not_in_this_scc_ = not_in_this_scc;
  20297. // @@protoc_insertion_point(field_set_allocated:protobuf_unittest.TestMutualRecursionA.SubGroup.not_in_this_scc)
  20298. }
  20299. // -------------------------------------------------------------------
  20300. // TestMutualRecursionA
  20301. // optional .protobuf_unittest.TestMutualRecursionB bb = 1;
  20302. inline bool TestMutualRecursionA::has_bb() const {
  20303. return (_has_bits_[0] & 0x00000001u) != 0;
  20304. }
  20305. inline void TestMutualRecursionA::set_has_bb() {
  20306. _has_bits_[0] |= 0x00000001u;
  20307. }
  20308. inline void TestMutualRecursionA::clear_has_bb() {
  20309. _has_bits_[0] &= ~0x00000001u;
  20310. }
  20311. inline void TestMutualRecursionA::clear_bb() {
  20312. if (bb_ != NULL) bb_->Clear();
  20313. clear_has_bb();
  20314. }
  20315. inline const ::protobuf_unittest::TestMutualRecursionB& TestMutualRecursionA::_internal_bb() const {
  20316. return *bb_;
  20317. }
  20318. inline const ::protobuf_unittest::TestMutualRecursionB& TestMutualRecursionA::bb() const {
  20319. const ::protobuf_unittest::TestMutualRecursionB* p = bb_;
  20320. // @@protoc_insertion_point(field_get:protobuf_unittest.TestMutualRecursionA.bb)
  20321. return p != NULL ? *p : *reinterpret_cast<const ::protobuf_unittest::TestMutualRecursionB*>(
  20322. &::protobuf_unittest::_TestMutualRecursionB_default_instance_);
  20323. }
  20324. inline ::protobuf_unittest::TestMutualRecursionB* TestMutualRecursionA::release_bb() {
  20325. // @@protoc_insertion_point(field_release:protobuf_unittest.TestMutualRecursionA.bb)
  20326. clear_has_bb();
  20327. ::protobuf_unittest::TestMutualRecursionB* temp = bb_;
  20328. if (GetArenaNoVirtual() != NULL) {
  20329. temp = ::google::protobuf::internal::DuplicateIfNonNull(temp);
  20330. }
  20331. bb_ = NULL;
  20332. return temp;
  20333. }
  20334. inline ::protobuf_unittest::TestMutualRecursionB* TestMutualRecursionA::unsafe_arena_release_bb() {
  20335. // @@protoc_insertion_point(field_unsafe_arena_release:protobuf_unittest.TestMutualRecursionA.bb)
  20336. clear_has_bb();
  20337. ::protobuf_unittest::TestMutualRecursionB* temp = bb_;
  20338. bb_ = NULL;
  20339. return temp;
  20340. }
  20341. inline ::protobuf_unittest::TestMutualRecursionB* TestMutualRecursionA::mutable_bb() {
  20342. set_has_bb();
  20343. if (bb_ == NULL) {
  20344. auto* p = CreateMaybeMessage<::protobuf_unittest::TestMutualRecursionB>(GetArenaNoVirtual());
  20345. bb_ = p;
  20346. }
  20347. // @@protoc_insertion_point(field_mutable:protobuf_unittest.TestMutualRecursionA.bb)
  20348. return bb_;
  20349. }
  20350. inline void TestMutualRecursionA::set_allocated_bb(::protobuf_unittest::TestMutualRecursionB* bb) {
  20351. ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
  20352. if (message_arena == NULL) {
  20353. delete bb_;
  20354. }
  20355. if (bb) {
  20356. ::google::protobuf::Arena* submessage_arena =
  20357. ::google::protobuf::Arena::GetArena(bb);
  20358. if (message_arena != submessage_arena) {
  20359. bb = ::google::protobuf::internal::GetOwnedMessage(
  20360. message_arena, bb, submessage_arena);
  20361. }
  20362. set_has_bb();
  20363. } else {
  20364. clear_has_bb();
  20365. }
  20366. bb_ = bb;
  20367. // @@protoc_insertion_point(field_set_allocated:protobuf_unittest.TestMutualRecursionA.bb)
  20368. }
  20369. // optional group SubGroup = 2 { ... };
  20370. inline bool TestMutualRecursionA::has_subgroup() const {
  20371. return (_has_bits_[0] & 0x00000002u) != 0;
  20372. }
  20373. inline void TestMutualRecursionA::set_has_subgroup() {
  20374. _has_bits_[0] |= 0x00000002u;
  20375. }
  20376. inline void TestMutualRecursionA::clear_has_subgroup() {
  20377. _has_bits_[0] &= ~0x00000002u;
  20378. }
  20379. inline void TestMutualRecursionA::clear_subgroup() {
  20380. if (subgroup_ != NULL) subgroup_->Clear();
  20381. clear_has_subgroup();
  20382. }
  20383. inline const ::protobuf_unittest::TestMutualRecursionA_SubGroup& TestMutualRecursionA::_internal_subgroup() const {
  20384. return *subgroup_;
  20385. }
  20386. inline const ::protobuf_unittest::TestMutualRecursionA_SubGroup& TestMutualRecursionA::subgroup() const {
  20387. const ::protobuf_unittest::TestMutualRecursionA_SubGroup* p = subgroup_;
  20388. // @@protoc_insertion_point(field_get:protobuf_unittest.TestMutualRecursionA.subgroup)
  20389. return p != NULL ? *p : *reinterpret_cast<const ::protobuf_unittest::TestMutualRecursionA_SubGroup*>(
  20390. &::protobuf_unittest::_TestMutualRecursionA_SubGroup_default_instance_);
  20391. }
  20392. inline ::protobuf_unittest::TestMutualRecursionA_SubGroup* TestMutualRecursionA::release_subgroup() {
  20393. // @@protoc_insertion_point(field_release:protobuf_unittest.TestMutualRecursionA.subgroup)
  20394. clear_has_subgroup();
  20395. ::protobuf_unittest::TestMutualRecursionA_SubGroup* temp = subgroup_;
  20396. if (GetArenaNoVirtual() != NULL) {
  20397. temp = ::google::protobuf::internal::DuplicateIfNonNull(temp);
  20398. }
  20399. subgroup_ = NULL;
  20400. return temp;
  20401. }
  20402. inline ::protobuf_unittest::TestMutualRecursionA_SubGroup* TestMutualRecursionA::unsafe_arena_release_subgroup() {
  20403. // @@protoc_insertion_point(field_unsafe_arena_release:protobuf_unittest.TestMutualRecursionA.subgroup)
  20404. clear_has_subgroup();
  20405. ::protobuf_unittest::TestMutualRecursionA_SubGroup* temp = subgroup_;
  20406. subgroup_ = NULL;
  20407. return temp;
  20408. }
  20409. inline ::protobuf_unittest::TestMutualRecursionA_SubGroup* TestMutualRecursionA::mutable_subgroup() {
  20410. set_has_subgroup();
  20411. if (subgroup_ == NULL) {
  20412. auto* p = CreateMaybeMessage<::protobuf_unittest::TestMutualRecursionA_SubGroup>(GetArenaNoVirtual());
  20413. subgroup_ = p;
  20414. }
  20415. // @@protoc_insertion_point(field_mutable:protobuf_unittest.TestMutualRecursionA.subgroup)
  20416. return subgroup_;
  20417. }
  20418. inline void TestMutualRecursionA::set_allocated_subgroup(::protobuf_unittest::TestMutualRecursionA_SubGroup* subgroup) {
  20419. ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
  20420. if (message_arena == NULL) {
  20421. delete subgroup_;
  20422. }
  20423. if (subgroup) {
  20424. ::google::protobuf::Arena* submessage_arena =
  20425. ::google::protobuf::Arena::GetArena(subgroup);
  20426. if (message_arena != submessage_arena) {
  20427. subgroup = ::google::protobuf::internal::GetOwnedMessage(
  20428. message_arena, subgroup, submessage_arena);
  20429. }
  20430. set_has_subgroup();
  20431. } else {
  20432. clear_has_subgroup();
  20433. }
  20434. subgroup_ = subgroup;
  20435. // @@protoc_insertion_point(field_set_allocated:protobuf_unittest.TestMutualRecursionA.subgroup)
  20436. }
  20437. // -------------------------------------------------------------------
  20438. // TestMutualRecursionB
  20439. // optional .protobuf_unittest.TestMutualRecursionA a = 1;
  20440. inline bool TestMutualRecursionB::has_a() const {
  20441. return (_has_bits_[0] & 0x00000001u) != 0;
  20442. }
  20443. inline void TestMutualRecursionB::set_has_a() {
  20444. _has_bits_[0] |= 0x00000001u;
  20445. }
  20446. inline void TestMutualRecursionB::clear_has_a() {
  20447. _has_bits_[0] &= ~0x00000001u;
  20448. }
  20449. inline void TestMutualRecursionB::clear_a() {
  20450. if (a_ != NULL) a_->Clear();
  20451. clear_has_a();
  20452. }
  20453. inline const ::protobuf_unittest::TestMutualRecursionA& TestMutualRecursionB::_internal_a() const {
  20454. return *a_;
  20455. }
  20456. inline const ::protobuf_unittest::TestMutualRecursionA& TestMutualRecursionB::a() const {
  20457. const ::protobuf_unittest::TestMutualRecursionA* p = a_;
  20458. // @@protoc_insertion_point(field_get:protobuf_unittest.TestMutualRecursionB.a)
  20459. return p != NULL ? *p : *reinterpret_cast<const ::protobuf_unittest::TestMutualRecursionA*>(
  20460. &::protobuf_unittest::_TestMutualRecursionA_default_instance_);
  20461. }
  20462. inline ::protobuf_unittest::TestMutualRecursionA* TestMutualRecursionB::release_a() {
  20463. // @@protoc_insertion_point(field_release:protobuf_unittest.TestMutualRecursionB.a)
  20464. clear_has_a();
  20465. ::protobuf_unittest::TestMutualRecursionA* temp = a_;
  20466. if (GetArenaNoVirtual() != NULL) {
  20467. temp = ::google::protobuf::internal::DuplicateIfNonNull(temp);
  20468. }
  20469. a_ = NULL;
  20470. return temp;
  20471. }
  20472. inline ::protobuf_unittest::TestMutualRecursionA* TestMutualRecursionB::unsafe_arena_release_a() {
  20473. // @@protoc_insertion_point(field_unsafe_arena_release:protobuf_unittest.TestMutualRecursionB.a)
  20474. clear_has_a();
  20475. ::protobuf_unittest::TestMutualRecursionA* temp = a_;
  20476. a_ = NULL;
  20477. return temp;
  20478. }
  20479. inline ::protobuf_unittest::TestMutualRecursionA* TestMutualRecursionB::mutable_a() {
  20480. set_has_a();
  20481. if (a_ == NULL) {
  20482. auto* p = CreateMaybeMessage<::protobuf_unittest::TestMutualRecursionA>(GetArenaNoVirtual());
  20483. a_ = p;
  20484. }
  20485. // @@protoc_insertion_point(field_mutable:protobuf_unittest.TestMutualRecursionB.a)
  20486. return a_;
  20487. }
  20488. inline void TestMutualRecursionB::set_allocated_a(::protobuf_unittest::TestMutualRecursionA* a) {
  20489. ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
  20490. if (message_arena == NULL) {
  20491. delete a_;
  20492. }
  20493. if (a) {
  20494. ::google::protobuf::Arena* submessage_arena =
  20495. ::google::protobuf::Arena::GetArena(a);
  20496. if (message_arena != submessage_arena) {
  20497. a = ::google::protobuf::internal::GetOwnedMessage(
  20498. message_arena, a, submessage_arena);
  20499. }
  20500. set_has_a();
  20501. } else {
  20502. clear_has_a();
  20503. }
  20504. a_ = a;
  20505. // @@protoc_insertion_point(field_set_allocated:protobuf_unittest.TestMutualRecursionB.a)
  20506. }
  20507. // optional int32 optional_int32 = 2;
  20508. inline bool TestMutualRecursionB::has_optional_int32() const {
  20509. return (_has_bits_[0] & 0x00000002u) != 0;
  20510. }
  20511. inline void TestMutualRecursionB::set_has_optional_int32() {
  20512. _has_bits_[0] |= 0x00000002u;
  20513. }
  20514. inline void TestMutualRecursionB::clear_has_optional_int32() {
  20515. _has_bits_[0] &= ~0x00000002u;
  20516. }
  20517. inline void TestMutualRecursionB::clear_optional_int32() {
  20518. optional_int32_ = 0;
  20519. clear_has_optional_int32();
  20520. }
  20521. inline ::google::protobuf::int32 TestMutualRecursionB::optional_int32() const {
  20522. // @@protoc_insertion_point(field_get:protobuf_unittest.TestMutualRecursionB.optional_int32)
  20523. return optional_int32_;
  20524. }
  20525. inline void TestMutualRecursionB::set_optional_int32(::google::protobuf::int32 value) {
  20526. set_has_optional_int32();
  20527. optional_int32_ = value;
  20528. // @@protoc_insertion_point(field_set:protobuf_unittest.TestMutualRecursionB.optional_int32)
  20529. }
  20530. // -------------------------------------------------------------------
  20531. // TestIsInitialized_SubMessage_SubGroup
  20532. // required int32 i = 2;
  20533. inline bool TestIsInitialized_SubMessage_SubGroup::has_i() const {
  20534. return (_has_bits_[0] & 0x00000001u) != 0;
  20535. }
  20536. inline void TestIsInitialized_SubMessage_SubGroup::set_has_i() {
  20537. _has_bits_[0] |= 0x00000001u;
  20538. }
  20539. inline void TestIsInitialized_SubMessage_SubGroup::clear_has_i() {
  20540. _has_bits_[0] &= ~0x00000001u;
  20541. }
  20542. inline void TestIsInitialized_SubMessage_SubGroup::clear_i() {
  20543. i_ = 0;
  20544. clear_has_i();
  20545. }
  20546. inline ::google::protobuf::int32 TestIsInitialized_SubMessage_SubGroup::i() const {
  20547. // @@protoc_insertion_point(field_get:protobuf_unittest.TestIsInitialized.SubMessage.SubGroup.i)
  20548. return i_;
  20549. }
  20550. inline void TestIsInitialized_SubMessage_SubGroup::set_i(::google::protobuf::int32 value) {
  20551. set_has_i();
  20552. i_ = value;
  20553. // @@protoc_insertion_point(field_set:protobuf_unittest.TestIsInitialized.SubMessage.SubGroup.i)
  20554. }
  20555. // -------------------------------------------------------------------
  20556. // TestIsInitialized_SubMessage
  20557. // optional group SubGroup = 1 { ... };
  20558. inline bool TestIsInitialized_SubMessage::has_subgroup() const {
  20559. return (_has_bits_[0] & 0x00000001u) != 0;
  20560. }
  20561. inline void TestIsInitialized_SubMessage::set_has_subgroup() {
  20562. _has_bits_[0] |= 0x00000001u;
  20563. }
  20564. inline void TestIsInitialized_SubMessage::clear_has_subgroup() {
  20565. _has_bits_[0] &= ~0x00000001u;
  20566. }
  20567. inline void TestIsInitialized_SubMessage::clear_subgroup() {
  20568. if (subgroup_ != NULL) subgroup_->Clear();
  20569. clear_has_subgroup();
  20570. }
  20571. inline const ::protobuf_unittest::TestIsInitialized_SubMessage_SubGroup& TestIsInitialized_SubMessage::_internal_subgroup() const {
  20572. return *subgroup_;
  20573. }
  20574. inline const ::protobuf_unittest::TestIsInitialized_SubMessage_SubGroup& TestIsInitialized_SubMessage::subgroup() const {
  20575. const ::protobuf_unittest::TestIsInitialized_SubMessage_SubGroup* p = subgroup_;
  20576. // @@protoc_insertion_point(field_get:protobuf_unittest.TestIsInitialized.SubMessage.subgroup)
  20577. return p != NULL ? *p : *reinterpret_cast<const ::protobuf_unittest::TestIsInitialized_SubMessage_SubGroup*>(
  20578. &::protobuf_unittest::_TestIsInitialized_SubMessage_SubGroup_default_instance_);
  20579. }
  20580. inline ::protobuf_unittest::TestIsInitialized_SubMessage_SubGroup* TestIsInitialized_SubMessage::release_subgroup() {
  20581. // @@protoc_insertion_point(field_release:protobuf_unittest.TestIsInitialized.SubMessage.subgroup)
  20582. clear_has_subgroup();
  20583. ::protobuf_unittest::TestIsInitialized_SubMessage_SubGroup* temp = subgroup_;
  20584. if (GetArenaNoVirtual() != NULL) {
  20585. temp = ::google::protobuf::internal::DuplicateIfNonNull(temp);
  20586. }
  20587. subgroup_ = NULL;
  20588. return temp;
  20589. }
  20590. inline ::protobuf_unittest::TestIsInitialized_SubMessage_SubGroup* TestIsInitialized_SubMessage::unsafe_arena_release_subgroup() {
  20591. // @@protoc_insertion_point(field_unsafe_arena_release:protobuf_unittest.TestIsInitialized.SubMessage.subgroup)
  20592. clear_has_subgroup();
  20593. ::protobuf_unittest::TestIsInitialized_SubMessage_SubGroup* temp = subgroup_;
  20594. subgroup_ = NULL;
  20595. return temp;
  20596. }
  20597. inline ::protobuf_unittest::TestIsInitialized_SubMessage_SubGroup* TestIsInitialized_SubMessage::mutable_subgroup() {
  20598. set_has_subgroup();
  20599. if (subgroup_ == NULL) {
  20600. auto* p = CreateMaybeMessage<::protobuf_unittest::TestIsInitialized_SubMessage_SubGroup>(GetArenaNoVirtual());
  20601. subgroup_ = p;
  20602. }
  20603. // @@protoc_insertion_point(field_mutable:protobuf_unittest.TestIsInitialized.SubMessage.subgroup)
  20604. return subgroup_;
  20605. }
  20606. inline void TestIsInitialized_SubMessage::set_allocated_subgroup(::protobuf_unittest::TestIsInitialized_SubMessage_SubGroup* subgroup) {
  20607. ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
  20608. if (message_arena == NULL) {
  20609. delete subgroup_;
  20610. }
  20611. if (subgroup) {
  20612. ::google::protobuf::Arena* submessage_arena =
  20613. ::google::protobuf::Arena::GetArena(subgroup);
  20614. if (message_arena != submessage_arena) {
  20615. subgroup = ::google::protobuf::internal::GetOwnedMessage(
  20616. message_arena, subgroup, submessage_arena);
  20617. }
  20618. set_has_subgroup();
  20619. } else {
  20620. clear_has_subgroup();
  20621. }
  20622. subgroup_ = subgroup;
  20623. // @@protoc_insertion_point(field_set_allocated:protobuf_unittest.TestIsInitialized.SubMessage.subgroup)
  20624. }
  20625. // -------------------------------------------------------------------
  20626. // TestIsInitialized
  20627. // optional .protobuf_unittest.TestIsInitialized.SubMessage sub_message = 1;
  20628. inline bool TestIsInitialized::has_sub_message() const {
  20629. return (_has_bits_[0] & 0x00000001u) != 0;
  20630. }
  20631. inline void TestIsInitialized::set_has_sub_message() {
  20632. _has_bits_[0] |= 0x00000001u;
  20633. }
  20634. inline void TestIsInitialized::clear_has_sub_message() {
  20635. _has_bits_[0] &= ~0x00000001u;
  20636. }
  20637. inline void TestIsInitialized::clear_sub_message() {
  20638. if (sub_message_ != NULL) sub_message_->Clear();
  20639. clear_has_sub_message();
  20640. }
  20641. inline const ::protobuf_unittest::TestIsInitialized_SubMessage& TestIsInitialized::_internal_sub_message() const {
  20642. return *sub_message_;
  20643. }
  20644. inline const ::protobuf_unittest::TestIsInitialized_SubMessage& TestIsInitialized::sub_message() const {
  20645. const ::protobuf_unittest::TestIsInitialized_SubMessage* p = sub_message_;
  20646. // @@protoc_insertion_point(field_get:protobuf_unittest.TestIsInitialized.sub_message)
  20647. return p != NULL ? *p : *reinterpret_cast<const ::protobuf_unittest::TestIsInitialized_SubMessage*>(
  20648. &::protobuf_unittest::_TestIsInitialized_SubMessage_default_instance_);
  20649. }
  20650. inline ::protobuf_unittest::TestIsInitialized_SubMessage* TestIsInitialized::release_sub_message() {
  20651. // @@protoc_insertion_point(field_release:protobuf_unittest.TestIsInitialized.sub_message)
  20652. clear_has_sub_message();
  20653. ::protobuf_unittest::TestIsInitialized_SubMessage* temp = sub_message_;
  20654. if (GetArenaNoVirtual() != NULL) {
  20655. temp = ::google::protobuf::internal::DuplicateIfNonNull(temp);
  20656. }
  20657. sub_message_ = NULL;
  20658. return temp;
  20659. }
  20660. inline ::protobuf_unittest::TestIsInitialized_SubMessage* TestIsInitialized::unsafe_arena_release_sub_message() {
  20661. // @@protoc_insertion_point(field_unsafe_arena_release:protobuf_unittest.TestIsInitialized.sub_message)
  20662. clear_has_sub_message();
  20663. ::protobuf_unittest::TestIsInitialized_SubMessage* temp = sub_message_;
  20664. sub_message_ = NULL;
  20665. return temp;
  20666. }
  20667. inline ::protobuf_unittest::TestIsInitialized_SubMessage* TestIsInitialized::mutable_sub_message() {
  20668. set_has_sub_message();
  20669. if (sub_message_ == NULL) {
  20670. auto* p = CreateMaybeMessage<::protobuf_unittest::TestIsInitialized_SubMessage>(GetArenaNoVirtual());
  20671. sub_message_ = p;
  20672. }
  20673. // @@protoc_insertion_point(field_mutable:protobuf_unittest.TestIsInitialized.sub_message)
  20674. return sub_message_;
  20675. }
  20676. inline void TestIsInitialized::set_allocated_sub_message(::protobuf_unittest::TestIsInitialized_SubMessage* sub_message) {
  20677. ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
  20678. if (message_arena == NULL) {
  20679. delete sub_message_;
  20680. }
  20681. if (sub_message) {
  20682. ::google::protobuf::Arena* submessage_arena =
  20683. ::google::protobuf::Arena::GetArena(sub_message);
  20684. if (message_arena != submessage_arena) {
  20685. sub_message = ::google::protobuf::internal::GetOwnedMessage(
  20686. message_arena, sub_message, submessage_arena);
  20687. }
  20688. set_has_sub_message();
  20689. } else {
  20690. clear_has_sub_message();
  20691. }
  20692. sub_message_ = sub_message;
  20693. // @@protoc_insertion_point(field_set_allocated:protobuf_unittest.TestIsInitialized.sub_message)
  20694. }
  20695. // -------------------------------------------------------------------
  20696. // TestDupFieldNumber_Foo
  20697. // optional int32 a = 1;
  20698. inline bool TestDupFieldNumber_Foo::has_a() const {
  20699. return (_has_bits_[0] & 0x00000001u) != 0;
  20700. }
  20701. inline void TestDupFieldNumber_Foo::set_has_a() {
  20702. _has_bits_[0] |= 0x00000001u;
  20703. }
  20704. inline void TestDupFieldNumber_Foo::clear_has_a() {
  20705. _has_bits_[0] &= ~0x00000001u;
  20706. }
  20707. inline void TestDupFieldNumber_Foo::clear_a() {
  20708. a_ = 0;
  20709. clear_has_a();
  20710. }
  20711. inline ::google::protobuf::int32 TestDupFieldNumber_Foo::a() const {
  20712. // @@protoc_insertion_point(field_get:protobuf_unittest.TestDupFieldNumber.Foo.a)
  20713. return a_;
  20714. }
  20715. inline void TestDupFieldNumber_Foo::set_a(::google::protobuf::int32 value) {
  20716. set_has_a();
  20717. a_ = value;
  20718. // @@protoc_insertion_point(field_set:protobuf_unittest.TestDupFieldNumber.Foo.a)
  20719. }
  20720. // -------------------------------------------------------------------
  20721. // TestDupFieldNumber_Bar
  20722. // optional int32 a = 1;
  20723. inline bool TestDupFieldNumber_Bar::has_a() const {
  20724. return (_has_bits_[0] & 0x00000001u) != 0;
  20725. }
  20726. inline void TestDupFieldNumber_Bar::set_has_a() {
  20727. _has_bits_[0] |= 0x00000001u;
  20728. }
  20729. inline void TestDupFieldNumber_Bar::clear_has_a() {
  20730. _has_bits_[0] &= ~0x00000001u;
  20731. }
  20732. inline void TestDupFieldNumber_Bar::clear_a() {
  20733. a_ = 0;
  20734. clear_has_a();
  20735. }
  20736. inline ::google::protobuf::int32 TestDupFieldNumber_Bar::a() const {
  20737. // @@protoc_insertion_point(field_get:protobuf_unittest.TestDupFieldNumber.Bar.a)
  20738. return a_;
  20739. }
  20740. inline void TestDupFieldNumber_Bar::set_a(::google::protobuf::int32 value) {
  20741. set_has_a();
  20742. a_ = value;
  20743. // @@protoc_insertion_point(field_set:protobuf_unittest.TestDupFieldNumber.Bar.a)
  20744. }
  20745. // -------------------------------------------------------------------
  20746. // TestDupFieldNumber
  20747. // optional int32 a = 1;
  20748. inline bool TestDupFieldNumber::has_a() const {
  20749. return (_has_bits_[0] & 0x00000004u) != 0;
  20750. }
  20751. inline void TestDupFieldNumber::set_has_a() {
  20752. _has_bits_[0] |= 0x00000004u;
  20753. }
  20754. inline void TestDupFieldNumber::clear_has_a() {
  20755. _has_bits_[0] &= ~0x00000004u;
  20756. }
  20757. inline void TestDupFieldNumber::clear_a() {
  20758. a_ = 0;
  20759. clear_has_a();
  20760. }
  20761. inline ::google::protobuf::int32 TestDupFieldNumber::a() const {
  20762. // @@protoc_insertion_point(field_get:protobuf_unittest.TestDupFieldNumber.a)
  20763. return a_;
  20764. }
  20765. inline void TestDupFieldNumber::set_a(::google::protobuf::int32 value) {
  20766. set_has_a();
  20767. a_ = value;
  20768. // @@protoc_insertion_point(field_set:protobuf_unittest.TestDupFieldNumber.a)
  20769. }
  20770. // optional group Foo = 2 { ... };
  20771. inline bool TestDupFieldNumber::has_foo() const {
  20772. return (_has_bits_[0] & 0x00000001u) != 0;
  20773. }
  20774. inline void TestDupFieldNumber::set_has_foo() {
  20775. _has_bits_[0] |= 0x00000001u;
  20776. }
  20777. inline void TestDupFieldNumber::clear_has_foo() {
  20778. _has_bits_[0] &= ~0x00000001u;
  20779. }
  20780. inline void TestDupFieldNumber::clear_foo() {
  20781. if (foo_ != NULL) foo_->Clear();
  20782. clear_has_foo();
  20783. }
  20784. inline const ::protobuf_unittest::TestDupFieldNumber_Foo& TestDupFieldNumber::_internal_foo() const {
  20785. return *foo_;
  20786. }
  20787. inline const ::protobuf_unittest::TestDupFieldNumber_Foo& TestDupFieldNumber::foo() const {
  20788. const ::protobuf_unittest::TestDupFieldNumber_Foo* p = foo_;
  20789. // @@protoc_insertion_point(field_get:protobuf_unittest.TestDupFieldNumber.foo)
  20790. return p != NULL ? *p : *reinterpret_cast<const ::protobuf_unittest::TestDupFieldNumber_Foo*>(
  20791. &::protobuf_unittest::_TestDupFieldNumber_Foo_default_instance_);
  20792. }
  20793. inline ::protobuf_unittest::TestDupFieldNumber_Foo* TestDupFieldNumber::release_foo() {
  20794. // @@protoc_insertion_point(field_release:protobuf_unittest.TestDupFieldNumber.foo)
  20795. clear_has_foo();
  20796. ::protobuf_unittest::TestDupFieldNumber_Foo* temp = foo_;
  20797. if (GetArenaNoVirtual() != NULL) {
  20798. temp = ::google::protobuf::internal::DuplicateIfNonNull(temp);
  20799. }
  20800. foo_ = NULL;
  20801. return temp;
  20802. }
  20803. inline ::protobuf_unittest::TestDupFieldNumber_Foo* TestDupFieldNumber::unsafe_arena_release_foo() {
  20804. // @@protoc_insertion_point(field_unsafe_arena_release:protobuf_unittest.TestDupFieldNumber.foo)
  20805. clear_has_foo();
  20806. ::protobuf_unittest::TestDupFieldNumber_Foo* temp = foo_;
  20807. foo_ = NULL;
  20808. return temp;
  20809. }
  20810. inline ::protobuf_unittest::TestDupFieldNumber_Foo* TestDupFieldNumber::mutable_foo() {
  20811. set_has_foo();
  20812. if (foo_ == NULL) {
  20813. auto* p = CreateMaybeMessage<::protobuf_unittest::TestDupFieldNumber_Foo>(GetArenaNoVirtual());
  20814. foo_ = p;
  20815. }
  20816. // @@protoc_insertion_point(field_mutable:protobuf_unittest.TestDupFieldNumber.foo)
  20817. return foo_;
  20818. }
  20819. inline void TestDupFieldNumber::set_allocated_foo(::protobuf_unittest::TestDupFieldNumber_Foo* foo) {
  20820. ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
  20821. if (message_arena == NULL) {
  20822. delete foo_;
  20823. }
  20824. if (foo) {
  20825. ::google::protobuf::Arena* submessage_arena =
  20826. ::google::protobuf::Arena::GetArena(foo);
  20827. if (message_arena != submessage_arena) {
  20828. foo = ::google::protobuf::internal::GetOwnedMessage(
  20829. message_arena, foo, submessage_arena);
  20830. }
  20831. set_has_foo();
  20832. } else {
  20833. clear_has_foo();
  20834. }
  20835. foo_ = foo;
  20836. // @@protoc_insertion_point(field_set_allocated:protobuf_unittest.TestDupFieldNumber.foo)
  20837. }
  20838. // optional group Bar = 3 { ... };
  20839. inline bool TestDupFieldNumber::has_bar() const {
  20840. return (_has_bits_[0] & 0x00000002u) != 0;
  20841. }
  20842. inline void TestDupFieldNumber::set_has_bar() {
  20843. _has_bits_[0] |= 0x00000002u;
  20844. }
  20845. inline void TestDupFieldNumber::clear_has_bar() {
  20846. _has_bits_[0] &= ~0x00000002u;
  20847. }
  20848. inline void TestDupFieldNumber::clear_bar() {
  20849. if (bar_ != NULL) bar_->Clear();
  20850. clear_has_bar();
  20851. }
  20852. inline const ::protobuf_unittest::TestDupFieldNumber_Bar& TestDupFieldNumber::_internal_bar() const {
  20853. return *bar_;
  20854. }
  20855. inline const ::protobuf_unittest::TestDupFieldNumber_Bar& TestDupFieldNumber::bar() const {
  20856. const ::protobuf_unittest::TestDupFieldNumber_Bar* p = bar_;
  20857. // @@protoc_insertion_point(field_get:protobuf_unittest.TestDupFieldNumber.bar)
  20858. return p != NULL ? *p : *reinterpret_cast<const ::protobuf_unittest::TestDupFieldNumber_Bar*>(
  20859. &::protobuf_unittest::_TestDupFieldNumber_Bar_default_instance_);
  20860. }
  20861. inline ::protobuf_unittest::TestDupFieldNumber_Bar* TestDupFieldNumber::release_bar() {
  20862. // @@protoc_insertion_point(field_release:protobuf_unittest.TestDupFieldNumber.bar)
  20863. clear_has_bar();
  20864. ::protobuf_unittest::TestDupFieldNumber_Bar* temp = bar_;
  20865. if (GetArenaNoVirtual() != NULL) {
  20866. temp = ::google::protobuf::internal::DuplicateIfNonNull(temp);
  20867. }
  20868. bar_ = NULL;
  20869. return temp;
  20870. }
  20871. inline ::protobuf_unittest::TestDupFieldNumber_Bar* TestDupFieldNumber::unsafe_arena_release_bar() {
  20872. // @@protoc_insertion_point(field_unsafe_arena_release:protobuf_unittest.TestDupFieldNumber.bar)
  20873. clear_has_bar();
  20874. ::protobuf_unittest::TestDupFieldNumber_Bar* temp = bar_;
  20875. bar_ = NULL;
  20876. return temp;
  20877. }
  20878. inline ::protobuf_unittest::TestDupFieldNumber_Bar* TestDupFieldNumber::mutable_bar() {
  20879. set_has_bar();
  20880. if (bar_ == NULL) {
  20881. auto* p = CreateMaybeMessage<::protobuf_unittest::TestDupFieldNumber_Bar>(GetArenaNoVirtual());
  20882. bar_ = p;
  20883. }
  20884. // @@protoc_insertion_point(field_mutable:protobuf_unittest.TestDupFieldNumber.bar)
  20885. return bar_;
  20886. }
  20887. inline void TestDupFieldNumber::set_allocated_bar(::protobuf_unittest::TestDupFieldNumber_Bar* bar) {
  20888. ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
  20889. if (message_arena == NULL) {
  20890. delete bar_;
  20891. }
  20892. if (bar) {
  20893. ::google::protobuf::Arena* submessage_arena =
  20894. ::google::protobuf::Arena::GetArena(bar);
  20895. if (message_arena != submessage_arena) {
  20896. bar = ::google::protobuf::internal::GetOwnedMessage(
  20897. message_arena, bar, submessage_arena);
  20898. }
  20899. set_has_bar();
  20900. } else {
  20901. clear_has_bar();
  20902. }
  20903. bar_ = bar;
  20904. // @@protoc_insertion_point(field_set_allocated:protobuf_unittest.TestDupFieldNumber.bar)
  20905. }
  20906. // -------------------------------------------------------------------
  20907. // TestEagerMessage
  20908. // optional .protobuf_unittest.TestAllTypes sub_message = 1 [lazy = false];
  20909. inline bool TestEagerMessage::has_sub_message() const {
  20910. return (_has_bits_[0] & 0x00000001u) != 0;
  20911. }
  20912. inline void TestEagerMessage::set_has_sub_message() {
  20913. _has_bits_[0] |= 0x00000001u;
  20914. }
  20915. inline void TestEagerMessage::clear_has_sub_message() {
  20916. _has_bits_[0] &= ~0x00000001u;
  20917. }
  20918. inline void TestEagerMessage::clear_sub_message() {
  20919. if (sub_message_ != NULL) sub_message_->Clear();
  20920. clear_has_sub_message();
  20921. }
  20922. inline const ::protobuf_unittest::TestAllTypes& TestEagerMessage::_internal_sub_message() const {
  20923. return *sub_message_;
  20924. }
  20925. inline const ::protobuf_unittest::TestAllTypes& TestEagerMessage::sub_message() const {
  20926. const ::protobuf_unittest::TestAllTypes* p = sub_message_;
  20927. // @@protoc_insertion_point(field_get:protobuf_unittest.TestEagerMessage.sub_message)
  20928. return p != NULL ? *p : *reinterpret_cast<const ::protobuf_unittest::TestAllTypes*>(
  20929. &::protobuf_unittest::_TestAllTypes_default_instance_);
  20930. }
  20931. inline ::protobuf_unittest::TestAllTypes* TestEagerMessage::release_sub_message() {
  20932. // @@protoc_insertion_point(field_release:protobuf_unittest.TestEagerMessage.sub_message)
  20933. clear_has_sub_message();
  20934. ::protobuf_unittest::TestAllTypes* temp = sub_message_;
  20935. if (GetArenaNoVirtual() != NULL) {
  20936. temp = ::google::protobuf::internal::DuplicateIfNonNull(temp);
  20937. }
  20938. sub_message_ = NULL;
  20939. return temp;
  20940. }
  20941. inline ::protobuf_unittest::TestAllTypes* TestEagerMessage::unsafe_arena_release_sub_message() {
  20942. // @@protoc_insertion_point(field_unsafe_arena_release:protobuf_unittest.TestEagerMessage.sub_message)
  20943. clear_has_sub_message();
  20944. ::protobuf_unittest::TestAllTypes* temp = sub_message_;
  20945. sub_message_ = NULL;
  20946. return temp;
  20947. }
  20948. inline ::protobuf_unittest::TestAllTypes* TestEagerMessage::mutable_sub_message() {
  20949. set_has_sub_message();
  20950. if (sub_message_ == NULL) {
  20951. auto* p = CreateMaybeMessage<::protobuf_unittest::TestAllTypes>(GetArenaNoVirtual());
  20952. sub_message_ = p;
  20953. }
  20954. // @@protoc_insertion_point(field_mutable:protobuf_unittest.TestEagerMessage.sub_message)
  20955. return sub_message_;
  20956. }
  20957. inline void TestEagerMessage::set_allocated_sub_message(::protobuf_unittest::TestAllTypes* sub_message) {
  20958. ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
  20959. if (message_arena == NULL) {
  20960. delete sub_message_;
  20961. }
  20962. if (sub_message) {
  20963. ::google::protobuf::Arena* submessage_arena =
  20964. ::google::protobuf::Arena::GetArena(sub_message);
  20965. if (message_arena != submessage_arena) {
  20966. sub_message = ::google::protobuf::internal::GetOwnedMessage(
  20967. message_arena, sub_message, submessage_arena);
  20968. }
  20969. set_has_sub_message();
  20970. } else {
  20971. clear_has_sub_message();
  20972. }
  20973. sub_message_ = sub_message;
  20974. // @@protoc_insertion_point(field_set_allocated:protobuf_unittest.TestEagerMessage.sub_message)
  20975. }
  20976. // -------------------------------------------------------------------
  20977. // TestLazyMessage
  20978. // optional .protobuf_unittest.TestAllTypes sub_message = 1 [lazy = true];
  20979. inline bool TestLazyMessage::has_sub_message() const {
  20980. return (_has_bits_[0] & 0x00000001u) != 0;
  20981. }
  20982. inline void TestLazyMessage::set_has_sub_message() {
  20983. _has_bits_[0] |= 0x00000001u;
  20984. }
  20985. inline void TestLazyMessage::clear_has_sub_message() {
  20986. _has_bits_[0] &= ~0x00000001u;
  20987. }
  20988. inline void TestLazyMessage::clear_sub_message() {
  20989. if (sub_message_ != NULL) sub_message_->Clear();
  20990. clear_has_sub_message();
  20991. }
  20992. inline const ::protobuf_unittest::TestAllTypes& TestLazyMessage::_internal_sub_message() const {
  20993. return *sub_message_;
  20994. }
  20995. inline const ::protobuf_unittest::TestAllTypes& TestLazyMessage::sub_message() const {
  20996. const ::protobuf_unittest::TestAllTypes* p = sub_message_;
  20997. // @@protoc_insertion_point(field_get:protobuf_unittest.TestLazyMessage.sub_message)
  20998. return p != NULL ? *p : *reinterpret_cast<const ::protobuf_unittest::TestAllTypes*>(
  20999. &::protobuf_unittest::_TestAllTypes_default_instance_);
  21000. }
  21001. inline ::protobuf_unittest::TestAllTypes* TestLazyMessage::release_sub_message() {
  21002. // @@protoc_insertion_point(field_release:protobuf_unittest.TestLazyMessage.sub_message)
  21003. clear_has_sub_message();
  21004. ::protobuf_unittest::TestAllTypes* temp = sub_message_;
  21005. if (GetArenaNoVirtual() != NULL) {
  21006. temp = ::google::protobuf::internal::DuplicateIfNonNull(temp);
  21007. }
  21008. sub_message_ = NULL;
  21009. return temp;
  21010. }
  21011. inline ::protobuf_unittest::TestAllTypes* TestLazyMessage::unsafe_arena_release_sub_message() {
  21012. // @@protoc_insertion_point(field_unsafe_arena_release:protobuf_unittest.TestLazyMessage.sub_message)
  21013. clear_has_sub_message();
  21014. ::protobuf_unittest::TestAllTypes* temp = sub_message_;
  21015. sub_message_ = NULL;
  21016. return temp;
  21017. }
  21018. inline ::protobuf_unittest::TestAllTypes* TestLazyMessage::mutable_sub_message() {
  21019. set_has_sub_message();
  21020. if (sub_message_ == NULL) {
  21021. auto* p = CreateMaybeMessage<::protobuf_unittest::TestAllTypes>(GetArenaNoVirtual());
  21022. sub_message_ = p;
  21023. }
  21024. // @@protoc_insertion_point(field_mutable:protobuf_unittest.TestLazyMessage.sub_message)
  21025. return sub_message_;
  21026. }
  21027. inline void TestLazyMessage::set_allocated_sub_message(::protobuf_unittest::TestAllTypes* sub_message) {
  21028. ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
  21029. if (message_arena == NULL) {
  21030. delete sub_message_;
  21031. }
  21032. if (sub_message) {
  21033. ::google::protobuf::Arena* submessage_arena =
  21034. ::google::protobuf::Arena::GetArena(sub_message);
  21035. if (message_arena != submessage_arena) {
  21036. sub_message = ::google::protobuf::internal::GetOwnedMessage(
  21037. message_arena, sub_message, submessage_arena);
  21038. }
  21039. set_has_sub_message();
  21040. } else {
  21041. clear_has_sub_message();
  21042. }
  21043. sub_message_ = sub_message;
  21044. // @@protoc_insertion_point(field_set_allocated:protobuf_unittest.TestLazyMessage.sub_message)
  21045. }
  21046. // -------------------------------------------------------------------
  21047. // TestNestedMessageHasBits_NestedMessage
  21048. // repeated int32 nestedmessage_repeated_int32 = 1;
  21049. inline int TestNestedMessageHasBits_NestedMessage::nestedmessage_repeated_int32_size() const {
  21050. return nestedmessage_repeated_int32_.size();
  21051. }
  21052. inline void TestNestedMessageHasBits_NestedMessage::clear_nestedmessage_repeated_int32() {
  21053. nestedmessage_repeated_int32_.Clear();
  21054. }
  21055. inline ::google::protobuf::int32 TestNestedMessageHasBits_NestedMessage::nestedmessage_repeated_int32(int index) const {
  21056. // @@protoc_insertion_point(field_get:protobuf_unittest.TestNestedMessageHasBits.NestedMessage.nestedmessage_repeated_int32)
  21057. return nestedmessage_repeated_int32_.Get(index);
  21058. }
  21059. inline void TestNestedMessageHasBits_NestedMessage::set_nestedmessage_repeated_int32(int index, ::google::protobuf::int32 value) {
  21060. nestedmessage_repeated_int32_.Set(index, value);
  21061. // @@protoc_insertion_point(field_set:protobuf_unittest.TestNestedMessageHasBits.NestedMessage.nestedmessage_repeated_int32)
  21062. }
  21063. inline void TestNestedMessageHasBits_NestedMessage::add_nestedmessage_repeated_int32(::google::protobuf::int32 value) {
  21064. nestedmessage_repeated_int32_.Add(value);
  21065. // @@protoc_insertion_point(field_add:protobuf_unittest.TestNestedMessageHasBits.NestedMessage.nestedmessage_repeated_int32)
  21066. }
  21067. inline const ::google::protobuf::RepeatedField< ::google::protobuf::int32 >&
  21068. TestNestedMessageHasBits_NestedMessage::nestedmessage_repeated_int32() const {
  21069. // @@protoc_insertion_point(field_list:protobuf_unittest.TestNestedMessageHasBits.NestedMessage.nestedmessage_repeated_int32)
  21070. return nestedmessage_repeated_int32_;
  21071. }
  21072. inline ::google::protobuf::RepeatedField< ::google::protobuf::int32 >*
  21073. TestNestedMessageHasBits_NestedMessage::mutable_nestedmessage_repeated_int32() {
  21074. // @@protoc_insertion_point(field_mutable_list:protobuf_unittest.TestNestedMessageHasBits.NestedMessage.nestedmessage_repeated_int32)
  21075. return &nestedmessage_repeated_int32_;
  21076. }
  21077. // repeated .protobuf_unittest.ForeignMessage nestedmessage_repeated_foreignmessage = 2;
  21078. inline int TestNestedMessageHasBits_NestedMessage::nestedmessage_repeated_foreignmessage_size() const {
  21079. return nestedmessage_repeated_foreignmessage_.size();
  21080. }
  21081. inline void TestNestedMessageHasBits_NestedMessage::clear_nestedmessage_repeated_foreignmessage() {
  21082. nestedmessage_repeated_foreignmessage_.Clear();
  21083. }
  21084. inline ::protobuf_unittest::ForeignMessage* TestNestedMessageHasBits_NestedMessage::mutable_nestedmessage_repeated_foreignmessage(int index) {
  21085. // @@protoc_insertion_point(field_mutable:protobuf_unittest.TestNestedMessageHasBits.NestedMessage.nestedmessage_repeated_foreignmessage)
  21086. return nestedmessage_repeated_foreignmessage_.Mutable(index);
  21087. }
  21088. inline ::google::protobuf::RepeatedPtrField< ::protobuf_unittest::ForeignMessage >*
  21089. TestNestedMessageHasBits_NestedMessage::mutable_nestedmessage_repeated_foreignmessage() {
  21090. // @@protoc_insertion_point(field_mutable_list:protobuf_unittest.TestNestedMessageHasBits.NestedMessage.nestedmessage_repeated_foreignmessage)
  21091. return &nestedmessage_repeated_foreignmessage_;
  21092. }
  21093. inline const ::protobuf_unittest::ForeignMessage& TestNestedMessageHasBits_NestedMessage::nestedmessage_repeated_foreignmessage(int index) const {
  21094. // @@protoc_insertion_point(field_get:protobuf_unittest.TestNestedMessageHasBits.NestedMessage.nestedmessage_repeated_foreignmessage)
  21095. return nestedmessage_repeated_foreignmessage_.Get(index);
  21096. }
  21097. inline ::protobuf_unittest::ForeignMessage* TestNestedMessageHasBits_NestedMessage::add_nestedmessage_repeated_foreignmessage() {
  21098. // @@protoc_insertion_point(field_add:protobuf_unittest.TestNestedMessageHasBits.NestedMessage.nestedmessage_repeated_foreignmessage)
  21099. return nestedmessage_repeated_foreignmessage_.Add();
  21100. }
  21101. inline const ::google::protobuf::RepeatedPtrField< ::protobuf_unittest::ForeignMessage >&
  21102. TestNestedMessageHasBits_NestedMessage::nestedmessage_repeated_foreignmessage() const {
  21103. // @@protoc_insertion_point(field_list:protobuf_unittest.TestNestedMessageHasBits.NestedMessage.nestedmessage_repeated_foreignmessage)
  21104. return nestedmessage_repeated_foreignmessage_;
  21105. }
  21106. // -------------------------------------------------------------------
  21107. // TestNestedMessageHasBits
  21108. // optional .protobuf_unittest.TestNestedMessageHasBits.NestedMessage optional_nested_message = 1;
  21109. inline bool TestNestedMessageHasBits::has_optional_nested_message() const {
  21110. return (_has_bits_[0] & 0x00000001u) != 0;
  21111. }
  21112. inline void TestNestedMessageHasBits::set_has_optional_nested_message() {
  21113. _has_bits_[0] |= 0x00000001u;
  21114. }
  21115. inline void TestNestedMessageHasBits::clear_has_optional_nested_message() {
  21116. _has_bits_[0] &= ~0x00000001u;
  21117. }
  21118. inline void TestNestedMessageHasBits::clear_optional_nested_message() {
  21119. if (optional_nested_message_ != NULL) optional_nested_message_->Clear();
  21120. clear_has_optional_nested_message();
  21121. }
  21122. inline const ::protobuf_unittest::TestNestedMessageHasBits_NestedMessage& TestNestedMessageHasBits::_internal_optional_nested_message() const {
  21123. return *optional_nested_message_;
  21124. }
  21125. inline const ::protobuf_unittest::TestNestedMessageHasBits_NestedMessage& TestNestedMessageHasBits::optional_nested_message() const {
  21126. const ::protobuf_unittest::TestNestedMessageHasBits_NestedMessage* p = optional_nested_message_;
  21127. // @@protoc_insertion_point(field_get:protobuf_unittest.TestNestedMessageHasBits.optional_nested_message)
  21128. return p != NULL ? *p : *reinterpret_cast<const ::protobuf_unittest::TestNestedMessageHasBits_NestedMessage*>(
  21129. &::protobuf_unittest::_TestNestedMessageHasBits_NestedMessage_default_instance_);
  21130. }
  21131. inline ::protobuf_unittest::TestNestedMessageHasBits_NestedMessage* TestNestedMessageHasBits::release_optional_nested_message() {
  21132. // @@protoc_insertion_point(field_release:protobuf_unittest.TestNestedMessageHasBits.optional_nested_message)
  21133. clear_has_optional_nested_message();
  21134. ::protobuf_unittest::TestNestedMessageHasBits_NestedMessage* temp = optional_nested_message_;
  21135. if (GetArenaNoVirtual() != NULL) {
  21136. temp = ::google::protobuf::internal::DuplicateIfNonNull(temp);
  21137. }
  21138. optional_nested_message_ = NULL;
  21139. return temp;
  21140. }
  21141. inline ::protobuf_unittest::TestNestedMessageHasBits_NestedMessage* TestNestedMessageHasBits::unsafe_arena_release_optional_nested_message() {
  21142. // @@protoc_insertion_point(field_unsafe_arena_release:protobuf_unittest.TestNestedMessageHasBits.optional_nested_message)
  21143. clear_has_optional_nested_message();
  21144. ::protobuf_unittest::TestNestedMessageHasBits_NestedMessage* temp = optional_nested_message_;
  21145. optional_nested_message_ = NULL;
  21146. return temp;
  21147. }
  21148. inline ::protobuf_unittest::TestNestedMessageHasBits_NestedMessage* TestNestedMessageHasBits::mutable_optional_nested_message() {
  21149. set_has_optional_nested_message();
  21150. if (optional_nested_message_ == NULL) {
  21151. auto* p = CreateMaybeMessage<::protobuf_unittest::TestNestedMessageHasBits_NestedMessage>(GetArenaNoVirtual());
  21152. optional_nested_message_ = p;
  21153. }
  21154. // @@protoc_insertion_point(field_mutable:protobuf_unittest.TestNestedMessageHasBits.optional_nested_message)
  21155. return optional_nested_message_;
  21156. }
  21157. inline void TestNestedMessageHasBits::set_allocated_optional_nested_message(::protobuf_unittest::TestNestedMessageHasBits_NestedMessage* optional_nested_message) {
  21158. ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
  21159. if (message_arena == NULL) {
  21160. delete optional_nested_message_;
  21161. }
  21162. if (optional_nested_message) {
  21163. ::google::protobuf::Arena* submessage_arena =
  21164. ::google::protobuf::Arena::GetArena(optional_nested_message);
  21165. if (message_arena != submessage_arena) {
  21166. optional_nested_message = ::google::protobuf::internal::GetOwnedMessage(
  21167. message_arena, optional_nested_message, submessage_arena);
  21168. }
  21169. set_has_optional_nested_message();
  21170. } else {
  21171. clear_has_optional_nested_message();
  21172. }
  21173. optional_nested_message_ = optional_nested_message;
  21174. // @@protoc_insertion_point(field_set_allocated:protobuf_unittest.TestNestedMessageHasBits.optional_nested_message)
  21175. }
  21176. // -------------------------------------------------------------------
  21177. // TestCamelCaseFieldNames
  21178. // optional int32 PrimitiveField = 1;
  21179. inline bool TestCamelCaseFieldNames::has_primitivefield() const {
  21180. return (_has_bits_[0] & 0x00000010u) != 0;
  21181. }
  21182. inline void TestCamelCaseFieldNames::set_has_primitivefield() {
  21183. _has_bits_[0] |= 0x00000010u;
  21184. }
  21185. inline void TestCamelCaseFieldNames::clear_has_primitivefield() {
  21186. _has_bits_[0] &= ~0x00000010u;
  21187. }
  21188. inline void TestCamelCaseFieldNames::clear_primitivefield() {
  21189. primitivefield_ = 0;
  21190. clear_has_primitivefield();
  21191. }
  21192. inline ::google::protobuf::int32 TestCamelCaseFieldNames::primitivefield() const {
  21193. // @@protoc_insertion_point(field_get:protobuf_unittest.TestCamelCaseFieldNames.PrimitiveField)
  21194. return primitivefield_;
  21195. }
  21196. inline void TestCamelCaseFieldNames::set_primitivefield(::google::protobuf::int32 value) {
  21197. set_has_primitivefield();
  21198. primitivefield_ = value;
  21199. // @@protoc_insertion_point(field_set:protobuf_unittest.TestCamelCaseFieldNames.PrimitiveField)
  21200. }
  21201. // optional string StringField = 2;
  21202. inline bool TestCamelCaseFieldNames::has_stringfield() const {
  21203. return (_has_bits_[0] & 0x00000001u) != 0;
  21204. }
  21205. inline void TestCamelCaseFieldNames::set_has_stringfield() {
  21206. _has_bits_[0] |= 0x00000001u;
  21207. }
  21208. inline void TestCamelCaseFieldNames::clear_has_stringfield() {
  21209. _has_bits_[0] &= ~0x00000001u;
  21210. }
  21211. inline void TestCamelCaseFieldNames::clear_stringfield() {
  21212. stringfield_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
  21213. clear_has_stringfield();
  21214. }
  21215. inline const ::std::string& TestCamelCaseFieldNames::stringfield() const {
  21216. // @@protoc_insertion_point(field_get:protobuf_unittest.TestCamelCaseFieldNames.StringField)
  21217. return stringfield_.Get();
  21218. }
  21219. inline void TestCamelCaseFieldNames::set_stringfield(const ::std::string& value) {
  21220. set_has_stringfield();
  21221. stringfield_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual());
  21222. // @@protoc_insertion_point(field_set:protobuf_unittest.TestCamelCaseFieldNames.StringField)
  21223. }
  21224. #if LANG_CXX11
  21225. inline void TestCamelCaseFieldNames::set_stringfield(::std::string&& value) {
  21226. set_has_stringfield();
  21227. stringfield_.Set(
  21228. &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual());
  21229. // @@protoc_insertion_point(field_set_rvalue:protobuf_unittest.TestCamelCaseFieldNames.StringField)
  21230. }
  21231. #endif
  21232. inline void TestCamelCaseFieldNames::set_stringfield(const char* value) {
  21233. GOOGLE_DCHECK(value != NULL);
  21234. set_has_stringfield();
  21235. stringfield_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value),
  21236. GetArenaNoVirtual());
  21237. // @@protoc_insertion_point(field_set_char:protobuf_unittest.TestCamelCaseFieldNames.StringField)
  21238. }
  21239. inline void TestCamelCaseFieldNames::set_stringfield(const char* value,
  21240. size_t size) {
  21241. set_has_stringfield();
  21242. stringfield_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(
  21243. reinterpret_cast<const char*>(value), size), GetArenaNoVirtual());
  21244. // @@protoc_insertion_point(field_set_pointer:protobuf_unittest.TestCamelCaseFieldNames.StringField)
  21245. }
  21246. inline ::std::string* TestCamelCaseFieldNames::mutable_stringfield() {
  21247. set_has_stringfield();
  21248. // @@protoc_insertion_point(field_mutable:protobuf_unittest.TestCamelCaseFieldNames.StringField)
  21249. return stringfield_.Mutable(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
  21250. }
  21251. inline ::std::string* TestCamelCaseFieldNames::release_stringfield() {
  21252. // @@protoc_insertion_point(field_release:protobuf_unittest.TestCamelCaseFieldNames.StringField)
  21253. if (!has_stringfield()) {
  21254. return NULL;
  21255. }
  21256. clear_has_stringfield();
  21257. return stringfield_.ReleaseNonDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
  21258. }
  21259. inline void TestCamelCaseFieldNames::set_allocated_stringfield(::std::string* stringfield) {
  21260. if (stringfield != NULL) {
  21261. set_has_stringfield();
  21262. } else {
  21263. clear_has_stringfield();
  21264. }
  21265. stringfield_.SetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), stringfield,
  21266. GetArenaNoVirtual());
  21267. // @@protoc_insertion_point(field_set_allocated:protobuf_unittest.TestCamelCaseFieldNames.StringField)
  21268. }
  21269. inline ::std::string* TestCamelCaseFieldNames::unsafe_arena_release_stringfield() {
  21270. // @@protoc_insertion_point(field_unsafe_arena_release:protobuf_unittest.TestCamelCaseFieldNames.StringField)
  21271. GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
  21272. clear_has_stringfield();
  21273. return stringfield_.UnsafeArenaRelease(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  21274. GetArenaNoVirtual());
  21275. }
  21276. inline void TestCamelCaseFieldNames::unsafe_arena_set_allocated_stringfield(
  21277. ::std::string* stringfield) {
  21278. GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
  21279. if (stringfield != NULL) {
  21280. set_has_stringfield();
  21281. } else {
  21282. clear_has_stringfield();
  21283. }
  21284. stringfield_.UnsafeArenaSetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  21285. stringfield, GetArenaNoVirtual());
  21286. // @@protoc_insertion_point(field_unsafe_arena_set_allocated:protobuf_unittest.TestCamelCaseFieldNames.StringField)
  21287. }
  21288. // optional .protobuf_unittest.ForeignEnum EnumField = 3;
  21289. inline bool TestCamelCaseFieldNames::has_enumfield() const {
  21290. return (_has_bits_[0] & 0x00000020u) != 0;
  21291. }
  21292. inline void TestCamelCaseFieldNames::set_has_enumfield() {
  21293. _has_bits_[0] |= 0x00000020u;
  21294. }
  21295. inline void TestCamelCaseFieldNames::clear_has_enumfield() {
  21296. _has_bits_[0] &= ~0x00000020u;
  21297. }
  21298. inline void TestCamelCaseFieldNames::clear_enumfield() {
  21299. enumfield_ = 4;
  21300. clear_has_enumfield();
  21301. }
  21302. inline ::protobuf_unittest::ForeignEnum TestCamelCaseFieldNames::enumfield() const {
  21303. // @@protoc_insertion_point(field_get:protobuf_unittest.TestCamelCaseFieldNames.EnumField)
  21304. return static_cast< ::protobuf_unittest::ForeignEnum >(enumfield_);
  21305. }
  21306. inline void TestCamelCaseFieldNames::set_enumfield(::protobuf_unittest::ForeignEnum value) {
  21307. assert(::protobuf_unittest::ForeignEnum_IsValid(value));
  21308. set_has_enumfield();
  21309. enumfield_ = value;
  21310. // @@protoc_insertion_point(field_set:protobuf_unittest.TestCamelCaseFieldNames.EnumField)
  21311. }
  21312. // optional .protobuf_unittest.ForeignMessage MessageField = 4;
  21313. inline bool TestCamelCaseFieldNames::has_messagefield() const {
  21314. return (_has_bits_[0] & 0x00000008u) != 0;
  21315. }
  21316. inline void TestCamelCaseFieldNames::set_has_messagefield() {
  21317. _has_bits_[0] |= 0x00000008u;
  21318. }
  21319. inline void TestCamelCaseFieldNames::clear_has_messagefield() {
  21320. _has_bits_[0] &= ~0x00000008u;
  21321. }
  21322. inline void TestCamelCaseFieldNames::clear_messagefield() {
  21323. if (messagefield_ != NULL) messagefield_->Clear();
  21324. clear_has_messagefield();
  21325. }
  21326. inline const ::protobuf_unittest::ForeignMessage& TestCamelCaseFieldNames::_internal_messagefield() const {
  21327. return *messagefield_;
  21328. }
  21329. inline const ::protobuf_unittest::ForeignMessage& TestCamelCaseFieldNames::messagefield() const {
  21330. const ::protobuf_unittest::ForeignMessage* p = messagefield_;
  21331. // @@protoc_insertion_point(field_get:protobuf_unittest.TestCamelCaseFieldNames.MessageField)
  21332. return p != NULL ? *p : *reinterpret_cast<const ::protobuf_unittest::ForeignMessage*>(
  21333. &::protobuf_unittest::_ForeignMessage_default_instance_);
  21334. }
  21335. inline ::protobuf_unittest::ForeignMessage* TestCamelCaseFieldNames::release_messagefield() {
  21336. // @@protoc_insertion_point(field_release:protobuf_unittest.TestCamelCaseFieldNames.MessageField)
  21337. clear_has_messagefield();
  21338. ::protobuf_unittest::ForeignMessage* temp = messagefield_;
  21339. if (GetArenaNoVirtual() != NULL) {
  21340. temp = ::google::protobuf::internal::DuplicateIfNonNull(temp);
  21341. }
  21342. messagefield_ = NULL;
  21343. return temp;
  21344. }
  21345. inline ::protobuf_unittest::ForeignMessage* TestCamelCaseFieldNames::unsafe_arena_release_messagefield() {
  21346. // @@protoc_insertion_point(field_unsafe_arena_release:protobuf_unittest.TestCamelCaseFieldNames.MessageField)
  21347. clear_has_messagefield();
  21348. ::protobuf_unittest::ForeignMessage* temp = messagefield_;
  21349. messagefield_ = NULL;
  21350. return temp;
  21351. }
  21352. inline ::protobuf_unittest::ForeignMessage* TestCamelCaseFieldNames::mutable_messagefield() {
  21353. set_has_messagefield();
  21354. if (messagefield_ == NULL) {
  21355. auto* p = CreateMaybeMessage<::protobuf_unittest::ForeignMessage>(GetArenaNoVirtual());
  21356. messagefield_ = p;
  21357. }
  21358. // @@protoc_insertion_point(field_mutable:protobuf_unittest.TestCamelCaseFieldNames.MessageField)
  21359. return messagefield_;
  21360. }
  21361. inline void TestCamelCaseFieldNames::set_allocated_messagefield(::protobuf_unittest::ForeignMessage* messagefield) {
  21362. ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
  21363. if (message_arena == NULL) {
  21364. delete messagefield_;
  21365. }
  21366. if (messagefield) {
  21367. ::google::protobuf::Arena* submessage_arena =
  21368. ::google::protobuf::Arena::GetArena(messagefield);
  21369. if (message_arena != submessage_arena) {
  21370. messagefield = ::google::protobuf::internal::GetOwnedMessage(
  21371. message_arena, messagefield, submessage_arena);
  21372. }
  21373. set_has_messagefield();
  21374. } else {
  21375. clear_has_messagefield();
  21376. }
  21377. messagefield_ = messagefield;
  21378. // @@protoc_insertion_point(field_set_allocated:protobuf_unittest.TestCamelCaseFieldNames.MessageField)
  21379. }
  21380. // optional string StringPieceField = 5 [ctype = STRING_PIECE];
  21381. inline bool TestCamelCaseFieldNames::has_stringpiecefield() const {
  21382. return (_has_bits_[0] & 0x00000002u) != 0;
  21383. }
  21384. inline void TestCamelCaseFieldNames::set_has_stringpiecefield() {
  21385. _has_bits_[0] |= 0x00000002u;
  21386. }
  21387. inline void TestCamelCaseFieldNames::clear_has_stringpiecefield() {
  21388. _has_bits_[0] &= ~0x00000002u;
  21389. }
  21390. inline void TestCamelCaseFieldNames::clear_stringpiecefield() {
  21391. stringpiecefield_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
  21392. clear_has_stringpiecefield();
  21393. }
  21394. inline const ::std::string& TestCamelCaseFieldNames::stringpiecefield() const {
  21395. // @@protoc_insertion_point(field_get:protobuf_unittest.TestCamelCaseFieldNames.StringPieceField)
  21396. return stringpiecefield_.Get();
  21397. }
  21398. inline void TestCamelCaseFieldNames::set_stringpiecefield(const ::std::string& value) {
  21399. set_has_stringpiecefield();
  21400. stringpiecefield_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual());
  21401. // @@protoc_insertion_point(field_set:protobuf_unittest.TestCamelCaseFieldNames.StringPieceField)
  21402. }
  21403. #if LANG_CXX11
  21404. inline void TestCamelCaseFieldNames::set_stringpiecefield(::std::string&& value) {
  21405. set_has_stringpiecefield();
  21406. stringpiecefield_.Set(
  21407. &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual());
  21408. // @@protoc_insertion_point(field_set_rvalue:protobuf_unittest.TestCamelCaseFieldNames.StringPieceField)
  21409. }
  21410. #endif
  21411. inline void TestCamelCaseFieldNames::set_stringpiecefield(const char* value) {
  21412. GOOGLE_DCHECK(value != NULL);
  21413. set_has_stringpiecefield();
  21414. stringpiecefield_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value),
  21415. GetArenaNoVirtual());
  21416. // @@protoc_insertion_point(field_set_char:protobuf_unittest.TestCamelCaseFieldNames.StringPieceField)
  21417. }
  21418. inline void TestCamelCaseFieldNames::set_stringpiecefield(const char* value,
  21419. size_t size) {
  21420. set_has_stringpiecefield();
  21421. stringpiecefield_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(
  21422. reinterpret_cast<const char*>(value), size), GetArenaNoVirtual());
  21423. // @@protoc_insertion_point(field_set_pointer:protobuf_unittest.TestCamelCaseFieldNames.StringPieceField)
  21424. }
  21425. inline ::std::string* TestCamelCaseFieldNames::mutable_stringpiecefield() {
  21426. set_has_stringpiecefield();
  21427. // @@protoc_insertion_point(field_mutable:protobuf_unittest.TestCamelCaseFieldNames.StringPieceField)
  21428. return stringpiecefield_.Mutable(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
  21429. }
  21430. inline ::std::string* TestCamelCaseFieldNames::release_stringpiecefield() {
  21431. // @@protoc_insertion_point(field_release:protobuf_unittest.TestCamelCaseFieldNames.StringPieceField)
  21432. if (!has_stringpiecefield()) {
  21433. return NULL;
  21434. }
  21435. clear_has_stringpiecefield();
  21436. return stringpiecefield_.ReleaseNonDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
  21437. }
  21438. inline void TestCamelCaseFieldNames::set_allocated_stringpiecefield(::std::string* stringpiecefield) {
  21439. if (stringpiecefield != NULL) {
  21440. set_has_stringpiecefield();
  21441. } else {
  21442. clear_has_stringpiecefield();
  21443. }
  21444. stringpiecefield_.SetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), stringpiecefield,
  21445. GetArenaNoVirtual());
  21446. // @@protoc_insertion_point(field_set_allocated:protobuf_unittest.TestCamelCaseFieldNames.StringPieceField)
  21447. }
  21448. inline ::std::string* TestCamelCaseFieldNames::unsafe_arena_release_stringpiecefield() {
  21449. // @@protoc_insertion_point(field_unsafe_arena_release:protobuf_unittest.TestCamelCaseFieldNames.StringPieceField)
  21450. GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
  21451. clear_has_stringpiecefield();
  21452. return stringpiecefield_.UnsafeArenaRelease(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  21453. GetArenaNoVirtual());
  21454. }
  21455. inline void TestCamelCaseFieldNames::unsafe_arena_set_allocated_stringpiecefield(
  21456. ::std::string* stringpiecefield) {
  21457. GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
  21458. if (stringpiecefield != NULL) {
  21459. set_has_stringpiecefield();
  21460. } else {
  21461. clear_has_stringpiecefield();
  21462. }
  21463. stringpiecefield_.UnsafeArenaSetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  21464. stringpiecefield, GetArenaNoVirtual());
  21465. // @@protoc_insertion_point(field_unsafe_arena_set_allocated:protobuf_unittest.TestCamelCaseFieldNames.StringPieceField)
  21466. }
  21467. // optional string CordField = 6 [ctype = CORD];
  21468. inline bool TestCamelCaseFieldNames::has_cordfield() const {
  21469. return (_has_bits_[0] & 0x00000004u) != 0;
  21470. }
  21471. inline void TestCamelCaseFieldNames::set_has_cordfield() {
  21472. _has_bits_[0] |= 0x00000004u;
  21473. }
  21474. inline void TestCamelCaseFieldNames::clear_has_cordfield() {
  21475. _has_bits_[0] &= ~0x00000004u;
  21476. }
  21477. inline void TestCamelCaseFieldNames::clear_cordfield() {
  21478. cordfield_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
  21479. clear_has_cordfield();
  21480. }
  21481. inline const ::std::string& TestCamelCaseFieldNames::cordfield() const {
  21482. // @@protoc_insertion_point(field_get:protobuf_unittest.TestCamelCaseFieldNames.CordField)
  21483. return cordfield_.Get();
  21484. }
  21485. inline void TestCamelCaseFieldNames::set_cordfield(const ::std::string& value) {
  21486. set_has_cordfield();
  21487. cordfield_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual());
  21488. // @@protoc_insertion_point(field_set:protobuf_unittest.TestCamelCaseFieldNames.CordField)
  21489. }
  21490. #if LANG_CXX11
  21491. inline void TestCamelCaseFieldNames::set_cordfield(::std::string&& value) {
  21492. set_has_cordfield();
  21493. cordfield_.Set(
  21494. &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual());
  21495. // @@protoc_insertion_point(field_set_rvalue:protobuf_unittest.TestCamelCaseFieldNames.CordField)
  21496. }
  21497. #endif
  21498. inline void TestCamelCaseFieldNames::set_cordfield(const char* value) {
  21499. GOOGLE_DCHECK(value != NULL);
  21500. set_has_cordfield();
  21501. cordfield_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value),
  21502. GetArenaNoVirtual());
  21503. // @@protoc_insertion_point(field_set_char:protobuf_unittest.TestCamelCaseFieldNames.CordField)
  21504. }
  21505. inline void TestCamelCaseFieldNames::set_cordfield(const char* value,
  21506. size_t size) {
  21507. set_has_cordfield();
  21508. cordfield_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(
  21509. reinterpret_cast<const char*>(value), size), GetArenaNoVirtual());
  21510. // @@protoc_insertion_point(field_set_pointer:protobuf_unittest.TestCamelCaseFieldNames.CordField)
  21511. }
  21512. inline ::std::string* TestCamelCaseFieldNames::mutable_cordfield() {
  21513. set_has_cordfield();
  21514. // @@protoc_insertion_point(field_mutable:protobuf_unittest.TestCamelCaseFieldNames.CordField)
  21515. return cordfield_.Mutable(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
  21516. }
  21517. inline ::std::string* TestCamelCaseFieldNames::release_cordfield() {
  21518. // @@protoc_insertion_point(field_release:protobuf_unittest.TestCamelCaseFieldNames.CordField)
  21519. if (!has_cordfield()) {
  21520. return NULL;
  21521. }
  21522. clear_has_cordfield();
  21523. return cordfield_.ReleaseNonDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
  21524. }
  21525. inline void TestCamelCaseFieldNames::set_allocated_cordfield(::std::string* cordfield) {
  21526. if (cordfield != NULL) {
  21527. set_has_cordfield();
  21528. } else {
  21529. clear_has_cordfield();
  21530. }
  21531. cordfield_.SetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), cordfield,
  21532. GetArenaNoVirtual());
  21533. // @@protoc_insertion_point(field_set_allocated:protobuf_unittest.TestCamelCaseFieldNames.CordField)
  21534. }
  21535. inline ::std::string* TestCamelCaseFieldNames::unsafe_arena_release_cordfield() {
  21536. // @@protoc_insertion_point(field_unsafe_arena_release:protobuf_unittest.TestCamelCaseFieldNames.CordField)
  21537. GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
  21538. clear_has_cordfield();
  21539. return cordfield_.UnsafeArenaRelease(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  21540. GetArenaNoVirtual());
  21541. }
  21542. inline void TestCamelCaseFieldNames::unsafe_arena_set_allocated_cordfield(
  21543. ::std::string* cordfield) {
  21544. GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
  21545. if (cordfield != NULL) {
  21546. set_has_cordfield();
  21547. } else {
  21548. clear_has_cordfield();
  21549. }
  21550. cordfield_.UnsafeArenaSetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  21551. cordfield, GetArenaNoVirtual());
  21552. // @@protoc_insertion_point(field_unsafe_arena_set_allocated:protobuf_unittest.TestCamelCaseFieldNames.CordField)
  21553. }
  21554. // repeated int32 RepeatedPrimitiveField = 7;
  21555. inline int TestCamelCaseFieldNames::repeatedprimitivefield_size() const {
  21556. return repeatedprimitivefield_.size();
  21557. }
  21558. inline void TestCamelCaseFieldNames::clear_repeatedprimitivefield() {
  21559. repeatedprimitivefield_.Clear();
  21560. }
  21561. inline ::google::protobuf::int32 TestCamelCaseFieldNames::repeatedprimitivefield(int index) const {
  21562. // @@protoc_insertion_point(field_get:protobuf_unittest.TestCamelCaseFieldNames.RepeatedPrimitiveField)
  21563. return repeatedprimitivefield_.Get(index);
  21564. }
  21565. inline void TestCamelCaseFieldNames::set_repeatedprimitivefield(int index, ::google::protobuf::int32 value) {
  21566. repeatedprimitivefield_.Set(index, value);
  21567. // @@protoc_insertion_point(field_set:protobuf_unittest.TestCamelCaseFieldNames.RepeatedPrimitiveField)
  21568. }
  21569. inline void TestCamelCaseFieldNames::add_repeatedprimitivefield(::google::protobuf::int32 value) {
  21570. repeatedprimitivefield_.Add(value);
  21571. // @@protoc_insertion_point(field_add:protobuf_unittest.TestCamelCaseFieldNames.RepeatedPrimitiveField)
  21572. }
  21573. inline const ::google::protobuf::RepeatedField< ::google::protobuf::int32 >&
  21574. TestCamelCaseFieldNames::repeatedprimitivefield() const {
  21575. // @@protoc_insertion_point(field_list:protobuf_unittest.TestCamelCaseFieldNames.RepeatedPrimitiveField)
  21576. return repeatedprimitivefield_;
  21577. }
  21578. inline ::google::protobuf::RepeatedField< ::google::protobuf::int32 >*
  21579. TestCamelCaseFieldNames::mutable_repeatedprimitivefield() {
  21580. // @@protoc_insertion_point(field_mutable_list:protobuf_unittest.TestCamelCaseFieldNames.RepeatedPrimitiveField)
  21581. return &repeatedprimitivefield_;
  21582. }
  21583. // repeated string RepeatedStringField = 8;
  21584. inline int TestCamelCaseFieldNames::repeatedstringfield_size() const {
  21585. return repeatedstringfield_.size();
  21586. }
  21587. inline void TestCamelCaseFieldNames::clear_repeatedstringfield() {
  21588. repeatedstringfield_.Clear();
  21589. }
  21590. inline const ::std::string& TestCamelCaseFieldNames::repeatedstringfield(int index) const {
  21591. // @@protoc_insertion_point(field_get:protobuf_unittest.TestCamelCaseFieldNames.RepeatedStringField)
  21592. return repeatedstringfield_.Get(index);
  21593. }
  21594. inline ::std::string* TestCamelCaseFieldNames::mutable_repeatedstringfield(int index) {
  21595. // @@protoc_insertion_point(field_mutable:protobuf_unittest.TestCamelCaseFieldNames.RepeatedStringField)
  21596. return repeatedstringfield_.Mutable(index);
  21597. }
  21598. inline void TestCamelCaseFieldNames::set_repeatedstringfield(int index, const ::std::string& value) {
  21599. // @@protoc_insertion_point(field_set:protobuf_unittest.TestCamelCaseFieldNames.RepeatedStringField)
  21600. repeatedstringfield_.Mutable(index)->assign(value);
  21601. }
  21602. #if LANG_CXX11
  21603. inline void TestCamelCaseFieldNames::set_repeatedstringfield(int index, ::std::string&& value) {
  21604. // @@protoc_insertion_point(field_set:protobuf_unittest.TestCamelCaseFieldNames.RepeatedStringField)
  21605. repeatedstringfield_.Mutable(index)->assign(std::move(value));
  21606. }
  21607. #endif
  21608. inline void TestCamelCaseFieldNames::set_repeatedstringfield(int index, const char* value) {
  21609. GOOGLE_DCHECK(value != NULL);
  21610. repeatedstringfield_.Mutable(index)->assign(value);
  21611. // @@protoc_insertion_point(field_set_char:protobuf_unittest.TestCamelCaseFieldNames.RepeatedStringField)
  21612. }
  21613. inline void TestCamelCaseFieldNames::set_repeatedstringfield(int index, const char* value, size_t size) {
  21614. repeatedstringfield_.Mutable(index)->assign(
  21615. reinterpret_cast<const char*>(value), size);
  21616. // @@protoc_insertion_point(field_set_pointer:protobuf_unittest.TestCamelCaseFieldNames.RepeatedStringField)
  21617. }
  21618. inline ::std::string* TestCamelCaseFieldNames::add_repeatedstringfield() {
  21619. // @@protoc_insertion_point(field_add_mutable:protobuf_unittest.TestCamelCaseFieldNames.RepeatedStringField)
  21620. return repeatedstringfield_.Add();
  21621. }
  21622. inline void TestCamelCaseFieldNames::add_repeatedstringfield(const ::std::string& value) {
  21623. repeatedstringfield_.Add()->assign(value);
  21624. // @@protoc_insertion_point(field_add:protobuf_unittest.TestCamelCaseFieldNames.RepeatedStringField)
  21625. }
  21626. #if LANG_CXX11
  21627. inline void TestCamelCaseFieldNames::add_repeatedstringfield(::std::string&& value) {
  21628. repeatedstringfield_.Add(std::move(value));
  21629. // @@protoc_insertion_point(field_add:protobuf_unittest.TestCamelCaseFieldNames.RepeatedStringField)
  21630. }
  21631. #endif
  21632. inline void TestCamelCaseFieldNames::add_repeatedstringfield(const char* value) {
  21633. GOOGLE_DCHECK(value != NULL);
  21634. repeatedstringfield_.Add()->assign(value);
  21635. // @@protoc_insertion_point(field_add_char:protobuf_unittest.TestCamelCaseFieldNames.RepeatedStringField)
  21636. }
  21637. inline void TestCamelCaseFieldNames::add_repeatedstringfield(const char* value, size_t size) {
  21638. repeatedstringfield_.Add()->assign(reinterpret_cast<const char*>(value), size);
  21639. // @@protoc_insertion_point(field_add_pointer:protobuf_unittest.TestCamelCaseFieldNames.RepeatedStringField)
  21640. }
  21641. inline const ::google::protobuf::RepeatedPtrField< ::std::string>&
  21642. TestCamelCaseFieldNames::repeatedstringfield() const {
  21643. // @@protoc_insertion_point(field_list:protobuf_unittest.TestCamelCaseFieldNames.RepeatedStringField)
  21644. return repeatedstringfield_;
  21645. }
  21646. inline ::google::protobuf::RepeatedPtrField< ::std::string>*
  21647. TestCamelCaseFieldNames::mutable_repeatedstringfield() {
  21648. // @@protoc_insertion_point(field_mutable_list:protobuf_unittest.TestCamelCaseFieldNames.RepeatedStringField)
  21649. return &repeatedstringfield_;
  21650. }
  21651. // repeated .protobuf_unittest.ForeignEnum RepeatedEnumField = 9;
  21652. inline int TestCamelCaseFieldNames::repeatedenumfield_size() const {
  21653. return repeatedenumfield_.size();
  21654. }
  21655. inline void TestCamelCaseFieldNames::clear_repeatedenumfield() {
  21656. repeatedenumfield_.Clear();
  21657. }
  21658. inline ::protobuf_unittest::ForeignEnum TestCamelCaseFieldNames::repeatedenumfield(int index) const {
  21659. // @@protoc_insertion_point(field_get:protobuf_unittest.TestCamelCaseFieldNames.RepeatedEnumField)
  21660. return static_cast< ::protobuf_unittest::ForeignEnum >(repeatedenumfield_.Get(index));
  21661. }
  21662. inline void TestCamelCaseFieldNames::set_repeatedenumfield(int index, ::protobuf_unittest::ForeignEnum value) {
  21663. assert(::protobuf_unittest::ForeignEnum_IsValid(value));
  21664. repeatedenumfield_.Set(index, value);
  21665. // @@protoc_insertion_point(field_set:protobuf_unittest.TestCamelCaseFieldNames.RepeatedEnumField)
  21666. }
  21667. inline void TestCamelCaseFieldNames::add_repeatedenumfield(::protobuf_unittest::ForeignEnum value) {
  21668. assert(::protobuf_unittest::ForeignEnum_IsValid(value));
  21669. repeatedenumfield_.Add(value);
  21670. // @@protoc_insertion_point(field_add:protobuf_unittest.TestCamelCaseFieldNames.RepeatedEnumField)
  21671. }
  21672. inline const ::google::protobuf::RepeatedField<int>&
  21673. TestCamelCaseFieldNames::repeatedenumfield() const {
  21674. // @@protoc_insertion_point(field_list:protobuf_unittest.TestCamelCaseFieldNames.RepeatedEnumField)
  21675. return repeatedenumfield_;
  21676. }
  21677. inline ::google::protobuf::RepeatedField<int>*
  21678. TestCamelCaseFieldNames::mutable_repeatedenumfield() {
  21679. // @@protoc_insertion_point(field_mutable_list:protobuf_unittest.TestCamelCaseFieldNames.RepeatedEnumField)
  21680. return &repeatedenumfield_;
  21681. }
  21682. // repeated .protobuf_unittest.ForeignMessage RepeatedMessageField = 10;
  21683. inline int TestCamelCaseFieldNames::repeatedmessagefield_size() const {
  21684. return repeatedmessagefield_.size();
  21685. }
  21686. inline void TestCamelCaseFieldNames::clear_repeatedmessagefield() {
  21687. repeatedmessagefield_.Clear();
  21688. }
  21689. inline ::protobuf_unittest::ForeignMessage* TestCamelCaseFieldNames::mutable_repeatedmessagefield(int index) {
  21690. // @@protoc_insertion_point(field_mutable:protobuf_unittest.TestCamelCaseFieldNames.RepeatedMessageField)
  21691. return repeatedmessagefield_.Mutable(index);
  21692. }
  21693. inline ::google::protobuf::RepeatedPtrField< ::protobuf_unittest::ForeignMessage >*
  21694. TestCamelCaseFieldNames::mutable_repeatedmessagefield() {
  21695. // @@protoc_insertion_point(field_mutable_list:protobuf_unittest.TestCamelCaseFieldNames.RepeatedMessageField)
  21696. return &repeatedmessagefield_;
  21697. }
  21698. inline const ::protobuf_unittest::ForeignMessage& TestCamelCaseFieldNames::repeatedmessagefield(int index) const {
  21699. // @@protoc_insertion_point(field_get:protobuf_unittest.TestCamelCaseFieldNames.RepeatedMessageField)
  21700. return repeatedmessagefield_.Get(index);
  21701. }
  21702. inline ::protobuf_unittest::ForeignMessage* TestCamelCaseFieldNames::add_repeatedmessagefield() {
  21703. // @@protoc_insertion_point(field_add:protobuf_unittest.TestCamelCaseFieldNames.RepeatedMessageField)
  21704. return repeatedmessagefield_.Add();
  21705. }
  21706. inline const ::google::protobuf::RepeatedPtrField< ::protobuf_unittest::ForeignMessage >&
  21707. TestCamelCaseFieldNames::repeatedmessagefield() const {
  21708. // @@protoc_insertion_point(field_list:protobuf_unittest.TestCamelCaseFieldNames.RepeatedMessageField)
  21709. return repeatedmessagefield_;
  21710. }
  21711. // repeated string RepeatedStringPieceField = 11 [ctype = STRING_PIECE];
  21712. inline int TestCamelCaseFieldNames::repeatedstringpiecefield_size() const {
  21713. return repeatedstringpiecefield_.size();
  21714. }
  21715. inline void TestCamelCaseFieldNames::clear_repeatedstringpiecefield() {
  21716. repeatedstringpiecefield_.Clear();
  21717. }
  21718. inline const ::std::string& TestCamelCaseFieldNames::repeatedstringpiecefield(int index) const {
  21719. // @@protoc_insertion_point(field_get:protobuf_unittest.TestCamelCaseFieldNames.RepeatedStringPieceField)
  21720. return repeatedstringpiecefield_.Get(index);
  21721. }
  21722. inline ::std::string* TestCamelCaseFieldNames::mutable_repeatedstringpiecefield(int index) {
  21723. // @@protoc_insertion_point(field_mutable:protobuf_unittest.TestCamelCaseFieldNames.RepeatedStringPieceField)
  21724. return repeatedstringpiecefield_.Mutable(index);
  21725. }
  21726. inline void TestCamelCaseFieldNames::set_repeatedstringpiecefield(int index, const ::std::string& value) {
  21727. // @@protoc_insertion_point(field_set:protobuf_unittest.TestCamelCaseFieldNames.RepeatedStringPieceField)
  21728. repeatedstringpiecefield_.Mutable(index)->assign(value);
  21729. }
  21730. #if LANG_CXX11
  21731. inline void TestCamelCaseFieldNames::set_repeatedstringpiecefield(int index, ::std::string&& value) {
  21732. // @@protoc_insertion_point(field_set:protobuf_unittest.TestCamelCaseFieldNames.RepeatedStringPieceField)
  21733. repeatedstringpiecefield_.Mutable(index)->assign(std::move(value));
  21734. }
  21735. #endif
  21736. inline void TestCamelCaseFieldNames::set_repeatedstringpiecefield(int index, const char* value) {
  21737. GOOGLE_DCHECK(value != NULL);
  21738. repeatedstringpiecefield_.Mutable(index)->assign(value);
  21739. // @@protoc_insertion_point(field_set_char:protobuf_unittest.TestCamelCaseFieldNames.RepeatedStringPieceField)
  21740. }
  21741. inline void TestCamelCaseFieldNames::set_repeatedstringpiecefield(int index, const char* value, size_t size) {
  21742. repeatedstringpiecefield_.Mutable(index)->assign(
  21743. reinterpret_cast<const char*>(value), size);
  21744. // @@protoc_insertion_point(field_set_pointer:protobuf_unittest.TestCamelCaseFieldNames.RepeatedStringPieceField)
  21745. }
  21746. inline ::std::string* TestCamelCaseFieldNames::add_repeatedstringpiecefield() {
  21747. // @@protoc_insertion_point(field_add_mutable:protobuf_unittest.TestCamelCaseFieldNames.RepeatedStringPieceField)
  21748. return repeatedstringpiecefield_.Add();
  21749. }
  21750. inline void TestCamelCaseFieldNames::add_repeatedstringpiecefield(const ::std::string& value) {
  21751. repeatedstringpiecefield_.Add()->assign(value);
  21752. // @@protoc_insertion_point(field_add:protobuf_unittest.TestCamelCaseFieldNames.RepeatedStringPieceField)
  21753. }
  21754. #if LANG_CXX11
  21755. inline void TestCamelCaseFieldNames::add_repeatedstringpiecefield(::std::string&& value) {
  21756. repeatedstringpiecefield_.Add(std::move(value));
  21757. // @@protoc_insertion_point(field_add:protobuf_unittest.TestCamelCaseFieldNames.RepeatedStringPieceField)
  21758. }
  21759. #endif
  21760. inline void TestCamelCaseFieldNames::add_repeatedstringpiecefield(const char* value) {
  21761. GOOGLE_DCHECK(value != NULL);
  21762. repeatedstringpiecefield_.Add()->assign(value);
  21763. // @@protoc_insertion_point(field_add_char:protobuf_unittest.TestCamelCaseFieldNames.RepeatedStringPieceField)
  21764. }
  21765. inline void TestCamelCaseFieldNames::add_repeatedstringpiecefield(const char* value, size_t size) {
  21766. repeatedstringpiecefield_.Add()->assign(reinterpret_cast<const char*>(value), size);
  21767. // @@protoc_insertion_point(field_add_pointer:protobuf_unittest.TestCamelCaseFieldNames.RepeatedStringPieceField)
  21768. }
  21769. inline const ::google::protobuf::RepeatedPtrField< ::std::string>&
  21770. TestCamelCaseFieldNames::repeatedstringpiecefield() const {
  21771. // @@protoc_insertion_point(field_list:protobuf_unittest.TestCamelCaseFieldNames.RepeatedStringPieceField)
  21772. return repeatedstringpiecefield_;
  21773. }
  21774. inline ::google::protobuf::RepeatedPtrField< ::std::string>*
  21775. TestCamelCaseFieldNames::mutable_repeatedstringpiecefield() {
  21776. // @@protoc_insertion_point(field_mutable_list:protobuf_unittest.TestCamelCaseFieldNames.RepeatedStringPieceField)
  21777. return &repeatedstringpiecefield_;
  21778. }
  21779. // repeated string RepeatedCordField = 12 [ctype = CORD];
  21780. inline int TestCamelCaseFieldNames::repeatedcordfield_size() const {
  21781. return repeatedcordfield_.size();
  21782. }
  21783. inline void TestCamelCaseFieldNames::clear_repeatedcordfield() {
  21784. repeatedcordfield_.Clear();
  21785. }
  21786. inline const ::std::string& TestCamelCaseFieldNames::repeatedcordfield(int index) const {
  21787. // @@protoc_insertion_point(field_get:protobuf_unittest.TestCamelCaseFieldNames.RepeatedCordField)
  21788. return repeatedcordfield_.Get(index);
  21789. }
  21790. inline ::std::string* TestCamelCaseFieldNames::mutable_repeatedcordfield(int index) {
  21791. // @@protoc_insertion_point(field_mutable:protobuf_unittest.TestCamelCaseFieldNames.RepeatedCordField)
  21792. return repeatedcordfield_.Mutable(index);
  21793. }
  21794. inline void TestCamelCaseFieldNames::set_repeatedcordfield(int index, const ::std::string& value) {
  21795. // @@protoc_insertion_point(field_set:protobuf_unittest.TestCamelCaseFieldNames.RepeatedCordField)
  21796. repeatedcordfield_.Mutable(index)->assign(value);
  21797. }
  21798. #if LANG_CXX11
  21799. inline void TestCamelCaseFieldNames::set_repeatedcordfield(int index, ::std::string&& value) {
  21800. // @@protoc_insertion_point(field_set:protobuf_unittest.TestCamelCaseFieldNames.RepeatedCordField)
  21801. repeatedcordfield_.Mutable(index)->assign(std::move(value));
  21802. }
  21803. #endif
  21804. inline void TestCamelCaseFieldNames::set_repeatedcordfield(int index, const char* value) {
  21805. GOOGLE_DCHECK(value != NULL);
  21806. repeatedcordfield_.Mutable(index)->assign(value);
  21807. // @@protoc_insertion_point(field_set_char:protobuf_unittest.TestCamelCaseFieldNames.RepeatedCordField)
  21808. }
  21809. inline void TestCamelCaseFieldNames::set_repeatedcordfield(int index, const char* value, size_t size) {
  21810. repeatedcordfield_.Mutable(index)->assign(
  21811. reinterpret_cast<const char*>(value), size);
  21812. // @@protoc_insertion_point(field_set_pointer:protobuf_unittest.TestCamelCaseFieldNames.RepeatedCordField)
  21813. }
  21814. inline ::std::string* TestCamelCaseFieldNames::add_repeatedcordfield() {
  21815. // @@protoc_insertion_point(field_add_mutable:protobuf_unittest.TestCamelCaseFieldNames.RepeatedCordField)
  21816. return repeatedcordfield_.Add();
  21817. }
  21818. inline void TestCamelCaseFieldNames::add_repeatedcordfield(const ::std::string& value) {
  21819. repeatedcordfield_.Add()->assign(value);
  21820. // @@protoc_insertion_point(field_add:protobuf_unittest.TestCamelCaseFieldNames.RepeatedCordField)
  21821. }
  21822. #if LANG_CXX11
  21823. inline void TestCamelCaseFieldNames::add_repeatedcordfield(::std::string&& value) {
  21824. repeatedcordfield_.Add(std::move(value));
  21825. // @@protoc_insertion_point(field_add:protobuf_unittest.TestCamelCaseFieldNames.RepeatedCordField)
  21826. }
  21827. #endif
  21828. inline void TestCamelCaseFieldNames::add_repeatedcordfield(const char* value) {
  21829. GOOGLE_DCHECK(value != NULL);
  21830. repeatedcordfield_.Add()->assign(value);
  21831. // @@protoc_insertion_point(field_add_char:protobuf_unittest.TestCamelCaseFieldNames.RepeatedCordField)
  21832. }
  21833. inline void TestCamelCaseFieldNames::add_repeatedcordfield(const char* value, size_t size) {
  21834. repeatedcordfield_.Add()->assign(reinterpret_cast<const char*>(value), size);
  21835. // @@protoc_insertion_point(field_add_pointer:protobuf_unittest.TestCamelCaseFieldNames.RepeatedCordField)
  21836. }
  21837. inline const ::google::protobuf::RepeatedPtrField< ::std::string>&
  21838. TestCamelCaseFieldNames::repeatedcordfield() const {
  21839. // @@protoc_insertion_point(field_list:protobuf_unittest.TestCamelCaseFieldNames.RepeatedCordField)
  21840. return repeatedcordfield_;
  21841. }
  21842. inline ::google::protobuf::RepeatedPtrField< ::std::string>*
  21843. TestCamelCaseFieldNames::mutable_repeatedcordfield() {
  21844. // @@protoc_insertion_point(field_mutable_list:protobuf_unittest.TestCamelCaseFieldNames.RepeatedCordField)
  21845. return &repeatedcordfield_;
  21846. }
  21847. // -------------------------------------------------------------------
  21848. // TestFieldOrderings_NestedMessage
  21849. // optional int64 oo = 2;
  21850. inline bool TestFieldOrderings_NestedMessage::has_oo() const {
  21851. return (_has_bits_[0] & 0x00000001u) != 0;
  21852. }
  21853. inline void TestFieldOrderings_NestedMessage::set_has_oo() {
  21854. _has_bits_[0] |= 0x00000001u;
  21855. }
  21856. inline void TestFieldOrderings_NestedMessage::clear_has_oo() {
  21857. _has_bits_[0] &= ~0x00000001u;
  21858. }
  21859. inline void TestFieldOrderings_NestedMessage::clear_oo() {
  21860. oo_ = GOOGLE_LONGLONG(0);
  21861. clear_has_oo();
  21862. }
  21863. inline ::google::protobuf::int64 TestFieldOrderings_NestedMessage::oo() const {
  21864. // @@protoc_insertion_point(field_get:protobuf_unittest.TestFieldOrderings.NestedMessage.oo)
  21865. return oo_;
  21866. }
  21867. inline void TestFieldOrderings_NestedMessage::set_oo(::google::protobuf::int64 value) {
  21868. set_has_oo();
  21869. oo_ = value;
  21870. // @@protoc_insertion_point(field_set:protobuf_unittest.TestFieldOrderings.NestedMessage.oo)
  21871. }
  21872. // optional int32 bb = 1;
  21873. inline bool TestFieldOrderings_NestedMessage::has_bb() const {
  21874. return (_has_bits_[0] & 0x00000002u) != 0;
  21875. }
  21876. inline void TestFieldOrderings_NestedMessage::set_has_bb() {
  21877. _has_bits_[0] |= 0x00000002u;
  21878. }
  21879. inline void TestFieldOrderings_NestedMessage::clear_has_bb() {
  21880. _has_bits_[0] &= ~0x00000002u;
  21881. }
  21882. inline void TestFieldOrderings_NestedMessage::clear_bb() {
  21883. bb_ = 0;
  21884. clear_has_bb();
  21885. }
  21886. inline ::google::protobuf::int32 TestFieldOrderings_NestedMessage::bb() const {
  21887. // @@protoc_insertion_point(field_get:protobuf_unittest.TestFieldOrderings.NestedMessage.bb)
  21888. return bb_;
  21889. }
  21890. inline void TestFieldOrderings_NestedMessage::set_bb(::google::protobuf::int32 value) {
  21891. set_has_bb();
  21892. bb_ = value;
  21893. // @@protoc_insertion_point(field_set:protobuf_unittest.TestFieldOrderings.NestedMessage.bb)
  21894. }
  21895. // -------------------------------------------------------------------
  21896. // TestFieldOrderings
  21897. // optional string my_string = 11;
  21898. inline bool TestFieldOrderings::has_my_string() const {
  21899. return (_has_bits_[0] & 0x00000001u) != 0;
  21900. }
  21901. inline void TestFieldOrderings::set_has_my_string() {
  21902. _has_bits_[0] |= 0x00000001u;
  21903. }
  21904. inline void TestFieldOrderings::clear_has_my_string() {
  21905. _has_bits_[0] &= ~0x00000001u;
  21906. }
  21907. inline void TestFieldOrderings::clear_my_string() {
  21908. my_string_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
  21909. clear_has_my_string();
  21910. }
  21911. inline const ::std::string& TestFieldOrderings::my_string() const {
  21912. // @@protoc_insertion_point(field_get:protobuf_unittest.TestFieldOrderings.my_string)
  21913. return my_string_.Get();
  21914. }
  21915. inline void TestFieldOrderings::set_my_string(const ::std::string& value) {
  21916. set_has_my_string();
  21917. my_string_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual());
  21918. // @@protoc_insertion_point(field_set:protobuf_unittest.TestFieldOrderings.my_string)
  21919. }
  21920. #if LANG_CXX11
  21921. inline void TestFieldOrderings::set_my_string(::std::string&& value) {
  21922. set_has_my_string();
  21923. my_string_.Set(
  21924. &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual());
  21925. // @@protoc_insertion_point(field_set_rvalue:protobuf_unittest.TestFieldOrderings.my_string)
  21926. }
  21927. #endif
  21928. inline void TestFieldOrderings::set_my_string(const char* value) {
  21929. GOOGLE_DCHECK(value != NULL);
  21930. set_has_my_string();
  21931. my_string_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value),
  21932. GetArenaNoVirtual());
  21933. // @@protoc_insertion_point(field_set_char:protobuf_unittest.TestFieldOrderings.my_string)
  21934. }
  21935. inline void TestFieldOrderings::set_my_string(const char* value,
  21936. size_t size) {
  21937. set_has_my_string();
  21938. my_string_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(
  21939. reinterpret_cast<const char*>(value), size), GetArenaNoVirtual());
  21940. // @@protoc_insertion_point(field_set_pointer:protobuf_unittest.TestFieldOrderings.my_string)
  21941. }
  21942. inline ::std::string* TestFieldOrderings::mutable_my_string() {
  21943. set_has_my_string();
  21944. // @@protoc_insertion_point(field_mutable:protobuf_unittest.TestFieldOrderings.my_string)
  21945. return my_string_.Mutable(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
  21946. }
  21947. inline ::std::string* TestFieldOrderings::release_my_string() {
  21948. // @@protoc_insertion_point(field_release:protobuf_unittest.TestFieldOrderings.my_string)
  21949. if (!has_my_string()) {
  21950. return NULL;
  21951. }
  21952. clear_has_my_string();
  21953. return my_string_.ReleaseNonDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
  21954. }
  21955. inline void TestFieldOrderings::set_allocated_my_string(::std::string* my_string) {
  21956. if (my_string != NULL) {
  21957. set_has_my_string();
  21958. } else {
  21959. clear_has_my_string();
  21960. }
  21961. my_string_.SetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), my_string,
  21962. GetArenaNoVirtual());
  21963. // @@protoc_insertion_point(field_set_allocated:protobuf_unittest.TestFieldOrderings.my_string)
  21964. }
  21965. inline ::std::string* TestFieldOrderings::unsafe_arena_release_my_string() {
  21966. // @@protoc_insertion_point(field_unsafe_arena_release:protobuf_unittest.TestFieldOrderings.my_string)
  21967. GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
  21968. clear_has_my_string();
  21969. return my_string_.UnsafeArenaRelease(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  21970. GetArenaNoVirtual());
  21971. }
  21972. inline void TestFieldOrderings::unsafe_arena_set_allocated_my_string(
  21973. ::std::string* my_string) {
  21974. GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
  21975. if (my_string != NULL) {
  21976. set_has_my_string();
  21977. } else {
  21978. clear_has_my_string();
  21979. }
  21980. my_string_.UnsafeArenaSetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  21981. my_string, GetArenaNoVirtual());
  21982. // @@protoc_insertion_point(field_unsafe_arena_set_allocated:protobuf_unittest.TestFieldOrderings.my_string)
  21983. }
  21984. // optional int64 my_int = 1;
  21985. inline bool TestFieldOrderings::has_my_int() const {
  21986. return (_has_bits_[0] & 0x00000004u) != 0;
  21987. }
  21988. inline void TestFieldOrderings::set_has_my_int() {
  21989. _has_bits_[0] |= 0x00000004u;
  21990. }
  21991. inline void TestFieldOrderings::clear_has_my_int() {
  21992. _has_bits_[0] &= ~0x00000004u;
  21993. }
  21994. inline void TestFieldOrderings::clear_my_int() {
  21995. my_int_ = GOOGLE_LONGLONG(0);
  21996. clear_has_my_int();
  21997. }
  21998. inline ::google::protobuf::int64 TestFieldOrderings::my_int() const {
  21999. // @@protoc_insertion_point(field_get:protobuf_unittest.TestFieldOrderings.my_int)
  22000. return my_int_;
  22001. }
  22002. inline void TestFieldOrderings::set_my_int(::google::protobuf::int64 value) {
  22003. set_has_my_int();
  22004. my_int_ = value;
  22005. // @@protoc_insertion_point(field_set:protobuf_unittest.TestFieldOrderings.my_int)
  22006. }
  22007. // optional float my_float = 101;
  22008. inline bool TestFieldOrderings::has_my_float() const {
  22009. return (_has_bits_[0] & 0x00000008u) != 0;
  22010. }
  22011. inline void TestFieldOrderings::set_has_my_float() {
  22012. _has_bits_[0] |= 0x00000008u;
  22013. }
  22014. inline void TestFieldOrderings::clear_has_my_float() {
  22015. _has_bits_[0] &= ~0x00000008u;
  22016. }
  22017. inline void TestFieldOrderings::clear_my_float() {
  22018. my_float_ = 0;
  22019. clear_has_my_float();
  22020. }
  22021. inline float TestFieldOrderings::my_float() const {
  22022. // @@protoc_insertion_point(field_get:protobuf_unittest.TestFieldOrderings.my_float)
  22023. return my_float_;
  22024. }
  22025. inline void TestFieldOrderings::set_my_float(float value) {
  22026. set_has_my_float();
  22027. my_float_ = value;
  22028. // @@protoc_insertion_point(field_set:protobuf_unittest.TestFieldOrderings.my_float)
  22029. }
  22030. // optional .protobuf_unittest.TestFieldOrderings.NestedMessage optional_nested_message = 200;
  22031. inline bool TestFieldOrderings::has_optional_nested_message() const {
  22032. return (_has_bits_[0] & 0x00000002u) != 0;
  22033. }
  22034. inline void TestFieldOrderings::set_has_optional_nested_message() {
  22035. _has_bits_[0] |= 0x00000002u;
  22036. }
  22037. inline void TestFieldOrderings::clear_has_optional_nested_message() {
  22038. _has_bits_[0] &= ~0x00000002u;
  22039. }
  22040. inline void TestFieldOrderings::clear_optional_nested_message() {
  22041. if (optional_nested_message_ != NULL) optional_nested_message_->Clear();
  22042. clear_has_optional_nested_message();
  22043. }
  22044. inline const ::protobuf_unittest::TestFieldOrderings_NestedMessage& TestFieldOrderings::_internal_optional_nested_message() const {
  22045. return *optional_nested_message_;
  22046. }
  22047. inline const ::protobuf_unittest::TestFieldOrderings_NestedMessage& TestFieldOrderings::optional_nested_message() const {
  22048. const ::protobuf_unittest::TestFieldOrderings_NestedMessage* p = optional_nested_message_;
  22049. // @@protoc_insertion_point(field_get:protobuf_unittest.TestFieldOrderings.optional_nested_message)
  22050. return p != NULL ? *p : *reinterpret_cast<const ::protobuf_unittest::TestFieldOrderings_NestedMessage*>(
  22051. &::protobuf_unittest::_TestFieldOrderings_NestedMessage_default_instance_);
  22052. }
  22053. inline ::protobuf_unittest::TestFieldOrderings_NestedMessage* TestFieldOrderings::release_optional_nested_message() {
  22054. // @@protoc_insertion_point(field_release:protobuf_unittest.TestFieldOrderings.optional_nested_message)
  22055. clear_has_optional_nested_message();
  22056. ::protobuf_unittest::TestFieldOrderings_NestedMessage* temp = optional_nested_message_;
  22057. if (GetArenaNoVirtual() != NULL) {
  22058. temp = ::google::protobuf::internal::DuplicateIfNonNull(temp);
  22059. }
  22060. optional_nested_message_ = NULL;
  22061. return temp;
  22062. }
  22063. inline ::protobuf_unittest::TestFieldOrderings_NestedMessage* TestFieldOrderings::unsafe_arena_release_optional_nested_message() {
  22064. // @@protoc_insertion_point(field_unsafe_arena_release:protobuf_unittest.TestFieldOrderings.optional_nested_message)
  22065. clear_has_optional_nested_message();
  22066. ::protobuf_unittest::TestFieldOrderings_NestedMessage* temp = optional_nested_message_;
  22067. optional_nested_message_ = NULL;
  22068. return temp;
  22069. }
  22070. inline ::protobuf_unittest::TestFieldOrderings_NestedMessage* TestFieldOrderings::mutable_optional_nested_message() {
  22071. set_has_optional_nested_message();
  22072. if (optional_nested_message_ == NULL) {
  22073. auto* p = CreateMaybeMessage<::protobuf_unittest::TestFieldOrderings_NestedMessage>(GetArenaNoVirtual());
  22074. optional_nested_message_ = p;
  22075. }
  22076. // @@protoc_insertion_point(field_mutable:protobuf_unittest.TestFieldOrderings.optional_nested_message)
  22077. return optional_nested_message_;
  22078. }
  22079. inline void TestFieldOrderings::set_allocated_optional_nested_message(::protobuf_unittest::TestFieldOrderings_NestedMessage* optional_nested_message) {
  22080. ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
  22081. if (message_arena == NULL) {
  22082. delete optional_nested_message_;
  22083. }
  22084. if (optional_nested_message) {
  22085. ::google::protobuf::Arena* submessage_arena =
  22086. ::google::protobuf::Arena::GetArena(optional_nested_message);
  22087. if (message_arena != submessage_arena) {
  22088. optional_nested_message = ::google::protobuf::internal::GetOwnedMessage(
  22089. message_arena, optional_nested_message, submessage_arena);
  22090. }
  22091. set_has_optional_nested_message();
  22092. } else {
  22093. clear_has_optional_nested_message();
  22094. }
  22095. optional_nested_message_ = optional_nested_message;
  22096. // @@protoc_insertion_point(field_set_allocated:protobuf_unittest.TestFieldOrderings.optional_nested_message)
  22097. }
  22098. // -------------------------------------------------------------------
  22099. // TestExtensionOrderings1
  22100. // optional string my_string = 1;
  22101. inline bool TestExtensionOrderings1::has_my_string() const {
  22102. return (_has_bits_[0] & 0x00000001u) != 0;
  22103. }
  22104. inline void TestExtensionOrderings1::set_has_my_string() {
  22105. _has_bits_[0] |= 0x00000001u;
  22106. }
  22107. inline void TestExtensionOrderings1::clear_has_my_string() {
  22108. _has_bits_[0] &= ~0x00000001u;
  22109. }
  22110. inline void TestExtensionOrderings1::clear_my_string() {
  22111. my_string_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
  22112. clear_has_my_string();
  22113. }
  22114. inline const ::std::string& TestExtensionOrderings1::my_string() const {
  22115. // @@protoc_insertion_point(field_get:protobuf_unittest.TestExtensionOrderings1.my_string)
  22116. return my_string_.Get();
  22117. }
  22118. inline void TestExtensionOrderings1::set_my_string(const ::std::string& value) {
  22119. set_has_my_string();
  22120. my_string_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual());
  22121. // @@protoc_insertion_point(field_set:protobuf_unittest.TestExtensionOrderings1.my_string)
  22122. }
  22123. #if LANG_CXX11
  22124. inline void TestExtensionOrderings1::set_my_string(::std::string&& value) {
  22125. set_has_my_string();
  22126. my_string_.Set(
  22127. &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual());
  22128. // @@protoc_insertion_point(field_set_rvalue:protobuf_unittest.TestExtensionOrderings1.my_string)
  22129. }
  22130. #endif
  22131. inline void TestExtensionOrderings1::set_my_string(const char* value) {
  22132. GOOGLE_DCHECK(value != NULL);
  22133. set_has_my_string();
  22134. my_string_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value),
  22135. GetArenaNoVirtual());
  22136. // @@protoc_insertion_point(field_set_char:protobuf_unittest.TestExtensionOrderings1.my_string)
  22137. }
  22138. inline void TestExtensionOrderings1::set_my_string(const char* value,
  22139. size_t size) {
  22140. set_has_my_string();
  22141. my_string_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(
  22142. reinterpret_cast<const char*>(value), size), GetArenaNoVirtual());
  22143. // @@protoc_insertion_point(field_set_pointer:protobuf_unittest.TestExtensionOrderings1.my_string)
  22144. }
  22145. inline ::std::string* TestExtensionOrderings1::mutable_my_string() {
  22146. set_has_my_string();
  22147. // @@protoc_insertion_point(field_mutable:protobuf_unittest.TestExtensionOrderings1.my_string)
  22148. return my_string_.Mutable(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
  22149. }
  22150. inline ::std::string* TestExtensionOrderings1::release_my_string() {
  22151. // @@protoc_insertion_point(field_release:protobuf_unittest.TestExtensionOrderings1.my_string)
  22152. if (!has_my_string()) {
  22153. return NULL;
  22154. }
  22155. clear_has_my_string();
  22156. return my_string_.ReleaseNonDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
  22157. }
  22158. inline void TestExtensionOrderings1::set_allocated_my_string(::std::string* my_string) {
  22159. if (my_string != NULL) {
  22160. set_has_my_string();
  22161. } else {
  22162. clear_has_my_string();
  22163. }
  22164. my_string_.SetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), my_string,
  22165. GetArenaNoVirtual());
  22166. // @@protoc_insertion_point(field_set_allocated:protobuf_unittest.TestExtensionOrderings1.my_string)
  22167. }
  22168. inline ::std::string* TestExtensionOrderings1::unsafe_arena_release_my_string() {
  22169. // @@protoc_insertion_point(field_unsafe_arena_release:protobuf_unittest.TestExtensionOrderings1.my_string)
  22170. GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
  22171. clear_has_my_string();
  22172. return my_string_.UnsafeArenaRelease(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  22173. GetArenaNoVirtual());
  22174. }
  22175. inline void TestExtensionOrderings1::unsafe_arena_set_allocated_my_string(
  22176. ::std::string* my_string) {
  22177. GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
  22178. if (my_string != NULL) {
  22179. set_has_my_string();
  22180. } else {
  22181. clear_has_my_string();
  22182. }
  22183. my_string_.UnsafeArenaSetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  22184. my_string, GetArenaNoVirtual());
  22185. // @@protoc_insertion_point(field_unsafe_arena_set_allocated:protobuf_unittest.TestExtensionOrderings1.my_string)
  22186. }
  22187. // -------------------------------------------------------------------
  22188. // TestExtensionOrderings2_TestExtensionOrderings3
  22189. // optional string my_string = 1;
  22190. inline bool TestExtensionOrderings2_TestExtensionOrderings3::has_my_string() const {
  22191. return (_has_bits_[0] & 0x00000001u) != 0;
  22192. }
  22193. inline void TestExtensionOrderings2_TestExtensionOrderings3::set_has_my_string() {
  22194. _has_bits_[0] |= 0x00000001u;
  22195. }
  22196. inline void TestExtensionOrderings2_TestExtensionOrderings3::clear_has_my_string() {
  22197. _has_bits_[0] &= ~0x00000001u;
  22198. }
  22199. inline void TestExtensionOrderings2_TestExtensionOrderings3::clear_my_string() {
  22200. my_string_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
  22201. clear_has_my_string();
  22202. }
  22203. inline const ::std::string& TestExtensionOrderings2_TestExtensionOrderings3::my_string() const {
  22204. // @@protoc_insertion_point(field_get:protobuf_unittest.TestExtensionOrderings2.TestExtensionOrderings3.my_string)
  22205. return my_string_.Get();
  22206. }
  22207. inline void TestExtensionOrderings2_TestExtensionOrderings3::set_my_string(const ::std::string& value) {
  22208. set_has_my_string();
  22209. my_string_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual());
  22210. // @@protoc_insertion_point(field_set:protobuf_unittest.TestExtensionOrderings2.TestExtensionOrderings3.my_string)
  22211. }
  22212. #if LANG_CXX11
  22213. inline void TestExtensionOrderings2_TestExtensionOrderings3::set_my_string(::std::string&& value) {
  22214. set_has_my_string();
  22215. my_string_.Set(
  22216. &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual());
  22217. // @@protoc_insertion_point(field_set_rvalue:protobuf_unittest.TestExtensionOrderings2.TestExtensionOrderings3.my_string)
  22218. }
  22219. #endif
  22220. inline void TestExtensionOrderings2_TestExtensionOrderings3::set_my_string(const char* value) {
  22221. GOOGLE_DCHECK(value != NULL);
  22222. set_has_my_string();
  22223. my_string_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value),
  22224. GetArenaNoVirtual());
  22225. // @@protoc_insertion_point(field_set_char:protobuf_unittest.TestExtensionOrderings2.TestExtensionOrderings3.my_string)
  22226. }
  22227. inline void TestExtensionOrderings2_TestExtensionOrderings3::set_my_string(const char* value,
  22228. size_t size) {
  22229. set_has_my_string();
  22230. my_string_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(
  22231. reinterpret_cast<const char*>(value), size), GetArenaNoVirtual());
  22232. // @@protoc_insertion_point(field_set_pointer:protobuf_unittest.TestExtensionOrderings2.TestExtensionOrderings3.my_string)
  22233. }
  22234. inline ::std::string* TestExtensionOrderings2_TestExtensionOrderings3::mutable_my_string() {
  22235. set_has_my_string();
  22236. // @@protoc_insertion_point(field_mutable:protobuf_unittest.TestExtensionOrderings2.TestExtensionOrderings3.my_string)
  22237. return my_string_.Mutable(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
  22238. }
  22239. inline ::std::string* TestExtensionOrderings2_TestExtensionOrderings3::release_my_string() {
  22240. // @@protoc_insertion_point(field_release:protobuf_unittest.TestExtensionOrderings2.TestExtensionOrderings3.my_string)
  22241. if (!has_my_string()) {
  22242. return NULL;
  22243. }
  22244. clear_has_my_string();
  22245. return my_string_.ReleaseNonDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
  22246. }
  22247. inline void TestExtensionOrderings2_TestExtensionOrderings3::set_allocated_my_string(::std::string* my_string) {
  22248. if (my_string != NULL) {
  22249. set_has_my_string();
  22250. } else {
  22251. clear_has_my_string();
  22252. }
  22253. my_string_.SetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), my_string,
  22254. GetArenaNoVirtual());
  22255. // @@protoc_insertion_point(field_set_allocated:protobuf_unittest.TestExtensionOrderings2.TestExtensionOrderings3.my_string)
  22256. }
  22257. inline ::std::string* TestExtensionOrderings2_TestExtensionOrderings3::unsafe_arena_release_my_string() {
  22258. // @@protoc_insertion_point(field_unsafe_arena_release:protobuf_unittest.TestExtensionOrderings2.TestExtensionOrderings3.my_string)
  22259. GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
  22260. clear_has_my_string();
  22261. return my_string_.UnsafeArenaRelease(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  22262. GetArenaNoVirtual());
  22263. }
  22264. inline void TestExtensionOrderings2_TestExtensionOrderings3::unsafe_arena_set_allocated_my_string(
  22265. ::std::string* my_string) {
  22266. GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
  22267. if (my_string != NULL) {
  22268. set_has_my_string();
  22269. } else {
  22270. clear_has_my_string();
  22271. }
  22272. my_string_.UnsafeArenaSetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  22273. my_string, GetArenaNoVirtual());
  22274. // @@protoc_insertion_point(field_unsafe_arena_set_allocated:protobuf_unittest.TestExtensionOrderings2.TestExtensionOrderings3.my_string)
  22275. }
  22276. // -------------------------------------------------------------------
  22277. // TestExtensionOrderings2
  22278. // optional string my_string = 1;
  22279. inline bool TestExtensionOrderings2::has_my_string() const {
  22280. return (_has_bits_[0] & 0x00000001u) != 0;
  22281. }
  22282. inline void TestExtensionOrderings2::set_has_my_string() {
  22283. _has_bits_[0] |= 0x00000001u;
  22284. }
  22285. inline void TestExtensionOrderings2::clear_has_my_string() {
  22286. _has_bits_[0] &= ~0x00000001u;
  22287. }
  22288. inline void TestExtensionOrderings2::clear_my_string() {
  22289. my_string_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
  22290. clear_has_my_string();
  22291. }
  22292. inline const ::std::string& TestExtensionOrderings2::my_string() const {
  22293. // @@protoc_insertion_point(field_get:protobuf_unittest.TestExtensionOrderings2.my_string)
  22294. return my_string_.Get();
  22295. }
  22296. inline void TestExtensionOrderings2::set_my_string(const ::std::string& value) {
  22297. set_has_my_string();
  22298. my_string_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual());
  22299. // @@protoc_insertion_point(field_set:protobuf_unittest.TestExtensionOrderings2.my_string)
  22300. }
  22301. #if LANG_CXX11
  22302. inline void TestExtensionOrderings2::set_my_string(::std::string&& value) {
  22303. set_has_my_string();
  22304. my_string_.Set(
  22305. &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual());
  22306. // @@protoc_insertion_point(field_set_rvalue:protobuf_unittest.TestExtensionOrderings2.my_string)
  22307. }
  22308. #endif
  22309. inline void TestExtensionOrderings2::set_my_string(const char* value) {
  22310. GOOGLE_DCHECK(value != NULL);
  22311. set_has_my_string();
  22312. my_string_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value),
  22313. GetArenaNoVirtual());
  22314. // @@protoc_insertion_point(field_set_char:protobuf_unittest.TestExtensionOrderings2.my_string)
  22315. }
  22316. inline void TestExtensionOrderings2::set_my_string(const char* value,
  22317. size_t size) {
  22318. set_has_my_string();
  22319. my_string_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(
  22320. reinterpret_cast<const char*>(value), size), GetArenaNoVirtual());
  22321. // @@protoc_insertion_point(field_set_pointer:protobuf_unittest.TestExtensionOrderings2.my_string)
  22322. }
  22323. inline ::std::string* TestExtensionOrderings2::mutable_my_string() {
  22324. set_has_my_string();
  22325. // @@protoc_insertion_point(field_mutable:protobuf_unittest.TestExtensionOrderings2.my_string)
  22326. return my_string_.Mutable(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
  22327. }
  22328. inline ::std::string* TestExtensionOrderings2::release_my_string() {
  22329. // @@protoc_insertion_point(field_release:protobuf_unittest.TestExtensionOrderings2.my_string)
  22330. if (!has_my_string()) {
  22331. return NULL;
  22332. }
  22333. clear_has_my_string();
  22334. return my_string_.ReleaseNonDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
  22335. }
  22336. inline void TestExtensionOrderings2::set_allocated_my_string(::std::string* my_string) {
  22337. if (my_string != NULL) {
  22338. set_has_my_string();
  22339. } else {
  22340. clear_has_my_string();
  22341. }
  22342. my_string_.SetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), my_string,
  22343. GetArenaNoVirtual());
  22344. // @@protoc_insertion_point(field_set_allocated:protobuf_unittest.TestExtensionOrderings2.my_string)
  22345. }
  22346. inline ::std::string* TestExtensionOrderings2::unsafe_arena_release_my_string() {
  22347. // @@protoc_insertion_point(field_unsafe_arena_release:protobuf_unittest.TestExtensionOrderings2.my_string)
  22348. GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
  22349. clear_has_my_string();
  22350. return my_string_.UnsafeArenaRelease(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  22351. GetArenaNoVirtual());
  22352. }
  22353. inline void TestExtensionOrderings2::unsafe_arena_set_allocated_my_string(
  22354. ::std::string* my_string) {
  22355. GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
  22356. if (my_string != NULL) {
  22357. set_has_my_string();
  22358. } else {
  22359. clear_has_my_string();
  22360. }
  22361. my_string_.UnsafeArenaSetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  22362. my_string, GetArenaNoVirtual());
  22363. // @@protoc_insertion_point(field_unsafe_arena_set_allocated:protobuf_unittest.TestExtensionOrderings2.my_string)
  22364. }
  22365. // -------------------------------------------------------------------
  22366. // TestExtremeDefaultValues
  22367. // optional bytes escaped_bytes = 1 [default = "\000\001\007\010\014\n\r\t\013\\\'\"\376"];
  22368. inline bool TestExtremeDefaultValues::has_escaped_bytes() const {
  22369. return (_has_bits_[0] & 0x00000001u) != 0;
  22370. }
  22371. inline void TestExtremeDefaultValues::set_has_escaped_bytes() {
  22372. _has_bits_[0] |= 0x00000001u;
  22373. }
  22374. inline void TestExtremeDefaultValues::clear_has_escaped_bytes() {
  22375. _has_bits_[0] &= ~0x00000001u;
  22376. }
  22377. inline void TestExtremeDefaultValues::clear_escaped_bytes() {
  22378. escaped_bytes_.ClearToDefault(&::protobuf_unittest::TestExtremeDefaultValues::_i_give_permission_to_break_this_code_default_escaped_bytes_.get(), GetArenaNoVirtual());
  22379. clear_has_escaped_bytes();
  22380. }
  22381. inline const ::std::string& TestExtremeDefaultValues::escaped_bytes() const {
  22382. // @@protoc_insertion_point(field_get:protobuf_unittest.TestExtremeDefaultValues.escaped_bytes)
  22383. return escaped_bytes_.Get();
  22384. }
  22385. inline void TestExtremeDefaultValues::set_escaped_bytes(const ::std::string& value) {
  22386. set_has_escaped_bytes();
  22387. escaped_bytes_.Set(&::protobuf_unittest::TestExtremeDefaultValues::_i_give_permission_to_break_this_code_default_escaped_bytes_.get(), value, GetArenaNoVirtual());
  22388. // @@protoc_insertion_point(field_set:protobuf_unittest.TestExtremeDefaultValues.escaped_bytes)
  22389. }
  22390. #if LANG_CXX11
  22391. inline void TestExtremeDefaultValues::set_escaped_bytes(::std::string&& value) {
  22392. set_has_escaped_bytes();
  22393. escaped_bytes_.Set(
  22394. &::protobuf_unittest::TestExtremeDefaultValues::_i_give_permission_to_break_this_code_default_escaped_bytes_.get(), ::std::move(value), GetArenaNoVirtual());
  22395. // @@protoc_insertion_point(field_set_rvalue:protobuf_unittest.TestExtremeDefaultValues.escaped_bytes)
  22396. }
  22397. #endif
  22398. inline void TestExtremeDefaultValues::set_escaped_bytes(const char* value) {
  22399. GOOGLE_DCHECK(value != NULL);
  22400. set_has_escaped_bytes();
  22401. escaped_bytes_.Set(&::protobuf_unittest::TestExtremeDefaultValues::_i_give_permission_to_break_this_code_default_escaped_bytes_.get(), ::std::string(value),
  22402. GetArenaNoVirtual());
  22403. // @@protoc_insertion_point(field_set_char:protobuf_unittest.TestExtremeDefaultValues.escaped_bytes)
  22404. }
  22405. inline void TestExtremeDefaultValues::set_escaped_bytes(const void* value,
  22406. size_t size) {
  22407. set_has_escaped_bytes();
  22408. escaped_bytes_.Set(&::protobuf_unittest::TestExtremeDefaultValues::_i_give_permission_to_break_this_code_default_escaped_bytes_.get(), ::std::string(
  22409. reinterpret_cast<const char*>(value), size), GetArenaNoVirtual());
  22410. // @@protoc_insertion_point(field_set_pointer:protobuf_unittest.TestExtremeDefaultValues.escaped_bytes)
  22411. }
  22412. inline ::std::string* TestExtremeDefaultValues::mutable_escaped_bytes() {
  22413. set_has_escaped_bytes();
  22414. // @@protoc_insertion_point(field_mutable:protobuf_unittest.TestExtremeDefaultValues.escaped_bytes)
  22415. return escaped_bytes_.Mutable(&::protobuf_unittest::TestExtremeDefaultValues::_i_give_permission_to_break_this_code_default_escaped_bytes_.get(), GetArenaNoVirtual());
  22416. }
  22417. inline ::std::string* TestExtremeDefaultValues::release_escaped_bytes() {
  22418. // @@protoc_insertion_point(field_release:protobuf_unittest.TestExtremeDefaultValues.escaped_bytes)
  22419. if (!has_escaped_bytes()) {
  22420. return NULL;
  22421. }
  22422. clear_has_escaped_bytes();
  22423. return escaped_bytes_.ReleaseNonDefault(&::protobuf_unittest::TestExtremeDefaultValues::_i_give_permission_to_break_this_code_default_escaped_bytes_.get(), GetArenaNoVirtual());
  22424. }
  22425. inline void TestExtremeDefaultValues::set_allocated_escaped_bytes(::std::string* escaped_bytes) {
  22426. if (escaped_bytes != NULL) {
  22427. set_has_escaped_bytes();
  22428. } else {
  22429. clear_has_escaped_bytes();
  22430. }
  22431. escaped_bytes_.SetAllocated(&::protobuf_unittest::TestExtremeDefaultValues::_i_give_permission_to_break_this_code_default_escaped_bytes_.get(), escaped_bytes,
  22432. GetArenaNoVirtual());
  22433. // @@protoc_insertion_point(field_set_allocated:protobuf_unittest.TestExtremeDefaultValues.escaped_bytes)
  22434. }
  22435. inline ::std::string* TestExtremeDefaultValues::unsafe_arena_release_escaped_bytes() {
  22436. // @@protoc_insertion_point(field_unsafe_arena_release:protobuf_unittest.TestExtremeDefaultValues.escaped_bytes)
  22437. GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
  22438. clear_has_escaped_bytes();
  22439. return escaped_bytes_.UnsafeArenaRelease(&::protobuf_unittest::TestExtremeDefaultValues::_i_give_permission_to_break_this_code_default_escaped_bytes_.get(),
  22440. GetArenaNoVirtual());
  22441. }
  22442. inline void TestExtremeDefaultValues::unsafe_arena_set_allocated_escaped_bytes(
  22443. ::std::string* escaped_bytes) {
  22444. GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
  22445. if (escaped_bytes != NULL) {
  22446. set_has_escaped_bytes();
  22447. } else {
  22448. clear_has_escaped_bytes();
  22449. }
  22450. escaped_bytes_.UnsafeArenaSetAllocated(&::protobuf_unittest::TestExtremeDefaultValues::_i_give_permission_to_break_this_code_default_escaped_bytes_.get(),
  22451. escaped_bytes, GetArenaNoVirtual());
  22452. // @@protoc_insertion_point(field_unsafe_arena_set_allocated:protobuf_unittest.TestExtremeDefaultValues.escaped_bytes)
  22453. }
  22454. // optional uint32 large_uint32 = 2 [default = 4294967295];
  22455. inline bool TestExtremeDefaultValues::has_large_uint32() const {
  22456. return (_has_bits_[0] & 0x00000400u) != 0;
  22457. }
  22458. inline void TestExtremeDefaultValues::set_has_large_uint32() {
  22459. _has_bits_[0] |= 0x00000400u;
  22460. }
  22461. inline void TestExtremeDefaultValues::clear_has_large_uint32() {
  22462. _has_bits_[0] &= ~0x00000400u;
  22463. }
  22464. inline void TestExtremeDefaultValues::clear_large_uint32() {
  22465. large_uint32_ = 4294967295u;
  22466. clear_has_large_uint32();
  22467. }
  22468. inline ::google::protobuf::uint32 TestExtremeDefaultValues::large_uint32() const {
  22469. // @@protoc_insertion_point(field_get:protobuf_unittest.TestExtremeDefaultValues.large_uint32)
  22470. return large_uint32_;
  22471. }
  22472. inline void TestExtremeDefaultValues::set_large_uint32(::google::protobuf::uint32 value) {
  22473. set_has_large_uint32();
  22474. large_uint32_ = value;
  22475. // @@protoc_insertion_point(field_set:protobuf_unittest.TestExtremeDefaultValues.large_uint32)
  22476. }
  22477. // optional uint64 large_uint64 = 3 [default = 18446744073709551615];
  22478. inline bool TestExtremeDefaultValues::has_large_uint64() const {
  22479. return (_has_bits_[0] & 0x00000200u) != 0;
  22480. }
  22481. inline void TestExtremeDefaultValues::set_has_large_uint64() {
  22482. _has_bits_[0] |= 0x00000200u;
  22483. }
  22484. inline void TestExtremeDefaultValues::clear_has_large_uint64() {
  22485. _has_bits_[0] &= ~0x00000200u;
  22486. }
  22487. inline void TestExtremeDefaultValues::clear_large_uint64() {
  22488. large_uint64_ = GOOGLE_ULONGLONG(18446744073709551615);
  22489. clear_has_large_uint64();
  22490. }
  22491. inline ::google::protobuf::uint64 TestExtremeDefaultValues::large_uint64() const {
  22492. // @@protoc_insertion_point(field_get:protobuf_unittest.TestExtremeDefaultValues.large_uint64)
  22493. return large_uint64_;
  22494. }
  22495. inline void TestExtremeDefaultValues::set_large_uint64(::google::protobuf::uint64 value) {
  22496. set_has_large_uint64();
  22497. large_uint64_ = value;
  22498. // @@protoc_insertion_point(field_set:protobuf_unittest.TestExtremeDefaultValues.large_uint64)
  22499. }
  22500. // optional int32 small_int32 = 4 [default = -2147483647];
  22501. inline bool TestExtremeDefaultValues::has_small_int32() const {
  22502. return (_has_bits_[0] & 0x00000800u) != 0;
  22503. }
  22504. inline void TestExtremeDefaultValues::set_has_small_int32() {
  22505. _has_bits_[0] |= 0x00000800u;
  22506. }
  22507. inline void TestExtremeDefaultValues::clear_has_small_int32() {
  22508. _has_bits_[0] &= ~0x00000800u;
  22509. }
  22510. inline void TestExtremeDefaultValues::clear_small_int32() {
  22511. small_int32_ = -2147483647;
  22512. clear_has_small_int32();
  22513. }
  22514. inline ::google::protobuf::int32 TestExtremeDefaultValues::small_int32() const {
  22515. // @@protoc_insertion_point(field_get:protobuf_unittest.TestExtremeDefaultValues.small_int32)
  22516. return small_int32_;
  22517. }
  22518. inline void TestExtremeDefaultValues::set_small_int32(::google::protobuf::int32 value) {
  22519. set_has_small_int32();
  22520. small_int32_ = value;
  22521. // @@protoc_insertion_point(field_set:protobuf_unittest.TestExtremeDefaultValues.small_int32)
  22522. }
  22523. // optional int64 small_int64 = 5 [default = -9223372036854775807];
  22524. inline bool TestExtremeDefaultValues::has_small_int64() const {
  22525. return (_has_bits_[0] & 0x00001000u) != 0;
  22526. }
  22527. inline void TestExtremeDefaultValues::set_has_small_int64() {
  22528. _has_bits_[0] |= 0x00001000u;
  22529. }
  22530. inline void TestExtremeDefaultValues::clear_has_small_int64() {
  22531. _has_bits_[0] &= ~0x00001000u;
  22532. }
  22533. inline void TestExtremeDefaultValues::clear_small_int64() {
  22534. small_int64_ = GOOGLE_LONGLONG(-9223372036854775807);
  22535. clear_has_small_int64();
  22536. }
  22537. inline ::google::protobuf::int64 TestExtremeDefaultValues::small_int64() const {
  22538. // @@protoc_insertion_point(field_get:protobuf_unittest.TestExtremeDefaultValues.small_int64)
  22539. return small_int64_;
  22540. }
  22541. inline void TestExtremeDefaultValues::set_small_int64(::google::protobuf::int64 value) {
  22542. set_has_small_int64();
  22543. small_int64_ = value;
  22544. // @@protoc_insertion_point(field_set:protobuf_unittest.TestExtremeDefaultValues.small_int64)
  22545. }
  22546. // optional int32 really_small_int32 = 21 [default = -2147483648];
  22547. inline bool TestExtremeDefaultValues::has_really_small_int32() const {
  22548. return (_has_bits_[0] & 0x02000000u) != 0;
  22549. }
  22550. inline void TestExtremeDefaultValues::set_has_really_small_int32() {
  22551. _has_bits_[0] |= 0x02000000u;
  22552. }
  22553. inline void TestExtremeDefaultValues::clear_has_really_small_int32() {
  22554. _has_bits_[0] &= ~0x02000000u;
  22555. }
  22556. inline void TestExtremeDefaultValues::clear_really_small_int32() {
  22557. really_small_int32_ = (~0x7fffffff);
  22558. clear_has_really_small_int32();
  22559. }
  22560. inline ::google::protobuf::int32 TestExtremeDefaultValues::really_small_int32() const {
  22561. // @@protoc_insertion_point(field_get:protobuf_unittest.TestExtremeDefaultValues.really_small_int32)
  22562. return really_small_int32_;
  22563. }
  22564. inline void TestExtremeDefaultValues::set_really_small_int32(::google::protobuf::int32 value) {
  22565. set_has_really_small_int32();
  22566. really_small_int32_ = value;
  22567. // @@protoc_insertion_point(field_set:protobuf_unittest.TestExtremeDefaultValues.really_small_int32)
  22568. }
  22569. // optional int64 really_small_int64 = 22 [default = -9223372036854775808];
  22570. inline bool TestExtremeDefaultValues::has_really_small_int64() const {
  22571. return (_has_bits_[0] & 0x04000000u) != 0;
  22572. }
  22573. inline void TestExtremeDefaultValues::set_has_really_small_int64() {
  22574. _has_bits_[0] |= 0x04000000u;
  22575. }
  22576. inline void TestExtremeDefaultValues::clear_has_really_small_int64() {
  22577. _has_bits_[0] &= ~0x04000000u;
  22578. }
  22579. inline void TestExtremeDefaultValues::clear_really_small_int64() {
  22580. really_small_int64_ = GOOGLE_LONGLONG(~0x7fffffffffffffff);
  22581. clear_has_really_small_int64();
  22582. }
  22583. inline ::google::protobuf::int64 TestExtremeDefaultValues::really_small_int64() const {
  22584. // @@protoc_insertion_point(field_get:protobuf_unittest.TestExtremeDefaultValues.really_small_int64)
  22585. return really_small_int64_;
  22586. }
  22587. inline void TestExtremeDefaultValues::set_really_small_int64(::google::protobuf::int64 value) {
  22588. set_has_really_small_int64();
  22589. really_small_int64_ = value;
  22590. // @@protoc_insertion_point(field_set:protobuf_unittest.TestExtremeDefaultValues.really_small_int64)
  22591. }
  22592. // optional string utf8_string = 6 [default = "\341\210\264"];
  22593. inline bool TestExtremeDefaultValues::has_utf8_string() const {
  22594. return (_has_bits_[0] & 0x00000002u) != 0;
  22595. }
  22596. inline void TestExtremeDefaultValues::set_has_utf8_string() {
  22597. _has_bits_[0] |= 0x00000002u;
  22598. }
  22599. inline void TestExtremeDefaultValues::clear_has_utf8_string() {
  22600. _has_bits_[0] &= ~0x00000002u;
  22601. }
  22602. inline void TestExtremeDefaultValues::clear_utf8_string() {
  22603. utf8_string_.ClearToDefault(&::protobuf_unittest::TestExtremeDefaultValues::_i_give_permission_to_break_this_code_default_utf8_string_.get(), GetArenaNoVirtual());
  22604. clear_has_utf8_string();
  22605. }
  22606. inline const ::std::string& TestExtremeDefaultValues::utf8_string() const {
  22607. // @@protoc_insertion_point(field_get:protobuf_unittest.TestExtremeDefaultValues.utf8_string)
  22608. return utf8_string_.Get();
  22609. }
  22610. inline void TestExtremeDefaultValues::set_utf8_string(const ::std::string& value) {
  22611. set_has_utf8_string();
  22612. utf8_string_.Set(&::protobuf_unittest::TestExtremeDefaultValues::_i_give_permission_to_break_this_code_default_utf8_string_.get(), value, GetArenaNoVirtual());
  22613. // @@protoc_insertion_point(field_set:protobuf_unittest.TestExtremeDefaultValues.utf8_string)
  22614. }
  22615. #if LANG_CXX11
  22616. inline void TestExtremeDefaultValues::set_utf8_string(::std::string&& value) {
  22617. set_has_utf8_string();
  22618. utf8_string_.Set(
  22619. &::protobuf_unittest::TestExtremeDefaultValues::_i_give_permission_to_break_this_code_default_utf8_string_.get(), ::std::move(value), GetArenaNoVirtual());
  22620. // @@protoc_insertion_point(field_set_rvalue:protobuf_unittest.TestExtremeDefaultValues.utf8_string)
  22621. }
  22622. #endif
  22623. inline void TestExtremeDefaultValues::set_utf8_string(const char* value) {
  22624. GOOGLE_DCHECK(value != NULL);
  22625. set_has_utf8_string();
  22626. utf8_string_.Set(&::protobuf_unittest::TestExtremeDefaultValues::_i_give_permission_to_break_this_code_default_utf8_string_.get(), ::std::string(value),
  22627. GetArenaNoVirtual());
  22628. // @@protoc_insertion_point(field_set_char:protobuf_unittest.TestExtremeDefaultValues.utf8_string)
  22629. }
  22630. inline void TestExtremeDefaultValues::set_utf8_string(const char* value,
  22631. size_t size) {
  22632. set_has_utf8_string();
  22633. utf8_string_.Set(&::protobuf_unittest::TestExtremeDefaultValues::_i_give_permission_to_break_this_code_default_utf8_string_.get(), ::std::string(
  22634. reinterpret_cast<const char*>(value), size), GetArenaNoVirtual());
  22635. // @@protoc_insertion_point(field_set_pointer:protobuf_unittest.TestExtremeDefaultValues.utf8_string)
  22636. }
  22637. inline ::std::string* TestExtremeDefaultValues::mutable_utf8_string() {
  22638. set_has_utf8_string();
  22639. // @@protoc_insertion_point(field_mutable:protobuf_unittest.TestExtremeDefaultValues.utf8_string)
  22640. return utf8_string_.Mutable(&::protobuf_unittest::TestExtremeDefaultValues::_i_give_permission_to_break_this_code_default_utf8_string_.get(), GetArenaNoVirtual());
  22641. }
  22642. inline ::std::string* TestExtremeDefaultValues::release_utf8_string() {
  22643. // @@protoc_insertion_point(field_release:protobuf_unittest.TestExtremeDefaultValues.utf8_string)
  22644. if (!has_utf8_string()) {
  22645. return NULL;
  22646. }
  22647. clear_has_utf8_string();
  22648. return utf8_string_.ReleaseNonDefault(&::protobuf_unittest::TestExtremeDefaultValues::_i_give_permission_to_break_this_code_default_utf8_string_.get(), GetArenaNoVirtual());
  22649. }
  22650. inline void TestExtremeDefaultValues::set_allocated_utf8_string(::std::string* utf8_string) {
  22651. if (utf8_string != NULL) {
  22652. set_has_utf8_string();
  22653. } else {
  22654. clear_has_utf8_string();
  22655. }
  22656. utf8_string_.SetAllocated(&::protobuf_unittest::TestExtremeDefaultValues::_i_give_permission_to_break_this_code_default_utf8_string_.get(), utf8_string,
  22657. GetArenaNoVirtual());
  22658. // @@protoc_insertion_point(field_set_allocated:protobuf_unittest.TestExtremeDefaultValues.utf8_string)
  22659. }
  22660. inline ::std::string* TestExtremeDefaultValues::unsafe_arena_release_utf8_string() {
  22661. // @@protoc_insertion_point(field_unsafe_arena_release:protobuf_unittest.TestExtremeDefaultValues.utf8_string)
  22662. GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
  22663. clear_has_utf8_string();
  22664. return utf8_string_.UnsafeArenaRelease(&::protobuf_unittest::TestExtremeDefaultValues::_i_give_permission_to_break_this_code_default_utf8_string_.get(),
  22665. GetArenaNoVirtual());
  22666. }
  22667. inline void TestExtremeDefaultValues::unsafe_arena_set_allocated_utf8_string(
  22668. ::std::string* utf8_string) {
  22669. GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
  22670. if (utf8_string != NULL) {
  22671. set_has_utf8_string();
  22672. } else {
  22673. clear_has_utf8_string();
  22674. }
  22675. utf8_string_.UnsafeArenaSetAllocated(&::protobuf_unittest::TestExtremeDefaultValues::_i_give_permission_to_break_this_code_default_utf8_string_.get(),
  22676. utf8_string, GetArenaNoVirtual());
  22677. // @@protoc_insertion_point(field_unsafe_arena_set_allocated:protobuf_unittest.TestExtremeDefaultValues.utf8_string)
  22678. }
  22679. // optional float zero_float = 7 [default = 0];
  22680. inline bool TestExtremeDefaultValues::has_zero_float() const {
  22681. return (_has_bits_[0] & 0x00000100u) != 0;
  22682. }
  22683. inline void TestExtremeDefaultValues::set_has_zero_float() {
  22684. _has_bits_[0] |= 0x00000100u;
  22685. }
  22686. inline void TestExtremeDefaultValues::clear_has_zero_float() {
  22687. _has_bits_[0] &= ~0x00000100u;
  22688. }
  22689. inline void TestExtremeDefaultValues::clear_zero_float() {
  22690. zero_float_ = 0;
  22691. clear_has_zero_float();
  22692. }
  22693. inline float TestExtremeDefaultValues::zero_float() const {
  22694. // @@protoc_insertion_point(field_get:protobuf_unittest.TestExtremeDefaultValues.zero_float)
  22695. return zero_float_;
  22696. }
  22697. inline void TestExtremeDefaultValues::set_zero_float(float value) {
  22698. set_has_zero_float();
  22699. zero_float_ = value;
  22700. // @@protoc_insertion_point(field_set:protobuf_unittest.TestExtremeDefaultValues.zero_float)
  22701. }
  22702. // optional float one_float = 8 [default = 1];
  22703. inline bool TestExtremeDefaultValues::has_one_float() const {
  22704. return (_has_bits_[0] & 0x00002000u) != 0;
  22705. }
  22706. inline void TestExtremeDefaultValues::set_has_one_float() {
  22707. _has_bits_[0] |= 0x00002000u;
  22708. }
  22709. inline void TestExtremeDefaultValues::clear_has_one_float() {
  22710. _has_bits_[0] &= ~0x00002000u;
  22711. }
  22712. inline void TestExtremeDefaultValues::clear_one_float() {
  22713. one_float_ = 1;
  22714. clear_has_one_float();
  22715. }
  22716. inline float TestExtremeDefaultValues::one_float() const {
  22717. // @@protoc_insertion_point(field_get:protobuf_unittest.TestExtremeDefaultValues.one_float)
  22718. return one_float_;
  22719. }
  22720. inline void TestExtremeDefaultValues::set_one_float(float value) {
  22721. set_has_one_float();
  22722. one_float_ = value;
  22723. // @@protoc_insertion_point(field_set:protobuf_unittest.TestExtremeDefaultValues.one_float)
  22724. }
  22725. // optional float small_float = 9 [default = 1.5];
  22726. inline bool TestExtremeDefaultValues::has_small_float() const {
  22727. return (_has_bits_[0] & 0x00004000u) != 0;
  22728. }
  22729. inline void TestExtremeDefaultValues::set_has_small_float() {
  22730. _has_bits_[0] |= 0x00004000u;
  22731. }
  22732. inline void TestExtremeDefaultValues::clear_has_small_float() {
  22733. _has_bits_[0] &= ~0x00004000u;
  22734. }
  22735. inline void TestExtremeDefaultValues::clear_small_float() {
  22736. small_float_ = 1.5f;
  22737. clear_has_small_float();
  22738. }
  22739. inline float TestExtremeDefaultValues::small_float() const {
  22740. // @@protoc_insertion_point(field_get:protobuf_unittest.TestExtremeDefaultValues.small_float)
  22741. return small_float_;
  22742. }
  22743. inline void TestExtremeDefaultValues::set_small_float(float value) {
  22744. set_has_small_float();
  22745. small_float_ = value;
  22746. // @@protoc_insertion_point(field_set:protobuf_unittest.TestExtremeDefaultValues.small_float)
  22747. }
  22748. // optional float negative_one_float = 10 [default = -1];
  22749. inline bool TestExtremeDefaultValues::has_negative_one_float() const {
  22750. return (_has_bits_[0] & 0x00008000u) != 0;
  22751. }
  22752. inline void TestExtremeDefaultValues::set_has_negative_one_float() {
  22753. _has_bits_[0] |= 0x00008000u;
  22754. }
  22755. inline void TestExtremeDefaultValues::clear_has_negative_one_float() {
  22756. _has_bits_[0] &= ~0x00008000u;
  22757. }
  22758. inline void TestExtremeDefaultValues::clear_negative_one_float() {
  22759. negative_one_float_ = -1;
  22760. clear_has_negative_one_float();
  22761. }
  22762. inline float TestExtremeDefaultValues::negative_one_float() const {
  22763. // @@protoc_insertion_point(field_get:protobuf_unittest.TestExtremeDefaultValues.negative_one_float)
  22764. return negative_one_float_;
  22765. }
  22766. inline void TestExtremeDefaultValues::set_negative_one_float(float value) {
  22767. set_has_negative_one_float();
  22768. negative_one_float_ = value;
  22769. // @@protoc_insertion_point(field_set:protobuf_unittest.TestExtremeDefaultValues.negative_one_float)
  22770. }
  22771. // optional float negative_float = 11 [default = -1.5];
  22772. inline bool TestExtremeDefaultValues::has_negative_float() const {
  22773. return (_has_bits_[0] & 0x00010000u) != 0;
  22774. }
  22775. inline void TestExtremeDefaultValues::set_has_negative_float() {
  22776. _has_bits_[0] |= 0x00010000u;
  22777. }
  22778. inline void TestExtremeDefaultValues::clear_has_negative_float() {
  22779. _has_bits_[0] &= ~0x00010000u;
  22780. }
  22781. inline void TestExtremeDefaultValues::clear_negative_float() {
  22782. negative_float_ = -1.5f;
  22783. clear_has_negative_float();
  22784. }
  22785. inline float TestExtremeDefaultValues::negative_float() const {
  22786. // @@protoc_insertion_point(field_get:protobuf_unittest.TestExtremeDefaultValues.negative_float)
  22787. return negative_float_;
  22788. }
  22789. inline void TestExtremeDefaultValues::set_negative_float(float value) {
  22790. set_has_negative_float();
  22791. negative_float_ = value;
  22792. // @@protoc_insertion_point(field_set:protobuf_unittest.TestExtremeDefaultValues.negative_float)
  22793. }
  22794. // optional float large_float = 12 [default = 2e+08];
  22795. inline bool TestExtremeDefaultValues::has_large_float() const {
  22796. return (_has_bits_[0] & 0x00020000u) != 0;
  22797. }
  22798. inline void TestExtremeDefaultValues::set_has_large_float() {
  22799. _has_bits_[0] |= 0x00020000u;
  22800. }
  22801. inline void TestExtremeDefaultValues::clear_has_large_float() {
  22802. _has_bits_[0] &= ~0x00020000u;
  22803. }
  22804. inline void TestExtremeDefaultValues::clear_large_float() {
  22805. large_float_ = 2e+08f;
  22806. clear_has_large_float();
  22807. }
  22808. inline float TestExtremeDefaultValues::large_float() const {
  22809. // @@protoc_insertion_point(field_get:protobuf_unittest.TestExtremeDefaultValues.large_float)
  22810. return large_float_;
  22811. }
  22812. inline void TestExtremeDefaultValues::set_large_float(float value) {
  22813. set_has_large_float();
  22814. large_float_ = value;
  22815. // @@protoc_insertion_point(field_set:protobuf_unittest.TestExtremeDefaultValues.large_float)
  22816. }
  22817. // optional float small_negative_float = 13 [default = -8e-28];
  22818. inline bool TestExtremeDefaultValues::has_small_negative_float() const {
  22819. return (_has_bits_[0] & 0x00040000u) != 0;
  22820. }
  22821. inline void TestExtremeDefaultValues::set_has_small_negative_float() {
  22822. _has_bits_[0] |= 0x00040000u;
  22823. }
  22824. inline void TestExtremeDefaultValues::clear_has_small_negative_float() {
  22825. _has_bits_[0] &= ~0x00040000u;
  22826. }
  22827. inline void TestExtremeDefaultValues::clear_small_negative_float() {
  22828. small_negative_float_ = -8e-28f;
  22829. clear_has_small_negative_float();
  22830. }
  22831. inline float TestExtremeDefaultValues::small_negative_float() const {
  22832. // @@protoc_insertion_point(field_get:protobuf_unittest.TestExtremeDefaultValues.small_negative_float)
  22833. return small_negative_float_;
  22834. }
  22835. inline void TestExtremeDefaultValues::set_small_negative_float(float value) {
  22836. set_has_small_negative_float();
  22837. small_negative_float_ = value;
  22838. // @@protoc_insertion_point(field_set:protobuf_unittest.TestExtremeDefaultValues.small_negative_float)
  22839. }
  22840. // optional double inf_double = 14 [default = inf];
  22841. inline bool TestExtremeDefaultValues::has_inf_double() const {
  22842. return (_has_bits_[0] & 0x00080000u) != 0;
  22843. }
  22844. inline void TestExtremeDefaultValues::set_has_inf_double() {
  22845. _has_bits_[0] |= 0x00080000u;
  22846. }
  22847. inline void TestExtremeDefaultValues::clear_has_inf_double() {
  22848. _has_bits_[0] &= ~0x00080000u;
  22849. }
  22850. inline void TestExtremeDefaultValues::clear_inf_double() {
  22851. inf_double_ = ::google::protobuf::internal::Infinity();
  22852. clear_has_inf_double();
  22853. }
  22854. inline double TestExtremeDefaultValues::inf_double() const {
  22855. // @@protoc_insertion_point(field_get:protobuf_unittest.TestExtremeDefaultValues.inf_double)
  22856. return inf_double_;
  22857. }
  22858. inline void TestExtremeDefaultValues::set_inf_double(double value) {
  22859. set_has_inf_double();
  22860. inf_double_ = value;
  22861. // @@protoc_insertion_point(field_set:protobuf_unittest.TestExtremeDefaultValues.inf_double)
  22862. }
  22863. // optional double neg_inf_double = 15 [default = -inf];
  22864. inline bool TestExtremeDefaultValues::has_neg_inf_double() const {
  22865. return (_has_bits_[0] & 0x00100000u) != 0;
  22866. }
  22867. inline void TestExtremeDefaultValues::set_has_neg_inf_double() {
  22868. _has_bits_[0] |= 0x00100000u;
  22869. }
  22870. inline void TestExtremeDefaultValues::clear_has_neg_inf_double() {
  22871. _has_bits_[0] &= ~0x00100000u;
  22872. }
  22873. inline void TestExtremeDefaultValues::clear_neg_inf_double() {
  22874. neg_inf_double_ = -::google::protobuf::internal::Infinity();
  22875. clear_has_neg_inf_double();
  22876. }
  22877. inline double TestExtremeDefaultValues::neg_inf_double() const {
  22878. // @@protoc_insertion_point(field_get:protobuf_unittest.TestExtremeDefaultValues.neg_inf_double)
  22879. return neg_inf_double_;
  22880. }
  22881. inline void TestExtremeDefaultValues::set_neg_inf_double(double value) {
  22882. set_has_neg_inf_double();
  22883. neg_inf_double_ = value;
  22884. // @@protoc_insertion_point(field_set:protobuf_unittest.TestExtremeDefaultValues.neg_inf_double)
  22885. }
  22886. // optional double nan_double = 16 [default = nan];
  22887. inline bool TestExtremeDefaultValues::has_nan_double() const {
  22888. return (_has_bits_[0] & 0x00200000u) != 0;
  22889. }
  22890. inline void TestExtremeDefaultValues::set_has_nan_double() {
  22891. _has_bits_[0] |= 0x00200000u;
  22892. }
  22893. inline void TestExtremeDefaultValues::clear_has_nan_double() {
  22894. _has_bits_[0] &= ~0x00200000u;
  22895. }
  22896. inline void TestExtremeDefaultValues::clear_nan_double() {
  22897. nan_double_ = ::google::protobuf::internal::NaN();
  22898. clear_has_nan_double();
  22899. }
  22900. inline double TestExtremeDefaultValues::nan_double() const {
  22901. // @@protoc_insertion_point(field_get:protobuf_unittest.TestExtremeDefaultValues.nan_double)
  22902. return nan_double_;
  22903. }
  22904. inline void TestExtremeDefaultValues::set_nan_double(double value) {
  22905. set_has_nan_double();
  22906. nan_double_ = value;
  22907. // @@protoc_insertion_point(field_set:protobuf_unittest.TestExtremeDefaultValues.nan_double)
  22908. }
  22909. // optional float inf_float = 17 [default = inf];
  22910. inline bool TestExtremeDefaultValues::has_inf_float() const {
  22911. return (_has_bits_[0] & 0x00400000u) != 0;
  22912. }
  22913. inline void TestExtremeDefaultValues::set_has_inf_float() {
  22914. _has_bits_[0] |= 0x00400000u;
  22915. }
  22916. inline void TestExtremeDefaultValues::clear_has_inf_float() {
  22917. _has_bits_[0] &= ~0x00400000u;
  22918. }
  22919. inline void TestExtremeDefaultValues::clear_inf_float() {
  22920. inf_float_ = static_cast<float>(::google::protobuf::internal::Infinity());
  22921. clear_has_inf_float();
  22922. }
  22923. inline float TestExtremeDefaultValues::inf_float() const {
  22924. // @@protoc_insertion_point(field_get:protobuf_unittest.TestExtremeDefaultValues.inf_float)
  22925. return inf_float_;
  22926. }
  22927. inline void TestExtremeDefaultValues::set_inf_float(float value) {
  22928. set_has_inf_float();
  22929. inf_float_ = value;
  22930. // @@protoc_insertion_point(field_set:protobuf_unittest.TestExtremeDefaultValues.inf_float)
  22931. }
  22932. // optional float neg_inf_float = 18 [default = -inf];
  22933. inline bool TestExtremeDefaultValues::has_neg_inf_float() const {
  22934. return (_has_bits_[0] & 0x00800000u) != 0;
  22935. }
  22936. inline void TestExtremeDefaultValues::set_has_neg_inf_float() {
  22937. _has_bits_[0] |= 0x00800000u;
  22938. }
  22939. inline void TestExtremeDefaultValues::clear_has_neg_inf_float() {
  22940. _has_bits_[0] &= ~0x00800000u;
  22941. }
  22942. inline void TestExtremeDefaultValues::clear_neg_inf_float() {
  22943. neg_inf_float_ = static_cast<float>(-::google::protobuf::internal::Infinity());
  22944. clear_has_neg_inf_float();
  22945. }
  22946. inline float TestExtremeDefaultValues::neg_inf_float() const {
  22947. // @@protoc_insertion_point(field_get:protobuf_unittest.TestExtremeDefaultValues.neg_inf_float)
  22948. return neg_inf_float_;
  22949. }
  22950. inline void TestExtremeDefaultValues::set_neg_inf_float(float value) {
  22951. set_has_neg_inf_float();
  22952. neg_inf_float_ = value;
  22953. // @@protoc_insertion_point(field_set:protobuf_unittest.TestExtremeDefaultValues.neg_inf_float)
  22954. }
  22955. // optional float nan_float = 19 [default = nan];
  22956. inline bool TestExtremeDefaultValues::has_nan_float() const {
  22957. return (_has_bits_[0] & 0x01000000u) != 0;
  22958. }
  22959. inline void TestExtremeDefaultValues::set_has_nan_float() {
  22960. _has_bits_[0] |= 0x01000000u;
  22961. }
  22962. inline void TestExtremeDefaultValues::clear_has_nan_float() {
  22963. _has_bits_[0] &= ~0x01000000u;
  22964. }
  22965. inline void TestExtremeDefaultValues::clear_nan_float() {
  22966. nan_float_ = static_cast<float>(::google::protobuf::internal::NaN());
  22967. clear_has_nan_float();
  22968. }
  22969. inline float TestExtremeDefaultValues::nan_float() const {
  22970. // @@protoc_insertion_point(field_get:protobuf_unittest.TestExtremeDefaultValues.nan_float)
  22971. return nan_float_;
  22972. }
  22973. inline void TestExtremeDefaultValues::set_nan_float(float value) {
  22974. set_has_nan_float();
  22975. nan_float_ = value;
  22976. // @@protoc_insertion_point(field_set:protobuf_unittest.TestExtremeDefaultValues.nan_float)
  22977. }
  22978. // optional string cpp_trigraph = 20 [default = "? ? ?? ?? ??? ??/ ??-"];
  22979. inline bool TestExtremeDefaultValues::has_cpp_trigraph() const {
  22980. return (_has_bits_[0] & 0x00000004u) != 0;
  22981. }
  22982. inline void TestExtremeDefaultValues::set_has_cpp_trigraph() {
  22983. _has_bits_[0] |= 0x00000004u;
  22984. }
  22985. inline void TestExtremeDefaultValues::clear_has_cpp_trigraph() {
  22986. _has_bits_[0] &= ~0x00000004u;
  22987. }
  22988. inline void TestExtremeDefaultValues::clear_cpp_trigraph() {
  22989. cpp_trigraph_.ClearToDefault(&::protobuf_unittest::TestExtremeDefaultValues::_i_give_permission_to_break_this_code_default_cpp_trigraph_.get(), GetArenaNoVirtual());
  22990. clear_has_cpp_trigraph();
  22991. }
  22992. inline const ::std::string& TestExtremeDefaultValues::cpp_trigraph() const {
  22993. // @@protoc_insertion_point(field_get:protobuf_unittest.TestExtremeDefaultValues.cpp_trigraph)
  22994. return cpp_trigraph_.Get();
  22995. }
  22996. inline void TestExtremeDefaultValues::set_cpp_trigraph(const ::std::string& value) {
  22997. set_has_cpp_trigraph();
  22998. cpp_trigraph_.Set(&::protobuf_unittest::TestExtremeDefaultValues::_i_give_permission_to_break_this_code_default_cpp_trigraph_.get(), value, GetArenaNoVirtual());
  22999. // @@protoc_insertion_point(field_set:protobuf_unittest.TestExtremeDefaultValues.cpp_trigraph)
  23000. }
  23001. #if LANG_CXX11
  23002. inline void TestExtremeDefaultValues::set_cpp_trigraph(::std::string&& value) {
  23003. set_has_cpp_trigraph();
  23004. cpp_trigraph_.Set(
  23005. &::protobuf_unittest::TestExtremeDefaultValues::_i_give_permission_to_break_this_code_default_cpp_trigraph_.get(), ::std::move(value), GetArenaNoVirtual());
  23006. // @@protoc_insertion_point(field_set_rvalue:protobuf_unittest.TestExtremeDefaultValues.cpp_trigraph)
  23007. }
  23008. #endif
  23009. inline void TestExtremeDefaultValues::set_cpp_trigraph(const char* value) {
  23010. GOOGLE_DCHECK(value != NULL);
  23011. set_has_cpp_trigraph();
  23012. cpp_trigraph_.Set(&::protobuf_unittest::TestExtremeDefaultValues::_i_give_permission_to_break_this_code_default_cpp_trigraph_.get(), ::std::string(value),
  23013. GetArenaNoVirtual());
  23014. // @@protoc_insertion_point(field_set_char:protobuf_unittest.TestExtremeDefaultValues.cpp_trigraph)
  23015. }
  23016. inline void TestExtremeDefaultValues::set_cpp_trigraph(const char* value,
  23017. size_t size) {
  23018. set_has_cpp_trigraph();
  23019. cpp_trigraph_.Set(&::protobuf_unittest::TestExtremeDefaultValues::_i_give_permission_to_break_this_code_default_cpp_trigraph_.get(), ::std::string(
  23020. reinterpret_cast<const char*>(value), size), GetArenaNoVirtual());
  23021. // @@protoc_insertion_point(field_set_pointer:protobuf_unittest.TestExtremeDefaultValues.cpp_trigraph)
  23022. }
  23023. inline ::std::string* TestExtremeDefaultValues::mutable_cpp_trigraph() {
  23024. set_has_cpp_trigraph();
  23025. // @@protoc_insertion_point(field_mutable:protobuf_unittest.TestExtremeDefaultValues.cpp_trigraph)
  23026. return cpp_trigraph_.Mutable(&::protobuf_unittest::TestExtremeDefaultValues::_i_give_permission_to_break_this_code_default_cpp_trigraph_.get(), GetArenaNoVirtual());
  23027. }
  23028. inline ::std::string* TestExtremeDefaultValues::release_cpp_trigraph() {
  23029. // @@protoc_insertion_point(field_release:protobuf_unittest.TestExtremeDefaultValues.cpp_trigraph)
  23030. if (!has_cpp_trigraph()) {
  23031. return NULL;
  23032. }
  23033. clear_has_cpp_trigraph();
  23034. return cpp_trigraph_.ReleaseNonDefault(&::protobuf_unittest::TestExtremeDefaultValues::_i_give_permission_to_break_this_code_default_cpp_trigraph_.get(), GetArenaNoVirtual());
  23035. }
  23036. inline void TestExtremeDefaultValues::set_allocated_cpp_trigraph(::std::string* cpp_trigraph) {
  23037. if (cpp_trigraph != NULL) {
  23038. set_has_cpp_trigraph();
  23039. } else {
  23040. clear_has_cpp_trigraph();
  23041. }
  23042. cpp_trigraph_.SetAllocated(&::protobuf_unittest::TestExtremeDefaultValues::_i_give_permission_to_break_this_code_default_cpp_trigraph_.get(), cpp_trigraph,
  23043. GetArenaNoVirtual());
  23044. // @@protoc_insertion_point(field_set_allocated:protobuf_unittest.TestExtremeDefaultValues.cpp_trigraph)
  23045. }
  23046. inline ::std::string* TestExtremeDefaultValues::unsafe_arena_release_cpp_trigraph() {
  23047. // @@protoc_insertion_point(field_unsafe_arena_release:protobuf_unittest.TestExtremeDefaultValues.cpp_trigraph)
  23048. GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
  23049. clear_has_cpp_trigraph();
  23050. return cpp_trigraph_.UnsafeArenaRelease(&::protobuf_unittest::TestExtremeDefaultValues::_i_give_permission_to_break_this_code_default_cpp_trigraph_.get(),
  23051. GetArenaNoVirtual());
  23052. }
  23053. inline void TestExtremeDefaultValues::unsafe_arena_set_allocated_cpp_trigraph(
  23054. ::std::string* cpp_trigraph) {
  23055. GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
  23056. if (cpp_trigraph != NULL) {
  23057. set_has_cpp_trigraph();
  23058. } else {
  23059. clear_has_cpp_trigraph();
  23060. }
  23061. cpp_trigraph_.UnsafeArenaSetAllocated(&::protobuf_unittest::TestExtremeDefaultValues::_i_give_permission_to_break_this_code_default_cpp_trigraph_.get(),
  23062. cpp_trigraph, GetArenaNoVirtual());
  23063. // @@protoc_insertion_point(field_unsafe_arena_set_allocated:protobuf_unittest.TestExtremeDefaultValues.cpp_trigraph)
  23064. }
  23065. // optional string string_with_zero = 23 [default = "hel\000lo"];
  23066. inline bool TestExtremeDefaultValues::has_string_with_zero() const {
  23067. return (_has_bits_[0] & 0x00000008u) != 0;
  23068. }
  23069. inline void TestExtremeDefaultValues::set_has_string_with_zero() {
  23070. _has_bits_[0] |= 0x00000008u;
  23071. }
  23072. inline void TestExtremeDefaultValues::clear_has_string_with_zero() {
  23073. _has_bits_[0] &= ~0x00000008u;
  23074. }
  23075. inline void TestExtremeDefaultValues::clear_string_with_zero() {
  23076. string_with_zero_.ClearToDefault(&::protobuf_unittest::TestExtremeDefaultValues::_i_give_permission_to_break_this_code_default_string_with_zero_.get(), GetArenaNoVirtual());
  23077. clear_has_string_with_zero();
  23078. }
  23079. inline const ::std::string& TestExtremeDefaultValues::string_with_zero() const {
  23080. // @@protoc_insertion_point(field_get:protobuf_unittest.TestExtremeDefaultValues.string_with_zero)
  23081. return string_with_zero_.Get();
  23082. }
  23083. inline void TestExtremeDefaultValues::set_string_with_zero(const ::std::string& value) {
  23084. set_has_string_with_zero();
  23085. string_with_zero_.Set(&::protobuf_unittest::TestExtremeDefaultValues::_i_give_permission_to_break_this_code_default_string_with_zero_.get(), value, GetArenaNoVirtual());
  23086. // @@protoc_insertion_point(field_set:protobuf_unittest.TestExtremeDefaultValues.string_with_zero)
  23087. }
  23088. #if LANG_CXX11
  23089. inline void TestExtremeDefaultValues::set_string_with_zero(::std::string&& value) {
  23090. set_has_string_with_zero();
  23091. string_with_zero_.Set(
  23092. &::protobuf_unittest::TestExtremeDefaultValues::_i_give_permission_to_break_this_code_default_string_with_zero_.get(), ::std::move(value), GetArenaNoVirtual());
  23093. // @@protoc_insertion_point(field_set_rvalue:protobuf_unittest.TestExtremeDefaultValues.string_with_zero)
  23094. }
  23095. #endif
  23096. inline void TestExtremeDefaultValues::set_string_with_zero(const char* value) {
  23097. GOOGLE_DCHECK(value != NULL);
  23098. set_has_string_with_zero();
  23099. string_with_zero_.Set(&::protobuf_unittest::TestExtremeDefaultValues::_i_give_permission_to_break_this_code_default_string_with_zero_.get(), ::std::string(value),
  23100. GetArenaNoVirtual());
  23101. // @@protoc_insertion_point(field_set_char:protobuf_unittest.TestExtremeDefaultValues.string_with_zero)
  23102. }
  23103. inline void TestExtremeDefaultValues::set_string_with_zero(const char* value,
  23104. size_t size) {
  23105. set_has_string_with_zero();
  23106. string_with_zero_.Set(&::protobuf_unittest::TestExtremeDefaultValues::_i_give_permission_to_break_this_code_default_string_with_zero_.get(), ::std::string(
  23107. reinterpret_cast<const char*>(value), size), GetArenaNoVirtual());
  23108. // @@protoc_insertion_point(field_set_pointer:protobuf_unittest.TestExtremeDefaultValues.string_with_zero)
  23109. }
  23110. inline ::std::string* TestExtremeDefaultValues::mutable_string_with_zero() {
  23111. set_has_string_with_zero();
  23112. // @@protoc_insertion_point(field_mutable:protobuf_unittest.TestExtremeDefaultValues.string_with_zero)
  23113. return string_with_zero_.Mutable(&::protobuf_unittest::TestExtremeDefaultValues::_i_give_permission_to_break_this_code_default_string_with_zero_.get(), GetArenaNoVirtual());
  23114. }
  23115. inline ::std::string* TestExtremeDefaultValues::release_string_with_zero() {
  23116. // @@protoc_insertion_point(field_release:protobuf_unittest.TestExtremeDefaultValues.string_with_zero)
  23117. if (!has_string_with_zero()) {
  23118. return NULL;
  23119. }
  23120. clear_has_string_with_zero();
  23121. return string_with_zero_.ReleaseNonDefault(&::protobuf_unittest::TestExtremeDefaultValues::_i_give_permission_to_break_this_code_default_string_with_zero_.get(), GetArenaNoVirtual());
  23122. }
  23123. inline void TestExtremeDefaultValues::set_allocated_string_with_zero(::std::string* string_with_zero) {
  23124. if (string_with_zero != NULL) {
  23125. set_has_string_with_zero();
  23126. } else {
  23127. clear_has_string_with_zero();
  23128. }
  23129. string_with_zero_.SetAllocated(&::protobuf_unittest::TestExtremeDefaultValues::_i_give_permission_to_break_this_code_default_string_with_zero_.get(), string_with_zero,
  23130. GetArenaNoVirtual());
  23131. // @@protoc_insertion_point(field_set_allocated:protobuf_unittest.TestExtremeDefaultValues.string_with_zero)
  23132. }
  23133. inline ::std::string* TestExtremeDefaultValues::unsafe_arena_release_string_with_zero() {
  23134. // @@protoc_insertion_point(field_unsafe_arena_release:protobuf_unittest.TestExtremeDefaultValues.string_with_zero)
  23135. GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
  23136. clear_has_string_with_zero();
  23137. return string_with_zero_.UnsafeArenaRelease(&::protobuf_unittest::TestExtremeDefaultValues::_i_give_permission_to_break_this_code_default_string_with_zero_.get(),
  23138. GetArenaNoVirtual());
  23139. }
  23140. inline void TestExtremeDefaultValues::unsafe_arena_set_allocated_string_with_zero(
  23141. ::std::string* string_with_zero) {
  23142. GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
  23143. if (string_with_zero != NULL) {
  23144. set_has_string_with_zero();
  23145. } else {
  23146. clear_has_string_with_zero();
  23147. }
  23148. string_with_zero_.UnsafeArenaSetAllocated(&::protobuf_unittest::TestExtremeDefaultValues::_i_give_permission_to_break_this_code_default_string_with_zero_.get(),
  23149. string_with_zero, GetArenaNoVirtual());
  23150. // @@protoc_insertion_point(field_unsafe_arena_set_allocated:protobuf_unittest.TestExtremeDefaultValues.string_with_zero)
  23151. }
  23152. // optional bytes bytes_with_zero = 24 [default = "wor\000ld"];
  23153. inline bool TestExtremeDefaultValues::has_bytes_with_zero() const {
  23154. return (_has_bits_[0] & 0x00000010u) != 0;
  23155. }
  23156. inline void TestExtremeDefaultValues::set_has_bytes_with_zero() {
  23157. _has_bits_[0] |= 0x00000010u;
  23158. }
  23159. inline void TestExtremeDefaultValues::clear_has_bytes_with_zero() {
  23160. _has_bits_[0] &= ~0x00000010u;
  23161. }
  23162. inline void TestExtremeDefaultValues::clear_bytes_with_zero() {
  23163. bytes_with_zero_.ClearToDefault(&::protobuf_unittest::TestExtremeDefaultValues::_i_give_permission_to_break_this_code_default_bytes_with_zero_.get(), GetArenaNoVirtual());
  23164. clear_has_bytes_with_zero();
  23165. }
  23166. inline const ::std::string& TestExtremeDefaultValues::bytes_with_zero() const {
  23167. // @@protoc_insertion_point(field_get:protobuf_unittest.TestExtremeDefaultValues.bytes_with_zero)
  23168. return bytes_with_zero_.Get();
  23169. }
  23170. inline void TestExtremeDefaultValues::set_bytes_with_zero(const ::std::string& value) {
  23171. set_has_bytes_with_zero();
  23172. bytes_with_zero_.Set(&::protobuf_unittest::TestExtremeDefaultValues::_i_give_permission_to_break_this_code_default_bytes_with_zero_.get(), value, GetArenaNoVirtual());
  23173. // @@protoc_insertion_point(field_set:protobuf_unittest.TestExtremeDefaultValues.bytes_with_zero)
  23174. }
  23175. #if LANG_CXX11
  23176. inline void TestExtremeDefaultValues::set_bytes_with_zero(::std::string&& value) {
  23177. set_has_bytes_with_zero();
  23178. bytes_with_zero_.Set(
  23179. &::protobuf_unittest::TestExtremeDefaultValues::_i_give_permission_to_break_this_code_default_bytes_with_zero_.get(), ::std::move(value), GetArenaNoVirtual());
  23180. // @@protoc_insertion_point(field_set_rvalue:protobuf_unittest.TestExtremeDefaultValues.bytes_with_zero)
  23181. }
  23182. #endif
  23183. inline void TestExtremeDefaultValues::set_bytes_with_zero(const char* value) {
  23184. GOOGLE_DCHECK(value != NULL);
  23185. set_has_bytes_with_zero();
  23186. bytes_with_zero_.Set(&::protobuf_unittest::TestExtremeDefaultValues::_i_give_permission_to_break_this_code_default_bytes_with_zero_.get(), ::std::string(value),
  23187. GetArenaNoVirtual());
  23188. // @@protoc_insertion_point(field_set_char:protobuf_unittest.TestExtremeDefaultValues.bytes_with_zero)
  23189. }
  23190. inline void TestExtremeDefaultValues::set_bytes_with_zero(const void* value,
  23191. size_t size) {
  23192. set_has_bytes_with_zero();
  23193. bytes_with_zero_.Set(&::protobuf_unittest::TestExtremeDefaultValues::_i_give_permission_to_break_this_code_default_bytes_with_zero_.get(), ::std::string(
  23194. reinterpret_cast<const char*>(value), size), GetArenaNoVirtual());
  23195. // @@protoc_insertion_point(field_set_pointer:protobuf_unittest.TestExtremeDefaultValues.bytes_with_zero)
  23196. }
  23197. inline ::std::string* TestExtremeDefaultValues::mutable_bytes_with_zero() {
  23198. set_has_bytes_with_zero();
  23199. // @@protoc_insertion_point(field_mutable:protobuf_unittest.TestExtremeDefaultValues.bytes_with_zero)
  23200. return bytes_with_zero_.Mutable(&::protobuf_unittest::TestExtremeDefaultValues::_i_give_permission_to_break_this_code_default_bytes_with_zero_.get(), GetArenaNoVirtual());
  23201. }
  23202. inline ::std::string* TestExtremeDefaultValues::release_bytes_with_zero() {
  23203. // @@protoc_insertion_point(field_release:protobuf_unittest.TestExtremeDefaultValues.bytes_with_zero)
  23204. if (!has_bytes_with_zero()) {
  23205. return NULL;
  23206. }
  23207. clear_has_bytes_with_zero();
  23208. return bytes_with_zero_.ReleaseNonDefault(&::protobuf_unittest::TestExtremeDefaultValues::_i_give_permission_to_break_this_code_default_bytes_with_zero_.get(), GetArenaNoVirtual());
  23209. }
  23210. inline void TestExtremeDefaultValues::set_allocated_bytes_with_zero(::std::string* bytes_with_zero) {
  23211. if (bytes_with_zero != NULL) {
  23212. set_has_bytes_with_zero();
  23213. } else {
  23214. clear_has_bytes_with_zero();
  23215. }
  23216. bytes_with_zero_.SetAllocated(&::protobuf_unittest::TestExtremeDefaultValues::_i_give_permission_to_break_this_code_default_bytes_with_zero_.get(), bytes_with_zero,
  23217. GetArenaNoVirtual());
  23218. // @@protoc_insertion_point(field_set_allocated:protobuf_unittest.TestExtremeDefaultValues.bytes_with_zero)
  23219. }
  23220. inline ::std::string* TestExtremeDefaultValues::unsafe_arena_release_bytes_with_zero() {
  23221. // @@protoc_insertion_point(field_unsafe_arena_release:protobuf_unittest.TestExtremeDefaultValues.bytes_with_zero)
  23222. GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
  23223. clear_has_bytes_with_zero();
  23224. return bytes_with_zero_.UnsafeArenaRelease(&::protobuf_unittest::TestExtremeDefaultValues::_i_give_permission_to_break_this_code_default_bytes_with_zero_.get(),
  23225. GetArenaNoVirtual());
  23226. }
  23227. inline void TestExtremeDefaultValues::unsafe_arena_set_allocated_bytes_with_zero(
  23228. ::std::string* bytes_with_zero) {
  23229. GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
  23230. if (bytes_with_zero != NULL) {
  23231. set_has_bytes_with_zero();
  23232. } else {
  23233. clear_has_bytes_with_zero();
  23234. }
  23235. bytes_with_zero_.UnsafeArenaSetAllocated(&::protobuf_unittest::TestExtremeDefaultValues::_i_give_permission_to_break_this_code_default_bytes_with_zero_.get(),
  23236. bytes_with_zero, GetArenaNoVirtual());
  23237. // @@protoc_insertion_point(field_unsafe_arena_set_allocated:protobuf_unittest.TestExtremeDefaultValues.bytes_with_zero)
  23238. }
  23239. // optional string string_piece_with_zero = 25 [default = "ab\000c", ctype = STRING_PIECE];
  23240. inline bool TestExtremeDefaultValues::has_string_piece_with_zero() const {
  23241. return (_has_bits_[0] & 0x00000020u) != 0;
  23242. }
  23243. inline void TestExtremeDefaultValues::set_has_string_piece_with_zero() {
  23244. _has_bits_[0] |= 0x00000020u;
  23245. }
  23246. inline void TestExtremeDefaultValues::clear_has_string_piece_with_zero() {
  23247. _has_bits_[0] &= ~0x00000020u;
  23248. }
  23249. inline void TestExtremeDefaultValues::clear_string_piece_with_zero() {
  23250. string_piece_with_zero_.ClearToDefault(&::protobuf_unittest::TestExtremeDefaultValues::_i_give_permission_to_break_this_code_default_string_piece_with_zero_.get(), GetArenaNoVirtual());
  23251. clear_has_string_piece_with_zero();
  23252. }
  23253. inline const ::std::string& TestExtremeDefaultValues::string_piece_with_zero() const {
  23254. // @@protoc_insertion_point(field_get:protobuf_unittest.TestExtremeDefaultValues.string_piece_with_zero)
  23255. return string_piece_with_zero_.Get();
  23256. }
  23257. inline void TestExtremeDefaultValues::set_string_piece_with_zero(const ::std::string& value) {
  23258. set_has_string_piece_with_zero();
  23259. string_piece_with_zero_.Set(&::protobuf_unittest::TestExtremeDefaultValues::_i_give_permission_to_break_this_code_default_string_piece_with_zero_.get(), value, GetArenaNoVirtual());
  23260. // @@protoc_insertion_point(field_set:protobuf_unittest.TestExtremeDefaultValues.string_piece_with_zero)
  23261. }
  23262. #if LANG_CXX11
  23263. inline void TestExtremeDefaultValues::set_string_piece_with_zero(::std::string&& value) {
  23264. set_has_string_piece_with_zero();
  23265. string_piece_with_zero_.Set(
  23266. &::protobuf_unittest::TestExtremeDefaultValues::_i_give_permission_to_break_this_code_default_string_piece_with_zero_.get(), ::std::move(value), GetArenaNoVirtual());
  23267. // @@protoc_insertion_point(field_set_rvalue:protobuf_unittest.TestExtremeDefaultValues.string_piece_with_zero)
  23268. }
  23269. #endif
  23270. inline void TestExtremeDefaultValues::set_string_piece_with_zero(const char* value) {
  23271. GOOGLE_DCHECK(value != NULL);
  23272. set_has_string_piece_with_zero();
  23273. string_piece_with_zero_.Set(&::protobuf_unittest::TestExtremeDefaultValues::_i_give_permission_to_break_this_code_default_string_piece_with_zero_.get(), ::std::string(value),
  23274. GetArenaNoVirtual());
  23275. // @@protoc_insertion_point(field_set_char:protobuf_unittest.TestExtremeDefaultValues.string_piece_with_zero)
  23276. }
  23277. inline void TestExtremeDefaultValues::set_string_piece_with_zero(const char* value,
  23278. size_t size) {
  23279. set_has_string_piece_with_zero();
  23280. string_piece_with_zero_.Set(&::protobuf_unittest::TestExtremeDefaultValues::_i_give_permission_to_break_this_code_default_string_piece_with_zero_.get(), ::std::string(
  23281. reinterpret_cast<const char*>(value), size), GetArenaNoVirtual());
  23282. // @@protoc_insertion_point(field_set_pointer:protobuf_unittest.TestExtremeDefaultValues.string_piece_with_zero)
  23283. }
  23284. inline ::std::string* TestExtremeDefaultValues::mutable_string_piece_with_zero() {
  23285. set_has_string_piece_with_zero();
  23286. // @@protoc_insertion_point(field_mutable:protobuf_unittest.TestExtremeDefaultValues.string_piece_with_zero)
  23287. return string_piece_with_zero_.Mutable(&::protobuf_unittest::TestExtremeDefaultValues::_i_give_permission_to_break_this_code_default_string_piece_with_zero_.get(), GetArenaNoVirtual());
  23288. }
  23289. inline ::std::string* TestExtremeDefaultValues::release_string_piece_with_zero() {
  23290. // @@protoc_insertion_point(field_release:protobuf_unittest.TestExtremeDefaultValues.string_piece_with_zero)
  23291. if (!has_string_piece_with_zero()) {
  23292. return NULL;
  23293. }
  23294. clear_has_string_piece_with_zero();
  23295. return string_piece_with_zero_.ReleaseNonDefault(&::protobuf_unittest::TestExtremeDefaultValues::_i_give_permission_to_break_this_code_default_string_piece_with_zero_.get(), GetArenaNoVirtual());
  23296. }
  23297. inline void TestExtremeDefaultValues::set_allocated_string_piece_with_zero(::std::string* string_piece_with_zero) {
  23298. if (string_piece_with_zero != NULL) {
  23299. set_has_string_piece_with_zero();
  23300. } else {
  23301. clear_has_string_piece_with_zero();
  23302. }
  23303. string_piece_with_zero_.SetAllocated(&::protobuf_unittest::TestExtremeDefaultValues::_i_give_permission_to_break_this_code_default_string_piece_with_zero_.get(), string_piece_with_zero,
  23304. GetArenaNoVirtual());
  23305. // @@protoc_insertion_point(field_set_allocated:protobuf_unittest.TestExtremeDefaultValues.string_piece_with_zero)
  23306. }
  23307. inline ::std::string* TestExtremeDefaultValues::unsafe_arena_release_string_piece_with_zero() {
  23308. // @@protoc_insertion_point(field_unsafe_arena_release:protobuf_unittest.TestExtremeDefaultValues.string_piece_with_zero)
  23309. GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
  23310. clear_has_string_piece_with_zero();
  23311. return string_piece_with_zero_.UnsafeArenaRelease(&::protobuf_unittest::TestExtremeDefaultValues::_i_give_permission_to_break_this_code_default_string_piece_with_zero_.get(),
  23312. GetArenaNoVirtual());
  23313. }
  23314. inline void TestExtremeDefaultValues::unsafe_arena_set_allocated_string_piece_with_zero(
  23315. ::std::string* string_piece_with_zero) {
  23316. GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
  23317. if (string_piece_with_zero != NULL) {
  23318. set_has_string_piece_with_zero();
  23319. } else {
  23320. clear_has_string_piece_with_zero();
  23321. }
  23322. string_piece_with_zero_.UnsafeArenaSetAllocated(&::protobuf_unittest::TestExtremeDefaultValues::_i_give_permission_to_break_this_code_default_string_piece_with_zero_.get(),
  23323. string_piece_with_zero, GetArenaNoVirtual());
  23324. // @@protoc_insertion_point(field_unsafe_arena_set_allocated:protobuf_unittest.TestExtremeDefaultValues.string_piece_with_zero)
  23325. }
  23326. // optional string cord_with_zero = 26 [default = "12\0003", ctype = CORD];
  23327. inline bool TestExtremeDefaultValues::has_cord_with_zero() const {
  23328. return (_has_bits_[0] & 0x00000040u) != 0;
  23329. }
  23330. inline void TestExtremeDefaultValues::set_has_cord_with_zero() {
  23331. _has_bits_[0] |= 0x00000040u;
  23332. }
  23333. inline void TestExtremeDefaultValues::clear_has_cord_with_zero() {
  23334. _has_bits_[0] &= ~0x00000040u;
  23335. }
  23336. inline void TestExtremeDefaultValues::clear_cord_with_zero() {
  23337. cord_with_zero_.ClearToDefault(&::protobuf_unittest::TestExtremeDefaultValues::_i_give_permission_to_break_this_code_default_cord_with_zero_.get(), GetArenaNoVirtual());
  23338. clear_has_cord_with_zero();
  23339. }
  23340. inline const ::std::string& TestExtremeDefaultValues::cord_with_zero() const {
  23341. // @@protoc_insertion_point(field_get:protobuf_unittest.TestExtremeDefaultValues.cord_with_zero)
  23342. return cord_with_zero_.Get();
  23343. }
  23344. inline void TestExtremeDefaultValues::set_cord_with_zero(const ::std::string& value) {
  23345. set_has_cord_with_zero();
  23346. cord_with_zero_.Set(&::protobuf_unittest::TestExtremeDefaultValues::_i_give_permission_to_break_this_code_default_cord_with_zero_.get(), value, GetArenaNoVirtual());
  23347. // @@protoc_insertion_point(field_set:protobuf_unittest.TestExtremeDefaultValues.cord_with_zero)
  23348. }
  23349. #if LANG_CXX11
  23350. inline void TestExtremeDefaultValues::set_cord_with_zero(::std::string&& value) {
  23351. set_has_cord_with_zero();
  23352. cord_with_zero_.Set(
  23353. &::protobuf_unittest::TestExtremeDefaultValues::_i_give_permission_to_break_this_code_default_cord_with_zero_.get(), ::std::move(value), GetArenaNoVirtual());
  23354. // @@protoc_insertion_point(field_set_rvalue:protobuf_unittest.TestExtremeDefaultValues.cord_with_zero)
  23355. }
  23356. #endif
  23357. inline void TestExtremeDefaultValues::set_cord_with_zero(const char* value) {
  23358. GOOGLE_DCHECK(value != NULL);
  23359. set_has_cord_with_zero();
  23360. cord_with_zero_.Set(&::protobuf_unittest::TestExtremeDefaultValues::_i_give_permission_to_break_this_code_default_cord_with_zero_.get(), ::std::string(value),
  23361. GetArenaNoVirtual());
  23362. // @@protoc_insertion_point(field_set_char:protobuf_unittest.TestExtremeDefaultValues.cord_with_zero)
  23363. }
  23364. inline void TestExtremeDefaultValues::set_cord_with_zero(const char* value,
  23365. size_t size) {
  23366. set_has_cord_with_zero();
  23367. cord_with_zero_.Set(&::protobuf_unittest::TestExtremeDefaultValues::_i_give_permission_to_break_this_code_default_cord_with_zero_.get(), ::std::string(
  23368. reinterpret_cast<const char*>(value), size), GetArenaNoVirtual());
  23369. // @@protoc_insertion_point(field_set_pointer:protobuf_unittest.TestExtremeDefaultValues.cord_with_zero)
  23370. }
  23371. inline ::std::string* TestExtremeDefaultValues::mutable_cord_with_zero() {
  23372. set_has_cord_with_zero();
  23373. // @@protoc_insertion_point(field_mutable:protobuf_unittest.TestExtremeDefaultValues.cord_with_zero)
  23374. return cord_with_zero_.Mutable(&::protobuf_unittest::TestExtremeDefaultValues::_i_give_permission_to_break_this_code_default_cord_with_zero_.get(), GetArenaNoVirtual());
  23375. }
  23376. inline ::std::string* TestExtremeDefaultValues::release_cord_with_zero() {
  23377. // @@protoc_insertion_point(field_release:protobuf_unittest.TestExtremeDefaultValues.cord_with_zero)
  23378. if (!has_cord_with_zero()) {
  23379. return NULL;
  23380. }
  23381. clear_has_cord_with_zero();
  23382. return cord_with_zero_.ReleaseNonDefault(&::protobuf_unittest::TestExtremeDefaultValues::_i_give_permission_to_break_this_code_default_cord_with_zero_.get(), GetArenaNoVirtual());
  23383. }
  23384. inline void TestExtremeDefaultValues::set_allocated_cord_with_zero(::std::string* cord_with_zero) {
  23385. if (cord_with_zero != NULL) {
  23386. set_has_cord_with_zero();
  23387. } else {
  23388. clear_has_cord_with_zero();
  23389. }
  23390. cord_with_zero_.SetAllocated(&::protobuf_unittest::TestExtremeDefaultValues::_i_give_permission_to_break_this_code_default_cord_with_zero_.get(), cord_with_zero,
  23391. GetArenaNoVirtual());
  23392. // @@protoc_insertion_point(field_set_allocated:protobuf_unittest.TestExtremeDefaultValues.cord_with_zero)
  23393. }
  23394. inline ::std::string* TestExtremeDefaultValues::unsafe_arena_release_cord_with_zero() {
  23395. // @@protoc_insertion_point(field_unsafe_arena_release:protobuf_unittest.TestExtremeDefaultValues.cord_with_zero)
  23396. GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
  23397. clear_has_cord_with_zero();
  23398. return cord_with_zero_.UnsafeArenaRelease(&::protobuf_unittest::TestExtremeDefaultValues::_i_give_permission_to_break_this_code_default_cord_with_zero_.get(),
  23399. GetArenaNoVirtual());
  23400. }
  23401. inline void TestExtremeDefaultValues::unsafe_arena_set_allocated_cord_with_zero(
  23402. ::std::string* cord_with_zero) {
  23403. GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
  23404. if (cord_with_zero != NULL) {
  23405. set_has_cord_with_zero();
  23406. } else {
  23407. clear_has_cord_with_zero();
  23408. }
  23409. cord_with_zero_.UnsafeArenaSetAllocated(&::protobuf_unittest::TestExtremeDefaultValues::_i_give_permission_to_break_this_code_default_cord_with_zero_.get(),
  23410. cord_with_zero, GetArenaNoVirtual());
  23411. // @@protoc_insertion_point(field_unsafe_arena_set_allocated:protobuf_unittest.TestExtremeDefaultValues.cord_with_zero)
  23412. }
  23413. // optional string replacement_string = 27 [default = "${unknown}"];
  23414. inline bool TestExtremeDefaultValues::has_replacement_string() const {
  23415. return (_has_bits_[0] & 0x00000080u) != 0;
  23416. }
  23417. inline void TestExtremeDefaultValues::set_has_replacement_string() {
  23418. _has_bits_[0] |= 0x00000080u;
  23419. }
  23420. inline void TestExtremeDefaultValues::clear_has_replacement_string() {
  23421. _has_bits_[0] &= ~0x00000080u;
  23422. }
  23423. inline void TestExtremeDefaultValues::clear_replacement_string() {
  23424. replacement_string_.ClearToDefault(&::protobuf_unittest::TestExtremeDefaultValues::_i_give_permission_to_break_this_code_default_replacement_string_.get(), GetArenaNoVirtual());
  23425. clear_has_replacement_string();
  23426. }
  23427. inline const ::std::string& TestExtremeDefaultValues::replacement_string() const {
  23428. // @@protoc_insertion_point(field_get:protobuf_unittest.TestExtremeDefaultValues.replacement_string)
  23429. return replacement_string_.Get();
  23430. }
  23431. inline void TestExtremeDefaultValues::set_replacement_string(const ::std::string& value) {
  23432. set_has_replacement_string();
  23433. replacement_string_.Set(&::protobuf_unittest::TestExtremeDefaultValues::_i_give_permission_to_break_this_code_default_replacement_string_.get(), value, GetArenaNoVirtual());
  23434. // @@protoc_insertion_point(field_set:protobuf_unittest.TestExtremeDefaultValues.replacement_string)
  23435. }
  23436. #if LANG_CXX11
  23437. inline void TestExtremeDefaultValues::set_replacement_string(::std::string&& value) {
  23438. set_has_replacement_string();
  23439. replacement_string_.Set(
  23440. &::protobuf_unittest::TestExtremeDefaultValues::_i_give_permission_to_break_this_code_default_replacement_string_.get(), ::std::move(value), GetArenaNoVirtual());
  23441. // @@protoc_insertion_point(field_set_rvalue:protobuf_unittest.TestExtremeDefaultValues.replacement_string)
  23442. }
  23443. #endif
  23444. inline void TestExtremeDefaultValues::set_replacement_string(const char* value) {
  23445. GOOGLE_DCHECK(value != NULL);
  23446. set_has_replacement_string();
  23447. replacement_string_.Set(&::protobuf_unittest::TestExtremeDefaultValues::_i_give_permission_to_break_this_code_default_replacement_string_.get(), ::std::string(value),
  23448. GetArenaNoVirtual());
  23449. // @@protoc_insertion_point(field_set_char:protobuf_unittest.TestExtremeDefaultValues.replacement_string)
  23450. }
  23451. inline void TestExtremeDefaultValues::set_replacement_string(const char* value,
  23452. size_t size) {
  23453. set_has_replacement_string();
  23454. replacement_string_.Set(&::protobuf_unittest::TestExtremeDefaultValues::_i_give_permission_to_break_this_code_default_replacement_string_.get(), ::std::string(
  23455. reinterpret_cast<const char*>(value), size), GetArenaNoVirtual());
  23456. // @@protoc_insertion_point(field_set_pointer:protobuf_unittest.TestExtremeDefaultValues.replacement_string)
  23457. }
  23458. inline ::std::string* TestExtremeDefaultValues::mutable_replacement_string() {
  23459. set_has_replacement_string();
  23460. // @@protoc_insertion_point(field_mutable:protobuf_unittest.TestExtremeDefaultValues.replacement_string)
  23461. return replacement_string_.Mutable(&::protobuf_unittest::TestExtremeDefaultValues::_i_give_permission_to_break_this_code_default_replacement_string_.get(), GetArenaNoVirtual());
  23462. }
  23463. inline ::std::string* TestExtremeDefaultValues::release_replacement_string() {
  23464. // @@protoc_insertion_point(field_release:protobuf_unittest.TestExtremeDefaultValues.replacement_string)
  23465. if (!has_replacement_string()) {
  23466. return NULL;
  23467. }
  23468. clear_has_replacement_string();
  23469. return replacement_string_.ReleaseNonDefault(&::protobuf_unittest::TestExtremeDefaultValues::_i_give_permission_to_break_this_code_default_replacement_string_.get(), GetArenaNoVirtual());
  23470. }
  23471. inline void TestExtremeDefaultValues::set_allocated_replacement_string(::std::string* replacement_string) {
  23472. if (replacement_string != NULL) {
  23473. set_has_replacement_string();
  23474. } else {
  23475. clear_has_replacement_string();
  23476. }
  23477. replacement_string_.SetAllocated(&::protobuf_unittest::TestExtremeDefaultValues::_i_give_permission_to_break_this_code_default_replacement_string_.get(), replacement_string,
  23478. GetArenaNoVirtual());
  23479. // @@protoc_insertion_point(field_set_allocated:protobuf_unittest.TestExtremeDefaultValues.replacement_string)
  23480. }
  23481. inline ::std::string* TestExtremeDefaultValues::unsafe_arena_release_replacement_string() {
  23482. // @@protoc_insertion_point(field_unsafe_arena_release:protobuf_unittest.TestExtremeDefaultValues.replacement_string)
  23483. GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
  23484. clear_has_replacement_string();
  23485. return replacement_string_.UnsafeArenaRelease(&::protobuf_unittest::TestExtremeDefaultValues::_i_give_permission_to_break_this_code_default_replacement_string_.get(),
  23486. GetArenaNoVirtual());
  23487. }
  23488. inline void TestExtremeDefaultValues::unsafe_arena_set_allocated_replacement_string(
  23489. ::std::string* replacement_string) {
  23490. GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
  23491. if (replacement_string != NULL) {
  23492. set_has_replacement_string();
  23493. } else {
  23494. clear_has_replacement_string();
  23495. }
  23496. replacement_string_.UnsafeArenaSetAllocated(&::protobuf_unittest::TestExtremeDefaultValues::_i_give_permission_to_break_this_code_default_replacement_string_.get(),
  23497. replacement_string, GetArenaNoVirtual());
  23498. // @@protoc_insertion_point(field_unsafe_arena_set_allocated:protobuf_unittest.TestExtremeDefaultValues.replacement_string)
  23499. }
  23500. // -------------------------------------------------------------------
  23501. // SparseEnumMessage
  23502. // optional .protobuf_unittest.TestSparseEnum sparse_enum = 1;
  23503. inline bool SparseEnumMessage::has_sparse_enum() const {
  23504. return (_has_bits_[0] & 0x00000001u) != 0;
  23505. }
  23506. inline void SparseEnumMessage::set_has_sparse_enum() {
  23507. _has_bits_[0] |= 0x00000001u;
  23508. }
  23509. inline void SparseEnumMessage::clear_has_sparse_enum() {
  23510. _has_bits_[0] &= ~0x00000001u;
  23511. }
  23512. inline void SparseEnumMessage::clear_sparse_enum() {
  23513. sparse_enum_ = 123;
  23514. clear_has_sparse_enum();
  23515. }
  23516. inline ::protobuf_unittest::TestSparseEnum SparseEnumMessage::sparse_enum() const {
  23517. // @@protoc_insertion_point(field_get:protobuf_unittest.SparseEnumMessage.sparse_enum)
  23518. return static_cast< ::protobuf_unittest::TestSparseEnum >(sparse_enum_);
  23519. }
  23520. inline void SparseEnumMessage::set_sparse_enum(::protobuf_unittest::TestSparseEnum value) {
  23521. assert(::protobuf_unittest::TestSparseEnum_IsValid(value));
  23522. set_has_sparse_enum();
  23523. sparse_enum_ = value;
  23524. // @@protoc_insertion_point(field_set:protobuf_unittest.SparseEnumMessage.sparse_enum)
  23525. }
  23526. // -------------------------------------------------------------------
  23527. // OneString
  23528. // optional string data = 1;
  23529. inline bool OneString::has_data() const {
  23530. return (_has_bits_[0] & 0x00000001u) != 0;
  23531. }
  23532. inline void OneString::set_has_data() {
  23533. _has_bits_[0] |= 0x00000001u;
  23534. }
  23535. inline void OneString::clear_has_data() {
  23536. _has_bits_[0] &= ~0x00000001u;
  23537. }
  23538. inline void OneString::clear_data() {
  23539. data_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
  23540. clear_has_data();
  23541. }
  23542. inline const ::std::string& OneString::data() const {
  23543. // @@protoc_insertion_point(field_get:protobuf_unittest.OneString.data)
  23544. return data_.Get();
  23545. }
  23546. inline void OneString::set_data(const ::std::string& value) {
  23547. set_has_data();
  23548. data_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual());
  23549. // @@protoc_insertion_point(field_set:protobuf_unittest.OneString.data)
  23550. }
  23551. #if LANG_CXX11
  23552. inline void OneString::set_data(::std::string&& value) {
  23553. set_has_data();
  23554. data_.Set(
  23555. &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual());
  23556. // @@protoc_insertion_point(field_set_rvalue:protobuf_unittest.OneString.data)
  23557. }
  23558. #endif
  23559. inline void OneString::set_data(const char* value) {
  23560. GOOGLE_DCHECK(value != NULL);
  23561. set_has_data();
  23562. data_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value),
  23563. GetArenaNoVirtual());
  23564. // @@protoc_insertion_point(field_set_char:protobuf_unittest.OneString.data)
  23565. }
  23566. inline void OneString::set_data(const char* value,
  23567. size_t size) {
  23568. set_has_data();
  23569. data_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(
  23570. reinterpret_cast<const char*>(value), size), GetArenaNoVirtual());
  23571. // @@protoc_insertion_point(field_set_pointer:protobuf_unittest.OneString.data)
  23572. }
  23573. inline ::std::string* OneString::mutable_data() {
  23574. set_has_data();
  23575. // @@protoc_insertion_point(field_mutable:protobuf_unittest.OneString.data)
  23576. return data_.Mutable(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
  23577. }
  23578. inline ::std::string* OneString::release_data() {
  23579. // @@protoc_insertion_point(field_release:protobuf_unittest.OneString.data)
  23580. if (!has_data()) {
  23581. return NULL;
  23582. }
  23583. clear_has_data();
  23584. return data_.ReleaseNonDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
  23585. }
  23586. inline void OneString::set_allocated_data(::std::string* data) {
  23587. if (data != NULL) {
  23588. set_has_data();
  23589. } else {
  23590. clear_has_data();
  23591. }
  23592. data_.SetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), data,
  23593. GetArenaNoVirtual());
  23594. // @@protoc_insertion_point(field_set_allocated:protobuf_unittest.OneString.data)
  23595. }
  23596. inline ::std::string* OneString::unsafe_arena_release_data() {
  23597. // @@protoc_insertion_point(field_unsafe_arena_release:protobuf_unittest.OneString.data)
  23598. GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
  23599. clear_has_data();
  23600. return data_.UnsafeArenaRelease(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  23601. GetArenaNoVirtual());
  23602. }
  23603. inline void OneString::unsafe_arena_set_allocated_data(
  23604. ::std::string* data) {
  23605. GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
  23606. if (data != NULL) {
  23607. set_has_data();
  23608. } else {
  23609. clear_has_data();
  23610. }
  23611. data_.UnsafeArenaSetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  23612. data, GetArenaNoVirtual());
  23613. // @@protoc_insertion_point(field_unsafe_arena_set_allocated:protobuf_unittest.OneString.data)
  23614. }
  23615. // -------------------------------------------------------------------
  23616. // MoreString
  23617. // repeated string data = 1;
  23618. inline int MoreString::data_size() const {
  23619. return data_.size();
  23620. }
  23621. inline void MoreString::clear_data() {
  23622. data_.Clear();
  23623. }
  23624. inline const ::std::string& MoreString::data(int index) const {
  23625. // @@protoc_insertion_point(field_get:protobuf_unittest.MoreString.data)
  23626. return data_.Get(index);
  23627. }
  23628. inline ::std::string* MoreString::mutable_data(int index) {
  23629. // @@protoc_insertion_point(field_mutable:protobuf_unittest.MoreString.data)
  23630. return data_.Mutable(index);
  23631. }
  23632. inline void MoreString::set_data(int index, const ::std::string& value) {
  23633. // @@protoc_insertion_point(field_set:protobuf_unittest.MoreString.data)
  23634. data_.Mutable(index)->assign(value);
  23635. }
  23636. #if LANG_CXX11
  23637. inline void MoreString::set_data(int index, ::std::string&& value) {
  23638. // @@protoc_insertion_point(field_set:protobuf_unittest.MoreString.data)
  23639. data_.Mutable(index)->assign(std::move(value));
  23640. }
  23641. #endif
  23642. inline void MoreString::set_data(int index, const char* value) {
  23643. GOOGLE_DCHECK(value != NULL);
  23644. data_.Mutable(index)->assign(value);
  23645. // @@protoc_insertion_point(field_set_char:protobuf_unittest.MoreString.data)
  23646. }
  23647. inline void MoreString::set_data(int index, const char* value, size_t size) {
  23648. data_.Mutable(index)->assign(
  23649. reinterpret_cast<const char*>(value), size);
  23650. // @@protoc_insertion_point(field_set_pointer:protobuf_unittest.MoreString.data)
  23651. }
  23652. inline ::std::string* MoreString::add_data() {
  23653. // @@protoc_insertion_point(field_add_mutable:protobuf_unittest.MoreString.data)
  23654. return data_.Add();
  23655. }
  23656. inline void MoreString::add_data(const ::std::string& value) {
  23657. data_.Add()->assign(value);
  23658. // @@protoc_insertion_point(field_add:protobuf_unittest.MoreString.data)
  23659. }
  23660. #if LANG_CXX11
  23661. inline void MoreString::add_data(::std::string&& value) {
  23662. data_.Add(std::move(value));
  23663. // @@protoc_insertion_point(field_add:protobuf_unittest.MoreString.data)
  23664. }
  23665. #endif
  23666. inline void MoreString::add_data(const char* value) {
  23667. GOOGLE_DCHECK(value != NULL);
  23668. data_.Add()->assign(value);
  23669. // @@protoc_insertion_point(field_add_char:protobuf_unittest.MoreString.data)
  23670. }
  23671. inline void MoreString::add_data(const char* value, size_t size) {
  23672. data_.Add()->assign(reinterpret_cast<const char*>(value), size);
  23673. // @@protoc_insertion_point(field_add_pointer:protobuf_unittest.MoreString.data)
  23674. }
  23675. inline const ::google::protobuf::RepeatedPtrField< ::std::string>&
  23676. MoreString::data() const {
  23677. // @@protoc_insertion_point(field_list:protobuf_unittest.MoreString.data)
  23678. return data_;
  23679. }
  23680. inline ::google::protobuf::RepeatedPtrField< ::std::string>*
  23681. MoreString::mutable_data() {
  23682. // @@protoc_insertion_point(field_mutable_list:protobuf_unittest.MoreString.data)
  23683. return &data_;
  23684. }
  23685. // -------------------------------------------------------------------
  23686. // OneBytes
  23687. // optional bytes data = 1;
  23688. inline bool OneBytes::has_data() const {
  23689. return (_has_bits_[0] & 0x00000001u) != 0;
  23690. }
  23691. inline void OneBytes::set_has_data() {
  23692. _has_bits_[0] |= 0x00000001u;
  23693. }
  23694. inline void OneBytes::clear_has_data() {
  23695. _has_bits_[0] &= ~0x00000001u;
  23696. }
  23697. inline void OneBytes::clear_data() {
  23698. data_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
  23699. clear_has_data();
  23700. }
  23701. inline const ::std::string& OneBytes::data() const {
  23702. // @@protoc_insertion_point(field_get:protobuf_unittest.OneBytes.data)
  23703. return data_.Get();
  23704. }
  23705. inline void OneBytes::set_data(const ::std::string& value) {
  23706. set_has_data();
  23707. data_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual());
  23708. // @@protoc_insertion_point(field_set:protobuf_unittest.OneBytes.data)
  23709. }
  23710. #if LANG_CXX11
  23711. inline void OneBytes::set_data(::std::string&& value) {
  23712. set_has_data();
  23713. data_.Set(
  23714. &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual());
  23715. // @@protoc_insertion_point(field_set_rvalue:protobuf_unittest.OneBytes.data)
  23716. }
  23717. #endif
  23718. inline void OneBytes::set_data(const char* value) {
  23719. GOOGLE_DCHECK(value != NULL);
  23720. set_has_data();
  23721. data_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value),
  23722. GetArenaNoVirtual());
  23723. // @@protoc_insertion_point(field_set_char:protobuf_unittest.OneBytes.data)
  23724. }
  23725. inline void OneBytes::set_data(const void* value,
  23726. size_t size) {
  23727. set_has_data();
  23728. data_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(
  23729. reinterpret_cast<const char*>(value), size), GetArenaNoVirtual());
  23730. // @@protoc_insertion_point(field_set_pointer:protobuf_unittest.OneBytes.data)
  23731. }
  23732. inline ::std::string* OneBytes::mutable_data() {
  23733. set_has_data();
  23734. // @@protoc_insertion_point(field_mutable:protobuf_unittest.OneBytes.data)
  23735. return data_.Mutable(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
  23736. }
  23737. inline ::std::string* OneBytes::release_data() {
  23738. // @@protoc_insertion_point(field_release:protobuf_unittest.OneBytes.data)
  23739. if (!has_data()) {
  23740. return NULL;
  23741. }
  23742. clear_has_data();
  23743. return data_.ReleaseNonDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
  23744. }
  23745. inline void OneBytes::set_allocated_data(::std::string* data) {
  23746. if (data != NULL) {
  23747. set_has_data();
  23748. } else {
  23749. clear_has_data();
  23750. }
  23751. data_.SetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), data,
  23752. GetArenaNoVirtual());
  23753. // @@protoc_insertion_point(field_set_allocated:protobuf_unittest.OneBytes.data)
  23754. }
  23755. inline ::std::string* OneBytes::unsafe_arena_release_data() {
  23756. // @@protoc_insertion_point(field_unsafe_arena_release:protobuf_unittest.OneBytes.data)
  23757. GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
  23758. clear_has_data();
  23759. return data_.UnsafeArenaRelease(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  23760. GetArenaNoVirtual());
  23761. }
  23762. inline void OneBytes::unsafe_arena_set_allocated_data(
  23763. ::std::string* data) {
  23764. GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
  23765. if (data != NULL) {
  23766. set_has_data();
  23767. } else {
  23768. clear_has_data();
  23769. }
  23770. data_.UnsafeArenaSetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  23771. data, GetArenaNoVirtual());
  23772. // @@protoc_insertion_point(field_unsafe_arena_set_allocated:protobuf_unittest.OneBytes.data)
  23773. }
  23774. // -------------------------------------------------------------------
  23775. // MoreBytes
  23776. // repeated bytes data = 1;
  23777. inline int MoreBytes::data_size() const {
  23778. return data_.size();
  23779. }
  23780. inline void MoreBytes::clear_data() {
  23781. data_.Clear();
  23782. }
  23783. inline const ::std::string& MoreBytes::data(int index) const {
  23784. // @@protoc_insertion_point(field_get:protobuf_unittest.MoreBytes.data)
  23785. return data_.Get(index);
  23786. }
  23787. inline ::std::string* MoreBytes::mutable_data(int index) {
  23788. // @@protoc_insertion_point(field_mutable:protobuf_unittest.MoreBytes.data)
  23789. return data_.Mutable(index);
  23790. }
  23791. inline void MoreBytes::set_data(int index, const ::std::string& value) {
  23792. // @@protoc_insertion_point(field_set:protobuf_unittest.MoreBytes.data)
  23793. data_.Mutable(index)->assign(value);
  23794. }
  23795. #if LANG_CXX11
  23796. inline void MoreBytes::set_data(int index, ::std::string&& value) {
  23797. // @@protoc_insertion_point(field_set:protobuf_unittest.MoreBytes.data)
  23798. data_.Mutable(index)->assign(std::move(value));
  23799. }
  23800. #endif
  23801. inline void MoreBytes::set_data(int index, const char* value) {
  23802. GOOGLE_DCHECK(value != NULL);
  23803. data_.Mutable(index)->assign(value);
  23804. // @@protoc_insertion_point(field_set_char:protobuf_unittest.MoreBytes.data)
  23805. }
  23806. inline void MoreBytes::set_data(int index, const void* value, size_t size) {
  23807. data_.Mutable(index)->assign(
  23808. reinterpret_cast<const char*>(value), size);
  23809. // @@protoc_insertion_point(field_set_pointer:protobuf_unittest.MoreBytes.data)
  23810. }
  23811. inline ::std::string* MoreBytes::add_data() {
  23812. // @@protoc_insertion_point(field_add_mutable:protobuf_unittest.MoreBytes.data)
  23813. return data_.Add();
  23814. }
  23815. inline void MoreBytes::add_data(const ::std::string& value) {
  23816. data_.Add()->assign(value);
  23817. // @@protoc_insertion_point(field_add:protobuf_unittest.MoreBytes.data)
  23818. }
  23819. #if LANG_CXX11
  23820. inline void MoreBytes::add_data(::std::string&& value) {
  23821. data_.Add(std::move(value));
  23822. // @@protoc_insertion_point(field_add:protobuf_unittest.MoreBytes.data)
  23823. }
  23824. #endif
  23825. inline void MoreBytes::add_data(const char* value) {
  23826. GOOGLE_DCHECK(value != NULL);
  23827. data_.Add()->assign(value);
  23828. // @@protoc_insertion_point(field_add_char:protobuf_unittest.MoreBytes.data)
  23829. }
  23830. inline void MoreBytes::add_data(const void* value, size_t size) {
  23831. data_.Add()->assign(reinterpret_cast<const char*>(value), size);
  23832. // @@protoc_insertion_point(field_add_pointer:protobuf_unittest.MoreBytes.data)
  23833. }
  23834. inline const ::google::protobuf::RepeatedPtrField< ::std::string>&
  23835. MoreBytes::data() const {
  23836. // @@protoc_insertion_point(field_list:protobuf_unittest.MoreBytes.data)
  23837. return data_;
  23838. }
  23839. inline ::google::protobuf::RepeatedPtrField< ::std::string>*
  23840. MoreBytes::mutable_data() {
  23841. // @@protoc_insertion_point(field_mutable_list:protobuf_unittest.MoreBytes.data)
  23842. return &data_;
  23843. }
  23844. // -------------------------------------------------------------------
  23845. // Int32Message
  23846. // optional int32 data = 1;
  23847. inline bool Int32Message::has_data() const {
  23848. return (_has_bits_[0] & 0x00000001u) != 0;
  23849. }
  23850. inline void Int32Message::set_has_data() {
  23851. _has_bits_[0] |= 0x00000001u;
  23852. }
  23853. inline void Int32Message::clear_has_data() {
  23854. _has_bits_[0] &= ~0x00000001u;
  23855. }
  23856. inline void Int32Message::clear_data() {
  23857. data_ = 0;
  23858. clear_has_data();
  23859. }
  23860. inline ::google::protobuf::int32 Int32Message::data() const {
  23861. // @@protoc_insertion_point(field_get:protobuf_unittest.Int32Message.data)
  23862. return data_;
  23863. }
  23864. inline void Int32Message::set_data(::google::protobuf::int32 value) {
  23865. set_has_data();
  23866. data_ = value;
  23867. // @@protoc_insertion_point(field_set:protobuf_unittest.Int32Message.data)
  23868. }
  23869. // -------------------------------------------------------------------
  23870. // Uint32Message
  23871. // optional uint32 data = 1;
  23872. inline bool Uint32Message::has_data() const {
  23873. return (_has_bits_[0] & 0x00000001u) != 0;
  23874. }
  23875. inline void Uint32Message::set_has_data() {
  23876. _has_bits_[0] |= 0x00000001u;
  23877. }
  23878. inline void Uint32Message::clear_has_data() {
  23879. _has_bits_[0] &= ~0x00000001u;
  23880. }
  23881. inline void Uint32Message::clear_data() {
  23882. data_ = 0u;
  23883. clear_has_data();
  23884. }
  23885. inline ::google::protobuf::uint32 Uint32Message::data() const {
  23886. // @@protoc_insertion_point(field_get:protobuf_unittest.Uint32Message.data)
  23887. return data_;
  23888. }
  23889. inline void Uint32Message::set_data(::google::protobuf::uint32 value) {
  23890. set_has_data();
  23891. data_ = value;
  23892. // @@protoc_insertion_point(field_set:protobuf_unittest.Uint32Message.data)
  23893. }
  23894. // -------------------------------------------------------------------
  23895. // Int64Message
  23896. // optional int64 data = 1;
  23897. inline bool Int64Message::has_data() const {
  23898. return (_has_bits_[0] & 0x00000001u) != 0;
  23899. }
  23900. inline void Int64Message::set_has_data() {
  23901. _has_bits_[0] |= 0x00000001u;
  23902. }
  23903. inline void Int64Message::clear_has_data() {
  23904. _has_bits_[0] &= ~0x00000001u;
  23905. }
  23906. inline void Int64Message::clear_data() {
  23907. data_ = GOOGLE_LONGLONG(0);
  23908. clear_has_data();
  23909. }
  23910. inline ::google::protobuf::int64 Int64Message::data() const {
  23911. // @@protoc_insertion_point(field_get:protobuf_unittest.Int64Message.data)
  23912. return data_;
  23913. }
  23914. inline void Int64Message::set_data(::google::protobuf::int64 value) {
  23915. set_has_data();
  23916. data_ = value;
  23917. // @@protoc_insertion_point(field_set:protobuf_unittest.Int64Message.data)
  23918. }
  23919. // -------------------------------------------------------------------
  23920. // Uint64Message
  23921. // optional uint64 data = 1;
  23922. inline bool Uint64Message::has_data() const {
  23923. return (_has_bits_[0] & 0x00000001u) != 0;
  23924. }
  23925. inline void Uint64Message::set_has_data() {
  23926. _has_bits_[0] |= 0x00000001u;
  23927. }
  23928. inline void Uint64Message::clear_has_data() {
  23929. _has_bits_[0] &= ~0x00000001u;
  23930. }
  23931. inline void Uint64Message::clear_data() {
  23932. data_ = GOOGLE_ULONGLONG(0);
  23933. clear_has_data();
  23934. }
  23935. inline ::google::protobuf::uint64 Uint64Message::data() const {
  23936. // @@protoc_insertion_point(field_get:protobuf_unittest.Uint64Message.data)
  23937. return data_;
  23938. }
  23939. inline void Uint64Message::set_data(::google::protobuf::uint64 value) {
  23940. set_has_data();
  23941. data_ = value;
  23942. // @@protoc_insertion_point(field_set:protobuf_unittest.Uint64Message.data)
  23943. }
  23944. // -------------------------------------------------------------------
  23945. // BoolMessage
  23946. // optional bool data = 1;
  23947. inline bool BoolMessage::has_data() const {
  23948. return (_has_bits_[0] & 0x00000001u) != 0;
  23949. }
  23950. inline void BoolMessage::set_has_data() {
  23951. _has_bits_[0] |= 0x00000001u;
  23952. }
  23953. inline void BoolMessage::clear_has_data() {
  23954. _has_bits_[0] &= ~0x00000001u;
  23955. }
  23956. inline void BoolMessage::clear_data() {
  23957. data_ = false;
  23958. clear_has_data();
  23959. }
  23960. inline bool BoolMessage::data() const {
  23961. // @@protoc_insertion_point(field_get:protobuf_unittest.BoolMessage.data)
  23962. return data_;
  23963. }
  23964. inline void BoolMessage::set_data(bool value) {
  23965. set_has_data();
  23966. data_ = value;
  23967. // @@protoc_insertion_point(field_set:protobuf_unittest.BoolMessage.data)
  23968. }
  23969. // -------------------------------------------------------------------
  23970. // TestOneof_FooGroup
  23971. // optional int32 a = 5;
  23972. inline bool TestOneof_FooGroup::has_a() const {
  23973. return (_has_bits_[0] & 0x00000002u) != 0;
  23974. }
  23975. inline void TestOneof_FooGroup::set_has_a() {
  23976. _has_bits_[0] |= 0x00000002u;
  23977. }
  23978. inline void TestOneof_FooGroup::clear_has_a() {
  23979. _has_bits_[0] &= ~0x00000002u;
  23980. }
  23981. inline void TestOneof_FooGroup::clear_a() {
  23982. a_ = 0;
  23983. clear_has_a();
  23984. }
  23985. inline ::google::protobuf::int32 TestOneof_FooGroup::a() const {
  23986. // @@protoc_insertion_point(field_get:protobuf_unittest.TestOneof.FooGroup.a)
  23987. return a_;
  23988. }
  23989. inline void TestOneof_FooGroup::set_a(::google::protobuf::int32 value) {
  23990. set_has_a();
  23991. a_ = value;
  23992. // @@protoc_insertion_point(field_set:protobuf_unittest.TestOneof.FooGroup.a)
  23993. }
  23994. // optional string b = 6;
  23995. inline bool TestOneof_FooGroup::has_b() const {
  23996. return (_has_bits_[0] & 0x00000001u) != 0;
  23997. }
  23998. inline void TestOneof_FooGroup::set_has_b() {
  23999. _has_bits_[0] |= 0x00000001u;
  24000. }
  24001. inline void TestOneof_FooGroup::clear_has_b() {
  24002. _has_bits_[0] &= ~0x00000001u;
  24003. }
  24004. inline void TestOneof_FooGroup::clear_b() {
  24005. b_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
  24006. clear_has_b();
  24007. }
  24008. inline const ::std::string& TestOneof_FooGroup::b() const {
  24009. // @@protoc_insertion_point(field_get:protobuf_unittest.TestOneof.FooGroup.b)
  24010. return b_.Get();
  24011. }
  24012. inline void TestOneof_FooGroup::set_b(const ::std::string& value) {
  24013. set_has_b();
  24014. b_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual());
  24015. // @@protoc_insertion_point(field_set:protobuf_unittest.TestOneof.FooGroup.b)
  24016. }
  24017. #if LANG_CXX11
  24018. inline void TestOneof_FooGroup::set_b(::std::string&& value) {
  24019. set_has_b();
  24020. b_.Set(
  24021. &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual());
  24022. // @@protoc_insertion_point(field_set_rvalue:protobuf_unittest.TestOneof.FooGroup.b)
  24023. }
  24024. #endif
  24025. inline void TestOneof_FooGroup::set_b(const char* value) {
  24026. GOOGLE_DCHECK(value != NULL);
  24027. set_has_b();
  24028. b_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value),
  24029. GetArenaNoVirtual());
  24030. // @@protoc_insertion_point(field_set_char:protobuf_unittest.TestOneof.FooGroup.b)
  24031. }
  24032. inline void TestOneof_FooGroup::set_b(const char* value,
  24033. size_t size) {
  24034. set_has_b();
  24035. b_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(
  24036. reinterpret_cast<const char*>(value), size), GetArenaNoVirtual());
  24037. // @@protoc_insertion_point(field_set_pointer:protobuf_unittest.TestOneof.FooGroup.b)
  24038. }
  24039. inline ::std::string* TestOneof_FooGroup::mutable_b() {
  24040. set_has_b();
  24041. // @@protoc_insertion_point(field_mutable:protobuf_unittest.TestOneof.FooGroup.b)
  24042. return b_.Mutable(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
  24043. }
  24044. inline ::std::string* TestOneof_FooGroup::release_b() {
  24045. // @@protoc_insertion_point(field_release:protobuf_unittest.TestOneof.FooGroup.b)
  24046. if (!has_b()) {
  24047. return NULL;
  24048. }
  24049. clear_has_b();
  24050. return b_.ReleaseNonDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
  24051. }
  24052. inline void TestOneof_FooGroup::set_allocated_b(::std::string* b) {
  24053. if (b != NULL) {
  24054. set_has_b();
  24055. } else {
  24056. clear_has_b();
  24057. }
  24058. b_.SetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), b,
  24059. GetArenaNoVirtual());
  24060. // @@protoc_insertion_point(field_set_allocated:protobuf_unittest.TestOneof.FooGroup.b)
  24061. }
  24062. inline ::std::string* TestOneof_FooGroup::unsafe_arena_release_b() {
  24063. // @@protoc_insertion_point(field_unsafe_arena_release:protobuf_unittest.TestOneof.FooGroup.b)
  24064. GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
  24065. clear_has_b();
  24066. return b_.UnsafeArenaRelease(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  24067. GetArenaNoVirtual());
  24068. }
  24069. inline void TestOneof_FooGroup::unsafe_arena_set_allocated_b(
  24070. ::std::string* b) {
  24071. GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
  24072. if (b != NULL) {
  24073. set_has_b();
  24074. } else {
  24075. clear_has_b();
  24076. }
  24077. b_.UnsafeArenaSetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  24078. b, GetArenaNoVirtual());
  24079. // @@protoc_insertion_point(field_unsafe_arena_set_allocated:protobuf_unittest.TestOneof.FooGroup.b)
  24080. }
  24081. // -------------------------------------------------------------------
  24082. // TestOneof
  24083. // optional int32 foo_int = 1;
  24084. inline bool TestOneof::has_foo_int() const {
  24085. return foo_case() == kFooInt;
  24086. }
  24087. inline void TestOneof::set_has_foo_int() {
  24088. _oneof_case_[0] = kFooInt;
  24089. }
  24090. inline void TestOneof::clear_foo_int() {
  24091. if (has_foo_int()) {
  24092. foo_.foo_int_ = 0;
  24093. clear_has_foo();
  24094. }
  24095. }
  24096. inline ::google::protobuf::int32 TestOneof::foo_int() const {
  24097. // @@protoc_insertion_point(field_get:protobuf_unittest.TestOneof.foo_int)
  24098. if (has_foo_int()) {
  24099. return foo_.foo_int_;
  24100. }
  24101. return 0;
  24102. }
  24103. inline void TestOneof::set_foo_int(::google::protobuf::int32 value) {
  24104. if (!has_foo_int()) {
  24105. clear_foo();
  24106. set_has_foo_int();
  24107. }
  24108. foo_.foo_int_ = value;
  24109. // @@protoc_insertion_point(field_set:protobuf_unittest.TestOneof.foo_int)
  24110. }
  24111. // optional string foo_string = 2;
  24112. inline bool TestOneof::has_foo_string() const {
  24113. return foo_case() == kFooString;
  24114. }
  24115. inline void TestOneof::set_has_foo_string() {
  24116. _oneof_case_[0] = kFooString;
  24117. }
  24118. inline void TestOneof::clear_foo_string() {
  24119. if (has_foo_string()) {
  24120. foo_.foo_string_.Destroy(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  24121. GetArenaNoVirtual());
  24122. clear_has_foo();
  24123. }
  24124. }
  24125. inline const ::std::string& TestOneof::foo_string() const {
  24126. // @@protoc_insertion_point(field_get:protobuf_unittest.TestOneof.foo_string)
  24127. if (has_foo_string()) {
  24128. return foo_.foo_string_.Get();
  24129. }
  24130. return *&::google::protobuf::internal::GetEmptyStringAlreadyInited();
  24131. }
  24132. inline void TestOneof::set_foo_string(const ::std::string& value) {
  24133. if (!has_foo_string()) {
  24134. clear_foo();
  24135. set_has_foo_string();
  24136. foo_.foo_string_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  24137. }
  24138. foo_.foo_string_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value,
  24139. GetArenaNoVirtual());
  24140. // @@protoc_insertion_point(field_set:protobuf_unittest.TestOneof.foo_string)
  24141. }
  24142. #if LANG_CXX11
  24143. inline void TestOneof::set_foo_string(::std::string&& value) {
  24144. // @@protoc_insertion_point(field_set:protobuf_unittest.TestOneof.foo_string)
  24145. if (!has_foo_string()) {
  24146. clear_foo();
  24147. set_has_foo_string();
  24148. foo_.foo_string_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  24149. }
  24150. foo_.foo_string_.Set(
  24151. &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual());
  24152. // @@protoc_insertion_point(field_set_rvalue:protobuf_unittest.TestOneof.foo_string)
  24153. }
  24154. #endif
  24155. inline void TestOneof::set_foo_string(const char* value) {
  24156. GOOGLE_DCHECK(value != NULL);
  24157. if (!has_foo_string()) {
  24158. clear_foo();
  24159. set_has_foo_string();
  24160. foo_.foo_string_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  24161. }
  24162. foo_.foo_string_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  24163. ::std::string(value), GetArenaNoVirtual());
  24164. // @@protoc_insertion_point(field_set_char:protobuf_unittest.TestOneof.foo_string)
  24165. }
  24166. inline void TestOneof::set_foo_string(const char* value,
  24167. size_t size) {
  24168. if (!has_foo_string()) {
  24169. clear_foo();
  24170. set_has_foo_string();
  24171. foo_.foo_string_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  24172. }
  24173. foo_.foo_string_.Set(
  24174. &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(
  24175. reinterpret_cast<const char*>(value), size),
  24176. GetArenaNoVirtual());
  24177. // @@protoc_insertion_point(field_set_pointer:protobuf_unittest.TestOneof.foo_string)
  24178. }
  24179. inline ::std::string* TestOneof::mutable_foo_string() {
  24180. if (!has_foo_string()) {
  24181. clear_foo();
  24182. set_has_foo_string();
  24183. foo_.foo_string_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  24184. }
  24185. return foo_.foo_string_.Mutable(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  24186. GetArenaNoVirtual());
  24187. // @@protoc_insertion_point(field_mutable:protobuf_unittest.TestOneof.foo_string)
  24188. }
  24189. inline ::std::string* TestOneof::release_foo_string() {
  24190. // @@protoc_insertion_point(field_release:protobuf_unittest.TestOneof.foo_string)
  24191. if (has_foo_string()) {
  24192. clear_has_foo();
  24193. return foo_.foo_string_.Release(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  24194. GetArenaNoVirtual());
  24195. } else {
  24196. return NULL;
  24197. }
  24198. }
  24199. inline void TestOneof::set_allocated_foo_string(::std::string* foo_string) {
  24200. if (!has_foo_string()) {
  24201. foo_.foo_string_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  24202. }
  24203. clear_foo();
  24204. if (foo_string != NULL) {
  24205. set_has_foo_string();
  24206. foo_.foo_string_.SetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), foo_string,
  24207. GetArenaNoVirtual());
  24208. }
  24209. // @@protoc_insertion_point(field_set_allocated:protobuf_unittest.TestOneof.foo_string)
  24210. }
  24211. inline ::std::string* TestOneof::unsafe_arena_release_foo_string() {
  24212. // @@protoc_insertion_point(field_unsafe_arena_release:protobuf_unittest.TestOneof.foo_string)
  24213. GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
  24214. if (has_foo_string()) {
  24215. clear_has_foo();
  24216. return foo_.foo_string_.UnsafeArenaRelease(
  24217. &::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
  24218. } else {
  24219. return NULL;
  24220. }
  24221. }
  24222. inline void TestOneof::unsafe_arena_set_allocated_foo_string(::std::string* foo_string) {
  24223. GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
  24224. if (!has_foo_string()) {
  24225. foo_.foo_string_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  24226. }
  24227. clear_foo();
  24228. if (foo_string) {
  24229. set_has_foo_string();
  24230. foo_.foo_string_.UnsafeArenaSetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), foo_string, GetArenaNoVirtual());
  24231. }
  24232. // @@protoc_insertion_point(field_unsafe_arena_set_allocated:protobuf_unittest.TestOneof.foo_string)
  24233. }
  24234. // optional .protobuf_unittest.TestAllTypes foo_message = 3;
  24235. inline bool TestOneof::has_foo_message() const {
  24236. return foo_case() == kFooMessage;
  24237. }
  24238. inline void TestOneof::set_has_foo_message() {
  24239. _oneof_case_[0] = kFooMessage;
  24240. }
  24241. inline void TestOneof::clear_foo_message() {
  24242. if (has_foo_message()) {
  24243. if (GetArenaNoVirtual() == NULL) {
  24244. delete foo_.foo_message_;
  24245. }
  24246. clear_has_foo();
  24247. }
  24248. }
  24249. inline const ::protobuf_unittest::TestAllTypes& TestOneof::_internal_foo_message() const {
  24250. return *foo_.foo_message_;
  24251. }
  24252. inline ::protobuf_unittest::TestAllTypes* TestOneof::release_foo_message() {
  24253. // @@protoc_insertion_point(field_release:protobuf_unittest.TestOneof.foo_message)
  24254. if (has_foo_message()) {
  24255. clear_has_foo();
  24256. ::protobuf_unittest::TestAllTypes* temp = foo_.foo_message_;
  24257. if (GetArenaNoVirtual() != NULL) {
  24258. temp = ::google::protobuf::internal::DuplicateIfNonNull(temp);
  24259. }
  24260. foo_.foo_message_ = NULL;
  24261. return temp;
  24262. } else {
  24263. return NULL;
  24264. }
  24265. }
  24266. inline const ::protobuf_unittest::TestAllTypes& TestOneof::foo_message() const {
  24267. // @@protoc_insertion_point(field_get:protobuf_unittest.TestOneof.foo_message)
  24268. return has_foo_message()
  24269. ? *foo_.foo_message_
  24270. : *reinterpret_cast< ::protobuf_unittest::TestAllTypes*>(&::protobuf_unittest::_TestAllTypes_default_instance_);
  24271. }
  24272. inline ::protobuf_unittest::TestAllTypes* TestOneof::unsafe_arena_release_foo_message() {
  24273. // @@protoc_insertion_point(field_unsafe_arena_release:protobuf_unittest.TestOneof.foo_message)
  24274. if (has_foo_message()) {
  24275. clear_has_foo();
  24276. ::protobuf_unittest::TestAllTypes* temp = foo_.foo_message_;
  24277. foo_.foo_message_ = NULL;
  24278. return temp;
  24279. } else {
  24280. return NULL;
  24281. }
  24282. }
  24283. inline void TestOneof::unsafe_arena_set_allocated_foo_message(::protobuf_unittest::TestAllTypes* foo_message) {
  24284. clear_foo();
  24285. if (foo_message) {
  24286. set_has_foo_message();
  24287. foo_.foo_message_ = foo_message;
  24288. }
  24289. // @@protoc_insertion_point(field_unsafe_arena_set_allocated:protobuf_unittest.TestOneof.foo_message)
  24290. }
  24291. inline ::protobuf_unittest::TestAllTypes* TestOneof::mutable_foo_message() {
  24292. if (!has_foo_message()) {
  24293. clear_foo();
  24294. set_has_foo_message();
  24295. foo_.foo_message_ = CreateMaybeMessage< ::protobuf_unittest::TestAllTypes >(
  24296. GetArenaNoVirtual());
  24297. }
  24298. // @@protoc_insertion_point(field_mutable:protobuf_unittest.TestOneof.foo_message)
  24299. return foo_.foo_message_;
  24300. }
  24301. // optional group FooGroup = 4 { ... };
  24302. inline bool TestOneof::has_foogroup() const {
  24303. return foo_case() == kFoogroup;
  24304. }
  24305. inline void TestOneof::set_has_foogroup() {
  24306. _oneof_case_[0] = kFoogroup;
  24307. }
  24308. inline void TestOneof::clear_foogroup() {
  24309. if (has_foogroup()) {
  24310. if (GetArenaNoVirtual() == NULL) {
  24311. delete foo_.foogroup_;
  24312. }
  24313. clear_has_foo();
  24314. }
  24315. }
  24316. inline const ::protobuf_unittest::TestOneof_FooGroup& TestOneof::_internal_foogroup() const {
  24317. return *foo_.foogroup_;
  24318. }
  24319. inline ::protobuf_unittest::TestOneof_FooGroup* TestOneof::release_foogroup() {
  24320. // @@protoc_insertion_point(field_release:protobuf_unittest.TestOneof.foogroup)
  24321. if (has_foogroup()) {
  24322. clear_has_foo();
  24323. ::protobuf_unittest::TestOneof_FooGroup* temp = foo_.foogroup_;
  24324. if (GetArenaNoVirtual() != NULL) {
  24325. temp = ::google::protobuf::internal::DuplicateIfNonNull(temp);
  24326. }
  24327. foo_.foogroup_ = NULL;
  24328. return temp;
  24329. } else {
  24330. return NULL;
  24331. }
  24332. }
  24333. inline const ::protobuf_unittest::TestOneof_FooGroup& TestOneof::foogroup() const {
  24334. // @@protoc_insertion_point(field_get:protobuf_unittest.TestOneof.foogroup)
  24335. return has_foogroup()
  24336. ? *foo_.foogroup_
  24337. : *reinterpret_cast< ::protobuf_unittest::TestOneof_FooGroup*>(&::protobuf_unittest::_TestOneof_FooGroup_default_instance_);
  24338. }
  24339. inline ::protobuf_unittest::TestOneof_FooGroup* TestOneof::unsafe_arena_release_foogroup() {
  24340. // @@protoc_insertion_point(field_unsafe_arena_release:protobuf_unittest.TestOneof.foogroup)
  24341. if (has_foogroup()) {
  24342. clear_has_foo();
  24343. ::protobuf_unittest::TestOneof_FooGroup* temp = foo_.foogroup_;
  24344. foo_.foogroup_ = NULL;
  24345. return temp;
  24346. } else {
  24347. return NULL;
  24348. }
  24349. }
  24350. inline void TestOneof::unsafe_arena_set_allocated_foogroup(::protobuf_unittest::TestOneof_FooGroup* foogroup) {
  24351. clear_foo();
  24352. if (foogroup) {
  24353. set_has_foogroup();
  24354. foo_.foogroup_ = foogroup;
  24355. }
  24356. // @@protoc_insertion_point(field_unsafe_arena_set_allocated:protobuf_unittest.TestOneof.foogroup)
  24357. }
  24358. inline ::protobuf_unittest::TestOneof_FooGroup* TestOneof::mutable_foogroup() {
  24359. if (!has_foogroup()) {
  24360. clear_foo();
  24361. set_has_foogroup();
  24362. foo_.foogroup_ = CreateMaybeMessage< ::protobuf_unittest::TestOneof_FooGroup >(
  24363. GetArenaNoVirtual());
  24364. }
  24365. // @@protoc_insertion_point(field_mutable:protobuf_unittest.TestOneof.foogroup)
  24366. return foo_.foogroup_;
  24367. }
  24368. inline bool TestOneof::has_foo() const {
  24369. return foo_case() != FOO_NOT_SET;
  24370. }
  24371. inline void TestOneof::clear_has_foo() {
  24372. _oneof_case_[0] = FOO_NOT_SET;
  24373. }
  24374. inline TestOneof::FooCase TestOneof::foo_case() const {
  24375. return TestOneof::FooCase(_oneof_case_[0]);
  24376. }
  24377. // -------------------------------------------------------------------
  24378. // TestOneofBackwardsCompatible_FooGroup
  24379. // optional int32 a = 5;
  24380. inline bool TestOneofBackwardsCompatible_FooGroup::has_a() const {
  24381. return (_has_bits_[0] & 0x00000002u) != 0;
  24382. }
  24383. inline void TestOneofBackwardsCompatible_FooGroup::set_has_a() {
  24384. _has_bits_[0] |= 0x00000002u;
  24385. }
  24386. inline void TestOneofBackwardsCompatible_FooGroup::clear_has_a() {
  24387. _has_bits_[0] &= ~0x00000002u;
  24388. }
  24389. inline void TestOneofBackwardsCompatible_FooGroup::clear_a() {
  24390. a_ = 0;
  24391. clear_has_a();
  24392. }
  24393. inline ::google::protobuf::int32 TestOneofBackwardsCompatible_FooGroup::a() const {
  24394. // @@protoc_insertion_point(field_get:protobuf_unittest.TestOneofBackwardsCompatible.FooGroup.a)
  24395. return a_;
  24396. }
  24397. inline void TestOneofBackwardsCompatible_FooGroup::set_a(::google::protobuf::int32 value) {
  24398. set_has_a();
  24399. a_ = value;
  24400. // @@protoc_insertion_point(field_set:protobuf_unittest.TestOneofBackwardsCompatible.FooGroup.a)
  24401. }
  24402. // optional string b = 6;
  24403. inline bool TestOneofBackwardsCompatible_FooGroup::has_b() const {
  24404. return (_has_bits_[0] & 0x00000001u) != 0;
  24405. }
  24406. inline void TestOneofBackwardsCompatible_FooGroup::set_has_b() {
  24407. _has_bits_[0] |= 0x00000001u;
  24408. }
  24409. inline void TestOneofBackwardsCompatible_FooGroup::clear_has_b() {
  24410. _has_bits_[0] &= ~0x00000001u;
  24411. }
  24412. inline void TestOneofBackwardsCompatible_FooGroup::clear_b() {
  24413. b_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
  24414. clear_has_b();
  24415. }
  24416. inline const ::std::string& TestOneofBackwardsCompatible_FooGroup::b() const {
  24417. // @@protoc_insertion_point(field_get:protobuf_unittest.TestOneofBackwardsCompatible.FooGroup.b)
  24418. return b_.Get();
  24419. }
  24420. inline void TestOneofBackwardsCompatible_FooGroup::set_b(const ::std::string& value) {
  24421. set_has_b();
  24422. b_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual());
  24423. // @@protoc_insertion_point(field_set:protobuf_unittest.TestOneofBackwardsCompatible.FooGroup.b)
  24424. }
  24425. #if LANG_CXX11
  24426. inline void TestOneofBackwardsCompatible_FooGroup::set_b(::std::string&& value) {
  24427. set_has_b();
  24428. b_.Set(
  24429. &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual());
  24430. // @@protoc_insertion_point(field_set_rvalue:protobuf_unittest.TestOneofBackwardsCompatible.FooGroup.b)
  24431. }
  24432. #endif
  24433. inline void TestOneofBackwardsCompatible_FooGroup::set_b(const char* value) {
  24434. GOOGLE_DCHECK(value != NULL);
  24435. set_has_b();
  24436. b_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value),
  24437. GetArenaNoVirtual());
  24438. // @@protoc_insertion_point(field_set_char:protobuf_unittest.TestOneofBackwardsCompatible.FooGroup.b)
  24439. }
  24440. inline void TestOneofBackwardsCompatible_FooGroup::set_b(const char* value,
  24441. size_t size) {
  24442. set_has_b();
  24443. b_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(
  24444. reinterpret_cast<const char*>(value), size), GetArenaNoVirtual());
  24445. // @@protoc_insertion_point(field_set_pointer:protobuf_unittest.TestOneofBackwardsCompatible.FooGroup.b)
  24446. }
  24447. inline ::std::string* TestOneofBackwardsCompatible_FooGroup::mutable_b() {
  24448. set_has_b();
  24449. // @@protoc_insertion_point(field_mutable:protobuf_unittest.TestOneofBackwardsCompatible.FooGroup.b)
  24450. return b_.Mutable(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
  24451. }
  24452. inline ::std::string* TestOneofBackwardsCompatible_FooGroup::release_b() {
  24453. // @@protoc_insertion_point(field_release:protobuf_unittest.TestOneofBackwardsCompatible.FooGroup.b)
  24454. if (!has_b()) {
  24455. return NULL;
  24456. }
  24457. clear_has_b();
  24458. return b_.ReleaseNonDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
  24459. }
  24460. inline void TestOneofBackwardsCompatible_FooGroup::set_allocated_b(::std::string* b) {
  24461. if (b != NULL) {
  24462. set_has_b();
  24463. } else {
  24464. clear_has_b();
  24465. }
  24466. b_.SetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), b,
  24467. GetArenaNoVirtual());
  24468. // @@protoc_insertion_point(field_set_allocated:protobuf_unittest.TestOneofBackwardsCompatible.FooGroup.b)
  24469. }
  24470. inline ::std::string* TestOneofBackwardsCompatible_FooGroup::unsafe_arena_release_b() {
  24471. // @@protoc_insertion_point(field_unsafe_arena_release:protobuf_unittest.TestOneofBackwardsCompatible.FooGroup.b)
  24472. GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
  24473. clear_has_b();
  24474. return b_.UnsafeArenaRelease(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  24475. GetArenaNoVirtual());
  24476. }
  24477. inline void TestOneofBackwardsCompatible_FooGroup::unsafe_arena_set_allocated_b(
  24478. ::std::string* b) {
  24479. GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
  24480. if (b != NULL) {
  24481. set_has_b();
  24482. } else {
  24483. clear_has_b();
  24484. }
  24485. b_.UnsafeArenaSetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  24486. b, GetArenaNoVirtual());
  24487. // @@protoc_insertion_point(field_unsafe_arena_set_allocated:protobuf_unittest.TestOneofBackwardsCompatible.FooGroup.b)
  24488. }
  24489. // -------------------------------------------------------------------
  24490. // TestOneofBackwardsCompatible
  24491. // optional int32 foo_int = 1;
  24492. inline bool TestOneofBackwardsCompatible::has_foo_int() const {
  24493. return (_has_bits_[0] & 0x00000008u) != 0;
  24494. }
  24495. inline void TestOneofBackwardsCompatible::set_has_foo_int() {
  24496. _has_bits_[0] |= 0x00000008u;
  24497. }
  24498. inline void TestOneofBackwardsCompatible::clear_has_foo_int() {
  24499. _has_bits_[0] &= ~0x00000008u;
  24500. }
  24501. inline void TestOneofBackwardsCompatible::clear_foo_int() {
  24502. foo_int_ = 0;
  24503. clear_has_foo_int();
  24504. }
  24505. inline ::google::protobuf::int32 TestOneofBackwardsCompatible::foo_int() const {
  24506. // @@protoc_insertion_point(field_get:protobuf_unittest.TestOneofBackwardsCompatible.foo_int)
  24507. return foo_int_;
  24508. }
  24509. inline void TestOneofBackwardsCompatible::set_foo_int(::google::protobuf::int32 value) {
  24510. set_has_foo_int();
  24511. foo_int_ = value;
  24512. // @@protoc_insertion_point(field_set:protobuf_unittest.TestOneofBackwardsCompatible.foo_int)
  24513. }
  24514. // optional string foo_string = 2;
  24515. inline bool TestOneofBackwardsCompatible::has_foo_string() const {
  24516. return (_has_bits_[0] & 0x00000001u) != 0;
  24517. }
  24518. inline void TestOneofBackwardsCompatible::set_has_foo_string() {
  24519. _has_bits_[0] |= 0x00000001u;
  24520. }
  24521. inline void TestOneofBackwardsCompatible::clear_has_foo_string() {
  24522. _has_bits_[0] &= ~0x00000001u;
  24523. }
  24524. inline void TestOneofBackwardsCompatible::clear_foo_string() {
  24525. foo_string_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
  24526. clear_has_foo_string();
  24527. }
  24528. inline const ::std::string& TestOneofBackwardsCompatible::foo_string() const {
  24529. // @@protoc_insertion_point(field_get:protobuf_unittest.TestOneofBackwardsCompatible.foo_string)
  24530. return foo_string_.Get();
  24531. }
  24532. inline void TestOneofBackwardsCompatible::set_foo_string(const ::std::string& value) {
  24533. set_has_foo_string();
  24534. foo_string_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual());
  24535. // @@protoc_insertion_point(field_set:protobuf_unittest.TestOneofBackwardsCompatible.foo_string)
  24536. }
  24537. #if LANG_CXX11
  24538. inline void TestOneofBackwardsCompatible::set_foo_string(::std::string&& value) {
  24539. set_has_foo_string();
  24540. foo_string_.Set(
  24541. &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual());
  24542. // @@protoc_insertion_point(field_set_rvalue:protobuf_unittest.TestOneofBackwardsCompatible.foo_string)
  24543. }
  24544. #endif
  24545. inline void TestOneofBackwardsCompatible::set_foo_string(const char* value) {
  24546. GOOGLE_DCHECK(value != NULL);
  24547. set_has_foo_string();
  24548. foo_string_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value),
  24549. GetArenaNoVirtual());
  24550. // @@protoc_insertion_point(field_set_char:protobuf_unittest.TestOneofBackwardsCompatible.foo_string)
  24551. }
  24552. inline void TestOneofBackwardsCompatible::set_foo_string(const char* value,
  24553. size_t size) {
  24554. set_has_foo_string();
  24555. foo_string_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(
  24556. reinterpret_cast<const char*>(value), size), GetArenaNoVirtual());
  24557. // @@protoc_insertion_point(field_set_pointer:protobuf_unittest.TestOneofBackwardsCompatible.foo_string)
  24558. }
  24559. inline ::std::string* TestOneofBackwardsCompatible::mutable_foo_string() {
  24560. set_has_foo_string();
  24561. // @@protoc_insertion_point(field_mutable:protobuf_unittest.TestOneofBackwardsCompatible.foo_string)
  24562. return foo_string_.Mutable(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
  24563. }
  24564. inline ::std::string* TestOneofBackwardsCompatible::release_foo_string() {
  24565. // @@protoc_insertion_point(field_release:protobuf_unittest.TestOneofBackwardsCompatible.foo_string)
  24566. if (!has_foo_string()) {
  24567. return NULL;
  24568. }
  24569. clear_has_foo_string();
  24570. return foo_string_.ReleaseNonDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
  24571. }
  24572. inline void TestOneofBackwardsCompatible::set_allocated_foo_string(::std::string* foo_string) {
  24573. if (foo_string != NULL) {
  24574. set_has_foo_string();
  24575. } else {
  24576. clear_has_foo_string();
  24577. }
  24578. foo_string_.SetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), foo_string,
  24579. GetArenaNoVirtual());
  24580. // @@protoc_insertion_point(field_set_allocated:protobuf_unittest.TestOneofBackwardsCompatible.foo_string)
  24581. }
  24582. inline ::std::string* TestOneofBackwardsCompatible::unsafe_arena_release_foo_string() {
  24583. // @@protoc_insertion_point(field_unsafe_arena_release:protobuf_unittest.TestOneofBackwardsCompatible.foo_string)
  24584. GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
  24585. clear_has_foo_string();
  24586. return foo_string_.UnsafeArenaRelease(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  24587. GetArenaNoVirtual());
  24588. }
  24589. inline void TestOneofBackwardsCompatible::unsafe_arena_set_allocated_foo_string(
  24590. ::std::string* foo_string) {
  24591. GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
  24592. if (foo_string != NULL) {
  24593. set_has_foo_string();
  24594. } else {
  24595. clear_has_foo_string();
  24596. }
  24597. foo_string_.UnsafeArenaSetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  24598. foo_string, GetArenaNoVirtual());
  24599. // @@protoc_insertion_point(field_unsafe_arena_set_allocated:protobuf_unittest.TestOneofBackwardsCompatible.foo_string)
  24600. }
  24601. // optional .protobuf_unittest.TestAllTypes foo_message = 3;
  24602. inline bool TestOneofBackwardsCompatible::has_foo_message() const {
  24603. return (_has_bits_[0] & 0x00000002u) != 0;
  24604. }
  24605. inline void TestOneofBackwardsCompatible::set_has_foo_message() {
  24606. _has_bits_[0] |= 0x00000002u;
  24607. }
  24608. inline void TestOneofBackwardsCompatible::clear_has_foo_message() {
  24609. _has_bits_[0] &= ~0x00000002u;
  24610. }
  24611. inline void TestOneofBackwardsCompatible::clear_foo_message() {
  24612. if (foo_message_ != NULL) foo_message_->Clear();
  24613. clear_has_foo_message();
  24614. }
  24615. inline const ::protobuf_unittest::TestAllTypes& TestOneofBackwardsCompatible::_internal_foo_message() const {
  24616. return *foo_message_;
  24617. }
  24618. inline const ::protobuf_unittest::TestAllTypes& TestOneofBackwardsCompatible::foo_message() const {
  24619. const ::protobuf_unittest::TestAllTypes* p = foo_message_;
  24620. // @@protoc_insertion_point(field_get:protobuf_unittest.TestOneofBackwardsCompatible.foo_message)
  24621. return p != NULL ? *p : *reinterpret_cast<const ::protobuf_unittest::TestAllTypes*>(
  24622. &::protobuf_unittest::_TestAllTypes_default_instance_);
  24623. }
  24624. inline ::protobuf_unittest::TestAllTypes* TestOneofBackwardsCompatible::release_foo_message() {
  24625. // @@protoc_insertion_point(field_release:protobuf_unittest.TestOneofBackwardsCompatible.foo_message)
  24626. clear_has_foo_message();
  24627. ::protobuf_unittest::TestAllTypes* temp = foo_message_;
  24628. if (GetArenaNoVirtual() != NULL) {
  24629. temp = ::google::protobuf::internal::DuplicateIfNonNull(temp);
  24630. }
  24631. foo_message_ = NULL;
  24632. return temp;
  24633. }
  24634. inline ::protobuf_unittest::TestAllTypes* TestOneofBackwardsCompatible::unsafe_arena_release_foo_message() {
  24635. // @@protoc_insertion_point(field_unsafe_arena_release:protobuf_unittest.TestOneofBackwardsCompatible.foo_message)
  24636. clear_has_foo_message();
  24637. ::protobuf_unittest::TestAllTypes* temp = foo_message_;
  24638. foo_message_ = NULL;
  24639. return temp;
  24640. }
  24641. inline ::protobuf_unittest::TestAllTypes* TestOneofBackwardsCompatible::mutable_foo_message() {
  24642. set_has_foo_message();
  24643. if (foo_message_ == NULL) {
  24644. auto* p = CreateMaybeMessage<::protobuf_unittest::TestAllTypes>(GetArenaNoVirtual());
  24645. foo_message_ = p;
  24646. }
  24647. // @@protoc_insertion_point(field_mutable:protobuf_unittest.TestOneofBackwardsCompatible.foo_message)
  24648. return foo_message_;
  24649. }
  24650. inline void TestOneofBackwardsCompatible::set_allocated_foo_message(::protobuf_unittest::TestAllTypes* foo_message) {
  24651. ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
  24652. if (message_arena == NULL) {
  24653. delete foo_message_;
  24654. }
  24655. if (foo_message) {
  24656. ::google::protobuf::Arena* submessage_arena =
  24657. ::google::protobuf::Arena::GetArena(foo_message);
  24658. if (message_arena != submessage_arena) {
  24659. foo_message = ::google::protobuf::internal::GetOwnedMessage(
  24660. message_arena, foo_message, submessage_arena);
  24661. }
  24662. set_has_foo_message();
  24663. } else {
  24664. clear_has_foo_message();
  24665. }
  24666. foo_message_ = foo_message;
  24667. // @@protoc_insertion_point(field_set_allocated:protobuf_unittest.TestOneofBackwardsCompatible.foo_message)
  24668. }
  24669. // optional group FooGroup = 4 { ... };
  24670. inline bool TestOneofBackwardsCompatible::has_foogroup() const {
  24671. return (_has_bits_[0] & 0x00000004u) != 0;
  24672. }
  24673. inline void TestOneofBackwardsCompatible::set_has_foogroup() {
  24674. _has_bits_[0] |= 0x00000004u;
  24675. }
  24676. inline void TestOneofBackwardsCompatible::clear_has_foogroup() {
  24677. _has_bits_[0] &= ~0x00000004u;
  24678. }
  24679. inline void TestOneofBackwardsCompatible::clear_foogroup() {
  24680. if (foogroup_ != NULL) foogroup_->Clear();
  24681. clear_has_foogroup();
  24682. }
  24683. inline const ::protobuf_unittest::TestOneofBackwardsCompatible_FooGroup& TestOneofBackwardsCompatible::_internal_foogroup() const {
  24684. return *foogroup_;
  24685. }
  24686. inline const ::protobuf_unittest::TestOneofBackwardsCompatible_FooGroup& TestOneofBackwardsCompatible::foogroup() const {
  24687. const ::protobuf_unittest::TestOneofBackwardsCompatible_FooGroup* p = foogroup_;
  24688. // @@protoc_insertion_point(field_get:protobuf_unittest.TestOneofBackwardsCompatible.foogroup)
  24689. return p != NULL ? *p : *reinterpret_cast<const ::protobuf_unittest::TestOneofBackwardsCompatible_FooGroup*>(
  24690. &::protobuf_unittest::_TestOneofBackwardsCompatible_FooGroup_default_instance_);
  24691. }
  24692. inline ::protobuf_unittest::TestOneofBackwardsCompatible_FooGroup* TestOneofBackwardsCompatible::release_foogroup() {
  24693. // @@protoc_insertion_point(field_release:protobuf_unittest.TestOneofBackwardsCompatible.foogroup)
  24694. clear_has_foogroup();
  24695. ::protobuf_unittest::TestOneofBackwardsCompatible_FooGroup* temp = foogroup_;
  24696. if (GetArenaNoVirtual() != NULL) {
  24697. temp = ::google::protobuf::internal::DuplicateIfNonNull(temp);
  24698. }
  24699. foogroup_ = NULL;
  24700. return temp;
  24701. }
  24702. inline ::protobuf_unittest::TestOneofBackwardsCompatible_FooGroup* TestOneofBackwardsCompatible::unsafe_arena_release_foogroup() {
  24703. // @@protoc_insertion_point(field_unsafe_arena_release:protobuf_unittest.TestOneofBackwardsCompatible.foogroup)
  24704. clear_has_foogroup();
  24705. ::protobuf_unittest::TestOneofBackwardsCompatible_FooGroup* temp = foogroup_;
  24706. foogroup_ = NULL;
  24707. return temp;
  24708. }
  24709. inline ::protobuf_unittest::TestOneofBackwardsCompatible_FooGroup* TestOneofBackwardsCompatible::mutable_foogroup() {
  24710. set_has_foogroup();
  24711. if (foogroup_ == NULL) {
  24712. auto* p = CreateMaybeMessage<::protobuf_unittest::TestOneofBackwardsCompatible_FooGroup>(GetArenaNoVirtual());
  24713. foogroup_ = p;
  24714. }
  24715. // @@protoc_insertion_point(field_mutable:protobuf_unittest.TestOneofBackwardsCompatible.foogroup)
  24716. return foogroup_;
  24717. }
  24718. inline void TestOneofBackwardsCompatible::set_allocated_foogroup(::protobuf_unittest::TestOneofBackwardsCompatible_FooGroup* foogroup) {
  24719. ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
  24720. if (message_arena == NULL) {
  24721. delete foogroup_;
  24722. }
  24723. if (foogroup) {
  24724. ::google::protobuf::Arena* submessage_arena =
  24725. ::google::protobuf::Arena::GetArena(foogroup);
  24726. if (message_arena != submessage_arena) {
  24727. foogroup = ::google::protobuf::internal::GetOwnedMessage(
  24728. message_arena, foogroup, submessage_arena);
  24729. }
  24730. set_has_foogroup();
  24731. } else {
  24732. clear_has_foogroup();
  24733. }
  24734. foogroup_ = foogroup;
  24735. // @@protoc_insertion_point(field_set_allocated:protobuf_unittest.TestOneofBackwardsCompatible.foogroup)
  24736. }
  24737. // -------------------------------------------------------------------
  24738. // TestOneof2_FooGroup
  24739. // optional int32 a = 9;
  24740. inline bool TestOneof2_FooGroup::has_a() const {
  24741. return (_has_bits_[0] & 0x00000002u) != 0;
  24742. }
  24743. inline void TestOneof2_FooGroup::set_has_a() {
  24744. _has_bits_[0] |= 0x00000002u;
  24745. }
  24746. inline void TestOneof2_FooGroup::clear_has_a() {
  24747. _has_bits_[0] &= ~0x00000002u;
  24748. }
  24749. inline void TestOneof2_FooGroup::clear_a() {
  24750. a_ = 0;
  24751. clear_has_a();
  24752. }
  24753. inline ::google::protobuf::int32 TestOneof2_FooGroup::a() const {
  24754. // @@protoc_insertion_point(field_get:protobuf_unittest.TestOneof2.FooGroup.a)
  24755. return a_;
  24756. }
  24757. inline void TestOneof2_FooGroup::set_a(::google::protobuf::int32 value) {
  24758. set_has_a();
  24759. a_ = value;
  24760. // @@protoc_insertion_point(field_set:protobuf_unittest.TestOneof2.FooGroup.a)
  24761. }
  24762. // optional string b = 10;
  24763. inline bool TestOneof2_FooGroup::has_b() const {
  24764. return (_has_bits_[0] & 0x00000001u) != 0;
  24765. }
  24766. inline void TestOneof2_FooGroup::set_has_b() {
  24767. _has_bits_[0] |= 0x00000001u;
  24768. }
  24769. inline void TestOneof2_FooGroup::clear_has_b() {
  24770. _has_bits_[0] &= ~0x00000001u;
  24771. }
  24772. inline void TestOneof2_FooGroup::clear_b() {
  24773. b_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
  24774. clear_has_b();
  24775. }
  24776. inline const ::std::string& TestOneof2_FooGroup::b() const {
  24777. // @@protoc_insertion_point(field_get:protobuf_unittest.TestOneof2.FooGroup.b)
  24778. return b_.Get();
  24779. }
  24780. inline void TestOneof2_FooGroup::set_b(const ::std::string& value) {
  24781. set_has_b();
  24782. b_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual());
  24783. // @@protoc_insertion_point(field_set:protobuf_unittest.TestOneof2.FooGroup.b)
  24784. }
  24785. #if LANG_CXX11
  24786. inline void TestOneof2_FooGroup::set_b(::std::string&& value) {
  24787. set_has_b();
  24788. b_.Set(
  24789. &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual());
  24790. // @@protoc_insertion_point(field_set_rvalue:protobuf_unittest.TestOneof2.FooGroup.b)
  24791. }
  24792. #endif
  24793. inline void TestOneof2_FooGroup::set_b(const char* value) {
  24794. GOOGLE_DCHECK(value != NULL);
  24795. set_has_b();
  24796. b_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value),
  24797. GetArenaNoVirtual());
  24798. // @@protoc_insertion_point(field_set_char:protobuf_unittest.TestOneof2.FooGroup.b)
  24799. }
  24800. inline void TestOneof2_FooGroup::set_b(const char* value,
  24801. size_t size) {
  24802. set_has_b();
  24803. b_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(
  24804. reinterpret_cast<const char*>(value), size), GetArenaNoVirtual());
  24805. // @@protoc_insertion_point(field_set_pointer:protobuf_unittest.TestOneof2.FooGroup.b)
  24806. }
  24807. inline ::std::string* TestOneof2_FooGroup::mutable_b() {
  24808. set_has_b();
  24809. // @@protoc_insertion_point(field_mutable:protobuf_unittest.TestOneof2.FooGroup.b)
  24810. return b_.Mutable(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
  24811. }
  24812. inline ::std::string* TestOneof2_FooGroup::release_b() {
  24813. // @@protoc_insertion_point(field_release:protobuf_unittest.TestOneof2.FooGroup.b)
  24814. if (!has_b()) {
  24815. return NULL;
  24816. }
  24817. clear_has_b();
  24818. return b_.ReleaseNonDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
  24819. }
  24820. inline void TestOneof2_FooGroup::set_allocated_b(::std::string* b) {
  24821. if (b != NULL) {
  24822. set_has_b();
  24823. } else {
  24824. clear_has_b();
  24825. }
  24826. b_.SetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), b,
  24827. GetArenaNoVirtual());
  24828. // @@protoc_insertion_point(field_set_allocated:protobuf_unittest.TestOneof2.FooGroup.b)
  24829. }
  24830. inline ::std::string* TestOneof2_FooGroup::unsafe_arena_release_b() {
  24831. // @@protoc_insertion_point(field_unsafe_arena_release:protobuf_unittest.TestOneof2.FooGroup.b)
  24832. GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
  24833. clear_has_b();
  24834. return b_.UnsafeArenaRelease(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  24835. GetArenaNoVirtual());
  24836. }
  24837. inline void TestOneof2_FooGroup::unsafe_arena_set_allocated_b(
  24838. ::std::string* b) {
  24839. GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
  24840. if (b != NULL) {
  24841. set_has_b();
  24842. } else {
  24843. clear_has_b();
  24844. }
  24845. b_.UnsafeArenaSetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  24846. b, GetArenaNoVirtual());
  24847. // @@protoc_insertion_point(field_unsafe_arena_set_allocated:protobuf_unittest.TestOneof2.FooGroup.b)
  24848. }
  24849. // -------------------------------------------------------------------
  24850. // TestOneof2_NestedMessage
  24851. // optional int64 qux_int = 1;
  24852. inline bool TestOneof2_NestedMessage::has_qux_int() const {
  24853. return (_has_bits_[0] & 0x00000001u) != 0;
  24854. }
  24855. inline void TestOneof2_NestedMessage::set_has_qux_int() {
  24856. _has_bits_[0] |= 0x00000001u;
  24857. }
  24858. inline void TestOneof2_NestedMessage::clear_has_qux_int() {
  24859. _has_bits_[0] &= ~0x00000001u;
  24860. }
  24861. inline void TestOneof2_NestedMessage::clear_qux_int() {
  24862. qux_int_ = GOOGLE_LONGLONG(0);
  24863. clear_has_qux_int();
  24864. }
  24865. inline ::google::protobuf::int64 TestOneof2_NestedMessage::qux_int() const {
  24866. // @@protoc_insertion_point(field_get:protobuf_unittest.TestOneof2.NestedMessage.qux_int)
  24867. return qux_int_;
  24868. }
  24869. inline void TestOneof2_NestedMessage::set_qux_int(::google::protobuf::int64 value) {
  24870. set_has_qux_int();
  24871. qux_int_ = value;
  24872. // @@protoc_insertion_point(field_set:protobuf_unittest.TestOneof2.NestedMessage.qux_int)
  24873. }
  24874. // repeated int32 corge_int = 2;
  24875. inline int TestOneof2_NestedMessage::corge_int_size() const {
  24876. return corge_int_.size();
  24877. }
  24878. inline void TestOneof2_NestedMessage::clear_corge_int() {
  24879. corge_int_.Clear();
  24880. }
  24881. inline ::google::protobuf::int32 TestOneof2_NestedMessage::corge_int(int index) const {
  24882. // @@protoc_insertion_point(field_get:protobuf_unittest.TestOneof2.NestedMessage.corge_int)
  24883. return corge_int_.Get(index);
  24884. }
  24885. inline void TestOneof2_NestedMessage::set_corge_int(int index, ::google::protobuf::int32 value) {
  24886. corge_int_.Set(index, value);
  24887. // @@protoc_insertion_point(field_set:protobuf_unittest.TestOneof2.NestedMessage.corge_int)
  24888. }
  24889. inline void TestOneof2_NestedMessage::add_corge_int(::google::protobuf::int32 value) {
  24890. corge_int_.Add(value);
  24891. // @@protoc_insertion_point(field_add:protobuf_unittest.TestOneof2.NestedMessage.corge_int)
  24892. }
  24893. inline const ::google::protobuf::RepeatedField< ::google::protobuf::int32 >&
  24894. TestOneof2_NestedMessage::corge_int() const {
  24895. // @@protoc_insertion_point(field_list:protobuf_unittest.TestOneof2.NestedMessage.corge_int)
  24896. return corge_int_;
  24897. }
  24898. inline ::google::protobuf::RepeatedField< ::google::protobuf::int32 >*
  24899. TestOneof2_NestedMessage::mutable_corge_int() {
  24900. // @@protoc_insertion_point(field_mutable_list:protobuf_unittest.TestOneof2.NestedMessage.corge_int)
  24901. return &corge_int_;
  24902. }
  24903. // -------------------------------------------------------------------
  24904. // TestOneof2
  24905. // optional int32 foo_int = 1;
  24906. inline bool TestOneof2::has_foo_int() const {
  24907. return foo_case() == kFooInt;
  24908. }
  24909. inline void TestOneof2::set_has_foo_int() {
  24910. _oneof_case_[0] = kFooInt;
  24911. }
  24912. inline void TestOneof2::clear_foo_int() {
  24913. if (has_foo_int()) {
  24914. foo_.foo_int_ = 0;
  24915. clear_has_foo();
  24916. }
  24917. }
  24918. inline ::google::protobuf::int32 TestOneof2::foo_int() const {
  24919. // @@protoc_insertion_point(field_get:protobuf_unittest.TestOneof2.foo_int)
  24920. if (has_foo_int()) {
  24921. return foo_.foo_int_;
  24922. }
  24923. return 0;
  24924. }
  24925. inline void TestOneof2::set_foo_int(::google::protobuf::int32 value) {
  24926. if (!has_foo_int()) {
  24927. clear_foo();
  24928. set_has_foo_int();
  24929. }
  24930. foo_.foo_int_ = value;
  24931. // @@protoc_insertion_point(field_set:protobuf_unittest.TestOneof2.foo_int)
  24932. }
  24933. // optional string foo_string = 2;
  24934. inline bool TestOneof2::has_foo_string() const {
  24935. return foo_case() == kFooString;
  24936. }
  24937. inline void TestOneof2::set_has_foo_string() {
  24938. _oneof_case_[0] = kFooString;
  24939. }
  24940. inline void TestOneof2::clear_foo_string() {
  24941. if (has_foo_string()) {
  24942. foo_.foo_string_.Destroy(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  24943. GetArenaNoVirtual());
  24944. clear_has_foo();
  24945. }
  24946. }
  24947. inline const ::std::string& TestOneof2::foo_string() const {
  24948. // @@protoc_insertion_point(field_get:protobuf_unittest.TestOneof2.foo_string)
  24949. if (has_foo_string()) {
  24950. return foo_.foo_string_.Get();
  24951. }
  24952. return *&::google::protobuf::internal::GetEmptyStringAlreadyInited();
  24953. }
  24954. inline void TestOneof2::set_foo_string(const ::std::string& value) {
  24955. if (!has_foo_string()) {
  24956. clear_foo();
  24957. set_has_foo_string();
  24958. foo_.foo_string_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  24959. }
  24960. foo_.foo_string_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value,
  24961. GetArenaNoVirtual());
  24962. // @@protoc_insertion_point(field_set:protobuf_unittest.TestOneof2.foo_string)
  24963. }
  24964. #if LANG_CXX11
  24965. inline void TestOneof2::set_foo_string(::std::string&& value) {
  24966. // @@protoc_insertion_point(field_set:protobuf_unittest.TestOneof2.foo_string)
  24967. if (!has_foo_string()) {
  24968. clear_foo();
  24969. set_has_foo_string();
  24970. foo_.foo_string_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  24971. }
  24972. foo_.foo_string_.Set(
  24973. &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual());
  24974. // @@protoc_insertion_point(field_set_rvalue:protobuf_unittest.TestOneof2.foo_string)
  24975. }
  24976. #endif
  24977. inline void TestOneof2::set_foo_string(const char* value) {
  24978. GOOGLE_DCHECK(value != NULL);
  24979. if (!has_foo_string()) {
  24980. clear_foo();
  24981. set_has_foo_string();
  24982. foo_.foo_string_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  24983. }
  24984. foo_.foo_string_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  24985. ::std::string(value), GetArenaNoVirtual());
  24986. // @@protoc_insertion_point(field_set_char:protobuf_unittest.TestOneof2.foo_string)
  24987. }
  24988. inline void TestOneof2::set_foo_string(const char* value,
  24989. size_t size) {
  24990. if (!has_foo_string()) {
  24991. clear_foo();
  24992. set_has_foo_string();
  24993. foo_.foo_string_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  24994. }
  24995. foo_.foo_string_.Set(
  24996. &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(
  24997. reinterpret_cast<const char*>(value), size),
  24998. GetArenaNoVirtual());
  24999. // @@protoc_insertion_point(field_set_pointer:protobuf_unittest.TestOneof2.foo_string)
  25000. }
  25001. inline ::std::string* TestOneof2::mutable_foo_string() {
  25002. if (!has_foo_string()) {
  25003. clear_foo();
  25004. set_has_foo_string();
  25005. foo_.foo_string_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  25006. }
  25007. return foo_.foo_string_.Mutable(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  25008. GetArenaNoVirtual());
  25009. // @@protoc_insertion_point(field_mutable:protobuf_unittest.TestOneof2.foo_string)
  25010. }
  25011. inline ::std::string* TestOneof2::release_foo_string() {
  25012. // @@protoc_insertion_point(field_release:protobuf_unittest.TestOneof2.foo_string)
  25013. if (has_foo_string()) {
  25014. clear_has_foo();
  25015. return foo_.foo_string_.Release(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  25016. GetArenaNoVirtual());
  25017. } else {
  25018. return NULL;
  25019. }
  25020. }
  25021. inline void TestOneof2::set_allocated_foo_string(::std::string* foo_string) {
  25022. if (!has_foo_string()) {
  25023. foo_.foo_string_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  25024. }
  25025. clear_foo();
  25026. if (foo_string != NULL) {
  25027. set_has_foo_string();
  25028. foo_.foo_string_.SetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), foo_string,
  25029. GetArenaNoVirtual());
  25030. }
  25031. // @@protoc_insertion_point(field_set_allocated:protobuf_unittest.TestOneof2.foo_string)
  25032. }
  25033. inline ::std::string* TestOneof2::unsafe_arena_release_foo_string() {
  25034. // @@protoc_insertion_point(field_unsafe_arena_release:protobuf_unittest.TestOneof2.foo_string)
  25035. GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
  25036. if (has_foo_string()) {
  25037. clear_has_foo();
  25038. return foo_.foo_string_.UnsafeArenaRelease(
  25039. &::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
  25040. } else {
  25041. return NULL;
  25042. }
  25043. }
  25044. inline void TestOneof2::unsafe_arena_set_allocated_foo_string(::std::string* foo_string) {
  25045. GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
  25046. if (!has_foo_string()) {
  25047. foo_.foo_string_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  25048. }
  25049. clear_foo();
  25050. if (foo_string) {
  25051. set_has_foo_string();
  25052. foo_.foo_string_.UnsafeArenaSetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), foo_string, GetArenaNoVirtual());
  25053. }
  25054. // @@protoc_insertion_point(field_unsafe_arena_set_allocated:protobuf_unittest.TestOneof2.foo_string)
  25055. }
  25056. // optional string foo_cord = 3 [ctype = CORD];
  25057. inline bool TestOneof2::has_foo_cord() const {
  25058. return foo_case() == kFooCord;
  25059. }
  25060. inline void TestOneof2::set_has_foo_cord() {
  25061. _oneof_case_[0] = kFooCord;
  25062. }
  25063. inline void TestOneof2::clear_foo_cord() {
  25064. if (has_foo_cord()) {
  25065. foo_.foo_cord_.Destroy(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  25066. GetArenaNoVirtual());
  25067. clear_has_foo();
  25068. }
  25069. }
  25070. inline const ::std::string& TestOneof2::foo_cord() const {
  25071. // @@protoc_insertion_point(field_get:protobuf_unittest.TestOneof2.foo_cord)
  25072. if (has_foo_cord()) {
  25073. return foo_.foo_cord_.Get();
  25074. }
  25075. return *&::google::protobuf::internal::GetEmptyStringAlreadyInited();
  25076. }
  25077. inline void TestOneof2::set_foo_cord(const ::std::string& value) {
  25078. if (!has_foo_cord()) {
  25079. clear_foo();
  25080. set_has_foo_cord();
  25081. foo_.foo_cord_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  25082. }
  25083. foo_.foo_cord_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value,
  25084. GetArenaNoVirtual());
  25085. // @@protoc_insertion_point(field_set:protobuf_unittest.TestOneof2.foo_cord)
  25086. }
  25087. #if LANG_CXX11
  25088. inline void TestOneof2::set_foo_cord(::std::string&& value) {
  25089. // @@protoc_insertion_point(field_set:protobuf_unittest.TestOneof2.foo_cord)
  25090. if (!has_foo_cord()) {
  25091. clear_foo();
  25092. set_has_foo_cord();
  25093. foo_.foo_cord_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  25094. }
  25095. foo_.foo_cord_.Set(
  25096. &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual());
  25097. // @@protoc_insertion_point(field_set_rvalue:protobuf_unittest.TestOneof2.foo_cord)
  25098. }
  25099. #endif
  25100. inline void TestOneof2::set_foo_cord(const char* value) {
  25101. GOOGLE_DCHECK(value != NULL);
  25102. if (!has_foo_cord()) {
  25103. clear_foo();
  25104. set_has_foo_cord();
  25105. foo_.foo_cord_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  25106. }
  25107. foo_.foo_cord_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  25108. ::std::string(value), GetArenaNoVirtual());
  25109. // @@protoc_insertion_point(field_set_char:protobuf_unittest.TestOneof2.foo_cord)
  25110. }
  25111. inline void TestOneof2::set_foo_cord(const char* value,
  25112. size_t size) {
  25113. if (!has_foo_cord()) {
  25114. clear_foo();
  25115. set_has_foo_cord();
  25116. foo_.foo_cord_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  25117. }
  25118. foo_.foo_cord_.Set(
  25119. &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(
  25120. reinterpret_cast<const char*>(value), size),
  25121. GetArenaNoVirtual());
  25122. // @@protoc_insertion_point(field_set_pointer:protobuf_unittest.TestOneof2.foo_cord)
  25123. }
  25124. inline ::std::string* TestOneof2::mutable_foo_cord() {
  25125. if (!has_foo_cord()) {
  25126. clear_foo();
  25127. set_has_foo_cord();
  25128. foo_.foo_cord_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  25129. }
  25130. return foo_.foo_cord_.Mutable(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  25131. GetArenaNoVirtual());
  25132. // @@protoc_insertion_point(field_mutable:protobuf_unittest.TestOneof2.foo_cord)
  25133. }
  25134. inline ::std::string* TestOneof2::release_foo_cord() {
  25135. // @@protoc_insertion_point(field_release:protobuf_unittest.TestOneof2.foo_cord)
  25136. if (has_foo_cord()) {
  25137. clear_has_foo();
  25138. return foo_.foo_cord_.Release(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  25139. GetArenaNoVirtual());
  25140. } else {
  25141. return NULL;
  25142. }
  25143. }
  25144. inline void TestOneof2::set_allocated_foo_cord(::std::string* foo_cord) {
  25145. if (!has_foo_cord()) {
  25146. foo_.foo_cord_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  25147. }
  25148. clear_foo();
  25149. if (foo_cord != NULL) {
  25150. set_has_foo_cord();
  25151. foo_.foo_cord_.SetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), foo_cord,
  25152. GetArenaNoVirtual());
  25153. }
  25154. // @@protoc_insertion_point(field_set_allocated:protobuf_unittest.TestOneof2.foo_cord)
  25155. }
  25156. inline ::std::string* TestOneof2::unsafe_arena_release_foo_cord() {
  25157. // @@protoc_insertion_point(field_unsafe_arena_release:protobuf_unittest.TestOneof2.foo_cord)
  25158. GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
  25159. if (has_foo_cord()) {
  25160. clear_has_foo();
  25161. return foo_.foo_cord_.UnsafeArenaRelease(
  25162. &::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
  25163. } else {
  25164. return NULL;
  25165. }
  25166. }
  25167. inline void TestOneof2::unsafe_arena_set_allocated_foo_cord(::std::string* foo_cord) {
  25168. GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
  25169. if (!has_foo_cord()) {
  25170. foo_.foo_cord_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  25171. }
  25172. clear_foo();
  25173. if (foo_cord) {
  25174. set_has_foo_cord();
  25175. foo_.foo_cord_.UnsafeArenaSetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), foo_cord, GetArenaNoVirtual());
  25176. }
  25177. // @@protoc_insertion_point(field_unsafe_arena_set_allocated:protobuf_unittest.TestOneof2.foo_cord)
  25178. }
  25179. // optional string foo_string_piece = 4 [ctype = STRING_PIECE];
  25180. inline bool TestOneof2::has_foo_string_piece() const {
  25181. return foo_case() == kFooStringPiece;
  25182. }
  25183. inline void TestOneof2::set_has_foo_string_piece() {
  25184. _oneof_case_[0] = kFooStringPiece;
  25185. }
  25186. inline void TestOneof2::clear_foo_string_piece() {
  25187. if (has_foo_string_piece()) {
  25188. foo_.foo_string_piece_.Destroy(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  25189. GetArenaNoVirtual());
  25190. clear_has_foo();
  25191. }
  25192. }
  25193. inline const ::std::string& TestOneof2::foo_string_piece() const {
  25194. // @@protoc_insertion_point(field_get:protobuf_unittest.TestOneof2.foo_string_piece)
  25195. if (has_foo_string_piece()) {
  25196. return foo_.foo_string_piece_.Get();
  25197. }
  25198. return *&::google::protobuf::internal::GetEmptyStringAlreadyInited();
  25199. }
  25200. inline void TestOneof2::set_foo_string_piece(const ::std::string& value) {
  25201. if (!has_foo_string_piece()) {
  25202. clear_foo();
  25203. set_has_foo_string_piece();
  25204. foo_.foo_string_piece_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  25205. }
  25206. foo_.foo_string_piece_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value,
  25207. GetArenaNoVirtual());
  25208. // @@protoc_insertion_point(field_set:protobuf_unittest.TestOneof2.foo_string_piece)
  25209. }
  25210. #if LANG_CXX11
  25211. inline void TestOneof2::set_foo_string_piece(::std::string&& value) {
  25212. // @@protoc_insertion_point(field_set:protobuf_unittest.TestOneof2.foo_string_piece)
  25213. if (!has_foo_string_piece()) {
  25214. clear_foo();
  25215. set_has_foo_string_piece();
  25216. foo_.foo_string_piece_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  25217. }
  25218. foo_.foo_string_piece_.Set(
  25219. &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual());
  25220. // @@protoc_insertion_point(field_set_rvalue:protobuf_unittest.TestOneof2.foo_string_piece)
  25221. }
  25222. #endif
  25223. inline void TestOneof2::set_foo_string_piece(const char* value) {
  25224. GOOGLE_DCHECK(value != NULL);
  25225. if (!has_foo_string_piece()) {
  25226. clear_foo();
  25227. set_has_foo_string_piece();
  25228. foo_.foo_string_piece_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  25229. }
  25230. foo_.foo_string_piece_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  25231. ::std::string(value), GetArenaNoVirtual());
  25232. // @@protoc_insertion_point(field_set_char:protobuf_unittest.TestOneof2.foo_string_piece)
  25233. }
  25234. inline void TestOneof2::set_foo_string_piece(const char* value,
  25235. size_t size) {
  25236. if (!has_foo_string_piece()) {
  25237. clear_foo();
  25238. set_has_foo_string_piece();
  25239. foo_.foo_string_piece_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  25240. }
  25241. foo_.foo_string_piece_.Set(
  25242. &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(
  25243. reinterpret_cast<const char*>(value), size),
  25244. GetArenaNoVirtual());
  25245. // @@protoc_insertion_point(field_set_pointer:protobuf_unittest.TestOneof2.foo_string_piece)
  25246. }
  25247. inline ::std::string* TestOneof2::mutable_foo_string_piece() {
  25248. if (!has_foo_string_piece()) {
  25249. clear_foo();
  25250. set_has_foo_string_piece();
  25251. foo_.foo_string_piece_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  25252. }
  25253. return foo_.foo_string_piece_.Mutable(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  25254. GetArenaNoVirtual());
  25255. // @@protoc_insertion_point(field_mutable:protobuf_unittest.TestOneof2.foo_string_piece)
  25256. }
  25257. inline ::std::string* TestOneof2::release_foo_string_piece() {
  25258. // @@protoc_insertion_point(field_release:protobuf_unittest.TestOneof2.foo_string_piece)
  25259. if (has_foo_string_piece()) {
  25260. clear_has_foo();
  25261. return foo_.foo_string_piece_.Release(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  25262. GetArenaNoVirtual());
  25263. } else {
  25264. return NULL;
  25265. }
  25266. }
  25267. inline void TestOneof2::set_allocated_foo_string_piece(::std::string* foo_string_piece) {
  25268. if (!has_foo_string_piece()) {
  25269. foo_.foo_string_piece_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  25270. }
  25271. clear_foo();
  25272. if (foo_string_piece != NULL) {
  25273. set_has_foo_string_piece();
  25274. foo_.foo_string_piece_.SetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), foo_string_piece,
  25275. GetArenaNoVirtual());
  25276. }
  25277. // @@protoc_insertion_point(field_set_allocated:protobuf_unittest.TestOneof2.foo_string_piece)
  25278. }
  25279. inline ::std::string* TestOneof2::unsafe_arena_release_foo_string_piece() {
  25280. // @@protoc_insertion_point(field_unsafe_arena_release:protobuf_unittest.TestOneof2.foo_string_piece)
  25281. GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
  25282. if (has_foo_string_piece()) {
  25283. clear_has_foo();
  25284. return foo_.foo_string_piece_.UnsafeArenaRelease(
  25285. &::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
  25286. } else {
  25287. return NULL;
  25288. }
  25289. }
  25290. inline void TestOneof2::unsafe_arena_set_allocated_foo_string_piece(::std::string* foo_string_piece) {
  25291. GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
  25292. if (!has_foo_string_piece()) {
  25293. foo_.foo_string_piece_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  25294. }
  25295. clear_foo();
  25296. if (foo_string_piece) {
  25297. set_has_foo_string_piece();
  25298. foo_.foo_string_piece_.UnsafeArenaSetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), foo_string_piece, GetArenaNoVirtual());
  25299. }
  25300. // @@protoc_insertion_point(field_unsafe_arena_set_allocated:protobuf_unittest.TestOneof2.foo_string_piece)
  25301. }
  25302. // optional bytes foo_bytes = 5;
  25303. inline bool TestOneof2::has_foo_bytes() const {
  25304. return foo_case() == kFooBytes;
  25305. }
  25306. inline void TestOneof2::set_has_foo_bytes() {
  25307. _oneof_case_[0] = kFooBytes;
  25308. }
  25309. inline void TestOneof2::clear_foo_bytes() {
  25310. if (has_foo_bytes()) {
  25311. foo_.foo_bytes_.Destroy(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  25312. GetArenaNoVirtual());
  25313. clear_has_foo();
  25314. }
  25315. }
  25316. inline const ::std::string& TestOneof2::foo_bytes() const {
  25317. // @@protoc_insertion_point(field_get:protobuf_unittest.TestOneof2.foo_bytes)
  25318. if (has_foo_bytes()) {
  25319. return foo_.foo_bytes_.Get();
  25320. }
  25321. return *&::google::protobuf::internal::GetEmptyStringAlreadyInited();
  25322. }
  25323. inline void TestOneof2::set_foo_bytes(const ::std::string& value) {
  25324. if (!has_foo_bytes()) {
  25325. clear_foo();
  25326. set_has_foo_bytes();
  25327. foo_.foo_bytes_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  25328. }
  25329. foo_.foo_bytes_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value,
  25330. GetArenaNoVirtual());
  25331. // @@protoc_insertion_point(field_set:protobuf_unittest.TestOneof2.foo_bytes)
  25332. }
  25333. #if LANG_CXX11
  25334. inline void TestOneof2::set_foo_bytes(::std::string&& value) {
  25335. // @@protoc_insertion_point(field_set:protobuf_unittest.TestOneof2.foo_bytes)
  25336. if (!has_foo_bytes()) {
  25337. clear_foo();
  25338. set_has_foo_bytes();
  25339. foo_.foo_bytes_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  25340. }
  25341. foo_.foo_bytes_.Set(
  25342. &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual());
  25343. // @@protoc_insertion_point(field_set_rvalue:protobuf_unittest.TestOneof2.foo_bytes)
  25344. }
  25345. #endif
  25346. inline void TestOneof2::set_foo_bytes(const char* value) {
  25347. GOOGLE_DCHECK(value != NULL);
  25348. if (!has_foo_bytes()) {
  25349. clear_foo();
  25350. set_has_foo_bytes();
  25351. foo_.foo_bytes_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  25352. }
  25353. foo_.foo_bytes_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  25354. ::std::string(value), GetArenaNoVirtual());
  25355. // @@protoc_insertion_point(field_set_char:protobuf_unittest.TestOneof2.foo_bytes)
  25356. }
  25357. inline void TestOneof2::set_foo_bytes(const void* value,
  25358. size_t size) {
  25359. if (!has_foo_bytes()) {
  25360. clear_foo();
  25361. set_has_foo_bytes();
  25362. foo_.foo_bytes_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  25363. }
  25364. foo_.foo_bytes_.Set(
  25365. &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(
  25366. reinterpret_cast<const char*>(value), size),
  25367. GetArenaNoVirtual());
  25368. // @@protoc_insertion_point(field_set_pointer:protobuf_unittest.TestOneof2.foo_bytes)
  25369. }
  25370. inline ::std::string* TestOneof2::mutable_foo_bytes() {
  25371. if (!has_foo_bytes()) {
  25372. clear_foo();
  25373. set_has_foo_bytes();
  25374. foo_.foo_bytes_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  25375. }
  25376. return foo_.foo_bytes_.Mutable(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  25377. GetArenaNoVirtual());
  25378. // @@protoc_insertion_point(field_mutable:protobuf_unittest.TestOneof2.foo_bytes)
  25379. }
  25380. inline ::std::string* TestOneof2::release_foo_bytes() {
  25381. // @@protoc_insertion_point(field_release:protobuf_unittest.TestOneof2.foo_bytes)
  25382. if (has_foo_bytes()) {
  25383. clear_has_foo();
  25384. return foo_.foo_bytes_.Release(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  25385. GetArenaNoVirtual());
  25386. } else {
  25387. return NULL;
  25388. }
  25389. }
  25390. inline void TestOneof2::set_allocated_foo_bytes(::std::string* foo_bytes) {
  25391. if (!has_foo_bytes()) {
  25392. foo_.foo_bytes_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  25393. }
  25394. clear_foo();
  25395. if (foo_bytes != NULL) {
  25396. set_has_foo_bytes();
  25397. foo_.foo_bytes_.SetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), foo_bytes,
  25398. GetArenaNoVirtual());
  25399. }
  25400. // @@protoc_insertion_point(field_set_allocated:protobuf_unittest.TestOneof2.foo_bytes)
  25401. }
  25402. inline ::std::string* TestOneof2::unsafe_arena_release_foo_bytes() {
  25403. // @@protoc_insertion_point(field_unsafe_arena_release:protobuf_unittest.TestOneof2.foo_bytes)
  25404. GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
  25405. if (has_foo_bytes()) {
  25406. clear_has_foo();
  25407. return foo_.foo_bytes_.UnsafeArenaRelease(
  25408. &::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
  25409. } else {
  25410. return NULL;
  25411. }
  25412. }
  25413. inline void TestOneof2::unsafe_arena_set_allocated_foo_bytes(::std::string* foo_bytes) {
  25414. GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
  25415. if (!has_foo_bytes()) {
  25416. foo_.foo_bytes_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  25417. }
  25418. clear_foo();
  25419. if (foo_bytes) {
  25420. set_has_foo_bytes();
  25421. foo_.foo_bytes_.UnsafeArenaSetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), foo_bytes, GetArenaNoVirtual());
  25422. }
  25423. // @@protoc_insertion_point(field_unsafe_arena_set_allocated:protobuf_unittest.TestOneof2.foo_bytes)
  25424. }
  25425. // optional .protobuf_unittest.TestOneof2.NestedEnum foo_enum = 6;
  25426. inline bool TestOneof2::has_foo_enum() const {
  25427. return foo_case() == kFooEnum;
  25428. }
  25429. inline void TestOneof2::set_has_foo_enum() {
  25430. _oneof_case_[0] = kFooEnum;
  25431. }
  25432. inline void TestOneof2::clear_foo_enum() {
  25433. if (has_foo_enum()) {
  25434. foo_.foo_enum_ = 1;
  25435. clear_has_foo();
  25436. }
  25437. }
  25438. inline ::protobuf_unittest::TestOneof2_NestedEnum TestOneof2::foo_enum() const {
  25439. // @@protoc_insertion_point(field_get:protobuf_unittest.TestOneof2.foo_enum)
  25440. if (has_foo_enum()) {
  25441. return static_cast< ::protobuf_unittest::TestOneof2_NestedEnum >(foo_.foo_enum_);
  25442. }
  25443. return static_cast< ::protobuf_unittest::TestOneof2_NestedEnum >(1);
  25444. }
  25445. inline void TestOneof2::set_foo_enum(::protobuf_unittest::TestOneof2_NestedEnum value) {
  25446. assert(::protobuf_unittest::TestOneof2_NestedEnum_IsValid(value));
  25447. if (!has_foo_enum()) {
  25448. clear_foo();
  25449. set_has_foo_enum();
  25450. }
  25451. foo_.foo_enum_ = value;
  25452. // @@protoc_insertion_point(field_set:protobuf_unittest.TestOneof2.foo_enum)
  25453. }
  25454. // optional .protobuf_unittest.TestOneof2.NestedMessage foo_message = 7;
  25455. inline bool TestOneof2::has_foo_message() const {
  25456. return foo_case() == kFooMessage;
  25457. }
  25458. inline void TestOneof2::set_has_foo_message() {
  25459. _oneof_case_[0] = kFooMessage;
  25460. }
  25461. inline void TestOneof2::clear_foo_message() {
  25462. if (has_foo_message()) {
  25463. if (GetArenaNoVirtual() == NULL) {
  25464. delete foo_.foo_message_;
  25465. }
  25466. clear_has_foo();
  25467. }
  25468. }
  25469. inline const ::protobuf_unittest::TestOneof2_NestedMessage& TestOneof2::_internal_foo_message() const {
  25470. return *foo_.foo_message_;
  25471. }
  25472. inline ::protobuf_unittest::TestOneof2_NestedMessage* TestOneof2::release_foo_message() {
  25473. // @@protoc_insertion_point(field_release:protobuf_unittest.TestOneof2.foo_message)
  25474. if (has_foo_message()) {
  25475. clear_has_foo();
  25476. ::protobuf_unittest::TestOneof2_NestedMessage* temp = foo_.foo_message_;
  25477. if (GetArenaNoVirtual() != NULL) {
  25478. temp = ::google::protobuf::internal::DuplicateIfNonNull(temp);
  25479. }
  25480. foo_.foo_message_ = NULL;
  25481. return temp;
  25482. } else {
  25483. return NULL;
  25484. }
  25485. }
  25486. inline const ::protobuf_unittest::TestOneof2_NestedMessage& TestOneof2::foo_message() const {
  25487. // @@protoc_insertion_point(field_get:protobuf_unittest.TestOneof2.foo_message)
  25488. return has_foo_message()
  25489. ? *foo_.foo_message_
  25490. : *reinterpret_cast< ::protobuf_unittest::TestOneof2_NestedMessage*>(&::protobuf_unittest::_TestOneof2_NestedMessage_default_instance_);
  25491. }
  25492. inline ::protobuf_unittest::TestOneof2_NestedMessage* TestOneof2::unsafe_arena_release_foo_message() {
  25493. // @@protoc_insertion_point(field_unsafe_arena_release:protobuf_unittest.TestOneof2.foo_message)
  25494. if (has_foo_message()) {
  25495. clear_has_foo();
  25496. ::protobuf_unittest::TestOneof2_NestedMessage* temp = foo_.foo_message_;
  25497. foo_.foo_message_ = NULL;
  25498. return temp;
  25499. } else {
  25500. return NULL;
  25501. }
  25502. }
  25503. inline void TestOneof2::unsafe_arena_set_allocated_foo_message(::protobuf_unittest::TestOneof2_NestedMessage* foo_message) {
  25504. clear_foo();
  25505. if (foo_message) {
  25506. set_has_foo_message();
  25507. foo_.foo_message_ = foo_message;
  25508. }
  25509. // @@protoc_insertion_point(field_unsafe_arena_set_allocated:protobuf_unittest.TestOneof2.foo_message)
  25510. }
  25511. inline ::protobuf_unittest::TestOneof2_NestedMessage* TestOneof2::mutable_foo_message() {
  25512. if (!has_foo_message()) {
  25513. clear_foo();
  25514. set_has_foo_message();
  25515. foo_.foo_message_ = CreateMaybeMessage< ::protobuf_unittest::TestOneof2_NestedMessage >(
  25516. GetArenaNoVirtual());
  25517. }
  25518. // @@protoc_insertion_point(field_mutable:protobuf_unittest.TestOneof2.foo_message)
  25519. return foo_.foo_message_;
  25520. }
  25521. // optional group FooGroup = 8 { ... };
  25522. inline bool TestOneof2::has_foogroup() const {
  25523. return foo_case() == kFoogroup;
  25524. }
  25525. inline void TestOneof2::set_has_foogroup() {
  25526. _oneof_case_[0] = kFoogroup;
  25527. }
  25528. inline void TestOneof2::clear_foogroup() {
  25529. if (has_foogroup()) {
  25530. if (GetArenaNoVirtual() == NULL) {
  25531. delete foo_.foogroup_;
  25532. }
  25533. clear_has_foo();
  25534. }
  25535. }
  25536. inline const ::protobuf_unittest::TestOneof2_FooGroup& TestOneof2::_internal_foogroup() const {
  25537. return *foo_.foogroup_;
  25538. }
  25539. inline ::protobuf_unittest::TestOneof2_FooGroup* TestOneof2::release_foogroup() {
  25540. // @@protoc_insertion_point(field_release:protobuf_unittest.TestOneof2.foogroup)
  25541. if (has_foogroup()) {
  25542. clear_has_foo();
  25543. ::protobuf_unittest::TestOneof2_FooGroup* temp = foo_.foogroup_;
  25544. if (GetArenaNoVirtual() != NULL) {
  25545. temp = ::google::protobuf::internal::DuplicateIfNonNull(temp);
  25546. }
  25547. foo_.foogroup_ = NULL;
  25548. return temp;
  25549. } else {
  25550. return NULL;
  25551. }
  25552. }
  25553. inline const ::protobuf_unittest::TestOneof2_FooGroup& TestOneof2::foogroup() const {
  25554. // @@protoc_insertion_point(field_get:protobuf_unittest.TestOneof2.foogroup)
  25555. return has_foogroup()
  25556. ? *foo_.foogroup_
  25557. : *reinterpret_cast< ::protobuf_unittest::TestOneof2_FooGroup*>(&::protobuf_unittest::_TestOneof2_FooGroup_default_instance_);
  25558. }
  25559. inline ::protobuf_unittest::TestOneof2_FooGroup* TestOneof2::unsafe_arena_release_foogroup() {
  25560. // @@protoc_insertion_point(field_unsafe_arena_release:protobuf_unittest.TestOneof2.foogroup)
  25561. if (has_foogroup()) {
  25562. clear_has_foo();
  25563. ::protobuf_unittest::TestOneof2_FooGroup* temp = foo_.foogroup_;
  25564. foo_.foogroup_ = NULL;
  25565. return temp;
  25566. } else {
  25567. return NULL;
  25568. }
  25569. }
  25570. inline void TestOneof2::unsafe_arena_set_allocated_foogroup(::protobuf_unittest::TestOneof2_FooGroup* foogroup) {
  25571. clear_foo();
  25572. if (foogroup) {
  25573. set_has_foogroup();
  25574. foo_.foogroup_ = foogroup;
  25575. }
  25576. // @@protoc_insertion_point(field_unsafe_arena_set_allocated:protobuf_unittest.TestOneof2.foogroup)
  25577. }
  25578. inline ::protobuf_unittest::TestOneof2_FooGroup* TestOneof2::mutable_foogroup() {
  25579. if (!has_foogroup()) {
  25580. clear_foo();
  25581. set_has_foogroup();
  25582. foo_.foogroup_ = CreateMaybeMessage< ::protobuf_unittest::TestOneof2_FooGroup >(
  25583. GetArenaNoVirtual());
  25584. }
  25585. // @@protoc_insertion_point(field_mutable:protobuf_unittest.TestOneof2.foogroup)
  25586. return foo_.foogroup_;
  25587. }
  25588. // optional .protobuf_unittest.TestOneof2.NestedMessage foo_lazy_message = 11 [lazy = true];
  25589. inline bool TestOneof2::has_foo_lazy_message() const {
  25590. return foo_case() == kFooLazyMessage;
  25591. }
  25592. inline void TestOneof2::set_has_foo_lazy_message() {
  25593. _oneof_case_[0] = kFooLazyMessage;
  25594. }
  25595. inline void TestOneof2::clear_foo_lazy_message() {
  25596. if (has_foo_lazy_message()) {
  25597. if (GetArenaNoVirtual() == NULL) {
  25598. delete foo_.foo_lazy_message_;
  25599. }
  25600. clear_has_foo();
  25601. }
  25602. }
  25603. inline const ::protobuf_unittest::TestOneof2_NestedMessage& TestOneof2::_internal_foo_lazy_message() const {
  25604. return *foo_.foo_lazy_message_;
  25605. }
  25606. inline ::protobuf_unittest::TestOneof2_NestedMessage* TestOneof2::release_foo_lazy_message() {
  25607. // @@protoc_insertion_point(field_release:protobuf_unittest.TestOneof2.foo_lazy_message)
  25608. if (has_foo_lazy_message()) {
  25609. clear_has_foo();
  25610. ::protobuf_unittest::TestOneof2_NestedMessage* temp = foo_.foo_lazy_message_;
  25611. if (GetArenaNoVirtual() != NULL) {
  25612. temp = ::google::protobuf::internal::DuplicateIfNonNull(temp);
  25613. }
  25614. foo_.foo_lazy_message_ = NULL;
  25615. return temp;
  25616. } else {
  25617. return NULL;
  25618. }
  25619. }
  25620. inline const ::protobuf_unittest::TestOneof2_NestedMessage& TestOneof2::foo_lazy_message() const {
  25621. // @@protoc_insertion_point(field_get:protobuf_unittest.TestOneof2.foo_lazy_message)
  25622. return has_foo_lazy_message()
  25623. ? *foo_.foo_lazy_message_
  25624. : *reinterpret_cast< ::protobuf_unittest::TestOneof2_NestedMessage*>(&::protobuf_unittest::_TestOneof2_NestedMessage_default_instance_);
  25625. }
  25626. inline ::protobuf_unittest::TestOneof2_NestedMessage* TestOneof2::unsafe_arena_release_foo_lazy_message() {
  25627. // @@protoc_insertion_point(field_unsafe_arena_release:protobuf_unittest.TestOneof2.foo_lazy_message)
  25628. if (has_foo_lazy_message()) {
  25629. clear_has_foo();
  25630. ::protobuf_unittest::TestOneof2_NestedMessage* temp = foo_.foo_lazy_message_;
  25631. foo_.foo_lazy_message_ = NULL;
  25632. return temp;
  25633. } else {
  25634. return NULL;
  25635. }
  25636. }
  25637. inline void TestOneof2::unsafe_arena_set_allocated_foo_lazy_message(::protobuf_unittest::TestOneof2_NestedMessage* foo_lazy_message) {
  25638. clear_foo();
  25639. if (foo_lazy_message) {
  25640. set_has_foo_lazy_message();
  25641. foo_.foo_lazy_message_ = foo_lazy_message;
  25642. }
  25643. // @@protoc_insertion_point(field_unsafe_arena_set_allocated:protobuf_unittest.TestOneof2.foo_lazy_message)
  25644. }
  25645. inline ::protobuf_unittest::TestOneof2_NestedMessage* TestOneof2::mutable_foo_lazy_message() {
  25646. if (!has_foo_lazy_message()) {
  25647. clear_foo();
  25648. set_has_foo_lazy_message();
  25649. foo_.foo_lazy_message_ = CreateMaybeMessage< ::protobuf_unittest::TestOneof2_NestedMessage >(
  25650. GetArenaNoVirtual());
  25651. }
  25652. // @@protoc_insertion_point(field_mutable:protobuf_unittest.TestOneof2.foo_lazy_message)
  25653. return foo_.foo_lazy_message_;
  25654. }
  25655. // optional int32 bar_int = 12 [default = 5];
  25656. inline bool TestOneof2::has_bar_int() const {
  25657. return bar_case() == kBarInt;
  25658. }
  25659. inline void TestOneof2::set_has_bar_int() {
  25660. _oneof_case_[1] = kBarInt;
  25661. }
  25662. inline void TestOneof2::clear_bar_int() {
  25663. if (has_bar_int()) {
  25664. bar_.bar_int_ = 5;
  25665. clear_has_bar();
  25666. }
  25667. }
  25668. inline ::google::protobuf::int32 TestOneof2::bar_int() const {
  25669. // @@protoc_insertion_point(field_get:protobuf_unittest.TestOneof2.bar_int)
  25670. if (has_bar_int()) {
  25671. return bar_.bar_int_;
  25672. }
  25673. return 5;
  25674. }
  25675. inline void TestOneof2::set_bar_int(::google::protobuf::int32 value) {
  25676. if (!has_bar_int()) {
  25677. clear_bar();
  25678. set_has_bar_int();
  25679. }
  25680. bar_.bar_int_ = value;
  25681. // @@protoc_insertion_point(field_set:protobuf_unittest.TestOneof2.bar_int)
  25682. }
  25683. // optional string bar_string = 13 [default = "STRING"];
  25684. inline bool TestOneof2::has_bar_string() const {
  25685. return bar_case() == kBarString;
  25686. }
  25687. inline void TestOneof2::set_has_bar_string() {
  25688. _oneof_case_[1] = kBarString;
  25689. }
  25690. inline void TestOneof2::clear_bar_string() {
  25691. if (has_bar_string()) {
  25692. bar_.bar_string_.Destroy(&::protobuf_unittest::TestOneof2::_i_give_permission_to_break_this_code_default_bar_string_.get(),
  25693. GetArenaNoVirtual());
  25694. clear_has_bar();
  25695. }
  25696. }
  25697. inline const ::std::string& TestOneof2::bar_string() const {
  25698. // @@protoc_insertion_point(field_get:protobuf_unittest.TestOneof2.bar_string)
  25699. if (has_bar_string()) {
  25700. return bar_.bar_string_.Get();
  25701. }
  25702. return *&::protobuf_unittest::TestOneof2::_i_give_permission_to_break_this_code_default_bar_string_.get();
  25703. }
  25704. inline void TestOneof2::set_bar_string(const ::std::string& value) {
  25705. if (!has_bar_string()) {
  25706. clear_bar();
  25707. set_has_bar_string();
  25708. bar_.bar_string_.UnsafeSetDefault(&::protobuf_unittest::TestOneof2::_i_give_permission_to_break_this_code_default_bar_string_.get());
  25709. }
  25710. bar_.bar_string_.Set(&::protobuf_unittest::TestOneof2::_i_give_permission_to_break_this_code_default_bar_string_.get(), value,
  25711. GetArenaNoVirtual());
  25712. // @@protoc_insertion_point(field_set:protobuf_unittest.TestOneof2.bar_string)
  25713. }
  25714. #if LANG_CXX11
  25715. inline void TestOneof2::set_bar_string(::std::string&& value) {
  25716. // @@protoc_insertion_point(field_set:protobuf_unittest.TestOneof2.bar_string)
  25717. if (!has_bar_string()) {
  25718. clear_bar();
  25719. set_has_bar_string();
  25720. bar_.bar_string_.UnsafeSetDefault(&::protobuf_unittest::TestOneof2::_i_give_permission_to_break_this_code_default_bar_string_.get());
  25721. }
  25722. bar_.bar_string_.Set(
  25723. &::protobuf_unittest::TestOneof2::_i_give_permission_to_break_this_code_default_bar_string_.get(), ::std::move(value), GetArenaNoVirtual());
  25724. // @@protoc_insertion_point(field_set_rvalue:protobuf_unittest.TestOneof2.bar_string)
  25725. }
  25726. #endif
  25727. inline void TestOneof2::set_bar_string(const char* value) {
  25728. GOOGLE_DCHECK(value != NULL);
  25729. if (!has_bar_string()) {
  25730. clear_bar();
  25731. set_has_bar_string();
  25732. bar_.bar_string_.UnsafeSetDefault(&::protobuf_unittest::TestOneof2::_i_give_permission_to_break_this_code_default_bar_string_.get());
  25733. }
  25734. bar_.bar_string_.Set(&::protobuf_unittest::TestOneof2::_i_give_permission_to_break_this_code_default_bar_string_.get(),
  25735. ::std::string(value), GetArenaNoVirtual());
  25736. // @@protoc_insertion_point(field_set_char:protobuf_unittest.TestOneof2.bar_string)
  25737. }
  25738. inline void TestOneof2::set_bar_string(const char* value,
  25739. size_t size) {
  25740. if (!has_bar_string()) {
  25741. clear_bar();
  25742. set_has_bar_string();
  25743. bar_.bar_string_.UnsafeSetDefault(&::protobuf_unittest::TestOneof2::_i_give_permission_to_break_this_code_default_bar_string_.get());
  25744. }
  25745. bar_.bar_string_.Set(
  25746. &::protobuf_unittest::TestOneof2::_i_give_permission_to_break_this_code_default_bar_string_.get(), ::std::string(
  25747. reinterpret_cast<const char*>(value), size),
  25748. GetArenaNoVirtual());
  25749. // @@protoc_insertion_point(field_set_pointer:protobuf_unittest.TestOneof2.bar_string)
  25750. }
  25751. inline ::std::string* TestOneof2::mutable_bar_string() {
  25752. if (!has_bar_string()) {
  25753. clear_bar();
  25754. set_has_bar_string();
  25755. bar_.bar_string_.UnsafeSetDefault(&::protobuf_unittest::TestOneof2::_i_give_permission_to_break_this_code_default_bar_string_.get());
  25756. }
  25757. return bar_.bar_string_.Mutable(&::protobuf_unittest::TestOneof2::_i_give_permission_to_break_this_code_default_bar_string_.get(),
  25758. GetArenaNoVirtual());
  25759. // @@protoc_insertion_point(field_mutable:protobuf_unittest.TestOneof2.bar_string)
  25760. }
  25761. inline ::std::string* TestOneof2::release_bar_string() {
  25762. // @@protoc_insertion_point(field_release:protobuf_unittest.TestOneof2.bar_string)
  25763. if (has_bar_string()) {
  25764. clear_has_bar();
  25765. return bar_.bar_string_.Release(&::protobuf_unittest::TestOneof2::_i_give_permission_to_break_this_code_default_bar_string_.get(),
  25766. GetArenaNoVirtual());
  25767. } else {
  25768. return NULL;
  25769. }
  25770. }
  25771. inline void TestOneof2::set_allocated_bar_string(::std::string* bar_string) {
  25772. if (!has_bar_string()) {
  25773. bar_.bar_string_.UnsafeSetDefault(&::protobuf_unittest::TestOneof2::_i_give_permission_to_break_this_code_default_bar_string_.get());
  25774. }
  25775. clear_bar();
  25776. if (bar_string != NULL) {
  25777. set_has_bar_string();
  25778. bar_.bar_string_.SetAllocated(&::protobuf_unittest::TestOneof2::_i_give_permission_to_break_this_code_default_bar_string_.get(), bar_string,
  25779. GetArenaNoVirtual());
  25780. }
  25781. // @@protoc_insertion_point(field_set_allocated:protobuf_unittest.TestOneof2.bar_string)
  25782. }
  25783. inline ::std::string* TestOneof2::unsafe_arena_release_bar_string() {
  25784. // @@protoc_insertion_point(field_unsafe_arena_release:protobuf_unittest.TestOneof2.bar_string)
  25785. GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
  25786. if (has_bar_string()) {
  25787. clear_has_bar();
  25788. return bar_.bar_string_.UnsafeArenaRelease(
  25789. &::protobuf_unittest::TestOneof2::_i_give_permission_to_break_this_code_default_bar_string_.get(), GetArenaNoVirtual());
  25790. } else {
  25791. return NULL;
  25792. }
  25793. }
  25794. inline void TestOneof2::unsafe_arena_set_allocated_bar_string(::std::string* bar_string) {
  25795. GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
  25796. if (!has_bar_string()) {
  25797. bar_.bar_string_.UnsafeSetDefault(&::protobuf_unittest::TestOneof2::_i_give_permission_to_break_this_code_default_bar_string_.get());
  25798. }
  25799. clear_bar();
  25800. if (bar_string) {
  25801. set_has_bar_string();
  25802. bar_.bar_string_.UnsafeArenaSetAllocated(&::protobuf_unittest::TestOneof2::_i_give_permission_to_break_this_code_default_bar_string_.get(), bar_string, GetArenaNoVirtual());
  25803. }
  25804. // @@protoc_insertion_point(field_unsafe_arena_set_allocated:protobuf_unittest.TestOneof2.bar_string)
  25805. }
  25806. // optional string bar_cord = 14 [default = "CORD", ctype = CORD];
  25807. inline bool TestOneof2::has_bar_cord() const {
  25808. return bar_case() == kBarCord;
  25809. }
  25810. inline void TestOneof2::set_has_bar_cord() {
  25811. _oneof_case_[1] = kBarCord;
  25812. }
  25813. inline void TestOneof2::clear_bar_cord() {
  25814. if (has_bar_cord()) {
  25815. bar_.bar_cord_.Destroy(&::protobuf_unittest::TestOneof2::_i_give_permission_to_break_this_code_default_bar_cord_.get(),
  25816. GetArenaNoVirtual());
  25817. clear_has_bar();
  25818. }
  25819. }
  25820. inline const ::std::string& TestOneof2::bar_cord() const {
  25821. // @@protoc_insertion_point(field_get:protobuf_unittest.TestOneof2.bar_cord)
  25822. if (has_bar_cord()) {
  25823. return bar_.bar_cord_.Get();
  25824. }
  25825. return *&::protobuf_unittest::TestOneof2::_i_give_permission_to_break_this_code_default_bar_cord_.get();
  25826. }
  25827. inline void TestOneof2::set_bar_cord(const ::std::string& value) {
  25828. if (!has_bar_cord()) {
  25829. clear_bar();
  25830. set_has_bar_cord();
  25831. bar_.bar_cord_.UnsafeSetDefault(&::protobuf_unittest::TestOneof2::_i_give_permission_to_break_this_code_default_bar_cord_.get());
  25832. }
  25833. bar_.bar_cord_.Set(&::protobuf_unittest::TestOneof2::_i_give_permission_to_break_this_code_default_bar_cord_.get(), value,
  25834. GetArenaNoVirtual());
  25835. // @@protoc_insertion_point(field_set:protobuf_unittest.TestOneof2.bar_cord)
  25836. }
  25837. #if LANG_CXX11
  25838. inline void TestOneof2::set_bar_cord(::std::string&& value) {
  25839. // @@protoc_insertion_point(field_set:protobuf_unittest.TestOneof2.bar_cord)
  25840. if (!has_bar_cord()) {
  25841. clear_bar();
  25842. set_has_bar_cord();
  25843. bar_.bar_cord_.UnsafeSetDefault(&::protobuf_unittest::TestOneof2::_i_give_permission_to_break_this_code_default_bar_cord_.get());
  25844. }
  25845. bar_.bar_cord_.Set(
  25846. &::protobuf_unittest::TestOneof2::_i_give_permission_to_break_this_code_default_bar_cord_.get(), ::std::move(value), GetArenaNoVirtual());
  25847. // @@protoc_insertion_point(field_set_rvalue:protobuf_unittest.TestOneof2.bar_cord)
  25848. }
  25849. #endif
  25850. inline void TestOneof2::set_bar_cord(const char* value) {
  25851. GOOGLE_DCHECK(value != NULL);
  25852. if (!has_bar_cord()) {
  25853. clear_bar();
  25854. set_has_bar_cord();
  25855. bar_.bar_cord_.UnsafeSetDefault(&::protobuf_unittest::TestOneof2::_i_give_permission_to_break_this_code_default_bar_cord_.get());
  25856. }
  25857. bar_.bar_cord_.Set(&::protobuf_unittest::TestOneof2::_i_give_permission_to_break_this_code_default_bar_cord_.get(),
  25858. ::std::string(value), GetArenaNoVirtual());
  25859. // @@protoc_insertion_point(field_set_char:protobuf_unittest.TestOneof2.bar_cord)
  25860. }
  25861. inline void TestOneof2::set_bar_cord(const char* value,
  25862. size_t size) {
  25863. if (!has_bar_cord()) {
  25864. clear_bar();
  25865. set_has_bar_cord();
  25866. bar_.bar_cord_.UnsafeSetDefault(&::protobuf_unittest::TestOneof2::_i_give_permission_to_break_this_code_default_bar_cord_.get());
  25867. }
  25868. bar_.bar_cord_.Set(
  25869. &::protobuf_unittest::TestOneof2::_i_give_permission_to_break_this_code_default_bar_cord_.get(), ::std::string(
  25870. reinterpret_cast<const char*>(value), size),
  25871. GetArenaNoVirtual());
  25872. // @@protoc_insertion_point(field_set_pointer:protobuf_unittest.TestOneof2.bar_cord)
  25873. }
  25874. inline ::std::string* TestOneof2::mutable_bar_cord() {
  25875. if (!has_bar_cord()) {
  25876. clear_bar();
  25877. set_has_bar_cord();
  25878. bar_.bar_cord_.UnsafeSetDefault(&::protobuf_unittest::TestOneof2::_i_give_permission_to_break_this_code_default_bar_cord_.get());
  25879. }
  25880. return bar_.bar_cord_.Mutable(&::protobuf_unittest::TestOneof2::_i_give_permission_to_break_this_code_default_bar_cord_.get(),
  25881. GetArenaNoVirtual());
  25882. // @@protoc_insertion_point(field_mutable:protobuf_unittest.TestOneof2.bar_cord)
  25883. }
  25884. inline ::std::string* TestOneof2::release_bar_cord() {
  25885. // @@protoc_insertion_point(field_release:protobuf_unittest.TestOneof2.bar_cord)
  25886. if (has_bar_cord()) {
  25887. clear_has_bar();
  25888. return bar_.bar_cord_.Release(&::protobuf_unittest::TestOneof2::_i_give_permission_to_break_this_code_default_bar_cord_.get(),
  25889. GetArenaNoVirtual());
  25890. } else {
  25891. return NULL;
  25892. }
  25893. }
  25894. inline void TestOneof2::set_allocated_bar_cord(::std::string* bar_cord) {
  25895. if (!has_bar_cord()) {
  25896. bar_.bar_cord_.UnsafeSetDefault(&::protobuf_unittest::TestOneof2::_i_give_permission_to_break_this_code_default_bar_cord_.get());
  25897. }
  25898. clear_bar();
  25899. if (bar_cord != NULL) {
  25900. set_has_bar_cord();
  25901. bar_.bar_cord_.SetAllocated(&::protobuf_unittest::TestOneof2::_i_give_permission_to_break_this_code_default_bar_cord_.get(), bar_cord,
  25902. GetArenaNoVirtual());
  25903. }
  25904. // @@protoc_insertion_point(field_set_allocated:protobuf_unittest.TestOneof2.bar_cord)
  25905. }
  25906. inline ::std::string* TestOneof2::unsafe_arena_release_bar_cord() {
  25907. // @@protoc_insertion_point(field_unsafe_arena_release:protobuf_unittest.TestOneof2.bar_cord)
  25908. GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
  25909. if (has_bar_cord()) {
  25910. clear_has_bar();
  25911. return bar_.bar_cord_.UnsafeArenaRelease(
  25912. &::protobuf_unittest::TestOneof2::_i_give_permission_to_break_this_code_default_bar_cord_.get(), GetArenaNoVirtual());
  25913. } else {
  25914. return NULL;
  25915. }
  25916. }
  25917. inline void TestOneof2::unsafe_arena_set_allocated_bar_cord(::std::string* bar_cord) {
  25918. GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
  25919. if (!has_bar_cord()) {
  25920. bar_.bar_cord_.UnsafeSetDefault(&::protobuf_unittest::TestOneof2::_i_give_permission_to_break_this_code_default_bar_cord_.get());
  25921. }
  25922. clear_bar();
  25923. if (bar_cord) {
  25924. set_has_bar_cord();
  25925. bar_.bar_cord_.UnsafeArenaSetAllocated(&::protobuf_unittest::TestOneof2::_i_give_permission_to_break_this_code_default_bar_cord_.get(), bar_cord, GetArenaNoVirtual());
  25926. }
  25927. // @@protoc_insertion_point(field_unsafe_arena_set_allocated:protobuf_unittest.TestOneof2.bar_cord)
  25928. }
  25929. // optional string bar_string_piece = 15 [default = "SPIECE", ctype = STRING_PIECE];
  25930. inline bool TestOneof2::has_bar_string_piece() const {
  25931. return bar_case() == kBarStringPiece;
  25932. }
  25933. inline void TestOneof2::set_has_bar_string_piece() {
  25934. _oneof_case_[1] = kBarStringPiece;
  25935. }
  25936. inline void TestOneof2::clear_bar_string_piece() {
  25937. if (has_bar_string_piece()) {
  25938. bar_.bar_string_piece_.Destroy(&::protobuf_unittest::TestOneof2::_i_give_permission_to_break_this_code_default_bar_string_piece_.get(),
  25939. GetArenaNoVirtual());
  25940. clear_has_bar();
  25941. }
  25942. }
  25943. inline const ::std::string& TestOneof2::bar_string_piece() const {
  25944. // @@protoc_insertion_point(field_get:protobuf_unittest.TestOneof2.bar_string_piece)
  25945. if (has_bar_string_piece()) {
  25946. return bar_.bar_string_piece_.Get();
  25947. }
  25948. return *&::protobuf_unittest::TestOneof2::_i_give_permission_to_break_this_code_default_bar_string_piece_.get();
  25949. }
  25950. inline void TestOneof2::set_bar_string_piece(const ::std::string& value) {
  25951. if (!has_bar_string_piece()) {
  25952. clear_bar();
  25953. set_has_bar_string_piece();
  25954. bar_.bar_string_piece_.UnsafeSetDefault(&::protobuf_unittest::TestOneof2::_i_give_permission_to_break_this_code_default_bar_string_piece_.get());
  25955. }
  25956. bar_.bar_string_piece_.Set(&::protobuf_unittest::TestOneof2::_i_give_permission_to_break_this_code_default_bar_string_piece_.get(), value,
  25957. GetArenaNoVirtual());
  25958. // @@protoc_insertion_point(field_set:protobuf_unittest.TestOneof2.bar_string_piece)
  25959. }
  25960. #if LANG_CXX11
  25961. inline void TestOneof2::set_bar_string_piece(::std::string&& value) {
  25962. // @@protoc_insertion_point(field_set:protobuf_unittest.TestOneof2.bar_string_piece)
  25963. if (!has_bar_string_piece()) {
  25964. clear_bar();
  25965. set_has_bar_string_piece();
  25966. bar_.bar_string_piece_.UnsafeSetDefault(&::protobuf_unittest::TestOneof2::_i_give_permission_to_break_this_code_default_bar_string_piece_.get());
  25967. }
  25968. bar_.bar_string_piece_.Set(
  25969. &::protobuf_unittest::TestOneof2::_i_give_permission_to_break_this_code_default_bar_string_piece_.get(), ::std::move(value), GetArenaNoVirtual());
  25970. // @@protoc_insertion_point(field_set_rvalue:protobuf_unittest.TestOneof2.bar_string_piece)
  25971. }
  25972. #endif
  25973. inline void TestOneof2::set_bar_string_piece(const char* value) {
  25974. GOOGLE_DCHECK(value != NULL);
  25975. if (!has_bar_string_piece()) {
  25976. clear_bar();
  25977. set_has_bar_string_piece();
  25978. bar_.bar_string_piece_.UnsafeSetDefault(&::protobuf_unittest::TestOneof2::_i_give_permission_to_break_this_code_default_bar_string_piece_.get());
  25979. }
  25980. bar_.bar_string_piece_.Set(&::protobuf_unittest::TestOneof2::_i_give_permission_to_break_this_code_default_bar_string_piece_.get(),
  25981. ::std::string(value), GetArenaNoVirtual());
  25982. // @@protoc_insertion_point(field_set_char:protobuf_unittest.TestOneof2.bar_string_piece)
  25983. }
  25984. inline void TestOneof2::set_bar_string_piece(const char* value,
  25985. size_t size) {
  25986. if (!has_bar_string_piece()) {
  25987. clear_bar();
  25988. set_has_bar_string_piece();
  25989. bar_.bar_string_piece_.UnsafeSetDefault(&::protobuf_unittest::TestOneof2::_i_give_permission_to_break_this_code_default_bar_string_piece_.get());
  25990. }
  25991. bar_.bar_string_piece_.Set(
  25992. &::protobuf_unittest::TestOneof2::_i_give_permission_to_break_this_code_default_bar_string_piece_.get(), ::std::string(
  25993. reinterpret_cast<const char*>(value), size),
  25994. GetArenaNoVirtual());
  25995. // @@protoc_insertion_point(field_set_pointer:protobuf_unittest.TestOneof2.bar_string_piece)
  25996. }
  25997. inline ::std::string* TestOneof2::mutable_bar_string_piece() {
  25998. if (!has_bar_string_piece()) {
  25999. clear_bar();
  26000. set_has_bar_string_piece();
  26001. bar_.bar_string_piece_.UnsafeSetDefault(&::protobuf_unittest::TestOneof2::_i_give_permission_to_break_this_code_default_bar_string_piece_.get());
  26002. }
  26003. return bar_.bar_string_piece_.Mutable(&::protobuf_unittest::TestOneof2::_i_give_permission_to_break_this_code_default_bar_string_piece_.get(),
  26004. GetArenaNoVirtual());
  26005. // @@protoc_insertion_point(field_mutable:protobuf_unittest.TestOneof2.bar_string_piece)
  26006. }
  26007. inline ::std::string* TestOneof2::release_bar_string_piece() {
  26008. // @@protoc_insertion_point(field_release:protobuf_unittest.TestOneof2.bar_string_piece)
  26009. if (has_bar_string_piece()) {
  26010. clear_has_bar();
  26011. return bar_.bar_string_piece_.Release(&::protobuf_unittest::TestOneof2::_i_give_permission_to_break_this_code_default_bar_string_piece_.get(),
  26012. GetArenaNoVirtual());
  26013. } else {
  26014. return NULL;
  26015. }
  26016. }
  26017. inline void TestOneof2::set_allocated_bar_string_piece(::std::string* bar_string_piece) {
  26018. if (!has_bar_string_piece()) {
  26019. bar_.bar_string_piece_.UnsafeSetDefault(&::protobuf_unittest::TestOneof2::_i_give_permission_to_break_this_code_default_bar_string_piece_.get());
  26020. }
  26021. clear_bar();
  26022. if (bar_string_piece != NULL) {
  26023. set_has_bar_string_piece();
  26024. bar_.bar_string_piece_.SetAllocated(&::protobuf_unittest::TestOneof2::_i_give_permission_to_break_this_code_default_bar_string_piece_.get(), bar_string_piece,
  26025. GetArenaNoVirtual());
  26026. }
  26027. // @@protoc_insertion_point(field_set_allocated:protobuf_unittest.TestOneof2.bar_string_piece)
  26028. }
  26029. inline ::std::string* TestOneof2::unsafe_arena_release_bar_string_piece() {
  26030. // @@protoc_insertion_point(field_unsafe_arena_release:protobuf_unittest.TestOneof2.bar_string_piece)
  26031. GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
  26032. if (has_bar_string_piece()) {
  26033. clear_has_bar();
  26034. return bar_.bar_string_piece_.UnsafeArenaRelease(
  26035. &::protobuf_unittest::TestOneof2::_i_give_permission_to_break_this_code_default_bar_string_piece_.get(), GetArenaNoVirtual());
  26036. } else {
  26037. return NULL;
  26038. }
  26039. }
  26040. inline void TestOneof2::unsafe_arena_set_allocated_bar_string_piece(::std::string* bar_string_piece) {
  26041. GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
  26042. if (!has_bar_string_piece()) {
  26043. bar_.bar_string_piece_.UnsafeSetDefault(&::protobuf_unittest::TestOneof2::_i_give_permission_to_break_this_code_default_bar_string_piece_.get());
  26044. }
  26045. clear_bar();
  26046. if (bar_string_piece) {
  26047. set_has_bar_string_piece();
  26048. bar_.bar_string_piece_.UnsafeArenaSetAllocated(&::protobuf_unittest::TestOneof2::_i_give_permission_to_break_this_code_default_bar_string_piece_.get(), bar_string_piece, GetArenaNoVirtual());
  26049. }
  26050. // @@protoc_insertion_point(field_unsafe_arena_set_allocated:protobuf_unittest.TestOneof2.bar_string_piece)
  26051. }
  26052. // optional bytes bar_bytes = 16 [default = "BYTES"];
  26053. inline bool TestOneof2::has_bar_bytes() const {
  26054. return bar_case() == kBarBytes;
  26055. }
  26056. inline void TestOneof2::set_has_bar_bytes() {
  26057. _oneof_case_[1] = kBarBytes;
  26058. }
  26059. inline void TestOneof2::clear_bar_bytes() {
  26060. if (has_bar_bytes()) {
  26061. bar_.bar_bytes_.Destroy(&::protobuf_unittest::TestOneof2::_i_give_permission_to_break_this_code_default_bar_bytes_.get(),
  26062. GetArenaNoVirtual());
  26063. clear_has_bar();
  26064. }
  26065. }
  26066. inline const ::std::string& TestOneof2::bar_bytes() const {
  26067. // @@protoc_insertion_point(field_get:protobuf_unittest.TestOneof2.bar_bytes)
  26068. if (has_bar_bytes()) {
  26069. return bar_.bar_bytes_.Get();
  26070. }
  26071. return *&::protobuf_unittest::TestOneof2::_i_give_permission_to_break_this_code_default_bar_bytes_.get();
  26072. }
  26073. inline void TestOneof2::set_bar_bytes(const ::std::string& value) {
  26074. if (!has_bar_bytes()) {
  26075. clear_bar();
  26076. set_has_bar_bytes();
  26077. bar_.bar_bytes_.UnsafeSetDefault(&::protobuf_unittest::TestOneof2::_i_give_permission_to_break_this_code_default_bar_bytes_.get());
  26078. }
  26079. bar_.bar_bytes_.Set(&::protobuf_unittest::TestOneof2::_i_give_permission_to_break_this_code_default_bar_bytes_.get(), value,
  26080. GetArenaNoVirtual());
  26081. // @@protoc_insertion_point(field_set:protobuf_unittest.TestOneof2.bar_bytes)
  26082. }
  26083. #if LANG_CXX11
  26084. inline void TestOneof2::set_bar_bytes(::std::string&& value) {
  26085. // @@protoc_insertion_point(field_set:protobuf_unittest.TestOneof2.bar_bytes)
  26086. if (!has_bar_bytes()) {
  26087. clear_bar();
  26088. set_has_bar_bytes();
  26089. bar_.bar_bytes_.UnsafeSetDefault(&::protobuf_unittest::TestOneof2::_i_give_permission_to_break_this_code_default_bar_bytes_.get());
  26090. }
  26091. bar_.bar_bytes_.Set(
  26092. &::protobuf_unittest::TestOneof2::_i_give_permission_to_break_this_code_default_bar_bytes_.get(), ::std::move(value), GetArenaNoVirtual());
  26093. // @@protoc_insertion_point(field_set_rvalue:protobuf_unittest.TestOneof2.bar_bytes)
  26094. }
  26095. #endif
  26096. inline void TestOneof2::set_bar_bytes(const char* value) {
  26097. GOOGLE_DCHECK(value != NULL);
  26098. if (!has_bar_bytes()) {
  26099. clear_bar();
  26100. set_has_bar_bytes();
  26101. bar_.bar_bytes_.UnsafeSetDefault(&::protobuf_unittest::TestOneof2::_i_give_permission_to_break_this_code_default_bar_bytes_.get());
  26102. }
  26103. bar_.bar_bytes_.Set(&::protobuf_unittest::TestOneof2::_i_give_permission_to_break_this_code_default_bar_bytes_.get(),
  26104. ::std::string(value), GetArenaNoVirtual());
  26105. // @@protoc_insertion_point(field_set_char:protobuf_unittest.TestOneof2.bar_bytes)
  26106. }
  26107. inline void TestOneof2::set_bar_bytes(const void* value,
  26108. size_t size) {
  26109. if (!has_bar_bytes()) {
  26110. clear_bar();
  26111. set_has_bar_bytes();
  26112. bar_.bar_bytes_.UnsafeSetDefault(&::protobuf_unittest::TestOneof2::_i_give_permission_to_break_this_code_default_bar_bytes_.get());
  26113. }
  26114. bar_.bar_bytes_.Set(
  26115. &::protobuf_unittest::TestOneof2::_i_give_permission_to_break_this_code_default_bar_bytes_.get(), ::std::string(
  26116. reinterpret_cast<const char*>(value), size),
  26117. GetArenaNoVirtual());
  26118. // @@protoc_insertion_point(field_set_pointer:protobuf_unittest.TestOneof2.bar_bytes)
  26119. }
  26120. inline ::std::string* TestOneof2::mutable_bar_bytes() {
  26121. if (!has_bar_bytes()) {
  26122. clear_bar();
  26123. set_has_bar_bytes();
  26124. bar_.bar_bytes_.UnsafeSetDefault(&::protobuf_unittest::TestOneof2::_i_give_permission_to_break_this_code_default_bar_bytes_.get());
  26125. }
  26126. return bar_.bar_bytes_.Mutable(&::protobuf_unittest::TestOneof2::_i_give_permission_to_break_this_code_default_bar_bytes_.get(),
  26127. GetArenaNoVirtual());
  26128. // @@protoc_insertion_point(field_mutable:protobuf_unittest.TestOneof2.bar_bytes)
  26129. }
  26130. inline ::std::string* TestOneof2::release_bar_bytes() {
  26131. // @@protoc_insertion_point(field_release:protobuf_unittest.TestOneof2.bar_bytes)
  26132. if (has_bar_bytes()) {
  26133. clear_has_bar();
  26134. return bar_.bar_bytes_.Release(&::protobuf_unittest::TestOneof2::_i_give_permission_to_break_this_code_default_bar_bytes_.get(),
  26135. GetArenaNoVirtual());
  26136. } else {
  26137. return NULL;
  26138. }
  26139. }
  26140. inline void TestOneof2::set_allocated_bar_bytes(::std::string* bar_bytes) {
  26141. if (!has_bar_bytes()) {
  26142. bar_.bar_bytes_.UnsafeSetDefault(&::protobuf_unittest::TestOneof2::_i_give_permission_to_break_this_code_default_bar_bytes_.get());
  26143. }
  26144. clear_bar();
  26145. if (bar_bytes != NULL) {
  26146. set_has_bar_bytes();
  26147. bar_.bar_bytes_.SetAllocated(&::protobuf_unittest::TestOneof2::_i_give_permission_to_break_this_code_default_bar_bytes_.get(), bar_bytes,
  26148. GetArenaNoVirtual());
  26149. }
  26150. // @@protoc_insertion_point(field_set_allocated:protobuf_unittest.TestOneof2.bar_bytes)
  26151. }
  26152. inline ::std::string* TestOneof2::unsafe_arena_release_bar_bytes() {
  26153. // @@protoc_insertion_point(field_unsafe_arena_release:protobuf_unittest.TestOneof2.bar_bytes)
  26154. GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
  26155. if (has_bar_bytes()) {
  26156. clear_has_bar();
  26157. return bar_.bar_bytes_.UnsafeArenaRelease(
  26158. &::protobuf_unittest::TestOneof2::_i_give_permission_to_break_this_code_default_bar_bytes_.get(), GetArenaNoVirtual());
  26159. } else {
  26160. return NULL;
  26161. }
  26162. }
  26163. inline void TestOneof2::unsafe_arena_set_allocated_bar_bytes(::std::string* bar_bytes) {
  26164. GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
  26165. if (!has_bar_bytes()) {
  26166. bar_.bar_bytes_.UnsafeSetDefault(&::protobuf_unittest::TestOneof2::_i_give_permission_to_break_this_code_default_bar_bytes_.get());
  26167. }
  26168. clear_bar();
  26169. if (bar_bytes) {
  26170. set_has_bar_bytes();
  26171. bar_.bar_bytes_.UnsafeArenaSetAllocated(&::protobuf_unittest::TestOneof2::_i_give_permission_to_break_this_code_default_bar_bytes_.get(), bar_bytes, GetArenaNoVirtual());
  26172. }
  26173. // @@protoc_insertion_point(field_unsafe_arena_set_allocated:protobuf_unittest.TestOneof2.bar_bytes)
  26174. }
  26175. // optional .protobuf_unittest.TestOneof2.NestedEnum bar_enum = 17 [default = BAR];
  26176. inline bool TestOneof2::has_bar_enum() const {
  26177. return bar_case() == kBarEnum;
  26178. }
  26179. inline void TestOneof2::set_has_bar_enum() {
  26180. _oneof_case_[1] = kBarEnum;
  26181. }
  26182. inline void TestOneof2::clear_bar_enum() {
  26183. if (has_bar_enum()) {
  26184. bar_.bar_enum_ = 2;
  26185. clear_has_bar();
  26186. }
  26187. }
  26188. inline ::protobuf_unittest::TestOneof2_NestedEnum TestOneof2::bar_enum() const {
  26189. // @@protoc_insertion_point(field_get:protobuf_unittest.TestOneof2.bar_enum)
  26190. if (has_bar_enum()) {
  26191. return static_cast< ::protobuf_unittest::TestOneof2_NestedEnum >(bar_.bar_enum_);
  26192. }
  26193. return static_cast< ::protobuf_unittest::TestOneof2_NestedEnum >(2);
  26194. }
  26195. inline void TestOneof2::set_bar_enum(::protobuf_unittest::TestOneof2_NestedEnum value) {
  26196. assert(::protobuf_unittest::TestOneof2_NestedEnum_IsValid(value));
  26197. if (!has_bar_enum()) {
  26198. clear_bar();
  26199. set_has_bar_enum();
  26200. }
  26201. bar_.bar_enum_ = value;
  26202. // @@protoc_insertion_point(field_set:protobuf_unittest.TestOneof2.bar_enum)
  26203. }
  26204. // optional int32 baz_int = 18;
  26205. inline bool TestOneof2::has_baz_int() const {
  26206. return (_has_bits_[0] & 0x00000002u) != 0;
  26207. }
  26208. inline void TestOneof2::set_has_baz_int() {
  26209. _has_bits_[0] |= 0x00000002u;
  26210. }
  26211. inline void TestOneof2::clear_has_baz_int() {
  26212. _has_bits_[0] &= ~0x00000002u;
  26213. }
  26214. inline void TestOneof2::clear_baz_int() {
  26215. baz_int_ = 0;
  26216. clear_has_baz_int();
  26217. }
  26218. inline ::google::protobuf::int32 TestOneof2::baz_int() const {
  26219. // @@protoc_insertion_point(field_get:protobuf_unittest.TestOneof2.baz_int)
  26220. return baz_int_;
  26221. }
  26222. inline void TestOneof2::set_baz_int(::google::protobuf::int32 value) {
  26223. set_has_baz_int();
  26224. baz_int_ = value;
  26225. // @@protoc_insertion_point(field_set:protobuf_unittest.TestOneof2.baz_int)
  26226. }
  26227. // optional string baz_string = 19 [default = "BAZ"];
  26228. inline bool TestOneof2::has_baz_string() const {
  26229. return (_has_bits_[0] & 0x00000001u) != 0;
  26230. }
  26231. inline void TestOneof2::set_has_baz_string() {
  26232. _has_bits_[0] |= 0x00000001u;
  26233. }
  26234. inline void TestOneof2::clear_has_baz_string() {
  26235. _has_bits_[0] &= ~0x00000001u;
  26236. }
  26237. inline void TestOneof2::clear_baz_string() {
  26238. baz_string_.ClearToDefault(&::protobuf_unittest::TestOneof2::_i_give_permission_to_break_this_code_default_baz_string_.get(), GetArenaNoVirtual());
  26239. clear_has_baz_string();
  26240. }
  26241. inline const ::std::string& TestOneof2::baz_string() const {
  26242. // @@protoc_insertion_point(field_get:protobuf_unittest.TestOneof2.baz_string)
  26243. return baz_string_.Get();
  26244. }
  26245. inline void TestOneof2::set_baz_string(const ::std::string& value) {
  26246. set_has_baz_string();
  26247. baz_string_.Set(&::protobuf_unittest::TestOneof2::_i_give_permission_to_break_this_code_default_baz_string_.get(), value, GetArenaNoVirtual());
  26248. // @@protoc_insertion_point(field_set:protobuf_unittest.TestOneof2.baz_string)
  26249. }
  26250. #if LANG_CXX11
  26251. inline void TestOneof2::set_baz_string(::std::string&& value) {
  26252. set_has_baz_string();
  26253. baz_string_.Set(
  26254. &::protobuf_unittest::TestOneof2::_i_give_permission_to_break_this_code_default_baz_string_.get(), ::std::move(value), GetArenaNoVirtual());
  26255. // @@protoc_insertion_point(field_set_rvalue:protobuf_unittest.TestOneof2.baz_string)
  26256. }
  26257. #endif
  26258. inline void TestOneof2::set_baz_string(const char* value) {
  26259. GOOGLE_DCHECK(value != NULL);
  26260. set_has_baz_string();
  26261. baz_string_.Set(&::protobuf_unittest::TestOneof2::_i_give_permission_to_break_this_code_default_baz_string_.get(), ::std::string(value),
  26262. GetArenaNoVirtual());
  26263. // @@protoc_insertion_point(field_set_char:protobuf_unittest.TestOneof2.baz_string)
  26264. }
  26265. inline void TestOneof2::set_baz_string(const char* value,
  26266. size_t size) {
  26267. set_has_baz_string();
  26268. baz_string_.Set(&::protobuf_unittest::TestOneof2::_i_give_permission_to_break_this_code_default_baz_string_.get(), ::std::string(
  26269. reinterpret_cast<const char*>(value), size), GetArenaNoVirtual());
  26270. // @@protoc_insertion_point(field_set_pointer:protobuf_unittest.TestOneof2.baz_string)
  26271. }
  26272. inline ::std::string* TestOneof2::mutable_baz_string() {
  26273. set_has_baz_string();
  26274. // @@protoc_insertion_point(field_mutable:protobuf_unittest.TestOneof2.baz_string)
  26275. return baz_string_.Mutable(&::protobuf_unittest::TestOneof2::_i_give_permission_to_break_this_code_default_baz_string_.get(), GetArenaNoVirtual());
  26276. }
  26277. inline ::std::string* TestOneof2::release_baz_string() {
  26278. // @@protoc_insertion_point(field_release:protobuf_unittest.TestOneof2.baz_string)
  26279. if (!has_baz_string()) {
  26280. return NULL;
  26281. }
  26282. clear_has_baz_string();
  26283. return baz_string_.ReleaseNonDefault(&::protobuf_unittest::TestOneof2::_i_give_permission_to_break_this_code_default_baz_string_.get(), GetArenaNoVirtual());
  26284. }
  26285. inline void TestOneof2::set_allocated_baz_string(::std::string* baz_string) {
  26286. if (baz_string != NULL) {
  26287. set_has_baz_string();
  26288. } else {
  26289. clear_has_baz_string();
  26290. }
  26291. baz_string_.SetAllocated(&::protobuf_unittest::TestOneof2::_i_give_permission_to_break_this_code_default_baz_string_.get(), baz_string,
  26292. GetArenaNoVirtual());
  26293. // @@protoc_insertion_point(field_set_allocated:protobuf_unittest.TestOneof2.baz_string)
  26294. }
  26295. inline ::std::string* TestOneof2::unsafe_arena_release_baz_string() {
  26296. // @@protoc_insertion_point(field_unsafe_arena_release:protobuf_unittest.TestOneof2.baz_string)
  26297. GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
  26298. clear_has_baz_string();
  26299. return baz_string_.UnsafeArenaRelease(&::protobuf_unittest::TestOneof2::_i_give_permission_to_break_this_code_default_baz_string_.get(),
  26300. GetArenaNoVirtual());
  26301. }
  26302. inline void TestOneof2::unsafe_arena_set_allocated_baz_string(
  26303. ::std::string* baz_string) {
  26304. GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
  26305. if (baz_string != NULL) {
  26306. set_has_baz_string();
  26307. } else {
  26308. clear_has_baz_string();
  26309. }
  26310. baz_string_.UnsafeArenaSetAllocated(&::protobuf_unittest::TestOneof2::_i_give_permission_to_break_this_code_default_baz_string_.get(),
  26311. baz_string, GetArenaNoVirtual());
  26312. // @@protoc_insertion_point(field_unsafe_arena_set_allocated:protobuf_unittest.TestOneof2.baz_string)
  26313. }
  26314. inline bool TestOneof2::has_foo() const {
  26315. return foo_case() != FOO_NOT_SET;
  26316. }
  26317. inline void TestOneof2::clear_has_foo() {
  26318. _oneof_case_[0] = FOO_NOT_SET;
  26319. }
  26320. inline bool TestOneof2::has_bar() const {
  26321. return bar_case() != BAR_NOT_SET;
  26322. }
  26323. inline void TestOneof2::clear_has_bar() {
  26324. _oneof_case_[1] = BAR_NOT_SET;
  26325. }
  26326. inline TestOneof2::FooCase TestOneof2::foo_case() const {
  26327. return TestOneof2::FooCase(_oneof_case_[0]);
  26328. }
  26329. inline TestOneof2::BarCase TestOneof2::bar_case() const {
  26330. return TestOneof2::BarCase(_oneof_case_[1]);
  26331. }
  26332. // -------------------------------------------------------------------
  26333. // TestRequiredOneof_NestedMessage
  26334. // required double required_double = 1;
  26335. inline bool TestRequiredOneof_NestedMessage::has_required_double() const {
  26336. return (_has_bits_[0] & 0x00000001u) != 0;
  26337. }
  26338. inline void TestRequiredOneof_NestedMessage::set_has_required_double() {
  26339. _has_bits_[0] |= 0x00000001u;
  26340. }
  26341. inline void TestRequiredOneof_NestedMessage::clear_has_required_double() {
  26342. _has_bits_[0] &= ~0x00000001u;
  26343. }
  26344. inline void TestRequiredOneof_NestedMessage::clear_required_double() {
  26345. required_double_ = 0;
  26346. clear_has_required_double();
  26347. }
  26348. inline double TestRequiredOneof_NestedMessage::required_double() const {
  26349. // @@protoc_insertion_point(field_get:protobuf_unittest.TestRequiredOneof.NestedMessage.required_double)
  26350. return required_double_;
  26351. }
  26352. inline void TestRequiredOneof_NestedMessage::set_required_double(double value) {
  26353. set_has_required_double();
  26354. required_double_ = value;
  26355. // @@protoc_insertion_point(field_set:protobuf_unittest.TestRequiredOneof.NestedMessage.required_double)
  26356. }
  26357. // -------------------------------------------------------------------
  26358. // TestRequiredOneof
  26359. // optional int32 foo_int = 1;
  26360. inline bool TestRequiredOneof::has_foo_int() const {
  26361. return foo_case() == kFooInt;
  26362. }
  26363. inline void TestRequiredOneof::set_has_foo_int() {
  26364. _oneof_case_[0] = kFooInt;
  26365. }
  26366. inline void TestRequiredOneof::clear_foo_int() {
  26367. if (has_foo_int()) {
  26368. foo_.foo_int_ = 0;
  26369. clear_has_foo();
  26370. }
  26371. }
  26372. inline ::google::protobuf::int32 TestRequiredOneof::foo_int() const {
  26373. // @@protoc_insertion_point(field_get:protobuf_unittest.TestRequiredOneof.foo_int)
  26374. if (has_foo_int()) {
  26375. return foo_.foo_int_;
  26376. }
  26377. return 0;
  26378. }
  26379. inline void TestRequiredOneof::set_foo_int(::google::protobuf::int32 value) {
  26380. if (!has_foo_int()) {
  26381. clear_foo();
  26382. set_has_foo_int();
  26383. }
  26384. foo_.foo_int_ = value;
  26385. // @@protoc_insertion_point(field_set:protobuf_unittest.TestRequiredOneof.foo_int)
  26386. }
  26387. // optional string foo_string = 2;
  26388. inline bool TestRequiredOneof::has_foo_string() const {
  26389. return foo_case() == kFooString;
  26390. }
  26391. inline void TestRequiredOneof::set_has_foo_string() {
  26392. _oneof_case_[0] = kFooString;
  26393. }
  26394. inline void TestRequiredOneof::clear_foo_string() {
  26395. if (has_foo_string()) {
  26396. foo_.foo_string_.Destroy(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  26397. GetArenaNoVirtual());
  26398. clear_has_foo();
  26399. }
  26400. }
  26401. inline const ::std::string& TestRequiredOneof::foo_string() const {
  26402. // @@protoc_insertion_point(field_get:protobuf_unittest.TestRequiredOneof.foo_string)
  26403. if (has_foo_string()) {
  26404. return foo_.foo_string_.Get();
  26405. }
  26406. return *&::google::protobuf::internal::GetEmptyStringAlreadyInited();
  26407. }
  26408. inline void TestRequiredOneof::set_foo_string(const ::std::string& value) {
  26409. if (!has_foo_string()) {
  26410. clear_foo();
  26411. set_has_foo_string();
  26412. foo_.foo_string_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  26413. }
  26414. foo_.foo_string_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value,
  26415. GetArenaNoVirtual());
  26416. // @@protoc_insertion_point(field_set:protobuf_unittest.TestRequiredOneof.foo_string)
  26417. }
  26418. #if LANG_CXX11
  26419. inline void TestRequiredOneof::set_foo_string(::std::string&& value) {
  26420. // @@protoc_insertion_point(field_set:protobuf_unittest.TestRequiredOneof.foo_string)
  26421. if (!has_foo_string()) {
  26422. clear_foo();
  26423. set_has_foo_string();
  26424. foo_.foo_string_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  26425. }
  26426. foo_.foo_string_.Set(
  26427. &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual());
  26428. // @@protoc_insertion_point(field_set_rvalue:protobuf_unittest.TestRequiredOneof.foo_string)
  26429. }
  26430. #endif
  26431. inline void TestRequiredOneof::set_foo_string(const char* value) {
  26432. GOOGLE_DCHECK(value != NULL);
  26433. if (!has_foo_string()) {
  26434. clear_foo();
  26435. set_has_foo_string();
  26436. foo_.foo_string_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  26437. }
  26438. foo_.foo_string_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  26439. ::std::string(value), GetArenaNoVirtual());
  26440. // @@protoc_insertion_point(field_set_char:protobuf_unittest.TestRequiredOneof.foo_string)
  26441. }
  26442. inline void TestRequiredOneof::set_foo_string(const char* value,
  26443. size_t size) {
  26444. if (!has_foo_string()) {
  26445. clear_foo();
  26446. set_has_foo_string();
  26447. foo_.foo_string_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  26448. }
  26449. foo_.foo_string_.Set(
  26450. &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(
  26451. reinterpret_cast<const char*>(value), size),
  26452. GetArenaNoVirtual());
  26453. // @@protoc_insertion_point(field_set_pointer:protobuf_unittest.TestRequiredOneof.foo_string)
  26454. }
  26455. inline ::std::string* TestRequiredOneof::mutable_foo_string() {
  26456. if (!has_foo_string()) {
  26457. clear_foo();
  26458. set_has_foo_string();
  26459. foo_.foo_string_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  26460. }
  26461. return foo_.foo_string_.Mutable(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  26462. GetArenaNoVirtual());
  26463. // @@protoc_insertion_point(field_mutable:protobuf_unittest.TestRequiredOneof.foo_string)
  26464. }
  26465. inline ::std::string* TestRequiredOneof::release_foo_string() {
  26466. // @@protoc_insertion_point(field_release:protobuf_unittest.TestRequiredOneof.foo_string)
  26467. if (has_foo_string()) {
  26468. clear_has_foo();
  26469. return foo_.foo_string_.Release(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  26470. GetArenaNoVirtual());
  26471. } else {
  26472. return NULL;
  26473. }
  26474. }
  26475. inline void TestRequiredOneof::set_allocated_foo_string(::std::string* foo_string) {
  26476. if (!has_foo_string()) {
  26477. foo_.foo_string_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  26478. }
  26479. clear_foo();
  26480. if (foo_string != NULL) {
  26481. set_has_foo_string();
  26482. foo_.foo_string_.SetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), foo_string,
  26483. GetArenaNoVirtual());
  26484. }
  26485. // @@protoc_insertion_point(field_set_allocated:protobuf_unittest.TestRequiredOneof.foo_string)
  26486. }
  26487. inline ::std::string* TestRequiredOneof::unsafe_arena_release_foo_string() {
  26488. // @@protoc_insertion_point(field_unsafe_arena_release:protobuf_unittest.TestRequiredOneof.foo_string)
  26489. GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
  26490. if (has_foo_string()) {
  26491. clear_has_foo();
  26492. return foo_.foo_string_.UnsafeArenaRelease(
  26493. &::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
  26494. } else {
  26495. return NULL;
  26496. }
  26497. }
  26498. inline void TestRequiredOneof::unsafe_arena_set_allocated_foo_string(::std::string* foo_string) {
  26499. GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
  26500. if (!has_foo_string()) {
  26501. foo_.foo_string_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  26502. }
  26503. clear_foo();
  26504. if (foo_string) {
  26505. set_has_foo_string();
  26506. foo_.foo_string_.UnsafeArenaSetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), foo_string, GetArenaNoVirtual());
  26507. }
  26508. // @@protoc_insertion_point(field_unsafe_arena_set_allocated:protobuf_unittest.TestRequiredOneof.foo_string)
  26509. }
  26510. // optional .protobuf_unittest.TestRequiredOneof.NestedMessage foo_message = 3;
  26511. inline bool TestRequiredOneof::has_foo_message() const {
  26512. return foo_case() == kFooMessage;
  26513. }
  26514. inline void TestRequiredOneof::set_has_foo_message() {
  26515. _oneof_case_[0] = kFooMessage;
  26516. }
  26517. inline void TestRequiredOneof::clear_foo_message() {
  26518. if (has_foo_message()) {
  26519. if (GetArenaNoVirtual() == NULL) {
  26520. delete foo_.foo_message_;
  26521. }
  26522. clear_has_foo();
  26523. }
  26524. }
  26525. inline const ::protobuf_unittest::TestRequiredOneof_NestedMessage& TestRequiredOneof::_internal_foo_message() const {
  26526. return *foo_.foo_message_;
  26527. }
  26528. inline ::protobuf_unittest::TestRequiredOneof_NestedMessage* TestRequiredOneof::release_foo_message() {
  26529. // @@protoc_insertion_point(field_release:protobuf_unittest.TestRequiredOneof.foo_message)
  26530. if (has_foo_message()) {
  26531. clear_has_foo();
  26532. ::protobuf_unittest::TestRequiredOneof_NestedMessage* temp = foo_.foo_message_;
  26533. if (GetArenaNoVirtual() != NULL) {
  26534. temp = ::google::protobuf::internal::DuplicateIfNonNull(temp);
  26535. }
  26536. foo_.foo_message_ = NULL;
  26537. return temp;
  26538. } else {
  26539. return NULL;
  26540. }
  26541. }
  26542. inline const ::protobuf_unittest::TestRequiredOneof_NestedMessage& TestRequiredOneof::foo_message() const {
  26543. // @@protoc_insertion_point(field_get:protobuf_unittest.TestRequiredOneof.foo_message)
  26544. return has_foo_message()
  26545. ? *foo_.foo_message_
  26546. : *reinterpret_cast< ::protobuf_unittest::TestRequiredOneof_NestedMessage*>(&::protobuf_unittest::_TestRequiredOneof_NestedMessage_default_instance_);
  26547. }
  26548. inline ::protobuf_unittest::TestRequiredOneof_NestedMessage* TestRequiredOneof::unsafe_arena_release_foo_message() {
  26549. // @@protoc_insertion_point(field_unsafe_arena_release:protobuf_unittest.TestRequiredOneof.foo_message)
  26550. if (has_foo_message()) {
  26551. clear_has_foo();
  26552. ::protobuf_unittest::TestRequiredOneof_NestedMessage* temp = foo_.foo_message_;
  26553. foo_.foo_message_ = NULL;
  26554. return temp;
  26555. } else {
  26556. return NULL;
  26557. }
  26558. }
  26559. inline void TestRequiredOneof::unsafe_arena_set_allocated_foo_message(::protobuf_unittest::TestRequiredOneof_NestedMessage* foo_message) {
  26560. clear_foo();
  26561. if (foo_message) {
  26562. set_has_foo_message();
  26563. foo_.foo_message_ = foo_message;
  26564. }
  26565. // @@protoc_insertion_point(field_unsafe_arena_set_allocated:protobuf_unittest.TestRequiredOneof.foo_message)
  26566. }
  26567. inline ::protobuf_unittest::TestRequiredOneof_NestedMessage* TestRequiredOneof::mutable_foo_message() {
  26568. if (!has_foo_message()) {
  26569. clear_foo();
  26570. set_has_foo_message();
  26571. foo_.foo_message_ = CreateMaybeMessage< ::protobuf_unittest::TestRequiredOneof_NestedMessage >(
  26572. GetArenaNoVirtual());
  26573. }
  26574. // @@protoc_insertion_point(field_mutable:protobuf_unittest.TestRequiredOneof.foo_message)
  26575. return foo_.foo_message_;
  26576. }
  26577. inline bool TestRequiredOneof::has_foo() const {
  26578. return foo_case() != FOO_NOT_SET;
  26579. }
  26580. inline void TestRequiredOneof::clear_has_foo() {
  26581. _oneof_case_[0] = FOO_NOT_SET;
  26582. }
  26583. inline TestRequiredOneof::FooCase TestRequiredOneof::foo_case() const {
  26584. return TestRequiredOneof::FooCase(_oneof_case_[0]);
  26585. }
  26586. // -------------------------------------------------------------------
  26587. // TestPackedTypes
  26588. // repeated int32 packed_int32 = 90 [packed = true];
  26589. inline int TestPackedTypes::packed_int32_size() const {
  26590. return packed_int32_.size();
  26591. }
  26592. inline void TestPackedTypes::clear_packed_int32() {
  26593. packed_int32_.Clear();
  26594. }
  26595. inline ::google::protobuf::int32 TestPackedTypes::packed_int32(int index) const {
  26596. // @@protoc_insertion_point(field_get:protobuf_unittest.TestPackedTypes.packed_int32)
  26597. return packed_int32_.Get(index);
  26598. }
  26599. inline void TestPackedTypes::set_packed_int32(int index, ::google::protobuf::int32 value) {
  26600. packed_int32_.Set(index, value);
  26601. // @@protoc_insertion_point(field_set:protobuf_unittest.TestPackedTypes.packed_int32)
  26602. }
  26603. inline void TestPackedTypes::add_packed_int32(::google::protobuf::int32 value) {
  26604. packed_int32_.Add(value);
  26605. // @@protoc_insertion_point(field_add:protobuf_unittest.TestPackedTypes.packed_int32)
  26606. }
  26607. inline const ::google::protobuf::RepeatedField< ::google::protobuf::int32 >&
  26608. TestPackedTypes::packed_int32() const {
  26609. // @@protoc_insertion_point(field_list:protobuf_unittest.TestPackedTypes.packed_int32)
  26610. return packed_int32_;
  26611. }
  26612. inline ::google::protobuf::RepeatedField< ::google::protobuf::int32 >*
  26613. TestPackedTypes::mutable_packed_int32() {
  26614. // @@protoc_insertion_point(field_mutable_list:protobuf_unittest.TestPackedTypes.packed_int32)
  26615. return &packed_int32_;
  26616. }
  26617. // repeated int64 packed_int64 = 91 [packed = true];
  26618. inline int TestPackedTypes::packed_int64_size() const {
  26619. return packed_int64_.size();
  26620. }
  26621. inline void TestPackedTypes::clear_packed_int64() {
  26622. packed_int64_.Clear();
  26623. }
  26624. inline ::google::protobuf::int64 TestPackedTypes::packed_int64(int index) const {
  26625. // @@protoc_insertion_point(field_get:protobuf_unittest.TestPackedTypes.packed_int64)
  26626. return packed_int64_.Get(index);
  26627. }
  26628. inline void TestPackedTypes::set_packed_int64(int index, ::google::protobuf::int64 value) {
  26629. packed_int64_.Set(index, value);
  26630. // @@protoc_insertion_point(field_set:protobuf_unittest.TestPackedTypes.packed_int64)
  26631. }
  26632. inline void TestPackedTypes::add_packed_int64(::google::protobuf::int64 value) {
  26633. packed_int64_.Add(value);
  26634. // @@protoc_insertion_point(field_add:protobuf_unittest.TestPackedTypes.packed_int64)
  26635. }
  26636. inline const ::google::protobuf::RepeatedField< ::google::protobuf::int64 >&
  26637. TestPackedTypes::packed_int64() const {
  26638. // @@protoc_insertion_point(field_list:protobuf_unittest.TestPackedTypes.packed_int64)
  26639. return packed_int64_;
  26640. }
  26641. inline ::google::protobuf::RepeatedField< ::google::protobuf::int64 >*
  26642. TestPackedTypes::mutable_packed_int64() {
  26643. // @@protoc_insertion_point(field_mutable_list:protobuf_unittest.TestPackedTypes.packed_int64)
  26644. return &packed_int64_;
  26645. }
  26646. // repeated uint32 packed_uint32 = 92 [packed = true];
  26647. inline int TestPackedTypes::packed_uint32_size() const {
  26648. return packed_uint32_.size();
  26649. }
  26650. inline void TestPackedTypes::clear_packed_uint32() {
  26651. packed_uint32_.Clear();
  26652. }
  26653. inline ::google::protobuf::uint32 TestPackedTypes::packed_uint32(int index) const {
  26654. // @@protoc_insertion_point(field_get:protobuf_unittest.TestPackedTypes.packed_uint32)
  26655. return packed_uint32_.Get(index);
  26656. }
  26657. inline void TestPackedTypes::set_packed_uint32(int index, ::google::protobuf::uint32 value) {
  26658. packed_uint32_.Set(index, value);
  26659. // @@protoc_insertion_point(field_set:protobuf_unittest.TestPackedTypes.packed_uint32)
  26660. }
  26661. inline void TestPackedTypes::add_packed_uint32(::google::protobuf::uint32 value) {
  26662. packed_uint32_.Add(value);
  26663. // @@protoc_insertion_point(field_add:protobuf_unittest.TestPackedTypes.packed_uint32)
  26664. }
  26665. inline const ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >&
  26666. TestPackedTypes::packed_uint32() const {
  26667. // @@protoc_insertion_point(field_list:protobuf_unittest.TestPackedTypes.packed_uint32)
  26668. return packed_uint32_;
  26669. }
  26670. inline ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >*
  26671. TestPackedTypes::mutable_packed_uint32() {
  26672. // @@protoc_insertion_point(field_mutable_list:protobuf_unittest.TestPackedTypes.packed_uint32)
  26673. return &packed_uint32_;
  26674. }
  26675. // repeated uint64 packed_uint64 = 93 [packed = true];
  26676. inline int TestPackedTypes::packed_uint64_size() const {
  26677. return packed_uint64_.size();
  26678. }
  26679. inline void TestPackedTypes::clear_packed_uint64() {
  26680. packed_uint64_.Clear();
  26681. }
  26682. inline ::google::protobuf::uint64 TestPackedTypes::packed_uint64(int index) const {
  26683. // @@protoc_insertion_point(field_get:protobuf_unittest.TestPackedTypes.packed_uint64)
  26684. return packed_uint64_.Get(index);
  26685. }
  26686. inline void TestPackedTypes::set_packed_uint64(int index, ::google::protobuf::uint64 value) {
  26687. packed_uint64_.Set(index, value);
  26688. // @@protoc_insertion_point(field_set:protobuf_unittest.TestPackedTypes.packed_uint64)
  26689. }
  26690. inline void TestPackedTypes::add_packed_uint64(::google::protobuf::uint64 value) {
  26691. packed_uint64_.Add(value);
  26692. // @@protoc_insertion_point(field_add:protobuf_unittest.TestPackedTypes.packed_uint64)
  26693. }
  26694. inline const ::google::protobuf::RepeatedField< ::google::protobuf::uint64 >&
  26695. TestPackedTypes::packed_uint64() const {
  26696. // @@protoc_insertion_point(field_list:protobuf_unittest.TestPackedTypes.packed_uint64)
  26697. return packed_uint64_;
  26698. }
  26699. inline ::google::protobuf::RepeatedField< ::google::protobuf::uint64 >*
  26700. TestPackedTypes::mutable_packed_uint64() {
  26701. // @@protoc_insertion_point(field_mutable_list:protobuf_unittest.TestPackedTypes.packed_uint64)
  26702. return &packed_uint64_;
  26703. }
  26704. // repeated sint32 packed_sint32 = 94 [packed = true];
  26705. inline int TestPackedTypes::packed_sint32_size() const {
  26706. return packed_sint32_.size();
  26707. }
  26708. inline void TestPackedTypes::clear_packed_sint32() {
  26709. packed_sint32_.Clear();
  26710. }
  26711. inline ::google::protobuf::int32 TestPackedTypes::packed_sint32(int index) const {
  26712. // @@protoc_insertion_point(field_get:protobuf_unittest.TestPackedTypes.packed_sint32)
  26713. return packed_sint32_.Get(index);
  26714. }
  26715. inline void TestPackedTypes::set_packed_sint32(int index, ::google::protobuf::int32 value) {
  26716. packed_sint32_.Set(index, value);
  26717. // @@protoc_insertion_point(field_set:protobuf_unittest.TestPackedTypes.packed_sint32)
  26718. }
  26719. inline void TestPackedTypes::add_packed_sint32(::google::protobuf::int32 value) {
  26720. packed_sint32_.Add(value);
  26721. // @@protoc_insertion_point(field_add:protobuf_unittest.TestPackedTypes.packed_sint32)
  26722. }
  26723. inline const ::google::protobuf::RepeatedField< ::google::protobuf::int32 >&
  26724. TestPackedTypes::packed_sint32() const {
  26725. // @@protoc_insertion_point(field_list:protobuf_unittest.TestPackedTypes.packed_sint32)
  26726. return packed_sint32_;
  26727. }
  26728. inline ::google::protobuf::RepeatedField< ::google::protobuf::int32 >*
  26729. TestPackedTypes::mutable_packed_sint32() {
  26730. // @@protoc_insertion_point(field_mutable_list:protobuf_unittest.TestPackedTypes.packed_sint32)
  26731. return &packed_sint32_;
  26732. }
  26733. // repeated sint64 packed_sint64 = 95 [packed = true];
  26734. inline int TestPackedTypes::packed_sint64_size() const {
  26735. return packed_sint64_.size();
  26736. }
  26737. inline void TestPackedTypes::clear_packed_sint64() {
  26738. packed_sint64_.Clear();
  26739. }
  26740. inline ::google::protobuf::int64 TestPackedTypes::packed_sint64(int index) const {
  26741. // @@protoc_insertion_point(field_get:protobuf_unittest.TestPackedTypes.packed_sint64)
  26742. return packed_sint64_.Get(index);
  26743. }
  26744. inline void TestPackedTypes::set_packed_sint64(int index, ::google::protobuf::int64 value) {
  26745. packed_sint64_.Set(index, value);
  26746. // @@protoc_insertion_point(field_set:protobuf_unittest.TestPackedTypes.packed_sint64)
  26747. }
  26748. inline void TestPackedTypes::add_packed_sint64(::google::protobuf::int64 value) {
  26749. packed_sint64_.Add(value);
  26750. // @@protoc_insertion_point(field_add:protobuf_unittest.TestPackedTypes.packed_sint64)
  26751. }
  26752. inline const ::google::protobuf::RepeatedField< ::google::protobuf::int64 >&
  26753. TestPackedTypes::packed_sint64() const {
  26754. // @@protoc_insertion_point(field_list:protobuf_unittest.TestPackedTypes.packed_sint64)
  26755. return packed_sint64_;
  26756. }
  26757. inline ::google::protobuf::RepeatedField< ::google::protobuf::int64 >*
  26758. TestPackedTypes::mutable_packed_sint64() {
  26759. // @@protoc_insertion_point(field_mutable_list:protobuf_unittest.TestPackedTypes.packed_sint64)
  26760. return &packed_sint64_;
  26761. }
  26762. // repeated fixed32 packed_fixed32 = 96 [packed = true];
  26763. inline int TestPackedTypes::packed_fixed32_size() const {
  26764. return packed_fixed32_.size();
  26765. }
  26766. inline void TestPackedTypes::clear_packed_fixed32() {
  26767. packed_fixed32_.Clear();
  26768. }
  26769. inline ::google::protobuf::uint32 TestPackedTypes::packed_fixed32(int index) const {
  26770. // @@protoc_insertion_point(field_get:protobuf_unittest.TestPackedTypes.packed_fixed32)
  26771. return packed_fixed32_.Get(index);
  26772. }
  26773. inline void TestPackedTypes::set_packed_fixed32(int index, ::google::protobuf::uint32 value) {
  26774. packed_fixed32_.Set(index, value);
  26775. // @@protoc_insertion_point(field_set:protobuf_unittest.TestPackedTypes.packed_fixed32)
  26776. }
  26777. inline void TestPackedTypes::add_packed_fixed32(::google::protobuf::uint32 value) {
  26778. packed_fixed32_.Add(value);
  26779. // @@protoc_insertion_point(field_add:protobuf_unittest.TestPackedTypes.packed_fixed32)
  26780. }
  26781. inline const ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >&
  26782. TestPackedTypes::packed_fixed32() const {
  26783. // @@protoc_insertion_point(field_list:protobuf_unittest.TestPackedTypes.packed_fixed32)
  26784. return packed_fixed32_;
  26785. }
  26786. inline ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >*
  26787. TestPackedTypes::mutable_packed_fixed32() {
  26788. // @@protoc_insertion_point(field_mutable_list:protobuf_unittest.TestPackedTypes.packed_fixed32)
  26789. return &packed_fixed32_;
  26790. }
  26791. // repeated fixed64 packed_fixed64 = 97 [packed = true];
  26792. inline int TestPackedTypes::packed_fixed64_size() const {
  26793. return packed_fixed64_.size();
  26794. }
  26795. inline void TestPackedTypes::clear_packed_fixed64() {
  26796. packed_fixed64_.Clear();
  26797. }
  26798. inline ::google::protobuf::uint64 TestPackedTypes::packed_fixed64(int index) const {
  26799. // @@protoc_insertion_point(field_get:protobuf_unittest.TestPackedTypes.packed_fixed64)
  26800. return packed_fixed64_.Get(index);
  26801. }
  26802. inline void TestPackedTypes::set_packed_fixed64(int index, ::google::protobuf::uint64 value) {
  26803. packed_fixed64_.Set(index, value);
  26804. // @@protoc_insertion_point(field_set:protobuf_unittest.TestPackedTypes.packed_fixed64)
  26805. }
  26806. inline void TestPackedTypes::add_packed_fixed64(::google::protobuf::uint64 value) {
  26807. packed_fixed64_.Add(value);
  26808. // @@protoc_insertion_point(field_add:protobuf_unittest.TestPackedTypes.packed_fixed64)
  26809. }
  26810. inline const ::google::protobuf::RepeatedField< ::google::protobuf::uint64 >&
  26811. TestPackedTypes::packed_fixed64() const {
  26812. // @@protoc_insertion_point(field_list:protobuf_unittest.TestPackedTypes.packed_fixed64)
  26813. return packed_fixed64_;
  26814. }
  26815. inline ::google::protobuf::RepeatedField< ::google::protobuf::uint64 >*
  26816. TestPackedTypes::mutable_packed_fixed64() {
  26817. // @@protoc_insertion_point(field_mutable_list:protobuf_unittest.TestPackedTypes.packed_fixed64)
  26818. return &packed_fixed64_;
  26819. }
  26820. // repeated sfixed32 packed_sfixed32 = 98 [packed = true];
  26821. inline int TestPackedTypes::packed_sfixed32_size() const {
  26822. return packed_sfixed32_.size();
  26823. }
  26824. inline void TestPackedTypes::clear_packed_sfixed32() {
  26825. packed_sfixed32_.Clear();
  26826. }
  26827. inline ::google::protobuf::int32 TestPackedTypes::packed_sfixed32(int index) const {
  26828. // @@protoc_insertion_point(field_get:protobuf_unittest.TestPackedTypes.packed_sfixed32)
  26829. return packed_sfixed32_.Get(index);
  26830. }
  26831. inline void TestPackedTypes::set_packed_sfixed32(int index, ::google::protobuf::int32 value) {
  26832. packed_sfixed32_.Set(index, value);
  26833. // @@protoc_insertion_point(field_set:protobuf_unittest.TestPackedTypes.packed_sfixed32)
  26834. }
  26835. inline void TestPackedTypes::add_packed_sfixed32(::google::protobuf::int32 value) {
  26836. packed_sfixed32_.Add(value);
  26837. // @@protoc_insertion_point(field_add:protobuf_unittest.TestPackedTypes.packed_sfixed32)
  26838. }
  26839. inline const ::google::protobuf::RepeatedField< ::google::protobuf::int32 >&
  26840. TestPackedTypes::packed_sfixed32() const {
  26841. // @@protoc_insertion_point(field_list:protobuf_unittest.TestPackedTypes.packed_sfixed32)
  26842. return packed_sfixed32_;
  26843. }
  26844. inline ::google::protobuf::RepeatedField< ::google::protobuf::int32 >*
  26845. TestPackedTypes::mutable_packed_sfixed32() {
  26846. // @@protoc_insertion_point(field_mutable_list:protobuf_unittest.TestPackedTypes.packed_sfixed32)
  26847. return &packed_sfixed32_;
  26848. }
  26849. // repeated sfixed64 packed_sfixed64 = 99 [packed = true];
  26850. inline int TestPackedTypes::packed_sfixed64_size() const {
  26851. return packed_sfixed64_.size();
  26852. }
  26853. inline void TestPackedTypes::clear_packed_sfixed64() {
  26854. packed_sfixed64_.Clear();
  26855. }
  26856. inline ::google::protobuf::int64 TestPackedTypes::packed_sfixed64(int index) const {
  26857. // @@protoc_insertion_point(field_get:protobuf_unittest.TestPackedTypes.packed_sfixed64)
  26858. return packed_sfixed64_.Get(index);
  26859. }
  26860. inline void TestPackedTypes::set_packed_sfixed64(int index, ::google::protobuf::int64 value) {
  26861. packed_sfixed64_.Set(index, value);
  26862. // @@protoc_insertion_point(field_set:protobuf_unittest.TestPackedTypes.packed_sfixed64)
  26863. }
  26864. inline void TestPackedTypes::add_packed_sfixed64(::google::protobuf::int64 value) {
  26865. packed_sfixed64_.Add(value);
  26866. // @@protoc_insertion_point(field_add:protobuf_unittest.TestPackedTypes.packed_sfixed64)
  26867. }
  26868. inline const ::google::protobuf::RepeatedField< ::google::protobuf::int64 >&
  26869. TestPackedTypes::packed_sfixed64() const {
  26870. // @@protoc_insertion_point(field_list:protobuf_unittest.TestPackedTypes.packed_sfixed64)
  26871. return packed_sfixed64_;
  26872. }
  26873. inline ::google::protobuf::RepeatedField< ::google::protobuf::int64 >*
  26874. TestPackedTypes::mutable_packed_sfixed64() {
  26875. // @@protoc_insertion_point(field_mutable_list:protobuf_unittest.TestPackedTypes.packed_sfixed64)
  26876. return &packed_sfixed64_;
  26877. }
  26878. // repeated float packed_float = 100 [packed = true];
  26879. inline int TestPackedTypes::packed_float_size() const {
  26880. return packed_float_.size();
  26881. }
  26882. inline void TestPackedTypes::clear_packed_float() {
  26883. packed_float_.Clear();
  26884. }
  26885. inline float TestPackedTypes::packed_float(int index) const {
  26886. // @@protoc_insertion_point(field_get:protobuf_unittest.TestPackedTypes.packed_float)
  26887. return packed_float_.Get(index);
  26888. }
  26889. inline void TestPackedTypes::set_packed_float(int index, float value) {
  26890. packed_float_.Set(index, value);
  26891. // @@protoc_insertion_point(field_set:protobuf_unittest.TestPackedTypes.packed_float)
  26892. }
  26893. inline void TestPackedTypes::add_packed_float(float value) {
  26894. packed_float_.Add(value);
  26895. // @@protoc_insertion_point(field_add:protobuf_unittest.TestPackedTypes.packed_float)
  26896. }
  26897. inline const ::google::protobuf::RepeatedField< float >&
  26898. TestPackedTypes::packed_float() const {
  26899. // @@protoc_insertion_point(field_list:protobuf_unittest.TestPackedTypes.packed_float)
  26900. return packed_float_;
  26901. }
  26902. inline ::google::protobuf::RepeatedField< float >*
  26903. TestPackedTypes::mutable_packed_float() {
  26904. // @@protoc_insertion_point(field_mutable_list:protobuf_unittest.TestPackedTypes.packed_float)
  26905. return &packed_float_;
  26906. }
  26907. // repeated double packed_double = 101 [packed = true];
  26908. inline int TestPackedTypes::packed_double_size() const {
  26909. return packed_double_.size();
  26910. }
  26911. inline void TestPackedTypes::clear_packed_double() {
  26912. packed_double_.Clear();
  26913. }
  26914. inline double TestPackedTypes::packed_double(int index) const {
  26915. // @@protoc_insertion_point(field_get:protobuf_unittest.TestPackedTypes.packed_double)
  26916. return packed_double_.Get(index);
  26917. }
  26918. inline void TestPackedTypes::set_packed_double(int index, double value) {
  26919. packed_double_.Set(index, value);
  26920. // @@protoc_insertion_point(field_set:protobuf_unittest.TestPackedTypes.packed_double)
  26921. }
  26922. inline void TestPackedTypes::add_packed_double(double value) {
  26923. packed_double_.Add(value);
  26924. // @@protoc_insertion_point(field_add:protobuf_unittest.TestPackedTypes.packed_double)
  26925. }
  26926. inline const ::google::protobuf::RepeatedField< double >&
  26927. TestPackedTypes::packed_double() const {
  26928. // @@protoc_insertion_point(field_list:protobuf_unittest.TestPackedTypes.packed_double)
  26929. return packed_double_;
  26930. }
  26931. inline ::google::protobuf::RepeatedField< double >*
  26932. TestPackedTypes::mutable_packed_double() {
  26933. // @@protoc_insertion_point(field_mutable_list:protobuf_unittest.TestPackedTypes.packed_double)
  26934. return &packed_double_;
  26935. }
  26936. // repeated bool packed_bool = 102 [packed = true];
  26937. inline int TestPackedTypes::packed_bool_size() const {
  26938. return packed_bool_.size();
  26939. }
  26940. inline void TestPackedTypes::clear_packed_bool() {
  26941. packed_bool_.Clear();
  26942. }
  26943. inline bool TestPackedTypes::packed_bool(int index) const {
  26944. // @@protoc_insertion_point(field_get:protobuf_unittest.TestPackedTypes.packed_bool)
  26945. return packed_bool_.Get(index);
  26946. }
  26947. inline void TestPackedTypes::set_packed_bool(int index, bool value) {
  26948. packed_bool_.Set(index, value);
  26949. // @@protoc_insertion_point(field_set:protobuf_unittest.TestPackedTypes.packed_bool)
  26950. }
  26951. inline void TestPackedTypes::add_packed_bool(bool value) {
  26952. packed_bool_.Add(value);
  26953. // @@protoc_insertion_point(field_add:protobuf_unittest.TestPackedTypes.packed_bool)
  26954. }
  26955. inline const ::google::protobuf::RepeatedField< bool >&
  26956. TestPackedTypes::packed_bool() const {
  26957. // @@protoc_insertion_point(field_list:protobuf_unittest.TestPackedTypes.packed_bool)
  26958. return packed_bool_;
  26959. }
  26960. inline ::google::protobuf::RepeatedField< bool >*
  26961. TestPackedTypes::mutable_packed_bool() {
  26962. // @@protoc_insertion_point(field_mutable_list:protobuf_unittest.TestPackedTypes.packed_bool)
  26963. return &packed_bool_;
  26964. }
  26965. // repeated .protobuf_unittest.ForeignEnum packed_enum = 103 [packed = true];
  26966. inline int TestPackedTypes::packed_enum_size() const {
  26967. return packed_enum_.size();
  26968. }
  26969. inline void TestPackedTypes::clear_packed_enum() {
  26970. packed_enum_.Clear();
  26971. }
  26972. inline ::protobuf_unittest::ForeignEnum TestPackedTypes::packed_enum(int index) const {
  26973. // @@protoc_insertion_point(field_get:protobuf_unittest.TestPackedTypes.packed_enum)
  26974. return static_cast< ::protobuf_unittest::ForeignEnum >(packed_enum_.Get(index));
  26975. }
  26976. inline void TestPackedTypes::set_packed_enum(int index, ::protobuf_unittest::ForeignEnum value) {
  26977. assert(::protobuf_unittest::ForeignEnum_IsValid(value));
  26978. packed_enum_.Set(index, value);
  26979. // @@protoc_insertion_point(field_set:protobuf_unittest.TestPackedTypes.packed_enum)
  26980. }
  26981. inline void TestPackedTypes::add_packed_enum(::protobuf_unittest::ForeignEnum value) {
  26982. assert(::protobuf_unittest::ForeignEnum_IsValid(value));
  26983. packed_enum_.Add(value);
  26984. // @@protoc_insertion_point(field_add:protobuf_unittest.TestPackedTypes.packed_enum)
  26985. }
  26986. inline const ::google::protobuf::RepeatedField<int>&
  26987. TestPackedTypes::packed_enum() const {
  26988. // @@protoc_insertion_point(field_list:protobuf_unittest.TestPackedTypes.packed_enum)
  26989. return packed_enum_;
  26990. }
  26991. inline ::google::protobuf::RepeatedField<int>*
  26992. TestPackedTypes::mutable_packed_enum() {
  26993. // @@protoc_insertion_point(field_mutable_list:protobuf_unittest.TestPackedTypes.packed_enum)
  26994. return &packed_enum_;
  26995. }
  26996. // -------------------------------------------------------------------
  26997. // TestUnpackedTypes
  26998. // repeated int32 unpacked_int32 = 90 [packed = false];
  26999. inline int TestUnpackedTypes::unpacked_int32_size() const {
  27000. return unpacked_int32_.size();
  27001. }
  27002. inline void TestUnpackedTypes::clear_unpacked_int32() {
  27003. unpacked_int32_.Clear();
  27004. }
  27005. inline ::google::protobuf::int32 TestUnpackedTypes::unpacked_int32(int index) const {
  27006. // @@protoc_insertion_point(field_get:protobuf_unittest.TestUnpackedTypes.unpacked_int32)
  27007. return unpacked_int32_.Get(index);
  27008. }
  27009. inline void TestUnpackedTypes::set_unpacked_int32(int index, ::google::protobuf::int32 value) {
  27010. unpacked_int32_.Set(index, value);
  27011. // @@protoc_insertion_point(field_set:protobuf_unittest.TestUnpackedTypes.unpacked_int32)
  27012. }
  27013. inline void TestUnpackedTypes::add_unpacked_int32(::google::protobuf::int32 value) {
  27014. unpacked_int32_.Add(value);
  27015. // @@protoc_insertion_point(field_add:protobuf_unittest.TestUnpackedTypes.unpacked_int32)
  27016. }
  27017. inline const ::google::protobuf::RepeatedField< ::google::protobuf::int32 >&
  27018. TestUnpackedTypes::unpacked_int32() const {
  27019. // @@protoc_insertion_point(field_list:protobuf_unittest.TestUnpackedTypes.unpacked_int32)
  27020. return unpacked_int32_;
  27021. }
  27022. inline ::google::protobuf::RepeatedField< ::google::protobuf::int32 >*
  27023. TestUnpackedTypes::mutable_unpacked_int32() {
  27024. // @@protoc_insertion_point(field_mutable_list:protobuf_unittest.TestUnpackedTypes.unpacked_int32)
  27025. return &unpacked_int32_;
  27026. }
  27027. // repeated int64 unpacked_int64 = 91 [packed = false];
  27028. inline int TestUnpackedTypes::unpacked_int64_size() const {
  27029. return unpacked_int64_.size();
  27030. }
  27031. inline void TestUnpackedTypes::clear_unpacked_int64() {
  27032. unpacked_int64_.Clear();
  27033. }
  27034. inline ::google::protobuf::int64 TestUnpackedTypes::unpacked_int64(int index) const {
  27035. // @@protoc_insertion_point(field_get:protobuf_unittest.TestUnpackedTypes.unpacked_int64)
  27036. return unpacked_int64_.Get(index);
  27037. }
  27038. inline void TestUnpackedTypes::set_unpacked_int64(int index, ::google::protobuf::int64 value) {
  27039. unpacked_int64_.Set(index, value);
  27040. // @@protoc_insertion_point(field_set:protobuf_unittest.TestUnpackedTypes.unpacked_int64)
  27041. }
  27042. inline void TestUnpackedTypes::add_unpacked_int64(::google::protobuf::int64 value) {
  27043. unpacked_int64_.Add(value);
  27044. // @@protoc_insertion_point(field_add:protobuf_unittest.TestUnpackedTypes.unpacked_int64)
  27045. }
  27046. inline const ::google::protobuf::RepeatedField< ::google::protobuf::int64 >&
  27047. TestUnpackedTypes::unpacked_int64() const {
  27048. // @@protoc_insertion_point(field_list:protobuf_unittest.TestUnpackedTypes.unpacked_int64)
  27049. return unpacked_int64_;
  27050. }
  27051. inline ::google::protobuf::RepeatedField< ::google::protobuf::int64 >*
  27052. TestUnpackedTypes::mutable_unpacked_int64() {
  27053. // @@protoc_insertion_point(field_mutable_list:protobuf_unittest.TestUnpackedTypes.unpacked_int64)
  27054. return &unpacked_int64_;
  27055. }
  27056. // repeated uint32 unpacked_uint32 = 92 [packed = false];
  27057. inline int TestUnpackedTypes::unpacked_uint32_size() const {
  27058. return unpacked_uint32_.size();
  27059. }
  27060. inline void TestUnpackedTypes::clear_unpacked_uint32() {
  27061. unpacked_uint32_.Clear();
  27062. }
  27063. inline ::google::protobuf::uint32 TestUnpackedTypes::unpacked_uint32(int index) const {
  27064. // @@protoc_insertion_point(field_get:protobuf_unittest.TestUnpackedTypes.unpacked_uint32)
  27065. return unpacked_uint32_.Get(index);
  27066. }
  27067. inline void TestUnpackedTypes::set_unpacked_uint32(int index, ::google::protobuf::uint32 value) {
  27068. unpacked_uint32_.Set(index, value);
  27069. // @@protoc_insertion_point(field_set:protobuf_unittest.TestUnpackedTypes.unpacked_uint32)
  27070. }
  27071. inline void TestUnpackedTypes::add_unpacked_uint32(::google::protobuf::uint32 value) {
  27072. unpacked_uint32_.Add(value);
  27073. // @@protoc_insertion_point(field_add:protobuf_unittest.TestUnpackedTypes.unpacked_uint32)
  27074. }
  27075. inline const ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >&
  27076. TestUnpackedTypes::unpacked_uint32() const {
  27077. // @@protoc_insertion_point(field_list:protobuf_unittest.TestUnpackedTypes.unpacked_uint32)
  27078. return unpacked_uint32_;
  27079. }
  27080. inline ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >*
  27081. TestUnpackedTypes::mutable_unpacked_uint32() {
  27082. // @@protoc_insertion_point(field_mutable_list:protobuf_unittest.TestUnpackedTypes.unpacked_uint32)
  27083. return &unpacked_uint32_;
  27084. }
  27085. // repeated uint64 unpacked_uint64 = 93 [packed = false];
  27086. inline int TestUnpackedTypes::unpacked_uint64_size() const {
  27087. return unpacked_uint64_.size();
  27088. }
  27089. inline void TestUnpackedTypes::clear_unpacked_uint64() {
  27090. unpacked_uint64_.Clear();
  27091. }
  27092. inline ::google::protobuf::uint64 TestUnpackedTypes::unpacked_uint64(int index) const {
  27093. // @@protoc_insertion_point(field_get:protobuf_unittest.TestUnpackedTypes.unpacked_uint64)
  27094. return unpacked_uint64_.Get(index);
  27095. }
  27096. inline void TestUnpackedTypes::set_unpacked_uint64(int index, ::google::protobuf::uint64 value) {
  27097. unpacked_uint64_.Set(index, value);
  27098. // @@protoc_insertion_point(field_set:protobuf_unittest.TestUnpackedTypes.unpacked_uint64)
  27099. }
  27100. inline void TestUnpackedTypes::add_unpacked_uint64(::google::protobuf::uint64 value) {
  27101. unpacked_uint64_.Add(value);
  27102. // @@protoc_insertion_point(field_add:protobuf_unittest.TestUnpackedTypes.unpacked_uint64)
  27103. }
  27104. inline const ::google::protobuf::RepeatedField< ::google::protobuf::uint64 >&
  27105. TestUnpackedTypes::unpacked_uint64() const {
  27106. // @@protoc_insertion_point(field_list:protobuf_unittest.TestUnpackedTypes.unpacked_uint64)
  27107. return unpacked_uint64_;
  27108. }
  27109. inline ::google::protobuf::RepeatedField< ::google::protobuf::uint64 >*
  27110. TestUnpackedTypes::mutable_unpacked_uint64() {
  27111. // @@protoc_insertion_point(field_mutable_list:protobuf_unittest.TestUnpackedTypes.unpacked_uint64)
  27112. return &unpacked_uint64_;
  27113. }
  27114. // repeated sint32 unpacked_sint32 = 94 [packed = false];
  27115. inline int TestUnpackedTypes::unpacked_sint32_size() const {
  27116. return unpacked_sint32_.size();
  27117. }
  27118. inline void TestUnpackedTypes::clear_unpacked_sint32() {
  27119. unpacked_sint32_.Clear();
  27120. }
  27121. inline ::google::protobuf::int32 TestUnpackedTypes::unpacked_sint32(int index) const {
  27122. // @@protoc_insertion_point(field_get:protobuf_unittest.TestUnpackedTypes.unpacked_sint32)
  27123. return unpacked_sint32_.Get(index);
  27124. }
  27125. inline void TestUnpackedTypes::set_unpacked_sint32(int index, ::google::protobuf::int32 value) {
  27126. unpacked_sint32_.Set(index, value);
  27127. // @@protoc_insertion_point(field_set:protobuf_unittest.TestUnpackedTypes.unpacked_sint32)
  27128. }
  27129. inline void TestUnpackedTypes::add_unpacked_sint32(::google::protobuf::int32 value) {
  27130. unpacked_sint32_.Add(value);
  27131. // @@protoc_insertion_point(field_add:protobuf_unittest.TestUnpackedTypes.unpacked_sint32)
  27132. }
  27133. inline const ::google::protobuf::RepeatedField< ::google::protobuf::int32 >&
  27134. TestUnpackedTypes::unpacked_sint32() const {
  27135. // @@protoc_insertion_point(field_list:protobuf_unittest.TestUnpackedTypes.unpacked_sint32)
  27136. return unpacked_sint32_;
  27137. }
  27138. inline ::google::protobuf::RepeatedField< ::google::protobuf::int32 >*
  27139. TestUnpackedTypes::mutable_unpacked_sint32() {
  27140. // @@protoc_insertion_point(field_mutable_list:protobuf_unittest.TestUnpackedTypes.unpacked_sint32)
  27141. return &unpacked_sint32_;
  27142. }
  27143. // repeated sint64 unpacked_sint64 = 95 [packed = false];
  27144. inline int TestUnpackedTypes::unpacked_sint64_size() const {
  27145. return unpacked_sint64_.size();
  27146. }
  27147. inline void TestUnpackedTypes::clear_unpacked_sint64() {
  27148. unpacked_sint64_.Clear();
  27149. }
  27150. inline ::google::protobuf::int64 TestUnpackedTypes::unpacked_sint64(int index) const {
  27151. // @@protoc_insertion_point(field_get:protobuf_unittest.TestUnpackedTypes.unpacked_sint64)
  27152. return unpacked_sint64_.Get(index);
  27153. }
  27154. inline void TestUnpackedTypes::set_unpacked_sint64(int index, ::google::protobuf::int64 value) {
  27155. unpacked_sint64_.Set(index, value);
  27156. // @@protoc_insertion_point(field_set:protobuf_unittest.TestUnpackedTypes.unpacked_sint64)
  27157. }
  27158. inline void TestUnpackedTypes::add_unpacked_sint64(::google::protobuf::int64 value) {
  27159. unpacked_sint64_.Add(value);
  27160. // @@protoc_insertion_point(field_add:protobuf_unittest.TestUnpackedTypes.unpacked_sint64)
  27161. }
  27162. inline const ::google::protobuf::RepeatedField< ::google::protobuf::int64 >&
  27163. TestUnpackedTypes::unpacked_sint64() const {
  27164. // @@protoc_insertion_point(field_list:protobuf_unittest.TestUnpackedTypes.unpacked_sint64)
  27165. return unpacked_sint64_;
  27166. }
  27167. inline ::google::protobuf::RepeatedField< ::google::protobuf::int64 >*
  27168. TestUnpackedTypes::mutable_unpacked_sint64() {
  27169. // @@protoc_insertion_point(field_mutable_list:protobuf_unittest.TestUnpackedTypes.unpacked_sint64)
  27170. return &unpacked_sint64_;
  27171. }
  27172. // repeated fixed32 unpacked_fixed32 = 96 [packed = false];
  27173. inline int TestUnpackedTypes::unpacked_fixed32_size() const {
  27174. return unpacked_fixed32_.size();
  27175. }
  27176. inline void TestUnpackedTypes::clear_unpacked_fixed32() {
  27177. unpacked_fixed32_.Clear();
  27178. }
  27179. inline ::google::protobuf::uint32 TestUnpackedTypes::unpacked_fixed32(int index) const {
  27180. // @@protoc_insertion_point(field_get:protobuf_unittest.TestUnpackedTypes.unpacked_fixed32)
  27181. return unpacked_fixed32_.Get(index);
  27182. }
  27183. inline void TestUnpackedTypes::set_unpacked_fixed32(int index, ::google::protobuf::uint32 value) {
  27184. unpacked_fixed32_.Set(index, value);
  27185. // @@protoc_insertion_point(field_set:protobuf_unittest.TestUnpackedTypes.unpacked_fixed32)
  27186. }
  27187. inline void TestUnpackedTypes::add_unpacked_fixed32(::google::protobuf::uint32 value) {
  27188. unpacked_fixed32_.Add(value);
  27189. // @@protoc_insertion_point(field_add:protobuf_unittest.TestUnpackedTypes.unpacked_fixed32)
  27190. }
  27191. inline const ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >&
  27192. TestUnpackedTypes::unpacked_fixed32() const {
  27193. // @@protoc_insertion_point(field_list:protobuf_unittest.TestUnpackedTypes.unpacked_fixed32)
  27194. return unpacked_fixed32_;
  27195. }
  27196. inline ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >*
  27197. TestUnpackedTypes::mutable_unpacked_fixed32() {
  27198. // @@protoc_insertion_point(field_mutable_list:protobuf_unittest.TestUnpackedTypes.unpacked_fixed32)
  27199. return &unpacked_fixed32_;
  27200. }
  27201. // repeated fixed64 unpacked_fixed64 = 97 [packed = false];
  27202. inline int TestUnpackedTypes::unpacked_fixed64_size() const {
  27203. return unpacked_fixed64_.size();
  27204. }
  27205. inline void TestUnpackedTypes::clear_unpacked_fixed64() {
  27206. unpacked_fixed64_.Clear();
  27207. }
  27208. inline ::google::protobuf::uint64 TestUnpackedTypes::unpacked_fixed64(int index) const {
  27209. // @@protoc_insertion_point(field_get:protobuf_unittest.TestUnpackedTypes.unpacked_fixed64)
  27210. return unpacked_fixed64_.Get(index);
  27211. }
  27212. inline void TestUnpackedTypes::set_unpacked_fixed64(int index, ::google::protobuf::uint64 value) {
  27213. unpacked_fixed64_.Set(index, value);
  27214. // @@protoc_insertion_point(field_set:protobuf_unittest.TestUnpackedTypes.unpacked_fixed64)
  27215. }
  27216. inline void TestUnpackedTypes::add_unpacked_fixed64(::google::protobuf::uint64 value) {
  27217. unpacked_fixed64_.Add(value);
  27218. // @@protoc_insertion_point(field_add:protobuf_unittest.TestUnpackedTypes.unpacked_fixed64)
  27219. }
  27220. inline const ::google::protobuf::RepeatedField< ::google::protobuf::uint64 >&
  27221. TestUnpackedTypes::unpacked_fixed64() const {
  27222. // @@protoc_insertion_point(field_list:protobuf_unittest.TestUnpackedTypes.unpacked_fixed64)
  27223. return unpacked_fixed64_;
  27224. }
  27225. inline ::google::protobuf::RepeatedField< ::google::protobuf::uint64 >*
  27226. TestUnpackedTypes::mutable_unpacked_fixed64() {
  27227. // @@protoc_insertion_point(field_mutable_list:protobuf_unittest.TestUnpackedTypes.unpacked_fixed64)
  27228. return &unpacked_fixed64_;
  27229. }
  27230. // repeated sfixed32 unpacked_sfixed32 = 98 [packed = false];
  27231. inline int TestUnpackedTypes::unpacked_sfixed32_size() const {
  27232. return unpacked_sfixed32_.size();
  27233. }
  27234. inline void TestUnpackedTypes::clear_unpacked_sfixed32() {
  27235. unpacked_sfixed32_.Clear();
  27236. }
  27237. inline ::google::protobuf::int32 TestUnpackedTypes::unpacked_sfixed32(int index) const {
  27238. // @@protoc_insertion_point(field_get:protobuf_unittest.TestUnpackedTypes.unpacked_sfixed32)
  27239. return unpacked_sfixed32_.Get(index);
  27240. }
  27241. inline void TestUnpackedTypes::set_unpacked_sfixed32(int index, ::google::protobuf::int32 value) {
  27242. unpacked_sfixed32_.Set(index, value);
  27243. // @@protoc_insertion_point(field_set:protobuf_unittest.TestUnpackedTypes.unpacked_sfixed32)
  27244. }
  27245. inline void TestUnpackedTypes::add_unpacked_sfixed32(::google::protobuf::int32 value) {
  27246. unpacked_sfixed32_.Add(value);
  27247. // @@protoc_insertion_point(field_add:protobuf_unittest.TestUnpackedTypes.unpacked_sfixed32)
  27248. }
  27249. inline const ::google::protobuf::RepeatedField< ::google::protobuf::int32 >&
  27250. TestUnpackedTypes::unpacked_sfixed32() const {
  27251. // @@protoc_insertion_point(field_list:protobuf_unittest.TestUnpackedTypes.unpacked_sfixed32)
  27252. return unpacked_sfixed32_;
  27253. }
  27254. inline ::google::protobuf::RepeatedField< ::google::protobuf::int32 >*
  27255. TestUnpackedTypes::mutable_unpacked_sfixed32() {
  27256. // @@protoc_insertion_point(field_mutable_list:protobuf_unittest.TestUnpackedTypes.unpacked_sfixed32)
  27257. return &unpacked_sfixed32_;
  27258. }
  27259. // repeated sfixed64 unpacked_sfixed64 = 99 [packed = false];
  27260. inline int TestUnpackedTypes::unpacked_sfixed64_size() const {
  27261. return unpacked_sfixed64_.size();
  27262. }
  27263. inline void TestUnpackedTypes::clear_unpacked_sfixed64() {
  27264. unpacked_sfixed64_.Clear();
  27265. }
  27266. inline ::google::protobuf::int64 TestUnpackedTypes::unpacked_sfixed64(int index) const {
  27267. // @@protoc_insertion_point(field_get:protobuf_unittest.TestUnpackedTypes.unpacked_sfixed64)
  27268. return unpacked_sfixed64_.Get(index);
  27269. }
  27270. inline void TestUnpackedTypes::set_unpacked_sfixed64(int index, ::google::protobuf::int64 value) {
  27271. unpacked_sfixed64_.Set(index, value);
  27272. // @@protoc_insertion_point(field_set:protobuf_unittest.TestUnpackedTypes.unpacked_sfixed64)
  27273. }
  27274. inline void TestUnpackedTypes::add_unpacked_sfixed64(::google::protobuf::int64 value) {
  27275. unpacked_sfixed64_.Add(value);
  27276. // @@protoc_insertion_point(field_add:protobuf_unittest.TestUnpackedTypes.unpacked_sfixed64)
  27277. }
  27278. inline const ::google::protobuf::RepeatedField< ::google::protobuf::int64 >&
  27279. TestUnpackedTypes::unpacked_sfixed64() const {
  27280. // @@protoc_insertion_point(field_list:protobuf_unittest.TestUnpackedTypes.unpacked_sfixed64)
  27281. return unpacked_sfixed64_;
  27282. }
  27283. inline ::google::protobuf::RepeatedField< ::google::protobuf::int64 >*
  27284. TestUnpackedTypes::mutable_unpacked_sfixed64() {
  27285. // @@protoc_insertion_point(field_mutable_list:protobuf_unittest.TestUnpackedTypes.unpacked_sfixed64)
  27286. return &unpacked_sfixed64_;
  27287. }
  27288. // repeated float unpacked_float = 100 [packed = false];
  27289. inline int TestUnpackedTypes::unpacked_float_size() const {
  27290. return unpacked_float_.size();
  27291. }
  27292. inline void TestUnpackedTypes::clear_unpacked_float() {
  27293. unpacked_float_.Clear();
  27294. }
  27295. inline float TestUnpackedTypes::unpacked_float(int index) const {
  27296. // @@protoc_insertion_point(field_get:protobuf_unittest.TestUnpackedTypes.unpacked_float)
  27297. return unpacked_float_.Get(index);
  27298. }
  27299. inline void TestUnpackedTypes::set_unpacked_float(int index, float value) {
  27300. unpacked_float_.Set(index, value);
  27301. // @@protoc_insertion_point(field_set:protobuf_unittest.TestUnpackedTypes.unpacked_float)
  27302. }
  27303. inline void TestUnpackedTypes::add_unpacked_float(float value) {
  27304. unpacked_float_.Add(value);
  27305. // @@protoc_insertion_point(field_add:protobuf_unittest.TestUnpackedTypes.unpacked_float)
  27306. }
  27307. inline const ::google::protobuf::RepeatedField< float >&
  27308. TestUnpackedTypes::unpacked_float() const {
  27309. // @@protoc_insertion_point(field_list:protobuf_unittest.TestUnpackedTypes.unpacked_float)
  27310. return unpacked_float_;
  27311. }
  27312. inline ::google::protobuf::RepeatedField< float >*
  27313. TestUnpackedTypes::mutable_unpacked_float() {
  27314. // @@protoc_insertion_point(field_mutable_list:protobuf_unittest.TestUnpackedTypes.unpacked_float)
  27315. return &unpacked_float_;
  27316. }
  27317. // repeated double unpacked_double = 101 [packed = false];
  27318. inline int TestUnpackedTypes::unpacked_double_size() const {
  27319. return unpacked_double_.size();
  27320. }
  27321. inline void TestUnpackedTypes::clear_unpacked_double() {
  27322. unpacked_double_.Clear();
  27323. }
  27324. inline double TestUnpackedTypes::unpacked_double(int index) const {
  27325. // @@protoc_insertion_point(field_get:protobuf_unittest.TestUnpackedTypes.unpacked_double)
  27326. return unpacked_double_.Get(index);
  27327. }
  27328. inline void TestUnpackedTypes::set_unpacked_double(int index, double value) {
  27329. unpacked_double_.Set(index, value);
  27330. // @@protoc_insertion_point(field_set:protobuf_unittest.TestUnpackedTypes.unpacked_double)
  27331. }
  27332. inline void TestUnpackedTypes::add_unpacked_double(double value) {
  27333. unpacked_double_.Add(value);
  27334. // @@protoc_insertion_point(field_add:protobuf_unittest.TestUnpackedTypes.unpacked_double)
  27335. }
  27336. inline const ::google::protobuf::RepeatedField< double >&
  27337. TestUnpackedTypes::unpacked_double() const {
  27338. // @@protoc_insertion_point(field_list:protobuf_unittest.TestUnpackedTypes.unpacked_double)
  27339. return unpacked_double_;
  27340. }
  27341. inline ::google::protobuf::RepeatedField< double >*
  27342. TestUnpackedTypes::mutable_unpacked_double() {
  27343. // @@protoc_insertion_point(field_mutable_list:protobuf_unittest.TestUnpackedTypes.unpacked_double)
  27344. return &unpacked_double_;
  27345. }
  27346. // repeated bool unpacked_bool = 102 [packed = false];
  27347. inline int TestUnpackedTypes::unpacked_bool_size() const {
  27348. return unpacked_bool_.size();
  27349. }
  27350. inline void TestUnpackedTypes::clear_unpacked_bool() {
  27351. unpacked_bool_.Clear();
  27352. }
  27353. inline bool TestUnpackedTypes::unpacked_bool(int index) const {
  27354. // @@protoc_insertion_point(field_get:protobuf_unittest.TestUnpackedTypes.unpacked_bool)
  27355. return unpacked_bool_.Get(index);
  27356. }
  27357. inline void TestUnpackedTypes::set_unpacked_bool(int index, bool value) {
  27358. unpacked_bool_.Set(index, value);
  27359. // @@protoc_insertion_point(field_set:protobuf_unittest.TestUnpackedTypes.unpacked_bool)
  27360. }
  27361. inline void TestUnpackedTypes::add_unpacked_bool(bool value) {
  27362. unpacked_bool_.Add(value);
  27363. // @@protoc_insertion_point(field_add:protobuf_unittest.TestUnpackedTypes.unpacked_bool)
  27364. }
  27365. inline const ::google::protobuf::RepeatedField< bool >&
  27366. TestUnpackedTypes::unpacked_bool() const {
  27367. // @@protoc_insertion_point(field_list:protobuf_unittest.TestUnpackedTypes.unpacked_bool)
  27368. return unpacked_bool_;
  27369. }
  27370. inline ::google::protobuf::RepeatedField< bool >*
  27371. TestUnpackedTypes::mutable_unpacked_bool() {
  27372. // @@protoc_insertion_point(field_mutable_list:protobuf_unittest.TestUnpackedTypes.unpacked_bool)
  27373. return &unpacked_bool_;
  27374. }
  27375. // repeated .protobuf_unittest.ForeignEnum unpacked_enum = 103 [packed = false];
  27376. inline int TestUnpackedTypes::unpacked_enum_size() const {
  27377. return unpacked_enum_.size();
  27378. }
  27379. inline void TestUnpackedTypes::clear_unpacked_enum() {
  27380. unpacked_enum_.Clear();
  27381. }
  27382. inline ::protobuf_unittest::ForeignEnum TestUnpackedTypes::unpacked_enum(int index) const {
  27383. // @@protoc_insertion_point(field_get:protobuf_unittest.TestUnpackedTypes.unpacked_enum)
  27384. return static_cast< ::protobuf_unittest::ForeignEnum >(unpacked_enum_.Get(index));
  27385. }
  27386. inline void TestUnpackedTypes::set_unpacked_enum(int index, ::protobuf_unittest::ForeignEnum value) {
  27387. assert(::protobuf_unittest::ForeignEnum_IsValid(value));
  27388. unpacked_enum_.Set(index, value);
  27389. // @@protoc_insertion_point(field_set:protobuf_unittest.TestUnpackedTypes.unpacked_enum)
  27390. }
  27391. inline void TestUnpackedTypes::add_unpacked_enum(::protobuf_unittest::ForeignEnum value) {
  27392. assert(::protobuf_unittest::ForeignEnum_IsValid(value));
  27393. unpacked_enum_.Add(value);
  27394. // @@protoc_insertion_point(field_add:protobuf_unittest.TestUnpackedTypes.unpacked_enum)
  27395. }
  27396. inline const ::google::protobuf::RepeatedField<int>&
  27397. TestUnpackedTypes::unpacked_enum() const {
  27398. // @@protoc_insertion_point(field_list:protobuf_unittest.TestUnpackedTypes.unpacked_enum)
  27399. return unpacked_enum_;
  27400. }
  27401. inline ::google::protobuf::RepeatedField<int>*
  27402. TestUnpackedTypes::mutable_unpacked_enum() {
  27403. // @@protoc_insertion_point(field_mutable_list:protobuf_unittest.TestUnpackedTypes.unpacked_enum)
  27404. return &unpacked_enum_;
  27405. }
  27406. // -------------------------------------------------------------------
  27407. // TestPackedExtensions
  27408. // -------------------------------------------------------------------
  27409. // TestUnpackedExtensions
  27410. // -------------------------------------------------------------------
  27411. // TestDynamicExtensions_DynamicMessageType
  27412. // optional int32 dynamic_field = 2100;
  27413. inline bool TestDynamicExtensions_DynamicMessageType::has_dynamic_field() const {
  27414. return (_has_bits_[0] & 0x00000001u) != 0;
  27415. }
  27416. inline void TestDynamicExtensions_DynamicMessageType::set_has_dynamic_field() {
  27417. _has_bits_[0] |= 0x00000001u;
  27418. }
  27419. inline void TestDynamicExtensions_DynamicMessageType::clear_has_dynamic_field() {
  27420. _has_bits_[0] &= ~0x00000001u;
  27421. }
  27422. inline void TestDynamicExtensions_DynamicMessageType::clear_dynamic_field() {
  27423. dynamic_field_ = 0;
  27424. clear_has_dynamic_field();
  27425. }
  27426. inline ::google::protobuf::int32 TestDynamicExtensions_DynamicMessageType::dynamic_field() const {
  27427. // @@protoc_insertion_point(field_get:protobuf_unittest.TestDynamicExtensions.DynamicMessageType.dynamic_field)
  27428. return dynamic_field_;
  27429. }
  27430. inline void TestDynamicExtensions_DynamicMessageType::set_dynamic_field(::google::protobuf::int32 value) {
  27431. set_has_dynamic_field();
  27432. dynamic_field_ = value;
  27433. // @@protoc_insertion_point(field_set:protobuf_unittest.TestDynamicExtensions.DynamicMessageType.dynamic_field)
  27434. }
  27435. // -------------------------------------------------------------------
  27436. // TestDynamicExtensions
  27437. // optional fixed32 scalar_extension = 2000;
  27438. inline bool TestDynamicExtensions::has_scalar_extension() const {
  27439. return (_has_bits_[0] & 0x00000004u) != 0;
  27440. }
  27441. inline void TestDynamicExtensions::set_has_scalar_extension() {
  27442. _has_bits_[0] |= 0x00000004u;
  27443. }
  27444. inline void TestDynamicExtensions::clear_has_scalar_extension() {
  27445. _has_bits_[0] &= ~0x00000004u;
  27446. }
  27447. inline void TestDynamicExtensions::clear_scalar_extension() {
  27448. scalar_extension_ = 0u;
  27449. clear_has_scalar_extension();
  27450. }
  27451. inline ::google::protobuf::uint32 TestDynamicExtensions::scalar_extension() const {
  27452. // @@protoc_insertion_point(field_get:protobuf_unittest.TestDynamicExtensions.scalar_extension)
  27453. return scalar_extension_;
  27454. }
  27455. inline void TestDynamicExtensions::set_scalar_extension(::google::protobuf::uint32 value) {
  27456. set_has_scalar_extension();
  27457. scalar_extension_ = value;
  27458. // @@protoc_insertion_point(field_set:protobuf_unittest.TestDynamicExtensions.scalar_extension)
  27459. }
  27460. // optional .protobuf_unittest.ForeignEnum enum_extension = 2001;
  27461. inline bool TestDynamicExtensions::has_enum_extension() const {
  27462. return (_has_bits_[0] & 0x00000008u) != 0;
  27463. }
  27464. inline void TestDynamicExtensions::set_has_enum_extension() {
  27465. _has_bits_[0] |= 0x00000008u;
  27466. }
  27467. inline void TestDynamicExtensions::clear_has_enum_extension() {
  27468. _has_bits_[0] &= ~0x00000008u;
  27469. }
  27470. inline void TestDynamicExtensions::clear_enum_extension() {
  27471. enum_extension_ = 4;
  27472. clear_has_enum_extension();
  27473. }
  27474. inline ::protobuf_unittest::ForeignEnum TestDynamicExtensions::enum_extension() const {
  27475. // @@protoc_insertion_point(field_get:protobuf_unittest.TestDynamicExtensions.enum_extension)
  27476. return static_cast< ::protobuf_unittest::ForeignEnum >(enum_extension_);
  27477. }
  27478. inline void TestDynamicExtensions::set_enum_extension(::protobuf_unittest::ForeignEnum value) {
  27479. assert(::protobuf_unittest::ForeignEnum_IsValid(value));
  27480. set_has_enum_extension();
  27481. enum_extension_ = value;
  27482. // @@protoc_insertion_point(field_set:protobuf_unittest.TestDynamicExtensions.enum_extension)
  27483. }
  27484. // optional .protobuf_unittest.TestDynamicExtensions.DynamicEnumType dynamic_enum_extension = 2002;
  27485. inline bool TestDynamicExtensions::has_dynamic_enum_extension() const {
  27486. return (_has_bits_[0] & 0x00000010u) != 0;
  27487. }
  27488. inline void TestDynamicExtensions::set_has_dynamic_enum_extension() {
  27489. _has_bits_[0] |= 0x00000010u;
  27490. }
  27491. inline void TestDynamicExtensions::clear_has_dynamic_enum_extension() {
  27492. _has_bits_[0] &= ~0x00000010u;
  27493. }
  27494. inline void TestDynamicExtensions::clear_dynamic_enum_extension() {
  27495. dynamic_enum_extension_ = 2200;
  27496. clear_has_dynamic_enum_extension();
  27497. }
  27498. inline ::protobuf_unittest::TestDynamicExtensions_DynamicEnumType TestDynamicExtensions::dynamic_enum_extension() const {
  27499. // @@protoc_insertion_point(field_get:protobuf_unittest.TestDynamicExtensions.dynamic_enum_extension)
  27500. return static_cast< ::protobuf_unittest::TestDynamicExtensions_DynamicEnumType >(dynamic_enum_extension_);
  27501. }
  27502. inline void TestDynamicExtensions::set_dynamic_enum_extension(::protobuf_unittest::TestDynamicExtensions_DynamicEnumType value) {
  27503. assert(::protobuf_unittest::TestDynamicExtensions_DynamicEnumType_IsValid(value));
  27504. set_has_dynamic_enum_extension();
  27505. dynamic_enum_extension_ = value;
  27506. // @@protoc_insertion_point(field_set:protobuf_unittest.TestDynamicExtensions.dynamic_enum_extension)
  27507. }
  27508. // optional .protobuf_unittest.ForeignMessage message_extension = 2003;
  27509. inline bool TestDynamicExtensions::has_message_extension() const {
  27510. return (_has_bits_[0] & 0x00000001u) != 0;
  27511. }
  27512. inline void TestDynamicExtensions::set_has_message_extension() {
  27513. _has_bits_[0] |= 0x00000001u;
  27514. }
  27515. inline void TestDynamicExtensions::clear_has_message_extension() {
  27516. _has_bits_[0] &= ~0x00000001u;
  27517. }
  27518. inline void TestDynamicExtensions::clear_message_extension() {
  27519. if (message_extension_ != NULL) message_extension_->Clear();
  27520. clear_has_message_extension();
  27521. }
  27522. inline const ::protobuf_unittest::ForeignMessage& TestDynamicExtensions::_internal_message_extension() const {
  27523. return *message_extension_;
  27524. }
  27525. inline const ::protobuf_unittest::ForeignMessage& TestDynamicExtensions::message_extension() const {
  27526. const ::protobuf_unittest::ForeignMessage* p = message_extension_;
  27527. // @@protoc_insertion_point(field_get:protobuf_unittest.TestDynamicExtensions.message_extension)
  27528. return p != NULL ? *p : *reinterpret_cast<const ::protobuf_unittest::ForeignMessage*>(
  27529. &::protobuf_unittest::_ForeignMessage_default_instance_);
  27530. }
  27531. inline ::protobuf_unittest::ForeignMessage* TestDynamicExtensions::release_message_extension() {
  27532. // @@protoc_insertion_point(field_release:protobuf_unittest.TestDynamicExtensions.message_extension)
  27533. clear_has_message_extension();
  27534. ::protobuf_unittest::ForeignMessage* temp = message_extension_;
  27535. if (GetArenaNoVirtual() != NULL) {
  27536. temp = ::google::protobuf::internal::DuplicateIfNonNull(temp);
  27537. }
  27538. message_extension_ = NULL;
  27539. return temp;
  27540. }
  27541. inline ::protobuf_unittest::ForeignMessage* TestDynamicExtensions::unsafe_arena_release_message_extension() {
  27542. // @@protoc_insertion_point(field_unsafe_arena_release:protobuf_unittest.TestDynamicExtensions.message_extension)
  27543. clear_has_message_extension();
  27544. ::protobuf_unittest::ForeignMessage* temp = message_extension_;
  27545. message_extension_ = NULL;
  27546. return temp;
  27547. }
  27548. inline ::protobuf_unittest::ForeignMessage* TestDynamicExtensions::mutable_message_extension() {
  27549. set_has_message_extension();
  27550. if (message_extension_ == NULL) {
  27551. auto* p = CreateMaybeMessage<::protobuf_unittest::ForeignMessage>(GetArenaNoVirtual());
  27552. message_extension_ = p;
  27553. }
  27554. // @@protoc_insertion_point(field_mutable:protobuf_unittest.TestDynamicExtensions.message_extension)
  27555. return message_extension_;
  27556. }
  27557. inline void TestDynamicExtensions::set_allocated_message_extension(::protobuf_unittest::ForeignMessage* message_extension) {
  27558. ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
  27559. if (message_arena == NULL) {
  27560. delete message_extension_;
  27561. }
  27562. if (message_extension) {
  27563. ::google::protobuf::Arena* submessage_arena =
  27564. ::google::protobuf::Arena::GetArena(message_extension);
  27565. if (message_arena != submessage_arena) {
  27566. message_extension = ::google::protobuf::internal::GetOwnedMessage(
  27567. message_arena, message_extension, submessage_arena);
  27568. }
  27569. set_has_message_extension();
  27570. } else {
  27571. clear_has_message_extension();
  27572. }
  27573. message_extension_ = message_extension;
  27574. // @@protoc_insertion_point(field_set_allocated:protobuf_unittest.TestDynamicExtensions.message_extension)
  27575. }
  27576. // optional .protobuf_unittest.TestDynamicExtensions.DynamicMessageType dynamic_message_extension = 2004;
  27577. inline bool TestDynamicExtensions::has_dynamic_message_extension() const {
  27578. return (_has_bits_[0] & 0x00000002u) != 0;
  27579. }
  27580. inline void TestDynamicExtensions::set_has_dynamic_message_extension() {
  27581. _has_bits_[0] |= 0x00000002u;
  27582. }
  27583. inline void TestDynamicExtensions::clear_has_dynamic_message_extension() {
  27584. _has_bits_[0] &= ~0x00000002u;
  27585. }
  27586. inline void TestDynamicExtensions::clear_dynamic_message_extension() {
  27587. if (dynamic_message_extension_ != NULL) dynamic_message_extension_->Clear();
  27588. clear_has_dynamic_message_extension();
  27589. }
  27590. inline const ::protobuf_unittest::TestDynamicExtensions_DynamicMessageType& TestDynamicExtensions::_internal_dynamic_message_extension() const {
  27591. return *dynamic_message_extension_;
  27592. }
  27593. inline const ::protobuf_unittest::TestDynamicExtensions_DynamicMessageType& TestDynamicExtensions::dynamic_message_extension() const {
  27594. const ::protobuf_unittest::TestDynamicExtensions_DynamicMessageType* p = dynamic_message_extension_;
  27595. // @@protoc_insertion_point(field_get:protobuf_unittest.TestDynamicExtensions.dynamic_message_extension)
  27596. return p != NULL ? *p : *reinterpret_cast<const ::protobuf_unittest::TestDynamicExtensions_DynamicMessageType*>(
  27597. &::protobuf_unittest::_TestDynamicExtensions_DynamicMessageType_default_instance_);
  27598. }
  27599. inline ::protobuf_unittest::TestDynamicExtensions_DynamicMessageType* TestDynamicExtensions::release_dynamic_message_extension() {
  27600. // @@protoc_insertion_point(field_release:protobuf_unittest.TestDynamicExtensions.dynamic_message_extension)
  27601. clear_has_dynamic_message_extension();
  27602. ::protobuf_unittest::TestDynamicExtensions_DynamicMessageType* temp = dynamic_message_extension_;
  27603. if (GetArenaNoVirtual() != NULL) {
  27604. temp = ::google::protobuf::internal::DuplicateIfNonNull(temp);
  27605. }
  27606. dynamic_message_extension_ = NULL;
  27607. return temp;
  27608. }
  27609. inline ::protobuf_unittest::TestDynamicExtensions_DynamicMessageType* TestDynamicExtensions::unsafe_arena_release_dynamic_message_extension() {
  27610. // @@protoc_insertion_point(field_unsafe_arena_release:protobuf_unittest.TestDynamicExtensions.dynamic_message_extension)
  27611. clear_has_dynamic_message_extension();
  27612. ::protobuf_unittest::TestDynamicExtensions_DynamicMessageType* temp = dynamic_message_extension_;
  27613. dynamic_message_extension_ = NULL;
  27614. return temp;
  27615. }
  27616. inline ::protobuf_unittest::TestDynamicExtensions_DynamicMessageType* TestDynamicExtensions::mutable_dynamic_message_extension() {
  27617. set_has_dynamic_message_extension();
  27618. if (dynamic_message_extension_ == NULL) {
  27619. auto* p = CreateMaybeMessage<::protobuf_unittest::TestDynamicExtensions_DynamicMessageType>(GetArenaNoVirtual());
  27620. dynamic_message_extension_ = p;
  27621. }
  27622. // @@protoc_insertion_point(field_mutable:protobuf_unittest.TestDynamicExtensions.dynamic_message_extension)
  27623. return dynamic_message_extension_;
  27624. }
  27625. inline void TestDynamicExtensions::set_allocated_dynamic_message_extension(::protobuf_unittest::TestDynamicExtensions_DynamicMessageType* dynamic_message_extension) {
  27626. ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
  27627. if (message_arena == NULL) {
  27628. delete dynamic_message_extension_;
  27629. }
  27630. if (dynamic_message_extension) {
  27631. ::google::protobuf::Arena* submessage_arena =
  27632. ::google::protobuf::Arena::GetArena(dynamic_message_extension);
  27633. if (message_arena != submessage_arena) {
  27634. dynamic_message_extension = ::google::protobuf::internal::GetOwnedMessage(
  27635. message_arena, dynamic_message_extension, submessage_arena);
  27636. }
  27637. set_has_dynamic_message_extension();
  27638. } else {
  27639. clear_has_dynamic_message_extension();
  27640. }
  27641. dynamic_message_extension_ = dynamic_message_extension;
  27642. // @@protoc_insertion_point(field_set_allocated:protobuf_unittest.TestDynamicExtensions.dynamic_message_extension)
  27643. }
  27644. // repeated string repeated_extension = 2005;
  27645. inline int TestDynamicExtensions::repeated_extension_size() const {
  27646. return repeated_extension_.size();
  27647. }
  27648. inline void TestDynamicExtensions::clear_repeated_extension() {
  27649. repeated_extension_.Clear();
  27650. }
  27651. inline const ::std::string& TestDynamicExtensions::repeated_extension(int index) const {
  27652. // @@protoc_insertion_point(field_get:protobuf_unittest.TestDynamicExtensions.repeated_extension)
  27653. return repeated_extension_.Get(index);
  27654. }
  27655. inline ::std::string* TestDynamicExtensions::mutable_repeated_extension(int index) {
  27656. // @@protoc_insertion_point(field_mutable:protobuf_unittest.TestDynamicExtensions.repeated_extension)
  27657. return repeated_extension_.Mutable(index);
  27658. }
  27659. inline void TestDynamicExtensions::set_repeated_extension(int index, const ::std::string& value) {
  27660. // @@protoc_insertion_point(field_set:protobuf_unittest.TestDynamicExtensions.repeated_extension)
  27661. repeated_extension_.Mutable(index)->assign(value);
  27662. }
  27663. #if LANG_CXX11
  27664. inline void TestDynamicExtensions::set_repeated_extension(int index, ::std::string&& value) {
  27665. // @@protoc_insertion_point(field_set:protobuf_unittest.TestDynamicExtensions.repeated_extension)
  27666. repeated_extension_.Mutable(index)->assign(std::move(value));
  27667. }
  27668. #endif
  27669. inline void TestDynamicExtensions::set_repeated_extension(int index, const char* value) {
  27670. GOOGLE_DCHECK(value != NULL);
  27671. repeated_extension_.Mutable(index)->assign(value);
  27672. // @@protoc_insertion_point(field_set_char:protobuf_unittest.TestDynamicExtensions.repeated_extension)
  27673. }
  27674. inline void TestDynamicExtensions::set_repeated_extension(int index, const char* value, size_t size) {
  27675. repeated_extension_.Mutable(index)->assign(
  27676. reinterpret_cast<const char*>(value), size);
  27677. // @@protoc_insertion_point(field_set_pointer:protobuf_unittest.TestDynamicExtensions.repeated_extension)
  27678. }
  27679. inline ::std::string* TestDynamicExtensions::add_repeated_extension() {
  27680. // @@protoc_insertion_point(field_add_mutable:protobuf_unittest.TestDynamicExtensions.repeated_extension)
  27681. return repeated_extension_.Add();
  27682. }
  27683. inline void TestDynamicExtensions::add_repeated_extension(const ::std::string& value) {
  27684. repeated_extension_.Add()->assign(value);
  27685. // @@protoc_insertion_point(field_add:protobuf_unittest.TestDynamicExtensions.repeated_extension)
  27686. }
  27687. #if LANG_CXX11
  27688. inline void TestDynamicExtensions::add_repeated_extension(::std::string&& value) {
  27689. repeated_extension_.Add(std::move(value));
  27690. // @@protoc_insertion_point(field_add:protobuf_unittest.TestDynamicExtensions.repeated_extension)
  27691. }
  27692. #endif
  27693. inline void TestDynamicExtensions::add_repeated_extension(const char* value) {
  27694. GOOGLE_DCHECK(value != NULL);
  27695. repeated_extension_.Add()->assign(value);
  27696. // @@protoc_insertion_point(field_add_char:protobuf_unittest.TestDynamicExtensions.repeated_extension)
  27697. }
  27698. inline void TestDynamicExtensions::add_repeated_extension(const char* value, size_t size) {
  27699. repeated_extension_.Add()->assign(reinterpret_cast<const char*>(value), size);
  27700. // @@protoc_insertion_point(field_add_pointer:protobuf_unittest.TestDynamicExtensions.repeated_extension)
  27701. }
  27702. inline const ::google::protobuf::RepeatedPtrField< ::std::string>&
  27703. TestDynamicExtensions::repeated_extension() const {
  27704. // @@protoc_insertion_point(field_list:protobuf_unittest.TestDynamicExtensions.repeated_extension)
  27705. return repeated_extension_;
  27706. }
  27707. inline ::google::protobuf::RepeatedPtrField< ::std::string>*
  27708. TestDynamicExtensions::mutable_repeated_extension() {
  27709. // @@protoc_insertion_point(field_mutable_list:protobuf_unittest.TestDynamicExtensions.repeated_extension)
  27710. return &repeated_extension_;
  27711. }
  27712. // repeated sint32 packed_extension = 2006 [packed = true];
  27713. inline int TestDynamicExtensions::packed_extension_size() const {
  27714. return packed_extension_.size();
  27715. }
  27716. inline void TestDynamicExtensions::clear_packed_extension() {
  27717. packed_extension_.Clear();
  27718. }
  27719. inline ::google::protobuf::int32 TestDynamicExtensions::packed_extension(int index) const {
  27720. // @@protoc_insertion_point(field_get:protobuf_unittest.TestDynamicExtensions.packed_extension)
  27721. return packed_extension_.Get(index);
  27722. }
  27723. inline void TestDynamicExtensions::set_packed_extension(int index, ::google::protobuf::int32 value) {
  27724. packed_extension_.Set(index, value);
  27725. // @@protoc_insertion_point(field_set:protobuf_unittest.TestDynamicExtensions.packed_extension)
  27726. }
  27727. inline void TestDynamicExtensions::add_packed_extension(::google::protobuf::int32 value) {
  27728. packed_extension_.Add(value);
  27729. // @@protoc_insertion_point(field_add:protobuf_unittest.TestDynamicExtensions.packed_extension)
  27730. }
  27731. inline const ::google::protobuf::RepeatedField< ::google::protobuf::int32 >&
  27732. TestDynamicExtensions::packed_extension() const {
  27733. // @@protoc_insertion_point(field_list:protobuf_unittest.TestDynamicExtensions.packed_extension)
  27734. return packed_extension_;
  27735. }
  27736. inline ::google::protobuf::RepeatedField< ::google::protobuf::int32 >*
  27737. TestDynamicExtensions::mutable_packed_extension() {
  27738. // @@protoc_insertion_point(field_mutable_list:protobuf_unittest.TestDynamicExtensions.packed_extension)
  27739. return &packed_extension_;
  27740. }
  27741. // -------------------------------------------------------------------
  27742. // TestRepeatedScalarDifferentTagSizes
  27743. // repeated fixed32 repeated_fixed32 = 12;
  27744. inline int TestRepeatedScalarDifferentTagSizes::repeated_fixed32_size() const {
  27745. return repeated_fixed32_.size();
  27746. }
  27747. inline void TestRepeatedScalarDifferentTagSizes::clear_repeated_fixed32() {
  27748. repeated_fixed32_.Clear();
  27749. }
  27750. inline ::google::protobuf::uint32 TestRepeatedScalarDifferentTagSizes::repeated_fixed32(int index) const {
  27751. // @@protoc_insertion_point(field_get:protobuf_unittest.TestRepeatedScalarDifferentTagSizes.repeated_fixed32)
  27752. return repeated_fixed32_.Get(index);
  27753. }
  27754. inline void TestRepeatedScalarDifferentTagSizes::set_repeated_fixed32(int index, ::google::protobuf::uint32 value) {
  27755. repeated_fixed32_.Set(index, value);
  27756. // @@protoc_insertion_point(field_set:protobuf_unittest.TestRepeatedScalarDifferentTagSizes.repeated_fixed32)
  27757. }
  27758. inline void TestRepeatedScalarDifferentTagSizes::add_repeated_fixed32(::google::protobuf::uint32 value) {
  27759. repeated_fixed32_.Add(value);
  27760. // @@protoc_insertion_point(field_add:protobuf_unittest.TestRepeatedScalarDifferentTagSizes.repeated_fixed32)
  27761. }
  27762. inline const ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >&
  27763. TestRepeatedScalarDifferentTagSizes::repeated_fixed32() const {
  27764. // @@protoc_insertion_point(field_list:protobuf_unittest.TestRepeatedScalarDifferentTagSizes.repeated_fixed32)
  27765. return repeated_fixed32_;
  27766. }
  27767. inline ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >*
  27768. TestRepeatedScalarDifferentTagSizes::mutable_repeated_fixed32() {
  27769. // @@protoc_insertion_point(field_mutable_list:protobuf_unittest.TestRepeatedScalarDifferentTagSizes.repeated_fixed32)
  27770. return &repeated_fixed32_;
  27771. }
  27772. // repeated int32 repeated_int32 = 13;
  27773. inline int TestRepeatedScalarDifferentTagSizes::repeated_int32_size() const {
  27774. return repeated_int32_.size();
  27775. }
  27776. inline void TestRepeatedScalarDifferentTagSizes::clear_repeated_int32() {
  27777. repeated_int32_.Clear();
  27778. }
  27779. inline ::google::protobuf::int32 TestRepeatedScalarDifferentTagSizes::repeated_int32(int index) const {
  27780. // @@protoc_insertion_point(field_get:protobuf_unittest.TestRepeatedScalarDifferentTagSizes.repeated_int32)
  27781. return repeated_int32_.Get(index);
  27782. }
  27783. inline void TestRepeatedScalarDifferentTagSizes::set_repeated_int32(int index, ::google::protobuf::int32 value) {
  27784. repeated_int32_.Set(index, value);
  27785. // @@protoc_insertion_point(field_set:protobuf_unittest.TestRepeatedScalarDifferentTagSizes.repeated_int32)
  27786. }
  27787. inline void TestRepeatedScalarDifferentTagSizes::add_repeated_int32(::google::protobuf::int32 value) {
  27788. repeated_int32_.Add(value);
  27789. // @@protoc_insertion_point(field_add:protobuf_unittest.TestRepeatedScalarDifferentTagSizes.repeated_int32)
  27790. }
  27791. inline const ::google::protobuf::RepeatedField< ::google::protobuf::int32 >&
  27792. TestRepeatedScalarDifferentTagSizes::repeated_int32() const {
  27793. // @@protoc_insertion_point(field_list:protobuf_unittest.TestRepeatedScalarDifferentTagSizes.repeated_int32)
  27794. return repeated_int32_;
  27795. }
  27796. inline ::google::protobuf::RepeatedField< ::google::protobuf::int32 >*
  27797. TestRepeatedScalarDifferentTagSizes::mutable_repeated_int32() {
  27798. // @@protoc_insertion_point(field_mutable_list:protobuf_unittest.TestRepeatedScalarDifferentTagSizes.repeated_int32)
  27799. return &repeated_int32_;
  27800. }
  27801. // repeated fixed64 repeated_fixed64 = 2046;
  27802. inline int TestRepeatedScalarDifferentTagSizes::repeated_fixed64_size() const {
  27803. return repeated_fixed64_.size();
  27804. }
  27805. inline void TestRepeatedScalarDifferentTagSizes::clear_repeated_fixed64() {
  27806. repeated_fixed64_.Clear();
  27807. }
  27808. inline ::google::protobuf::uint64 TestRepeatedScalarDifferentTagSizes::repeated_fixed64(int index) const {
  27809. // @@protoc_insertion_point(field_get:protobuf_unittest.TestRepeatedScalarDifferentTagSizes.repeated_fixed64)
  27810. return repeated_fixed64_.Get(index);
  27811. }
  27812. inline void TestRepeatedScalarDifferentTagSizes::set_repeated_fixed64(int index, ::google::protobuf::uint64 value) {
  27813. repeated_fixed64_.Set(index, value);
  27814. // @@protoc_insertion_point(field_set:protobuf_unittest.TestRepeatedScalarDifferentTagSizes.repeated_fixed64)
  27815. }
  27816. inline void TestRepeatedScalarDifferentTagSizes::add_repeated_fixed64(::google::protobuf::uint64 value) {
  27817. repeated_fixed64_.Add(value);
  27818. // @@protoc_insertion_point(field_add:protobuf_unittest.TestRepeatedScalarDifferentTagSizes.repeated_fixed64)
  27819. }
  27820. inline const ::google::protobuf::RepeatedField< ::google::protobuf::uint64 >&
  27821. TestRepeatedScalarDifferentTagSizes::repeated_fixed64() const {
  27822. // @@protoc_insertion_point(field_list:protobuf_unittest.TestRepeatedScalarDifferentTagSizes.repeated_fixed64)
  27823. return repeated_fixed64_;
  27824. }
  27825. inline ::google::protobuf::RepeatedField< ::google::protobuf::uint64 >*
  27826. TestRepeatedScalarDifferentTagSizes::mutable_repeated_fixed64() {
  27827. // @@protoc_insertion_point(field_mutable_list:protobuf_unittest.TestRepeatedScalarDifferentTagSizes.repeated_fixed64)
  27828. return &repeated_fixed64_;
  27829. }
  27830. // repeated int64 repeated_int64 = 2047;
  27831. inline int TestRepeatedScalarDifferentTagSizes::repeated_int64_size() const {
  27832. return repeated_int64_.size();
  27833. }
  27834. inline void TestRepeatedScalarDifferentTagSizes::clear_repeated_int64() {
  27835. repeated_int64_.Clear();
  27836. }
  27837. inline ::google::protobuf::int64 TestRepeatedScalarDifferentTagSizes::repeated_int64(int index) const {
  27838. // @@protoc_insertion_point(field_get:protobuf_unittest.TestRepeatedScalarDifferentTagSizes.repeated_int64)
  27839. return repeated_int64_.Get(index);
  27840. }
  27841. inline void TestRepeatedScalarDifferentTagSizes::set_repeated_int64(int index, ::google::protobuf::int64 value) {
  27842. repeated_int64_.Set(index, value);
  27843. // @@protoc_insertion_point(field_set:protobuf_unittest.TestRepeatedScalarDifferentTagSizes.repeated_int64)
  27844. }
  27845. inline void TestRepeatedScalarDifferentTagSizes::add_repeated_int64(::google::protobuf::int64 value) {
  27846. repeated_int64_.Add(value);
  27847. // @@protoc_insertion_point(field_add:protobuf_unittest.TestRepeatedScalarDifferentTagSizes.repeated_int64)
  27848. }
  27849. inline const ::google::protobuf::RepeatedField< ::google::protobuf::int64 >&
  27850. TestRepeatedScalarDifferentTagSizes::repeated_int64() const {
  27851. // @@protoc_insertion_point(field_list:protobuf_unittest.TestRepeatedScalarDifferentTagSizes.repeated_int64)
  27852. return repeated_int64_;
  27853. }
  27854. inline ::google::protobuf::RepeatedField< ::google::protobuf::int64 >*
  27855. TestRepeatedScalarDifferentTagSizes::mutable_repeated_int64() {
  27856. // @@protoc_insertion_point(field_mutable_list:protobuf_unittest.TestRepeatedScalarDifferentTagSizes.repeated_int64)
  27857. return &repeated_int64_;
  27858. }
  27859. // repeated float repeated_float = 262142;
  27860. inline int TestRepeatedScalarDifferentTagSizes::repeated_float_size() const {
  27861. return repeated_float_.size();
  27862. }
  27863. inline void TestRepeatedScalarDifferentTagSizes::clear_repeated_float() {
  27864. repeated_float_.Clear();
  27865. }
  27866. inline float TestRepeatedScalarDifferentTagSizes::repeated_float(int index) const {
  27867. // @@protoc_insertion_point(field_get:protobuf_unittest.TestRepeatedScalarDifferentTagSizes.repeated_float)
  27868. return repeated_float_.Get(index);
  27869. }
  27870. inline void TestRepeatedScalarDifferentTagSizes::set_repeated_float(int index, float value) {
  27871. repeated_float_.Set(index, value);
  27872. // @@protoc_insertion_point(field_set:protobuf_unittest.TestRepeatedScalarDifferentTagSizes.repeated_float)
  27873. }
  27874. inline void TestRepeatedScalarDifferentTagSizes::add_repeated_float(float value) {
  27875. repeated_float_.Add(value);
  27876. // @@protoc_insertion_point(field_add:protobuf_unittest.TestRepeatedScalarDifferentTagSizes.repeated_float)
  27877. }
  27878. inline const ::google::protobuf::RepeatedField< float >&
  27879. TestRepeatedScalarDifferentTagSizes::repeated_float() const {
  27880. // @@protoc_insertion_point(field_list:protobuf_unittest.TestRepeatedScalarDifferentTagSizes.repeated_float)
  27881. return repeated_float_;
  27882. }
  27883. inline ::google::protobuf::RepeatedField< float >*
  27884. TestRepeatedScalarDifferentTagSizes::mutable_repeated_float() {
  27885. // @@protoc_insertion_point(field_mutable_list:protobuf_unittest.TestRepeatedScalarDifferentTagSizes.repeated_float)
  27886. return &repeated_float_;
  27887. }
  27888. // repeated uint64 repeated_uint64 = 262143;
  27889. inline int TestRepeatedScalarDifferentTagSizes::repeated_uint64_size() const {
  27890. return repeated_uint64_.size();
  27891. }
  27892. inline void TestRepeatedScalarDifferentTagSizes::clear_repeated_uint64() {
  27893. repeated_uint64_.Clear();
  27894. }
  27895. inline ::google::protobuf::uint64 TestRepeatedScalarDifferentTagSizes::repeated_uint64(int index) const {
  27896. // @@protoc_insertion_point(field_get:protobuf_unittest.TestRepeatedScalarDifferentTagSizes.repeated_uint64)
  27897. return repeated_uint64_.Get(index);
  27898. }
  27899. inline void TestRepeatedScalarDifferentTagSizes::set_repeated_uint64(int index, ::google::protobuf::uint64 value) {
  27900. repeated_uint64_.Set(index, value);
  27901. // @@protoc_insertion_point(field_set:protobuf_unittest.TestRepeatedScalarDifferentTagSizes.repeated_uint64)
  27902. }
  27903. inline void TestRepeatedScalarDifferentTagSizes::add_repeated_uint64(::google::protobuf::uint64 value) {
  27904. repeated_uint64_.Add(value);
  27905. // @@protoc_insertion_point(field_add:protobuf_unittest.TestRepeatedScalarDifferentTagSizes.repeated_uint64)
  27906. }
  27907. inline const ::google::protobuf::RepeatedField< ::google::protobuf::uint64 >&
  27908. TestRepeatedScalarDifferentTagSizes::repeated_uint64() const {
  27909. // @@protoc_insertion_point(field_list:protobuf_unittest.TestRepeatedScalarDifferentTagSizes.repeated_uint64)
  27910. return repeated_uint64_;
  27911. }
  27912. inline ::google::protobuf::RepeatedField< ::google::protobuf::uint64 >*
  27913. TestRepeatedScalarDifferentTagSizes::mutable_repeated_uint64() {
  27914. // @@protoc_insertion_point(field_mutable_list:protobuf_unittest.TestRepeatedScalarDifferentTagSizes.repeated_uint64)
  27915. return &repeated_uint64_;
  27916. }
  27917. // -------------------------------------------------------------------
  27918. // TestParsingMerge_RepeatedFieldsGenerator_Group1
  27919. // optional .protobuf_unittest.TestAllTypes field1 = 11;
  27920. inline bool TestParsingMerge_RepeatedFieldsGenerator_Group1::has_field1() const {
  27921. return (_has_bits_[0] & 0x00000001u) != 0;
  27922. }
  27923. inline void TestParsingMerge_RepeatedFieldsGenerator_Group1::set_has_field1() {
  27924. _has_bits_[0] |= 0x00000001u;
  27925. }
  27926. inline void TestParsingMerge_RepeatedFieldsGenerator_Group1::clear_has_field1() {
  27927. _has_bits_[0] &= ~0x00000001u;
  27928. }
  27929. inline void TestParsingMerge_RepeatedFieldsGenerator_Group1::clear_field1() {
  27930. if (field1_ != NULL) field1_->Clear();
  27931. clear_has_field1();
  27932. }
  27933. inline const ::protobuf_unittest::TestAllTypes& TestParsingMerge_RepeatedFieldsGenerator_Group1::_internal_field1() const {
  27934. return *field1_;
  27935. }
  27936. inline const ::protobuf_unittest::TestAllTypes& TestParsingMerge_RepeatedFieldsGenerator_Group1::field1() const {
  27937. const ::protobuf_unittest::TestAllTypes* p = field1_;
  27938. // @@protoc_insertion_point(field_get:protobuf_unittest.TestParsingMerge.RepeatedFieldsGenerator.Group1.field1)
  27939. return p != NULL ? *p : *reinterpret_cast<const ::protobuf_unittest::TestAllTypes*>(
  27940. &::protobuf_unittest::_TestAllTypes_default_instance_);
  27941. }
  27942. inline ::protobuf_unittest::TestAllTypes* TestParsingMerge_RepeatedFieldsGenerator_Group1::release_field1() {
  27943. // @@protoc_insertion_point(field_release:protobuf_unittest.TestParsingMerge.RepeatedFieldsGenerator.Group1.field1)
  27944. clear_has_field1();
  27945. ::protobuf_unittest::TestAllTypes* temp = field1_;
  27946. if (GetArenaNoVirtual() != NULL) {
  27947. temp = ::google::protobuf::internal::DuplicateIfNonNull(temp);
  27948. }
  27949. field1_ = NULL;
  27950. return temp;
  27951. }
  27952. inline ::protobuf_unittest::TestAllTypes* TestParsingMerge_RepeatedFieldsGenerator_Group1::unsafe_arena_release_field1() {
  27953. // @@protoc_insertion_point(field_unsafe_arena_release:protobuf_unittest.TestParsingMerge.RepeatedFieldsGenerator.Group1.field1)
  27954. clear_has_field1();
  27955. ::protobuf_unittest::TestAllTypes* temp = field1_;
  27956. field1_ = NULL;
  27957. return temp;
  27958. }
  27959. inline ::protobuf_unittest::TestAllTypes* TestParsingMerge_RepeatedFieldsGenerator_Group1::mutable_field1() {
  27960. set_has_field1();
  27961. if (field1_ == NULL) {
  27962. auto* p = CreateMaybeMessage<::protobuf_unittest::TestAllTypes>(GetArenaNoVirtual());
  27963. field1_ = p;
  27964. }
  27965. // @@protoc_insertion_point(field_mutable:protobuf_unittest.TestParsingMerge.RepeatedFieldsGenerator.Group1.field1)
  27966. return field1_;
  27967. }
  27968. inline void TestParsingMerge_RepeatedFieldsGenerator_Group1::set_allocated_field1(::protobuf_unittest::TestAllTypes* field1) {
  27969. ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
  27970. if (message_arena == NULL) {
  27971. delete field1_;
  27972. }
  27973. if (field1) {
  27974. ::google::protobuf::Arena* submessage_arena =
  27975. ::google::protobuf::Arena::GetArena(field1);
  27976. if (message_arena != submessage_arena) {
  27977. field1 = ::google::protobuf::internal::GetOwnedMessage(
  27978. message_arena, field1, submessage_arena);
  27979. }
  27980. set_has_field1();
  27981. } else {
  27982. clear_has_field1();
  27983. }
  27984. field1_ = field1;
  27985. // @@protoc_insertion_point(field_set_allocated:protobuf_unittest.TestParsingMerge.RepeatedFieldsGenerator.Group1.field1)
  27986. }
  27987. // -------------------------------------------------------------------
  27988. // TestParsingMerge_RepeatedFieldsGenerator_Group2
  27989. // optional .protobuf_unittest.TestAllTypes field1 = 21;
  27990. inline bool TestParsingMerge_RepeatedFieldsGenerator_Group2::has_field1() const {
  27991. return (_has_bits_[0] & 0x00000001u) != 0;
  27992. }
  27993. inline void TestParsingMerge_RepeatedFieldsGenerator_Group2::set_has_field1() {
  27994. _has_bits_[0] |= 0x00000001u;
  27995. }
  27996. inline void TestParsingMerge_RepeatedFieldsGenerator_Group2::clear_has_field1() {
  27997. _has_bits_[0] &= ~0x00000001u;
  27998. }
  27999. inline void TestParsingMerge_RepeatedFieldsGenerator_Group2::clear_field1() {
  28000. if (field1_ != NULL) field1_->Clear();
  28001. clear_has_field1();
  28002. }
  28003. inline const ::protobuf_unittest::TestAllTypes& TestParsingMerge_RepeatedFieldsGenerator_Group2::_internal_field1() const {
  28004. return *field1_;
  28005. }
  28006. inline const ::protobuf_unittest::TestAllTypes& TestParsingMerge_RepeatedFieldsGenerator_Group2::field1() const {
  28007. const ::protobuf_unittest::TestAllTypes* p = field1_;
  28008. // @@protoc_insertion_point(field_get:protobuf_unittest.TestParsingMerge.RepeatedFieldsGenerator.Group2.field1)
  28009. return p != NULL ? *p : *reinterpret_cast<const ::protobuf_unittest::TestAllTypes*>(
  28010. &::protobuf_unittest::_TestAllTypes_default_instance_);
  28011. }
  28012. inline ::protobuf_unittest::TestAllTypes* TestParsingMerge_RepeatedFieldsGenerator_Group2::release_field1() {
  28013. // @@protoc_insertion_point(field_release:protobuf_unittest.TestParsingMerge.RepeatedFieldsGenerator.Group2.field1)
  28014. clear_has_field1();
  28015. ::protobuf_unittest::TestAllTypes* temp = field1_;
  28016. if (GetArenaNoVirtual() != NULL) {
  28017. temp = ::google::protobuf::internal::DuplicateIfNonNull(temp);
  28018. }
  28019. field1_ = NULL;
  28020. return temp;
  28021. }
  28022. inline ::protobuf_unittest::TestAllTypes* TestParsingMerge_RepeatedFieldsGenerator_Group2::unsafe_arena_release_field1() {
  28023. // @@protoc_insertion_point(field_unsafe_arena_release:protobuf_unittest.TestParsingMerge.RepeatedFieldsGenerator.Group2.field1)
  28024. clear_has_field1();
  28025. ::protobuf_unittest::TestAllTypes* temp = field1_;
  28026. field1_ = NULL;
  28027. return temp;
  28028. }
  28029. inline ::protobuf_unittest::TestAllTypes* TestParsingMerge_RepeatedFieldsGenerator_Group2::mutable_field1() {
  28030. set_has_field1();
  28031. if (field1_ == NULL) {
  28032. auto* p = CreateMaybeMessage<::protobuf_unittest::TestAllTypes>(GetArenaNoVirtual());
  28033. field1_ = p;
  28034. }
  28035. // @@protoc_insertion_point(field_mutable:protobuf_unittest.TestParsingMerge.RepeatedFieldsGenerator.Group2.field1)
  28036. return field1_;
  28037. }
  28038. inline void TestParsingMerge_RepeatedFieldsGenerator_Group2::set_allocated_field1(::protobuf_unittest::TestAllTypes* field1) {
  28039. ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
  28040. if (message_arena == NULL) {
  28041. delete field1_;
  28042. }
  28043. if (field1) {
  28044. ::google::protobuf::Arena* submessage_arena =
  28045. ::google::protobuf::Arena::GetArena(field1);
  28046. if (message_arena != submessage_arena) {
  28047. field1 = ::google::protobuf::internal::GetOwnedMessage(
  28048. message_arena, field1, submessage_arena);
  28049. }
  28050. set_has_field1();
  28051. } else {
  28052. clear_has_field1();
  28053. }
  28054. field1_ = field1;
  28055. // @@protoc_insertion_point(field_set_allocated:protobuf_unittest.TestParsingMerge.RepeatedFieldsGenerator.Group2.field1)
  28056. }
  28057. // -------------------------------------------------------------------
  28058. // TestParsingMerge_RepeatedFieldsGenerator
  28059. // repeated .protobuf_unittest.TestAllTypes field1 = 1;
  28060. inline int TestParsingMerge_RepeatedFieldsGenerator::field1_size() const {
  28061. return field1_.size();
  28062. }
  28063. inline void TestParsingMerge_RepeatedFieldsGenerator::clear_field1() {
  28064. field1_.Clear();
  28065. }
  28066. inline ::protobuf_unittest::TestAllTypes* TestParsingMerge_RepeatedFieldsGenerator::mutable_field1(int index) {
  28067. // @@protoc_insertion_point(field_mutable:protobuf_unittest.TestParsingMerge.RepeatedFieldsGenerator.field1)
  28068. return field1_.Mutable(index);
  28069. }
  28070. inline ::google::protobuf::RepeatedPtrField< ::protobuf_unittest::TestAllTypes >*
  28071. TestParsingMerge_RepeatedFieldsGenerator::mutable_field1() {
  28072. // @@protoc_insertion_point(field_mutable_list:protobuf_unittest.TestParsingMerge.RepeatedFieldsGenerator.field1)
  28073. return &field1_;
  28074. }
  28075. inline const ::protobuf_unittest::TestAllTypes& TestParsingMerge_RepeatedFieldsGenerator::field1(int index) const {
  28076. // @@protoc_insertion_point(field_get:protobuf_unittest.TestParsingMerge.RepeatedFieldsGenerator.field1)
  28077. return field1_.Get(index);
  28078. }
  28079. inline ::protobuf_unittest::TestAllTypes* TestParsingMerge_RepeatedFieldsGenerator::add_field1() {
  28080. // @@protoc_insertion_point(field_add:protobuf_unittest.TestParsingMerge.RepeatedFieldsGenerator.field1)
  28081. return field1_.Add();
  28082. }
  28083. inline const ::google::protobuf::RepeatedPtrField< ::protobuf_unittest::TestAllTypes >&
  28084. TestParsingMerge_RepeatedFieldsGenerator::field1() const {
  28085. // @@protoc_insertion_point(field_list:protobuf_unittest.TestParsingMerge.RepeatedFieldsGenerator.field1)
  28086. return field1_;
  28087. }
  28088. // repeated .protobuf_unittest.TestAllTypes field2 = 2;
  28089. inline int TestParsingMerge_RepeatedFieldsGenerator::field2_size() const {
  28090. return field2_.size();
  28091. }
  28092. inline void TestParsingMerge_RepeatedFieldsGenerator::clear_field2() {
  28093. field2_.Clear();
  28094. }
  28095. inline ::protobuf_unittest::TestAllTypes* TestParsingMerge_RepeatedFieldsGenerator::mutable_field2(int index) {
  28096. // @@protoc_insertion_point(field_mutable:protobuf_unittest.TestParsingMerge.RepeatedFieldsGenerator.field2)
  28097. return field2_.Mutable(index);
  28098. }
  28099. inline ::google::protobuf::RepeatedPtrField< ::protobuf_unittest::TestAllTypes >*
  28100. TestParsingMerge_RepeatedFieldsGenerator::mutable_field2() {
  28101. // @@protoc_insertion_point(field_mutable_list:protobuf_unittest.TestParsingMerge.RepeatedFieldsGenerator.field2)
  28102. return &field2_;
  28103. }
  28104. inline const ::protobuf_unittest::TestAllTypes& TestParsingMerge_RepeatedFieldsGenerator::field2(int index) const {
  28105. // @@protoc_insertion_point(field_get:protobuf_unittest.TestParsingMerge.RepeatedFieldsGenerator.field2)
  28106. return field2_.Get(index);
  28107. }
  28108. inline ::protobuf_unittest::TestAllTypes* TestParsingMerge_RepeatedFieldsGenerator::add_field2() {
  28109. // @@protoc_insertion_point(field_add:protobuf_unittest.TestParsingMerge.RepeatedFieldsGenerator.field2)
  28110. return field2_.Add();
  28111. }
  28112. inline const ::google::protobuf::RepeatedPtrField< ::protobuf_unittest::TestAllTypes >&
  28113. TestParsingMerge_RepeatedFieldsGenerator::field2() const {
  28114. // @@protoc_insertion_point(field_list:protobuf_unittest.TestParsingMerge.RepeatedFieldsGenerator.field2)
  28115. return field2_;
  28116. }
  28117. // repeated .protobuf_unittest.TestAllTypes field3 = 3;
  28118. inline int TestParsingMerge_RepeatedFieldsGenerator::field3_size() const {
  28119. return field3_.size();
  28120. }
  28121. inline void TestParsingMerge_RepeatedFieldsGenerator::clear_field3() {
  28122. field3_.Clear();
  28123. }
  28124. inline ::protobuf_unittest::TestAllTypes* TestParsingMerge_RepeatedFieldsGenerator::mutable_field3(int index) {
  28125. // @@protoc_insertion_point(field_mutable:protobuf_unittest.TestParsingMerge.RepeatedFieldsGenerator.field3)
  28126. return field3_.Mutable(index);
  28127. }
  28128. inline ::google::protobuf::RepeatedPtrField< ::protobuf_unittest::TestAllTypes >*
  28129. TestParsingMerge_RepeatedFieldsGenerator::mutable_field3() {
  28130. // @@protoc_insertion_point(field_mutable_list:protobuf_unittest.TestParsingMerge.RepeatedFieldsGenerator.field3)
  28131. return &field3_;
  28132. }
  28133. inline const ::protobuf_unittest::TestAllTypes& TestParsingMerge_RepeatedFieldsGenerator::field3(int index) const {
  28134. // @@protoc_insertion_point(field_get:protobuf_unittest.TestParsingMerge.RepeatedFieldsGenerator.field3)
  28135. return field3_.Get(index);
  28136. }
  28137. inline ::protobuf_unittest::TestAllTypes* TestParsingMerge_RepeatedFieldsGenerator::add_field3() {
  28138. // @@protoc_insertion_point(field_add:protobuf_unittest.TestParsingMerge.RepeatedFieldsGenerator.field3)
  28139. return field3_.Add();
  28140. }
  28141. inline const ::google::protobuf::RepeatedPtrField< ::protobuf_unittest::TestAllTypes >&
  28142. TestParsingMerge_RepeatedFieldsGenerator::field3() const {
  28143. // @@protoc_insertion_point(field_list:protobuf_unittest.TestParsingMerge.RepeatedFieldsGenerator.field3)
  28144. return field3_;
  28145. }
  28146. // repeated group Group1 = 10 { ... };
  28147. inline int TestParsingMerge_RepeatedFieldsGenerator::group1_size() const {
  28148. return group1_.size();
  28149. }
  28150. inline void TestParsingMerge_RepeatedFieldsGenerator::clear_group1() {
  28151. group1_.Clear();
  28152. }
  28153. inline ::protobuf_unittest::TestParsingMerge_RepeatedFieldsGenerator_Group1* TestParsingMerge_RepeatedFieldsGenerator::mutable_group1(int index) {
  28154. // @@protoc_insertion_point(field_mutable:protobuf_unittest.TestParsingMerge.RepeatedFieldsGenerator.group1)
  28155. return group1_.Mutable(index);
  28156. }
  28157. inline ::google::protobuf::RepeatedPtrField< ::protobuf_unittest::TestParsingMerge_RepeatedFieldsGenerator_Group1 >*
  28158. TestParsingMerge_RepeatedFieldsGenerator::mutable_group1() {
  28159. // @@protoc_insertion_point(field_mutable_list:protobuf_unittest.TestParsingMerge.RepeatedFieldsGenerator.group1)
  28160. return &group1_;
  28161. }
  28162. inline const ::protobuf_unittest::TestParsingMerge_RepeatedFieldsGenerator_Group1& TestParsingMerge_RepeatedFieldsGenerator::group1(int index) const {
  28163. // @@protoc_insertion_point(field_get:protobuf_unittest.TestParsingMerge.RepeatedFieldsGenerator.group1)
  28164. return group1_.Get(index);
  28165. }
  28166. inline ::protobuf_unittest::TestParsingMerge_RepeatedFieldsGenerator_Group1* TestParsingMerge_RepeatedFieldsGenerator::add_group1() {
  28167. // @@protoc_insertion_point(field_add:protobuf_unittest.TestParsingMerge.RepeatedFieldsGenerator.group1)
  28168. return group1_.Add();
  28169. }
  28170. inline const ::google::protobuf::RepeatedPtrField< ::protobuf_unittest::TestParsingMerge_RepeatedFieldsGenerator_Group1 >&
  28171. TestParsingMerge_RepeatedFieldsGenerator::group1() const {
  28172. // @@protoc_insertion_point(field_list:protobuf_unittest.TestParsingMerge.RepeatedFieldsGenerator.group1)
  28173. return group1_;
  28174. }
  28175. // repeated group Group2 = 20 { ... };
  28176. inline int TestParsingMerge_RepeatedFieldsGenerator::group2_size() const {
  28177. return group2_.size();
  28178. }
  28179. inline void TestParsingMerge_RepeatedFieldsGenerator::clear_group2() {
  28180. group2_.Clear();
  28181. }
  28182. inline ::protobuf_unittest::TestParsingMerge_RepeatedFieldsGenerator_Group2* TestParsingMerge_RepeatedFieldsGenerator::mutable_group2(int index) {
  28183. // @@protoc_insertion_point(field_mutable:protobuf_unittest.TestParsingMerge.RepeatedFieldsGenerator.group2)
  28184. return group2_.Mutable(index);
  28185. }
  28186. inline ::google::protobuf::RepeatedPtrField< ::protobuf_unittest::TestParsingMerge_RepeatedFieldsGenerator_Group2 >*
  28187. TestParsingMerge_RepeatedFieldsGenerator::mutable_group2() {
  28188. // @@protoc_insertion_point(field_mutable_list:protobuf_unittest.TestParsingMerge.RepeatedFieldsGenerator.group2)
  28189. return &group2_;
  28190. }
  28191. inline const ::protobuf_unittest::TestParsingMerge_RepeatedFieldsGenerator_Group2& TestParsingMerge_RepeatedFieldsGenerator::group2(int index) const {
  28192. // @@protoc_insertion_point(field_get:protobuf_unittest.TestParsingMerge.RepeatedFieldsGenerator.group2)
  28193. return group2_.Get(index);
  28194. }
  28195. inline ::protobuf_unittest::TestParsingMerge_RepeatedFieldsGenerator_Group2* TestParsingMerge_RepeatedFieldsGenerator::add_group2() {
  28196. // @@protoc_insertion_point(field_add:protobuf_unittest.TestParsingMerge.RepeatedFieldsGenerator.group2)
  28197. return group2_.Add();
  28198. }
  28199. inline const ::google::protobuf::RepeatedPtrField< ::protobuf_unittest::TestParsingMerge_RepeatedFieldsGenerator_Group2 >&
  28200. TestParsingMerge_RepeatedFieldsGenerator::group2() const {
  28201. // @@protoc_insertion_point(field_list:protobuf_unittest.TestParsingMerge.RepeatedFieldsGenerator.group2)
  28202. return group2_;
  28203. }
  28204. // repeated .protobuf_unittest.TestAllTypes ext1 = 1000;
  28205. inline int TestParsingMerge_RepeatedFieldsGenerator::ext1_size() const {
  28206. return ext1_.size();
  28207. }
  28208. inline void TestParsingMerge_RepeatedFieldsGenerator::clear_ext1() {
  28209. ext1_.Clear();
  28210. }
  28211. inline ::protobuf_unittest::TestAllTypes* TestParsingMerge_RepeatedFieldsGenerator::mutable_ext1(int index) {
  28212. // @@protoc_insertion_point(field_mutable:protobuf_unittest.TestParsingMerge.RepeatedFieldsGenerator.ext1)
  28213. return ext1_.Mutable(index);
  28214. }
  28215. inline ::google::protobuf::RepeatedPtrField< ::protobuf_unittest::TestAllTypes >*
  28216. TestParsingMerge_RepeatedFieldsGenerator::mutable_ext1() {
  28217. // @@protoc_insertion_point(field_mutable_list:protobuf_unittest.TestParsingMerge.RepeatedFieldsGenerator.ext1)
  28218. return &ext1_;
  28219. }
  28220. inline const ::protobuf_unittest::TestAllTypes& TestParsingMerge_RepeatedFieldsGenerator::ext1(int index) const {
  28221. // @@protoc_insertion_point(field_get:protobuf_unittest.TestParsingMerge.RepeatedFieldsGenerator.ext1)
  28222. return ext1_.Get(index);
  28223. }
  28224. inline ::protobuf_unittest::TestAllTypes* TestParsingMerge_RepeatedFieldsGenerator::add_ext1() {
  28225. // @@protoc_insertion_point(field_add:protobuf_unittest.TestParsingMerge.RepeatedFieldsGenerator.ext1)
  28226. return ext1_.Add();
  28227. }
  28228. inline const ::google::protobuf::RepeatedPtrField< ::protobuf_unittest::TestAllTypes >&
  28229. TestParsingMerge_RepeatedFieldsGenerator::ext1() const {
  28230. // @@protoc_insertion_point(field_list:protobuf_unittest.TestParsingMerge.RepeatedFieldsGenerator.ext1)
  28231. return ext1_;
  28232. }
  28233. // repeated .protobuf_unittest.TestAllTypes ext2 = 1001;
  28234. inline int TestParsingMerge_RepeatedFieldsGenerator::ext2_size() const {
  28235. return ext2_.size();
  28236. }
  28237. inline void TestParsingMerge_RepeatedFieldsGenerator::clear_ext2() {
  28238. ext2_.Clear();
  28239. }
  28240. inline ::protobuf_unittest::TestAllTypes* TestParsingMerge_RepeatedFieldsGenerator::mutable_ext2(int index) {
  28241. // @@protoc_insertion_point(field_mutable:protobuf_unittest.TestParsingMerge.RepeatedFieldsGenerator.ext2)
  28242. return ext2_.Mutable(index);
  28243. }
  28244. inline ::google::protobuf::RepeatedPtrField< ::protobuf_unittest::TestAllTypes >*
  28245. TestParsingMerge_RepeatedFieldsGenerator::mutable_ext2() {
  28246. // @@protoc_insertion_point(field_mutable_list:protobuf_unittest.TestParsingMerge.RepeatedFieldsGenerator.ext2)
  28247. return &ext2_;
  28248. }
  28249. inline const ::protobuf_unittest::TestAllTypes& TestParsingMerge_RepeatedFieldsGenerator::ext2(int index) const {
  28250. // @@protoc_insertion_point(field_get:protobuf_unittest.TestParsingMerge.RepeatedFieldsGenerator.ext2)
  28251. return ext2_.Get(index);
  28252. }
  28253. inline ::protobuf_unittest::TestAllTypes* TestParsingMerge_RepeatedFieldsGenerator::add_ext2() {
  28254. // @@protoc_insertion_point(field_add:protobuf_unittest.TestParsingMerge.RepeatedFieldsGenerator.ext2)
  28255. return ext2_.Add();
  28256. }
  28257. inline const ::google::protobuf::RepeatedPtrField< ::protobuf_unittest::TestAllTypes >&
  28258. TestParsingMerge_RepeatedFieldsGenerator::ext2() const {
  28259. // @@protoc_insertion_point(field_list:protobuf_unittest.TestParsingMerge.RepeatedFieldsGenerator.ext2)
  28260. return ext2_;
  28261. }
  28262. // -------------------------------------------------------------------
  28263. // TestParsingMerge_OptionalGroup
  28264. // optional .protobuf_unittest.TestAllTypes optional_group_all_types = 11;
  28265. inline bool TestParsingMerge_OptionalGroup::has_optional_group_all_types() const {
  28266. return (_has_bits_[0] & 0x00000001u) != 0;
  28267. }
  28268. inline void TestParsingMerge_OptionalGroup::set_has_optional_group_all_types() {
  28269. _has_bits_[0] |= 0x00000001u;
  28270. }
  28271. inline void TestParsingMerge_OptionalGroup::clear_has_optional_group_all_types() {
  28272. _has_bits_[0] &= ~0x00000001u;
  28273. }
  28274. inline void TestParsingMerge_OptionalGroup::clear_optional_group_all_types() {
  28275. if (optional_group_all_types_ != NULL) optional_group_all_types_->Clear();
  28276. clear_has_optional_group_all_types();
  28277. }
  28278. inline const ::protobuf_unittest::TestAllTypes& TestParsingMerge_OptionalGroup::_internal_optional_group_all_types() const {
  28279. return *optional_group_all_types_;
  28280. }
  28281. inline const ::protobuf_unittest::TestAllTypes& TestParsingMerge_OptionalGroup::optional_group_all_types() const {
  28282. const ::protobuf_unittest::TestAllTypes* p = optional_group_all_types_;
  28283. // @@protoc_insertion_point(field_get:protobuf_unittest.TestParsingMerge.OptionalGroup.optional_group_all_types)
  28284. return p != NULL ? *p : *reinterpret_cast<const ::protobuf_unittest::TestAllTypes*>(
  28285. &::protobuf_unittest::_TestAllTypes_default_instance_);
  28286. }
  28287. inline ::protobuf_unittest::TestAllTypes* TestParsingMerge_OptionalGroup::release_optional_group_all_types() {
  28288. // @@protoc_insertion_point(field_release:protobuf_unittest.TestParsingMerge.OptionalGroup.optional_group_all_types)
  28289. clear_has_optional_group_all_types();
  28290. ::protobuf_unittest::TestAllTypes* temp = optional_group_all_types_;
  28291. if (GetArenaNoVirtual() != NULL) {
  28292. temp = ::google::protobuf::internal::DuplicateIfNonNull(temp);
  28293. }
  28294. optional_group_all_types_ = NULL;
  28295. return temp;
  28296. }
  28297. inline ::protobuf_unittest::TestAllTypes* TestParsingMerge_OptionalGroup::unsafe_arena_release_optional_group_all_types() {
  28298. // @@protoc_insertion_point(field_unsafe_arena_release:protobuf_unittest.TestParsingMerge.OptionalGroup.optional_group_all_types)
  28299. clear_has_optional_group_all_types();
  28300. ::protobuf_unittest::TestAllTypes* temp = optional_group_all_types_;
  28301. optional_group_all_types_ = NULL;
  28302. return temp;
  28303. }
  28304. inline ::protobuf_unittest::TestAllTypes* TestParsingMerge_OptionalGroup::mutable_optional_group_all_types() {
  28305. set_has_optional_group_all_types();
  28306. if (optional_group_all_types_ == NULL) {
  28307. auto* p = CreateMaybeMessage<::protobuf_unittest::TestAllTypes>(GetArenaNoVirtual());
  28308. optional_group_all_types_ = p;
  28309. }
  28310. // @@protoc_insertion_point(field_mutable:protobuf_unittest.TestParsingMerge.OptionalGroup.optional_group_all_types)
  28311. return optional_group_all_types_;
  28312. }
  28313. inline void TestParsingMerge_OptionalGroup::set_allocated_optional_group_all_types(::protobuf_unittest::TestAllTypes* optional_group_all_types) {
  28314. ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
  28315. if (message_arena == NULL) {
  28316. delete optional_group_all_types_;
  28317. }
  28318. if (optional_group_all_types) {
  28319. ::google::protobuf::Arena* submessage_arena =
  28320. ::google::protobuf::Arena::GetArena(optional_group_all_types);
  28321. if (message_arena != submessage_arena) {
  28322. optional_group_all_types = ::google::protobuf::internal::GetOwnedMessage(
  28323. message_arena, optional_group_all_types, submessage_arena);
  28324. }
  28325. set_has_optional_group_all_types();
  28326. } else {
  28327. clear_has_optional_group_all_types();
  28328. }
  28329. optional_group_all_types_ = optional_group_all_types;
  28330. // @@protoc_insertion_point(field_set_allocated:protobuf_unittest.TestParsingMerge.OptionalGroup.optional_group_all_types)
  28331. }
  28332. // -------------------------------------------------------------------
  28333. // TestParsingMerge_RepeatedGroup
  28334. // optional .protobuf_unittest.TestAllTypes repeated_group_all_types = 21;
  28335. inline bool TestParsingMerge_RepeatedGroup::has_repeated_group_all_types() const {
  28336. return (_has_bits_[0] & 0x00000001u) != 0;
  28337. }
  28338. inline void TestParsingMerge_RepeatedGroup::set_has_repeated_group_all_types() {
  28339. _has_bits_[0] |= 0x00000001u;
  28340. }
  28341. inline void TestParsingMerge_RepeatedGroup::clear_has_repeated_group_all_types() {
  28342. _has_bits_[0] &= ~0x00000001u;
  28343. }
  28344. inline void TestParsingMerge_RepeatedGroup::clear_repeated_group_all_types() {
  28345. if (repeated_group_all_types_ != NULL) repeated_group_all_types_->Clear();
  28346. clear_has_repeated_group_all_types();
  28347. }
  28348. inline const ::protobuf_unittest::TestAllTypes& TestParsingMerge_RepeatedGroup::_internal_repeated_group_all_types() const {
  28349. return *repeated_group_all_types_;
  28350. }
  28351. inline const ::protobuf_unittest::TestAllTypes& TestParsingMerge_RepeatedGroup::repeated_group_all_types() const {
  28352. const ::protobuf_unittest::TestAllTypes* p = repeated_group_all_types_;
  28353. // @@protoc_insertion_point(field_get:protobuf_unittest.TestParsingMerge.RepeatedGroup.repeated_group_all_types)
  28354. return p != NULL ? *p : *reinterpret_cast<const ::protobuf_unittest::TestAllTypes*>(
  28355. &::protobuf_unittest::_TestAllTypes_default_instance_);
  28356. }
  28357. inline ::protobuf_unittest::TestAllTypes* TestParsingMerge_RepeatedGroup::release_repeated_group_all_types() {
  28358. // @@protoc_insertion_point(field_release:protobuf_unittest.TestParsingMerge.RepeatedGroup.repeated_group_all_types)
  28359. clear_has_repeated_group_all_types();
  28360. ::protobuf_unittest::TestAllTypes* temp = repeated_group_all_types_;
  28361. if (GetArenaNoVirtual() != NULL) {
  28362. temp = ::google::protobuf::internal::DuplicateIfNonNull(temp);
  28363. }
  28364. repeated_group_all_types_ = NULL;
  28365. return temp;
  28366. }
  28367. inline ::protobuf_unittest::TestAllTypes* TestParsingMerge_RepeatedGroup::unsafe_arena_release_repeated_group_all_types() {
  28368. // @@protoc_insertion_point(field_unsafe_arena_release:protobuf_unittest.TestParsingMerge.RepeatedGroup.repeated_group_all_types)
  28369. clear_has_repeated_group_all_types();
  28370. ::protobuf_unittest::TestAllTypes* temp = repeated_group_all_types_;
  28371. repeated_group_all_types_ = NULL;
  28372. return temp;
  28373. }
  28374. inline ::protobuf_unittest::TestAllTypes* TestParsingMerge_RepeatedGroup::mutable_repeated_group_all_types() {
  28375. set_has_repeated_group_all_types();
  28376. if (repeated_group_all_types_ == NULL) {
  28377. auto* p = CreateMaybeMessage<::protobuf_unittest::TestAllTypes>(GetArenaNoVirtual());
  28378. repeated_group_all_types_ = p;
  28379. }
  28380. // @@protoc_insertion_point(field_mutable:protobuf_unittest.TestParsingMerge.RepeatedGroup.repeated_group_all_types)
  28381. return repeated_group_all_types_;
  28382. }
  28383. inline void TestParsingMerge_RepeatedGroup::set_allocated_repeated_group_all_types(::protobuf_unittest::TestAllTypes* repeated_group_all_types) {
  28384. ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
  28385. if (message_arena == NULL) {
  28386. delete repeated_group_all_types_;
  28387. }
  28388. if (repeated_group_all_types) {
  28389. ::google::protobuf::Arena* submessage_arena =
  28390. ::google::protobuf::Arena::GetArena(repeated_group_all_types);
  28391. if (message_arena != submessage_arena) {
  28392. repeated_group_all_types = ::google::protobuf::internal::GetOwnedMessage(
  28393. message_arena, repeated_group_all_types, submessage_arena);
  28394. }
  28395. set_has_repeated_group_all_types();
  28396. } else {
  28397. clear_has_repeated_group_all_types();
  28398. }
  28399. repeated_group_all_types_ = repeated_group_all_types;
  28400. // @@protoc_insertion_point(field_set_allocated:protobuf_unittest.TestParsingMerge.RepeatedGroup.repeated_group_all_types)
  28401. }
  28402. // -------------------------------------------------------------------
  28403. // TestParsingMerge
  28404. // required .protobuf_unittest.TestAllTypes required_all_types = 1;
  28405. inline bool TestParsingMerge::has_required_all_types() const {
  28406. return (_has_bits_[0] & 0x00000001u) != 0;
  28407. }
  28408. inline void TestParsingMerge::set_has_required_all_types() {
  28409. _has_bits_[0] |= 0x00000001u;
  28410. }
  28411. inline void TestParsingMerge::clear_has_required_all_types() {
  28412. _has_bits_[0] &= ~0x00000001u;
  28413. }
  28414. inline void TestParsingMerge::clear_required_all_types() {
  28415. if (required_all_types_ != NULL) required_all_types_->Clear();
  28416. clear_has_required_all_types();
  28417. }
  28418. inline const ::protobuf_unittest::TestAllTypes& TestParsingMerge::_internal_required_all_types() const {
  28419. return *required_all_types_;
  28420. }
  28421. inline const ::protobuf_unittest::TestAllTypes& TestParsingMerge::required_all_types() const {
  28422. const ::protobuf_unittest::TestAllTypes* p = required_all_types_;
  28423. // @@protoc_insertion_point(field_get:protobuf_unittest.TestParsingMerge.required_all_types)
  28424. return p != NULL ? *p : *reinterpret_cast<const ::protobuf_unittest::TestAllTypes*>(
  28425. &::protobuf_unittest::_TestAllTypes_default_instance_);
  28426. }
  28427. inline ::protobuf_unittest::TestAllTypes* TestParsingMerge::release_required_all_types() {
  28428. // @@protoc_insertion_point(field_release:protobuf_unittest.TestParsingMerge.required_all_types)
  28429. clear_has_required_all_types();
  28430. ::protobuf_unittest::TestAllTypes* temp = required_all_types_;
  28431. if (GetArenaNoVirtual() != NULL) {
  28432. temp = ::google::protobuf::internal::DuplicateIfNonNull(temp);
  28433. }
  28434. required_all_types_ = NULL;
  28435. return temp;
  28436. }
  28437. inline ::protobuf_unittest::TestAllTypes* TestParsingMerge::unsafe_arena_release_required_all_types() {
  28438. // @@protoc_insertion_point(field_unsafe_arena_release:protobuf_unittest.TestParsingMerge.required_all_types)
  28439. clear_has_required_all_types();
  28440. ::protobuf_unittest::TestAllTypes* temp = required_all_types_;
  28441. required_all_types_ = NULL;
  28442. return temp;
  28443. }
  28444. inline ::protobuf_unittest::TestAllTypes* TestParsingMerge::mutable_required_all_types() {
  28445. set_has_required_all_types();
  28446. if (required_all_types_ == NULL) {
  28447. auto* p = CreateMaybeMessage<::protobuf_unittest::TestAllTypes>(GetArenaNoVirtual());
  28448. required_all_types_ = p;
  28449. }
  28450. // @@protoc_insertion_point(field_mutable:protobuf_unittest.TestParsingMerge.required_all_types)
  28451. return required_all_types_;
  28452. }
  28453. inline void TestParsingMerge::set_allocated_required_all_types(::protobuf_unittest::TestAllTypes* required_all_types) {
  28454. ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
  28455. if (message_arena == NULL) {
  28456. delete required_all_types_;
  28457. }
  28458. if (required_all_types) {
  28459. ::google::protobuf::Arena* submessage_arena =
  28460. ::google::protobuf::Arena::GetArena(required_all_types);
  28461. if (message_arena != submessage_arena) {
  28462. required_all_types = ::google::protobuf::internal::GetOwnedMessage(
  28463. message_arena, required_all_types, submessage_arena);
  28464. }
  28465. set_has_required_all_types();
  28466. } else {
  28467. clear_has_required_all_types();
  28468. }
  28469. required_all_types_ = required_all_types;
  28470. // @@protoc_insertion_point(field_set_allocated:protobuf_unittest.TestParsingMerge.required_all_types)
  28471. }
  28472. // optional .protobuf_unittest.TestAllTypes optional_all_types = 2;
  28473. inline bool TestParsingMerge::has_optional_all_types() const {
  28474. return (_has_bits_[0] & 0x00000002u) != 0;
  28475. }
  28476. inline void TestParsingMerge::set_has_optional_all_types() {
  28477. _has_bits_[0] |= 0x00000002u;
  28478. }
  28479. inline void TestParsingMerge::clear_has_optional_all_types() {
  28480. _has_bits_[0] &= ~0x00000002u;
  28481. }
  28482. inline void TestParsingMerge::clear_optional_all_types() {
  28483. if (optional_all_types_ != NULL) optional_all_types_->Clear();
  28484. clear_has_optional_all_types();
  28485. }
  28486. inline const ::protobuf_unittest::TestAllTypes& TestParsingMerge::_internal_optional_all_types() const {
  28487. return *optional_all_types_;
  28488. }
  28489. inline const ::protobuf_unittest::TestAllTypes& TestParsingMerge::optional_all_types() const {
  28490. const ::protobuf_unittest::TestAllTypes* p = optional_all_types_;
  28491. // @@protoc_insertion_point(field_get:protobuf_unittest.TestParsingMerge.optional_all_types)
  28492. return p != NULL ? *p : *reinterpret_cast<const ::protobuf_unittest::TestAllTypes*>(
  28493. &::protobuf_unittest::_TestAllTypes_default_instance_);
  28494. }
  28495. inline ::protobuf_unittest::TestAllTypes* TestParsingMerge::release_optional_all_types() {
  28496. // @@protoc_insertion_point(field_release:protobuf_unittest.TestParsingMerge.optional_all_types)
  28497. clear_has_optional_all_types();
  28498. ::protobuf_unittest::TestAllTypes* temp = optional_all_types_;
  28499. if (GetArenaNoVirtual() != NULL) {
  28500. temp = ::google::protobuf::internal::DuplicateIfNonNull(temp);
  28501. }
  28502. optional_all_types_ = NULL;
  28503. return temp;
  28504. }
  28505. inline ::protobuf_unittest::TestAllTypes* TestParsingMerge::unsafe_arena_release_optional_all_types() {
  28506. // @@protoc_insertion_point(field_unsafe_arena_release:protobuf_unittest.TestParsingMerge.optional_all_types)
  28507. clear_has_optional_all_types();
  28508. ::protobuf_unittest::TestAllTypes* temp = optional_all_types_;
  28509. optional_all_types_ = NULL;
  28510. return temp;
  28511. }
  28512. inline ::protobuf_unittest::TestAllTypes* TestParsingMerge::mutable_optional_all_types() {
  28513. set_has_optional_all_types();
  28514. if (optional_all_types_ == NULL) {
  28515. auto* p = CreateMaybeMessage<::protobuf_unittest::TestAllTypes>(GetArenaNoVirtual());
  28516. optional_all_types_ = p;
  28517. }
  28518. // @@protoc_insertion_point(field_mutable:protobuf_unittest.TestParsingMerge.optional_all_types)
  28519. return optional_all_types_;
  28520. }
  28521. inline void TestParsingMerge::set_allocated_optional_all_types(::protobuf_unittest::TestAllTypes* optional_all_types) {
  28522. ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
  28523. if (message_arena == NULL) {
  28524. delete optional_all_types_;
  28525. }
  28526. if (optional_all_types) {
  28527. ::google::protobuf::Arena* submessage_arena =
  28528. ::google::protobuf::Arena::GetArena(optional_all_types);
  28529. if (message_arena != submessage_arena) {
  28530. optional_all_types = ::google::protobuf::internal::GetOwnedMessage(
  28531. message_arena, optional_all_types, submessage_arena);
  28532. }
  28533. set_has_optional_all_types();
  28534. } else {
  28535. clear_has_optional_all_types();
  28536. }
  28537. optional_all_types_ = optional_all_types;
  28538. // @@protoc_insertion_point(field_set_allocated:protobuf_unittest.TestParsingMerge.optional_all_types)
  28539. }
  28540. // repeated .protobuf_unittest.TestAllTypes repeated_all_types = 3;
  28541. inline int TestParsingMerge::repeated_all_types_size() const {
  28542. return repeated_all_types_.size();
  28543. }
  28544. inline void TestParsingMerge::clear_repeated_all_types() {
  28545. repeated_all_types_.Clear();
  28546. }
  28547. inline ::protobuf_unittest::TestAllTypes* TestParsingMerge::mutable_repeated_all_types(int index) {
  28548. // @@protoc_insertion_point(field_mutable:protobuf_unittest.TestParsingMerge.repeated_all_types)
  28549. return repeated_all_types_.Mutable(index);
  28550. }
  28551. inline ::google::protobuf::RepeatedPtrField< ::protobuf_unittest::TestAllTypes >*
  28552. TestParsingMerge::mutable_repeated_all_types() {
  28553. // @@protoc_insertion_point(field_mutable_list:protobuf_unittest.TestParsingMerge.repeated_all_types)
  28554. return &repeated_all_types_;
  28555. }
  28556. inline const ::protobuf_unittest::TestAllTypes& TestParsingMerge::repeated_all_types(int index) const {
  28557. // @@protoc_insertion_point(field_get:protobuf_unittest.TestParsingMerge.repeated_all_types)
  28558. return repeated_all_types_.Get(index);
  28559. }
  28560. inline ::protobuf_unittest::TestAllTypes* TestParsingMerge::add_repeated_all_types() {
  28561. // @@protoc_insertion_point(field_add:protobuf_unittest.TestParsingMerge.repeated_all_types)
  28562. return repeated_all_types_.Add();
  28563. }
  28564. inline const ::google::protobuf::RepeatedPtrField< ::protobuf_unittest::TestAllTypes >&
  28565. TestParsingMerge::repeated_all_types() const {
  28566. // @@protoc_insertion_point(field_list:protobuf_unittest.TestParsingMerge.repeated_all_types)
  28567. return repeated_all_types_;
  28568. }
  28569. // optional group OptionalGroup = 10 { ... };
  28570. inline bool TestParsingMerge::has_optionalgroup() const {
  28571. return (_has_bits_[0] & 0x00000004u) != 0;
  28572. }
  28573. inline void TestParsingMerge::set_has_optionalgroup() {
  28574. _has_bits_[0] |= 0x00000004u;
  28575. }
  28576. inline void TestParsingMerge::clear_has_optionalgroup() {
  28577. _has_bits_[0] &= ~0x00000004u;
  28578. }
  28579. inline void TestParsingMerge::clear_optionalgroup() {
  28580. if (optionalgroup_ != NULL) optionalgroup_->Clear();
  28581. clear_has_optionalgroup();
  28582. }
  28583. inline const ::protobuf_unittest::TestParsingMerge_OptionalGroup& TestParsingMerge::_internal_optionalgroup() const {
  28584. return *optionalgroup_;
  28585. }
  28586. inline const ::protobuf_unittest::TestParsingMerge_OptionalGroup& TestParsingMerge::optionalgroup() const {
  28587. const ::protobuf_unittest::TestParsingMerge_OptionalGroup* p = optionalgroup_;
  28588. // @@protoc_insertion_point(field_get:protobuf_unittest.TestParsingMerge.optionalgroup)
  28589. return p != NULL ? *p : *reinterpret_cast<const ::protobuf_unittest::TestParsingMerge_OptionalGroup*>(
  28590. &::protobuf_unittest::_TestParsingMerge_OptionalGroup_default_instance_);
  28591. }
  28592. inline ::protobuf_unittest::TestParsingMerge_OptionalGroup* TestParsingMerge::release_optionalgroup() {
  28593. // @@protoc_insertion_point(field_release:protobuf_unittest.TestParsingMerge.optionalgroup)
  28594. clear_has_optionalgroup();
  28595. ::protobuf_unittest::TestParsingMerge_OptionalGroup* temp = optionalgroup_;
  28596. if (GetArenaNoVirtual() != NULL) {
  28597. temp = ::google::protobuf::internal::DuplicateIfNonNull(temp);
  28598. }
  28599. optionalgroup_ = NULL;
  28600. return temp;
  28601. }
  28602. inline ::protobuf_unittest::TestParsingMerge_OptionalGroup* TestParsingMerge::unsafe_arena_release_optionalgroup() {
  28603. // @@protoc_insertion_point(field_unsafe_arena_release:protobuf_unittest.TestParsingMerge.optionalgroup)
  28604. clear_has_optionalgroup();
  28605. ::protobuf_unittest::TestParsingMerge_OptionalGroup* temp = optionalgroup_;
  28606. optionalgroup_ = NULL;
  28607. return temp;
  28608. }
  28609. inline ::protobuf_unittest::TestParsingMerge_OptionalGroup* TestParsingMerge::mutable_optionalgroup() {
  28610. set_has_optionalgroup();
  28611. if (optionalgroup_ == NULL) {
  28612. auto* p = CreateMaybeMessage<::protobuf_unittest::TestParsingMerge_OptionalGroup>(GetArenaNoVirtual());
  28613. optionalgroup_ = p;
  28614. }
  28615. // @@protoc_insertion_point(field_mutable:protobuf_unittest.TestParsingMerge.optionalgroup)
  28616. return optionalgroup_;
  28617. }
  28618. inline void TestParsingMerge::set_allocated_optionalgroup(::protobuf_unittest::TestParsingMerge_OptionalGroup* optionalgroup) {
  28619. ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
  28620. if (message_arena == NULL) {
  28621. delete optionalgroup_;
  28622. }
  28623. if (optionalgroup) {
  28624. ::google::protobuf::Arena* submessage_arena =
  28625. ::google::protobuf::Arena::GetArena(optionalgroup);
  28626. if (message_arena != submessage_arena) {
  28627. optionalgroup = ::google::protobuf::internal::GetOwnedMessage(
  28628. message_arena, optionalgroup, submessage_arena);
  28629. }
  28630. set_has_optionalgroup();
  28631. } else {
  28632. clear_has_optionalgroup();
  28633. }
  28634. optionalgroup_ = optionalgroup;
  28635. // @@protoc_insertion_point(field_set_allocated:protobuf_unittest.TestParsingMerge.optionalgroup)
  28636. }
  28637. // repeated group RepeatedGroup = 20 { ... };
  28638. inline int TestParsingMerge::repeatedgroup_size() const {
  28639. return repeatedgroup_.size();
  28640. }
  28641. inline void TestParsingMerge::clear_repeatedgroup() {
  28642. repeatedgroup_.Clear();
  28643. }
  28644. inline ::protobuf_unittest::TestParsingMerge_RepeatedGroup* TestParsingMerge::mutable_repeatedgroup(int index) {
  28645. // @@protoc_insertion_point(field_mutable:protobuf_unittest.TestParsingMerge.repeatedgroup)
  28646. return repeatedgroup_.Mutable(index);
  28647. }
  28648. inline ::google::protobuf::RepeatedPtrField< ::protobuf_unittest::TestParsingMerge_RepeatedGroup >*
  28649. TestParsingMerge::mutable_repeatedgroup() {
  28650. // @@protoc_insertion_point(field_mutable_list:protobuf_unittest.TestParsingMerge.repeatedgroup)
  28651. return &repeatedgroup_;
  28652. }
  28653. inline const ::protobuf_unittest::TestParsingMerge_RepeatedGroup& TestParsingMerge::repeatedgroup(int index) const {
  28654. // @@protoc_insertion_point(field_get:protobuf_unittest.TestParsingMerge.repeatedgroup)
  28655. return repeatedgroup_.Get(index);
  28656. }
  28657. inline ::protobuf_unittest::TestParsingMerge_RepeatedGroup* TestParsingMerge::add_repeatedgroup() {
  28658. // @@protoc_insertion_point(field_add:protobuf_unittest.TestParsingMerge.repeatedgroup)
  28659. return repeatedgroup_.Add();
  28660. }
  28661. inline const ::google::protobuf::RepeatedPtrField< ::protobuf_unittest::TestParsingMerge_RepeatedGroup >&
  28662. TestParsingMerge::repeatedgroup() const {
  28663. // @@protoc_insertion_point(field_list:protobuf_unittest.TestParsingMerge.repeatedgroup)
  28664. return repeatedgroup_;
  28665. }
  28666. // -------------------------------------------------------------------
  28667. // TestCommentInjectionMessage
  28668. // optional string a = 1 [default = "*/ <- Neither should this."];
  28669. inline bool TestCommentInjectionMessage::has_a() const {
  28670. return (_has_bits_[0] & 0x00000001u) != 0;
  28671. }
  28672. inline void TestCommentInjectionMessage::set_has_a() {
  28673. _has_bits_[0] |= 0x00000001u;
  28674. }
  28675. inline void TestCommentInjectionMessage::clear_has_a() {
  28676. _has_bits_[0] &= ~0x00000001u;
  28677. }
  28678. inline void TestCommentInjectionMessage::clear_a() {
  28679. a_.ClearToDefault(&::protobuf_unittest::TestCommentInjectionMessage::_i_give_permission_to_break_this_code_default_a_.get(), GetArenaNoVirtual());
  28680. clear_has_a();
  28681. }
  28682. inline const ::std::string& TestCommentInjectionMessage::a() const {
  28683. // @@protoc_insertion_point(field_get:protobuf_unittest.TestCommentInjectionMessage.a)
  28684. return a_.Get();
  28685. }
  28686. inline void TestCommentInjectionMessage::set_a(const ::std::string& value) {
  28687. set_has_a();
  28688. a_.Set(&::protobuf_unittest::TestCommentInjectionMessage::_i_give_permission_to_break_this_code_default_a_.get(), value, GetArenaNoVirtual());
  28689. // @@protoc_insertion_point(field_set:protobuf_unittest.TestCommentInjectionMessage.a)
  28690. }
  28691. #if LANG_CXX11
  28692. inline void TestCommentInjectionMessage::set_a(::std::string&& value) {
  28693. set_has_a();
  28694. a_.Set(
  28695. &::protobuf_unittest::TestCommentInjectionMessage::_i_give_permission_to_break_this_code_default_a_.get(), ::std::move(value), GetArenaNoVirtual());
  28696. // @@protoc_insertion_point(field_set_rvalue:protobuf_unittest.TestCommentInjectionMessage.a)
  28697. }
  28698. #endif
  28699. inline void TestCommentInjectionMessage::set_a(const char* value) {
  28700. GOOGLE_DCHECK(value != NULL);
  28701. set_has_a();
  28702. a_.Set(&::protobuf_unittest::TestCommentInjectionMessage::_i_give_permission_to_break_this_code_default_a_.get(), ::std::string(value),
  28703. GetArenaNoVirtual());
  28704. // @@protoc_insertion_point(field_set_char:protobuf_unittest.TestCommentInjectionMessage.a)
  28705. }
  28706. inline void TestCommentInjectionMessage::set_a(const char* value,
  28707. size_t size) {
  28708. set_has_a();
  28709. a_.Set(&::protobuf_unittest::TestCommentInjectionMessage::_i_give_permission_to_break_this_code_default_a_.get(), ::std::string(
  28710. reinterpret_cast<const char*>(value), size), GetArenaNoVirtual());
  28711. // @@protoc_insertion_point(field_set_pointer:protobuf_unittest.TestCommentInjectionMessage.a)
  28712. }
  28713. inline ::std::string* TestCommentInjectionMessage::mutable_a() {
  28714. set_has_a();
  28715. // @@protoc_insertion_point(field_mutable:protobuf_unittest.TestCommentInjectionMessage.a)
  28716. return a_.Mutable(&::protobuf_unittest::TestCommentInjectionMessage::_i_give_permission_to_break_this_code_default_a_.get(), GetArenaNoVirtual());
  28717. }
  28718. inline ::std::string* TestCommentInjectionMessage::release_a() {
  28719. // @@protoc_insertion_point(field_release:protobuf_unittest.TestCommentInjectionMessage.a)
  28720. if (!has_a()) {
  28721. return NULL;
  28722. }
  28723. clear_has_a();
  28724. return a_.ReleaseNonDefault(&::protobuf_unittest::TestCommentInjectionMessage::_i_give_permission_to_break_this_code_default_a_.get(), GetArenaNoVirtual());
  28725. }
  28726. inline void TestCommentInjectionMessage::set_allocated_a(::std::string* a) {
  28727. if (a != NULL) {
  28728. set_has_a();
  28729. } else {
  28730. clear_has_a();
  28731. }
  28732. a_.SetAllocated(&::protobuf_unittest::TestCommentInjectionMessage::_i_give_permission_to_break_this_code_default_a_.get(), a,
  28733. GetArenaNoVirtual());
  28734. // @@protoc_insertion_point(field_set_allocated:protobuf_unittest.TestCommentInjectionMessage.a)
  28735. }
  28736. inline ::std::string* TestCommentInjectionMessage::unsafe_arena_release_a() {
  28737. // @@protoc_insertion_point(field_unsafe_arena_release:protobuf_unittest.TestCommentInjectionMessage.a)
  28738. GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
  28739. clear_has_a();
  28740. return a_.UnsafeArenaRelease(&::protobuf_unittest::TestCommentInjectionMessage::_i_give_permission_to_break_this_code_default_a_.get(),
  28741. GetArenaNoVirtual());
  28742. }
  28743. inline void TestCommentInjectionMessage::unsafe_arena_set_allocated_a(
  28744. ::std::string* a) {
  28745. GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
  28746. if (a != NULL) {
  28747. set_has_a();
  28748. } else {
  28749. clear_has_a();
  28750. }
  28751. a_.UnsafeArenaSetAllocated(&::protobuf_unittest::TestCommentInjectionMessage::_i_give_permission_to_break_this_code_default_a_.get(),
  28752. a, GetArenaNoVirtual());
  28753. // @@protoc_insertion_point(field_unsafe_arena_set_allocated:protobuf_unittest.TestCommentInjectionMessage.a)
  28754. }
  28755. // -------------------------------------------------------------------
  28756. // FooRequest
  28757. // -------------------------------------------------------------------
  28758. // FooResponse
  28759. // -------------------------------------------------------------------
  28760. // FooClientMessage
  28761. // -------------------------------------------------------------------
  28762. // FooServerMessage
  28763. // -------------------------------------------------------------------
  28764. // BarRequest
  28765. // -------------------------------------------------------------------
  28766. // BarResponse
  28767. // -------------------------------------------------------------------
  28768. // TestJsonName
  28769. // optional int32 field_name1 = 1;
  28770. inline bool TestJsonName::has_field_name1() const {
  28771. return (_has_bits_[0] & 0x00000001u) != 0;
  28772. }
  28773. inline void TestJsonName::set_has_field_name1() {
  28774. _has_bits_[0] |= 0x00000001u;
  28775. }
  28776. inline void TestJsonName::clear_has_field_name1() {
  28777. _has_bits_[0] &= ~0x00000001u;
  28778. }
  28779. inline void TestJsonName::clear_field_name1() {
  28780. field_name1_ = 0;
  28781. clear_has_field_name1();
  28782. }
  28783. inline ::google::protobuf::int32 TestJsonName::field_name1() const {
  28784. // @@protoc_insertion_point(field_get:protobuf_unittest.TestJsonName.field_name1)
  28785. return field_name1_;
  28786. }
  28787. inline void TestJsonName::set_field_name1(::google::protobuf::int32 value) {
  28788. set_has_field_name1();
  28789. field_name1_ = value;
  28790. // @@protoc_insertion_point(field_set:protobuf_unittest.TestJsonName.field_name1)
  28791. }
  28792. // optional int32 fieldName2 = 2;
  28793. inline bool TestJsonName::has_fieldname2() const {
  28794. return (_has_bits_[0] & 0x00000002u) != 0;
  28795. }
  28796. inline void TestJsonName::set_has_fieldname2() {
  28797. _has_bits_[0] |= 0x00000002u;
  28798. }
  28799. inline void TestJsonName::clear_has_fieldname2() {
  28800. _has_bits_[0] &= ~0x00000002u;
  28801. }
  28802. inline void TestJsonName::clear_fieldname2() {
  28803. fieldname2_ = 0;
  28804. clear_has_fieldname2();
  28805. }
  28806. inline ::google::protobuf::int32 TestJsonName::fieldname2() const {
  28807. // @@protoc_insertion_point(field_get:protobuf_unittest.TestJsonName.fieldName2)
  28808. return fieldname2_;
  28809. }
  28810. inline void TestJsonName::set_fieldname2(::google::protobuf::int32 value) {
  28811. set_has_fieldname2();
  28812. fieldname2_ = value;
  28813. // @@protoc_insertion_point(field_set:protobuf_unittest.TestJsonName.fieldName2)
  28814. }
  28815. // optional int32 FieldName3 = 3;
  28816. inline bool TestJsonName::has_fieldname3() const {
  28817. return (_has_bits_[0] & 0x00000004u) != 0;
  28818. }
  28819. inline void TestJsonName::set_has_fieldname3() {
  28820. _has_bits_[0] |= 0x00000004u;
  28821. }
  28822. inline void TestJsonName::clear_has_fieldname3() {
  28823. _has_bits_[0] &= ~0x00000004u;
  28824. }
  28825. inline void TestJsonName::clear_fieldname3() {
  28826. fieldname3_ = 0;
  28827. clear_has_fieldname3();
  28828. }
  28829. inline ::google::protobuf::int32 TestJsonName::fieldname3() const {
  28830. // @@protoc_insertion_point(field_get:protobuf_unittest.TestJsonName.FieldName3)
  28831. return fieldname3_;
  28832. }
  28833. inline void TestJsonName::set_fieldname3(::google::protobuf::int32 value) {
  28834. set_has_fieldname3();
  28835. fieldname3_ = value;
  28836. // @@protoc_insertion_point(field_set:protobuf_unittest.TestJsonName.FieldName3)
  28837. }
  28838. // optional int32 _field_name4 = 4;
  28839. inline bool TestJsonName::has__field_name4() const {
  28840. return (_has_bits_[0] & 0x00000008u) != 0;
  28841. }
  28842. inline void TestJsonName::set_has__field_name4() {
  28843. _has_bits_[0] |= 0x00000008u;
  28844. }
  28845. inline void TestJsonName::clear_has__field_name4() {
  28846. _has_bits_[0] &= ~0x00000008u;
  28847. }
  28848. inline void TestJsonName::clear__field_name4() {
  28849. _field_name4_ = 0;
  28850. clear_has__field_name4();
  28851. }
  28852. inline ::google::protobuf::int32 TestJsonName::_field_name4() const {
  28853. // @@protoc_insertion_point(field_get:protobuf_unittest.TestJsonName._field_name4)
  28854. return _field_name4_;
  28855. }
  28856. inline void TestJsonName::set__field_name4(::google::protobuf::int32 value) {
  28857. set_has__field_name4();
  28858. _field_name4_ = value;
  28859. // @@protoc_insertion_point(field_set:protobuf_unittest.TestJsonName._field_name4)
  28860. }
  28861. // optional int32 FIELD_NAME5 = 5;
  28862. inline bool TestJsonName::has_field_name5() const {
  28863. return (_has_bits_[0] & 0x00000010u) != 0;
  28864. }
  28865. inline void TestJsonName::set_has_field_name5() {
  28866. _has_bits_[0] |= 0x00000010u;
  28867. }
  28868. inline void TestJsonName::clear_has_field_name5() {
  28869. _has_bits_[0] &= ~0x00000010u;
  28870. }
  28871. inline void TestJsonName::clear_field_name5() {
  28872. field_name5_ = 0;
  28873. clear_has_field_name5();
  28874. }
  28875. inline ::google::protobuf::int32 TestJsonName::field_name5() const {
  28876. // @@protoc_insertion_point(field_get:protobuf_unittest.TestJsonName.FIELD_NAME5)
  28877. return field_name5_;
  28878. }
  28879. inline void TestJsonName::set_field_name5(::google::protobuf::int32 value) {
  28880. set_has_field_name5();
  28881. field_name5_ = value;
  28882. // @@protoc_insertion_point(field_set:protobuf_unittest.TestJsonName.FIELD_NAME5)
  28883. }
  28884. // optional int32 field_name6 = 6[json_name = "@type"];
  28885. inline bool TestJsonName::has_field_name6() const {
  28886. return (_has_bits_[0] & 0x00000020u) != 0;
  28887. }
  28888. inline void TestJsonName::set_has_field_name6() {
  28889. _has_bits_[0] |= 0x00000020u;
  28890. }
  28891. inline void TestJsonName::clear_has_field_name6() {
  28892. _has_bits_[0] &= ~0x00000020u;
  28893. }
  28894. inline void TestJsonName::clear_field_name6() {
  28895. field_name6_ = 0;
  28896. clear_has_field_name6();
  28897. }
  28898. inline ::google::protobuf::int32 TestJsonName::field_name6() const {
  28899. // @@protoc_insertion_point(field_get:protobuf_unittest.TestJsonName.field_name6)
  28900. return field_name6_;
  28901. }
  28902. inline void TestJsonName::set_field_name6(::google::protobuf::int32 value) {
  28903. set_has_field_name6();
  28904. field_name6_ = value;
  28905. // @@protoc_insertion_point(field_set:protobuf_unittest.TestJsonName.field_name6)
  28906. }
  28907. // -------------------------------------------------------------------
  28908. // TestHugeFieldNumbers_OptionalGroup
  28909. // optional int32 group_a = 536870009;
  28910. inline bool TestHugeFieldNumbers_OptionalGroup::has_group_a() const {
  28911. return (_has_bits_[0] & 0x00000001u) != 0;
  28912. }
  28913. inline void TestHugeFieldNumbers_OptionalGroup::set_has_group_a() {
  28914. _has_bits_[0] |= 0x00000001u;
  28915. }
  28916. inline void TestHugeFieldNumbers_OptionalGroup::clear_has_group_a() {
  28917. _has_bits_[0] &= ~0x00000001u;
  28918. }
  28919. inline void TestHugeFieldNumbers_OptionalGroup::clear_group_a() {
  28920. group_a_ = 0;
  28921. clear_has_group_a();
  28922. }
  28923. inline ::google::protobuf::int32 TestHugeFieldNumbers_OptionalGroup::group_a() const {
  28924. // @@protoc_insertion_point(field_get:protobuf_unittest.TestHugeFieldNumbers.OptionalGroup.group_a)
  28925. return group_a_;
  28926. }
  28927. inline void TestHugeFieldNumbers_OptionalGroup::set_group_a(::google::protobuf::int32 value) {
  28928. set_has_group_a();
  28929. group_a_ = value;
  28930. // @@protoc_insertion_point(field_set:protobuf_unittest.TestHugeFieldNumbers.OptionalGroup.group_a)
  28931. }
  28932. // -------------------------------------------------------------------
  28933. // -------------------------------------------------------------------
  28934. // TestHugeFieldNumbers
  28935. // optional int32 optional_int32 = 536870000;
  28936. inline bool TestHugeFieldNumbers::has_optional_int32() const {
  28937. return (_has_bits_[0] & 0x00000010u) != 0;
  28938. }
  28939. inline void TestHugeFieldNumbers::set_has_optional_int32() {
  28940. _has_bits_[0] |= 0x00000010u;
  28941. }
  28942. inline void TestHugeFieldNumbers::clear_has_optional_int32() {
  28943. _has_bits_[0] &= ~0x00000010u;
  28944. }
  28945. inline void TestHugeFieldNumbers::clear_optional_int32() {
  28946. optional_int32_ = 0;
  28947. clear_has_optional_int32();
  28948. }
  28949. inline ::google::protobuf::int32 TestHugeFieldNumbers::optional_int32() const {
  28950. // @@protoc_insertion_point(field_get:protobuf_unittest.TestHugeFieldNumbers.optional_int32)
  28951. return optional_int32_;
  28952. }
  28953. inline void TestHugeFieldNumbers::set_optional_int32(::google::protobuf::int32 value) {
  28954. set_has_optional_int32();
  28955. optional_int32_ = value;
  28956. // @@protoc_insertion_point(field_set:protobuf_unittest.TestHugeFieldNumbers.optional_int32)
  28957. }
  28958. // optional int32 fixed_32 = 536870001;
  28959. inline bool TestHugeFieldNumbers::has_fixed_32() const {
  28960. return (_has_bits_[0] & 0x00000020u) != 0;
  28961. }
  28962. inline void TestHugeFieldNumbers::set_has_fixed_32() {
  28963. _has_bits_[0] |= 0x00000020u;
  28964. }
  28965. inline void TestHugeFieldNumbers::clear_has_fixed_32() {
  28966. _has_bits_[0] &= ~0x00000020u;
  28967. }
  28968. inline void TestHugeFieldNumbers::clear_fixed_32() {
  28969. fixed_32_ = 0;
  28970. clear_has_fixed_32();
  28971. }
  28972. inline ::google::protobuf::int32 TestHugeFieldNumbers::fixed_32() const {
  28973. // @@protoc_insertion_point(field_get:protobuf_unittest.TestHugeFieldNumbers.fixed_32)
  28974. return fixed_32_;
  28975. }
  28976. inline void TestHugeFieldNumbers::set_fixed_32(::google::protobuf::int32 value) {
  28977. set_has_fixed_32();
  28978. fixed_32_ = value;
  28979. // @@protoc_insertion_point(field_set:protobuf_unittest.TestHugeFieldNumbers.fixed_32)
  28980. }
  28981. // repeated int32 repeated_int32 = 536870002 [packed = false];
  28982. inline int TestHugeFieldNumbers::repeated_int32_size() const {
  28983. return repeated_int32_.size();
  28984. }
  28985. inline void TestHugeFieldNumbers::clear_repeated_int32() {
  28986. repeated_int32_.Clear();
  28987. }
  28988. inline ::google::protobuf::int32 TestHugeFieldNumbers::repeated_int32(int index) const {
  28989. // @@protoc_insertion_point(field_get:protobuf_unittest.TestHugeFieldNumbers.repeated_int32)
  28990. return repeated_int32_.Get(index);
  28991. }
  28992. inline void TestHugeFieldNumbers::set_repeated_int32(int index, ::google::protobuf::int32 value) {
  28993. repeated_int32_.Set(index, value);
  28994. // @@protoc_insertion_point(field_set:protobuf_unittest.TestHugeFieldNumbers.repeated_int32)
  28995. }
  28996. inline void TestHugeFieldNumbers::add_repeated_int32(::google::protobuf::int32 value) {
  28997. repeated_int32_.Add(value);
  28998. // @@protoc_insertion_point(field_add:protobuf_unittest.TestHugeFieldNumbers.repeated_int32)
  28999. }
  29000. inline const ::google::protobuf::RepeatedField< ::google::protobuf::int32 >&
  29001. TestHugeFieldNumbers::repeated_int32() const {
  29002. // @@protoc_insertion_point(field_list:protobuf_unittest.TestHugeFieldNumbers.repeated_int32)
  29003. return repeated_int32_;
  29004. }
  29005. inline ::google::protobuf::RepeatedField< ::google::protobuf::int32 >*
  29006. TestHugeFieldNumbers::mutable_repeated_int32() {
  29007. // @@protoc_insertion_point(field_mutable_list:protobuf_unittest.TestHugeFieldNumbers.repeated_int32)
  29008. return &repeated_int32_;
  29009. }
  29010. // repeated int32 packed_int32 = 536870003 [packed = true];
  29011. inline int TestHugeFieldNumbers::packed_int32_size() const {
  29012. return packed_int32_.size();
  29013. }
  29014. inline void TestHugeFieldNumbers::clear_packed_int32() {
  29015. packed_int32_.Clear();
  29016. }
  29017. inline ::google::protobuf::int32 TestHugeFieldNumbers::packed_int32(int index) const {
  29018. // @@protoc_insertion_point(field_get:protobuf_unittest.TestHugeFieldNumbers.packed_int32)
  29019. return packed_int32_.Get(index);
  29020. }
  29021. inline void TestHugeFieldNumbers::set_packed_int32(int index, ::google::protobuf::int32 value) {
  29022. packed_int32_.Set(index, value);
  29023. // @@protoc_insertion_point(field_set:protobuf_unittest.TestHugeFieldNumbers.packed_int32)
  29024. }
  29025. inline void TestHugeFieldNumbers::add_packed_int32(::google::protobuf::int32 value) {
  29026. packed_int32_.Add(value);
  29027. // @@protoc_insertion_point(field_add:protobuf_unittest.TestHugeFieldNumbers.packed_int32)
  29028. }
  29029. inline const ::google::protobuf::RepeatedField< ::google::protobuf::int32 >&
  29030. TestHugeFieldNumbers::packed_int32() const {
  29031. // @@protoc_insertion_point(field_list:protobuf_unittest.TestHugeFieldNumbers.packed_int32)
  29032. return packed_int32_;
  29033. }
  29034. inline ::google::protobuf::RepeatedField< ::google::protobuf::int32 >*
  29035. TestHugeFieldNumbers::mutable_packed_int32() {
  29036. // @@protoc_insertion_point(field_mutable_list:protobuf_unittest.TestHugeFieldNumbers.packed_int32)
  29037. return &packed_int32_;
  29038. }
  29039. // optional .protobuf_unittest.ForeignEnum optional_enum = 536870004;
  29040. inline bool TestHugeFieldNumbers::has_optional_enum() const {
  29041. return (_has_bits_[0] & 0x00000040u) != 0;
  29042. }
  29043. inline void TestHugeFieldNumbers::set_has_optional_enum() {
  29044. _has_bits_[0] |= 0x00000040u;
  29045. }
  29046. inline void TestHugeFieldNumbers::clear_has_optional_enum() {
  29047. _has_bits_[0] &= ~0x00000040u;
  29048. }
  29049. inline void TestHugeFieldNumbers::clear_optional_enum() {
  29050. optional_enum_ = 4;
  29051. clear_has_optional_enum();
  29052. }
  29053. inline ::protobuf_unittest::ForeignEnum TestHugeFieldNumbers::optional_enum() const {
  29054. // @@protoc_insertion_point(field_get:protobuf_unittest.TestHugeFieldNumbers.optional_enum)
  29055. return static_cast< ::protobuf_unittest::ForeignEnum >(optional_enum_);
  29056. }
  29057. inline void TestHugeFieldNumbers::set_optional_enum(::protobuf_unittest::ForeignEnum value) {
  29058. assert(::protobuf_unittest::ForeignEnum_IsValid(value));
  29059. set_has_optional_enum();
  29060. optional_enum_ = value;
  29061. // @@protoc_insertion_point(field_set:protobuf_unittest.TestHugeFieldNumbers.optional_enum)
  29062. }
  29063. // optional string optional_string = 536870005;
  29064. inline bool TestHugeFieldNumbers::has_optional_string() const {
  29065. return (_has_bits_[0] & 0x00000001u) != 0;
  29066. }
  29067. inline void TestHugeFieldNumbers::set_has_optional_string() {
  29068. _has_bits_[0] |= 0x00000001u;
  29069. }
  29070. inline void TestHugeFieldNumbers::clear_has_optional_string() {
  29071. _has_bits_[0] &= ~0x00000001u;
  29072. }
  29073. inline void TestHugeFieldNumbers::clear_optional_string() {
  29074. optional_string_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
  29075. clear_has_optional_string();
  29076. }
  29077. inline const ::std::string& TestHugeFieldNumbers::optional_string() const {
  29078. // @@protoc_insertion_point(field_get:protobuf_unittest.TestHugeFieldNumbers.optional_string)
  29079. return optional_string_.Get();
  29080. }
  29081. inline void TestHugeFieldNumbers::set_optional_string(const ::std::string& value) {
  29082. set_has_optional_string();
  29083. optional_string_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual());
  29084. // @@protoc_insertion_point(field_set:protobuf_unittest.TestHugeFieldNumbers.optional_string)
  29085. }
  29086. #if LANG_CXX11
  29087. inline void TestHugeFieldNumbers::set_optional_string(::std::string&& value) {
  29088. set_has_optional_string();
  29089. optional_string_.Set(
  29090. &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual());
  29091. // @@protoc_insertion_point(field_set_rvalue:protobuf_unittest.TestHugeFieldNumbers.optional_string)
  29092. }
  29093. #endif
  29094. inline void TestHugeFieldNumbers::set_optional_string(const char* value) {
  29095. GOOGLE_DCHECK(value != NULL);
  29096. set_has_optional_string();
  29097. optional_string_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value),
  29098. GetArenaNoVirtual());
  29099. // @@protoc_insertion_point(field_set_char:protobuf_unittest.TestHugeFieldNumbers.optional_string)
  29100. }
  29101. inline void TestHugeFieldNumbers::set_optional_string(const char* value,
  29102. size_t size) {
  29103. set_has_optional_string();
  29104. optional_string_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(
  29105. reinterpret_cast<const char*>(value), size), GetArenaNoVirtual());
  29106. // @@protoc_insertion_point(field_set_pointer:protobuf_unittest.TestHugeFieldNumbers.optional_string)
  29107. }
  29108. inline ::std::string* TestHugeFieldNumbers::mutable_optional_string() {
  29109. set_has_optional_string();
  29110. // @@protoc_insertion_point(field_mutable:protobuf_unittest.TestHugeFieldNumbers.optional_string)
  29111. return optional_string_.Mutable(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
  29112. }
  29113. inline ::std::string* TestHugeFieldNumbers::release_optional_string() {
  29114. // @@protoc_insertion_point(field_release:protobuf_unittest.TestHugeFieldNumbers.optional_string)
  29115. if (!has_optional_string()) {
  29116. return NULL;
  29117. }
  29118. clear_has_optional_string();
  29119. return optional_string_.ReleaseNonDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
  29120. }
  29121. inline void TestHugeFieldNumbers::set_allocated_optional_string(::std::string* optional_string) {
  29122. if (optional_string != NULL) {
  29123. set_has_optional_string();
  29124. } else {
  29125. clear_has_optional_string();
  29126. }
  29127. optional_string_.SetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), optional_string,
  29128. GetArenaNoVirtual());
  29129. // @@protoc_insertion_point(field_set_allocated:protobuf_unittest.TestHugeFieldNumbers.optional_string)
  29130. }
  29131. inline ::std::string* TestHugeFieldNumbers::unsafe_arena_release_optional_string() {
  29132. // @@protoc_insertion_point(field_unsafe_arena_release:protobuf_unittest.TestHugeFieldNumbers.optional_string)
  29133. GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
  29134. clear_has_optional_string();
  29135. return optional_string_.UnsafeArenaRelease(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  29136. GetArenaNoVirtual());
  29137. }
  29138. inline void TestHugeFieldNumbers::unsafe_arena_set_allocated_optional_string(
  29139. ::std::string* optional_string) {
  29140. GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
  29141. if (optional_string != NULL) {
  29142. set_has_optional_string();
  29143. } else {
  29144. clear_has_optional_string();
  29145. }
  29146. optional_string_.UnsafeArenaSetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  29147. optional_string, GetArenaNoVirtual());
  29148. // @@protoc_insertion_point(field_unsafe_arena_set_allocated:protobuf_unittest.TestHugeFieldNumbers.optional_string)
  29149. }
  29150. // optional bytes optional_bytes = 536870006;
  29151. inline bool TestHugeFieldNumbers::has_optional_bytes() const {
  29152. return (_has_bits_[0] & 0x00000002u) != 0;
  29153. }
  29154. inline void TestHugeFieldNumbers::set_has_optional_bytes() {
  29155. _has_bits_[0] |= 0x00000002u;
  29156. }
  29157. inline void TestHugeFieldNumbers::clear_has_optional_bytes() {
  29158. _has_bits_[0] &= ~0x00000002u;
  29159. }
  29160. inline void TestHugeFieldNumbers::clear_optional_bytes() {
  29161. optional_bytes_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
  29162. clear_has_optional_bytes();
  29163. }
  29164. inline const ::std::string& TestHugeFieldNumbers::optional_bytes() const {
  29165. // @@protoc_insertion_point(field_get:protobuf_unittest.TestHugeFieldNumbers.optional_bytes)
  29166. return optional_bytes_.Get();
  29167. }
  29168. inline void TestHugeFieldNumbers::set_optional_bytes(const ::std::string& value) {
  29169. set_has_optional_bytes();
  29170. optional_bytes_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual());
  29171. // @@protoc_insertion_point(field_set:protobuf_unittest.TestHugeFieldNumbers.optional_bytes)
  29172. }
  29173. #if LANG_CXX11
  29174. inline void TestHugeFieldNumbers::set_optional_bytes(::std::string&& value) {
  29175. set_has_optional_bytes();
  29176. optional_bytes_.Set(
  29177. &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual());
  29178. // @@protoc_insertion_point(field_set_rvalue:protobuf_unittest.TestHugeFieldNumbers.optional_bytes)
  29179. }
  29180. #endif
  29181. inline void TestHugeFieldNumbers::set_optional_bytes(const char* value) {
  29182. GOOGLE_DCHECK(value != NULL);
  29183. set_has_optional_bytes();
  29184. optional_bytes_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value),
  29185. GetArenaNoVirtual());
  29186. // @@protoc_insertion_point(field_set_char:protobuf_unittest.TestHugeFieldNumbers.optional_bytes)
  29187. }
  29188. inline void TestHugeFieldNumbers::set_optional_bytes(const void* value,
  29189. size_t size) {
  29190. set_has_optional_bytes();
  29191. optional_bytes_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(
  29192. reinterpret_cast<const char*>(value), size), GetArenaNoVirtual());
  29193. // @@protoc_insertion_point(field_set_pointer:protobuf_unittest.TestHugeFieldNumbers.optional_bytes)
  29194. }
  29195. inline ::std::string* TestHugeFieldNumbers::mutable_optional_bytes() {
  29196. set_has_optional_bytes();
  29197. // @@protoc_insertion_point(field_mutable:protobuf_unittest.TestHugeFieldNumbers.optional_bytes)
  29198. return optional_bytes_.Mutable(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
  29199. }
  29200. inline ::std::string* TestHugeFieldNumbers::release_optional_bytes() {
  29201. // @@protoc_insertion_point(field_release:protobuf_unittest.TestHugeFieldNumbers.optional_bytes)
  29202. if (!has_optional_bytes()) {
  29203. return NULL;
  29204. }
  29205. clear_has_optional_bytes();
  29206. return optional_bytes_.ReleaseNonDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
  29207. }
  29208. inline void TestHugeFieldNumbers::set_allocated_optional_bytes(::std::string* optional_bytes) {
  29209. if (optional_bytes != NULL) {
  29210. set_has_optional_bytes();
  29211. } else {
  29212. clear_has_optional_bytes();
  29213. }
  29214. optional_bytes_.SetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), optional_bytes,
  29215. GetArenaNoVirtual());
  29216. // @@protoc_insertion_point(field_set_allocated:protobuf_unittest.TestHugeFieldNumbers.optional_bytes)
  29217. }
  29218. inline ::std::string* TestHugeFieldNumbers::unsafe_arena_release_optional_bytes() {
  29219. // @@protoc_insertion_point(field_unsafe_arena_release:protobuf_unittest.TestHugeFieldNumbers.optional_bytes)
  29220. GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
  29221. clear_has_optional_bytes();
  29222. return optional_bytes_.UnsafeArenaRelease(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  29223. GetArenaNoVirtual());
  29224. }
  29225. inline void TestHugeFieldNumbers::unsafe_arena_set_allocated_optional_bytes(
  29226. ::std::string* optional_bytes) {
  29227. GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
  29228. if (optional_bytes != NULL) {
  29229. set_has_optional_bytes();
  29230. } else {
  29231. clear_has_optional_bytes();
  29232. }
  29233. optional_bytes_.UnsafeArenaSetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  29234. optional_bytes, GetArenaNoVirtual());
  29235. // @@protoc_insertion_point(field_unsafe_arena_set_allocated:protobuf_unittest.TestHugeFieldNumbers.optional_bytes)
  29236. }
  29237. // optional .protobuf_unittest.ForeignMessage optional_message = 536870007;
  29238. inline bool TestHugeFieldNumbers::has_optional_message() const {
  29239. return (_has_bits_[0] & 0x00000004u) != 0;
  29240. }
  29241. inline void TestHugeFieldNumbers::set_has_optional_message() {
  29242. _has_bits_[0] |= 0x00000004u;
  29243. }
  29244. inline void TestHugeFieldNumbers::clear_has_optional_message() {
  29245. _has_bits_[0] &= ~0x00000004u;
  29246. }
  29247. inline void TestHugeFieldNumbers::clear_optional_message() {
  29248. if (optional_message_ != NULL) optional_message_->Clear();
  29249. clear_has_optional_message();
  29250. }
  29251. inline const ::protobuf_unittest::ForeignMessage& TestHugeFieldNumbers::_internal_optional_message() const {
  29252. return *optional_message_;
  29253. }
  29254. inline const ::protobuf_unittest::ForeignMessage& TestHugeFieldNumbers::optional_message() const {
  29255. const ::protobuf_unittest::ForeignMessage* p = optional_message_;
  29256. // @@protoc_insertion_point(field_get:protobuf_unittest.TestHugeFieldNumbers.optional_message)
  29257. return p != NULL ? *p : *reinterpret_cast<const ::protobuf_unittest::ForeignMessage*>(
  29258. &::protobuf_unittest::_ForeignMessage_default_instance_);
  29259. }
  29260. inline ::protobuf_unittest::ForeignMessage* TestHugeFieldNumbers::release_optional_message() {
  29261. // @@protoc_insertion_point(field_release:protobuf_unittest.TestHugeFieldNumbers.optional_message)
  29262. clear_has_optional_message();
  29263. ::protobuf_unittest::ForeignMessage* temp = optional_message_;
  29264. if (GetArenaNoVirtual() != NULL) {
  29265. temp = ::google::protobuf::internal::DuplicateIfNonNull(temp);
  29266. }
  29267. optional_message_ = NULL;
  29268. return temp;
  29269. }
  29270. inline ::protobuf_unittest::ForeignMessage* TestHugeFieldNumbers::unsafe_arena_release_optional_message() {
  29271. // @@protoc_insertion_point(field_unsafe_arena_release:protobuf_unittest.TestHugeFieldNumbers.optional_message)
  29272. clear_has_optional_message();
  29273. ::protobuf_unittest::ForeignMessage* temp = optional_message_;
  29274. optional_message_ = NULL;
  29275. return temp;
  29276. }
  29277. inline ::protobuf_unittest::ForeignMessage* TestHugeFieldNumbers::mutable_optional_message() {
  29278. set_has_optional_message();
  29279. if (optional_message_ == NULL) {
  29280. auto* p = CreateMaybeMessage<::protobuf_unittest::ForeignMessage>(GetArenaNoVirtual());
  29281. optional_message_ = p;
  29282. }
  29283. // @@protoc_insertion_point(field_mutable:protobuf_unittest.TestHugeFieldNumbers.optional_message)
  29284. return optional_message_;
  29285. }
  29286. inline void TestHugeFieldNumbers::set_allocated_optional_message(::protobuf_unittest::ForeignMessage* optional_message) {
  29287. ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
  29288. if (message_arena == NULL) {
  29289. delete optional_message_;
  29290. }
  29291. if (optional_message) {
  29292. ::google::protobuf::Arena* submessage_arena =
  29293. ::google::protobuf::Arena::GetArena(optional_message);
  29294. if (message_arena != submessage_arena) {
  29295. optional_message = ::google::protobuf::internal::GetOwnedMessage(
  29296. message_arena, optional_message, submessage_arena);
  29297. }
  29298. set_has_optional_message();
  29299. } else {
  29300. clear_has_optional_message();
  29301. }
  29302. optional_message_ = optional_message;
  29303. // @@protoc_insertion_point(field_set_allocated:protobuf_unittest.TestHugeFieldNumbers.optional_message)
  29304. }
  29305. // optional group OptionalGroup = 536870008 { ... };
  29306. inline bool TestHugeFieldNumbers::has_optionalgroup() const {
  29307. return (_has_bits_[0] & 0x00000008u) != 0;
  29308. }
  29309. inline void TestHugeFieldNumbers::set_has_optionalgroup() {
  29310. _has_bits_[0] |= 0x00000008u;
  29311. }
  29312. inline void TestHugeFieldNumbers::clear_has_optionalgroup() {
  29313. _has_bits_[0] &= ~0x00000008u;
  29314. }
  29315. inline void TestHugeFieldNumbers::clear_optionalgroup() {
  29316. if (optionalgroup_ != NULL) optionalgroup_->Clear();
  29317. clear_has_optionalgroup();
  29318. }
  29319. inline const ::protobuf_unittest::TestHugeFieldNumbers_OptionalGroup& TestHugeFieldNumbers::_internal_optionalgroup() const {
  29320. return *optionalgroup_;
  29321. }
  29322. inline const ::protobuf_unittest::TestHugeFieldNumbers_OptionalGroup& TestHugeFieldNumbers::optionalgroup() const {
  29323. const ::protobuf_unittest::TestHugeFieldNumbers_OptionalGroup* p = optionalgroup_;
  29324. // @@protoc_insertion_point(field_get:protobuf_unittest.TestHugeFieldNumbers.optionalgroup)
  29325. return p != NULL ? *p : *reinterpret_cast<const ::protobuf_unittest::TestHugeFieldNumbers_OptionalGroup*>(
  29326. &::protobuf_unittest::_TestHugeFieldNumbers_OptionalGroup_default_instance_);
  29327. }
  29328. inline ::protobuf_unittest::TestHugeFieldNumbers_OptionalGroup* TestHugeFieldNumbers::release_optionalgroup() {
  29329. // @@protoc_insertion_point(field_release:protobuf_unittest.TestHugeFieldNumbers.optionalgroup)
  29330. clear_has_optionalgroup();
  29331. ::protobuf_unittest::TestHugeFieldNumbers_OptionalGroup* temp = optionalgroup_;
  29332. if (GetArenaNoVirtual() != NULL) {
  29333. temp = ::google::protobuf::internal::DuplicateIfNonNull(temp);
  29334. }
  29335. optionalgroup_ = NULL;
  29336. return temp;
  29337. }
  29338. inline ::protobuf_unittest::TestHugeFieldNumbers_OptionalGroup* TestHugeFieldNumbers::unsafe_arena_release_optionalgroup() {
  29339. // @@protoc_insertion_point(field_unsafe_arena_release:protobuf_unittest.TestHugeFieldNumbers.optionalgroup)
  29340. clear_has_optionalgroup();
  29341. ::protobuf_unittest::TestHugeFieldNumbers_OptionalGroup* temp = optionalgroup_;
  29342. optionalgroup_ = NULL;
  29343. return temp;
  29344. }
  29345. inline ::protobuf_unittest::TestHugeFieldNumbers_OptionalGroup* TestHugeFieldNumbers::mutable_optionalgroup() {
  29346. set_has_optionalgroup();
  29347. if (optionalgroup_ == NULL) {
  29348. auto* p = CreateMaybeMessage<::protobuf_unittest::TestHugeFieldNumbers_OptionalGroup>(GetArenaNoVirtual());
  29349. optionalgroup_ = p;
  29350. }
  29351. // @@protoc_insertion_point(field_mutable:protobuf_unittest.TestHugeFieldNumbers.optionalgroup)
  29352. return optionalgroup_;
  29353. }
  29354. inline void TestHugeFieldNumbers::set_allocated_optionalgroup(::protobuf_unittest::TestHugeFieldNumbers_OptionalGroup* optionalgroup) {
  29355. ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
  29356. if (message_arena == NULL) {
  29357. delete optionalgroup_;
  29358. }
  29359. if (optionalgroup) {
  29360. ::google::protobuf::Arena* submessage_arena =
  29361. ::google::protobuf::Arena::GetArena(optionalgroup);
  29362. if (message_arena != submessage_arena) {
  29363. optionalgroup = ::google::protobuf::internal::GetOwnedMessage(
  29364. message_arena, optionalgroup, submessage_arena);
  29365. }
  29366. set_has_optionalgroup();
  29367. } else {
  29368. clear_has_optionalgroup();
  29369. }
  29370. optionalgroup_ = optionalgroup;
  29371. // @@protoc_insertion_point(field_set_allocated:protobuf_unittest.TestHugeFieldNumbers.optionalgroup)
  29372. }
  29373. // map<string, string> string_string_map = 536870010;
  29374. inline int TestHugeFieldNumbers::string_string_map_size() const {
  29375. return string_string_map_.size();
  29376. }
  29377. inline void TestHugeFieldNumbers::clear_string_string_map() {
  29378. string_string_map_.Clear();
  29379. }
  29380. inline const ::google::protobuf::Map< ::std::string, ::std::string >&
  29381. TestHugeFieldNumbers::string_string_map() const {
  29382. // @@protoc_insertion_point(field_map:protobuf_unittest.TestHugeFieldNumbers.string_string_map)
  29383. return string_string_map_.GetMap();
  29384. }
  29385. inline ::google::protobuf::Map< ::std::string, ::std::string >*
  29386. TestHugeFieldNumbers::mutable_string_string_map() {
  29387. // @@protoc_insertion_point(field_mutable_map:protobuf_unittest.TestHugeFieldNumbers.string_string_map)
  29388. return string_string_map_.MutableMap();
  29389. }
  29390. // optional uint32 oneof_uint32 = 536870011;
  29391. inline bool TestHugeFieldNumbers::has_oneof_uint32() const {
  29392. return oneof_field_case() == kOneofUint32;
  29393. }
  29394. inline void TestHugeFieldNumbers::set_has_oneof_uint32() {
  29395. _oneof_case_[0] = kOneofUint32;
  29396. }
  29397. inline void TestHugeFieldNumbers::clear_oneof_uint32() {
  29398. if (has_oneof_uint32()) {
  29399. oneof_field_.oneof_uint32_ = 0u;
  29400. clear_has_oneof_field();
  29401. }
  29402. }
  29403. inline ::google::protobuf::uint32 TestHugeFieldNumbers::oneof_uint32() const {
  29404. // @@protoc_insertion_point(field_get:protobuf_unittest.TestHugeFieldNumbers.oneof_uint32)
  29405. if (has_oneof_uint32()) {
  29406. return oneof_field_.oneof_uint32_;
  29407. }
  29408. return 0u;
  29409. }
  29410. inline void TestHugeFieldNumbers::set_oneof_uint32(::google::protobuf::uint32 value) {
  29411. if (!has_oneof_uint32()) {
  29412. clear_oneof_field();
  29413. set_has_oneof_uint32();
  29414. }
  29415. oneof_field_.oneof_uint32_ = value;
  29416. // @@protoc_insertion_point(field_set:protobuf_unittest.TestHugeFieldNumbers.oneof_uint32)
  29417. }
  29418. // optional .protobuf_unittest.TestAllTypes oneof_test_all_types = 536870012;
  29419. inline bool TestHugeFieldNumbers::has_oneof_test_all_types() const {
  29420. return oneof_field_case() == kOneofTestAllTypes;
  29421. }
  29422. inline void TestHugeFieldNumbers::set_has_oneof_test_all_types() {
  29423. _oneof_case_[0] = kOneofTestAllTypes;
  29424. }
  29425. inline void TestHugeFieldNumbers::clear_oneof_test_all_types() {
  29426. if (has_oneof_test_all_types()) {
  29427. if (GetArenaNoVirtual() == NULL) {
  29428. delete oneof_field_.oneof_test_all_types_;
  29429. }
  29430. clear_has_oneof_field();
  29431. }
  29432. }
  29433. inline const ::protobuf_unittest::TestAllTypes& TestHugeFieldNumbers::_internal_oneof_test_all_types() const {
  29434. return *oneof_field_.oneof_test_all_types_;
  29435. }
  29436. inline ::protobuf_unittest::TestAllTypes* TestHugeFieldNumbers::release_oneof_test_all_types() {
  29437. // @@protoc_insertion_point(field_release:protobuf_unittest.TestHugeFieldNumbers.oneof_test_all_types)
  29438. if (has_oneof_test_all_types()) {
  29439. clear_has_oneof_field();
  29440. ::protobuf_unittest::TestAllTypes* temp = oneof_field_.oneof_test_all_types_;
  29441. if (GetArenaNoVirtual() != NULL) {
  29442. temp = ::google::protobuf::internal::DuplicateIfNonNull(temp);
  29443. }
  29444. oneof_field_.oneof_test_all_types_ = NULL;
  29445. return temp;
  29446. } else {
  29447. return NULL;
  29448. }
  29449. }
  29450. inline const ::protobuf_unittest::TestAllTypes& TestHugeFieldNumbers::oneof_test_all_types() const {
  29451. // @@protoc_insertion_point(field_get:protobuf_unittest.TestHugeFieldNumbers.oneof_test_all_types)
  29452. return has_oneof_test_all_types()
  29453. ? *oneof_field_.oneof_test_all_types_
  29454. : *reinterpret_cast< ::protobuf_unittest::TestAllTypes*>(&::protobuf_unittest::_TestAllTypes_default_instance_);
  29455. }
  29456. inline ::protobuf_unittest::TestAllTypes* TestHugeFieldNumbers::unsafe_arena_release_oneof_test_all_types() {
  29457. // @@protoc_insertion_point(field_unsafe_arena_release:protobuf_unittest.TestHugeFieldNumbers.oneof_test_all_types)
  29458. if (has_oneof_test_all_types()) {
  29459. clear_has_oneof_field();
  29460. ::protobuf_unittest::TestAllTypes* temp = oneof_field_.oneof_test_all_types_;
  29461. oneof_field_.oneof_test_all_types_ = NULL;
  29462. return temp;
  29463. } else {
  29464. return NULL;
  29465. }
  29466. }
  29467. inline void TestHugeFieldNumbers::unsafe_arena_set_allocated_oneof_test_all_types(::protobuf_unittest::TestAllTypes* oneof_test_all_types) {
  29468. clear_oneof_field();
  29469. if (oneof_test_all_types) {
  29470. set_has_oneof_test_all_types();
  29471. oneof_field_.oneof_test_all_types_ = oneof_test_all_types;
  29472. }
  29473. // @@protoc_insertion_point(field_unsafe_arena_set_allocated:protobuf_unittest.TestHugeFieldNumbers.oneof_test_all_types)
  29474. }
  29475. inline ::protobuf_unittest::TestAllTypes* TestHugeFieldNumbers::mutable_oneof_test_all_types() {
  29476. if (!has_oneof_test_all_types()) {
  29477. clear_oneof_field();
  29478. set_has_oneof_test_all_types();
  29479. oneof_field_.oneof_test_all_types_ = CreateMaybeMessage< ::protobuf_unittest::TestAllTypes >(
  29480. GetArenaNoVirtual());
  29481. }
  29482. // @@protoc_insertion_point(field_mutable:protobuf_unittest.TestHugeFieldNumbers.oneof_test_all_types)
  29483. return oneof_field_.oneof_test_all_types_;
  29484. }
  29485. // optional string oneof_string = 536870013;
  29486. inline bool TestHugeFieldNumbers::has_oneof_string() const {
  29487. return oneof_field_case() == kOneofString;
  29488. }
  29489. inline void TestHugeFieldNumbers::set_has_oneof_string() {
  29490. _oneof_case_[0] = kOneofString;
  29491. }
  29492. inline void TestHugeFieldNumbers::clear_oneof_string() {
  29493. if (has_oneof_string()) {
  29494. oneof_field_.oneof_string_.Destroy(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  29495. GetArenaNoVirtual());
  29496. clear_has_oneof_field();
  29497. }
  29498. }
  29499. inline const ::std::string& TestHugeFieldNumbers::oneof_string() const {
  29500. // @@protoc_insertion_point(field_get:protobuf_unittest.TestHugeFieldNumbers.oneof_string)
  29501. if (has_oneof_string()) {
  29502. return oneof_field_.oneof_string_.Get();
  29503. }
  29504. return *&::google::protobuf::internal::GetEmptyStringAlreadyInited();
  29505. }
  29506. inline void TestHugeFieldNumbers::set_oneof_string(const ::std::string& value) {
  29507. if (!has_oneof_string()) {
  29508. clear_oneof_field();
  29509. set_has_oneof_string();
  29510. oneof_field_.oneof_string_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  29511. }
  29512. oneof_field_.oneof_string_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value,
  29513. GetArenaNoVirtual());
  29514. // @@protoc_insertion_point(field_set:protobuf_unittest.TestHugeFieldNumbers.oneof_string)
  29515. }
  29516. #if LANG_CXX11
  29517. inline void TestHugeFieldNumbers::set_oneof_string(::std::string&& value) {
  29518. // @@protoc_insertion_point(field_set:protobuf_unittest.TestHugeFieldNumbers.oneof_string)
  29519. if (!has_oneof_string()) {
  29520. clear_oneof_field();
  29521. set_has_oneof_string();
  29522. oneof_field_.oneof_string_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  29523. }
  29524. oneof_field_.oneof_string_.Set(
  29525. &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual());
  29526. // @@protoc_insertion_point(field_set_rvalue:protobuf_unittest.TestHugeFieldNumbers.oneof_string)
  29527. }
  29528. #endif
  29529. inline void TestHugeFieldNumbers::set_oneof_string(const char* value) {
  29530. GOOGLE_DCHECK(value != NULL);
  29531. if (!has_oneof_string()) {
  29532. clear_oneof_field();
  29533. set_has_oneof_string();
  29534. oneof_field_.oneof_string_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  29535. }
  29536. oneof_field_.oneof_string_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  29537. ::std::string(value), GetArenaNoVirtual());
  29538. // @@protoc_insertion_point(field_set_char:protobuf_unittest.TestHugeFieldNumbers.oneof_string)
  29539. }
  29540. inline void TestHugeFieldNumbers::set_oneof_string(const char* value,
  29541. size_t size) {
  29542. if (!has_oneof_string()) {
  29543. clear_oneof_field();
  29544. set_has_oneof_string();
  29545. oneof_field_.oneof_string_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  29546. }
  29547. oneof_field_.oneof_string_.Set(
  29548. &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(
  29549. reinterpret_cast<const char*>(value), size),
  29550. GetArenaNoVirtual());
  29551. // @@protoc_insertion_point(field_set_pointer:protobuf_unittest.TestHugeFieldNumbers.oneof_string)
  29552. }
  29553. inline ::std::string* TestHugeFieldNumbers::mutable_oneof_string() {
  29554. if (!has_oneof_string()) {
  29555. clear_oneof_field();
  29556. set_has_oneof_string();
  29557. oneof_field_.oneof_string_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  29558. }
  29559. return oneof_field_.oneof_string_.Mutable(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  29560. GetArenaNoVirtual());
  29561. // @@protoc_insertion_point(field_mutable:protobuf_unittest.TestHugeFieldNumbers.oneof_string)
  29562. }
  29563. inline ::std::string* TestHugeFieldNumbers::release_oneof_string() {
  29564. // @@protoc_insertion_point(field_release:protobuf_unittest.TestHugeFieldNumbers.oneof_string)
  29565. if (has_oneof_string()) {
  29566. clear_has_oneof_field();
  29567. return oneof_field_.oneof_string_.Release(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  29568. GetArenaNoVirtual());
  29569. } else {
  29570. return NULL;
  29571. }
  29572. }
  29573. inline void TestHugeFieldNumbers::set_allocated_oneof_string(::std::string* oneof_string) {
  29574. if (!has_oneof_string()) {
  29575. oneof_field_.oneof_string_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  29576. }
  29577. clear_oneof_field();
  29578. if (oneof_string != NULL) {
  29579. set_has_oneof_string();
  29580. oneof_field_.oneof_string_.SetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), oneof_string,
  29581. GetArenaNoVirtual());
  29582. }
  29583. // @@protoc_insertion_point(field_set_allocated:protobuf_unittest.TestHugeFieldNumbers.oneof_string)
  29584. }
  29585. inline ::std::string* TestHugeFieldNumbers::unsafe_arena_release_oneof_string() {
  29586. // @@protoc_insertion_point(field_unsafe_arena_release:protobuf_unittest.TestHugeFieldNumbers.oneof_string)
  29587. GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
  29588. if (has_oneof_string()) {
  29589. clear_has_oneof_field();
  29590. return oneof_field_.oneof_string_.UnsafeArenaRelease(
  29591. &::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
  29592. } else {
  29593. return NULL;
  29594. }
  29595. }
  29596. inline void TestHugeFieldNumbers::unsafe_arena_set_allocated_oneof_string(::std::string* oneof_string) {
  29597. GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
  29598. if (!has_oneof_string()) {
  29599. oneof_field_.oneof_string_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  29600. }
  29601. clear_oneof_field();
  29602. if (oneof_string) {
  29603. set_has_oneof_string();
  29604. oneof_field_.oneof_string_.UnsafeArenaSetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), oneof_string, GetArenaNoVirtual());
  29605. }
  29606. // @@protoc_insertion_point(field_unsafe_arena_set_allocated:protobuf_unittest.TestHugeFieldNumbers.oneof_string)
  29607. }
  29608. // optional bytes oneof_bytes = 536870014;
  29609. inline bool TestHugeFieldNumbers::has_oneof_bytes() const {
  29610. return oneof_field_case() == kOneofBytes;
  29611. }
  29612. inline void TestHugeFieldNumbers::set_has_oneof_bytes() {
  29613. _oneof_case_[0] = kOneofBytes;
  29614. }
  29615. inline void TestHugeFieldNumbers::clear_oneof_bytes() {
  29616. if (has_oneof_bytes()) {
  29617. oneof_field_.oneof_bytes_.Destroy(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  29618. GetArenaNoVirtual());
  29619. clear_has_oneof_field();
  29620. }
  29621. }
  29622. inline const ::std::string& TestHugeFieldNumbers::oneof_bytes() const {
  29623. // @@protoc_insertion_point(field_get:protobuf_unittest.TestHugeFieldNumbers.oneof_bytes)
  29624. if (has_oneof_bytes()) {
  29625. return oneof_field_.oneof_bytes_.Get();
  29626. }
  29627. return *&::google::protobuf::internal::GetEmptyStringAlreadyInited();
  29628. }
  29629. inline void TestHugeFieldNumbers::set_oneof_bytes(const ::std::string& value) {
  29630. if (!has_oneof_bytes()) {
  29631. clear_oneof_field();
  29632. set_has_oneof_bytes();
  29633. oneof_field_.oneof_bytes_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  29634. }
  29635. oneof_field_.oneof_bytes_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value,
  29636. GetArenaNoVirtual());
  29637. // @@protoc_insertion_point(field_set:protobuf_unittest.TestHugeFieldNumbers.oneof_bytes)
  29638. }
  29639. #if LANG_CXX11
  29640. inline void TestHugeFieldNumbers::set_oneof_bytes(::std::string&& value) {
  29641. // @@protoc_insertion_point(field_set:protobuf_unittest.TestHugeFieldNumbers.oneof_bytes)
  29642. if (!has_oneof_bytes()) {
  29643. clear_oneof_field();
  29644. set_has_oneof_bytes();
  29645. oneof_field_.oneof_bytes_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  29646. }
  29647. oneof_field_.oneof_bytes_.Set(
  29648. &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual());
  29649. // @@protoc_insertion_point(field_set_rvalue:protobuf_unittest.TestHugeFieldNumbers.oneof_bytes)
  29650. }
  29651. #endif
  29652. inline void TestHugeFieldNumbers::set_oneof_bytes(const char* value) {
  29653. GOOGLE_DCHECK(value != NULL);
  29654. if (!has_oneof_bytes()) {
  29655. clear_oneof_field();
  29656. set_has_oneof_bytes();
  29657. oneof_field_.oneof_bytes_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  29658. }
  29659. oneof_field_.oneof_bytes_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  29660. ::std::string(value), GetArenaNoVirtual());
  29661. // @@protoc_insertion_point(field_set_char:protobuf_unittest.TestHugeFieldNumbers.oneof_bytes)
  29662. }
  29663. inline void TestHugeFieldNumbers::set_oneof_bytes(const void* value,
  29664. size_t size) {
  29665. if (!has_oneof_bytes()) {
  29666. clear_oneof_field();
  29667. set_has_oneof_bytes();
  29668. oneof_field_.oneof_bytes_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  29669. }
  29670. oneof_field_.oneof_bytes_.Set(
  29671. &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(
  29672. reinterpret_cast<const char*>(value), size),
  29673. GetArenaNoVirtual());
  29674. // @@protoc_insertion_point(field_set_pointer:protobuf_unittest.TestHugeFieldNumbers.oneof_bytes)
  29675. }
  29676. inline ::std::string* TestHugeFieldNumbers::mutable_oneof_bytes() {
  29677. if (!has_oneof_bytes()) {
  29678. clear_oneof_field();
  29679. set_has_oneof_bytes();
  29680. oneof_field_.oneof_bytes_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  29681. }
  29682. return oneof_field_.oneof_bytes_.Mutable(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  29683. GetArenaNoVirtual());
  29684. // @@protoc_insertion_point(field_mutable:protobuf_unittest.TestHugeFieldNumbers.oneof_bytes)
  29685. }
  29686. inline ::std::string* TestHugeFieldNumbers::release_oneof_bytes() {
  29687. // @@protoc_insertion_point(field_release:protobuf_unittest.TestHugeFieldNumbers.oneof_bytes)
  29688. if (has_oneof_bytes()) {
  29689. clear_has_oneof_field();
  29690. return oneof_field_.oneof_bytes_.Release(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  29691. GetArenaNoVirtual());
  29692. } else {
  29693. return NULL;
  29694. }
  29695. }
  29696. inline void TestHugeFieldNumbers::set_allocated_oneof_bytes(::std::string* oneof_bytes) {
  29697. if (!has_oneof_bytes()) {
  29698. oneof_field_.oneof_bytes_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  29699. }
  29700. clear_oneof_field();
  29701. if (oneof_bytes != NULL) {
  29702. set_has_oneof_bytes();
  29703. oneof_field_.oneof_bytes_.SetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), oneof_bytes,
  29704. GetArenaNoVirtual());
  29705. }
  29706. // @@protoc_insertion_point(field_set_allocated:protobuf_unittest.TestHugeFieldNumbers.oneof_bytes)
  29707. }
  29708. inline ::std::string* TestHugeFieldNumbers::unsafe_arena_release_oneof_bytes() {
  29709. // @@protoc_insertion_point(field_unsafe_arena_release:protobuf_unittest.TestHugeFieldNumbers.oneof_bytes)
  29710. GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
  29711. if (has_oneof_bytes()) {
  29712. clear_has_oneof_field();
  29713. return oneof_field_.oneof_bytes_.UnsafeArenaRelease(
  29714. &::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
  29715. } else {
  29716. return NULL;
  29717. }
  29718. }
  29719. inline void TestHugeFieldNumbers::unsafe_arena_set_allocated_oneof_bytes(::std::string* oneof_bytes) {
  29720. GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
  29721. if (!has_oneof_bytes()) {
  29722. oneof_field_.oneof_bytes_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  29723. }
  29724. clear_oneof_field();
  29725. if (oneof_bytes) {
  29726. set_has_oneof_bytes();
  29727. oneof_field_.oneof_bytes_.UnsafeArenaSetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), oneof_bytes, GetArenaNoVirtual());
  29728. }
  29729. // @@protoc_insertion_point(field_unsafe_arena_set_allocated:protobuf_unittest.TestHugeFieldNumbers.oneof_bytes)
  29730. }
  29731. inline bool TestHugeFieldNumbers::has_oneof_field() const {
  29732. return oneof_field_case() != ONEOF_FIELD_NOT_SET;
  29733. }
  29734. inline void TestHugeFieldNumbers::clear_has_oneof_field() {
  29735. _oneof_case_[0] = ONEOF_FIELD_NOT_SET;
  29736. }
  29737. inline TestHugeFieldNumbers::OneofFieldCase TestHugeFieldNumbers::oneof_field_case() const {
  29738. return TestHugeFieldNumbers::OneofFieldCase(_oneof_case_[0]);
  29739. }
  29740. // -------------------------------------------------------------------
  29741. // TestExtensionInsideTable
  29742. // optional int32 field1 = 1;
  29743. inline bool TestExtensionInsideTable::has_field1() const {
  29744. return (_has_bits_[0] & 0x00000001u) != 0;
  29745. }
  29746. inline void TestExtensionInsideTable::set_has_field1() {
  29747. _has_bits_[0] |= 0x00000001u;
  29748. }
  29749. inline void TestExtensionInsideTable::clear_has_field1() {
  29750. _has_bits_[0] &= ~0x00000001u;
  29751. }
  29752. inline void TestExtensionInsideTable::clear_field1() {
  29753. field1_ = 0;
  29754. clear_has_field1();
  29755. }
  29756. inline ::google::protobuf::int32 TestExtensionInsideTable::field1() const {
  29757. // @@protoc_insertion_point(field_get:protobuf_unittest.TestExtensionInsideTable.field1)
  29758. return field1_;
  29759. }
  29760. inline void TestExtensionInsideTable::set_field1(::google::protobuf::int32 value) {
  29761. set_has_field1();
  29762. field1_ = value;
  29763. // @@protoc_insertion_point(field_set:protobuf_unittest.TestExtensionInsideTable.field1)
  29764. }
  29765. // optional int32 field2 = 2;
  29766. inline bool TestExtensionInsideTable::has_field2() const {
  29767. return (_has_bits_[0] & 0x00000002u) != 0;
  29768. }
  29769. inline void TestExtensionInsideTable::set_has_field2() {
  29770. _has_bits_[0] |= 0x00000002u;
  29771. }
  29772. inline void TestExtensionInsideTable::clear_has_field2() {
  29773. _has_bits_[0] &= ~0x00000002u;
  29774. }
  29775. inline void TestExtensionInsideTable::clear_field2() {
  29776. field2_ = 0;
  29777. clear_has_field2();
  29778. }
  29779. inline ::google::protobuf::int32 TestExtensionInsideTable::field2() const {
  29780. // @@protoc_insertion_point(field_get:protobuf_unittest.TestExtensionInsideTable.field2)
  29781. return field2_;
  29782. }
  29783. inline void TestExtensionInsideTable::set_field2(::google::protobuf::int32 value) {
  29784. set_has_field2();
  29785. field2_ = value;
  29786. // @@protoc_insertion_point(field_set:protobuf_unittest.TestExtensionInsideTable.field2)
  29787. }
  29788. // optional int32 field3 = 3;
  29789. inline bool TestExtensionInsideTable::has_field3() const {
  29790. return (_has_bits_[0] & 0x00000004u) != 0;
  29791. }
  29792. inline void TestExtensionInsideTable::set_has_field3() {
  29793. _has_bits_[0] |= 0x00000004u;
  29794. }
  29795. inline void TestExtensionInsideTable::clear_has_field3() {
  29796. _has_bits_[0] &= ~0x00000004u;
  29797. }
  29798. inline void TestExtensionInsideTable::clear_field3() {
  29799. field3_ = 0;
  29800. clear_has_field3();
  29801. }
  29802. inline ::google::protobuf::int32 TestExtensionInsideTable::field3() const {
  29803. // @@protoc_insertion_point(field_get:protobuf_unittest.TestExtensionInsideTable.field3)
  29804. return field3_;
  29805. }
  29806. inline void TestExtensionInsideTable::set_field3(::google::protobuf::int32 value) {
  29807. set_has_field3();
  29808. field3_ = value;
  29809. // @@protoc_insertion_point(field_set:protobuf_unittest.TestExtensionInsideTable.field3)
  29810. }
  29811. // optional int32 field4 = 4;
  29812. inline bool TestExtensionInsideTable::has_field4() const {
  29813. return (_has_bits_[0] & 0x00000008u) != 0;
  29814. }
  29815. inline void TestExtensionInsideTable::set_has_field4() {
  29816. _has_bits_[0] |= 0x00000008u;
  29817. }
  29818. inline void TestExtensionInsideTable::clear_has_field4() {
  29819. _has_bits_[0] &= ~0x00000008u;
  29820. }
  29821. inline void TestExtensionInsideTable::clear_field4() {
  29822. field4_ = 0;
  29823. clear_has_field4();
  29824. }
  29825. inline ::google::protobuf::int32 TestExtensionInsideTable::field4() const {
  29826. // @@protoc_insertion_point(field_get:protobuf_unittest.TestExtensionInsideTable.field4)
  29827. return field4_;
  29828. }
  29829. inline void TestExtensionInsideTable::set_field4(::google::protobuf::int32 value) {
  29830. set_has_field4();
  29831. field4_ = value;
  29832. // @@protoc_insertion_point(field_set:protobuf_unittest.TestExtensionInsideTable.field4)
  29833. }
  29834. // optional int32 field6 = 6;
  29835. inline bool TestExtensionInsideTable::has_field6() const {
  29836. return (_has_bits_[0] & 0x00000010u) != 0;
  29837. }
  29838. inline void TestExtensionInsideTable::set_has_field6() {
  29839. _has_bits_[0] |= 0x00000010u;
  29840. }
  29841. inline void TestExtensionInsideTable::clear_has_field6() {
  29842. _has_bits_[0] &= ~0x00000010u;
  29843. }
  29844. inline void TestExtensionInsideTable::clear_field6() {
  29845. field6_ = 0;
  29846. clear_has_field6();
  29847. }
  29848. inline ::google::protobuf::int32 TestExtensionInsideTable::field6() const {
  29849. // @@protoc_insertion_point(field_get:protobuf_unittest.TestExtensionInsideTable.field6)
  29850. return field6_;
  29851. }
  29852. inline void TestExtensionInsideTable::set_field6(::google::protobuf::int32 value) {
  29853. set_has_field6();
  29854. field6_ = value;
  29855. // @@protoc_insertion_point(field_set:protobuf_unittest.TestExtensionInsideTable.field6)
  29856. }
  29857. // optional int32 field7 = 7;
  29858. inline bool TestExtensionInsideTable::has_field7() const {
  29859. return (_has_bits_[0] & 0x00000020u) != 0;
  29860. }
  29861. inline void TestExtensionInsideTable::set_has_field7() {
  29862. _has_bits_[0] |= 0x00000020u;
  29863. }
  29864. inline void TestExtensionInsideTable::clear_has_field7() {
  29865. _has_bits_[0] &= ~0x00000020u;
  29866. }
  29867. inline void TestExtensionInsideTable::clear_field7() {
  29868. field7_ = 0;
  29869. clear_has_field7();
  29870. }
  29871. inline ::google::protobuf::int32 TestExtensionInsideTable::field7() const {
  29872. // @@protoc_insertion_point(field_get:protobuf_unittest.TestExtensionInsideTable.field7)
  29873. return field7_;
  29874. }
  29875. inline void TestExtensionInsideTable::set_field7(::google::protobuf::int32 value) {
  29876. set_has_field7();
  29877. field7_ = value;
  29878. // @@protoc_insertion_point(field_set:protobuf_unittest.TestExtensionInsideTable.field7)
  29879. }
  29880. // optional int32 field8 = 8;
  29881. inline bool TestExtensionInsideTable::has_field8() const {
  29882. return (_has_bits_[0] & 0x00000040u) != 0;
  29883. }
  29884. inline void TestExtensionInsideTable::set_has_field8() {
  29885. _has_bits_[0] |= 0x00000040u;
  29886. }
  29887. inline void TestExtensionInsideTable::clear_has_field8() {
  29888. _has_bits_[0] &= ~0x00000040u;
  29889. }
  29890. inline void TestExtensionInsideTable::clear_field8() {
  29891. field8_ = 0;
  29892. clear_has_field8();
  29893. }
  29894. inline ::google::protobuf::int32 TestExtensionInsideTable::field8() const {
  29895. // @@protoc_insertion_point(field_get:protobuf_unittest.TestExtensionInsideTable.field8)
  29896. return field8_;
  29897. }
  29898. inline void TestExtensionInsideTable::set_field8(::google::protobuf::int32 value) {
  29899. set_has_field8();
  29900. field8_ = value;
  29901. // @@protoc_insertion_point(field_set:protobuf_unittest.TestExtensionInsideTable.field8)
  29902. }
  29903. // optional int32 field9 = 9;
  29904. inline bool TestExtensionInsideTable::has_field9() const {
  29905. return (_has_bits_[0] & 0x00000080u) != 0;
  29906. }
  29907. inline void TestExtensionInsideTable::set_has_field9() {
  29908. _has_bits_[0] |= 0x00000080u;
  29909. }
  29910. inline void TestExtensionInsideTable::clear_has_field9() {
  29911. _has_bits_[0] &= ~0x00000080u;
  29912. }
  29913. inline void TestExtensionInsideTable::clear_field9() {
  29914. field9_ = 0;
  29915. clear_has_field9();
  29916. }
  29917. inline ::google::protobuf::int32 TestExtensionInsideTable::field9() const {
  29918. // @@protoc_insertion_point(field_get:protobuf_unittest.TestExtensionInsideTable.field9)
  29919. return field9_;
  29920. }
  29921. inline void TestExtensionInsideTable::set_field9(::google::protobuf::int32 value) {
  29922. set_has_field9();
  29923. field9_ = value;
  29924. // @@protoc_insertion_point(field_set:protobuf_unittest.TestExtensionInsideTable.field9)
  29925. }
  29926. // optional int32 field10 = 10;
  29927. inline bool TestExtensionInsideTable::has_field10() const {
  29928. return (_has_bits_[0] & 0x00000100u) != 0;
  29929. }
  29930. inline void TestExtensionInsideTable::set_has_field10() {
  29931. _has_bits_[0] |= 0x00000100u;
  29932. }
  29933. inline void TestExtensionInsideTable::clear_has_field10() {
  29934. _has_bits_[0] &= ~0x00000100u;
  29935. }
  29936. inline void TestExtensionInsideTable::clear_field10() {
  29937. field10_ = 0;
  29938. clear_has_field10();
  29939. }
  29940. inline ::google::protobuf::int32 TestExtensionInsideTable::field10() const {
  29941. // @@protoc_insertion_point(field_get:protobuf_unittest.TestExtensionInsideTable.field10)
  29942. return field10_;
  29943. }
  29944. inline void TestExtensionInsideTable::set_field10(::google::protobuf::int32 value) {
  29945. set_has_field10();
  29946. field10_ = value;
  29947. // @@protoc_insertion_point(field_set:protobuf_unittest.TestExtensionInsideTable.field10)
  29948. }
  29949. #ifdef __GNUC__
  29950. #pragma GCC diagnostic pop
  29951. #endif // __GNUC__
  29952. // -------------------------------------------------------------------
  29953. // -------------------------------------------------------------------
  29954. // -------------------------------------------------------------------
  29955. // -------------------------------------------------------------------
  29956. // -------------------------------------------------------------------
  29957. // -------------------------------------------------------------------
  29958. // -------------------------------------------------------------------
  29959. // -------------------------------------------------------------------
  29960. // -------------------------------------------------------------------
  29961. // -------------------------------------------------------------------
  29962. // -------------------------------------------------------------------
  29963. // -------------------------------------------------------------------
  29964. // -------------------------------------------------------------------
  29965. // -------------------------------------------------------------------
  29966. // -------------------------------------------------------------------
  29967. // -------------------------------------------------------------------
  29968. // -------------------------------------------------------------------
  29969. // -------------------------------------------------------------------
  29970. // -------------------------------------------------------------------
  29971. // -------------------------------------------------------------------
  29972. // -------------------------------------------------------------------
  29973. // -------------------------------------------------------------------
  29974. // -------------------------------------------------------------------
  29975. // -------------------------------------------------------------------
  29976. // -------------------------------------------------------------------
  29977. // -------------------------------------------------------------------
  29978. // -------------------------------------------------------------------
  29979. // -------------------------------------------------------------------
  29980. // -------------------------------------------------------------------
  29981. // -------------------------------------------------------------------
  29982. // -------------------------------------------------------------------
  29983. // -------------------------------------------------------------------
  29984. // -------------------------------------------------------------------
  29985. // -------------------------------------------------------------------
  29986. // -------------------------------------------------------------------
  29987. // -------------------------------------------------------------------
  29988. // -------------------------------------------------------------------
  29989. // -------------------------------------------------------------------
  29990. // -------------------------------------------------------------------
  29991. // -------------------------------------------------------------------
  29992. // -------------------------------------------------------------------
  29993. // -------------------------------------------------------------------
  29994. // -------------------------------------------------------------------
  29995. // -------------------------------------------------------------------
  29996. // -------------------------------------------------------------------
  29997. // -------------------------------------------------------------------
  29998. // -------------------------------------------------------------------
  29999. // -------------------------------------------------------------------
  30000. // -------------------------------------------------------------------
  30001. // -------------------------------------------------------------------
  30002. // -------------------------------------------------------------------
  30003. // -------------------------------------------------------------------
  30004. // -------------------------------------------------------------------
  30005. // -------------------------------------------------------------------
  30006. // -------------------------------------------------------------------
  30007. // -------------------------------------------------------------------
  30008. // -------------------------------------------------------------------
  30009. // -------------------------------------------------------------------
  30010. // -------------------------------------------------------------------
  30011. // -------------------------------------------------------------------
  30012. // -------------------------------------------------------------------
  30013. // -------------------------------------------------------------------
  30014. // -------------------------------------------------------------------
  30015. // -------------------------------------------------------------------
  30016. // -------------------------------------------------------------------
  30017. // -------------------------------------------------------------------
  30018. // -------------------------------------------------------------------
  30019. // -------------------------------------------------------------------
  30020. // -------------------------------------------------------------------
  30021. // -------------------------------------------------------------------
  30022. // -------------------------------------------------------------------
  30023. // -------------------------------------------------------------------
  30024. // -------------------------------------------------------------------
  30025. // -------------------------------------------------------------------
  30026. // -------------------------------------------------------------------
  30027. // -------------------------------------------------------------------
  30028. // -------------------------------------------------------------------
  30029. // -------------------------------------------------------------------
  30030. // -------------------------------------------------------------------
  30031. // -------------------------------------------------------------------
  30032. // -------------------------------------------------------------------
  30033. // -------------------------------------------------------------------
  30034. // -------------------------------------------------------------------
  30035. // -------------------------------------------------------------------
  30036. // -------------------------------------------------------------------
  30037. // -------------------------------------------------------------------
  30038. // -------------------------------------------------------------------
  30039. // -------------------------------------------------------------------
  30040. // -------------------------------------------------------------------
  30041. // -------------------------------------------------------------------
  30042. // @@protoc_insertion_point(namespace_scope)
  30043. } // namespace protobuf_unittest
  30044. namespace google {
  30045. namespace protobuf {
  30046. template <> struct is_proto_enum< ::protobuf_unittest::TestAllTypes_NestedEnum> : ::std::true_type {};
  30047. template <>
  30048. inline const EnumDescriptor* GetEnumDescriptor< ::protobuf_unittest::TestAllTypes_NestedEnum>() {
  30049. return ::protobuf_unittest::TestAllTypes_NestedEnum_descriptor();
  30050. }
  30051. template <> struct is_proto_enum< ::protobuf_unittest::TestOneof2_NestedEnum> : ::std::true_type {};
  30052. template <>
  30053. inline const EnumDescriptor* GetEnumDescriptor< ::protobuf_unittest::TestOneof2_NestedEnum>() {
  30054. return ::protobuf_unittest::TestOneof2_NestedEnum_descriptor();
  30055. }
  30056. template <> struct is_proto_enum< ::protobuf_unittest::TestDynamicExtensions_DynamicEnumType> : ::std::true_type {};
  30057. template <>
  30058. inline const EnumDescriptor* GetEnumDescriptor< ::protobuf_unittest::TestDynamicExtensions_DynamicEnumType>() {
  30059. return ::protobuf_unittest::TestDynamicExtensions_DynamicEnumType_descriptor();
  30060. }
  30061. template <> struct is_proto_enum< ::protobuf_unittest::ForeignEnum> : ::std::true_type {};
  30062. template <>
  30063. inline const EnumDescriptor* GetEnumDescriptor< ::protobuf_unittest::ForeignEnum>() {
  30064. return ::protobuf_unittest::ForeignEnum_descriptor();
  30065. }
  30066. template <> struct is_proto_enum< ::protobuf_unittest::TestEnumWithDupValue> : ::std::true_type {};
  30067. template <>
  30068. inline const EnumDescriptor* GetEnumDescriptor< ::protobuf_unittest::TestEnumWithDupValue>() {
  30069. return ::protobuf_unittest::TestEnumWithDupValue_descriptor();
  30070. }
  30071. template <> struct is_proto_enum< ::protobuf_unittest::TestSparseEnum> : ::std::true_type {};
  30072. template <>
  30073. inline const EnumDescriptor* GetEnumDescriptor< ::protobuf_unittest::TestSparseEnum>() {
  30074. return ::protobuf_unittest::TestSparseEnum_descriptor();
  30075. }
  30076. } // namespace protobuf
  30077. } // namespace google
  30078. // @@protoc_insertion_point(global_scope)
  30079. #endif // PROTOBUF_INCLUDED_google_2fprotobuf_2funittest_2eproto