unittest_lite.pb.h 506 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604
  1. // Generated by the protocol buffer compiler. DO NOT EDIT!
  2. // source: google/protobuf/unittest_lite.proto
  3. #ifndef PROTOBUF_INCLUDED_google_2fprotobuf_2funittest_5flite_2eproto
  4. #define PROTOBUF_INCLUDED_google_2fprotobuf_2funittest_5flite_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_lite.h>
  24. #include <google/protobuf/message_lite.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_lite.h>
  29. #include <google/protobuf/map_field_lite.h>
  30. #include <google/protobuf/generated_enum_util.h>
  31. #include <google/protobuf/unittest_import_lite.pb.h>
  32. // @@protoc_insertion_point(includes)
  33. #define PROTOBUF_INTERNAL_EXPORT_protobuf_google_2fprotobuf_2funittest_5flite_2eproto
  34. namespace protobuf_google_2fprotobuf_2funittest_5flite_2eproto {
  35. // Internal implementation detail -- do not use these members.
  36. struct TableStruct {
  37. static const ::google::protobuf::internal::ParseTableField entries[];
  38. static const ::google::protobuf::internal::AuxillaryParseTableField aux[];
  39. static const ::google::protobuf::internal::ParseTable schema[30];
  40. static const ::google::protobuf::internal::FieldMetadata field_metadata[];
  41. static const ::google::protobuf::internal::SerializationTable serialization_table[];
  42. static const ::google::protobuf::uint32 offsets[];
  43. };
  44. } // namespace protobuf_google_2fprotobuf_2funittest_5flite_2eproto
  45. namespace protobuf_unittest {
  46. class ForeignMessageLite;
  47. class ForeignMessageLiteDefaultTypeInternal;
  48. extern ForeignMessageLiteDefaultTypeInternal _ForeignMessageLite_default_instance_;
  49. class NonPackedFixed32;
  50. class NonPackedFixed32DefaultTypeInternal;
  51. extern NonPackedFixed32DefaultTypeInternal _NonPackedFixed32_default_instance_;
  52. class NonPackedInt32;
  53. class NonPackedInt32DefaultTypeInternal;
  54. extern NonPackedInt32DefaultTypeInternal _NonPackedInt32_default_instance_;
  55. class OptionalGroup_extension_lite;
  56. class OptionalGroup_extension_liteDefaultTypeInternal;
  57. extern OptionalGroup_extension_liteDefaultTypeInternal _OptionalGroup_extension_lite_default_instance_;
  58. class PackedFixed32;
  59. class PackedFixed32DefaultTypeInternal;
  60. extern PackedFixed32DefaultTypeInternal _PackedFixed32_default_instance_;
  61. class PackedInt32;
  62. class PackedInt32DefaultTypeInternal;
  63. extern PackedInt32DefaultTypeInternal _PackedInt32_default_instance_;
  64. class RepeatedGroup_extension_lite;
  65. class RepeatedGroup_extension_liteDefaultTypeInternal;
  66. extern RepeatedGroup_extension_liteDefaultTypeInternal _RepeatedGroup_extension_lite_default_instance_;
  67. class TestAllExtensionsLite;
  68. class TestAllExtensionsLiteDefaultTypeInternal;
  69. extern TestAllExtensionsLiteDefaultTypeInternal _TestAllExtensionsLite_default_instance_;
  70. class TestAllTypesLite;
  71. class TestAllTypesLiteDefaultTypeInternal;
  72. extern TestAllTypesLiteDefaultTypeInternal _TestAllTypesLite_default_instance_;
  73. class TestAllTypesLite_NestedMessage;
  74. class TestAllTypesLite_NestedMessageDefaultTypeInternal;
  75. extern TestAllTypesLite_NestedMessageDefaultTypeInternal _TestAllTypesLite_NestedMessage_default_instance_;
  76. class TestAllTypesLite_OptionalGroup;
  77. class TestAllTypesLite_OptionalGroupDefaultTypeInternal;
  78. extern TestAllTypesLite_OptionalGroupDefaultTypeInternal _TestAllTypesLite_OptionalGroup_default_instance_;
  79. class TestAllTypesLite_RepeatedGroup;
  80. class TestAllTypesLite_RepeatedGroupDefaultTypeInternal;
  81. extern TestAllTypesLite_RepeatedGroupDefaultTypeInternal _TestAllTypesLite_RepeatedGroup_default_instance_;
  82. class TestDeprecatedLite;
  83. class TestDeprecatedLiteDefaultTypeInternal;
  84. extern TestDeprecatedLiteDefaultTypeInternal _TestDeprecatedLite_default_instance_;
  85. class TestEmptyMessageLite;
  86. class TestEmptyMessageLiteDefaultTypeInternal;
  87. extern TestEmptyMessageLiteDefaultTypeInternal _TestEmptyMessageLite_default_instance_;
  88. class TestEmptyMessageWithExtensionsLite;
  89. class TestEmptyMessageWithExtensionsLiteDefaultTypeInternal;
  90. extern TestEmptyMessageWithExtensionsLiteDefaultTypeInternal _TestEmptyMessageWithExtensionsLite_default_instance_;
  91. class TestHugeFieldNumbersLite;
  92. class TestHugeFieldNumbersLiteDefaultTypeInternal;
  93. extern TestHugeFieldNumbersLiteDefaultTypeInternal _TestHugeFieldNumbersLite_default_instance_;
  94. class TestHugeFieldNumbersLite_OptionalGroup;
  95. class TestHugeFieldNumbersLite_OptionalGroupDefaultTypeInternal;
  96. extern TestHugeFieldNumbersLite_OptionalGroupDefaultTypeInternal _TestHugeFieldNumbersLite_OptionalGroup_default_instance_;
  97. class TestHugeFieldNumbersLite_StringStringMapEntry_DoNotUse;
  98. class TestHugeFieldNumbersLite_StringStringMapEntry_DoNotUseDefaultTypeInternal;
  99. extern TestHugeFieldNumbersLite_StringStringMapEntry_DoNotUseDefaultTypeInternal _TestHugeFieldNumbersLite_StringStringMapEntry_DoNotUse_default_instance_;
  100. class TestNestedExtensionLite;
  101. class TestNestedExtensionLiteDefaultTypeInternal;
  102. extern TestNestedExtensionLiteDefaultTypeInternal _TestNestedExtensionLite_default_instance_;
  103. class TestOneofParsingLite;
  104. class TestOneofParsingLiteDefaultTypeInternal;
  105. extern TestOneofParsingLiteDefaultTypeInternal _TestOneofParsingLite_default_instance_;
  106. class TestPackedExtensionsLite;
  107. class TestPackedExtensionsLiteDefaultTypeInternal;
  108. extern TestPackedExtensionsLiteDefaultTypeInternal _TestPackedExtensionsLite_default_instance_;
  109. class TestPackedTypesLite;
  110. class TestPackedTypesLiteDefaultTypeInternal;
  111. extern TestPackedTypesLiteDefaultTypeInternal _TestPackedTypesLite_default_instance_;
  112. class TestParsingMergeLite;
  113. class TestParsingMergeLiteDefaultTypeInternal;
  114. extern TestParsingMergeLiteDefaultTypeInternal _TestParsingMergeLite_default_instance_;
  115. class TestParsingMergeLite_OptionalGroup;
  116. class TestParsingMergeLite_OptionalGroupDefaultTypeInternal;
  117. extern TestParsingMergeLite_OptionalGroupDefaultTypeInternal _TestParsingMergeLite_OptionalGroup_default_instance_;
  118. class TestParsingMergeLite_RepeatedFieldsGenerator;
  119. class TestParsingMergeLite_RepeatedFieldsGeneratorDefaultTypeInternal;
  120. extern TestParsingMergeLite_RepeatedFieldsGeneratorDefaultTypeInternal _TestParsingMergeLite_RepeatedFieldsGenerator_default_instance_;
  121. class TestParsingMergeLite_RepeatedFieldsGenerator_Group1;
  122. class TestParsingMergeLite_RepeatedFieldsGenerator_Group1DefaultTypeInternal;
  123. extern TestParsingMergeLite_RepeatedFieldsGenerator_Group1DefaultTypeInternal _TestParsingMergeLite_RepeatedFieldsGenerator_Group1_default_instance_;
  124. class TestParsingMergeLite_RepeatedFieldsGenerator_Group2;
  125. class TestParsingMergeLite_RepeatedFieldsGenerator_Group2DefaultTypeInternal;
  126. extern TestParsingMergeLite_RepeatedFieldsGenerator_Group2DefaultTypeInternal _TestParsingMergeLite_RepeatedFieldsGenerator_Group2_default_instance_;
  127. class TestParsingMergeLite_RepeatedGroup;
  128. class TestParsingMergeLite_RepeatedGroupDefaultTypeInternal;
  129. extern TestParsingMergeLite_RepeatedGroupDefaultTypeInternal _TestParsingMergeLite_RepeatedGroup_default_instance_;
  130. class V1MessageLite;
  131. class V1MessageLiteDefaultTypeInternal;
  132. extern V1MessageLiteDefaultTypeInternal _V1MessageLite_default_instance_;
  133. class V2MessageLite;
  134. class V2MessageLiteDefaultTypeInternal;
  135. extern V2MessageLiteDefaultTypeInternal _V2MessageLite_default_instance_;
  136. } // namespace protobuf_unittest
  137. namespace google {
  138. namespace protobuf {
  139. template<> ::protobuf_unittest::ForeignMessageLite* Arena::CreateMaybeMessage<::protobuf_unittest::ForeignMessageLite>(Arena*);
  140. template<> ::protobuf_unittest::NonPackedFixed32* Arena::CreateMaybeMessage<::protobuf_unittest::NonPackedFixed32>(Arena*);
  141. template<> ::protobuf_unittest::NonPackedInt32* Arena::CreateMaybeMessage<::protobuf_unittest::NonPackedInt32>(Arena*);
  142. template<> ::protobuf_unittest::OptionalGroup_extension_lite* Arena::CreateMaybeMessage<::protobuf_unittest::OptionalGroup_extension_lite>(Arena*);
  143. template<> ::protobuf_unittest::PackedFixed32* Arena::CreateMaybeMessage<::protobuf_unittest::PackedFixed32>(Arena*);
  144. template<> ::protobuf_unittest::PackedInt32* Arena::CreateMaybeMessage<::protobuf_unittest::PackedInt32>(Arena*);
  145. template<> ::protobuf_unittest::RepeatedGroup_extension_lite* Arena::CreateMaybeMessage<::protobuf_unittest::RepeatedGroup_extension_lite>(Arena*);
  146. template<> ::protobuf_unittest::TestAllExtensionsLite* Arena::CreateMaybeMessage<::protobuf_unittest::TestAllExtensionsLite>(Arena*);
  147. template<> ::protobuf_unittest::TestAllTypesLite* Arena::CreateMaybeMessage<::protobuf_unittest::TestAllTypesLite>(Arena*);
  148. template<> ::protobuf_unittest::TestAllTypesLite_NestedMessage* Arena::CreateMaybeMessage<::protobuf_unittest::TestAllTypesLite_NestedMessage>(Arena*);
  149. template<> ::protobuf_unittest::TestAllTypesLite_OptionalGroup* Arena::CreateMaybeMessage<::protobuf_unittest::TestAllTypesLite_OptionalGroup>(Arena*);
  150. template<> ::protobuf_unittest::TestAllTypesLite_RepeatedGroup* Arena::CreateMaybeMessage<::protobuf_unittest::TestAllTypesLite_RepeatedGroup>(Arena*);
  151. template<> ::protobuf_unittest::TestDeprecatedLite* Arena::CreateMaybeMessage<::protobuf_unittest::TestDeprecatedLite>(Arena*);
  152. template<> ::protobuf_unittest::TestEmptyMessageLite* Arena::CreateMaybeMessage<::protobuf_unittest::TestEmptyMessageLite>(Arena*);
  153. template<> ::protobuf_unittest::TestEmptyMessageWithExtensionsLite* Arena::CreateMaybeMessage<::protobuf_unittest::TestEmptyMessageWithExtensionsLite>(Arena*);
  154. template<> ::protobuf_unittest::TestHugeFieldNumbersLite* Arena::CreateMaybeMessage<::protobuf_unittest::TestHugeFieldNumbersLite>(Arena*);
  155. template<> ::protobuf_unittest::TestHugeFieldNumbersLite_OptionalGroup* Arena::CreateMaybeMessage<::protobuf_unittest::TestHugeFieldNumbersLite_OptionalGroup>(Arena*);
  156. template<> ::protobuf_unittest::TestHugeFieldNumbersLite_StringStringMapEntry_DoNotUse* Arena::CreateMaybeMessage<::protobuf_unittest::TestHugeFieldNumbersLite_StringStringMapEntry_DoNotUse>(Arena*);
  157. template<> ::protobuf_unittest::TestNestedExtensionLite* Arena::CreateMaybeMessage<::protobuf_unittest::TestNestedExtensionLite>(Arena*);
  158. template<> ::protobuf_unittest::TestOneofParsingLite* Arena::CreateMaybeMessage<::protobuf_unittest::TestOneofParsingLite>(Arena*);
  159. template<> ::protobuf_unittest::TestPackedExtensionsLite* Arena::CreateMaybeMessage<::protobuf_unittest::TestPackedExtensionsLite>(Arena*);
  160. template<> ::protobuf_unittest::TestPackedTypesLite* Arena::CreateMaybeMessage<::protobuf_unittest::TestPackedTypesLite>(Arena*);
  161. template<> ::protobuf_unittest::TestParsingMergeLite* Arena::CreateMaybeMessage<::protobuf_unittest::TestParsingMergeLite>(Arena*);
  162. template<> ::protobuf_unittest::TestParsingMergeLite_OptionalGroup* Arena::CreateMaybeMessage<::protobuf_unittest::TestParsingMergeLite_OptionalGroup>(Arena*);
  163. template<> ::protobuf_unittest::TestParsingMergeLite_RepeatedFieldsGenerator* Arena::CreateMaybeMessage<::protobuf_unittest::TestParsingMergeLite_RepeatedFieldsGenerator>(Arena*);
  164. template<> ::protobuf_unittest::TestParsingMergeLite_RepeatedFieldsGenerator_Group1* Arena::CreateMaybeMessage<::protobuf_unittest::TestParsingMergeLite_RepeatedFieldsGenerator_Group1>(Arena*);
  165. template<> ::protobuf_unittest::TestParsingMergeLite_RepeatedFieldsGenerator_Group2* Arena::CreateMaybeMessage<::protobuf_unittest::TestParsingMergeLite_RepeatedFieldsGenerator_Group2>(Arena*);
  166. template<> ::protobuf_unittest::TestParsingMergeLite_RepeatedGroup* Arena::CreateMaybeMessage<::protobuf_unittest::TestParsingMergeLite_RepeatedGroup>(Arena*);
  167. template<> ::protobuf_unittest::V1MessageLite* Arena::CreateMaybeMessage<::protobuf_unittest::V1MessageLite>(Arena*);
  168. template<> ::protobuf_unittest::V2MessageLite* Arena::CreateMaybeMessage<::protobuf_unittest::V2MessageLite>(Arena*);
  169. } // namespace protobuf
  170. } // namespace google
  171. namespace protobuf_unittest {
  172. enum TestAllTypesLite_NestedEnum {
  173. TestAllTypesLite_NestedEnum_FOO = 1,
  174. TestAllTypesLite_NestedEnum_BAR = 2,
  175. TestAllTypesLite_NestedEnum_BAZ = 3
  176. };
  177. bool TestAllTypesLite_NestedEnum_IsValid(int value);
  178. const TestAllTypesLite_NestedEnum TestAllTypesLite_NestedEnum_NestedEnum_MIN = TestAllTypesLite_NestedEnum_FOO;
  179. const TestAllTypesLite_NestedEnum TestAllTypesLite_NestedEnum_NestedEnum_MAX = TestAllTypesLite_NestedEnum_BAZ;
  180. const int TestAllTypesLite_NestedEnum_NestedEnum_ARRAYSIZE = TestAllTypesLite_NestedEnum_NestedEnum_MAX + 1;
  181. enum ForeignEnumLite {
  182. FOREIGN_LITE_FOO = 4,
  183. FOREIGN_LITE_BAR = 5,
  184. FOREIGN_LITE_BAZ = 6
  185. };
  186. bool ForeignEnumLite_IsValid(int value);
  187. const ForeignEnumLite ForeignEnumLite_MIN = FOREIGN_LITE_FOO;
  188. const ForeignEnumLite ForeignEnumLite_MAX = FOREIGN_LITE_BAZ;
  189. const int ForeignEnumLite_ARRAYSIZE = ForeignEnumLite_MAX + 1;
  190. enum V1EnumLite {
  191. V1_FIRST = 1
  192. };
  193. bool V1EnumLite_IsValid(int value);
  194. const V1EnumLite V1EnumLite_MIN = V1_FIRST;
  195. const V1EnumLite V1EnumLite_MAX = V1_FIRST;
  196. const int V1EnumLite_ARRAYSIZE = V1EnumLite_MAX + 1;
  197. enum V2EnumLite {
  198. V2_FIRST = 1,
  199. V2_SECOND = 2
  200. };
  201. bool V2EnumLite_IsValid(int value);
  202. const V2EnumLite V2EnumLite_MIN = V2_FIRST;
  203. const V2EnumLite V2EnumLite_MAX = V2_SECOND;
  204. const int V2EnumLite_ARRAYSIZE = V2EnumLite_MAX + 1;
  205. // ===================================================================
  206. class TestAllTypesLite_NestedMessage : public ::google::protobuf::MessageLite /* @@protoc_insertion_point(class_definition:protobuf_unittest.TestAllTypesLite.NestedMessage) */ {
  207. public:
  208. TestAllTypesLite_NestedMessage();
  209. virtual ~TestAllTypesLite_NestedMessage();
  210. TestAllTypesLite_NestedMessage(const TestAllTypesLite_NestedMessage& from);
  211. inline TestAllTypesLite_NestedMessage& operator=(const TestAllTypesLite_NestedMessage& from) {
  212. CopyFrom(from);
  213. return *this;
  214. }
  215. #if LANG_CXX11
  216. TestAllTypesLite_NestedMessage(TestAllTypesLite_NestedMessage&& from) noexcept
  217. : TestAllTypesLite_NestedMessage() {
  218. *this = ::std::move(from);
  219. }
  220. inline TestAllTypesLite_NestedMessage& operator=(TestAllTypesLite_NestedMessage&& from) noexcept {
  221. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  222. if (this != &from) InternalSwap(&from);
  223. } else {
  224. CopyFrom(from);
  225. }
  226. return *this;
  227. }
  228. #endif
  229. inline const ::std::string& unknown_fields() const {
  230. return _internal_metadata_.unknown_fields();
  231. }
  232. inline ::std::string* mutable_unknown_fields() {
  233. return _internal_metadata_.mutable_unknown_fields();
  234. }
  235. static const TestAllTypesLite_NestedMessage& default_instance();
  236. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  237. static inline const TestAllTypesLite_NestedMessage* internal_default_instance() {
  238. return reinterpret_cast<const TestAllTypesLite_NestedMessage*>(
  239. &_TestAllTypesLite_NestedMessage_default_instance_);
  240. }
  241. static constexpr int kIndexInFileMessages =
  242. 0;
  243. void Swap(TestAllTypesLite_NestedMessage* other);
  244. friend void swap(TestAllTypesLite_NestedMessage& a, TestAllTypesLite_NestedMessage& b) {
  245. a.Swap(&b);
  246. }
  247. // implements Message ----------------------------------------------
  248. inline TestAllTypesLite_NestedMessage* New() const final {
  249. return CreateMaybeMessage<TestAllTypesLite_NestedMessage>(NULL);
  250. }
  251. TestAllTypesLite_NestedMessage* New(::google::protobuf::Arena* arena) const final {
  252. return CreateMaybeMessage<TestAllTypesLite_NestedMessage>(arena);
  253. }
  254. void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from)
  255. final;
  256. void CopyFrom(const TestAllTypesLite_NestedMessage& from);
  257. void MergeFrom(const TestAllTypesLite_NestedMessage& from);
  258. void Clear() final;
  259. bool IsInitialized() const final;
  260. size_t ByteSizeLong() const final;
  261. bool MergePartialFromCodedStream(
  262. ::google::protobuf::io::CodedInputStream* input) final;
  263. void SerializeWithCachedSizes(
  264. ::google::protobuf::io::CodedOutputStream* output) const final;
  265. void DiscardUnknownFields();
  266. int GetCachedSize() const final { return _cached_size_.Get(); }
  267. private:
  268. void SharedCtor();
  269. void SharedDtor();
  270. void SetCachedSize(int size) const;
  271. void InternalSwap(TestAllTypesLite_NestedMessage* other);
  272. private:
  273. inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
  274. return NULL;
  275. }
  276. inline void* MaybeArenaPtr() const {
  277. return NULL;
  278. }
  279. public:
  280. ::std::string GetTypeName() const final;
  281. // nested types ----------------------------------------------------
  282. // accessors -------------------------------------------------------
  283. // optional int64 cc = 2;
  284. bool has_cc() const;
  285. void clear_cc();
  286. static const int kCcFieldNumber = 2;
  287. ::google::protobuf::int64 cc() const;
  288. void set_cc(::google::protobuf::int64 value);
  289. // optional int32 bb = 1;
  290. bool has_bb() const;
  291. void clear_bb();
  292. static const int kBbFieldNumber = 1;
  293. ::google::protobuf::int32 bb() const;
  294. void set_bb(::google::protobuf::int32 value);
  295. // @@protoc_insertion_point(class_scope:protobuf_unittest.TestAllTypesLite.NestedMessage)
  296. private:
  297. void set_has_bb();
  298. void clear_has_bb();
  299. void set_has_cc();
  300. void clear_has_cc();
  301. ::google::protobuf::internal::InternalMetadataWithArenaLite _internal_metadata_;
  302. ::google::protobuf::internal::HasBits<1> _has_bits_;
  303. mutable ::google::protobuf::internal::CachedSize _cached_size_;
  304. ::google::protobuf::int64 cc_;
  305. ::google::protobuf::int32 bb_;
  306. friend struct ::protobuf_google_2fprotobuf_2funittest_5flite_2eproto::TableStruct;
  307. };
  308. // -------------------------------------------------------------------
  309. class TestAllTypesLite_OptionalGroup : public ::google::protobuf::MessageLite /* @@protoc_insertion_point(class_definition:protobuf_unittest.TestAllTypesLite.OptionalGroup) */ {
  310. public:
  311. TestAllTypesLite_OptionalGroup();
  312. virtual ~TestAllTypesLite_OptionalGroup();
  313. TestAllTypesLite_OptionalGroup(const TestAllTypesLite_OptionalGroup& from);
  314. inline TestAllTypesLite_OptionalGroup& operator=(const TestAllTypesLite_OptionalGroup& from) {
  315. CopyFrom(from);
  316. return *this;
  317. }
  318. #if LANG_CXX11
  319. TestAllTypesLite_OptionalGroup(TestAllTypesLite_OptionalGroup&& from) noexcept
  320. : TestAllTypesLite_OptionalGroup() {
  321. *this = ::std::move(from);
  322. }
  323. inline TestAllTypesLite_OptionalGroup& operator=(TestAllTypesLite_OptionalGroup&& from) noexcept {
  324. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  325. if (this != &from) InternalSwap(&from);
  326. } else {
  327. CopyFrom(from);
  328. }
  329. return *this;
  330. }
  331. #endif
  332. inline const ::std::string& unknown_fields() const {
  333. return _internal_metadata_.unknown_fields();
  334. }
  335. inline ::std::string* mutable_unknown_fields() {
  336. return _internal_metadata_.mutable_unknown_fields();
  337. }
  338. static const TestAllTypesLite_OptionalGroup& default_instance();
  339. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  340. static inline const TestAllTypesLite_OptionalGroup* internal_default_instance() {
  341. return reinterpret_cast<const TestAllTypesLite_OptionalGroup*>(
  342. &_TestAllTypesLite_OptionalGroup_default_instance_);
  343. }
  344. static constexpr int kIndexInFileMessages =
  345. 1;
  346. void Swap(TestAllTypesLite_OptionalGroup* other);
  347. friend void swap(TestAllTypesLite_OptionalGroup& a, TestAllTypesLite_OptionalGroup& b) {
  348. a.Swap(&b);
  349. }
  350. // implements Message ----------------------------------------------
  351. inline TestAllTypesLite_OptionalGroup* New() const final {
  352. return CreateMaybeMessage<TestAllTypesLite_OptionalGroup>(NULL);
  353. }
  354. TestAllTypesLite_OptionalGroup* New(::google::protobuf::Arena* arena) const final {
  355. return CreateMaybeMessage<TestAllTypesLite_OptionalGroup>(arena);
  356. }
  357. void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from)
  358. final;
  359. void CopyFrom(const TestAllTypesLite_OptionalGroup& from);
  360. void MergeFrom(const TestAllTypesLite_OptionalGroup& from);
  361. void Clear() final;
  362. bool IsInitialized() const final;
  363. size_t ByteSizeLong() const final;
  364. bool MergePartialFromCodedStream(
  365. ::google::protobuf::io::CodedInputStream* input) final;
  366. void SerializeWithCachedSizes(
  367. ::google::protobuf::io::CodedOutputStream* output) const final;
  368. void DiscardUnknownFields();
  369. int GetCachedSize() const final { return _cached_size_.Get(); }
  370. private:
  371. void SharedCtor();
  372. void SharedDtor();
  373. void SetCachedSize(int size) const;
  374. void InternalSwap(TestAllTypesLite_OptionalGroup* other);
  375. private:
  376. inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
  377. return NULL;
  378. }
  379. inline void* MaybeArenaPtr() const {
  380. return NULL;
  381. }
  382. public:
  383. ::std::string GetTypeName() const final;
  384. // nested types ----------------------------------------------------
  385. // accessors -------------------------------------------------------
  386. // optional int32 a = 17;
  387. bool has_a() const;
  388. void clear_a();
  389. static const int kAFieldNumber = 17;
  390. ::google::protobuf::int32 a() const;
  391. void set_a(::google::protobuf::int32 value);
  392. // @@protoc_insertion_point(class_scope:protobuf_unittest.TestAllTypesLite.OptionalGroup)
  393. private:
  394. void set_has_a();
  395. void clear_has_a();
  396. ::google::protobuf::internal::InternalMetadataWithArenaLite _internal_metadata_;
  397. ::google::protobuf::internal::HasBits<1> _has_bits_;
  398. mutable ::google::protobuf::internal::CachedSize _cached_size_;
  399. ::google::protobuf::int32 a_;
  400. friend struct ::protobuf_google_2fprotobuf_2funittest_5flite_2eproto::TableStruct;
  401. };
  402. // -------------------------------------------------------------------
  403. class TestAllTypesLite_RepeatedGroup : public ::google::protobuf::MessageLite /* @@protoc_insertion_point(class_definition:protobuf_unittest.TestAllTypesLite.RepeatedGroup) */ {
  404. public:
  405. TestAllTypesLite_RepeatedGroup();
  406. virtual ~TestAllTypesLite_RepeatedGroup();
  407. TestAllTypesLite_RepeatedGroup(const TestAllTypesLite_RepeatedGroup& from);
  408. inline TestAllTypesLite_RepeatedGroup& operator=(const TestAllTypesLite_RepeatedGroup& from) {
  409. CopyFrom(from);
  410. return *this;
  411. }
  412. #if LANG_CXX11
  413. TestAllTypesLite_RepeatedGroup(TestAllTypesLite_RepeatedGroup&& from) noexcept
  414. : TestAllTypesLite_RepeatedGroup() {
  415. *this = ::std::move(from);
  416. }
  417. inline TestAllTypesLite_RepeatedGroup& operator=(TestAllTypesLite_RepeatedGroup&& from) noexcept {
  418. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  419. if (this != &from) InternalSwap(&from);
  420. } else {
  421. CopyFrom(from);
  422. }
  423. return *this;
  424. }
  425. #endif
  426. inline const ::std::string& unknown_fields() const {
  427. return _internal_metadata_.unknown_fields();
  428. }
  429. inline ::std::string* mutable_unknown_fields() {
  430. return _internal_metadata_.mutable_unknown_fields();
  431. }
  432. static const TestAllTypesLite_RepeatedGroup& default_instance();
  433. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  434. static inline const TestAllTypesLite_RepeatedGroup* internal_default_instance() {
  435. return reinterpret_cast<const TestAllTypesLite_RepeatedGroup*>(
  436. &_TestAllTypesLite_RepeatedGroup_default_instance_);
  437. }
  438. static constexpr int kIndexInFileMessages =
  439. 2;
  440. void Swap(TestAllTypesLite_RepeatedGroup* other);
  441. friend void swap(TestAllTypesLite_RepeatedGroup& a, TestAllTypesLite_RepeatedGroup& b) {
  442. a.Swap(&b);
  443. }
  444. // implements Message ----------------------------------------------
  445. inline TestAllTypesLite_RepeatedGroup* New() const final {
  446. return CreateMaybeMessage<TestAllTypesLite_RepeatedGroup>(NULL);
  447. }
  448. TestAllTypesLite_RepeatedGroup* New(::google::protobuf::Arena* arena) const final {
  449. return CreateMaybeMessage<TestAllTypesLite_RepeatedGroup>(arena);
  450. }
  451. void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from)
  452. final;
  453. void CopyFrom(const TestAllTypesLite_RepeatedGroup& from);
  454. void MergeFrom(const TestAllTypesLite_RepeatedGroup& from);
  455. void Clear() final;
  456. bool IsInitialized() const final;
  457. size_t ByteSizeLong() const final;
  458. bool MergePartialFromCodedStream(
  459. ::google::protobuf::io::CodedInputStream* input) final;
  460. void SerializeWithCachedSizes(
  461. ::google::protobuf::io::CodedOutputStream* output) const final;
  462. void DiscardUnknownFields();
  463. int GetCachedSize() const final { return _cached_size_.Get(); }
  464. private:
  465. void SharedCtor();
  466. void SharedDtor();
  467. void SetCachedSize(int size) const;
  468. void InternalSwap(TestAllTypesLite_RepeatedGroup* other);
  469. private:
  470. inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
  471. return NULL;
  472. }
  473. inline void* MaybeArenaPtr() const {
  474. return NULL;
  475. }
  476. public:
  477. ::std::string GetTypeName() const final;
  478. // nested types ----------------------------------------------------
  479. // accessors -------------------------------------------------------
  480. // optional int32 a = 47;
  481. bool has_a() const;
  482. void clear_a();
  483. static const int kAFieldNumber = 47;
  484. ::google::protobuf::int32 a() const;
  485. void set_a(::google::protobuf::int32 value);
  486. // @@protoc_insertion_point(class_scope:protobuf_unittest.TestAllTypesLite.RepeatedGroup)
  487. private:
  488. void set_has_a();
  489. void clear_has_a();
  490. ::google::protobuf::internal::InternalMetadataWithArenaLite _internal_metadata_;
  491. ::google::protobuf::internal::HasBits<1> _has_bits_;
  492. mutable ::google::protobuf::internal::CachedSize _cached_size_;
  493. ::google::protobuf::int32 a_;
  494. friend struct ::protobuf_google_2fprotobuf_2funittest_5flite_2eproto::TableStruct;
  495. };
  496. // -------------------------------------------------------------------
  497. class TestAllTypesLite : public ::google::protobuf::MessageLite /* @@protoc_insertion_point(class_definition:protobuf_unittest.TestAllTypesLite) */ {
  498. public:
  499. TestAllTypesLite();
  500. virtual ~TestAllTypesLite();
  501. TestAllTypesLite(const TestAllTypesLite& from);
  502. inline TestAllTypesLite& operator=(const TestAllTypesLite& from) {
  503. CopyFrom(from);
  504. return *this;
  505. }
  506. #if LANG_CXX11
  507. TestAllTypesLite(TestAllTypesLite&& from) noexcept
  508. : TestAllTypesLite() {
  509. *this = ::std::move(from);
  510. }
  511. inline TestAllTypesLite& operator=(TestAllTypesLite&& from) noexcept {
  512. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  513. if (this != &from) InternalSwap(&from);
  514. } else {
  515. CopyFrom(from);
  516. }
  517. return *this;
  518. }
  519. #endif
  520. inline const ::std::string& unknown_fields() const {
  521. return _internal_metadata_.unknown_fields();
  522. }
  523. inline ::std::string* mutable_unknown_fields() {
  524. return _internal_metadata_.mutable_unknown_fields();
  525. }
  526. static const TestAllTypesLite& default_instance();
  527. enum OneofFieldCase {
  528. kOneofUint32 = 111,
  529. kOneofNestedMessage = 112,
  530. kOneofString = 113,
  531. kOneofBytes = 114,
  532. kOneofLazyNestedMessage = 115,
  533. ONEOF_FIELD_NOT_SET = 0,
  534. };
  535. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  536. static inline const TestAllTypesLite* internal_default_instance() {
  537. return reinterpret_cast<const TestAllTypesLite*>(
  538. &_TestAllTypesLite_default_instance_);
  539. }
  540. static constexpr int kIndexInFileMessages =
  541. 3;
  542. void Swap(TestAllTypesLite* other);
  543. friend void swap(TestAllTypesLite& a, TestAllTypesLite& b) {
  544. a.Swap(&b);
  545. }
  546. // implements Message ----------------------------------------------
  547. inline TestAllTypesLite* New() const final {
  548. return CreateMaybeMessage<TestAllTypesLite>(NULL);
  549. }
  550. TestAllTypesLite* New(::google::protobuf::Arena* arena) const final {
  551. return CreateMaybeMessage<TestAllTypesLite>(arena);
  552. }
  553. void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from)
  554. final;
  555. void CopyFrom(const TestAllTypesLite& from);
  556. void MergeFrom(const TestAllTypesLite& from);
  557. void Clear() final;
  558. bool IsInitialized() const final;
  559. size_t ByteSizeLong() const final;
  560. bool MergePartialFromCodedStream(
  561. ::google::protobuf::io::CodedInputStream* input) final;
  562. void SerializeWithCachedSizes(
  563. ::google::protobuf::io::CodedOutputStream* output) const final;
  564. void DiscardUnknownFields();
  565. int GetCachedSize() const final { return _cached_size_.Get(); }
  566. private:
  567. void SharedCtor();
  568. void SharedDtor();
  569. void SetCachedSize(int size) const;
  570. void InternalSwap(TestAllTypesLite* other);
  571. private:
  572. inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
  573. return NULL;
  574. }
  575. inline void* MaybeArenaPtr() const {
  576. return NULL;
  577. }
  578. public:
  579. ::std::string GetTypeName() const final;
  580. // nested types ----------------------------------------------------
  581. typedef TestAllTypesLite_NestedMessage NestedMessage;
  582. typedef TestAllTypesLite_OptionalGroup OptionalGroup;
  583. typedef TestAllTypesLite_RepeatedGroup RepeatedGroup;
  584. typedef TestAllTypesLite_NestedEnum NestedEnum;
  585. static const NestedEnum FOO =
  586. TestAllTypesLite_NestedEnum_FOO;
  587. static const NestedEnum BAR =
  588. TestAllTypesLite_NestedEnum_BAR;
  589. static const NestedEnum BAZ =
  590. TestAllTypesLite_NestedEnum_BAZ;
  591. static inline bool NestedEnum_IsValid(int value) {
  592. return TestAllTypesLite_NestedEnum_IsValid(value);
  593. }
  594. static const NestedEnum NestedEnum_MIN =
  595. TestAllTypesLite_NestedEnum_NestedEnum_MIN;
  596. static const NestedEnum NestedEnum_MAX =
  597. TestAllTypesLite_NestedEnum_NestedEnum_MAX;
  598. static const int NestedEnum_ARRAYSIZE =
  599. TestAllTypesLite_NestedEnum_NestedEnum_ARRAYSIZE;
  600. // accessors -------------------------------------------------------
  601. // repeated int32 repeated_int32 = 31;
  602. int repeated_int32_size() const;
  603. void clear_repeated_int32();
  604. static const int kRepeatedInt32FieldNumber = 31;
  605. ::google::protobuf::int32 repeated_int32(int index) const;
  606. void set_repeated_int32(int index, ::google::protobuf::int32 value);
  607. void add_repeated_int32(::google::protobuf::int32 value);
  608. const ::google::protobuf::RepeatedField< ::google::protobuf::int32 >&
  609. repeated_int32() const;
  610. ::google::protobuf::RepeatedField< ::google::protobuf::int32 >*
  611. mutable_repeated_int32();
  612. // repeated int64 repeated_int64 = 32;
  613. int repeated_int64_size() const;
  614. void clear_repeated_int64();
  615. static const int kRepeatedInt64FieldNumber = 32;
  616. ::google::protobuf::int64 repeated_int64(int index) const;
  617. void set_repeated_int64(int index, ::google::protobuf::int64 value);
  618. void add_repeated_int64(::google::protobuf::int64 value);
  619. const ::google::protobuf::RepeatedField< ::google::protobuf::int64 >&
  620. repeated_int64() const;
  621. ::google::protobuf::RepeatedField< ::google::protobuf::int64 >*
  622. mutable_repeated_int64();
  623. // repeated uint32 repeated_uint32 = 33;
  624. int repeated_uint32_size() const;
  625. void clear_repeated_uint32();
  626. static const int kRepeatedUint32FieldNumber = 33;
  627. ::google::protobuf::uint32 repeated_uint32(int index) const;
  628. void set_repeated_uint32(int index, ::google::protobuf::uint32 value);
  629. void add_repeated_uint32(::google::protobuf::uint32 value);
  630. const ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >&
  631. repeated_uint32() const;
  632. ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >*
  633. mutable_repeated_uint32();
  634. // repeated uint64 repeated_uint64 = 34;
  635. int repeated_uint64_size() const;
  636. void clear_repeated_uint64();
  637. static const int kRepeatedUint64FieldNumber = 34;
  638. ::google::protobuf::uint64 repeated_uint64(int index) const;
  639. void set_repeated_uint64(int index, ::google::protobuf::uint64 value);
  640. void add_repeated_uint64(::google::protobuf::uint64 value);
  641. const ::google::protobuf::RepeatedField< ::google::protobuf::uint64 >&
  642. repeated_uint64() const;
  643. ::google::protobuf::RepeatedField< ::google::protobuf::uint64 >*
  644. mutable_repeated_uint64();
  645. // repeated sint32 repeated_sint32 = 35;
  646. int repeated_sint32_size() const;
  647. void clear_repeated_sint32();
  648. static const int kRepeatedSint32FieldNumber = 35;
  649. ::google::protobuf::int32 repeated_sint32(int index) const;
  650. void set_repeated_sint32(int index, ::google::protobuf::int32 value);
  651. void add_repeated_sint32(::google::protobuf::int32 value);
  652. const ::google::protobuf::RepeatedField< ::google::protobuf::int32 >&
  653. repeated_sint32() const;
  654. ::google::protobuf::RepeatedField< ::google::protobuf::int32 >*
  655. mutable_repeated_sint32();
  656. // repeated sint64 repeated_sint64 = 36;
  657. int repeated_sint64_size() const;
  658. void clear_repeated_sint64();
  659. static const int kRepeatedSint64FieldNumber = 36;
  660. ::google::protobuf::int64 repeated_sint64(int index) const;
  661. void set_repeated_sint64(int index, ::google::protobuf::int64 value);
  662. void add_repeated_sint64(::google::protobuf::int64 value);
  663. const ::google::protobuf::RepeatedField< ::google::protobuf::int64 >&
  664. repeated_sint64() const;
  665. ::google::protobuf::RepeatedField< ::google::protobuf::int64 >*
  666. mutable_repeated_sint64();
  667. // repeated fixed32 repeated_fixed32 = 37;
  668. int repeated_fixed32_size() const;
  669. void clear_repeated_fixed32();
  670. static const int kRepeatedFixed32FieldNumber = 37;
  671. ::google::protobuf::uint32 repeated_fixed32(int index) const;
  672. void set_repeated_fixed32(int index, ::google::protobuf::uint32 value);
  673. void add_repeated_fixed32(::google::protobuf::uint32 value);
  674. const ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >&
  675. repeated_fixed32() const;
  676. ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >*
  677. mutable_repeated_fixed32();
  678. // repeated fixed64 repeated_fixed64 = 38;
  679. int repeated_fixed64_size() const;
  680. void clear_repeated_fixed64();
  681. static const int kRepeatedFixed64FieldNumber = 38;
  682. ::google::protobuf::uint64 repeated_fixed64(int index) const;
  683. void set_repeated_fixed64(int index, ::google::protobuf::uint64 value);
  684. void add_repeated_fixed64(::google::protobuf::uint64 value);
  685. const ::google::protobuf::RepeatedField< ::google::protobuf::uint64 >&
  686. repeated_fixed64() const;
  687. ::google::protobuf::RepeatedField< ::google::protobuf::uint64 >*
  688. mutable_repeated_fixed64();
  689. // repeated sfixed32 repeated_sfixed32 = 39;
  690. int repeated_sfixed32_size() const;
  691. void clear_repeated_sfixed32();
  692. static const int kRepeatedSfixed32FieldNumber = 39;
  693. ::google::protobuf::int32 repeated_sfixed32(int index) const;
  694. void set_repeated_sfixed32(int index, ::google::protobuf::int32 value);
  695. void add_repeated_sfixed32(::google::protobuf::int32 value);
  696. const ::google::protobuf::RepeatedField< ::google::protobuf::int32 >&
  697. repeated_sfixed32() const;
  698. ::google::protobuf::RepeatedField< ::google::protobuf::int32 >*
  699. mutable_repeated_sfixed32();
  700. // repeated sfixed64 repeated_sfixed64 = 40;
  701. int repeated_sfixed64_size() const;
  702. void clear_repeated_sfixed64();
  703. static const int kRepeatedSfixed64FieldNumber = 40;
  704. ::google::protobuf::int64 repeated_sfixed64(int index) const;
  705. void set_repeated_sfixed64(int index, ::google::protobuf::int64 value);
  706. void add_repeated_sfixed64(::google::protobuf::int64 value);
  707. const ::google::protobuf::RepeatedField< ::google::protobuf::int64 >&
  708. repeated_sfixed64() const;
  709. ::google::protobuf::RepeatedField< ::google::protobuf::int64 >*
  710. mutable_repeated_sfixed64();
  711. // repeated float repeated_float = 41;
  712. int repeated_float_size() const;
  713. void clear_repeated_float();
  714. static const int kRepeatedFloatFieldNumber = 41;
  715. float repeated_float(int index) const;
  716. void set_repeated_float(int index, float value);
  717. void add_repeated_float(float value);
  718. const ::google::protobuf::RepeatedField< float >&
  719. repeated_float() const;
  720. ::google::protobuf::RepeatedField< float >*
  721. mutable_repeated_float();
  722. // repeated double repeated_double = 42;
  723. int repeated_double_size() const;
  724. void clear_repeated_double();
  725. static const int kRepeatedDoubleFieldNumber = 42;
  726. double repeated_double(int index) const;
  727. void set_repeated_double(int index, double value);
  728. void add_repeated_double(double value);
  729. const ::google::protobuf::RepeatedField< double >&
  730. repeated_double() const;
  731. ::google::protobuf::RepeatedField< double >*
  732. mutable_repeated_double();
  733. // repeated bool repeated_bool = 43;
  734. int repeated_bool_size() const;
  735. void clear_repeated_bool();
  736. static const int kRepeatedBoolFieldNumber = 43;
  737. bool repeated_bool(int index) const;
  738. void set_repeated_bool(int index, bool value);
  739. void add_repeated_bool(bool value);
  740. const ::google::protobuf::RepeatedField< bool >&
  741. repeated_bool() const;
  742. ::google::protobuf::RepeatedField< bool >*
  743. mutable_repeated_bool();
  744. // repeated string repeated_string = 44;
  745. int repeated_string_size() const;
  746. void clear_repeated_string();
  747. static const int kRepeatedStringFieldNumber = 44;
  748. const ::std::string& repeated_string(int index) const;
  749. ::std::string* mutable_repeated_string(int index);
  750. void set_repeated_string(int index, const ::std::string& value);
  751. #if LANG_CXX11
  752. void set_repeated_string(int index, ::std::string&& value);
  753. #endif
  754. void set_repeated_string(int index, const char* value);
  755. void set_repeated_string(int index, const char* value, size_t size);
  756. ::std::string* add_repeated_string();
  757. void add_repeated_string(const ::std::string& value);
  758. #if LANG_CXX11
  759. void add_repeated_string(::std::string&& value);
  760. #endif
  761. void add_repeated_string(const char* value);
  762. void add_repeated_string(const char* value, size_t size);
  763. const ::google::protobuf::RepeatedPtrField< ::std::string>& repeated_string() const;
  764. ::google::protobuf::RepeatedPtrField< ::std::string>* mutable_repeated_string();
  765. // repeated bytes repeated_bytes = 45;
  766. int repeated_bytes_size() const;
  767. void clear_repeated_bytes();
  768. static const int kRepeatedBytesFieldNumber = 45;
  769. const ::std::string& repeated_bytes(int index) const;
  770. ::std::string* mutable_repeated_bytes(int index);
  771. void set_repeated_bytes(int index, const ::std::string& value);
  772. #if LANG_CXX11
  773. void set_repeated_bytes(int index, ::std::string&& value);
  774. #endif
  775. void set_repeated_bytes(int index, const char* value);
  776. void set_repeated_bytes(int index, const void* value, size_t size);
  777. ::std::string* add_repeated_bytes();
  778. void add_repeated_bytes(const ::std::string& value);
  779. #if LANG_CXX11
  780. void add_repeated_bytes(::std::string&& value);
  781. #endif
  782. void add_repeated_bytes(const char* value);
  783. void add_repeated_bytes(const void* value, size_t size);
  784. const ::google::protobuf::RepeatedPtrField< ::std::string>& repeated_bytes() const;
  785. ::google::protobuf::RepeatedPtrField< ::std::string>* mutable_repeated_bytes();
  786. // repeated group RepeatedGroup = 46 { ... };
  787. int repeatedgroup_size() const;
  788. void clear_repeatedgroup();
  789. static const int kRepeatedgroupFieldNumber = 46;
  790. ::protobuf_unittest::TestAllTypesLite_RepeatedGroup* mutable_repeatedgroup(int index);
  791. ::google::protobuf::RepeatedPtrField< ::protobuf_unittest::TestAllTypesLite_RepeatedGroup >*
  792. mutable_repeatedgroup();
  793. const ::protobuf_unittest::TestAllTypesLite_RepeatedGroup& repeatedgroup(int index) const;
  794. ::protobuf_unittest::TestAllTypesLite_RepeatedGroup* add_repeatedgroup();
  795. const ::google::protobuf::RepeatedPtrField< ::protobuf_unittest::TestAllTypesLite_RepeatedGroup >&
  796. repeatedgroup() const;
  797. // repeated .protobuf_unittest.TestAllTypesLite.NestedMessage repeated_nested_message = 48;
  798. int repeated_nested_message_size() const;
  799. void clear_repeated_nested_message();
  800. static const int kRepeatedNestedMessageFieldNumber = 48;
  801. ::protobuf_unittest::TestAllTypesLite_NestedMessage* mutable_repeated_nested_message(int index);
  802. ::google::protobuf::RepeatedPtrField< ::protobuf_unittest::TestAllTypesLite_NestedMessage >*
  803. mutable_repeated_nested_message();
  804. const ::protobuf_unittest::TestAllTypesLite_NestedMessage& repeated_nested_message(int index) const;
  805. ::protobuf_unittest::TestAllTypesLite_NestedMessage* add_repeated_nested_message();
  806. const ::google::protobuf::RepeatedPtrField< ::protobuf_unittest::TestAllTypesLite_NestedMessage >&
  807. repeated_nested_message() const;
  808. // repeated .protobuf_unittest.ForeignMessageLite repeated_foreign_message = 49;
  809. int repeated_foreign_message_size() const;
  810. void clear_repeated_foreign_message();
  811. static const int kRepeatedForeignMessageFieldNumber = 49;
  812. ::protobuf_unittest::ForeignMessageLite* mutable_repeated_foreign_message(int index);
  813. ::google::protobuf::RepeatedPtrField< ::protobuf_unittest::ForeignMessageLite >*
  814. mutable_repeated_foreign_message();
  815. const ::protobuf_unittest::ForeignMessageLite& repeated_foreign_message(int index) const;
  816. ::protobuf_unittest::ForeignMessageLite* add_repeated_foreign_message();
  817. const ::google::protobuf::RepeatedPtrField< ::protobuf_unittest::ForeignMessageLite >&
  818. repeated_foreign_message() const;
  819. // repeated .protobuf_unittest_import.ImportMessageLite repeated_import_message = 50;
  820. int repeated_import_message_size() const;
  821. void clear_repeated_import_message();
  822. static const int kRepeatedImportMessageFieldNumber = 50;
  823. ::protobuf_unittest_import::ImportMessageLite* mutable_repeated_import_message(int index);
  824. ::google::protobuf::RepeatedPtrField< ::protobuf_unittest_import::ImportMessageLite >*
  825. mutable_repeated_import_message();
  826. const ::protobuf_unittest_import::ImportMessageLite& repeated_import_message(int index) const;
  827. ::protobuf_unittest_import::ImportMessageLite* add_repeated_import_message();
  828. const ::google::protobuf::RepeatedPtrField< ::protobuf_unittest_import::ImportMessageLite >&
  829. repeated_import_message() const;
  830. // repeated .protobuf_unittest.TestAllTypesLite.NestedEnum repeated_nested_enum = 51;
  831. int repeated_nested_enum_size() const;
  832. void clear_repeated_nested_enum();
  833. static const int kRepeatedNestedEnumFieldNumber = 51;
  834. ::protobuf_unittest::TestAllTypesLite_NestedEnum repeated_nested_enum(int index) const;
  835. void set_repeated_nested_enum(int index, ::protobuf_unittest::TestAllTypesLite_NestedEnum value);
  836. void add_repeated_nested_enum(::protobuf_unittest::TestAllTypesLite_NestedEnum value);
  837. const ::google::protobuf::RepeatedField<int>& repeated_nested_enum() const;
  838. ::google::protobuf::RepeatedField<int>* mutable_repeated_nested_enum();
  839. // repeated .protobuf_unittest.ForeignEnumLite repeated_foreign_enum = 52;
  840. int repeated_foreign_enum_size() const;
  841. void clear_repeated_foreign_enum();
  842. static const int kRepeatedForeignEnumFieldNumber = 52;
  843. ::protobuf_unittest::ForeignEnumLite repeated_foreign_enum(int index) const;
  844. void set_repeated_foreign_enum(int index, ::protobuf_unittest::ForeignEnumLite value);
  845. void add_repeated_foreign_enum(::protobuf_unittest::ForeignEnumLite value);
  846. const ::google::protobuf::RepeatedField<int>& repeated_foreign_enum() const;
  847. ::google::protobuf::RepeatedField<int>* mutable_repeated_foreign_enum();
  848. // repeated .protobuf_unittest_import.ImportEnumLite repeated_import_enum = 53;
  849. int repeated_import_enum_size() const;
  850. void clear_repeated_import_enum();
  851. static const int kRepeatedImportEnumFieldNumber = 53;
  852. ::protobuf_unittest_import::ImportEnumLite repeated_import_enum(int index) const;
  853. void set_repeated_import_enum(int index, ::protobuf_unittest_import::ImportEnumLite value);
  854. void add_repeated_import_enum(::protobuf_unittest_import::ImportEnumLite value);
  855. const ::google::protobuf::RepeatedField<int>& repeated_import_enum() const;
  856. ::google::protobuf::RepeatedField<int>* mutable_repeated_import_enum();
  857. // repeated string repeated_string_piece = 54 [ctype = STRING_PIECE];
  858. int repeated_string_piece_size() const;
  859. void clear_repeated_string_piece();
  860. static const int kRepeatedStringPieceFieldNumber = 54;
  861. private:
  862. // Hidden due to unknown ctype option.
  863. const ::std::string& repeated_string_piece(int index) const;
  864. ::std::string* mutable_repeated_string_piece(int index);
  865. void set_repeated_string_piece(int index, const ::std::string& value);
  866. #if LANG_CXX11
  867. void set_repeated_string_piece(int index, ::std::string&& value);
  868. #endif
  869. void set_repeated_string_piece(int index, const char* value);
  870. void set_repeated_string_piece(int index, const char* value, size_t size);
  871. ::std::string* add_repeated_string_piece();
  872. void add_repeated_string_piece(const ::std::string& value);
  873. #if LANG_CXX11
  874. void add_repeated_string_piece(::std::string&& value);
  875. #endif
  876. void add_repeated_string_piece(const char* value);
  877. void add_repeated_string_piece(const char* value, size_t size);
  878. const ::google::protobuf::RepeatedPtrField< ::std::string>& repeated_string_piece() const;
  879. ::google::protobuf::RepeatedPtrField< ::std::string>* mutable_repeated_string_piece();
  880. public:
  881. // repeated string repeated_cord = 55 [ctype = CORD];
  882. int repeated_cord_size() const;
  883. void clear_repeated_cord();
  884. static const int kRepeatedCordFieldNumber = 55;
  885. private:
  886. // Hidden due to unknown ctype option.
  887. const ::std::string& repeated_cord(int index) const;
  888. ::std::string* mutable_repeated_cord(int index);
  889. void set_repeated_cord(int index, const ::std::string& value);
  890. #if LANG_CXX11
  891. void set_repeated_cord(int index, ::std::string&& value);
  892. #endif
  893. void set_repeated_cord(int index, const char* value);
  894. void set_repeated_cord(int index, const char* value, size_t size);
  895. ::std::string* add_repeated_cord();
  896. void add_repeated_cord(const ::std::string& value);
  897. #if LANG_CXX11
  898. void add_repeated_cord(::std::string&& value);
  899. #endif
  900. void add_repeated_cord(const char* value);
  901. void add_repeated_cord(const char* value, size_t size);
  902. const ::google::protobuf::RepeatedPtrField< ::std::string>& repeated_cord() const;
  903. ::google::protobuf::RepeatedPtrField< ::std::string>* mutable_repeated_cord();
  904. public:
  905. // repeated .protobuf_unittest.TestAllTypesLite.NestedMessage repeated_lazy_message = 57 [lazy = true];
  906. int repeated_lazy_message_size() const;
  907. void clear_repeated_lazy_message();
  908. static const int kRepeatedLazyMessageFieldNumber = 57;
  909. ::protobuf_unittest::TestAllTypesLite_NestedMessage* mutable_repeated_lazy_message(int index);
  910. ::google::protobuf::RepeatedPtrField< ::protobuf_unittest::TestAllTypesLite_NestedMessage >*
  911. mutable_repeated_lazy_message();
  912. const ::protobuf_unittest::TestAllTypesLite_NestedMessage& repeated_lazy_message(int index) const;
  913. ::protobuf_unittest::TestAllTypesLite_NestedMessage* add_repeated_lazy_message();
  914. const ::google::protobuf::RepeatedPtrField< ::protobuf_unittest::TestAllTypesLite_NestedMessage >&
  915. repeated_lazy_message() const;
  916. // optional string optional_string = 14;
  917. bool has_optional_string() const;
  918. void clear_optional_string();
  919. static const int kOptionalStringFieldNumber = 14;
  920. const ::std::string& optional_string() const;
  921. void set_optional_string(const ::std::string& value);
  922. #if LANG_CXX11
  923. void set_optional_string(::std::string&& value);
  924. #endif
  925. void set_optional_string(const char* value);
  926. void set_optional_string(const char* value, size_t size);
  927. ::std::string* mutable_optional_string();
  928. ::std::string* release_optional_string();
  929. void set_allocated_optional_string(::std::string* optional_string);
  930. // optional bytes optional_bytes = 15;
  931. bool has_optional_bytes() const;
  932. void clear_optional_bytes();
  933. static const int kOptionalBytesFieldNumber = 15;
  934. const ::std::string& optional_bytes() const;
  935. void set_optional_bytes(const ::std::string& value);
  936. #if LANG_CXX11
  937. void set_optional_bytes(::std::string&& value);
  938. #endif
  939. void set_optional_bytes(const char* value);
  940. void set_optional_bytes(const void* value, size_t size);
  941. ::std::string* mutable_optional_bytes();
  942. ::std::string* release_optional_bytes();
  943. void set_allocated_optional_bytes(::std::string* optional_bytes);
  944. // optional string optional_string_piece = 24 [ctype = STRING_PIECE];
  945. bool has_optional_string_piece() const;
  946. void clear_optional_string_piece();
  947. static const int kOptionalStringPieceFieldNumber = 24;
  948. private:
  949. // Hidden due to unknown ctype option.
  950. const ::std::string& optional_string_piece() const;
  951. void set_optional_string_piece(const ::std::string& value);
  952. #if LANG_CXX11
  953. void set_optional_string_piece(::std::string&& value);
  954. #endif
  955. void set_optional_string_piece(const char* value);
  956. void set_optional_string_piece(const char* value, size_t size);
  957. ::std::string* mutable_optional_string_piece();
  958. ::std::string* release_optional_string_piece();
  959. void set_allocated_optional_string_piece(::std::string* optional_string_piece);
  960. public:
  961. // optional string optional_cord = 25 [ctype = CORD];
  962. bool has_optional_cord() const;
  963. void clear_optional_cord();
  964. static const int kOptionalCordFieldNumber = 25;
  965. private:
  966. // Hidden due to unknown ctype option.
  967. const ::std::string& optional_cord() const;
  968. void set_optional_cord(const ::std::string& value);
  969. #if LANG_CXX11
  970. void set_optional_cord(::std::string&& value);
  971. #endif
  972. void set_optional_cord(const char* value);
  973. void set_optional_cord(const char* value, size_t size);
  974. ::std::string* mutable_optional_cord();
  975. ::std::string* release_optional_cord();
  976. void set_allocated_optional_cord(::std::string* optional_cord);
  977. public:
  978. // optional string default_string = 74 [default = "hello"];
  979. bool has_default_string() const;
  980. void clear_default_string();
  981. static const int kDefaultStringFieldNumber = 74;
  982. const ::std::string& default_string() const;
  983. void set_default_string(const ::std::string& value);
  984. #if LANG_CXX11
  985. void set_default_string(::std::string&& value);
  986. #endif
  987. void set_default_string(const char* value);
  988. void set_default_string(const char* value, size_t size);
  989. ::std::string* mutable_default_string();
  990. ::std::string* release_default_string();
  991. void set_allocated_default_string(::std::string* default_string);
  992. // optional bytes default_bytes = 75 [default = "world"];
  993. bool has_default_bytes() const;
  994. void clear_default_bytes();
  995. static const int kDefaultBytesFieldNumber = 75;
  996. const ::std::string& default_bytes() const;
  997. void set_default_bytes(const ::std::string& value);
  998. #if LANG_CXX11
  999. void set_default_bytes(::std::string&& value);
  1000. #endif
  1001. void set_default_bytes(const char* value);
  1002. void set_default_bytes(const void* value, size_t size);
  1003. ::std::string* mutable_default_bytes();
  1004. ::std::string* release_default_bytes();
  1005. void set_allocated_default_bytes(::std::string* default_bytes);
  1006. // optional string default_string_piece = 84 [default = "abc", ctype = STRING_PIECE];
  1007. bool has_default_string_piece() const;
  1008. void clear_default_string_piece();
  1009. static const int kDefaultStringPieceFieldNumber = 84;
  1010. private:
  1011. // Hidden due to unknown ctype option.
  1012. const ::std::string& default_string_piece() const;
  1013. void set_default_string_piece(const ::std::string& value);
  1014. #if LANG_CXX11
  1015. void set_default_string_piece(::std::string&& value);
  1016. #endif
  1017. void set_default_string_piece(const char* value);
  1018. void set_default_string_piece(const char* value, size_t size);
  1019. ::std::string* mutable_default_string_piece();
  1020. ::std::string* release_default_string_piece();
  1021. void set_allocated_default_string_piece(::std::string* default_string_piece);
  1022. public:
  1023. // optional string default_cord = 85 [default = "123", ctype = CORD];
  1024. bool has_default_cord() const;
  1025. void clear_default_cord();
  1026. static const int kDefaultCordFieldNumber = 85;
  1027. private:
  1028. // Hidden due to unknown ctype option.
  1029. const ::std::string& default_cord() const;
  1030. void set_default_cord(const ::std::string& value);
  1031. #if LANG_CXX11
  1032. void set_default_cord(::std::string&& value);
  1033. #endif
  1034. void set_default_cord(const char* value);
  1035. void set_default_cord(const char* value, size_t size);
  1036. ::std::string* mutable_default_cord();
  1037. ::std::string* release_default_cord();
  1038. void set_allocated_default_cord(::std::string* default_cord);
  1039. public:
  1040. // optional group OptionalGroup = 16 { ... };
  1041. bool has_optionalgroup() const;
  1042. void clear_optionalgroup();
  1043. static const int kOptionalgroupFieldNumber = 16;
  1044. private:
  1045. const ::protobuf_unittest::TestAllTypesLite_OptionalGroup& _internal_optionalgroup() const;
  1046. public:
  1047. const ::protobuf_unittest::TestAllTypesLite_OptionalGroup& optionalgroup() const;
  1048. ::protobuf_unittest::TestAllTypesLite_OptionalGroup* release_optionalgroup();
  1049. ::protobuf_unittest::TestAllTypesLite_OptionalGroup* mutable_optionalgroup();
  1050. void set_allocated_optionalgroup(::protobuf_unittest::TestAllTypesLite_OptionalGroup* optionalgroup);
  1051. // optional .protobuf_unittest.TestAllTypesLite.NestedMessage optional_nested_message = 18;
  1052. bool has_optional_nested_message() const;
  1053. void clear_optional_nested_message();
  1054. static const int kOptionalNestedMessageFieldNumber = 18;
  1055. private:
  1056. const ::protobuf_unittest::TestAllTypesLite_NestedMessage& _internal_optional_nested_message() const;
  1057. public:
  1058. const ::protobuf_unittest::TestAllTypesLite_NestedMessage& optional_nested_message() const;
  1059. ::protobuf_unittest::TestAllTypesLite_NestedMessage* release_optional_nested_message();
  1060. ::protobuf_unittest::TestAllTypesLite_NestedMessage* mutable_optional_nested_message();
  1061. void set_allocated_optional_nested_message(::protobuf_unittest::TestAllTypesLite_NestedMessage* optional_nested_message);
  1062. // optional .protobuf_unittest.ForeignMessageLite optional_foreign_message = 19;
  1063. bool has_optional_foreign_message() const;
  1064. void clear_optional_foreign_message();
  1065. static const int kOptionalForeignMessageFieldNumber = 19;
  1066. private:
  1067. const ::protobuf_unittest::ForeignMessageLite& _internal_optional_foreign_message() const;
  1068. public:
  1069. const ::protobuf_unittest::ForeignMessageLite& optional_foreign_message() const;
  1070. ::protobuf_unittest::ForeignMessageLite* release_optional_foreign_message();
  1071. ::protobuf_unittest::ForeignMessageLite* mutable_optional_foreign_message();
  1072. void set_allocated_optional_foreign_message(::protobuf_unittest::ForeignMessageLite* optional_foreign_message);
  1073. // optional .protobuf_unittest_import.ImportMessageLite optional_import_message = 20;
  1074. bool has_optional_import_message() const;
  1075. void clear_optional_import_message();
  1076. static const int kOptionalImportMessageFieldNumber = 20;
  1077. private:
  1078. const ::protobuf_unittest_import::ImportMessageLite& _internal_optional_import_message() const;
  1079. public:
  1080. const ::protobuf_unittest_import::ImportMessageLite& optional_import_message() const;
  1081. ::protobuf_unittest_import::ImportMessageLite* release_optional_import_message();
  1082. ::protobuf_unittest_import::ImportMessageLite* mutable_optional_import_message();
  1083. void set_allocated_optional_import_message(::protobuf_unittest_import::ImportMessageLite* optional_import_message);
  1084. // optional .protobuf_unittest_import.PublicImportMessageLite optional_public_import_message = 26;
  1085. bool has_optional_public_import_message() const;
  1086. void clear_optional_public_import_message();
  1087. static const int kOptionalPublicImportMessageFieldNumber = 26;
  1088. private:
  1089. const ::protobuf_unittest_import::PublicImportMessageLite& _internal_optional_public_import_message() const;
  1090. public:
  1091. const ::protobuf_unittest_import::PublicImportMessageLite& optional_public_import_message() const;
  1092. ::protobuf_unittest_import::PublicImportMessageLite* release_optional_public_import_message();
  1093. ::protobuf_unittest_import::PublicImportMessageLite* mutable_optional_public_import_message();
  1094. void set_allocated_optional_public_import_message(::protobuf_unittest_import::PublicImportMessageLite* optional_public_import_message);
  1095. // optional .protobuf_unittest.TestAllTypesLite.NestedMessage optional_lazy_message = 27 [lazy = true];
  1096. bool has_optional_lazy_message() const;
  1097. void clear_optional_lazy_message();
  1098. static const int kOptionalLazyMessageFieldNumber = 27;
  1099. private:
  1100. const ::protobuf_unittest::TestAllTypesLite_NestedMessage& _internal_optional_lazy_message() const;
  1101. public:
  1102. const ::protobuf_unittest::TestAllTypesLite_NestedMessage& optional_lazy_message() const;
  1103. ::protobuf_unittest::TestAllTypesLite_NestedMessage* release_optional_lazy_message();
  1104. ::protobuf_unittest::TestAllTypesLite_NestedMessage* mutable_optional_lazy_message();
  1105. void set_allocated_optional_lazy_message(::protobuf_unittest::TestAllTypesLite_NestedMessage* optional_lazy_message);
  1106. // optional int64 optional_int64 = 2;
  1107. bool has_optional_int64() const;
  1108. void clear_optional_int64();
  1109. static const int kOptionalInt64FieldNumber = 2;
  1110. ::google::protobuf::int64 optional_int64() const;
  1111. void set_optional_int64(::google::protobuf::int64 value);
  1112. // optional int32 optional_int32 = 1;
  1113. bool has_optional_int32() const;
  1114. void clear_optional_int32();
  1115. static const int kOptionalInt32FieldNumber = 1;
  1116. ::google::protobuf::int32 optional_int32() const;
  1117. void set_optional_int32(::google::protobuf::int32 value);
  1118. // optional uint32 optional_uint32 = 3;
  1119. bool has_optional_uint32() const;
  1120. void clear_optional_uint32();
  1121. static const int kOptionalUint32FieldNumber = 3;
  1122. ::google::protobuf::uint32 optional_uint32() const;
  1123. void set_optional_uint32(::google::protobuf::uint32 value);
  1124. // optional uint64 optional_uint64 = 4;
  1125. bool has_optional_uint64() const;
  1126. void clear_optional_uint64();
  1127. static const int kOptionalUint64FieldNumber = 4;
  1128. ::google::protobuf::uint64 optional_uint64() const;
  1129. void set_optional_uint64(::google::protobuf::uint64 value);
  1130. // optional sint64 optional_sint64 = 6;
  1131. bool has_optional_sint64() const;
  1132. void clear_optional_sint64();
  1133. static const int kOptionalSint64FieldNumber = 6;
  1134. ::google::protobuf::int64 optional_sint64() const;
  1135. void set_optional_sint64(::google::protobuf::int64 value);
  1136. // optional sint32 optional_sint32 = 5;
  1137. bool has_optional_sint32() const;
  1138. void clear_optional_sint32();
  1139. static const int kOptionalSint32FieldNumber = 5;
  1140. ::google::protobuf::int32 optional_sint32() const;
  1141. void set_optional_sint32(::google::protobuf::int32 value);
  1142. // optional fixed32 optional_fixed32 = 7;
  1143. bool has_optional_fixed32() const;
  1144. void clear_optional_fixed32();
  1145. static const int kOptionalFixed32FieldNumber = 7;
  1146. ::google::protobuf::uint32 optional_fixed32() const;
  1147. void set_optional_fixed32(::google::protobuf::uint32 value);
  1148. // optional fixed64 optional_fixed64 = 8;
  1149. bool has_optional_fixed64() const;
  1150. void clear_optional_fixed64();
  1151. static const int kOptionalFixed64FieldNumber = 8;
  1152. ::google::protobuf::uint64 optional_fixed64() const;
  1153. void set_optional_fixed64(::google::protobuf::uint64 value);
  1154. // optional sfixed64 optional_sfixed64 = 10;
  1155. bool has_optional_sfixed64() const;
  1156. void clear_optional_sfixed64();
  1157. static const int kOptionalSfixed64FieldNumber = 10;
  1158. ::google::protobuf::int64 optional_sfixed64() const;
  1159. void set_optional_sfixed64(::google::protobuf::int64 value);
  1160. // optional sfixed32 optional_sfixed32 = 9;
  1161. bool has_optional_sfixed32() const;
  1162. void clear_optional_sfixed32();
  1163. static const int kOptionalSfixed32FieldNumber = 9;
  1164. ::google::protobuf::int32 optional_sfixed32() const;
  1165. void set_optional_sfixed32(::google::protobuf::int32 value);
  1166. // optional float optional_float = 11;
  1167. bool has_optional_float() const;
  1168. void clear_optional_float();
  1169. static const int kOptionalFloatFieldNumber = 11;
  1170. float optional_float() const;
  1171. void set_optional_float(float value);
  1172. // optional double optional_double = 12;
  1173. bool has_optional_double() const;
  1174. void clear_optional_double();
  1175. static const int kOptionalDoubleFieldNumber = 12;
  1176. double optional_double() const;
  1177. void set_optional_double(double value);
  1178. // optional bool optional_bool = 13;
  1179. bool has_optional_bool() const;
  1180. void clear_optional_bool();
  1181. static const int kOptionalBoolFieldNumber = 13;
  1182. bool optional_bool() const;
  1183. void set_optional_bool(bool value);
  1184. // optional int32 deceptively_named_list = 116;
  1185. bool has_deceptively_named_list() const;
  1186. void clear_deceptively_named_list();
  1187. static const int kDeceptivelyNamedListFieldNumber = 116;
  1188. ::google::protobuf::int32 deceptively_named_list() const;
  1189. void set_deceptively_named_list(::google::protobuf::int32 value);
  1190. // optional .protobuf_unittest_import.ImportEnumLite default_import_enum = 83 [default = IMPORT_LITE_BAR];
  1191. bool has_default_import_enum() const;
  1192. void clear_default_import_enum();
  1193. static const int kDefaultImportEnumFieldNumber = 83;
  1194. ::protobuf_unittest_import::ImportEnumLite default_import_enum() const;
  1195. void set_default_import_enum(::protobuf_unittest_import::ImportEnumLite value);
  1196. // optional .protobuf_unittest.TestAllTypesLite.NestedEnum optional_nested_enum = 21;
  1197. bool has_optional_nested_enum() const;
  1198. void clear_optional_nested_enum();
  1199. static const int kOptionalNestedEnumFieldNumber = 21;
  1200. ::protobuf_unittest::TestAllTypesLite_NestedEnum optional_nested_enum() const;
  1201. void set_optional_nested_enum(::protobuf_unittest::TestAllTypesLite_NestedEnum value);
  1202. // optional .protobuf_unittest.ForeignEnumLite optional_foreign_enum = 22;
  1203. bool has_optional_foreign_enum() const;
  1204. void clear_optional_foreign_enum();
  1205. static const int kOptionalForeignEnumFieldNumber = 22;
  1206. ::protobuf_unittest::ForeignEnumLite optional_foreign_enum() const;
  1207. void set_optional_foreign_enum(::protobuf_unittest::ForeignEnumLite value);
  1208. // optional .protobuf_unittest_import.ImportEnumLite optional_import_enum = 23;
  1209. bool has_optional_import_enum() const;
  1210. void clear_optional_import_enum();
  1211. static const int kOptionalImportEnumFieldNumber = 23;
  1212. ::protobuf_unittest_import::ImportEnumLite optional_import_enum() const;
  1213. void set_optional_import_enum(::protobuf_unittest_import::ImportEnumLite value);
  1214. // optional int32 default_int32 = 61 [default = 41];
  1215. bool has_default_int32() const;
  1216. void clear_default_int32();
  1217. static const int kDefaultInt32FieldNumber = 61;
  1218. ::google::protobuf::int32 default_int32() const;
  1219. void set_default_int32(::google::protobuf::int32 value);
  1220. // optional int64 default_int64 = 62 [default = 42];
  1221. bool has_default_int64() const;
  1222. void clear_default_int64();
  1223. static const int kDefaultInt64FieldNumber = 62;
  1224. ::google::protobuf::int64 default_int64() const;
  1225. void set_default_int64(::google::protobuf::int64 value);
  1226. // optional uint64 default_uint64 = 64 [default = 44];
  1227. bool has_default_uint64() const;
  1228. void clear_default_uint64();
  1229. static const int kDefaultUint64FieldNumber = 64;
  1230. ::google::protobuf::uint64 default_uint64() const;
  1231. void set_default_uint64(::google::protobuf::uint64 value);
  1232. // optional uint32 default_uint32 = 63 [default = 43];
  1233. bool has_default_uint32() const;
  1234. void clear_default_uint32();
  1235. static const int kDefaultUint32FieldNumber = 63;
  1236. ::google::protobuf::uint32 default_uint32() const;
  1237. void set_default_uint32(::google::protobuf::uint32 value);
  1238. // optional sint32 default_sint32 = 65 [default = -45];
  1239. bool has_default_sint32() const;
  1240. void clear_default_sint32();
  1241. static const int kDefaultSint32FieldNumber = 65;
  1242. ::google::protobuf::int32 default_sint32() const;
  1243. void set_default_sint32(::google::protobuf::int32 value);
  1244. // optional sint64 default_sint64 = 66 [default = 46];
  1245. bool has_default_sint64() const;
  1246. void clear_default_sint64();
  1247. static const int kDefaultSint64FieldNumber = 66;
  1248. ::google::protobuf::int64 default_sint64() const;
  1249. void set_default_sint64(::google::protobuf::int64 value);
  1250. // optional fixed64 default_fixed64 = 68 [default = 48];
  1251. bool has_default_fixed64() const;
  1252. void clear_default_fixed64();
  1253. static const int kDefaultFixed64FieldNumber = 68;
  1254. ::google::protobuf::uint64 default_fixed64() const;
  1255. void set_default_fixed64(::google::protobuf::uint64 value);
  1256. // optional fixed32 default_fixed32 = 67 [default = 47];
  1257. bool has_default_fixed32() const;
  1258. void clear_default_fixed32();
  1259. static const int kDefaultFixed32FieldNumber = 67;
  1260. ::google::protobuf::uint32 default_fixed32() const;
  1261. void set_default_fixed32(::google::protobuf::uint32 value);
  1262. // optional sfixed32 default_sfixed32 = 69 [default = 49];
  1263. bool has_default_sfixed32() const;
  1264. void clear_default_sfixed32();
  1265. static const int kDefaultSfixed32FieldNumber = 69;
  1266. ::google::protobuf::int32 default_sfixed32() const;
  1267. void set_default_sfixed32(::google::protobuf::int32 value);
  1268. // optional sfixed64 default_sfixed64 = 70 [default = -50];
  1269. bool has_default_sfixed64() const;
  1270. void clear_default_sfixed64();
  1271. static const int kDefaultSfixed64FieldNumber = 70;
  1272. ::google::protobuf::int64 default_sfixed64() const;
  1273. void set_default_sfixed64(::google::protobuf::int64 value);
  1274. // optional double default_double = 72 [default = 52000];
  1275. bool has_default_double() const;
  1276. void clear_default_double();
  1277. static const int kDefaultDoubleFieldNumber = 72;
  1278. double default_double() const;
  1279. void set_default_double(double value);
  1280. // optional float default_float = 71 [default = 51.5];
  1281. bool has_default_float() const;
  1282. void clear_default_float();
  1283. static const int kDefaultFloatFieldNumber = 71;
  1284. float default_float() const;
  1285. void set_default_float(float value);
  1286. // optional bool default_bool = 73 [default = true];
  1287. bool has_default_bool() const;
  1288. void clear_default_bool();
  1289. static const int kDefaultBoolFieldNumber = 73;
  1290. bool default_bool() const;
  1291. void set_default_bool(bool value);
  1292. // optional .protobuf_unittest.TestAllTypesLite.NestedEnum default_nested_enum = 81 [default = BAR];
  1293. bool has_default_nested_enum() const;
  1294. void clear_default_nested_enum();
  1295. static const int kDefaultNestedEnumFieldNumber = 81;
  1296. ::protobuf_unittest::TestAllTypesLite_NestedEnum default_nested_enum() const;
  1297. void set_default_nested_enum(::protobuf_unittest::TestAllTypesLite_NestedEnum value);
  1298. // optional .protobuf_unittest.ForeignEnumLite default_foreign_enum = 82 [default = FOREIGN_LITE_BAR];
  1299. bool has_default_foreign_enum() const;
  1300. void clear_default_foreign_enum();
  1301. static const int kDefaultForeignEnumFieldNumber = 82;
  1302. ::protobuf_unittest::ForeignEnumLite default_foreign_enum() const;
  1303. void set_default_foreign_enum(::protobuf_unittest::ForeignEnumLite value);
  1304. // optional uint32 oneof_uint32 = 111;
  1305. bool has_oneof_uint32() const;
  1306. void clear_oneof_uint32();
  1307. static const int kOneofUint32FieldNumber = 111;
  1308. ::google::protobuf::uint32 oneof_uint32() const;
  1309. void set_oneof_uint32(::google::protobuf::uint32 value);
  1310. // optional .protobuf_unittest.TestAllTypesLite.NestedMessage oneof_nested_message = 112;
  1311. bool has_oneof_nested_message() const;
  1312. void clear_oneof_nested_message();
  1313. static const int kOneofNestedMessageFieldNumber = 112;
  1314. private:
  1315. const ::protobuf_unittest::TestAllTypesLite_NestedMessage& _internal_oneof_nested_message() const;
  1316. public:
  1317. const ::protobuf_unittest::TestAllTypesLite_NestedMessage& oneof_nested_message() const;
  1318. ::protobuf_unittest::TestAllTypesLite_NestedMessage* release_oneof_nested_message();
  1319. ::protobuf_unittest::TestAllTypesLite_NestedMessage* mutable_oneof_nested_message();
  1320. void set_allocated_oneof_nested_message(::protobuf_unittest::TestAllTypesLite_NestedMessage* oneof_nested_message);
  1321. // optional string oneof_string = 113;
  1322. bool has_oneof_string() const;
  1323. void clear_oneof_string();
  1324. static const int kOneofStringFieldNumber = 113;
  1325. const ::std::string& oneof_string() const;
  1326. void set_oneof_string(const ::std::string& value);
  1327. #if LANG_CXX11
  1328. void set_oneof_string(::std::string&& value);
  1329. #endif
  1330. void set_oneof_string(const char* value);
  1331. void set_oneof_string(const char* value, size_t size);
  1332. ::std::string* mutable_oneof_string();
  1333. ::std::string* release_oneof_string();
  1334. void set_allocated_oneof_string(::std::string* oneof_string);
  1335. // optional bytes oneof_bytes = 114;
  1336. bool has_oneof_bytes() const;
  1337. void clear_oneof_bytes();
  1338. static const int kOneofBytesFieldNumber = 114;
  1339. const ::std::string& oneof_bytes() const;
  1340. void set_oneof_bytes(const ::std::string& value);
  1341. #if LANG_CXX11
  1342. void set_oneof_bytes(::std::string&& value);
  1343. #endif
  1344. void set_oneof_bytes(const char* value);
  1345. void set_oneof_bytes(const void* value, size_t size);
  1346. ::std::string* mutable_oneof_bytes();
  1347. ::std::string* release_oneof_bytes();
  1348. void set_allocated_oneof_bytes(::std::string* oneof_bytes);
  1349. // optional .protobuf_unittest.TestAllTypesLite.NestedMessage oneof_lazy_nested_message = 115 [lazy = true];
  1350. bool has_oneof_lazy_nested_message() const;
  1351. void clear_oneof_lazy_nested_message();
  1352. static const int kOneofLazyNestedMessageFieldNumber = 115;
  1353. private:
  1354. const ::protobuf_unittest::TestAllTypesLite_NestedMessage& _internal_oneof_lazy_nested_message() const;
  1355. public:
  1356. const ::protobuf_unittest::TestAllTypesLite_NestedMessage& oneof_lazy_nested_message() const;
  1357. ::protobuf_unittest::TestAllTypesLite_NestedMessage* release_oneof_lazy_nested_message();
  1358. ::protobuf_unittest::TestAllTypesLite_NestedMessage* mutable_oneof_lazy_nested_message();
  1359. void set_allocated_oneof_lazy_nested_message(::protobuf_unittest::TestAllTypesLite_NestedMessage* oneof_lazy_nested_message);
  1360. void clear_oneof_field();
  1361. OneofFieldCase oneof_field_case() const;
  1362. // @@protoc_insertion_point(class_scope:protobuf_unittest.TestAllTypesLite)
  1363. private:
  1364. void set_has_optional_int32();
  1365. void clear_has_optional_int32();
  1366. void set_has_optional_int64();
  1367. void clear_has_optional_int64();
  1368. void set_has_optional_uint32();
  1369. void clear_has_optional_uint32();
  1370. void set_has_optional_uint64();
  1371. void clear_has_optional_uint64();
  1372. void set_has_optional_sint32();
  1373. void clear_has_optional_sint32();
  1374. void set_has_optional_sint64();
  1375. void clear_has_optional_sint64();
  1376. void set_has_optional_fixed32();
  1377. void clear_has_optional_fixed32();
  1378. void set_has_optional_fixed64();
  1379. void clear_has_optional_fixed64();
  1380. void set_has_optional_sfixed32();
  1381. void clear_has_optional_sfixed32();
  1382. void set_has_optional_sfixed64();
  1383. void clear_has_optional_sfixed64();
  1384. void set_has_optional_float();
  1385. void clear_has_optional_float();
  1386. void set_has_optional_double();
  1387. void clear_has_optional_double();
  1388. void set_has_optional_bool();
  1389. void clear_has_optional_bool();
  1390. void set_has_optional_string();
  1391. void clear_has_optional_string();
  1392. void set_has_optional_bytes();
  1393. void clear_has_optional_bytes();
  1394. void set_has_optionalgroup();
  1395. void clear_has_optionalgroup();
  1396. void set_has_optional_nested_message();
  1397. void clear_has_optional_nested_message();
  1398. void set_has_optional_foreign_message();
  1399. void clear_has_optional_foreign_message();
  1400. void set_has_optional_import_message();
  1401. void clear_has_optional_import_message();
  1402. void set_has_optional_nested_enum();
  1403. void clear_has_optional_nested_enum();
  1404. void set_has_optional_foreign_enum();
  1405. void clear_has_optional_foreign_enum();
  1406. void set_has_optional_import_enum();
  1407. void clear_has_optional_import_enum();
  1408. void set_has_optional_string_piece();
  1409. void clear_has_optional_string_piece();
  1410. void set_has_optional_cord();
  1411. void clear_has_optional_cord();
  1412. void set_has_optional_public_import_message();
  1413. void clear_has_optional_public_import_message();
  1414. void set_has_optional_lazy_message();
  1415. void clear_has_optional_lazy_message();
  1416. void set_has_default_int32();
  1417. void clear_has_default_int32();
  1418. void set_has_default_int64();
  1419. void clear_has_default_int64();
  1420. void set_has_default_uint32();
  1421. void clear_has_default_uint32();
  1422. void set_has_default_uint64();
  1423. void clear_has_default_uint64();
  1424. void set_has_default_sint32();
  1425. void clear_has_default_sint32();
  1426. void set_has_default_sint64();
  1427. void clear_has_default_sint64();
  1428. void set_has_default_fixed32();
  1429. void clear_has_default_fixed32();
  1430. void set_has_default_fixed64();
  1431. void clear_has_default_fixed64();
  1432. void set_has_default_sfixed32();
  1433. void clear_has_default_sfixed32();
  1434. void set_has_default_sfixed64();
  1435. void clear_has_default_sfixed64();
  1436. void set_has_default_float();
  1437. void clear_has_default_float();
  1438. void set_has_default_double();
  1439. void clear_has_default_double();
  1440. void set_has_default_bool();
  1441. void clear_has_default_bool();
  1442. void set_has_default_string();
  1443. void clear_has_default_string();
  1444. void set_has_default_bytes();
  1445. void clear_has_default_bytes();
  1446. void set_has_default_nested_enum();
  1447. void clear_has_default_nested_enum();
  1448. void set_has_default_foreign_enum();
  1449. void clear_has_default_foreign_enum();
  1450. void set_has_default_import_enum();
  1451. void clear_has_default_import_enum();
  1452. void set_has_default_string_piece();
  1453. void clear_has_default_string_piece();
  1454. void set_has_default_cord();
  1455. void clear_has_default_cord();
  1456. void set_has_oneof_uint32();
  1457. void set_has_oneof_nested_message();
  1458. void set_has_oneof_string();
  1459. void set_has_oneof_bytes();
  1460. void set_has_oneof_lazy_nested_message();
  1461. void set_has_deceptively_named_list();
  1462. void clear_has_deceptively_named_list();
  1463. inline bool has_oneof_field() const;
  1464. inline void clear_has_oneof_field();
  1465. ::google::protobuf::internal::InternalMetadataWithArenaLite _internal_metadata_;
  1466. ::google::protobuf::internal::HasBits<2> _has_bits_;
  1467. ::google::protobuf::RepeatedField< ::google::protobuf::int32 > repeated_int32_;
  1468. ::google::protobuf::RepeatedField< ::google::protobuf::int64 > repeated_int64_;
  1469. ::google::protobuf::RepeatedField< ::google::protobuf::uint32 > repeated_uint32_;
  1470. ::google::protobuf::RepeatedField< ::google::protobuf::uint64 > repeated_uint64_;
  1471. ::google::protobuf::RepeatedField< ::google::protobuf::int32 > repeated_sint32_;
  1472. ::google::protobuf::RepeatedField< ::google::protobuf::int64 > repeated_sint64_;
  1473. ::google::protobuf::RepeatedField< ::google::protobuf::uint32 > repeated_fixed32_;
  1474. ::google::protobuf::RepeatedField< ::google::protobuf::uint64 > repeated_fixed64_;
  1475. ::google::protobuf::RepeatedField< ::google::protobuf::int32 > repeated_sfixed32_;
  1476. ::google::protobuf::RepeatedField< ::google::protobuf::int64 > repeated_sfixed64_;
  1477. ::google::protobuf::RepeatedField< float > repeated_float_;
  1478. ::google::protobuf::RepeatedField< double > repeated_double_;
  1479. ::google::protobuf::RepeatedField< bool > repeated_bool_;
  1480. ::google::protobuf::RepeatedPtrField< ::std::string> repeated_string_;
  1481. ::google::protobuf::RepeatedPtrField< ::std::string> repeated_bytes_;
  1482. ::google::protobuf::RepeatedPtrField< ::protobuf_unittest::TestAllTypesLite_RepeatedGroup > repeatedgroup_;
  1483. ::google::protobuf::RepeatedPtrField< ::protobuf_unittest::TestAllTypesLite_NestedMessage > repeated_nested_message_;
  1484. ::google::protobuf::RepeatedPtrField< ::protobuf_unittest::ForeignMessageLite > repeated_foreign_message_;
  1485. ::google::protobuf::RepeatedPtrField< ::protobuf_unittest_import::ImportMessageLite > repeated_import_message_;
  1486. ::google::protobuf::RepeatedField<int> repeated_nested_enum_;
  1487. ::google::protobuf::RepeatedField<int> repeated_foreign_enum_;
  1488. ::google::protobuf::RepeatedField<int> repeated_import_enum_;
  1489. ::google::protobuf::RepeatedPtrField< ::std::string> repeated_string_piece_;
  1490. ::google::protobuf::RepeatedPtrField< ::std::string> repeated_cord_;
  1491. ::google::protobuf::RepeatedPtrField< ::protobuf_unittest::TestAllTypesLite_NestedMessage > repeated_lazy_message_;
  1492. ::google::protobuf::internal::ArenaStringPtr optional_string_;
  1493. ::google::protobuf::internal::ArenaStringPtr optional_bytes_;
  1494. ::google::protobuf::internal::ArenaStringPtr optional_string_piece_;
  1495. ::google::protobuf::internal::ArenaStringPtr optional_cord_;
  1496. public:
  1497. static ::google::protobuf::internal::ExplicitlyConstructed< ::std::string> _i_give_permission_to_break_this_code_default_default_string_;
  1498. private:
  1499. ::google::protobuf::internal::ArenaStringPtr default_string_;
  1500. public:
  1501. static ::google::protobuf::internal::ExplicitlyConstructed< ::std::string> _i_give_permission_to_break_this_code_default_default_bytes_;
  1502. private:
  1503. ::google::protobuf::internal::ArenaStringPtr default_bytes_;
  1504. public:
  1505. static ::google::protobuf::internal::ExplicitlyConstructed< ::std::string> _i_give_permission_to_break_this_code_default_default_string_piece_;
  1506. private:
  1507. ::google::protobuf::internal::ArenaStringPtr default_string_piece_;
  1508. public:
  1509. static ::google::protobuf::internal::ExplicitlyConstructed< ::std::string> _i_give_permission_to_break_this_code_default_default_cord_;
  1510. private:
  1511. ::google::protobuf::internal::ArenaStringPtr default_cord_;
  1512. ::protobuf_unittest::TestAllTypesLite_OptionalGroup* optionalgroup_;
  1513. ::protobuf_unittest::TestAllTypesLite_NestedMessage* optional_nested_message_;
  1514. ::protobuf_unittest::ForeignMessageLite* optional_foreign_message_;
  1515. ::protobuf_unittest_import::ImportMessageLite* optional_import_message_;
  1516. ::protobuf_unittest_import::PublicImportMessageLite* optional_public_import_message_;
  1517. ::protobuf_unittest::TestAllTypesLite_NestedMessage* optional_lazy_message_;
  1518. ::google::protobuf::int64 optional_int64_;
  1519. ::google::protobuf::int32 optional_int32_;
  1520. ::google::protobuf::uint32 optional_uint32_;
  1521. ::google::protobuf::uint64 optional_uint64_;
  1522. ::google::protobuf::int64 optional_sint64_;
  1523. ::google::protobuf::int32 optional_sint32_;
  1524. ::google::protobuf::uint32 optional_fixed32_;
  1525. ::google::protobuf::uint64 optional_fixed64_;
  1526. ::google::protobuf::int64 optional_sfixed64_;
  1527. ::google::protobuf::int32 optional_sfixed32_;
  1528. float optional_float_;
  1529. double optional_double_;
  1530. bool optional_bool_;
  1531. ::google::protobuf::int32 deceptively_named_list_;
  1532. int default_import_enum_;
  1533. int optional_nested_enum_;
  1534. int optional_foreign_enum_;
  1535. int optional_import_enum_;
  1536. ::google::protobuf::int32 default_int32_;
  1537. ::google::protobuf::int64 default_int64_;
  1538. ::google::protobuf::uint64 default_uint64_;
  1539. ::google::protobuf::uint32 default_uint32_;
  1540. ::google::protobuf::int32 default_sint32_;
  1541. ::google::protobuf::int64 default_sint64_;
  1542. ::google::protobuf::uint64 default_fixed64_;
  1543. ::google::protobuf::uint32 default_fixed32_;
  1544. ::google::protobuf::int32 default_sfixed32_;
  1545. ::google::protobuf::int64 default_sfixed64_;
  1546. double default_double_;
  1547. float default_float_;
  1548. bool default_bool_;
  1549. int default_nested_enum_;
  1550. int default_foreign_enum_;
  1551. union OneofFieldUnion {
  1552. OneofFieldUnion() {}
  1553. ::google::protobuf::uint32 oneof_uint32_;
  1554. ::protobuf_unittest::TestAllTypesLite_NestedMessage* oneof_nested_message_;
  1555. ::google::protobuf::internal::ArenaStringPtr oneof_string_;
  1556. ::google::protobuf::internal::ArenaStringPtr oneof_bytes_;
  1557. ::protobuf_unittest::TestAllTypesLite_NestedMessage* oneof_lazy_nested_message_;
  1558. } oneof_field_;
  1559. mutable ::google::protobuf::internal::CachedSize _cached_size_;
  1560. ::google::protobuf::uint32 _oneof_case_[1];
  1561. friend struct ::protobuf_google_2fprotobuf_2funittest_5flite_2eproto::TableStruct;
  1562. };
  1563. // -------------------------------------------------------------------
  1564. class ForeignMessageLite : public ::google::protobuf::MessageLite /* @@protoc_insertion_point(class_definition:protobuf_unittest.ForeignMessageLite) */ {
  1565. public:
  1566. ForeignMessageLite();
  1567. virtual ~ForeignMessageLite();
  1568. ForeignMessageLite(const ForeignMessageLite& from);
  1569. inline ForeignMessageLite& operator=(const ForeignMessageLite& from) {
  1570. CopyFrom(from);
  1571. return *this;
  1572. }
  1573. #if LANG_CXX11
  1574. ForeignMessageLite(ForeignMessageLite&& from) noexcept
  1575. : ForeignMessageLite() {
  1576. *this = ::std::move(from);
  1577. }
  1578. inline ForeignMessageLite& operator=(ForeignMessageLite&& from) noexcept {
  1579. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  1580. if (this != &from) InternalSwap(&from);
  1581. } else {
  1582. CopyFrom(from);
  1583. }
  1584. return *this;
  1585. }
  1586. #endif
  1587. inline const ::std::string& unknown_fields() const {
  1588. return _internal_metadata_.unknown_fields();
  1589. }
  1590. inline ::std::string* mutable_unknown_fields() {
  1591. return _internal_metadata_.mutable_unknown_fields();
  1592. }
  1593. static const ForeignMessageLite& default_instance();
  1594. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  1595. static inline const ForeignMessageLite* internal_default_instance() {
  1596. return reinterpret_cast<const ForeignMessageLite*>(
  1597. &_ForeignMessageLite_default_instance_);
  1598. }
  1599. static constexpr int kIndexInFileMessages =
  1600. 4;
  1601. void Swap(ForeignMessageLite* other);
  1602. friend void swap(ForeignMessageLite& a, ForeignMessageLite& b) {
  1603. a.Swap(&b);
  1604. }
  1605. // implements Message ----------------------------------------------
  1606. inline ForeignMessageLite* New() const final {
  1607. return CreateMaybeMessage<ForeignMessageLite>(NULL);
  1608. }
  1609. ForeignMessageLite* New(::google::protobuf::Arena* arena) const final {
  1610. return CreateMaybeMessage<ForeignMessageLite>(arena);
  1611. }
  1612. void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from)
  1613. final;
  1614. void CopyFrom(const ForeignMessageLite& from);
  1615. void MergeFrom(const ForeignMessageLite& from);
  1616. void Clear() final;
  1617. bool IsInitialized() const final;
  1618. size_t ByteSizeLong() const final;
  1619. bool MergePartialFromCodedStream(
  1620. ::google::protobuf::io::CodedInputStream* input) final;
  1621. void SerializeWithCachedSizes(
  1622. ::google::protobuf::io::CodedOutputStream* output) const final;
  1623. void DiscardUnknownFields();
  1624. int GetCachedSize() const final { return _cached_size_.Get(); }
  1625. private:
  1626. void SharedCtor();
  1627. void SharedDtor();
  1628. void SetCachedSize(int size) const;
  1629. void InternalSwap(ForeignMessageLite* other);
  1630. private:
  1631. inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
  1632. return NULL;
  1633. }
  1634. inline void* MaybeArenaPtr() const {
  1635. return NULL;
  1636. }
  1637. public:
  1638. ::std::string GetTypeName() const final;
  1639. // nested types ----------------------------------------------------
  1640. // accessors -------------------------------------------------------
  1641. // optional int32 c = 1;
  1642. bool has_c() const;
  1643. void clear_c();
  1644. static const int kCFieldNumber = 1;
  1645. ::google::protobuf::int32 c() const;
  1646. void set_c(::google::protobuf::int32 value);
  1647. // @@protoc_insertion_point(class_scope:protobuf_unittest.ForeignMessageLite)
  1648. private:
  1649. void set_has_c();
  1650. void clear_has_c();
  1651. ::google::protobuf::internal::InternalMetadataWithArenaLite _internal_metadata_;
  1652. ::google::protobuf::internal::HasBits<1> _has_bits_;
  1653. mutable ::google::protobuf::internal::CachedSize _cached_size_;
  1654. ::google::protobuf::int32 c_;
  1655. friend struct ::protobuf_google_2fprotobuf_2funittest_5flite_2eproto::TableStruct;
  1656. };
  1657. // -------------------------------------------------------------------
  1658. class TestPackedTypesLite : public ::google::protobuf::MessageLite /* @@protoc_insertion_point(class_definition:protobuf_unittest.TestPackedTypesLite) */ {
  1659. public:
  1660. TestPackedTypesLite();
  1661. virtual ~TestPackedTypesLite();
  1662. TestPackedTypesLite(const TestPackedTypesLite& from);
  1663. inline TestPackedTypesLite& operator=(const TestPackedTypesLite& from) {
  1664. CopyFrom(from);
  1665. return *this;
  1666. }
  1667. #if LANG_CXX11
  1668. TestPackedTypesLite(TestPackedTypesLite&& from) noexcept
  1669. : TestPackedTypesLite() {
  1670. *this = ::std::move(from);
  1671. }
  1672. inline TestPackedTypesLite& operator=(TestPackedTypesLite&& from) noexcept {
  1673. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  1674. if (this != &from) InternalSwap(&from);
  1675. } else {
  1676. CopyFrom(from);
  1677. }
  1678. return *this;
  1679. }
  1680. #endif
  1681. inline const ::std::string& unknown_fields() const {
  1682. return _internal_metadata_.unknown_fields();
  1683. }
  1684. inline ::std::string* mutable_unknown_fields() {
  1685. return _internal_metadata_.mutable_unknown_fields();
  1686. }
  1687. static const TestPackedTypesLite& default_instance();
  1688. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  1689. static inline const TestPackedTypesLite* internal_default_instance() {
  1690. return reinterpret_cast<const TestPackedTypesLite*>(
  1691. &_TestPackedTypesLite_default_instance_);
  1692. }
  1693. static constexpr int kIndexInFileMessages =
  1694. 5;
  1695. void Swap(TestPackedTypesLite* other);
  1696. friend void swap(TestPackedTypesLite& a, TestPackedTypesLite& b) {
  1697. a.Swap(&b);
  1698. }
  1699. // implements Message ----------------------------------------------
  1700. inline TestPackedTypesLite* New() const final {
  1701. return CreateMaybeMessage<TestPackedTypesLite>(NULL);
  1702. }
  1703. TestPackedTypesLite* New(::google::protobuf::Arena* arena) const final {
  1704. return CreateMaybeMessage<TestPackedTypesLite>(arena);
  1705. }
  1706. void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from)
  1707. final;
  1708. void CopyFrom(const TestPackedTypesLite& from);
  1709. void MergeFrom(const TestPackedTypesLite& from);
  1710. void Clear() final;
  1711. bool IsInitialized() const final;
  1712. size_t ByteSizeLong() const final;
  1713. bool MergePartialFromCodedStream(
  1714. ::google::protobuf::io::CodedInputStream* input) final;
  1715. void SerializeWithCachedSizes(
  1716. ::google::protobuf::io::CodedOutputStream* output) const final;
  1717. void DiscardUnknownFields();
  1718. int GetCachedSize() const final { return _cached_size_.Get(); }
  1719. private:
  1720. void SharedCtor();
  1721. void SharedDtor();
  1722. void SetCachedSize(int size) const;
  1723. void InternalSwap(TestPackedTypesLite* other);
  1724. private:
  1725. inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
  1726. return NULL;
  1727. }
  1728. inline void* MaybeArenaPtr() const {
  1729. return NULL;
  1730. }
  1731. public:
  1732. ::std::string GetTypeName() const final;
  1733. // nested types ----------------------------------------------------
  1734. // accessors -------------------------------------------------------
  1735. // repeated int32 packed_int32 = 90 [packed = true];
  1736. int packed_int32_size() const;
  1737. void clear_packed_int32();
  1738. static const int kPackedInt32FieldNumber = 90;
  1739. ::google::protobuf::int32 packed_int32(int index) const;
  1740. void set_packed_int32(int index, ::google::protobuf::int32 value);
  1741. void add_packed_int32(::google::protobuf::int32 value);
  1742. const ::google::protobuf::RepeatedField< ::google::protobuf::int32 >&
  1743. packed_int32() const;
  1744. ::google::protobuf::RepeatedField< ::google::protobuf::int32 >*
  1745. mutable_packed_int32();
  1746. // repeated int64 packed_int64 = 91 [packed = true];
  1747. int packed_int64_size() const;
  1748. void clear_packed_int64();
  1749. static const int kPackedInt64FieldNumber = 91;
  1750. ::google::protobuf::int64 packed_int64(int index) const;
  1751. void set_packed_int64(int index, ::google::protobuf::int64 value);
  1752. void add_packed_int64(::google::protobuf::int64 value);
  1753. const ::google::protobuf::RepeatedField< ::google::protobuf::int64 >&
  1754. packed_int64() const;
  1755. ::google::protobuf::RepeatedField< ::google::protobuf::int64 >*
  1756. mutable_packed_int64();
  1757. // repeated uint32 packed_uint32 = 92 [packed = true];
  1758. int packed_uint32_size() const;
  1759. void clear_packed_uint32();
  1760. static const int kPackedUint32FieldNumber = 92;
  1761. ::google::protobuf::uint32 packed_uint32(int index) const;
  1762. void set_packed_uint32(int index, ::google::protobuf::uint32 value);
  1763. void add_packed_uint32(::google::protobuf::uint32 value);
  1764. const ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >&
  1765. packed_uint32() const;
  1766. ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >*
  1767. mutable_packed_uint32();
  1768. // repeated uint64 packed_uint64 = 93 [packed = true];
  1769. int packed_uint64_size() const;
  1770. void clear_packed_uint64();
  1771. static const int kPackedUint64FieldNumber = 93;
  1772. ::google::protobuf::uint64 packed_uint64(int index) const;
  1773. void set_packed_uint64(int index, ::google::protobuf::uint64 value);
  1774. void add_packed_uint64(::google::protobuf::uint64 value);
  1775. const ::google::protobuf::RepeatedField< ::google::protobuf::uint64 >&
  1776. packed_uint64() const;
  1777. ::google::protobuf::RepeatedField< ::google::protobuf::uint64 >*
  1778. mutable_packed_uint64();
  1779. // repeated sint32 packed_sint32 = 94 [packed = true];
  1780. int packed_sint32_size() const;
  1781. void clear_packed_sint32();
  1782. static const int kPackedSint32FieldNumber = 94;
  1783. ::google::protobuf::int32 packed_sint32(int index) const;
  1784. void set_packed_sint32(int index, ::google::protobuf::int32 value);
  1785. void add_packed_sint32(::google::protobuf::int32 value);
  1786. const ::google::protobuf::RepeatedField< ::google::protobuf::int32 >&
  1787. packed_sint32() const;
  1788. ::google::protobuf::RepeatedField< ::google::protobuf::int32 >*
  1789. mutable_packed_sint32();
  1790. // repeated sint64 packed_sint64 = 95 [packed = true];
  1791. int packed_sint64_size() const;
  1792. void clear_packed_sint64();
  1793. static const int kPackedSint64FieldNumber = 95;
  1794. ::google::protobuf::int64 packed_sint64(int index) const;
  1795. void set_packed_sint64(int index, ::google::protobuf::int64 value);
  1796. void add_packed_sint64(::google::protobuf::int64 value);
  1797. const ::google::protobuf::RepeatedField< ::google::protobuf::int64 >&
  1798. packed_sint64() const;
  1799. ::google::protobuf::RepeatedField< ::google::protobuf::int64 >*
  1800. mutable_packed_sint64();
  1801. // repeated fixed32 packed_fixed32 = 96 [packed = true];
  1802. int packed_fixed32_size() const;
  1803. void clear_packed_fixed32();
  1804. static const int kPackedFixed32FieldNumber = 96;
  1805. ::google::protobuf::uint32 packed_fixed32(int index) const;
  1806. void set_packed_fixed32(int index, ::google::protobuf::uint32 value);
  1807. void add_packed_fixed32(::google::protobuf::uint32 value);
  1808. const ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >&
  1809. packed_fixed32() const;
  1810. ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >*
  1811. mutable_packed_fixed32();
  1812. // repeated fixed64 packed_fixed64 = 97 [packed = true];
  1813. int packed_fixed64_size() const;
  1814. void clear_packed_fixed64();
  1815. static const int kPackedFixed64FieldNumber = 97;
  1816. ::google::protobuf::uint64 packed_fixed64(int index) const;
  1817. void set_packed_fixed64(int index, ::google::protobuf::uint64 value);
  1818. void add_packed_fixed64(::google::protobuf::uint64 value);
  1819. const ::google::protobuf::RepeatedField< ::google::protobuf::uint64 >&
  1820. packed_fixed64() const;
  1821. ::google::protobuf::RepeatedField< ::google::protobuf::uint64 >*
  1822. mutable_packed_fixed64();
  1823. // repeated sfixed32 packed_sfixed32 = 98 [packed = true];
  1824. int packed_sfixed32_size() const;
  1825. void clear_packed_sfixed32();
  1826. static const int kPackedSfixed32FieldNumber = 98;
  1827. ::google::protobuf::int32 packed_sfixed32(int index) const;
  1828. void set_packed_sfixed32(int index, ::google::protobuf::int32 value);
  1829. void add_packed_sfixed32(::google::protobuf::int32 value);
  1830. const ::google::protobuf::RepeatedField< ::google::protobuf::int32 >&
  1831. packed_sfixed32() const;
  1832. ::google::protobuf::RepeatedField< ::google::protobuf::int32 >*
  1833. mutable_packed_sfixed32();
  1834. // repeated sfixed64 packed_sfixed64 = 99 [packed = true];
  1835. int packed_sfixed64_size() const;
  1836. void clear_packed_sfixed64();
  1837. static const int kPackedSfixed64FieldNumber = 99;
  1838. ::google::protobuf::int64 packed_sfixed64(int index) const;
  1839. void set_packed_sfixed64(int index, ::google::protobuf::int64 value);
  1840. void add_packed_sfixed64(::google::protobuf::int64 value);
  1841. const ::google::protobuf::RepeatedField< ::google::protobuf::int64 >&
  1842. packed_sfixed64() const;
  1843. ::google::protobuf::RepeatedField< ::google::protobuf::int64 >*
  1844. mutable_packed_sfixed64();
  1845. // repeated float packed_float = 100 [packed = true];
  1846. int packed_float_size() const;
  1847. void clear_packed_float();
  1848. static const int kPackedFloatFieldNumber = 100;
  1849. float packed_float(int index) const;
  1850. void set_packed_float(int index, float value);
  1851. void add_packed_float(float value);
  1852. const ::google::protobuf::RepeatedField< float >&
  1853. packed_float() const;
  1854. ::google::protobuf::RepeatedField< float >*
  1855. mutable_packed_float();
  1856. // repeated double packed_double = 101 [packed = true];
  1857. int packed_double_size() const;
  1858. void clear_packed_double();
  1859. static const int kPackedDoubleFieldNumber = 101;
  1860. double packed_double(int index) const;
  1861. void set_packed_double(int index, double value);
  1862. void add_packed_double(double value);
  1863. const ::google::protobuf::RepeatedField< double >&
  1864. packed_double() const;
  1865. ::google::protobuf::RepeatedField< double >*
  1866. mutable_packed_double();
  1867. // repeated bool packed_bool = 102 [packed = true];
  1868. int packed_bool_size() const;
  1869. void clear_packed_bool();
  1870. static const int kPackedBoolFieldNumber = 102;
  1871. bool packed_bool(int index) const;
  1872. void set_packed_bool(int index, bool value);
  1873. void add_packed_bool(bool value);
  1874. const ::google::protobuf::RepeatedField< bool >&
  1875. packed_bool() const;
  1876. ::google::protobuf::RepeatedField< bool >*
  1877. mutable_packed_bool();
  1878. // repeated .protobuf_unittest.ForeignEnumLite packed_enum = 103 [packed = true];
  1879. int packed_enum_size() const;
  1880. void clear_packed_enum();
  1881. static const int kPackedEnumFieldNumber = 103;
  1882. ::protobuf_unittest::ForeignEnumLite packed_enum(int index) const;
  1883. void set_packed_enum(int index, ::protobuf_unittest::ForeignEnumLite value);
  1884. void add_packed_enum(::protobuf_unittest::ForeignEnumLite value);
  1885. const ::google::protobuf::RepeatedField<int>& packed_enum() const;
  1886. ::google::protobuf::RepeatedField<int>* mutable_packed_enum();
  1887. // @@protoc_insertion_point(class_scope:protobuf_unittest.TestPackedTypesLite)
  1888. private:
  1889. ::google::protobuf::internal::InternalMetadataWithArenaLite _internal_metadata_;
  1890. ::google::protobuf::internal::HasBits<1> _has_bits_;
  1891. mutable ::google::protobuf::internal::CachedSize _cached_size_;
  1892. ::google::protobuf::RepeatedField< ::google::protobuf::int32 > packed_int32_;
  1893. mutable int _packed_int32_cached_byte_size_;
  1894. ::google::protobuf::RepeatedField< ::google::protobuf::int64 > packed_int64_;
  1895. mutable int _packed_int64_cached_byte_size_;
  1896. ::google::protobuf::RepeatedField< ::google::protobuf::uint32 > packed_uint32_;
  1897. mutable int _packed_uint32_cached_byte_size_;
  1898. ::google::protobuf::RepeatedField< ::google::protobuf::uint64 > packed_uint64_;
  1899. mutable int _packed_uint64_cached_byte_size_;
  1900. ::google::protobuf::RepeatedField< ::google::protobuf::int32 > packed_sint32_;
  1901. mutable int _packed_sint32_cached_byte_size_;
  1902. ::google::protobuf::RepeatedField< ::google::protobuf::int64 > packed_sint64_;
  1903. mutable int _packed_sint64_cached_byte_size_;
  1904. ::google::protobuf::RepeatedField< ::google::protobuf::uint32 > packed_fixed32_;
  1905. mutable int _packed_fixed32_cached_byte_size_;
  1906. ::google::protobuf::RepeatedField< ::google::protobuf::uint64 > packed_fixed64_;
  1907. mutable int _packed_fixed64_cached_byte_size_;
  1908. ::google::protobuf::RepeatedField< ::google::protobuf::int32 > packed_sfixed32_;
  1909. mutable int _packed_sfixed32_cached_byte_size_;
  1910. ::google::protobuf::RepeatedField< ::google::protobuf::int64 > packed_sfixed64_;
  1911. mutable int _packed_sfixed64_cached_byte_size_;
  1912. ::google::protobuf::RepeatedField< float > packed_float_;
  1913. mutable int _packed_float_cached_byte_size_;
  1914. ::google::protobuf::RepeatedField< double > packed_double_;
  1915. mutable int _packed_double_cached_byte_size_;
  1916. ::google::protobuf::RepeatedField< bool > packed_bool_;
  1917. mutable int _packed_bool_cached_byte_size_;
  1918. ::google::protobuf::RepeatedField<int> packed_enum_;
  1919. mutable int _packed_enum_cached_byte_size_;
  1920. friend struct ::protobuf_google_2fprotobuf_2funittest_5flite_2eproto::TableStruct;
  1921. };
  1922. // -------------------------------------------------------------------
  1923. class TestAllExtensionsLite : public ::google::protobuf::MessageLite /* @@protoc_insertion_point(class_definition:protobuf_unittest.TestAllExtensionsLite) */ {
  1924. public:
  1925. TestAllExtensionsLite();
  1926. virtual ~TestAllExtensionsLite();
  1927. TestAllExtensionsLite(const TestAllExtensionsLite& from);
  1928. inline TestAllExtensionsLite& operator=(const TestAllExtensionsLite& from) {
  1929. CopyFrom(from);
  1930. return *this;
  1931. }
  1932. #if LANG_CXX11
  1933. TestAllExtensionsLite(TestAllExtensionsLite&& from) noexcept
  1934. : TestAllExtensionsLite() {
  1935. *this = ::std::move(from);
  1936. }
  1937. inline TestAllExtensionsLite& operator=(TestAllExtensionsLite&& from) noexcept {
  1938. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  1939. if (this != &from) InternalSwap(&from);
  1940. } else {
  1941. CopyFrom(from);
  1942. }
  1943. return *this;
  1944. }
  1945. #endif
  1946. inline const ::std::string& unknown_fields() const {
  1947. return _internal_metadata_.unknown_fields();
  1948. }
  1949. inline ::std::string* mutable_unknown_fields() {
  1950. return _internal_metadata_.mutable_unknown_fields();
  1951. }
  1952. static const TestAllExtensionsLite& default_instance();
  1953. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  1954. static inline const TestAllExtensionsLite* internal_default_instance() {
  1955. return reinterpret_cast<const TestAllExtensionsLite*>(
  1956. &_TestAllExtensionsLite_default_instance_);
  1957. }
  1958. static constexpr int kIndexInFileMessages =
  1959. 6;
  1960. void Swap(TestAllExtensionsLite* other);
  1961. friend void swap(TestAllExtensionsLite& a, TestAllExtensionsLite& b) {
  1962. a.Swap(&b);
  1963. }
  1964. // implements Message ----------------------------------------------
  1965. inline TestAllExtensionsLite* New() const final {
  1966. return CreateMaybeMessage<TestAllExtensionsLite>(NULL);
  1967. }
  1968. TestAllExtensionsLite* New(::google::protobuf::Arena* arena) const final {
  1969. return CreateMaybeMessage<TestAllExtensionsLite>(arena);
  1970. }
  1971. void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from)
  1972. final;
  1973. void CopyFrom(const TestAllExtensionsLite& from);
  1974. void MergeFrom(const TestAllExtensionsLite& from);
  1975. void Clear() final;
  1976. bool IsInitialized() const final;
  1977. size_t ByteSizeLong() const final;
  1978. bool MergePartialFromCodedStream(
  1979. ::google::protobuf::io::CodedInputStream* input) final;
  1980. void SerializeWithCachedSizes(
  1981. ::google::protobuf::io::CodedOutputStream* output) const final;
  1982. void DiscardUnknownFields();
  1983. int GetCachedSize() const final { return _cached_size_.Get(); }
  1984. private:
  1985. void SharedCtor();
  1986. void SharedDtor();
  1987. void SetCachedSize(int size) const;
  1988. void InternalSwap(TestAllExtensionsLite* other);
  1989. private:
  1990. inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
  1991. return NULL;
  1992. }
  1993. inline void* MaybeArenaPtr() const {
  1994. return NULL;
  1995. }
  1996. public:
  1997. ::std::string GetTypeName() const final;
  1998. // nested types ----------------------------------------------------
  1999. // accessors -------------------------------------------------------
  2000. GOOGLE_PROTOBUF_EXTENSION_ACCESSORS(TestAllExtensionsLite)
  2001. // @@protoc_insertion_point(class_scope:protobuf_unittest.TestAllExtensionsLite)
  2002. private:
  2003. ::google::protobuf::internal::ExtensionSet _extensions_;
  2004. ::google::protobuf::internal::InternalMetadataWithArenaLite _internal_metadata_;
  2005. ::google::protobuf::internal::HasBits<1> _has_bits_;
  2006. mutable ::google::protobuf::internal::CachedSize _cached_size_;
  2007. friend struct ::protobuf_google_2fprotobuf_2funittest_5flite_2eproto::TableStruct;
  2008. };
  2009. // -------------------------------------------------------------------
  2010. class OptionalGroup_extension_lite : public ::google::protobuf::MessageLite /* @@protoc_insertion_point(class_definition:protobuf_unittest.OptionalGroup_extension_lite) */ {
  2011. public:
  2012. OptionalGroup_extension_lite();
  2013. virtual ~OptionalGroup_extension_lite();
  2014. OptionalGroup_extension_lite(const OptionalGroup_extension_lite& from);
  2015. inline OptionalGroup_extension_lite& operator=(const OptionalGroup_extension_lite& from) {
  2016. CopyFrom(from);
  2017. return *this;
  2018. }
  2019. #if LANG_CXX11
  2020. OptionalGroup_extension_lite(OptionalGroup_extension_lite&& from) noexcept
  2021. : OptionalGroup_extension_lite() {
  2022. *this = ::std::move(from);
  2023. }
  2024. inline OptionalGroup_extension_lite& operator=(OptionalGroup_extension_lite&& from) noexcept {
  2025. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  2026. if (this != &from) InternalSwap(&from);
  2027. } else {
  2028. CopyFrom(from);
  2029. }
  2030. return *this;
  2031. }
  2032. #endif
  2033. inline const ::std::string& unknown_fields() const {
  2034. return _internal_metadata_.unknown_fields();
  2035. }
  2036. inline ::std::string* mutable_unknown_fields() {
  2037. return _internal_metadata_.mutable_unknown_fields();
  2038. }
  2039. static const OptionalGroup_extension_lite& default_instance();
  2040. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  2041. static inline const OptionalGroup_extension_lite* internal_default_instance() {
  2042. return reinterpret_cast<const OptionalGroup_extension_lite*>(
  2043. &_OptionalGroup_extension_lite_default_instance_);
  2044. }
  2045. static constexpr int kIndexInFileMessages =
  2046. 7;
  2047. void Swap(OptionalGroup_extension_lite* other);
  2048. friend void swap(OptionalGroup_extension_lite& a, OptionalGroup_extension_lite& b) {
  2049. a.Swap(&b);
  2050. }
  2051. // implements Message ----------------------------------------------
  2052. inline OptionalGroup_extension_lite* New() const final {
  2053. return CreateMaybeMessage<OptionalGroup_extension_lite>(NULL);
  2054. }
  2055. OptionalGroup_extension_lite* New(::google::protobuf::Arena* arena) const final {
  2056. return CreateMaybeMessage<OptionalGroup_extension_lite>(arena);
  2057. }
  2058. void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from)
  2059. final;
  2060. void CopyFrom(const OptionalGroup_extension_lite& from);
  2061. void MergeFrom(const OptionalGroup_extension_lite& from);
  2062. void Clear() final;
  2063. bool IsInitialized() const final;
  2064. size_t ByteSizeLong() const final;
  2065. bool MergePartialFromCodedStream(
  2066. ::google::protobuf::io::CodedInputStream* input) final;
  2067. void SerializeWithCachedSizes(
  2068. ::google::protobuf::io::CodedOutputStream* output) const final;
  2069. void DiscardUnknownFields();
  2070. int GetCachedSize() const final { return _cached_size_.Get(); }
  2071. private:
  2072. void SharedCtor();
  2073. void SharedDtor();
  2074. void SetCachedSize(int size) const;
  2075. void InternalSwap(OptionalGroup_extension_lite* other);
  2076. private:
  2077. inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
  2078. return NULL;
  2079. }
  2080. inline void* MaybeArenaPtr() const {
  2081. return NULL;
  2082. }
  2083. public:
  2084. ::std::string GetTypeName() const final;
  2085. // nested types ----------------------------------------------------
  2086. // accessors -------------------------------------------------------
  2087. // optional int32 a = 17;
  2088. bool has_a() const;
  2089. void clear_a();
  2090. static const int kAFieldNumber = 17;
  2091. ::google::protobuf::int32 a() const;
  2092. void set_a(::google::protobuf::int32 value);
  2093. // @@protoc_insertion_point(class_scope:protobuf_unittest.OptionalGroup_extension_lite)
  2094. private:
  2095. void set_has_a();
  2096. void clear_has_a();
  2097. ::google::protobuf::internal::InternalMetadataWithArenaLite _internal_metadata_;
  2098. ::google::protobuf::internal::HasBits<1> _has_bits_;
  2099. mutable ::google::protobuf::internal::CachedSize _cached_size_;
  2100. ::google::protobuf::int32 a_;
  2101. friend struct ::protobuf_google_2fprotobuf_2funittest_5flite_2eproto::TableStruct;
  2102. };
  2103. // -------------------------------------------------------------------
  2104. class RepeatedGroup_extension_lite : public ::google::protobuf::MessageLite /* @@protoc_insertion_point(class_definition:protobuf_unittest.RepeatedGroup_extension_lite) */ {
  2105. public:
  2106. RepeatedGroup_extension_lite();
  2107. virtual ~RepeatedGroup_extension_lite();
  2108. RepeatedGroup_extension_lite(const RepeatedGroup_extension_lite& from);
  2109. inline RepeatedGroup_extension_lite& operator=(const RepeatedGroup_extension_lite& from) {
  2110. CopyFrom(from);
  2111. return *this;
  2112. }
  2113. #if LANG_CXX11
  2114. RepeatedGroup_extension_lite(RepeatedGroup_extension_lite&& from) noexcept
  2115. : RepeatedGroup_extension_lite() {
  2116. *this = ::std::move(from);
  2117. }
  2118. inline RepeatedGroup_extension_lite& operator=(RepeatedGroup_extension_lite&& from) noexcept {
  2119. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  2120. if (this != &from) InternalSwap(&from);
  2121. } else {
  2122. CopyFrom(from);
  2123. }
  2124. return *this;
  2125. }
  2126. #endif
  2127. inline const ::std::string& unknown_fields() const {
  2128. return _internal_metadata_.unknown_fields();
  2129. }
  2130. inline ::std::string* mutable_unknown_fields() {
  2131. return _internal_metadata_.mutable_unknown_fields();
  2132. }
  2133. static const RepeatedGroup_extension_lite& default_instance();
  2134. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  2135. static inline const RepeatedGroup_extension_lite* internal_default_instance() {
  2136. return reinterpret_cast<const RepeatedGroup_extension_lite*>(
  2137. &_RepeatedGroup_extension_lite_default_instance_);
  2138. }
  2139. static constexpr int kIndexInFileMessages =
  2140. 8;
  2141. void Swap(RepeatedGroup_extension_lite* other);
  2142. friend void swap(RepeatedGroup_extension_lite& a, RepeatedGroup_extension_lite& b) {
  2143. a.Swap(&b);
  2144. }
  2145. // implements Message ----------------------------------------------
  2146. inline RepeatedGroup_extension_lite* New() const final {
  2147. return CreateMaybeMessage<RepeatedGroup_extension_lite>(NULL);
  2148. }
  2149. RepeatedGroup_extension_lite* New(::google::protobuf::Arena* arena) const final {
  2150. return CreateMaybeMessage<RepeatedGroup_extension_lite>(arena);
  2151. }
  2152. void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from)
  2153. final;
  2154. void CopyFrom(const RepeatedGroup_extension_lite& from);
  2155. void MergeFrom(const RepeatedGroup_extension_lite& from);
  2156. void Clear() final;
  2157. bool IsInitialized() const final;
  2158. size_t ByteSizeLong() const final;
  2159. bool MergePartialFromCodedStream(
  2160. ::google::protobuf::io::CodedInputStream* input) final;
  2161. void SerializeWithCachedSizes(
  2162. ::google::protobuf::io::CodedOutputStream* output) const final;
  2163. void DiscardUnknownFields();
  2164. int GetCachedSize() const final { return _cached_size_.Get(); }
  2165. private:
  2166. void SharedCtor();
  2167. void SharedDtor();
  2168. void SetCachedSize(int size) const;
  2169. void InternalSwap(RepeatedGroup_extension_lite* other);
  2170. private:
  2171. inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
  2172. return NULL;
  2173. }
  2174. inline void* MaybeArenaPtr() const {
  2175. return NULL;
  2176. }
  2177. public:
  2178. ::std::string GetTypeName() const final;
  2179. // nested types ----------------------------------------------------
  2180. // accessors -------------------------------------------------------
  2181. // optional int32 a = 47;
  2182. bool has_a() const;
  2183. void clear_a();
  2184. static const int kAFieldNumber = 47;
  2185. ::google::protobuf::int32 a() const;
  2186. void set_a(::google::protobuf::int32 value);
  2187. // @@protoc_insertion_point(class_scope:protobuf_unittest.RepeatedGroup_extension_lite)
  2188. private:
  2189. void set_has_a();
  2190. void clear_has_a();
  2191. ::google::protobuf::internal::InternalMetadataWithArenaLite _internal_metadata_;
  2192. ::google::protobuf::internal::HasBits<1> _has_bits_;
  2193. mutable ::google::protobuf::internal::CachedSize _cached_size_;
  2194. ::google::protobuf::int32 a_;
  2195. friend struct ::protobuf_google_2fprotobuf_2funittest_5flite_2eproto::TableStruct;
  2196. };
  2197. // -------------------------------------------------------------------
  2198. class TestPackedExtensionsLite : public ::google::protobuf::MessageLite /* @@protoc_insertion_point(class_definition:protobuf_unittest.TestPackedExtensionsLite) */ {
  2199. public:
  2200. TestPackedExtensionsLite();
  2201. virtual ~TestPackedExtensionsLite();
  2202. TestPackedExtensionsLite(const TestPackedExtensionsLite& from);
  2203. inline TestPackedExtensionsLite& operator=(const TestPackedExtensionsLite& from) {
  2204. CopyFrom(from);
  2205. return *this;
  2206. }
  2207. #if LANG_CXX11
  2208. TestPackedExtensionsLite(TestPackedExtensionsLite&& from) noexcept
  2209. : TestPackedExtensionsLite() {
  2210. *this = ::std::move(from);
  2211. }
  2212. inline TestPackedExtensionsLite& operator=(TestPackedExtensionsLite&& from) noexcept {
  2213. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  2214. if (this != &from) InternalSwap(&from);
  2215. } else {
  2216. CopyFrom(from);
  2217. }
  2218. return *this;
  2219. }
  2220. #endif
  2221. inline const ::std::string& unknown_fields() const {
  2222. return _internal_metadata_.unknown_fields();
  2223. }
  2224. inline ::std::string* mutable_unknown_fields() {
  2225. return _internal_metadata_.mutable_unknown_fields();
  2226. }
  2227. static const TestPackedExtensionsLite& default_instance();
  2228. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  2229. static inline const TestPackedExtensionsLite* internal_default_instance() {
  2230. return reinterpret_cast<const TestPackedExtensionsLite*>(
  2231. &_TestPackedExtensionsLite_default_instance_);
  2232. }
  2233. static constexpr int kIndexInFileMessages =
  2234. 9;
  2235. void Swap(TestPackedExtensionsLite* other);
  2236. friend void swap(TestPackedExtensionsLite& a, TestPackedExtensionsLite& b) {
  2237. a.Swap(&b);
  2238. }
  2239. // implements Message ----------------------------------------------
  2240. inline TestPackedExtensionsLite* New() const final {
  2241. return CreateMaybeMessage<TestPackedExtensionsLite>(NULL);
  2242. }
  2243. TestPackedExtensionsLite* New(::google::protobuf::Arena* arena) const final {
  2244. return CreateMaybeMessage<TestPackedExtensionsLite>(arena);
  2245. }
  2246. void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from)
  2247. final;
  2248. void CopyFrom(const TestPackedExtensionsLite& from);
  2249. void MergeFrom(const TestPackedExtensionsLite& from);
  2250. void Clear() final;
  2251. bool IsInitialized() const final;
  2252. size_t ByteSizeLong() const final;
  2253. bool MergePartialFromCodedStream(
  2254. ::google::protobuf::io::CodedInputStream* input) final;
  2255. void SerializeWithCachedSizes(
  2256. ::google::protobuf::io::CodedOutputStream* output) const final;
  2257. void DiscardUnknownFields();
  2258. int GetCachedSize() const final { return _cached_size_.Get(); }
  2259. private:
  2260. void SharedCtor();
  2261. void SharedDtor();
  2262. void SetCachedSize(int size) const;
  2263. void InternalSwap(TestPackedExtensionsLite* other);
  2264. private:
  2265. inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
  2266. return NULL;
  2267. }
  2268. inline void* MaybeArenaPtr() const {
  2269. return NULL;
  2270. }
  2271. public:
  2272. ::std::string GetTypeName() const final;
  2273. // nested types ----------------------------------------------------
  2274. // accessors -------------------------------------------------------
  2275. GOOGLE_PROTOBUF_EXTENSION_ACCESSORS(TestPackedExtensionsLite)
  2276. // @@protoc_insertion_point(class_scope:protobuf_unittest.TestPackedExtensionsLite)
  2277. private:
  2278. ::google::protobuf::internal::ExtensionSet _extensions_;
  2279. ::google::protobuf::internal::InternalMetadataWithArenaLite _internal_metadata_;
  2280. ::google::protobuf::internal::HasBits<1> _has_bits_;
  2281. mutable ::google::protobuf::internal::CachedSize _cached_size_;
  2282. friend struct ::protobuf_google_2fprotobuf_2funittest_5flite_2eproto::TableStruct;
  2283. };
  2284. // -------------------------------------------------------------------
  2285. class TestNestedExtensionLite : public ::google::protobuf::MessageLite /* @@protoc_insertion_point(class_definition:protobuf_unittest.TestNestedExtensionLite) */ {
  2286. public:
  2287. TestNestedExtensionLite();
  2288. virtual ~TestNestedExtensionLite();
  2289. TestNestedExtensionLite(const TestNestedExtensionLite& from);
  2290. inline TestNestedExtensionLite& operator=(const TestNestedExtensionLite& from) {
  2291. CopyFrom(from);
  2292. return *this;
  2293. }
  2294. #if LANG_CXX11
  2295. TestNestedExtensionLite(TestNestedExtensionLite&& from) noexcept
  2296. : TestNestedExtensionLite() {
  2297. *this = ::std::move(from);
  2298. }
  2299. inline TestNestedExtensionLite& operator=(TestNestedExtensionLite&& from) noexcept {
  2300. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  2301. if (this != &from) InternalSwap(&from);
  2302. } else {
  2303. CopyFrom(from);
  2304. }
  2305. return *this;
  2306. }
  2307. #endif
  2308. inline const ::std::string& unknown_fields() const {
  2309. return _internal_metadata_.unknown_fields();
  2310. }
  2311. inline ::std::string* mutable_unknown_fields() {
  2312. return _internal_metadata_.mutable_unknown_fields();
  2313. }
  2314. static const TestNestedExtensionLite& default_instance();
  2315. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  2316. static inline const TestNestedExtensionLite* internal_default_instance() {
  2317. return reinterpret_cast<const TestNestedExtensionLite*>(
  2318. &_TestNestedExtensionLite_default_instance_);
  2319. }
  2320. static constexpr int kIndexInFileMessages =
  2321. 10;
  2322. void Swap(TestNestedExtensionLite* other);
  2323. friend void swap(TestNestedExtensionLite& a, TestNestedExtensionLite& b) {
  2324. a.Swap(&b);
  2325. }
  2326. // implements Message ----------------------------------------------
  2327. inline TestNestedExtensionLite* New() const final {
  2328. return CreateMaybeMessage<TestNestedExtensionLite>(NULL);
  2329. }
  2330. TestNestedExtensionLite* New(::google::protobuf::Arena* arena) const final {
  2331. return CreateMaybeMessage<TestNestedExtensionLite>(arena);
  2332. }
  2333. void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from)
  2334. final;
  2335. void CopyFrom(const TestNestedExtensionLite& from);
  2336. void MergeFrom(const TestNestedExtensionLite& from);
  2337. void Clear() final;
  2338. bool IsInitialized() const final;
  2339. size_t ByteSizeLong() const final;
  2340. bool MergePartialFromCodedStream(
  2341. ::google::protobuf::io::CodedInputStream* input) final;
  2342. void SerializeWithCachedSizes(
  2343. ::google::protobuf::io::CodedOutputStream* output) const final;
  2344. void DiscardUnknownFields();
  2345. int GetCachedSize() const final { return _cached_size_.Get(); }
  2346. private:
  2347. void SharedCtor();
  2348. void SharedDtor();
  2349. void SetCachedSize(int size) const;
  2350. void InternalSwap(TestNestedExtensionLite* other);
  2351. private:
  2352. inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
  2353. return NULL;
  2354. }
  2355. inline void* MaybeArenaPtr() const {
  2356. return NULL;
  2357. }
  2358. public:
  2359. ::std::string GetTypeName() const final;
  2360. // nested types ----------------------------------------------------
  2361. // accessors -------------------------------------------------------
  2362. static const int kNestedExtensionFieldNumber = 12345;
  2363. static ::google::protobuf::internal::ExtensionIdentifier< ::protobuf_unittest::TestAllExtensionsLite,
  2364. ::google::protobuf::internal::PrimitiveTypeTraits< ::google::protobuf::int32 >, 5, false >
  2365. nested_extension;
  2366. // @@protoc_insertion_point(class_scope:protobuf_unittest.TestNestedExtensionLite)
  2367. private:
  2368. ::google::protobuf::internal::InternalMetadataWithArenaLite _internal_metadata_;
  2369. ::google::protobuf::internal::HasBits<1> _has_bits_;
  2370. mutable ::google::protobuf::internal::CachedSize _cached_size_;
  2371. friend struct ::protobuf_google_2fprotobuf_2funittest_5flite_2eproto::TableStruct;
  2372. };
  2373. // -------------------------------------------------------------------
  2374. class TestDeprecatedLite : public ::google::protobuf::MessageLite /* @@protoc_insertion_point(class_definition:protobuf_unittest.TestDeprecatedLite) */ {
  2375. public:
  2376. TestDeprecatedLite();
  2377. virtual ~TestDeprecatedLite();
  2378. TestDeprecatedLite(const TestDeprecatedLite& from);
  2379. inline TestDeprecatedLite& operator=(const TestDeprecatedLite& from) {
  2380. CopyFrom(from);
  2381. return *this;
  2382. }
  2383. #if LANG_CXX11
  2384. TestDeprecatedLite(TestDeprecatedLite&& from) noexcept
  2385. : TestDeprecatedLite() {
  2386. *this = ::std::move(from);
  2387. }
  2388. inline TestDeprecatedLite& operator=(TestDeprecatedLite&& from) noexcept {
  2389. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  2390. if (this != &from) InternalSwap(&from);
  2391. } else {
  2392. CopyFrom(from);
  2393. }
  2394. return *this;
  2395. }
  2396. #endif
  2397. inline const ::std::string& unknown_fields() const {
  2398. return _internal_metadata_.unknown_fields();
  2399. }
  2400. inline ::std::string* mutable_unknown_fields() {
  2401. return _internal_metadata_.mutable_unknown_fields();
  2402. }
  2403. static const TestDeprecatedLite& default_instance();
  2404. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  2405. static inline const TestDeprecatedLite* internal_default_instance() {
  2406. return reinterpret_cast<const TestDeprecatedLite*>(
  2407. &_TestDeprecatedLite_default_instance_);
  2408. }
  2409. static constexpr int kIndexInFileMessages =
  2410. 11;
  2411. void Swap(TestDeprecatedLite* other);
  2412. friend void swap(TestDeprecatedLite& a, TestDeprecatedLite& b) {
  2413. a.Swap(&b);
  2414. }
  2415. // implements Message ----------------------------------------------
  2416. inline TestDeprecatedLite* New() const final {
  2417. return CreateMaybeMessage<TestDeprecatedLite>(NULL);
  2418. }
  2419. TestDeprecatedLite* New(::google::protobuf::Arena* arena) const final {
  2420. return CreateMaybeMessage<TestDeprecatedLite>(arena);
  2421. }
  2422. void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from)
  2423. final;
  2424. void CopyFrom(const TestDeprecatedLite& from);
  2425. void MergeFrom(const TestDeprecatedLite& from);
  2426. void Clear() final;
  2427. bool IsInitialized() const final;
  2428. size_t ByteSizeLong() const final;
  2429. bool MergePartialFromCodedStream(
  2430. ::google::protobuf::io::CodedInputStream* input) final;
  2431. void SerializeWithCachedSizes(
  2432. ::google::protobuf::io::CodedOutputStream* output) const final;
  2433. void DiscardUnknownFields();
  2434. int GetCachedSize() const final { return _cached_size_.Get(); }
  2435. private:
  2436. void SharedCtor();
  2437. void SharedDtor();
  2438. void SetCachedSize(int size) const;
  2439. void InternalSwap(TestDeprecatedLite* other);
  2440. private:
  2441. inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
  2442. return NULL;
  2443. }
  2444. inline void* MaybeArenaPtr() const {
  2445. return NULL;
  2446. }
  2447. public:
  2448. ::std::string GetTypeName() const final;
  2449. // nested types ----------------------------------------------------
  2450. // accessors -------------------------------------------------------
  2451. // optional int32 deprecated_field = 1 [deprecated = true];
  2452. GOOGLE_PROTOBUF_DEPRECATED_ATTR bool has_deprecated_field() const;
  2453. GOOGLE_PROTOBUF_DEPRECATED_ATTR void clear_deprecated_field();
  2454. GOOGLE_PROTOBUF_DEPRECATED_ATTR static const int kDeprecatedFieldFieldNumber = 1;
  2455. GOOGLE_PROTOBUF_DEPRECATED_ATTR ::google::protobuf::int32 deprecated_field() const;
  2456. GOOGLE_PROTOBUF_DEPRECATED_ATTR void set_deprecated_field(::google::protobuf::int32 value);
  2457. // @@protoc_insertion_point(class_scope:protobuf_unittest.TestDeprecatedLite)
  2458. private:
  2459. void set_has_deprecated_field();
  2460. void clear_has_deprecated_field();
  2461. ::google::protobuf::internal::InternalMetadataWithArenaLite _internal_metadata_;
  2462. ::google::protobuf::internal::HasBits<1> _has_bits_;
  2463. mutable ::google::protobuf::internal::CachedSize _cached_size_;
  2464. ::google::protobuf::int32 deprecated_field_;
  2465. friend struct ::protobuf_google_2fprotobuf_2funittest_5flite_2eproto::TableStruct;
  2466. };
  2467. // -------------------------------------------------------------------
  2468. class TestParsingMergeLite_RepeatedFieldsGenerator_Group1 : public ::google::protobuf::MessageLite /* @@protoc_insertion_point(class_definition:protobuf_unittest.TestParsingMergeLite.RepeatedFieldsGenerator.Group1) */ {
  2469. public:
  2470. TestParsingMergeLite_RepeatedFieldsGenerator_Group1();
  2471. virtual ~TestParsingMergeLite_RepeatedFieldsGenerator_Group1();
  2472. TestParsingMergeLite_RepeatedFieldsGenerator_Group1(const TestParsingMergeLite_RepeatedFieldsGenerator_Group1& from);
  2473. inline TestParsingMergeLite_RepeatedFieldsGenerator_Group1& operator=(const TestParsingMergeLite_RepeatedFieldsGenerator_Group1& from) {
  2474. CopyFrom(from);
  2475. return *this;
  2476. }
  2477. #if LANG_CXX11
  2478. TestParsingMergeLite_RepeatedFieldsGenerator_Group1(TestParsingMergeLite_RepeatedFieldsGenerator_Group1&& from) noexcept
  2479. : TestParsingMergeLite_RepeatedFieldsGenerator_Group1() {
  2480. *this = ::std::move(from);
  2481. }
  2482. inline TestParsingMergeLite_RepeatedFieldsGenerator_Group1& operator=(TestParsingMergeLite_RepeatedFieldsGenerator_Group1&& from) noexcept {
  2483. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  2484. if (this != &from) InternalSwap(&from);
  2485. } else {
  2486. CopyFrom(from);
  2487. }
  2488. return *this;
  2489. }
  2490. #endif
  2491. inline const ::std::string& unknown_fields() const {
  2492. return _internal_metadata_.unknown_fields();
  2493. }
  2494. inline ::std::string* mutable_unknown_fields() {
  2495. return _internal_metadata_.mutable_unknown_fields();
  2496. }
  2497. static const TestParsingMergeLite_RepeatedFieldsGenerator_Group1& default_instance();
  2498. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  2499. static inline const TestParsingMergeLite_RepeatedFieldsGenerator_Group1* internal_default_instance() {
  2500. return reinterpret_cast<const TestParsingMergeLite_RepeatedFieldsGenerator_Group1*>(
  2501. &_TestParsingMergeLite_RepeatedFieldsGenerator_Group1_default_instance_);
  2502. }
  2503. static constexpr int kIndexInFileMessages =
  2504. 12;
  2505. void Swap(TestParsingMergeLite_RepeatedFieldsGenerator_Group1* other);
  2506. friend void swap(TestParsingMergeLite_RepeatedFieldsGenerator_Group1& a, TestParsingMergeLite_RepeatedFieldsGenerator_Group1& b) {
  2507. a.Swap(&b);
  2508. }
  2509. // implements Message ----------------------------------------------
  2510. inline TestParsingMergeLite_RepeatedFieldsGenerator_Group1* New() const final {
  2511. return CreateMaybeMessage<TestParsingMergeLite_RepeatedFieldsGenerator_Group1>(NULL);
  2512. }
  2513. TestParsingMergeLite_RepeatedFieldsGenerator_Group1* New(::google::protobuf::Arena* arena) const final {
  2514. return CreateMaybeMessage<TestParsingMergeLite_RepeatedFieldsGenerator_Group1>(arena);
  2515. }
  2516. void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from)
  2517. final;
  2518. void CopyFrom(const TestParsingMergeLite_RepeatedFieldsGenerator_Group1& from);
  2519. void MergeFrom(const TestParsingMergeLite_RepeatedFieldsGenerator_Group1& from);
  2520. void Clear() final;
  2521. bool IsInitialized() const final;
  2522. size_t ByteSizeLong() const final;
  2523. bool MergePartialFromCodedStream(
  2524. ::google::protobuf::io::CodedInputStream* input) final;
  2525. void SerializeWithCachedSizes(
  2526. ::google::protobuf::io::CodedOutputStream* output) const final;
  2527. void DiscardUnknownFields();
  2528. int GetCachedSize() const final { return _cached_size_.Get(); }
  2529. private:
  2530. void SharedCtor();
  2531. void SharedDtor();
  2532. void SetCachedSize(int size) const;
  2533. void InternalSwap(TestParsingMergeLite_RepeatedFieldsGenerator_Group1* other);
  2534. private:
  2535. inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
  2536. return NULL;
  2537. }
  2538. inline void* MaybeArenaPtr() const {
  2539. return NULL;
  2540. }
  2541. public:
  2542. ::std::string GetTypeName() const final;
  2543. // nested types ----------------------------------------------------
  2544. // accessors -------------------------------------------------------
  2545. // optional .protobuf_unittest.TestAllTypesLite field1 = 11;
  2546. bool has_field1() const;
  2547. void clear_field1();
  2548. static const int kField1FieldNumber = 11;
  2549. private:
  2550. const ::protobuf_unittest::TestAllTypesLite& _internal_field1() const;
  2551. public:
  2552. const ::protobuf_unittest::TestAllTypesLite& field1() const;
  2553. ::protobuf_unittest::TestAllTypesLite* release_field1();
  2554. ::protobuf_unittest::TestAllTypesLite* mutable_field1();
  2555. void set_allocated_field1(::protobuf_unittest::TestAllTypesLite* field1);
  2556. // @@protoc_insertion_point(class_scope:protobuf_unittest.TestParsingMergeLite.RepeatedFieldsGenerator.Group1)
  2557. private:
  2558. void set_has_field1();
  2559. void clear_has_field1();
  2560. ::google::protobuf::internal::InternalMetadataWithArenaLite _internal_metadata_;
  2561. ::google::protobuf::internal::HasBits<1> _has_bits_;
  2562. mutable ::google::protobuf::internal::CachedSize _cached_size_;
  2563. ::protobuf_unittest::TestAllTypesLite* field1_;
  2564. friend struct ::protobuf_google_2fprotobuf_2funittest_5flite_2eproto::TableStruct;
  2565. };
  2566. // -------------------------------------------------------------------
  2567. class TestParsingMergeLite_RepeatedFieldsGenerator_Group2 : public ::google::protobuf::MessageLite /* @@protoc_insertion_point(class_definition:protobuf_unittest.TestParsingMergeLite.RepeatedFieldsGenerator.Group2) */ {
  2568. public:
  2569. TestParsingMergeLite_RepeatedFieldsGenerator_Group2();
  2570. virtual ~TestParsingMergeLite_RepeatedFieldsGenerator_Group2();
  2571. TestParsingMergeLite_RepeatedFieldsGenerator_Group2(const TestParsingMergeLite_RepeatedFieldsGenerator_Group2& from);
  2572. inline TestParsingMergeLite_RepeatedFieldsGenerator_Group2& operator=(const TestParsingMergeLite_RepeatedFieldsGenerator_Group2& from) {
  2573. CopyFrom(from);
  2574. return *this;
  2575. }
  2576. #if LANG_CXX11
  2577. TestParsingMergeLite_RepeatedFieldsGenerator_Group2(TestParsingMergeLite_RepeatedFieldsGenerator_Group2&& from) noexcept
  2578. : TestParsingMergeLite_RepeatedFieldsGenerator_Group2() {
  2579. *this = ::std::move(from);
  2580. }
  2581. inline TestParsingMergeLite_RepeatedFieldsGenerator_Group2& operator=(TestParsingMergeLite_RepeatedFieldsGenerator_Group2&& from) noexcept {
  2582. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  2583. if (this != &from) InternalSwap(&from);
  2584. } else {
  2585. CopyFrom(from);
  2586. }
  2587. return *this;
  2588. }
  2589. #endif
  2590. inline const ::std::string& unknown_fields() const {
  2591. return _internal_metadata_.unknown_fields();
  2592. }
  2593. inline ::std::string* mutable_unknown_fields() {
  2594. return _internal_metadata_.mutable_unknown_fields();
  2595. }
  2596. static const TestParsingMergeLite_RepeatedFieldsGenerator_Group2& default_instance();
  2597. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  2598. static inline const TestParsingMergeLite_RepeatedFieldsGenerator_Group2* internal_default_instance() {
  2599. return reinterpret_cast<const TestParsingMergeLite_RepeatedFieldsGenerator_Group2*>(
  2600. &_TestParsingMergeLite_RepeatedFieldsGenerator_Group2_default_instance_);
  2601. }
  2602. static constexpr int kIndexInFileMessages =
  2603. 13;
  2604. void Swap(TestParsingMergeLite_RepeatedFieldsGenerator_Group2* other);
  2605. friend void swap(TestParsingMergeLite_RepeatedFieldsGenerator_Group2& a, TestParsingMergeLite_RepeatedFieldsGenerator_Group2& b) {
  2606. a.Swap(&b);
  2607. }
  2608. // implements Message ----------------------------------------------
  2609. inline TestParsingMergeLite_RepeatedFieldsGenerator_Group2* New() const final {
  2610. return CreateMaybeMessage<TestParsingMergeLite_RepeatedFieldsGenerator_Group2>(NULL);
  2611. }
  2612. TestParsingMergeLite_RepeatedFieldsGenerator_Group2* New(::google::protobuf::Arena* arena) const final {
  2613. return CreateMaybeMessage<TestParsingMergeLite_RepeatedFieldsGenerator_Group2>(arena);
  2614. }
  2615. void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from)
  2616. final;
  2617. void CopyFrom(const TestParsingMergeLite_RepeatedFieldsGenerator_Group2& from);
  2618. void MergeFrom(const TestParsingMergeLite_RepeatedFieldsGenerator_Group2& from);
  2619. void Clear() final;
  2620. bool IsInitialized() const final;
  2621. size_t ByteSizeLong() const final;
  2622. bool MergePartialFromCodedStream(
  2623. ::google::protobuf::io::CodedInputStream* input) final;
  2624. void SerializeWithCachedSizes(
  2625. ::google::protobuf::io::CodedOutputStream* output) const final;
  2626. void DiscardUnknownFields();
  2627. int GetCachedSize() const final { return _cached_size_.Get(); }
  2628. private:
  2629. void SharedCtor();
  2630. void SharedDtor();
  2631. void SetCachedSize(int size) const;
  2632. void InternalSwap(TestParsingMergeLite_RepeatedFieldsGenerator_Group2* other);
  2633. private:
  2634. inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
  2635. return NULL;
  2636. }
  2637. inline void* MaybeArenaPtr() const {
  2638. return NULL;
  2639. }
  2640. public:
  2641. ::std::string GetTypeName() const final;
  2642. // nested types ----------------------------------------------------
  2643. // accessors -------------------------------------------------------
  2644. // optional .protobuf_unittest.TestAllTypesLite field1 = 21;
  2645. bool has_field1() const;
  2646. void clear_field1();
  2647. static const int kField1FieldNumber = 21;
  2648. private:
  2649. const ::protobuf_unittest::TestAllTypesLite& _internal_field1() const;
  2650. public:
  2651. const ::protobuf_unittest::TestAllTypesLite& field1() const;
  2652. ::protobuf_unittest::TestAllTypesLite* release_field1();
  2653. ::protobuf_unittest::TestAllTypesLite* mutable_field1();
  2654. void set_allocated_field1(::protobuf_unittest::TestAllTypesLite* field1);
  2655. // @@protoc_insertion_point(class_scope:protobuf_unittest.TestParsingMergeLite.RepeatedFieldsGenerator.Group2)
  2656. private:
  2657. void set_has_field1();
  2658. void clear_has_field1();
  2659. ::google::protobuf::internal::InternalMetadataWithArenaLite _internal_metadata_;
  2660. ::google::protobuf::internal::HasBits<1> _has_bits_;
  2661. mutable ::google::protobuf::internal::CachedSize _cached_size_;
  2662. ::protobuf_unittest::TestAllTypesLite* field1_;
  2663. friend struct ::protobuf_google_2fprotobuf_2funittest_5flite_2eproto::TableStruct;
  2664. };
  2665. // -------------------------------------------------------------------
  2666. class TestParsingMergeLite_RepeatedFieldsGenerator : public ::google::protobuf::MessageLite /* @@protoc_insertion_point(class_definition:protobuf_unittest.TestParsingMergeLite.RepeatedFieldsGenerator) */ {
  2667. public:
  2668. TestParsingMergeLite_RepeatedFieldsGenerator();
  2669. virtual ~TestParsingMergeLite_RepeatedFieldsGenerator();
  2670. TestParsingMergeLite_RepeatedFieldsGenerator(const TestParsingMergeLite_RepeatedFieldsGenerator& from);
  2671. inline TestParsingMergeLite_RepeatedFieldsGenerator& operator=(const TestParsingMergeLite_RepeatedFieldsGenerator& from) {
  2672. CopyFrom(from);
  2673. return *this;
  2674. }
  2675. #if LANG_CXX11
  2676. TestParsingMergeLite_RepeatedFieldsGenerator(TestParsingMergeLite_RepeatedFieldsGenerator&& from) noexcept
  2677. : TestParsingMergeLite_RepeatedFieldsGenerator() {
  2678. *this = ::std::move(from);
  2679. }
  2680. inline TestParsingMergeLite_RepeatedFieldsGenerator& operator=(TestParsingMergeLite_RepeatedFieldsGenerator&& from) noexcept {
  2681. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  2682. if (this != &from) InternalSwap(&from);
  2683. } else {
  2684. CopyFrom(from);
  2685. }
  2686. return *this;
  2687. }
  2688. #endif
  2689. inline const ::std::string& unknown_fields() const {
  2690. return _internal_metadata_.unknown_fields();
  2691. }
  2692. inline ::std::string* mutable_unknown_fields() {
  2693. return _internal_metadata_.mutable_unknown_fields();
  2694. }
  2695. static const TestParsingMergeLite_RepeatedFieldsGenerator& default_instance();
  2696. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  2697. static inline const TestParsingMergeLite_RepeatedFieldsGenerator* internal_default_instance() {
  2698. return reinterpret_cast<const TestParsingMergeLite_RepeatedFieldsGenerator*>(
  2699. &_TestParsingMergeLite_RepeatedFieldsGenerator_default_instance_);
  2700. }
  2701. static constexpr int kIndexInFileMessages =
  2702. 14;
  2703. void Swap(TestParsingMergeLite_RepeatedFieldsGenerator* other);
  2704. friend void swap(TestParsingMergeLite_RepeatedFieldsGenerator& a, TestParsingMergeLite_RepeatedFieldsGenerator& b) {
  2705. a.Swap(&b);
  2706. }
  2707. // implements Message ----------------------------------------------
  2708. inline TestParsingMergeLite_RepeatedFieldsGenerator* New() const final {
  2709. return CreateMaybeMessage<TestParsingMergeLite_RepeatedFieldsGenerator>(NULL);
  2710. }
  2711. TestParsingMergeLite_RepeatedFieldsGenerator* New(::google::protobuf::Arena* arena) const final {
  2712. return CreateMaybeMessage<TestParsingMergeLite_RepeatedFieldsGenerator>(arena);
  2713. }
  2714. void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from)
  2715. final;
  2716. void CopyFrom(const TestParsingMergeLite_RepeatedFieldsGenerator& from);
  2717. void MergeFrom(const TestParsingMergeLite_RepeatedFieldsGenerator& from);
  2718. void Clear() final;
  2719. bool IsInitialized() const final;
  2720. size_t ByteSizeLong() const final;
  2721. bool MergePartialFromCodedStream(
  2722. ::google::protobuf::io::CodedInputStream* input) final;
  2723. void SerializeWithCachedSizes(
  2724. ::google::protobuf::io::CodedOutputStream* output) const final;
  2725. void DiscardUnknownFields();
  2726. int GetCachedSize() const final { return _cached_size_.Get(); }
  2727. private:
  2728. void SharedCtor();
  2729. void SharedDtor();
  2730. void SetCachedSize(int size) const;
  2731. void InternalSwap(TestParsingMergeLite_RepeatedFieldsGenerator* other);
  2732. private:
  2733. inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
  2734. return NULL;
  2735. }
  2736. inline void* MaybeArenaPtr() const {
  2737. return NULL;
  2738. }
  2739. public:
  2740. ::std::string GetTypeName() const final;
  2741. // nested types ----------------------------------------------------
  2742. typedef TestParsingMergeLite_RepeatedFieldsGenerator_Group1 Group1;
  2743. typedef TestParsingMergeLite_RepeatedFieldsGenerator_Group2 Group2;
  2744. // accessors -------------------------------------------------------
  2745. // repeated .protobuf_unittest.TestAllTypesLite field1 = 1;
  2746. int field1_size() const;
  2747. void clear_field1();
  2748. static const int kField1FieldNumber = 1;
  2749. ::protobuf_unittest::TestAllTypesLite* mutable_field1(int index);
  2750. ::google::protobuf::RepeatedPtrField< ::protobuf_unittest::TestAllTypesLite >*
  2751. mutable_field1();
  2752. const ::protobuf_unittest::TestAllTypesLite& field1(int index) const;
  2753. ::protobuf_unittest::TestAllTypesLite* add_field1();
  2754. const ::google::protobuf::RepeatedPtrField< ::protobuf_unittest::TestAllTypesLite >&
  2755. field1() const;
  2756. // repeated .protobuf_unittest.TestAllTypesLite field2 = 2;
  2757. int field2_size() const;
  2758. void clear_field2();
  2759. static const int kField2FieldNumber = 2;
  2760. ::protobuf_unittest::TestAllTypesLite* mutable_field2(int index);
  2761. ::google::protobuf::RepeatedPtrField< ::protobuf_unittest::TestAllTypesLite >*
  2762. mutable_field2();
  2763. const ::protobuf_unittest::TestAllTypesLite& field2(int index) const;
  2764. ::protobuf_unittest::TestAllTypesLite* add_field2();
  2765. const ::google::protobuf::RepeatedPtrField< ::protobuf_unittest::TestAllTypesLite >&
  2766. field2() const;
  2767. // repeated .protobuf_unittest.TestAllTypesLite field3 = 3;
  2768. int field3_size() const;
  2769. void clear_field3();
  2770. static const int kField3FieldNumber = 3;
  2771. ::protobuf_unittest::TestAllTypesLite* mutable_field3(int index);
  2772. ::google::protobuf::RepeatedPtrField< ::protobuf_unittest::TestAllTypesLite >*
  2773. mutable_field3();
  2774. const ::protobuf_unittest::TestAllTypesLite& field3(int index) const;
  2775. ::protobuf_unittest::TestAllTypesLite* add_field3();
  2776. const ::google::protobuf::RepeatedPtrField< ::protobuf_unittest::TestAllTypesLite >&
  2777. field3() const;
  2778. // repeated group Group1 = 10 { ... };
  2779. int group1_size() const;
  2780. void clear_group1();
  2781. static const int kGroup1FieldNumber = 10;
  2782. ::protobuf_unittest::TestParsingMergeLite_RepeatedFieldsGenerator_Group1* mutable_group1(int index);
  2783. ::google::protobuf::RepeatedPtrField< ::protobuf_unittest::TestParsingMergeLite_RepeatedFieldsGenerator_Group1 >*
  2784. mutable_group1();
  2785. const ::protobuf_unittest::TestParsingMergeLite_RepeatedFieldsGenerator_Group1& group1(int index) const;
  2786. ::protobuf_unittest::TestParsingMergeLite_RepeatedFieldsGenerator_Group1* add_group1();
  2787. const ::google::protobuf::RepeatedPtrField< ::protobuf_unittest::TestParsingMergeLite_RepeatedFieldsGenerator_Group1 >&
  2788. group1() const;
  2789. // repeated group Group2 = 20 { ... };
  2790. int group2_size() const;
  2791. void clear_group2();
  2792. static const int kGroup2FieldNumber = 20;
  2793. ::protobuf_unittest::TestParsingMergeLite_RepeatedFieldsGenerator_Group2* mutable_group2(int index);
  2794. ::google::protobuf::RepeatedPtrField< ::protobuf_unittest::TestParsingMergeLite_RepeatedFieldsGenerator_Group2 >*
  2795. mutable_group2();
  2796. const ::protobuf_unittest::TestParsingMergeLite_RepeatedFieldsGenerator_Group2& group2(int index) const;
  2797. ::protobuf_unittest::TestParsingMergeLite_RepeatedFieldsGenerator_Group2* add_group2();
  2798. const ::google::protobuf::RepeatedPtrField< ::protobuf_unittest::TestParsingMergeLite_RepeatedFieldsGenerator_Group2 >&
  2799. group2() const;
  2800. // repeated .protobuf_unittest.TestAllTypesLite ext1 = 1000;
  2801. int ext1_size() const;
  2802. void clear_ext1();
  2803. static const int kExt1FieldNumber = 1000;
  2804. ::protobuf_unittest::TestAllTypesLite* mutable_ext1(int index);
  2805. ::google::protobuf::RepeatedPtrField< ::protobuf_unittest::TestAllTypesLite >*
  2806. mutable_ext1();
  2807. const ::protobuf_unittest::TestAllTypesLite& ext1(int index) const;
  2808. ::protobuf_unittest::TestAllTypesLite* add_ext1();
  2809. const ::google::protobuf::RepeatedPtrField< ::protobuf_unittest::TestAllTypesLite >&
  2810. ext1() const;
  2811. // repeated .protobuf_unittest.TestAllTypesLite ext2 = 1001;
  2812. int ext2_size() const;
  2813. void clear_ext2();
  2814. static const int kExt2FieldNumber = 1001;
  2815. ::protobuf_unittest::TestAllTypesLite* mutable_ext2(int index);
  2816. ::google::protobuf::RepeatedPtrField< ::protobuf_unittest::TestAllTypesLite >*
  2817. mutable_ext2();
  2818. const ::protobuf_unittest::TestAllTypesLite& ext2(int index) const;
  2819. ::protobuf_unittest::TestAllTypesLite* add_ext2();
  2820. const ::google::protobuf::RepeatedPtrField< ::protobuf_unittest::TestAllTypesLite >&
  2821. ext2() const;
  2822. // @@protoc_insertion_point(class_scope:protobuf_unittest.TestParsingMergeLite.RepeatedFieldsGenerator)
  2823. private:
  2824. ::google::protobuf::internal::InternalMetadataWithArenaLite _internal_metadata_;
  2825. ::google::protobuf::internal::HasBits<1> _has_bits_;
  2826. mutable ::google::protobuf::internal::CachedSize _cached_size_;
  2827. ::google::protobuf::RepeatedPtrField< ::protobuf_unittest::TestAllTypesLite > field1_;
  2828. ::google::protobuf::RepeatedPtrField< ::protobuf_unittest::TestAllTypesLite > field2_;
  2829. ::google::protobuf::RepeatedPtrField< ::protobuf_unittest::TestAllTypesLite > field3_;
  2830. ::google::protobuf::RepeatedPtrField< ::protobuf_unittest::TestParsingMergeLite_RepeatedFieldsGenerator_Group1 > group1_;
  2831. ::google::protobuf::RepeatedPtrField< ::protobuf_unittest::TestParsingMergeLite_RepeatedFieldsGenerator_Group2 > group2_;
  2832. ::google::protobuf::RepeatedPtrField< ::protobuf_unittest::TestAllTypesLite > ext1_;
  2833. ::google::protobuf::RepeatedPtrField< ::protobuf_unittest::TestAllTypesLite > ext2_;
  2834. friend struct ::protobuf_google_2fprotobuf_2funittest_5flite_2eproto::TableStruct;
  2835. };
  2836. // -------------------------------------------------------------------
  2837. class TestParsingMergeLite_OptionalGroup : public ::google::protobuf::MessageLite /* @@protoc_insertion_point(class_definition:protobuf_unittest.TestParsingMergeLite.OptionalGroup) */ {
  2838. public:
  2839. TestParsingMergeLite_OptionalGroup();
  2840. virtual ~TestParsingMergeLite_OptionalGroup();
  2841. TestParsingMergeLite_OptionalGroup(const TestParsingMergeLite_OptionalGroup& from);
  2842. inline TestParsingMergeLite_OptionalGroup& operator=(const TestParsingMergeLite_OptionalGroup& from) {
  2843. CopyFrom(from);
  2844. return *this;
  2845. }
  2846. #if LANG_CXX11
  2847. TestParsingMergeLite_OptionalGroup(TestParsingMergeLite_OptionalGroup&& from) noexcept
  2848. : TestParsingMergeLite_OptionalGroup() {
  2849. *this = ::std::move(from);
  2850. }
  2851. inline TestParsingMergeLite_OptionalGroup& operator=(TestParsingMergeLite_OptionalGroup&& from) noexcept {
  2852. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  2853. if (this != &from) InternalSwap(&from);
  2854. } else {
  2855. CopyFrom(from);
  2856. }
  2857. return *this;
  2858. }
  2859. #endif
  2860. inline const ::std::string& unknown_fields() const {
  2861. return _internal_metadata_.unknown_fields();
  2862. }
  2863. inline ::std::string* mutable_unknown_fields() {
  2864. return _internal_metadata_.mutable_unknown_fields();
  2865. }
  2866. static const TestParsingMergeLite_OptionalGroup& default_instance();
  2867. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  2868. static inline const TestParsingMergeLite_OptionalGroup* internal_default_instance() {
  2869. return reinterpret_cast<const TestParsingMergeLite_OptionalGroup*>(
  2870. &_TestParsingMergeLite_OptionalGroup_default_instance_);
  2871. }
  2872. static constexpr int kIndexInFileMessages =
  2873. 15;
  2874. void Swap(TestParsingMergeLite_OptionalGroup* other);
  2875. friend void swap(TestParsingMergeLite_OptionalGroup& a, TestParsingMergeLite_OptionalGroup& b) {
  2876. a.Swap(&b);
  2877. }
  2878. // implements Message ----------------------------------------------
  2879. inline TestParsingMergeLite_OptionalGroup* New() const final {
  2880. return CreateMaybeMessage<TestParsingMergeLite_OptionalGroup>(NULL);
  2881. }
  2882. TestParsingMergeLite_OptionalGroup* New(::google::protobuf::Arena* arena) const final {
  2883. return CreateMaybeMessage<TestParsingMergeLite_OptionalGroup>(arena);
  2884. }
  2885. void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from)
  2886. final;
  2887. void CopyFrom(const TestParsingMergeLite_OptionalGroup& from);
  2888. void MergeFrom(const TestParsingMergeLite_OptionalGroup& from);
  2889. void Clear() final;
  2890. bool IsInitialized() const final;
  2891. size_t ByteSizeLong() const final;
  2892. bool MergePartialFromCodedStream(
  2893. ::google::protobuf::io::CodedInputStream* input) final;
  2894. void SerializeWithCachedSizes(
  2895. ::google::protobuf::io::CodedOutputStream* output) const final;
  2896. void DiscardUnknownFields();
  2897. int GetCachedSize() const final { return _cached_size_.Get(); }
  2898. private:
  2899. void SharedCtor();
  2900. void SharedDtor();
  2901. void SetCachedSize(int size) const;
  2902. void InternalSwap(TestParsingMergeLite_OptionalGroup* other);
  2903. private:
  2904. inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
  2905. return NULL;
  2906. }
  2907. inline void* MaybeArenaPtr() const {
  2908. return NULL;
  2909. }
  2910. public:
  2911. ::std::string GetTypeName() const final;
  2912. // nested types ----------------------------------------------------
  2913. // accessors -------------------------------------------------------
  2914. // optional .protobuf_unittest.TestAllTypesLite optional_group_all_types = 11;
  2915. bool has_optional_group_all_types() const;
  2916. void clear_optional_group_all_types();
  2917. static const int kOptionalGroupAllTypesFieldNumber = 11;
  2918. private:
  2919. const ::protobuf_unittest::TestAllTypesLite& _internal_optional_group_all_types() const;
  2920. public:
  2921. const ::protobuf_unittest::TestAllTypesLite& optional_group_all_types() const;
  2922. ::protobuf_unittest::TestAllTypesLite* release_optional_group_all_types();
  2923. ::protobuf_unittest::TestAllTypesLite* mutable_optional_group_all_types();
  2924. void set_allocated_optional_group_all_types(::protobuf_unittest::TestAllTypesLite* optional_group_all_types);
  2925. // @@protoc_insertion_point(class_scope:protobuf_unittest.TestParsingMergeLite.OptionalGroup)
  2926. private:
  2927. void set_has_optional_group_all_types();
  2928. void clear_has_optional_group_all_types();
  2929. ::google::protobuf::internal::InternalMetadataWithArenaLite _internal_metadata_;
  2930. ::google::protobuf::internal::HasBits<1> _has_bits_;
  2931. mutable ::google::protobuf::internal::CachedSize _cached_size_;
  2932. ::protobuf_unittest::TestAllTypesLite* optional_group_all_types_;
  2933. friend struct ::protobuf_google_2fprotobuf_2funittest_5flite_2eproto::TableStruct;
  2934. };
  2935. // -------------------------------------------------------------------
  2936. class TestParsingMergeLite_RepeatedGroup : public ::google::protobuf::MessageLite /* @@protoc_insertion_point(class_definition:protobuf_unittest.TestParsingMergeLite.RepeatedGroup) */ {
  2937. public:
  2938. TestParsingMergeLite_RepeatedGroup();
  2939. virtual ~TestParsingMergeLite_RepeatedGroup();
  2940. TestParsingMergeLite_RepeatedGroup(const TestParsingMergeLite_RepeatedGroup& from);
  2941. inline TestParsingMergeLite_RepeatedGroup& operator=(const TestParsingMergeLite_RepeatedGroup& from) {
  2942. CopyFrom(from);
  2943. return *this;
  2944. }
  2945. #if LANG_CXX11
  2946. TestParsingMergeLite_RepeatedGroup(TestParsingMergeLite_RepeatedGroup&& from) noexcept
  2947. : TestParsingMergeLite_RepeatedGroup() {
  2948. *this = ::std::move(from);
  2949. }
  2950. inline TestParsingMergeLite_RepeatedGroup& operator=(TestParsingMergeLite_RepeatedGroup&& from) noexcept {
  2951. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  2952. if (this != &from) InternalSwap(&from);
  2953. } else {
  2954. CopyFrom(from);
  2955. }
  2956. return *this;
  2957. }
  2958. #endif
  2959. inline const ::std::string& unknown_fields() const {
  2960. return _internal_metadata_.unknown_fields();
  2961. }
  2962. inline ::std::string* mutable_unknown_fields() {
  2963. return _internal_metadata_.mutable_unknown_fields();
  2964. }
  2965. static const TestParsingMergeLite_RepeatedGroup& default_instance();
  2966. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  2967. static inline const TestParsingMergeLite_RepeatedGroup* internal_default_instance() {
  2968. return reinterpret_cast<const TestParsingMergeLite_RepeatedGroup*>(
  2969. &_TestParsingMergeLite_RepeatedGroup_default_instance_);
  2970. }
  2971. static constexpr int kIndexInFileMessages =
  2972. 16;
  2973. void Swap(TestParsingMergeLite_RepeatedGroup* other);
  2974. friend void swap(TestParsingMergeLite_RepeatedGroup& a, TestParsingMergeLite_RepeatedGroup& b) {
  2975. a.Swap(&b);
  2976. }
  2977. // implements Message ----------------------------------------------
  2978. inline TestParsingMergeLite_RepeatedGroup* New() const final {
  2979. return CreateMaybeMessage<TestParsingMergeLite_RepeatedGroup>(NULL);
  2980. }
  2981. TestParsingMergeLite_RepeatedGroup* New(::google::protobuf::Arena* arena) const final {
  2982. return CreateMaybeMessage<TestParsingMergeLite_RepeatedGroup>(arena);
  2983. }
  2984. void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from)
  2985. final;
  2986. void CopyFrom(const TestParsingMergeLite_RepeatedGroup& from);
  2987. void MergeFrom(const TestParsingMergeLite_RepeatedGroup& from);
  2988. void Clear() final;
  2989. bool IsInitialized() const final;
  2990. size_t ByteSizeLong() const final;
  2991. bool MergePartialFromCodedStream(
  2992. ::google::protobuf::io::CodedInputStream* input) final;
  2993. void SerializeWithCachedSizes(
  2994. ::google::protobuf::io::CodedOutputStream* output) const final;
  2995. void DiscardUnknownFields();
  2996. int GetCachedSize() const final { return _cached_size_.Get(); }
  2997. private:
  2998. void SharedCtor();
  2999. void SharedDtor();
  3000. void SetCachedSize(int size) const;
  3001. void InternalSwap(TestParsingMergeLite_RepeatedGroup* other);
  3002. private:
  3003. inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
  3004. return NULL;
  3005. }
  3006. inline void* MaybeArenaPtr() const {
  3007. return NULL;
  3008. }
  3009. public:
  3010. ::std::string GetTypeName() const final;
  3011. // nested types ----------------------------------------------------
  3012. // accessors -------------------------------------------------------
  3013. // optional .protobuf_unittest.TestAllTypesLite repeated_group_all_types = 21;
  3014. bool has_repeated_group_all_types() const;
  3015. void clear_repeated_group_all_types();
  3016. static const int kRepeatedGroupAllTypesFieldNumber = 21;
  3017. private:
  3018. const ::protobuf_unittest::TestAllTypesLite& _internal_repeated_group_all_types() const;
  3019. public:
  3020. const ::protobuf_unittest::TestAllTypesLite& repeated_group_all_types() const;
  3021. ::protobuf_unittest::TestAllTypesLite* release_repeated_group_all_types();
  3022. ::protobuf_unittest::TestAllTypesLite* mutable_repeated_group_all_types();
  3023. void set_allocated_repeated_group_all_types(::protobuf_unittest::TestAllTypesLite* repeated_group_all_types);
  3024. // @@protoc_insertion_point(class_scope:protobuf_unittest.TestParsingMergeLite.RepeatedGroup)
  3025. private:
  3026. void set_has_repeated_group_all_types();
  3027. void clear_has_repeated_group_all_types();
  3028. ::google::protobuf::internal::InternalMetadataWithArenaLite _internal_metadata_;
  3029. ::google::protobuf::internal::HasBits<1> _has_bits_;
  3030. mutable ::google::protobuf::internal::CachedSize _cached_size_;
  3031. ::protobuf_unittest::TestAllTypesLite* repeated_group_all_types_;
  3032. friend struct ::protobuf_google_2fprotobuf_2funittest_5flite_2eproto::TableStruct;
  3033. };
  3034. // -------------------------------------------------------------------
  3035. class TestParsingMergeLite : public ::google::protobuf::MessageLite /* @@protoc_insertion_point(class_definition:protobuf_unittest.TestParsingMergeLite) */ {
  3036. public:
  3037. TestParsingMergeLite();
  3038. virtual ~TestParsingMergeLite();
  3039. TestParsingMergeLite(const TestParsingMergeLite& from);
  3040. inline TestParsingMergeLite& operator=(const TestParsingMergeLite& from) {
  3041. CopyFrom(from);
  3042. return *this;
  3043. }
  3044. #if LANG_CXX11
  3045. TestParsingMergeLite(TestParsingMergeLite&& from) noexcept
  3046. : TestParsingMergeLite() {
  3047. *this = ::std::move(from);
  3048. }
  3049. inline TestParsingMergeLite& operator=(TestParsingMergeLite&& from) noexcept {
  3050. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  3051. if (this != &from) InternalSwap(&from);
  3052. } else {
  3053. CopyFrom(from);
  3054. }
  3055. return *this;
  3056. }
  3057. #endif
  3058. inline const ::std::string& unknown_fields() const {
  3059. return _internal_metadata_.unknown_fields();
  3060. }
  3061. inline ::std::string* mutable_unknown_fields() {
  3062. return _internal_metadata_.mutable_unknown_fields();
  3063. }
  3064. static const TestParsingMergeLite& default_instance();
  3065. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  3066. static inline const TestParsingMergeLite* internal_default_instance() {
  3067. return reinterpret_cast<const TestParsingMergeLite*>(
  3068. &_TestParsingMergeLite_default_instance_);
  3069. }
  3070. static constexpr int kIndexInFileMessages =
  3071. 17;
  3072. void Swap(TestParsingMergeLite* other);
  3073. friend void swap(TestParsingMergeLite& a, TestParsingMergeLite& b) {
  3074. a.Swap(&b);
  3075. }
  3076. // implements Message ----------------------------------------------
  3077. inline TestParsingMergeLite* New() const final {
  3078. return CreateMaybeMessage<TestParsingMergeLite>(NULL);
  3079. }
  3080. TestParsingMergeLite* New(::google::protobuf::Arena* arena) const final {
  3081. return CreateMaybeMessage<TestParsingMergeLite>(arena);
  3082. }
  3083. void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from)
  3084. final;
  3085. void CopyFrom(const TestParsingMergeLite& from);
  3086. void MergeFrom(const TestParsingMergeLite& from);
  3087. void Clear() final;
  3088. bool IsInitialized() const final;
  3089. size_t ByteSizeLong() const final;
  3090. bool MergePartialFromCodedStream(
  3091. ::google::protobuf::io::CodedInputStream* input) final;
  3092. void SerializeWithCachedSizes(
  3093. ::google::protobuf::io::CodedOutputStream* output) const final;
  3094. void DiscardUnknownFields();
  3095. int GetCachedSize() const final { return _cached_size_.Get(); }
  3096. private:
  3097. void SharedCtor();
  3098. void SharedDtor();
  3099. void SetCachedSize(int size) const;
  3100. void InternalSwap(TestParsingMergeLite* other);
  3101. private:
  3102. inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
  3103. return NULL;
  3104. }
  3105. inline void* MaybeArenaPtr() const {
  3106. return NULL;
  3107. }
  3108. public:
  3109. ::std::string GetTypeName() const final;
  3110. // nested types ----------------------------------------------------
  3111. typedef TestParsingMergeLite_RepeatedFieldsGenerator RepeatedFieldsGenerator;
  3112. typedef TestParsingMergeLite_OptionalGroup OptionalGroup;
  3113. typedef TestParsingMergeLite_RepeatedGroup RepeatedGroup;
  3114. // accessors -------------------------------------------------------
  3115. // repeated .protobuf_unittest.TestAllTypesLite repeated_all_types = 3;
  3116. int repeated_all_types_size() const;
  3117. void clear_repeated_all_types();
  3118. static const int kRepeatedAllTypesFieldNumber = 3;
  3119. ::protobuf_unittest::TestAllTypesLite* mutable_repeated_all_types(int index);
  3120. ::google::protobuf::RepeatedPtrField< ::protobuf_unittest::TestAllTypesLite >*
  3121. mutable_repeated_all_types();
  3122. const ::protobuf_unittest::TestAllTypesLite& repeated_all_types(int index) const;
  3123. ::protobuf_unittest::TestAllTypesLite* add_repeated_all_types();
  3124. const ::google::protobuf::RepeatedPtrField< ::protobuf_unittest::TestAllTypesLite >&
  3125. repeated_all_types() const;
  3126. // repeated group RepeatedGroup = 20 { ... };
  3127. int repeatedgroup_size() const;
  3128. void clear_repeatedgroup();
  3129. static const int kRepeatedgroupFieldNumber = 20;
  3130. ::protobuf_unittest::TestParsingMergeLite_RepeatedGroup* mutable_repeatedgroup(int index);
  3131. ::google::protobuf::RepeatedPtrField< ::protobuf_unittest::TestParsingMergeLite_RepeatedGroup >*
  3132. mutable_repeatedgroup();
  3133. const ::protobuf_unittest::TestParsingMergeLite_RepeatedGroup& repeatedgroup(int index) const;
  3134. ::protobuf_unittest::TestParsingMergeLite_RepeatedGroup* add_repeatedgroup();
  3135. const ::google::protobuf::RepeatedPtrField< ::protobuf_unittest::TestParsingMergeLite_RepeatedGroup >&
  3136. repeatedgroup() const;
  3137. // required .protobuf_unittest.TestAllTypesLite required_all_types = 1;
  3138. bool has_required_all_types() const;
  3139. void clear_required_all_types();
  3140. static const int kRequiredAllTypesFieldNumber = 1;
  3141. private:
  3142. const ::protobuf_unittest::TestAllTypesLite& _internal_required_all_types() const;
  3143. public:
  3144. const ::protobuf_unittest::TestAllTypesLite& required_all_types() const;
  3145. ::protobuf_unittest::TestAllTypesLite* release_required_all_types();
  3146. ::protobuf_unittest::TestAllTypesLite* mutable_required_all_types();
  3147. void set_allocated_required_all_types(::protobuf_unittest::TestAllTypesLite* required_all_types);
  3148. // optional .protobuf_unittest.TestAllTypesLite optional_all_types = 2;
  3149. bool has_optional_all_types() const;
  3150. void clear_optional_all_types();
  3151. static const int kOptionalAllTypesFieldNumber = 2;
  3152. private:
  3153. const ::protobuf_unittest::TestAllTypesLite& _internal_optional_all_types() const;
  3154. public:
  3155. const ::protobuf_unittest::TestAllTypesLite& optional_all_types() const;
  3156. ::protobuf_unittest::TestAllTypesLite* release_optional_all_types();
  3157. ::protobuf_unittest::TestAllTypesLite* mutable_optional_all_types();
  3158. void set_allocated_optional_all_types(::protobuf_unittest::TestAllTypesLite* optional_all_types);
  3159. // optional group OptionalGroup = 10 { ... };
  3160. bool has_optionalgroup() const;
  3161. void clear_optionalgroup();
  3162. static const int kOptionalgroupFieldNumber = 10;
  3163. private:
  3164. const ::protobuf_unittest::TestParsingMergeLite_OptionalGroup& _internal_optionalgroup() const;
  3165. public:
  3166. const ::protobuf_unittest::TestParsingMergeLite_OptionalGroup& optionalgroup() const;
  3167. ::protobuf_unittest::TestParsingMergeLite_OptionalGroup* release_optionalgroup();
  3168. ::protobuf_unittest::TestParsingMergeLite_OptionalGroup* mutable_optionalgroup();
  3169. void set_allocated_optionalgroup(::protobuf_unittest::TestParsingMergeLite_OptionalGroup* optionalgroup);
  3170. GOOGLE_PROTOBUF_EXTENSION_ACCESSORS(TestParsingMergeLite)
  3171. static const int kOptionalExtFieldNumber = 1000;
  3172. static ::google::protobuf::internal::ExtensionIdentifier< ::protobuf_unittest::TestParsingMergeLite,
  3173. ::google::protobuf::internal::MessageTypeTraits< ::protobuf_unittest::TestAllTypesLite >, 11, false >
  3174. optional_ext;
  3175. static const int kRepeatedExtFieldNumber = 1001;
  3176. static ::google::protobuf::internal::ExtensionIdentifier< ::protobuf_unittest::TestParsingMergeLite,
  3177. ::google::protobuf::internal::RepeatedMessageTypeTraits< ::protobuf_unittest::TestAllTypesLite >, 11, false >
  3178. repeated_ext;
  3179. // @@protoc_insertion_point(class_scope:protobuf_unittest.TestParsingMergeLite)
  3180. private:
  3181. void set_has_required_all_types();
  3182. void clear_has_required_all_types();
  3183. void set_has_optional_all_types();
  3184. void clear_has_optional_all_types();
  3185. void set_has_optionalgroup();
  3186. void clear_has_optionalgroup();
  3187. ::google::protobuf::internal::ExtensionSet _extensions_;
  3188. ::google::protobuf::internal::InternalMetadataWithArenaLite _internal_metadata_;
  3189. ::google::protobuf::internal::HasBits<1> _has_bits_;
  3190. mutable ::google::protobuf::internal::CachedSize _cached_size_;
  3191. ::google::protobuf::RepeatedPtrField< ::protobuf_unittest::TestAllTypesLite > repeated_all_types_;
  3192. ::google::protobuf::RepeatedPtrField< ::protobuf_unittest::TestParsingMergeLite_RepeatedGroup > repeatedgroup_;
  3193. ::protobuf_unittest::TestAllTypesLite* required_all_types_;
  3194. ::protobuf_unittest::TestAllTypesLite* optional_all_types_;
  3195. ::protobuf_unittest::TestParsingMergeLite_OptionalGroup* optionalgroup_;
  3196. friend struct ::protobuf_google_2fprotobuf_2funittest_5flite_2eproto::TableStruct;
  3197. };
  3198. // -------------------------------------------------------------------
  3199. class TestEmptyMessageLite : public ::google::protobuf::MessageLite /* @@protoc_insertion_point(class_definition:protobuf_unittest.TestEmptyMessageLite) */ {
  3200. public:
  3201. TestEmptyMessageLite();
  3202. virtual ~TestEmptyMessageLite();
  3203. TestEmptyMessageLite(const TestEmptyMessageLite& from);
  3204. inline TestEmptyMessageLite& operator=(const TestEmptyMessageLite& from) {
  3205. CopyFrom(from);
  3206. return *this;
  3207. }
  3208. #if LANG_CXX11
  3209. TestEmptyMessageLite(TestEmptyMessageLite&& from) noexcept
  3210. : TestEmptyMessageLite() {
  3211. *this = ::std::move(from);
  3212. }
  3213. inline TestEmptyMessageLite& operator=(TestEmptyMessageLite&& from) noexcept {
  3214. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  3215. if (this != &from) InternalSwap(&from);
  3216. } else {
  3217. CopyFrom(from);
  3218. }
  3219. return *this;
  3220. }
  3221. #endif
  3222. inline const ::std::string& unknown_fields() const {
  3223. return _internal_metadata_.unknown_fields();
  3224. }
  3225. inline ::std::string* mutable_unknown_fields() {
  3226. return _internal_metadata_.mutable_unknown_fields();
  3227. }
  3228. static const TestEmptyMessageLite& default_instance();
  3229. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  3230. static inline const TestEmptyMessageLite* internal_default_instance() {
  3231. return reinterpret_cast<const TestEmptyMessageLite*>(
  3232. &_TestEmptyMessageLite_default_instance_);
  3233. }
  3234. static constexpr int kIndexInFileMessages =
  3235. 18;
  3236. void Swap(TestEmptyMessageLite* other);
  3237. friend void swap(TestEmptyMessageLite& a, TestEmptyMessageLite& b) {
  3238. a.Swap(&b);
  3239. }
  3240. // implements Message ----------------------------------------------
  3241. inline TestEmptyMessageLite* New() const final {
  3242. return CreateMaybeMessage<TestEmptyMessageLite>(NULL);
  3243. }
  3244. TestEmptyMessageLite* New(::google::protobuf::Arena* arena) const final {
  3245. return CreateMaybeMessage<TestEmptyMessageLite>(arena);
  3246. }
  3247. void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from)
  3248. final;
  3249. void CopyFrom(const TestEmptyMessageLite& from);
  3250. void MergeFrom(const TestEmptyMessageLite& from);
  3251. void Clear() final;
  3252. bool IsInitialized() const final;
  3253. size_t ByteSizeLong() const final;
  3254. bool MergePartialFromCodedStream(
  3255. ::google::protobuf::io::CodedInputStream* input) final;
  3256. void SerializeWithCachedSizes(
  3257. ::google::protobuf::io::CodedOutputStream* output) const final;
  3258. void DiscardUnknownFields();
  3259. int GetCachedSize() const final { return _cached_size_.Get(); }
  3260. private:
  3261. void SharedCtor();
  3262. void SharedDtor();
  3263. void SetCachedSize(int size) const;
  3264. void InternalSwap(TestEmptyMessageLite* other);
  3265. private:
  3266. inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
  3267. return NULL;
  3268. }
  3269. inline void* MaybeArenaPtr() const {
  3270. return NULL;
  3271. }
  3272. public:
  3273. ::std::string GetTypeName() const final;
  3274. // nested types ----------------------------------------------------
  3275. // accessors -------------------------------------------------------
  3276. // @@protoc_insertion_point(class_scope:protobuf_unittest.TestEmptyMessageLite)
  3277. private:
  3278. ::google::protobuf::internal::InternalMetadataWithArenaLite _internal_metadata_;
  3279. ::google::protobuf::internal::HasBits<1> _has_bits_;
  3280. mutable ::google::protobuf::internal::CachedSize _cached_size_;
  3281. friend struct ::protobuf_google_2fprotobuf_2funittest_5flite_2eproto::TableStruct;
  3282. };
  3283. // -------------------------------------------------------------------
  3284. class TestEmptyMessageWithExtensionsLite : public ::google::protobuf::MessageLite /* @@protoc_insertion_point(class_definition:protobuf_unittest.TestEmptyMessageWithExtensionsLite) */ {
  3285. public:
  3286. TestEmptyMessageWithExtensionsLite();
  3287. virtual ~TestEmptyMessageWithExtensionsLite();
  3288. TestEmptyMessageWithExtensionsLite(const TestEmptyMessageWithExtensionsLite& from);
  3289. inline TestEmptyMessageWithExtensionsLite& operator=(const TestEmptyMessageWithExtensionsLite& from) {
  3290. CopyFrom(from);
  3291. return *this;
  3292. }
  3293. #if LANG_CXX11
  3294. TestEmptyMessageWithExtensionsLite(TestEmptyMessageWithExtensionsLite&& from) noexcept
  3295. : TestEmptyMessageWithExtensionsLite() {
  3296. *this = ::std::move(from);
  3297. }
  3298. inline TestEmptyMessageWithExtensionsLite& operator=(TestEmptyMessageWithExtensionsLite&& from) noexcept {
  3299. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  3300. if (this != &from) InternalSwap(&from);
  3301. } else {
  3302. CopyFrom(from);
  3303. }
  3304. return *this;
  3305. }
  3306. #endif
  3307. inline const ::std::string& unknown_fields() const {
  3308. return _internal_metadata_.unknown_fields();
  3309. }
  3310. inline ::std::string* mutable_unknown_fields() {
  3311. return _internal_metadata_.mutable_unknown_fields();
  3312. }
  3313. static const TestEmptyMessageWithExtensionsLite& default_instance();
  3314. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  3315. static inline const TestEmptyMessageWithExtensionsLite* internal_default_instance() {
  3316. return reinterpret_cast<const TestEmptyMessageWithExtensionsLite*>(
  3317. &_TestEmptyMessageWithExtensionsLite_default_instance_);
  3318. }
  3319. static constexpr int kIndexInFileMessages =
  3320. 19;
  3321. void Swap(TestEmptyMessageWithExtensionsLite* other);
  3322. friend void swap(TestEmptyMessageWithExtensionsLite& a, TestEmptyMessageWithExtensionsLite& b) {
  3323. a.Swap(&b);
  3324. }
  3325. // implements Message ----------------------------------------------
  3326. inline TestEmptyMessageWithExtensionsLite* New() const final {
  3327. return CreateMaybeMessage<TestEmptyMessageWithExtensionsLite>(NULL);
  3328. }
  3329. TestEmptyMessageWithExtensionsLite* New(::google::protobuf::Arena* arena) const final {
  3330. return CreateMaybeMessage<TestEmptyMessageWithExtensionsLite>(arena);
  3331. }
  3332. void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from)
  3333. final;
  3334. void CopyFrom(const TestEmptyMessageWithExtensionsLite& from);
  3335. void MergeFrom(const TestEmptyMessageWithExtensionsLite& from);
  3336. void Clear() final;
  3337. bool IsInitialized() const final;
  3338. size_t ByteSizeLong() const final;
  3339. bool MergePartialFromCodedStream(
  3340. ::google::protobuf::io::CodedInputStream* input) final;
  3341. void SerializeWithCachedSizes(
  3342. ::google::protobuf::io::CodedOutputStream* output) const final;
  3343. void DiscardUnknownFields();
  3344. int GetCachedSize() const final { return _cached_size_.Get(); }
  3345. private:
  3346. void SharedCtor();
  3347. void SharedDtor();
  3348. void SetCachedSize(int size) const;
  3349. void InternalSwap(TestEmptyMessageWithExtensionsLite* other);
  3350. private:
  3351. inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
  3352. return NULL;
  3353. }
  3354. inline void* MaybeArenaPtr() const {
  3355. return NULL;
  3356. }
  3357. public:
  3358. ::std::string GetTypeName() const final;
  3359. // nested types ----------------------------------------------------
  3360. // accessors -------------------------------------------------------
  3361. GOOGLE_PROTOBUF_EXTENSION_ACCESSORS(TestEmptyMessageWithExtensionsLite)
  3362. // @@protoc_insertion_point(class_scope:protobuf_unittest.TestEmptyMessageWithExtensionsLite)
  3363. private:
  3364. ::google::protobuf::internal::ExtensionSet _extensions_;
  3365. ::google::protobuf::internal::InternalMetadataWithArenaLite _internal_metadata_;
  3366. ::google::protobuf::internal::HasBits<1> _has_bits_;
  3367. mutable ::google::protobuf::internal::CachedSize _cached_size_;
  3368. friend struct ::protobuf_google_2fprotobuf_2funittest_5flite_2eproto::TableStruct;
  3369. };
  3370. // -------------------------------------------------------------------
  3371. class V1MessageLite : public ::google::protobuf::MessageLite /* @@protoc_insertion_point(class_definition:protobuf_unittest.V1MessageLite) */ {
  3372. public:
  3373. V1MessageLite();
  3374. virtual ~V1MessageLite();
  3375. V1MessageLite(const V1MessageLite& from);
  3376. inline V1MessageLite& operator=(const V1MessageLite& from) {
  3377. CopyFrom(from);
  3378. return *this;
  3379. }
  3380. #if LANG_CXX11
  3381. V1MessageLite(V1MessageLite&& from) noexcept
  3382. : V1MessageLite() {
  3383. *this = ::std::move(from);
  3384. }
  3385. inline V1MessageLite& operator=(V1MessageLite&& from) noexcept {
  3386. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  3387. if (this != &from) InternalSwap(&from);
  3388. } else {
  3389. CopyFrom(from);
  3390. }
  3391. return *this;
  3392. }
  3393. #endif
  3394. inline const ::std::string& unknown_fields() const {
  3395. return _internal_metadata_.unknown_fields();
  3396. }
  3397. inline ::std::string* mutable_unknown_fields() {
  3398. return _internal_metadata_.mutable_unknown_fields();
  3399. }
  3400. static const V1MessageLite& default_instance();
  3401. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  3402. static inline const V1MessageLite* internal_default_instance() {
  3403. return reinterpret_cast<const V1MessageLite*>(
  3404. &_V1MessageLite_default_instance_);
  3405. }
  3406. static constexpr int kIndexInFileMessages =
  3407. 20;
  3408. void Swap(V1MessageLite* other);
  3409. friend void swap(V1MessageLite& a, V1MessageLite& b) {
  3410. a.Swap(&b);
  3411. }
  3412. // implements Message ----------------------------------------------
  3413. inline V1MessageLite* New() const final {
  3414. return CreateMaybeMessage<V1MessageLite>(NULL);
  3415. }
  3416. V1MessageLite* New(::google::protobuf::Arena* arena) const final {
  3417. return CreateMaybeMessage<V1MessageLite>(arena);
  3418. }
  3419. void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from)
  3420. final;
  3421. void CopyFrom(const V1MessageLite& from);
  3422. void MergeFrom(const V1MessageLite& from);
  3423. void Clear() final;
  3424. bool IsInitialized() const final;
  3425. size_t ByteSizeLong() const final;
  3426. bool MergePartialFromCodedStream(
  3427. ::google::protobuf::io::CodedInputStream* input) final;
  3428. void SerializeWithCachedSizes(
  3429. ::google::protobuf::io::CodedOutputStream* output) const final;
  3430. void DiscardUnknownFields();
  3431. int GetCachedSize() const final { return _cached_size_.Get(); }
  3432. private:
  3433. void SharedCtor();
  3434. void SharedDtor();
  3435. void SetCachedSize(int size) const;
  3436. void InternalSwap(V1MessageLite* other);
  3437. private:
  3438. inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
  3439. return NULL;
  3440. }
  3441. inline void* MaybeArenaPtr() const {
  3442. return NULL;
  3443. }
  3444. public:
  3445. ::std::string GetTypeName() const final;
  3446. // nested types ----------------------------------------------------
  3447. // accessors -------------------------------------------------------
  3448. // required int32 int_field = 1;
  3449. bool has_int_field() const;
  3450. void clear_int_field();
  3451. static const int kIntFieldFieldNumber = 1;
  3452. ::google::protobuf::int32 int_field() const;
  3453. void set_int_field(::google::protobuf::int32 value);
  3454. // optional .protobuf_unittest.V1EnumLite enum_field = 2 [default = V1_FIRST];
  3455. bool has_enum_field() const;
  3456. void clear_enum_field();
  3457. static const int kEnumFieldFieldNumber = 2;
  3458. ::protobuf_unittest::V1EnumLite enum_field() const;
  3459. void set_enum_field(::protobuf_unittest::V1EnumLite value);
  3460. // @@protoc_insertion_point(class_scope:protobuf_unittest.V1MessageLite)
  3461. private:
  3462. void set_has_int_field();
  3463. void clear_has_int_field();
  3464. void set_has_enum_field();
  3465. void clear_has_enum_field();
  3466. ::google::protobuf::internal::InternalMetadataWithArenaLite _internal_metadata_;
  3467. ::google::protobuf::internal::HasBits<1> _has_bits_;
  3468. mutable ::google::protobuf::internal::CachedSize _cached_size_;
  3469. ::google::protobuf::int32 int_field_;
  3470. int enum_field_;
  3471. friend struct ::protobuf_google_2fprotobuf_2funittest_5flite_2eproto::TableStruct;
  3472. };
  3473. // -------------------------------------------------------------------
  3474. class V2MessageLite : public ::google::protobuf::MessageLite /* @@protoc_insertion_point(class_definition:protobuf_unittest.V2MessageLite) */ {
  3475. public:
  3476. V2MessageLite();
  3477. virtual ~V2MessageLite();
  3478. V2MessageLite(const V2MessageLite& from);
  3479. inline V2MessageLite& operator=(const V2MessageLite& from) {
  3480. CopyFrom(from);
  3481. return *this;
  3482. }
  3483. #if LANG_CXX11
  3484. V2MessageLite(V2MessageLite&& from) noexcept
  3485. : V2MessageLite() {
  3486. *this = ::std::move(from);
  3487. }
  3488. inline V2MessageLite& operator=(V2MessageLite&& from) noexcept {
  3489. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  3490. if (this != &from) InternalSwap(&from);
  3491. } else {
  3492. CopyFrom(from);
  3493. }
  3494. return *this;
  3495. }
  3496. #endif
  3497. inline const ::std::string& unknown_fields() const {
  3498. return _internal_metadata_.unknown_fields();
  3499. }
  3500. inline ::std::string* mutable_unknown_fields() {
  3501. return _internal_metadata_.mutable_unknown_fields();
  3502. }
  3503. static const V2MessageLite& default_instance();
  3504. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  3505. static inline const V2MessageLite* internal_default_instance() {
  3506. return reinterpret_cast<const V2MessageLite*>(
  3507. &_V2MessageLite_default_instance_);
  3508. }
  3509. static constexpr int kIndexInFileMessages =
  3510. 21;
  3511. void Swap(V2MessageLite* other);
  3512. friend void swap(V2MessageLite& a, V2MessageLite& b) {
  3513. a.Swap(&b);
  3514. }
  3515. // implements Message ----------------------------------------------
  3516. inline V2MessageLite* New() const final {
  3517. return CreateMaybeMessage<V2MessageLite>(NULL);
  3518. }
  3519. V2MessageLite* New(::google::protobuf::Arena* arena) const final {
  3520. return CreateMaybeMessage<V2MessageLite>(arena);
  3521. }
  3522. void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from)
  3523. final;
  3524. void CopyFrom(const V2MessageLite& from);
  3525. void MergeFrom(const V2MessageLite& from);
  3526. void Clear() final;
  3527. bool IsInitialized() const final;
  3528. size_t ByteSizeLong() const final;
  3529. bool MergePartialFromCodedStream(
  3530. ::google::protobuf::io::CodedInputStream* input) final;
  3531. void SerializeWithCachedSizes(
  3532. ::google::protobuf::io::CodedOutputStream* output) const final;
  3533. void DiscardUnknownFields();
  3534. int GetCachedSize() const final { return _cached_size_.Get(); }
  3535. private:
  3536. void SharedCtor();
  3537. void SharedDtor();
  3538. void SetCachedSize(int size) const;
  3539. void InternalSwap(V2MessageLite* other);
  3540. private:
  3541. inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
  3542. return NULL;
  3543. }
  3544. inline void* MaybeArenaPtr() const {
  3545. return NULL;
  3546. }
  3547. public:
  3548. ::std::string GetTypeName() const final;
  3549. // nested types ----------------------------------------------------
  3550. // accessors -------------------------------------------------------
  3551. // required int32 int_field = 1;
  3552. bool has_int_field() const;
  3553. void clear_int_field();
  3554. static const int kIntFieldFieldNumber = 1;
  3555. ::google::protobuf::int32 int_field() const;
  3556. void set_int_field(::google::protobuf::int32 value);
  3557. // optional .protobuf_unittest.V2EnumLite enum_field = 2 [default = V2_FIRST];
  3558. bool has_enum_field() const;
  3559. void clear_enum_field();
  3560. static const int kEnumFieldFieldNumber = 2;
  3561. ::protobuf_unittest::V2EnumLite enum_field() const;
  3562. void set_enum_field(::protobuf_unittest::V2EnumLite value);
  3563. // @@protoc_insertion_point(class_scope:protobuf_unittest.V2MessageLite)
  3564. private:
  3565. void set_has_int_field();
  3566. void clear_has_int_field();
  3567. void set_has_enum_field();
  3568. void clear_has_enum_field();
  3569. ::google::protobuf::internal::InternalMetadataWithArenaLite _internal_metadata_;
  3570. ::google::protobuf::internal::HasBits<1> _has_bits_;
  3571. mutable ::google::protobuf::internal::CachedSize _cached_size_;
  3572. ::google::protobuf::int32 int_field_;
  3573. int enum_field_;
  3574. friend struct ::protobuf_google_2fprotobuf_2funittest_5flite_2eproto::TableStruct;
  3575. };
  3576. // -------------------------------------------------------------------
  3577. class TestHugeFieldNumbersLite_OptionalGroup : public ::google::protobuf::MessageLite /* @@protoc_insertion_point(class_definition:protobuf_unittest.TestHugeFieldNumbersLite.OptionalGroup) */ {
  3578. public:
  3579. TestHugeFieldNumbersLite_OptionalGroup();
  3580. virtual ~TestHugeFieldNumbersLite_OptionalGroup();
  3581. TestHugeFieldNumbersLite_OptionalGroup(const TestHugeFieldNumbersLite_OptionalGroup& from);
  3582. inline TestHugeFieldNumbersLite_OptionalGroup& operator=(const TestHugeFieldNumbersLite_OptionalGroup& from) {
  3583. CopyFrom(from);
  3584. return *this;
  3585. }
  3586. #if LANG_CXX11
  3587. TestHugeFieldNumbersLite_OptionalGroup(TestHugeFieldNumbersLite_OptionalGroup&& from) noexcept
  3588. : TestHugeFieldNumbersLite_OptionalGroup() {
  3589. *this = ::std::move(from);
  3590. }
  3591. inline TestHugeFieldNumbersLite_OptionalGroup& operator=(TestHugeFieldNumbersLite_OptionalGroup&& from) noexcept {
  3592. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  3593. if (this != &from) InternalSwap(&from);
  3594. } else {
  3595. CopyFrom(from);
  3596. }
  3597. return *this;
  3598. }
  3599. #endif
  3600. inline const ::std::string& unknown_fields() const {
  3601. return _internal_metadata_.unknown_fields();
  3602. }
  3603. inline ::std::string* mutable_unknown_fields() {
  3604. return _internal_metadata_.mutable_unknown_fields();
  3605. }
  3606. static const TestHugeFieldNumbersLite_OptionalGroup& default_instance();
  3607. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  3608. static inline const TestHugeFieldNumbersLite_OptionalGroup* internal_default_instance() {
  3609. return reinterpret_cast<const TestHugeFieldNumbersLite_OptionalGroup*>(
  3610. &_TestHugeFieldNumbersLite_OptionalGroup_default_instance_);
  3611. }
  3612. static constexpr int kIndexInFileMessages =
  3613. 22;
  3614. void Swap(TestHugeFieldNumbersLite_OptionalGroup* other);
  3615. friend void swap(TestHugeFieldNumbersLite_OptionalGroup& a, TestHugeFieldNumbersLite_OptionalGroup& b) {
  3616. a.Swap(&b);
  3617. }
  3618. // implements Message ----------------------------------------------
  3619. inline TestHugeFieldNumbersLite_OptionalGroup* New() const final {
  3620. return CreateMaybeMessage<TestHugeFieldNumbersLite_OptionalGroup>(NULL);
  3621. }
  3622. TestHugeFieldNumbersLite_OptionalGroup* New(::google::protobuf::Arena* arena) const final {
  3623. return CreateMaybeMessage<TestHugeFieldNumbersLite_OptionalGroup>(arena);
  3624. }
  3625. void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from)
  3626. final;
  3627. void CopyFrom(const TestHugeFieldNumbersLite_OptionalGroup& from);
  3628. void MergeFrom(const TestHugeFieldNumbersLite_OptionalGroup& from);
  3629. void Clear() final;
  3630. bool IsInitialized() const final;
  3631. size_t ByteSizeLong() const final;
  3632. bool MergePartialFromCodedStream(
  3633. ::google::protobuf::io::CodedInputStream* input) final;
  3634. void SerializeWithCachedSizes(
  3635. ::google::protobuf::io::CodedOutputStream* output) const final;
  3636. void DiscardUnknownFields();
  3637. int GetCachedSize() const final { return _cached_size_.Get(); }
  3638. private:
  3639. void SharedCtor();
  3640. void SharedDtor();
  3641. void SetCachedSize(int size) const;
  3642. void InternalSwap(TestHugeFieldNumbersLite_OptionalGroup* other);
  3643. private:
  3644. inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
  3645. return NULL;
  3646. }
  3647. inline void* MaybeArenaPtr() const {
  3648. return NULL;
  3649. }
  3650. public:
  3651. ::std::string GetTypeName() const final;
  3652. // nested types ----------------------------------------------------
  3653. // accessors -------------------------------------------------------
  3654. // optional int32 group_a = 536870009;
  3655. bool has_group_a() const;
  3656. void clear_group_a();
  3657. static const int kGroupAFieldNumber = 536870009;
  3658. ::google::protobuf::int32 group_a() const;
  3659. void set_group_a(::google::protobuf::int32 value);
  3660. // @@protoc_insertion_point(class_scope:protobuf_unittest.TestHugeFieldNumbersLite.OptionalGroup)
  3661. private:
  3662. void set_has_group_a();
  3663. void clear_has_group_a();
  3664. ::google::protobuf::internal::InternalMetadataWithArenaLite _internal_metadata_;
  3665. ::google::protobuf::internal::HasBits<1> _has_bits_;
  3666. mutable ::google::protobuf::internal::CachedSize _cached_size_;
  3667. ::google::protobuf::int32 group_a_;
  3668. friend struct ::protobuf_google_2fprotobuf_2funittest_5flite_2eproto::TableStruct;
  3669. };
  3670. // -------------------------------------------------------------------
  3671. class TestHugeFieldNumbersLite_StringStringMapEntry_DoNotUse : public ::google::protobuf::internal::MapEntryLite<TestHugeFieldNumbersLite_StringStringMapEntry_DoNotUse,
  3672. ::std::string, ::std::string,
  3673. ::google::protobuf::internal::WireFormatLite::TYPE_STRING,
  3674. ::google::protobuf::internal::WireFormatLite::TYPE_STRING,
  3675. 0 > {
  3676. public:
  3677. typedef ::google::protobuf::internal::MapEntryLite<TestHugeFieldNumbersLite_StringStringMapEntry_DoNotUse,
  3678. ::std::string, ::std::string,
  3679. ::google::protobuf::internal::WireFormatLite::TYPE_STRING,
  3680. ::google::protobuf::internal::WireFormatLite::TYPE_STRING,
  3681. 0 > SuperType;
  3682. TestHugeFieldNumbersLite_StringStringMapEntry_DoNotUse();
  3683. TestHugeFieldNumbersLite_StringStringMapEntry_DoNotUse(::google::protobuf::Arena* arena);
  3684. void MergeFrom(const TestHugeFieldNumbersLite_StringStringMapEntry_DoNotUse& other);
  3685. static const TestHugeFieldNumbersLite_StringStringMapEntry_DoNotUse* internal_default_instance() { return reinterpret_cast<const TestHugeFieldNumbersLite_StringStringMapEntry_DoNotUse*>(&_TestHugeFieldNumbersLite_StringStringMapEntry_DoNotUse_default_instance_); }
  3686. };
  3687. // -------------------------------------------------------------------
  3688. class TestHugeFieldNumbersLite : public ::google::protobuf::MessageLite /* @@protoc_insertion_point(class_definition:protobuf_unittest.TestHugeFieldNumbersLite) */ {
  3689. public:
  3690. TestHugeFieldNumbersLite();
  3691. virtual ~TestHugeFieldNumbersLite();
  3692. TestHugeFieldNumbersLite(const TestHugeFieldNumbersLite& from);
  3693. inline TestHugeFieldNumbersLite& operator=(const TestHugeFieldNumbersLite& from) {
  3694. CopyFrom(from);
  3695. return *this;
  3696. }
  3697. #if LANG_CXX11
  3698. TestHugeFieldNumbersLite(TestHugeFieldNumbersLite&& from) noexcept
  3699. : TestHugeFieldNumbersLite() {
  3700. *this = ::std::move(from);
  3701. }
  3702. inline TestHugeFieldNumbersLite& operator=(TestHugeFieldNumbersLite&& from) noexcept {
  3703. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  3704. if (this != &from) InternalSwap(&from);
  3705. } else {
  3706. CopyFrom(from);
  3707. }
  3708. return *this;
  3709. }
  3710. #endif
  3711. inline const ::std::string& unknown_fields() const {
  3712. return _internal_metadata_.unknown_fields();
  3713. }
  3714. inline ::std::string* mutable_unknown_fields() {
  3715. return _internal_metadata_.mutable_unknown_fields();
  3716. }
  3717. static const TestHugeFieldNumbersLite& default_instance();
  3718. enum OneofFieldCase {
  3719. kOneofUint32 = 536870011,
  3720. kOneofTestAllTypes = 536870012,
  3721. kOneofString = 536870013,
  3722. kOneofBytes = 536870014,
  3723. ONEOF_FIELD_NOT_SET = 0,
  3724. };
  3725. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  3726. static inline const TestHugeFieldNumbersLite* internal_default_instance() {
  3727. return reinterpret_cast<const TestHugeFieldNumbersLite*>(
  3728. &_TestHugeFieldNumbersLite_default_instance_);
  3729. }
  3730. static constexpr int kIndexInFileMessages =
  3731. 24;
  3732. void Swap(TestHugeFieldNumbersLite* other);
  3733. friend void swap(TestHugeFieldNumbersLite& a, TestHugeFieldNumbersLite& b) {
  3734. a.Swap(&b);
  3735. }
  3736. // implements Message ----------------------------------------------
  3737. inline TestHugeFieldNumbersLite* New() const final {
  3738. return CreateMaybeMessage<TestHugeFieldNumbersLite>(NULL);
  3739. }
  3740. TestHugeFieldNumbersLite* New(::google::protobuf::Arena* arena) const final {
  3741. return CreateMaybeMessage<TestHugeFieldNumbersLite>(arena);
  3742. }
  3743. void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from)
  3744. final;
  3745. void CopyFrom(const TestHugeFieldNumbersLite& from);
  3746. void MergeFrom(const TestHugeFieldNumbersLite& from);
  3747. void Clear() final;
  3748. bool IsInitialized() const final;
  3749. size_t ByteSizeLong() const final;
  3750. bool MergePartialFromCodedStream(
  3751. ::google::protobuf::io::CodedInputStream* input) final;
  3752. void SerializeWithCachedSizes(
  3753. ::google::protobuf::io::CodedOutputStream* output) const final;
  3754. void DiscardUnknownFields();
  3755. int GetCachedSize() const final { return _cached_size_.Get(); }
  3756. private:
  3757. void SharedCtor();
  3758. void SharedDtor();
  3759. void SetCachedSize(int size) const;
  3760. void InternalSwap(TestHugeFieldNumbersLite* other);
  3761. private:
  3762. inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
  3763. return NULL;
  3764. }
  3765. inline void* MaybeArenaPtr() const {
  3766. return NULL;
  3767. }
  3768. public:
  3769. ::std::string GetTypeName() const final;
  3770. // nested types ----------------------------------------------------
  3771. typedef TestHugeFieldNumbersLite_OptionalGroup OptionalGroup;
  3772. // accessors -------------------------------------------------------
  3773. // repeated int32 repeated_int32 = 536870002 [packed = false];
  3774. int repeated_int32_size() const;
  3775. void clear_repeated_int32();
  3776. static const int kRepeatedInt32FieldNumber = 536870002;
  3777. ::google::protobuf::int32 repeated_int32(int index) const;
  3778. void set_repeated_int32(int index, ::google::protobuf::int32 value);
  3779. void add_repeated_int32(::google::protobuf::int32 value);
  3780. const ::google::protobuf::RepeatedField< ::google::protobuf::int32 >&
  3781. repeated_int32() const;
  3782. ::google::protobuf::RepeatedField< ::google::protobuf::int32 >*
  3783. mutable_repeated_int32();
  3784. // repeated int32 packed_int32 = 536870003 [packed = true];
  3785. int packed_int32_size() const;
  3786. void clear_packed_int32();
  3787. static const int kPackedInt32FieldNumber = 536870003;
  3788. ::google::protobuf::int32 packed_int32(int index) const;
  3789. void set_packed_int32(int index, ::google::protobuf::int32 value);
  3790. void add_packed_int32(::google::protobuf::int32 value);
  3791. const ::google::protobuf::RepeatedField< ::google::protobuf::int32 >&
  3792. packed_int32() const;
  3793. ::google::protobuf::RepeatedField< ::google::protobuf::int32 >*
  3794. mutable_packed_int32();
  3795. // map<string, string> string_string_map = 536870010;
  3796. int string_string_map_size() const;
  3797. void clear_string_string_map();
  3798. static const int kStringStringMapFieldNumber = 536870010;
  3799. const ::google::protobuf::Map< ::std::string, ::std::string >&
  3800. string_string_map() const;
  3801. ::google::protobuf::Map< ::std::string, ::std::string >*
  3802. mutable_string_string_map();
  3803. // optional string optional_string = 536870005;
  3804. bool has_optional_string() const;
  3805. void clear_optional_string();
  3806. static const int kOptionalStringFieldNumber = 536870005;
  3807. const ::std::string& optional_string() const;
  3808. void set_optional_string(const ::std::string& value);
  3809. #if LANG_CXX11
  3810. void set_optional_string(::std::string&& value);
  3811. #endif
  3812. void set_optional_string(const char* value);
  3813. void set_optional_string(const char* value, size_t size);
  3814. ::std::string* mutable_optional_string();
  3815. ::std::string* release_optional_string();
  3816. void set_allocated_optional_string(::std::string* optional_string);
  3817. // optional bytes optional_bytes = 536870006;
  3818. bool has_optional_bytes() const;
  3819. void clear_optional_bytes();
  3820. static const int kOptionalBytesFieldNumber = 536870006;
  3821. const ::std::string& optional_bytes() const;
  3822. void set_optional_bytes(const ::std::string& value);
  3823. #if LANG_CXX11
  3824. void set_optional_bytes(::std::string&& value);
  3825. #endif
  3826. void set_optional_bytes(const char* value);
  3827. void set_optional_bytes(const void* value, size_t size);
  3828. ::std::string* mutable_optional_bytes();
  3829. ::std::string* release_optional_bytes();
  3830. void set_allocated_optional_bytes(::std::string* optional_bytes);
  3831. // optional .protobuf_unittest.ForeignMessageLite optional_message = 536870007;
  3832. bool has_optional_message() const;
  3833. void clear_optional_message();
  3834. static const int kOptionalMessageFieldNumber = 536870007;
  3835. private:
  3836. const ::protobuf_unittest::ForeignMessageLite& _internal_optional_message() const;
  3837. public:
  3838. const ::protobuf_unittest::ForeignMessageLite& optional_message() const;
  3839. ::protobuf_unittest::ForeignMessageLite* release_optional_message();
  3840. ::protobuf_unittest::ForeignMessageLite* mutable_optional_message();
  3841. void set_allocated_optional_message(::protobuf_unittest::ForeignMessageLite* optional_message);
  3842. // optional group OptionalGroup = 536870008 { ... };
  3843. bool has_optionalgroup() const;
  3844. void clear_optionalgroup();
  3845. static const int kOptionalgroupFieldNumber = 536870008;
  3846. private:
  3847. const ::protobuf_unittest::TestHugeFieldNumbersLite_OptionalGroup& _internal_optionalgroup() const;
  3848. public:
  3849. const ::protobuf_unittest::TestHugeFieldNumbersLite_OptionalGroup& optionalgroup() const;
  3850. ::protobuf_unittest::TestHugeFieldNumbersLite_OptionalGroup* release_optionalgroup();
  3851. ::protobuf_unittest::TestHugeFieldNumbersLite_OptionalGroup* mutable_optionalgroup();
  3852. void set_allocated_optionalgroup(::protobuf_unittest::TestHugeFieldNumbersLite_OptionalGroup* optionalgroup);
  3853. // optional int32 optional_int32 = 536870000;
  3854. bool has_optional_int32() const;
  3855. void clear_optional_int32();
  3856. static const int kOptionalInt32FieldNumber = 536870000;
  3857. ::google::protobuf::int32 optional_int32() const;
  3858. void set_optional_int32(::google::protobuf::int32 value);
  3859. // optional int32 fixed_32 = 536870001;
  3860. bool has_fixed_32() const;
  3861. void clear_fixed_32();
  3862. static const int kFixed32FieldNumber = 536870001;
  3863. ::google::protobuf::int32 fixed_32() const;
  3864. void set_fixed_32(::google::protobuf::int32 value);
  3865. // optional .protobuf_unittest.ForeignEnumLite optional_enum = 536870004;
  3866. bool has_optional_enum() const;
  3867. void clear_optional_enum();
  3868. static const int kOptionalEnumFieldNumber = 536870004;
  3869. ::protobuf_unittest::ForeignEnumLite optional_enum() const;
  3870. void set_optional_enum(::protobuf_unittest::ForeignEnumLite value);
  3871. // optional uint32 oneof_uint32 = 536870011;
  3872. bool has_oneof_uint32() const;
  3873. void clear_oneof_uint32();
  3874. static const int kOneofUint32FieldNumber = 536870011;
  3875. ::google::protobuf::uint32 oneof_uint32() const;
  3876. void set_oneof_uint32(::google::protobuf::uint32 value);
  3877. // optional .protobuf_unittest.TestAllTypesLite oneof_test_all_types = 536870012;
  3878. bool has_oneof_test_all_types() const;
  3879. void clear_oneof_test_all_types();
  3880. static const int kOneofTestAllTypesFieldNumber = 536870012;
  3881. private:
  3882. const ::protobuf_unittest::TestAllTypesLite& _internal_oneof_test_all_types() const;
  3883. public:
  3884. const ::protobuf_unittest::TestAllTypesLite& oneof_test_all_types() const;
  3885. ::protobuf_unittest::TestAllTypesLite* release_oneof_test_all_types();
  3886. ::protobuf_unittest::TestAllTypesLite* mutable_oneof_test_all_types();
  3887. void set_allocated_oneof_test_all_types(::protobuf_unittest::TestAllTypesLite* oneof_test_all_types);
  3888. // optional string oneof_string = 536870013;
  3889. bool has_oneof_string() const;
  3890. void clear_oneof_string();
  3891. static const int kOneofStringFieldNumber = 536870013;
  3892. const ::std::string& oneof_string() const;
  3893. void set_oneof_string(const ::std::string& value);
  3894. #if LANG_CXX11
  3895. void set_oneof_string(::std::string&& value);
  3896. #endif
  3897. void set_oneof_string(const char* value);
  3898. void set_oneof_string(const char* value, size_t size);
  3899. ::std::string* mutable_oneof_string();
  3900. ::std::string* release_oneof_string();
  3901. void set_allocated_oneof_string(::std::string* oneof_string);
  3902. // optional bytes oneof_bytes = 536870014;
  3903. bool has_oneof_bytes() const;
  3904. void clear_oneof_bytes();
  3905. static const int kOneofBytesFieldNumber = 536870014;
  3906. const ::std::string& oneof_bytes() const;
  3907. void set_oneof_bytes(const ::std::string& value);
  3908. #if LANG_CXX11
  3909. void set_oneof_bytes(::std::string&& value);
  3910. #endif
  3911. void set_oneof_bytes(const char* value);
  3912. void set_oneof_bytes(const void* value, size_t size);
  3913. ::std::string* mutable_oneof_bytes();
  3914. ::std::string* release_oneof_bytes();
  3915. void set_allocated_oneof_bytes(::std::string* oneof_bytes);
  3916. GOOGLE_PROTOBUF_EXTENSION_ACCESSORS(TestHugeFieldNumbersLite)
  3917. void clear_oneof_field();
  3918. OneofFieldCase oneof_field_case() const;
  3919. // @@protoc_insertion_point(class_scope:protobuf_unittest.TestHugeFieldNumbersLite)
  3920. private:
  3921. void set_has_optional_int32();
  3922. void clear_has_optional_int32();
  3923. void set_has_fixed_32();
  3924. void clear_has_fixed_32();
  3925. void set_has_optional_enum();
  3926. void clear_has_optional_enum();
  3927. void set_has_optional_string();
  3928. void clear_has_optional_string();
  3929. void set_has_optional_bytes();
  3930. void clear_has_optional_bytes();
  3931. void set_has_optional_message();
  3932. void clear_has_optional_message();
  3933. void set_has_optionalgroup();
  3934. void clear_has_optionalgroup();
  3935. void set_has_oneof_uint32();
  3936. void set_has_oneof_test_all_types();
  3937. void set_has_oneof_string();
  3938. void set_has_oneof_bytes();
  3939. inline bool has_oneof_field() const;
  3940. inline void clear_has_oneof_field();
  3941. ::google::protobuf::internal::ExtensionSet _extensions_;
  3942. ::google::protobuf::internal::InternalMetadataWithArenaLite _internal_metadata_;
  3943. ::google::protobuf::internal::HasBits<1> _has_bits_;
  3944. mutable ::google::protobuf::internal::CachedSize _cached_size_;
  3945. ::google::protobuf::RepeatedField< ::google::protobuf::int32 > repeated_int32_;
  3946. ::google::protobuf::RepeatedField< ::google::protobuf::int32 > packed_int32_;
  3947. mutable int _packed_int32_cached_byte_size_;
  3948. ::google::protobuf::internal::MapFieldLite<
  3949. TestHugeFieldNumbersLite_StringStringMapEntry_DoNotUse,
  3950. ::std::string, ::std::string,
  3951. ::google::protobuf::internal::WireFormatLite::TYPE_STRING,
  3952. ::google::protobuf::internal::WireFormatLite::TYPE_STRING,
  3953. 0 > string_string_map_;
  3954. ::google::protobuf::internal::ArenaStringPtr optional_string_;
  3955. ::google::protobuf::internal::ArenaStringPtr optional_bytes_;
  3956. ::protobuf_unittest::ForeignMessageLite* optional_message_;
  3957. ::protobuf_unittest::TestHugeFieldNumbersLite_OptionalGroup* optionalgroup_;
  3958. ::google::protobuf::int32 optional_int32_;
  3959. ::google::protobuf::int32 fixed_32_;
  3960. int optional_enum_;
  3961. union OneofFieldUnion {
  3962. OneofFieldUnion() {}
  3963. ::google::protobuf::uint32 oneof_uint32_;
  3964. ::protobuf_unittest::TestAllTypesLite* oneof_test_all_types_;
  3965. ::google::protobuf::internal::ArenaStringPtr oneof_string_;
  3966. ::google::protobuf::internal::ArenaStringPtr oneof_bytes_;
  3967. } oneof_field_;
  3968. ::google::protobuf::uint32 _oneof_case_[1];
  3969. friend struct ::protobuf_google_2fprotobuf_2funittest_5flite_2eproto::TableStruct;
  3970. };
  3971. // -------------------------------------------------------------------
  3972. class TestOneofParsingLite : public ::google::protobuf::MessageLite /* @@protoc_insertion_point(class_definition:protobuf_unittest.TestOneofParsingLite) */ {
  3973. public:
  3974. TestOneofParsingLite();
  3975. virtual ~TestOneofParsingLite();
  3976. TestOneofParsingLite(const TestOneofParsingLite& from);
  3977. inline TestOneofParsingLite& operator=(const TestOneofParsingLite& from) {
  3978. CopyFrom(from);
  3979. return *this;
  3980. }
  3981. #if LANG_CXX11
  3982. TestOneofParsingLite(TestOneofParsingLite&& from) noexcept
  3983. : TestOneofParsingLite() {
  3984. *this = ::std::move(from);
  3985. }
  3986. inline TestOneofParsingLite& operator=(TestOneofParsingLite&& from) noexcept {
  3987. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  3988. if (this != &from) InternalSwap(&from);
  3989. } else {
  3990. CopyFrom(from);
  3991. }
  3992. return *this;
  3993. }
  3994. #endif
  3995. inline const ::std::string& unknown_fields() const {
  3996. return _internal_metadata_.unknown_fields();
  3997. }
  3998. inline ::std::string* mutable_unknown_fields() {
  3999. return _internal_metadata_.mutable_unknown_fields();
  4000. }
  4001. static const TestOneofParsingLite& default_instance();
  4002. enum OneofFieldCase {
  4003. kOneofInt32 = 1,
  4004. kOneofSubmessage = 2,
  4005. kOneofString = 3,
  4006. kOneofBytes = 4,
  4007. kOneofStringCord = 5,
  4008. kOneofBytesCord = 6,
  4009. kOneofStringStringPiece = 7,
  4010. kOneofBytesStringPiece = 8,
  4011. kOneofEnum = 9,
  4012. ONEOF_FIELD_NOT_SET = 0,
  4013. };
  4014. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  4015. static inline const TestOneofParsingLite* internal_default_instance() {
  4016. return reinterpret_cast<const TestOneofParsingLite*>(
  4017. &_TestOneofParsingLite_default_instance_);
  4018. }
  4019. static constexpr int kIndexInFileMessages =
  4020. 25;
  4021. void Swap(TestOneofParsingLite* other);
  4022. friend void swap(TestOneofParsingLite& a, TestOneofParsingLite& b) {
  4023. a.Swap(&b);
  4024. }
  4025. // implements Message ----------------------------------------------
  4026. inline TestOneofParsingLite* New() const final {
  4027. return CreateMaybeMessage<TestOneofParsingLite>(NULL);
  4028. }
  4029. TestOneofParsingLite* New(::google::protobuf::Arena* arena) const final {
  4030. return CreateMaybeMessage<TestOneofParsingLite>(arena);
  4031. }
  4032. void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from)
  4033. final;
  4034. void CopyFrom(const TestOneofParsingLite& from);
  4035. void MergeFrom(const TestOneofParsingLite& from);
  4036. void Clear() final;
  4037. bool IsInitialized() const final;
  4038. size_t ByteSizeLong() const final;
  4039. bool MergePartialFromCodedStream(
  4040. ::google::protobuf::io::CodedInputStream* input) final;
  4041. void SerializeWithCachedSizes(
  4042. ::google::protobuf::io::CodedOutputStream* output) const final;
  4043. void DiscardUnknownFields();
  4044. int GetCachedSize() const final { return _cached_size_.Get(); }
  4045. private:
  4046. void SharedCtor();
  4047. void SharedDtor();
  4048. void SetCachedSize(int size) const;
  4049. void InternalSwap(TestOneofParsingLite* other);
  4050. private:
  4051. inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
  4052. return NULL;
  4053. }
  4054. inline void* MaybeArenaPtr() const {
  4055. return NULL;
  4056. }
  4057. public:
  4058. ::std::string GetTypeName() const final;
  4059. // nested types ----------------------------------------------------
  4060. // accessors -------------------------------------------------------
  4061. // optional int32 oneof_int32 = 1;
  4062. bool has_oneof_int32() const;
  4063. void clear_oneof_int32();
  4064. static const int kOneofInt32FieldNumber = 1;
  4065. ::google::protobuf::int32 oneof_int32() const;
  4066. void set_oneof_int32(::google::protobuf::int32 value);
  4067. // optional .protobuf_unittest.TestAllTypesLite oneof_submessage = 2;
  4068. bool has_oneof_submessage() const;
  4069. void clear_oneof_submessage();
  4070. static const int kOneofSubmessageFieldNumber = 2;
  4071. private:
  4072. const ::protobuf_unittest::TestAllTypesLite& _internal_oneof_submessage() const;
  4073. public:
  4074. const ::protobuf_unittest::TestAllTypesLite& oneof_submessage() const;
  4075. ::protobuf_unittest::TestAllTypesLite* release_oneof_submessage();
  4076. ::protobuf_unittest::TestAllTypesLite* mutable_oneof_submessage();
  4077. void set_allocated_oneof_submessage(::protobuf_unittest::TestAllTypesLite* oneof_submessage);
  4078. // optional string oneof_string = 3;
  4079. bool has_oneof_string() const;
  4080. void clear_oneof_string();
  4081. static const int kOneofStringFieldNumber = 3;
  4082. const ::std::string& oneof_string() const;
  4083. void set_oneof_string(const ::std::string& value);
  4084. #if LANG_CXX11
  4085. void set_oneof_string(::std::string&& value);
  4086. #endif
  4087. void set_oneof_string(const char* value);
  4088. void set_oneof_string(const char* value, size_t size);
  4089. ::std::string* mutable_oneof_string();
  4090. ::std::string* release_oneof_string();
  4091. void set_allocated_oneof_string(::std::string* oneof_string);
  4092. // optional bytes oneof_bytes = 4 [default = "default bytes"];
  4093. bool has_oneof_bytes() const;
  4094. void clear_oneof_bytes();
  4095. static const int kOneofBytesFieldNumber = 4;
  4096. const ::std::string& oneof_bytes() const;
  4097. void set_oneof_bytes(const ::std::string& value);
  4098. #if LANG_CXX11
  4099. void set_oneof_bytes(::std::string&& value);
  4100. #endif
  4101. void set_oneof_bytes(const char* value);
  4102. void set_oneof_bytes(const void* value, size_t size);
  4103. ::std::string* mutable_oneof_bytes();
  4104. ::std::string* release_oneof_bytes();
  4105. void set_allocated_oneof_bytes(::std::string* oneof_bytes);
  4106. // optional string oneof_string_cord = 5 [default = "default Cord", ctype = CORD];
  4107. bool has_oneof_string_cord() const;
  4108. void clear_oneof_string_cord();
  4109. static const int kOneofStringCordFieldNumber = 5;
  4110. private:
  4111. // Hidden due to unknown ctype option.
  4112. const ::std::string& oneof_string_cord() const;
  4113. void set_oneof_string_cord(const ::std::string& value);
  4114. #if LANG_CXX11
  4115. void set_oneof_string_cord(::std::string&& value);
  4116. #endif
  4117. void set_oneof_string_cord(const char* value);
  4118. void set_oneof_string_cord(const char* value, size_t size);
  4119. ::std::string* mutable_oneof_string_cord();
  4120. ::std::string* release_oneof_string_cord();
  4121. void set_allocated_oneof_string_cord(::std::string* oneof_string_cord);
  4122. public:
  4123. // optional bytes oneof_bytes_cord = 6 [ctype = CORD];
  4124. bool has_oneof_bytes_cord() const;
  4125. void clear_oneof_bytes_cord();
  4126. static const int kOneofBytesCordFieldNumber = 6;
  4127. private:
  4128. // Hidden due to unknown ctype option.
  4129. const ::std::string& oneof_bytes_cord() const;
  4130. void set_oneof_bytes_cord(const ::std::string& value);
  4131. #if LANG_CXX11
  4132. void set_oneof_bytes_cord(::std::string&& value);
  4133. #endif
  4134. void set_oneof_bytes_cord(const char* value);
  4135. void set_oneof_bytes_cord(const void* value, size_t size);
  4136. ::std::string* mutable_oneof_bytes_cord();
  4137. ::std::string* release_oneof_bytes_cord();
  4138. void set_allocated_oneof_bytes_cord(::std::string* oneof_bytes_cord);
  4139. public:
  4140. // optional string oneof_string_string_piece = 7 [ctype = STRING_PIECE];
  4141. bool has_oneof_string_string_piece() const;
  4142. void clear_oneof_string_string_piece();
  4143. static const int kOneofStringStringPieceFieldNumber = 7;
  4144. private:
  4145. // Hidden due to unknown ctype option.
  4146. const ::std::string& oneof_string_string_piece() const;
  4147. void set_oneof_string_string_piece(const ::std::string& value);
  4148. #if LANG_CXX11
  4149. void set_oneof_string_string_piece(::std::string&& value);
  4150. #endif
  4151. void set_oneof_string_string_piece(const char* value);
  4152. void set_oneof_string_string_piece(const char* value, size_t size);
  4153. ::std::string* mutable_oneof_string_string_piece();
  4154. ::std::string* release_oneof_string_string_piece();
  4155. void set_allocated_oneof_string_string_piece(::std::string* oneof_string_string_piece);
  4156. public:
  4157. // optional bytes oneof_bytes_string_piece = 8 [default = "default StringPiece", ctype = STRING_PIECE];
  4158. bool has_oneof_bytes_string_piece() const;
  4159. void clear_oneof_bytes_string_piece();
  4160. static const int kOneofBytesStringPieceFieldNumber = 8;
  4161. private:
  4162. // Hidden due to unknown ctype option.
  4163. const ::std::string& oneof_bytes_string_piece() const;
  4164. void set_oneof_bytes_string_piece(const ::std::string& value);
  4165. #if LANG_CXX11
  4166. void set_oneof_bytes_string_piece(::std::string&& value);
  4167. #endif
  4168. void set_oneof_bytes_string_piece(const char* value);
  4169. void set_oneof_bytes_string_piece(const void* value, size_t size);
  4170. ::std::string* mutable_oneof_bytes_string_piece();
  4171. ::std::string* release_oneof_bytes_string_piece();
  4172. void set_allocated_oneof_bytes_string_piece(::std::string* oneof_bytes_string_piece);
  4173. public:
  4174. // optional .protobuf_unittest.V2EnumLite oneof_enum = 9;
  4175. bool has_oneof_enum() const;
  4176. void clear_oneof_enum();
  4177. static const int kOneofEnumFieldNumber = 9;
  4178. ::protobuf_unittest::V2EnumLite oneof_enum() const;
  4179. void set_oneof_enum(::protobuf_unittest::V2EnumLite value);
  4180. void clear_oneof_field();
  4181. OneofFieldCase oneof_field_case() const;
  4182. // @@protoc_insertion_point(class_scope:protobuf_unittest.TestOneofParsingLite)
  4183. private:
  4184. void set_has_oneof_int32();
  4185. void set_has_oneof_submessage();
  4186. void set_has_oneof_string();
  4187. void set_has_oneof_bytes();
  4188. void set_has_oneof_string_cord();
  4189. void set_has_oneof_bytes_cord();
  4190. void set_has_oneof_string_string_piece();
  4191. void set_has_oneof_bytes_string_piece();
  4192. void set_has_oneof_enum();
  4193. inline bool has_oneof_field() const;
  4194. inline void clear_has_oneof_field();
  4195. ::google::protobuf::internal::InternalMetadataWithArenaLite _internal_metadata_;
  4196. ::google::protobuf::internal::HasBits<1> _has_bits_;
  4197. mutable ::google::protobuf::internal::CachedSize _cached_size_;
  4198. union OneofFieldUnion {
  4199. OneofFieldUnion() {}
  4200. ::google::protobuf::int32 oneof_int32_;
  4201. ::protobuf_unittest::TestAllTypesLite* oneof_submessage_;
  4202. ::google::protobuf::internal::ArenaStringPtr oneof_string_;
  4203. ::google::protobuf::internal::ArenaStringPtr oneof_bytes_;
  4204. ::google::protobuf::internal::ArenaStringPtr oneof_string_cord_;
  4205. ::google::protobuf::internal::ArenaStringPtr oneof_bytes_cord_;
  4206. ::google::protobuf::internal::ArenaStringPtr oneof_string_string_piece_;
  4207. ::google::protobuf::internal::ArenaStringPtr oneof_bytes_string_piece_;
  4208. int oneof_enum_;
  4209. } oneof_field_;
  4210. public:
  4211. static ::google::protobuf::internal::ExplicitlyConstructed< ::std::string> _i_give_permission_to_break_this_code_default_oneof_bytes_;
  4212. private:
  4213. public:
  4214. static ::google::protobuf::internal::ExplicitlyConstructed< ::std::string> _i_give_permission_to_break_this_code_default_oneof_string_cord_;
  4215. private:
  4216. public:
  4217. static ::google::protobuf::internal::ExplicitlyConstructed< ::std::string> _i_give_permission_to_break_this_code_default_oneof_bytes_string_piece_;
  4218. private:
  4219. ::google::protobuf::uint32 _oneof_case_[1];
  4220. friend struct ::protobuf_google_2fprotobuf_2funittest_5flite_2eproto::TableStruct;
  4221. };
  4222. // -------------------------------------------------------------------
  4223. class PackedInt32 : public ::google::protobuf::MessageLite /* @@protoc_insertion_point(class_definition:protobuf_unittest.PackedInt32) */ {
  4224. public:
  4225. PackedInt32();
  4226. virtual ~PackedInt32();
  4227. PackedInt32(const PackedInt32& from);
  4228. inline PackedInt32& operator=(const PackedInt32& from) {
  4229. CopyFrom(from);
  4230. return *this;
  4231. }
  4232. #if LANG_CXX11
  4233. PackedInt32(PackedInt32&& from) noexcept
  4234. : PackedInt32() {
  4235. *this = ::std::move(from);
  4236. }
  4237. inline PackedInt32& operator=(PackedInt32&& from) noexcept {
  4238. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  4239. if (this != &from) InternalSwap(&from);
  4240. } else {
  4241. CopyFrom(from);
  4242. }
  4243. return *this;
  4244. }
  4245. #endif
  4246. inline const ::std::string& unknown_fields() const {
  4247. return _internal_metadata_.unknown_fields();
  4248. }
  4249. inline ::std::string* mutable_unknown_fields() {
  4250. return _internal_metadata_.mutable_unknown_fields();
  4251. }
  4252. static const PackedInt32& default_instance();
  4253. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  4254. static inline const PackedInt32* internal_default_instance() {
  4255. return reinterpret_cast<const PackedInt32*>(
  4256. &_PackedInt32_default_instance_);
  4257. }
  4258. static constexpr int kIndexInFileMessages =
  4259. 26;
  4260. void Swap(PackedInt32* other);
  4261. friend void swap(PackedInt32& a, PackedInt32& b) {
  4262. a.Swap(&b);
  4263. }
  4264. // implements Message ----------------------------------------------
  4265. inline PackedInt32* New() const final {
  4266. return CreateMaybeMessage<PackedInt32>(NULL);
  4267. }
  4268. PackedInt32* New(::google::protobuf::Arena* arena) const final {
  4269. return CreateMaybeMessage<PackedInt32>(arena);
  4270. }
  4271. void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from)
  4272. final;
  4273. void CopyFrom(const PackedInt32& from);
  4274. void MergeFrom(const PackedInt32& from);
  4275. void Clear() final;
  4276. bool IsInitialized() const final;
  4277. size_t ByteSizeLong() const final;
  4278. bool MergePartialFromCodedStream(
  4279. ::google::protobuf::io::CodedInputStream* input) final;
  4280. void SerializeWithCachedSizes(
  4281. ::google::protobuf::io::CodedOutputStream* output) const final;
  4282. void DiscardUnknownFields();
  4283. int GetCachedSize() const final { return _cached_size_.Get(); }
  4284. private:
  4285. void SharedCtor();
  4286. void SharedDtor();
  4287. void SetCachedSize(int size) const;
  4288. void InternalSwap(PackedInt32* other);
  4289. private:
  4290. inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
  4291. return NULL;
  4292. }
  4293. inline void* MaybeArenaPtr() const {
  4294. return NULL;
  4295. }
  4296. public:
  4297. ::std::string GetTypeName() const final;
  4298. // nested types ----------------------------------------------------
  4299. // accessors -------------------------------------------------------
  4300. // repeated int32 repeated_int32 = 2048 [packed = true];
  4301. int repeated_int32_size() const;
  4302. void clear_repeated_int32();
  4303. static const int kRepeatedInt32FieldNumber = 2048;
  4304. ::google::protobuf::int32 repeated_int32(int index) const;
  4305. void set_repeated_int32(int index, ::google::protobuf::int32 value);
  4306. void add_repeated_int32(::google::protobuf::int32 value);
  4307. const ::google::protobuf::RepeatedField< ::google::protobuf::int32 >&
  4308. repeated_int32() const;
  4309. ::google::protobuf::RepeatedField< ::google::protobuf::int32 >*
  4310. mutable_repeated_int32();
  4311. // @@protoc_insertion_point(class_scope:protobuf_unittest.PackedInt32)
  4312. private:
  4313. ::google::protobuf::internal::InternalMetadataWithArenaLite _internal_metadata_;
  4314. ::google::protobuf::internal::HasBits<1> _has_bits_;
  4315. mutable ::google::protobuf::internal::CachedSize _cached_size_;
  4316. ::google::protobuf::RepeatedField< ::google::protobuf::int32 > repeated_int32_;
  4317. mutable int _repeated_int32_cached_byte_size_;
  4318. friend struct ::protobuf_google_2fprotobuf_2funittest_5flite_2eproto::TableStruct;
  4319. };
  4320. // -------------------------------------------------------------------
  4321. class NonPackedInt32 : public ::google::protobuf::MessageLite /* @@protoc_insertion_point(class_definition:protobuf_unittest.NonPackedInt32) */ {
  4322. public:
  4323. NonPackedInt32();
  4324. virtual ~NonPackedInt32();
  4325. NonPackedInt32(const NonPackedInt32& from);
  4326. inline NonPackedInt32& operator=(const NonPackedInt32& from) {
  4327. CopyFrom(from);
  4328. return *this;
  4329. }
  4330. #if LANG_CXX11
  4331. NonPackedInt32(NonPackedInt32&& from) noexcept
  4332. : NonPackedInt32() {
  4333. *this = ::std::move(from);
  4334. }
  4335. inline NonPackedInt32& operator=(NonPackedInt32&& from) noexcept {
  4336. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  4337. if (this != &from) InternalSwap(&from);
  4338. } else {
  4339. CopyFrom(from);
  4340. }
  4341. return *this;
  4342. }
  4343. #endif
  4344. inline const ::std::string& unknown_fields() const {
  4345. return _internal_metadata_.unknown_fields();
  4346. }
  4347. inline ::std::string* mutable_unknown_fields() {
  4348. return _internal_metadata_.mutable_unknown_fields();
  4349. }
  4350. static const NonPackedInt32& default_instance();
  4351. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  4352. static inline const NonPackedInt32* internal_default_instance() {
  4353. return reinterpret_cast<const NonPackedInt32*>(
  4354. &_NonPackedInt32_default_instance_);
  4355. }
  4356. static constexpr int kIndexInFileMessages =
  4357. 27;
  4358. void Swap(NonPackedInt32* other);
  4359. friend void swap(NonPackedInt32& a, NonPackedInt32& b) {
  4360. a.Swap(&b);
  4361. }
  4362. // implements Message ----------------------------------------------
  4363. inline NonPackedInt32* New() const final {
  4364. return CreateMaybeMessage<NonPackedInt32>(NULL);
  4365. }
  4366. NonPackedInt32* New(::google::protobuf::Arena* arena) const final {
  4367. return CreateMaybeMessage<NonPackedInt32>(arena);
  4368. }
  4369. void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from)
  4370. final;
  4371. void CopyFrom(const NonPackedInt32& from);
  4372. void MergeFrom(const NonPackedInt32& from);
  4373. void Clear() final;
  4374. bool IsInitialized() const final;
  4375. size_t ByteSizeLong() const final;
  4376. bool MergePartialFromCodedStream(
  4377. ::google::protobuf::io::CodedInputStream* input) final;
  4378. void SerializeWithCachedSizes(
  4379. ::google::protobuf::io::CodedOutputStream* output) const final;
  4380. void DiscardUnknownFields();
  4381. int GetCachedSize() const final { return _cached_size_.Get(); }
  4382. private:
  4383. void SharedCtor();
  4384. void SharedDtor();
  4385. void SetCachedSize(int size) const;
  4386. void InternalSwap(NonPackedInt32* other);
  4387. private:
  4388. inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
  4389. return NULL;
  4390. }
  4391. inline void* MaybeArenaPtr() const {
  4392. return NULL;
  4393. }
  4394. public:
  4395. ::std::string GetTypeName() const final;
  4396. // nested types ----------------------------------------------------
  4397. // accessors -------------------------------------------------------
  4398. // repeated int32 repeated_int32 = 2048;
  4399. int repeated_int32_size() const;
  4400. void clear_repeated_int32();
  4401. static const int kRepeatedInt32FieldNumber = 2048;
  4402. ::google::protobuf::int32 repeated_int32(int index) const;
  4403. void set_repeated_int32(int index, ::google::protobuf::int32 value);
  4404. void add_repeated_int32(::google::protobuf::int32 value);
  4405. const ::google::protobuf::RepeatedField< ::google::protobuf::int32 >&
  4406. repeated_int32() const;
  4407. ::google::protobuf::RepeatedField< ::google::protobuf::int32 >*
  4408. mutable_repeated_int32();
  4409. // @@protoc_insertion_point(class_scope:protobuf_unittest.NonPackedInt32)
  4410. private:
  4411. ::google::protobuf::internal::InternalMetadataWithArenaLite _internal_metadata_;
  4412. ::google::protobuf::internal::HasBits<1> _has_bits_;
  4413. mutable ::google::protobuf::internal::CachedSize _cached_size_;
  4414. ::google::protobuf::RepeatedField< ::google::protobuf::int32 > repeated_int32_;
  4415. friend struct ::protobuf_google_2fprotobuf_2funittest_5flite_2eproto::TableStruct;
  4416. };
  4417. // -------------------------------------------------------------------
  4418. class PackedFixed32 : public ::google::protobuf::MessageLite /* @@protoc_insertion_point(class_definition:protobuf_unittest.PackedFixed32) */ {
  4419. public:
  4420. PackedFixed32();
  4421. virtual ~PackedFixed32();
  4422. PackedFixed32(const PackedFixed32& from);
  4423. inline PackedFixed32& operator=(const PackedFixed32& from) {
  4424. CopyFrom(from);
  4425. return *this;
  4426. }
  4427. #if LANG_CXX11
  4428. PackedFixed32(PackedFixed32&& from) noexcept
  4429. : PackedFixed32() {
  4430. *this = ::std::move(from);
  4431. }
  4432. inline PackedFixed32& operator=(PackedFixed32&& from) noexcept {
  4433. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  4434. if (this != &from) InternalSwap(&from);
  4435. } else {
  4436. CopyFrom(from);
  4437. }
  4438. return *this;
  4439. }
  4440. #endif
  4441. inline const ::std::string& unknown_fields() const {
  4442. return _internal_metadata_.unknown_fields();
  4443. }
  4444. inline ::std::string* mutable_unknown_fields() {
  4445. return _internal_metadata_.mutable_unknown_fields();
  4446. }
  4447. static const PackedFixed32& default_instance();
  4448. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  4449. static inline const PackedFixed32* internal_default_instance() {
  4450. return reinterpret_cast<const PackedFixed32*>(
  4451. &_PackedFixed32_default_instance_);
  4452. }
  4453. static constexpr int kIndexInFileMessages =
  4454. 28;
  4455. void Swap(PackedFixed32* other);
  4456. friend void swap(PackedFixed32& a, PackedFixed32& b) {
  4457. a.Swap(&b);
  4458. }
  4459. // implements Message ----------------------------------------------
  4460. inline PackedFixed32* New() const final {
  4461. return CreateMaybeMessage<PackedFixed32>(NULL);
  4462. }
  4463. PackedFixed32* New(::google::protobuf::Arena* arena) const final {
  4464. return CreateMaybeMessage<PackedFixed32>(arena);
  4465. }
  4466. void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from)
  4467. final;
  4468. void CopyFrom(const PackedFixed32& from);
  4469. void MergeFrom(const PackedFixed32& from);
  4470. void Clear() final;
  4471. bool IsInitialized() const final;
  4472. size_t ByteSizeLong() const final;
  4473. bool MergePartialFromCodedStream(
  4474. ::google::protobuf::io::CodedInputStream* input) final;
  4475. void SerializeWithCachedSizes(
  4476. ::google::protobuf::io::CodedOutputStream* output) const final;
  4477. void DiscardUnknownFields();
  4478. int GetCachedSize() const final { return _cached_size_.Get(); }
  4479. private:
  4480. void SharedCtor();
  4481. void SharedDtor();
  4482. void SetCachedSize(int size) const;
  4483. void InternalSwap(PackedFixed32* other);
  4484. private:
  4485. inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
  4486. return NULL;
  4487. }
  4488. inline void* MaybeArenaPtr() const {
  4489. return NULL;
  4490. }
  4491. public:
  4492. ::std::string GetTypeName() const final;
  4493. // nested types ----------------------------------------------------
  4494. // accessors -------------------------------------------------------
  4495. // repeated fixed32 repeated_fixed32 = 2048 [packed = true];
  4496. int repeated_fixed32_size() const;
  4497. void clear_repeated_fixed32();
  4498. static const int kRepeatedFixed32FieldNumber = 2048;
  4499. ::google::protobuf::uint32 repeated_fixed32(int index) const;
  4500. void set_repeated_fixed32(int index, ::google::protobuf::uint32 value);
  4501. void add_repeated_fixed32(::google::protobuf::uint32 value);
  4502. const ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >&
  4503. repeated_fixed32() const;
  4504. ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >*
  4505. mutable_repeated_fixed32();
  4506. // @@protoc_insertion_point(class_scope:protobuf_unittest.PackedFixed32)
  4507. private:
  4508. ::google::protobuf::internal::InternalMetadataWithArenaLite _internal_metadata_;
  4509. ::google::protobuf::internal::HasBits<1> _has_bits_;
  4510. mutable ::google::protobuf::internal::CachedSize _cached_size_;
  4511. ::google::protobuf::RepeatedField< ::google::protobuf::uint32 > repeated_fixed32_;
  4512. mutable int _repeated_fixed32_cached_byte_size_;
  4513. friend struct ::protobuf_google_2fprotobuf_2funittest_5flite_2eproto::TableStruct;
  4514. };
  4515. // -------------------------------------------------------------------
  4516. class NonPackedFixed32 : public ::google::protobuf::MessageLite /* @@protoc_insertion_point(class_definition:protobuf_unittest.NonPackedFixed32) */ {
  4517. public:
  4518. NonPackedFixed32();
  4519. virtual ~NonPackedFixed32();
  4520. NonPackedFixed32(const NonPackedFixed32& from);
  4521. inline NonPackedFixed32& operator=(const NonPackedFixed32& from) {
  4522. CopyFrom(from);
  4523. return *this;
  4524. }
  4525. #if LANG_CXX11
  4526. NonPackedFixed32(NonPackedFixed32&& from) noexcept
  4527. : NonPackedFixed32() {
  4528. *this = ::std::move(from);
  4529. }
  4530. inline NonPackedFixed32& operator=(NonPackedFixed32&& from) noexcept {
  4531. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  4532. if (this != &from) InternalSwap(&from);
  4533. } else {
  4534. CopyFrom(from);
  4535. }
  4536. return *this;
  4537. }
  4538. #endif
  4539. inline const ::std::string& unknown_fields() const {
  4540. return _internal_metadata_.unknown_fields();
  4541. }
  4542. inline ::std::string* mutable_unknown_fields() {
  4543. return _internal_metadata_.mutable_unknown_fields();
  4544. }
  4545. static const NonPackedFixed32& default_instance();
  4546. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  4547. static inline const NonPackedFixed32* internal_default_instance() {
  4548. return reinterpret_cast<const NonPackedFixed32*>(
  4549. &_NonPackedFixed32_default_instance_);
  4550. }
  4551. static constexpr int kIndexInFileMessages =
  4552. 29;
  4553. void Swap(NonPackedFixed32* other);
  4554. friend void swap(NonPackedFixed32& a, NonPackedFixed32& b) {
  4555. a.Swap(&b);
  4556. }
  4557. // implements Message ----------------------------------------------
  4558. inline NonPackedFixed32* New() const final {
  4559. return CreateMaybeMessage<NonPackedFixed32>(NULL);
  4560. }
  4561. NonPackedFixed32* New(::google::protobuf::Arena* arena) const final {
  4562. return CreateMaybeMessage<NonPackedFixed32>(arena);
  4563. }
  4564. void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from)
  4565. final;
  4566. void CopyFrom(const NonPackedFixed32& from);
  4567. void MergeFrom(const NonPackedFixed32& from);
  4568. void Clear() final;
  4569. bool IsInitialized() const final;
  4570. size_t ByteSizeLong() const final;
  4571. bool MergePartialFromCodedStream(
  4572. ::google::protobuf::io::CodedInputStream* input) final;
  4573. void SerializeWithCachedSizes(
  4574. ::google::protobuf::io::CodedOutputStream* output) const final;
  4575. void DiscardUnknownFields();
  4576. int GetCachedSize() const final { return _cached_size_.Get(); }
  4577. private:
  4578. void SharedCtor();
  4579. void SharedDtor();
  4580. void SetCachedSize(int size) const;
  4581. void InternalSwap(NonPackedFixed32* other);
  4582. private:
  4583. inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
  4584. return NULL;
  4585. }
  4586. inline void* MaybeArenaPtr() const {
  4587. return NULL;
  4588. }
  4589. public:
  4590. ::std::string GetTypeName() const final;
  4591. // nested types ----------------------------------------------------
  4592. // accessors -------------------------------------------------------
  4593. // repeated fixed32 repeated_fixed32 = 2048;
  4594. int repeated_fixed32_size() const;
  4595. void clear_repeated_fixed32();
  4596. static const int kRepeatedFixed32FieldNumber = 2048;
  4597. ::google::protobuf::uint32 repeated_fixed32(int index) const;
  4598. void set_repeated_fixed32(int index, ::google::protobuf::uint32 value);
  4599. void add_repeated_fixed32(::google::protobuf::uint32 value);
  4600. const ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >&
  4601. repeated_fixed32() const;
  4602. ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >*
  4603. mutable_repeated_fixed32();
  4604. // @@protoc_insertion_point(class_scope:protobuf_unittest.NonPackedFixed32)
  4605. private:
  4606. ::google::protobuf::internal::InternalMetadataWithArenaLite _internal_metadata_;
  4607. ::google::protobuf::internal::HasBits<1> _has_bits_;
  4608. mutable ::google::protobuf::internal::CachedSize _cached_size_;
  4609. ::google::protobuf::RepeatedField< ::google::protobuf::uint32 > repeated_fixed32_;
  4610. friend struct ::protobuf_google_2fprotobuf_2funittest_5flite_2eproto::TableStruct;
  4611. };
  4612. // ===================================================================
  4613. static const int kOptionalInt32ExtensionLiteFieldNumber = 1;
  4614. extern ::google::protobuf::internal::ExtensionIdentifier< ::protobuf_unittest::TestAllExtensionsLite,
  4615. ::google::protobuf::internal::PrimitiveTypeTraits< ::google::protobuf::int32 >, 5, false >
  4616. optional_int32_extension_lite;
  4617. static const int kOptionalInt64ExtensionLiteFieldNumber = 2;
  4618. extern ::google::protobuf::internal::ExtensionIdentifier< ::protobuf_unittest::TestAllExtensionsLite,
  4619. ::google::protobuf::internal::PrimitiveTypeTraits< ::google::protobuf::int64 >, 3, false >
  4620. optional_int64_extension_lite;
  4621. static const int kOptionalUint32ExtensionLiteFieldNumber = 3;
  4622. extern ::google::protobuf::internal::ExtensionIdentifier< ::protobuf_unittest::TestAllExtensionsLite,
  4623. ::google::protobuf::internal::PrimitiveTypeTraits< ::google::protobuf::uint32 >, 13, false >
  4624. optional_uint32_extension_lite;
  4625. static const int kOptionalUint64ExtensionLiteFieldNumber = 4;
  4626. extern ::google::protobuf::internal::ExtensionIdentifier< ::protobuf_unittest::TestAllExtensionsLite,
  4627. ::google::protobuf::internal::PrimitiveTypeTraits< ::google::protobuf::uint64 >, 4, false >
  4628. optional_uint64_extension_lite;
  4629. static const int kOptionalSint32ExtensionLiteFieldNumber = 5;
  4630. extern ::google::protobuf::internal::ExtensionIdentifier< ::protobuf_unittest::TestAllExtensionsLite,
  4631. ::google::protobuf::internal::PrimitiveTypeTraits< ::google::protobuf::int32 >, 17, false >
  4632. optional_sint32_extension_lite;
  4633. static const int kOptionalSint64ExtensionLiteFieldNumber = 6;
  4634. extern ::google::protobuf::internal::ExtensionIdentifier< ::protobuf_unittest::TestAllExtensionsLite,
  4635. ::google::protobuf::internal::PrimitiveTypeTraits< ::google::protobuf::int64 >, 18, false >
  4636. optional_sint64_extension_lite;
  4637. static const int kOptionalFixed32ExtensionLiteFieldNumber = 7;
  4638. extern ::google::protobuf::internal::ExtensionIdentifier< ::protobuf_unittest::TestAllExtensionsLite,
  4639. ::google::protobuf::internal::PrimitiveTypeTraits< ::google::protobuf::uint32 >, 7, false >
  4640. optional_fixed32_extension_lite;
  4641. static const int kOptionalFixed64ExtensionLiteFieldNumber = 8;
  4642. extern ::google::protobuf::internal::ExtensionIdentifier< ::protobuf_unittest::TestAllExtensionsLite,
  4643. ::google::protobuf::internal::PrimitiveTypeTraits< ::google::protobuf::uint64 >, 6, false >
  4644. optional_fixed64_extension_lite;
  4645. static const int kOptionalSfixed32ExtensionLiteFieldNumber = 9;
  4646. extern ::google::protobuf::internal::ExtensionIdentifier< ::protobuf_unittest::TestAllExtensionsLite,
  4647. ::google::protobuf::internal::PrimitiveTypeTraits< ::google::protobuf::int32 >, 15, false >
  4648. optional_sfixed32_extension_lite;
  4649. static const int kOptionalSfixed64ExtensionLiteFieldNumber = 10;
  4650. extern ::google::protobuf::internal::ExtensionIdentifier< ::protobuf_unittest::TestAllExtensionsLite,
  4651. ::google::protobuf::internal::PrimitiveTypeTraits< ::google::protobuf::int64 >, 16, false >
  4652. optional_sfixed64_extension_lite;
  4653. static const int kOptionalFloatExtensionLiteFieldNumber = 11;
  4654. extern ::google::protobuf::internal::ExtensionIdentifier< ::protobuf_unittest::TestAllExtensionsLite,
  4655. ::google::protobuf::internal::PrimitiveTypeTraits< float >, 2, false >
  4656. optional_float_extension_lite;
  4657. static const int kOptionalDoubleExtensionLiteFieldNumber = 12;
  4658. extern ::google::protobuf::internal::ExtensionIdentifier< ::protobuf_unittest::TestAllExtensionsLite,
  4659. ::google::protobuf::internal::PrimitiveTypeTraits< double >, 1, false >
  4660. optional_double_extension_lite;
  4661. static const int kOptionalBoolExtensionLiteFieldNumber = 13;
  4662. extern ::google::protobuf::internal::ExtensionIdentifier< ::protobuf_unittest::TestAllExtensionsLite,
  4663. ::google::protobuf::internal::PrimitiveTypeTraits< bool >, 8, false >
  4664. optional_bool_extension_lite;
  4665. static const int kOptionalStringExtensionLiteFieldNumber = 14;
  4666. extern ::google::protobuf::internal::ExtensionIdentifier< ::protobuf_unittest::TestAllExtensionsLite,
  4667. ::google::protobuf::internal::StringTypeTraits, 9, false >
  4668. optional_string_extension_lite;
  4669. static const int kOptionalBytesExtensionLiteFieldNumber = 15;
  4670. extern ::google::protobuf::internal::ExtensionIdentifier< ::protobuf_unittest::TestAllExtensionsLite,
  4671. ::google::protobuf::internal::StringTypeTraits, 12, false >
  4672. optional_bytes_extension_lite;
  4673. static const int kOptionalgroupExtensionLiteFieldNumber = 16;
  4674. extern ::google::protobuf::internal::ExtensionIdentifier< ::protobuf_unittest::TestAllExtensionsLite,
  4675. ::google::protobuf::internal::MessageTypeTraits< ::protobuf_unittest::OptionalGroup_extension_lite >, 10, false >
  4676. optionalgroup_extension_lite;
  4677. static const int kOptionalNestedMessageExtensionLiteFieldNumber = 18;
  4678. extern ::google::protobuf::internal::ExtensionIdentifier< ::protobuf_unittest::TestAllExtensionsLite,
  4679. ::google::protobuf::internal::MessageTypeTraits< ::protobuf_unittest::TestAllTypesLite_NestedMessage >, 11, false >
  4680. optional_nested_message_extension_lite;
  4681. static const int kOptionalForeignMessageExtensionLiteFieldNumber = 19;
  4682. extern ::google::protobuf::internal::ExtensionIdentifier< ::protobuf_unittest::TestAllExtensionsLite,
  4683. ::google::protobuf::internal::MessageTypeTraits< ::protobuf_unittest::ForeignMessageLite >, 11, false >
  4684. optional_foreign_message_extension_lite;
  4685. static const int kOptionalImportMessageExtensionLiteFieldNumber = 20;
  4686. extern ::google::protobuf::internal::ExtensionIdentifier< ::protobuf_unittest::TestAllExtensionsLite,
  4687. ::google::protobuf::internal::MessageTypeTraits< ::protobuf_unittest_import::ImportMessageLite >, 11, false >
  4688. optional_import_message_extension_lite;
  4689. static const int kOptionalNestedEnumExtensionLiteFieldNumber = 21;
  4690. extern ::google::protobuf::internal::ExtensionIdentifier< ::protobuf_unittest::TestAllExtensionsLite,
  4691. ::google::protobuf::internal::EnumTypeTraits< ::protobuf_unittest::TestAllTypesLite_NestedEnum, ::protobuf_unittest::TestAllTypesLite_NestedEnum_IsValid>, 14, false >
  4692. optional_nested_enum_extension_lite;
  4693. static const int kOptionalForeignEnumExtensionLiteFieldNumber = 22;
  4694. extern ::google::protobuf::internal::ExtensionIdentifier< ::protobuf_unittest::TestAllExtensionsLite,
  4695. ::google::protobuf::internal::EnumTypeTraits< ::protobuf_unittest::ForeignEnumLite, ::protobuf_unittest::ForeignEnumLite_IsValid>, 14, false >
  4696. optional_foreign_enum_extension_lite;
  4697. static const int kOptionalImportEnumExtensionLiteFieldNumber = 23;
  4698. extern ::google::protobuf::internal::ExtensionIdentifier< ::protobuf_unittest::TestAllExtensionsLite,
  4699. ::google::protobuf::internal::EnumTypeTraits< ::protobuf_unittest_import::ImportEnumLite, ::protobuf_unittest_import::ImportEnumLite_IsValid>, 14, false >
  4700. optional_import_enum_extension_lite;
  4701. static const int kOptionalStringPieceExtensionLiteFieldNumber = 24;
  4702. extern ::google::protobuf::internal::ExtensionIdentifier< ::protobuf_unittest::TestAllExtensionsLite,
  4703. ::google::protobuf::internal::StringTypeTraits, 9, false >
  4704. optional_string_piece_extension_lite;
  4705. static const int kOptionalCordExtensionLiteFieldNumber = 25;
  4706. extern ::google::protobuf::internal::ExtensionIdentifier< ::protobuf_unittest::TestAllExtensionsLite,
  4707. ::google::protobuf::internal::StringTypeTraits, 9, false >
  4708. optional_cord_extension_lite;
  4709. static const int kOptionalPublicImportMessageExtensionLiteFieldNumber = 26;
  4710. extern ::google::protobuf::internal::ExtensionIdentifier< ::protobuf_unittest::TestAllExtensionsLite,
  4711. ::google::protobuf::internal::MessageTypeTraits< ::protobuf_unittest_import::PublicImportMessageLite >, 11, false >
  4712. optional_public_import_message_extension_lite;
  4713. static const int kOptionalLazyMessageExtensionLiteFieldNumber = 27;
  4714. extern ::google::protobuf::internal::ExtensionIdentifier< ::protobuf_unittest::TestAllExtensionsLite,
  4715. ::google::protobuf::internal::MessageTypeTraits< ::protobuf_unittest::TestAllTypesLite_NestedMessage >, 11, false >
  4716. optional_lazy_message_extension_lite;
  4717. static const int kRepeatedInt32ExtensionLiteFieldNumber = 31;
  4718. extern ::google::protobuf::internal::ExtensionIdentifier< ::protobuf_unittest::TestAllExtensionsLite,
  4719. ::google::protobuf::internal::RepeatedPrimitiveTypeTraits< ::google::protobuf::int32 >, 5, false >
  4720. repeated_int32_extension_lite;
  4721. static const int kRepeatedInt64ExtensionLiteFieldNumber = 32;
  4722. extern ::google::protobuf::internal::ExtensionIdentifier< ::protobuf_unittest::TestAllExtensionsLite,
  4723. ::google::protobuf::internal::RepeatedPrimitiveTypeTraits< ::google::protobuf::int64 >, 3, false >
  4724. repeated_int64_extension_lite;
  4725. static const int kRepeatedUint32ExtensionLiteFieldNumber = 33;
  4726. extern ::google::protobuf::internal::ExtensionIdentifier< ::protobuf_unittest::TestAllExtensionsLite,
  4727. ::google::protobuf::internal::RepeatedPrimitiveTypeTraits< ::google::protobuf::uint32 >, 13, false >
  4728. repeated_uint32_extension_lite;
  4729. static const int kRepeatedUint64ExtensionLiteFieldNumber = 34;
  4730. extern ::google::protobuf::internal::ExtensionIdentifier< ::protobuf_unittest::TestAllExtensionsLite,
  4731. ::google::protobuf::internal::RepeatedPrimitiveTypeTraits< ::google::protobuf::uint64 >, 4, false >
  4732. repeated_uint64_extension_lite;
  4733. static const int kRepeatedSint32ExtensionLiteFieldNumber = 35;
  4734. extern ::google::protobuf::internal::ExtensionIdentifier< ::protobuf_unittest::TestAllExtensionsLite,
  4735. ::google::protobuf::internal::RepeatedPrimitiveTypeTraits< ::google::protobuf::int32 >, 17, false >
  4736. repeated_sint32_extension_lite;
  4737. static const int kRepeatedSint64ExtensionLiteFieldNumber = 36;
  4738. extern ::google::protobuf::internal::ExtensionIdentifier< ::protobuf_unittest::TestAllExtensionsLite,
  4739. ::google::protobuf::internal::RepeatedPrimitiveTypeTraits< ::google::protobuf::int64 >, 18, false >
  4740. repeated_sint64_extension_lite;
  4741. static const int kRepeatedFixed32ExtensionLiteFieldNumber = 37;
  4742. extern ::google::protobuf::internal::ExtensionIdentifier< ::protobuf_unittest::TestAllExtensionsLite,
  4743. ::google::protobuf::internal::RepeatedPrimitiveTypeTraits< ::google::protobuf::uint32 >, 7, false >
  4744. repeated_fixed32_extension_lite;
  4745. static const int kRepeatedFixed64ExtensionLiteFieldNumber = 38;
  4746. extern ::google::protobuf::internal::ExtensionIdentifier< ::protobuf_unittest::TestAllExtensionsLite,
  4747. ::google::protobuf::internal::RepeatedPrimitiveTypeTraits< ::google::protobuf::uint64 >, 6, false >
  4748. repeated_fixed64_extension_lite;
  4749. static const int kRepeatedSfixed32ExtensionLiteFieldNumber = 39;
  4750. extern ::google::protobuf::internal::ExtensionIdentifier< ::protobuf_unittest::TestAllExtensionsLite,
  4751. ::google::protobuf::internal::RepeatedPrimitiveTypeTraits< ::google::protobuf::int32 >, 15, false >
  4752. repeated_sfixed32_extension_lite;
  4753. static const int kRepeatedSfixed64ExtensionLiteFieldNumber = 40;
  4754. extern ::google::protobuf::internal::ExtensionIdentifier< ::protobuf_unittest::TestAllExtensionsLite,
  4755. ::google::protobuf::internal::RepeatedPrimitiveTypeTraits< ::google::protobuf::int64 >, 16, false >
  4756. repeated_sfixed64_extension_lite;
  4757. static const int kRepeatedFloatExtensionLiteFieldNumber = 41;
  4758. extern ::google::protobuf::internal::ExtensionIdentifier< ::protobuf_unittest::TestAllExtensionsLite,
  4759. ::google::protobuf::internal::RepeatedPrimitiveTypeTraits< float >, 2, false >
  4760. repeated_float_extension_lite;
  4761. static const int kRepeatedDoubleExtensionLiteFieldNumber = 42;
  4762. extern ::google::protobuf::internal::ExtensionIdentifier< ::protobuf_unittest::TestAllExtensionsLite,
  4763. ::google::protobuf::internal::RepeatedPrimitiveTypeTraits< double >, 1, false >
  4764. repeated_double_extension_lite;
  4765. static const int kRepeatedBoolExtensionLiteFieldNumber = 43;
  4766. extern ::google::protobuf::internal::ExtensionIdentifier< ::protobuf_unittest::TestAllExtensionsLite,
  4767. ::google::protobuf::internal::RepeatedPrimitiveTypeTraits< bool >, 8, false >
  4768. repeated_bool_extension_lite;
  4769. static const int kRepeatedStringExtensionLiteFieldNumber = 44;
  4770. extern ::google::protobuf::internal::ExtensionIdentifier< ::protobuf_unittest::TestAllExtensionsLite,
  4771. ::google::protobuf::internal::RepeatedStringTypeTraits, 9, false >
  4772. repeated_string_extension_lite;
  4773. static const int kRepeatedBytesExtensionLiteFieldNumber = 45;
  4774. extern ::google::protobuf::internal::ExtensionIdentifier< ::protobuf_unittest::TestAllExtensionsLite,
  4775. ::google::protobuf::internal::RepeatedStringTypeTraits, 12, false >
  4776. repeated_bytes_extension_lite;
  4777. static const int kRepeatedgroupExtensionLiteFieldNumber = 46;
  4778. extern ::google::protobuf::internal::ExtensionIdentifier< ::protobuf_unittest::TestAllExtensionsLite,
  4779. ::google::protobuf::internal::RepeatedMessageTypeTraits< ::protobuf_unittest::RepeatedGroup_extension_lite >, 10, false >
  4780. repeatedgroup_extension_lite;
  4781. static const int kRepeatedNestedMessageExtensionLiteFieldNumber = 48;
  4782. extern ::google::protobuf::internal::ExtensionIdentifier< ::protobuf_unittest::TestAllExtensionsLite,
  4783. ::google::protobuf::internal::RepeatedMessageTypeTraits< ::protobuf_unittest::TestAllTypesLite_NestedMessage >, 11, false >
  4784. repeated_nested_message_extension_lite;
  4785. static const int kRepeatedForeignMessageExtensionLiteFieldNumber = 49;
  4786. extern ::google::protobuf::internal::ExtensionIdentifier< ::protobuf_unittest::TestAllExtensionsLite,
  4787. ::google::protobuf::internal::RepeatedMessageTypeTraits< ::protobuf_unittest::ForeignMessageLite >, 11, false >
  4788. repeated_foreign_message_extension_lite;
  4789. static const int kRepeatedImportMessageExtensionLiteFieldNumber = 50;
  4790. extern ::google::protobuf::internal::ExtensionIdentifier< ::protobuf_unittest::TestAllExtensionsLite,
  4791. ::google::protobuf::internal::RepeatedMessageTypeTraits< ::protobuf_unittest_import::ImportMessageLite >, 11, false >
  4792. repeated_import_message_extension_lite;
  4793. static const int kRepeatedNestedEnumExtensionLiteFieldNumber = 51;
  4794. extern ::google::protobuf::internal::ExtensionIdentifier< ::protobuf_unittest::TestAllExtensionsLite,
  4795. ::google::protobuf::internal::RepeatedEnumTypeTraits< ::protobuf_unittest::TestAllTypesLite_NestedEnum, ::protobuf_unittest::TestAllTypesLite_NestedEnum_IsValid>, 14, false >
  4796. repeated_nested_enum_extension_lite;
  4797. static const int kRepeatedForeignEnumExtensionLiteFieldNumber = 52;
  4798. extern ::google::protobuf::internal::ExtensionIdentifier< ::protobuf_unittest::TestAllExtensionsLite,
  4799. ::google::protobuf::internal::RepeatedEnumTypeTraits< ::protobuf_unittest::ForeignEnumLite, ::protobuf_unittest::ForeignEnumLite_IsValid>, 14, false >
  4800. repeated_foreign_enum_extension_lite;
  4801. static const int kRepeatedImportEnumExtensionLiteFieldNumber = 53;
  4802. extern ::google::protobuf::internal::ExtensionIdentifier< ::protobuf_unittest::TestAllExtensionsLite,
  4803. ::google::protobuf::internal::RepeatedEnumTypeTraits< ::protobuf_unittest_import::ImportEnumLite, ::protobuf_unittest_import::ImportEnumLite_IsValid>, 14, false >
  4804. repeated_import_enum_extension_lite;
  4805. static const int kRepeatedStringPieceExtensionLiteFieldNumber = 54;
  4806. extern ::google::protobuf::internal::ExtensionIdentifier< ::protobuf_unittest::TestAllExtensionsLite,
  4807. ::google::protobuf::internal::RepeatedStringTypeTraits, 9, false >
  4808. repeated_string_piece_extension_lite;
  4809. static const int kRepeatedCordExtensionLiteFieldNumber = 55;
  4810. extern ::google::protobuf::internal::ExtensionIdentifier< ::protobuf_unittest::TestAllExtensionsLite,
  4811. ::google::protobuf::internal::RepeatedStringTypeTraits, 9, false >
  4812. repeated_cord_extension_lite;
  4813. static const int kRepeatedLazyMessageExtensionLiteFieldNumber = 57;
  4814. extern ::google::protobuf::internal::ExtensionIdentifier< ::protobuf_unittest::TestAllExtensionsLite,
  4815. ::google::protobuf::internal::RepeatedMessageTypeTraits< ::protobuf_unittest::TestAllTypesLite_NestedMessage >, 11, false >
  4816. repeated_lazy_message_extension_lite;
  4817. static const int kDefaultInt32ExtensionLiteFieldNumber = 61;
  4818. extern ::google::protobuf::internal::ExtensionIdentifier< ::protobuf_unittest::TestAllExtensionsLite,
  4819. ::google::protobuf::internal::PrimitiveTypeTraits< ::google::protobuf::int32 >, 5, false >
  4820. default_int32_extension_lite;
  4821. static const int kDefaultInt64ExtensionLiteFieldNumber = 62;
  4822. extern ::google::protobuf::internal::ExtensionIdentifier< ::protobuf_unittest::TestAllExtensionsLite,
  4823. ::google::protobuf::internal::PrimitiveTypeTraits< ::google::protobuf::int64 >, 3, false >
  4824. default_int64_extension_lite;
  4825. static const int kDefaultUint32ExtensionLiteFieldNumber = 63;
  4826. extern ::google::protobuf::internal::ExtensionIdentifier< ::protobuf_unittest::TestAllExtensionsLite,
  4827. ::google::protobuf::internal::PrimitiveTypeTraits< ::google::protobuf::uint32 >, 13, false >
  4828. default_uint32_extension_lite;
  4829. static const int kDefaultUint64ExtensionLiteFieldNumber = 64;
  4830. extern ::google::protobuf::internal::ExtensionIdentifier< ::protobuf_unittest::TestAllExtensionsLite,
  4831. ::google::protobuf::internal::PrimitiveTypeTraits< ::google::protobuf::uint64 >, 4, false >
  4832. default_uint64_extension_lite;
  4833. static const int kDefaultSint32ExtensionLiteFieldNumber = 65;
  4834. extern ::google::protobuf::internal::ExtensionIdentifier< ::protobuf_unittest::TestAllExtensionsLite,
  4835. ::google::protobuf::internal::PrimitiveTypeTraits< ::google::protobuf::int32 >, 17, false >
  4836. default_sint32_extension_lite;
  4837. static const int kDefaultSint64ExtensionLiteFieldNumber = 66;
  4838. extern ::google::protobuf::internal::ExtensionIdentifier< ::protobuf_unittest::TestAllExtensionsLite,
  4839. ::google::protobuf::internal::PrimitiveTypeTraits< ::google::protobuf::int64 >, 18, false >
  4840. default_sint64_extension_lite;
  4841. static const int kDefaultFixed32ExtensionLiteFieldNumber = 67;
  4842. extern ::google::protobuf::internal::ExtensionIdentifier< ::protobuf_unittest::TestAllExtensionsLite,
  4843. ::google::protobuf::internal::PrimitiveTypeTraits< ::google::protobuf::uint32 >, 7, false >
  4844. default_fixed32_extension_lite;
  4845. static const int kDefaultFixed64ExtensionLiteFieldNumber = 68;
  4846. extern ::google::protobuf::internal::ExtensionIdentifier< ::protobuf_unittest::TestAllExtensionsLite,
  4847. ::google::protobuf::internal::PrimitiveTypeTraits< ::google::protobuf::uint64 >, 6, false >
  4848. default_fixed64_extension_lite;
  4849. static const int kDefaultSfixed32ExtensionLiteFieldNumber = 69;
  4850. extern ::google::protobuf::internal::ExtensionIdentifier< ::protobuf_unittest::TestAllExtensionsLite,
  4851. ::google::protobuf::internal::PrimitiveTypeTraits< ::google::protobuf::int32 >, 15, false >
  4852. default_sfixed32_extension_lite;
  4853. static const int kDefaultSfixed64ExtensionLiteFieldNumber = 70;
  4854. extern ::google::protobuf::internal::ExtensionIdentifier< ::protobuf_unittest::TestAllExtensionsLite,
  4855. ::google::protobuf::internal::PrimitiveTypeTraits< ::google::protobuf::int64 >, 16, false >
  4856. default_sfixed64_extension_lite;
  4857. static const int kDefaultFloatExtensionLiteFieldNumber = 71;
  4858. extern ::google::protobuf::internal::ExtensionIdentifier< ::protobuf_unittest::TestAllExtensionsLite,
  4859. ::google::protobuf::internal::PrimitiveTypeTraits< float >, 2, false >
  4860. default_float_extension_lite;
  4861. static const int kDefaultDoubleExtensionLiteFieldNumber = 72;
  4862. extern ::google::protobuf::internal::ExtensionIdentifier< ::protobuf_unittest::TestAllExtensionsLite,
  4863. ::google::protobuf::internal::PrimitiveTypeTraits< double >, 1, false >
  4864. default_double_extension_lite;
  4865. static const int kDefaultBoolExtensionLiteFieldNumber = 73;
  4866. extern ::google::protobuf::internal::ExtensionIdentifier< ::protobuf_unittest::TestAllExtensionsLite,
  4867. ::google::protobuf::internal::PrimitiveTypeTraits< bool >, 8, false >
  4868. default_bool_extension_lite;
  4869. static const int kDefaultStringExtensionLiteFieldNumber = 74;
  4870. extern ::google::protobuf::internal::ExtensionIdentifier< ::protobuf_unittest::TestAllExtensionsLite,
  4871. ::google::protobuf::internal::StringTypeTraits, 9, false >
  4872. default_string_extension_lite;
  4873. static const int kDefaultBytesExtensionLiteFieldNumber = 75;
  4874. extern ::google::protobuf::internal::ExtensionIdentifier< ::protobuf_unittest::TestAllExtensionsLite,
  4875. ::google::protobuf::internal::StringTypeTraits, 12, false >
  4876. default_bytes_extension_lite;
  4877. static const int kDefaultNestedEnumExtensionLiteFieldNumber = 81;
  4878. extern ::google::protobuf::internal::ExtensionIdentifier< ::protobuf_unittest::TestAllExtensionsLite,
  4879. ::google::protobuf::internal::EnumTypeTraits< ::protobuf_unittest::TestAllTypesLite_NestedEnum, ::protobuf_unittest::TestAllTypesLite_NestedEnum_IsValid>, 14, false >
  4880. default_nested_enum_extension_lite;
  4881. static const int kDefaultForeignEnumExtensionLiteFieldNumber = 82;
  4882. extern ::google::protobuf::internal::ExtensionIdentifier< ::protobuf_unittest::TestAllExtensionsLite,
  4883. ::google::protobuf::internal::EnumTypeTraits< ::protobuf_unittest::ForeignEnumLite, ::protobuf_unittest::ForeignEnumLite_IsValid>, 14, false >
  4884. default_foreign_enum_extension_lite;
  4885. static const int kDefaultImportEnumExtensionLiteFieldNumber = 83;
  4886. extern ::google::protobuf::internal::ExtensionIdentifier< ::protobuf_unittest::TestAllExtensionsLite,
  4887. ::google::protobuf::internal::EnumTypeTraits< ::protobuf_unittest_import::ImportEnumLite, ::protobuf_unittest_import::ImportEnumLite_IsValid>, 14, false >
  4888. default_import_enum_extension_lite;
  4889. static const int kDefaultStringPieceExtensionLiteFieldNumber = 84;
  4890. extern ::google::protobuf::internal::ExtensionIdentifier< ::protobuf_unittest::TestAllExtensionsLite,
  4891. ::google::protobuf::internal::StringTypeTraits, 9, false >
  4892. default_string_piece_extension_lite;
  4893. static const int kDefaultCordExtensionLiteFieldNumber = 85;
  4894. extern ::google::protobuf::internal::ExtensionIdentifier< ::protobuf_unittest::TestAllExtensionsLite,
  4895. ::google::protobuf::internal::StringTypeTraits, 9, false >
  4896. default_cord_extension_lite;
  4897. static const int kOneofUint32ExtensionLiteFieldNumber = 111;
  4898. extern ::google::protobuf::internal::ExtensionIdentifier< ::protobuf_unittest::TestAllExtensionsLite,
  4899. ::google::protobuf::internal::PrimitiveTypeTraits< ::google::protobuf::uint32 >, 13, false >
  4900. oneof_uint32_extension_lite;
  4901. static const int kOneofNestedMessageExtensionLiteFieldNumber = 112;
  4902. extern ::google::protobuf::internal::ExtensionIdentifier< ::protobuf_unittest::TestAllExtensionsLite,
  4903. ::google::protobuf::internal::MessageTypeTraits< ::protobuf_unittest::TestAllTypesLite_NestedMessage >, 11, false >
  4904. oneof_nested_message_extension_lite;
  4905. static const int kOneofStringExtensionLiteFieldNumber = 113;
  4906. extern ::google::protobuf::internal::ExtensionIdentifier< ::protobuf_unittest::TestAllExtensionsLite,
  4907. ::google::protobuf::internal::StringTypeTraits, 9, false >
  4908. oneof_string_extension_lite;
  4909. static const int kOneofBytesExtensionLiteFieldNumber = 114;
  4910. extern ::google::protobuf::internal::ExtensionIdentifier< ::protobuf_unittest::TestAllExtensionsLite,
  4911. ::google::protobuf::internal::StringTypeTraits, 12, false >
  4912. oneof_bytes_extension_lite;
  4913. static const int kPackedInt32ExtensionLiteFieldNumber = 90;
  4914. extern ::google::protobuf::internal::ExtensionIdentifier< ::protobuf_unittest::TestPackedExtensionsLite,
  4915. ::google::protobuf::internal::RepeatedPrimitiveTypeTraits< ::google::protobuf::int32 >, 5, true >
  4916. packed_int32_extension_lite;
  4917. static const int kPackedInt64ExtensionLiteFieldNumber = 91;
  4918. extern ::google::protobuf::internal::ExtensionIdentifier< ::protobuf_unittest::TestPackedExtensionsLite,
  4919. ::google::protobuf::internal::RepeatedPrimitiveTypeTraits< ::google::protobuf::int64 >, 3, true >
  4920. packed_int64_extension_lite;
  4921. static const int kPackedUint32ExtensionLiteFieldNumber = 92;
  4922. extern ::google::protobuf::internal::ExtensionIdentifier< ::protobuf_unittest::TestPackedExtensionsLite,
  4923. ::google::protobuf::internal::RepeatedPrimitiveTypeTraits< ::google::protobuf::uint32 >, 13, true >
  4924. packed_uint32_extension_lite;
  4925. static const int kPackedUint64ExtensionLiteFieldNumber = 93;
  4926. extern ::google::protobuf::internal::ExtensionIdentifier< ::protobuf_unittest::TestPackedExtensionsLite,
  4927. ::google::protobuf::internal::RepeatedPrimitiveTypeTraits< ::google::protobuf::uint64 >, 4, true >
  4928. packed_uint64_extension_lite;
  4929. static const int kPackedSint32ExtensionLiteFieldNumber = 94;
  4930. extern ::google::protobuf::internal::ExtensionIdentifier< ::protobuf_unittest::TestPackedExtensionsLite,
  4931. ::google::protobuf::internal::RepeatedPrimitiveTypeTraits< ::google::protobuf::int32 >, 17, true >
  4932. packed_sint32_extension_lite;
  4933. static const int kPackedSint64ExtensionLiteFieldNumber = 95;
  4934. extern ::google::protobuf::internal::ExtensionIdentifier< ::protobuf_unittest::TestPackedExtensionsLite,
  4935. ::google::protobuf::internal::RepeatedPrimitiveTypeTraits< ::google::protobuf::int64 >, 18, true >
  4936. packed_sint64_extension_lite;
  4937. static const int kPackedFixed32ExtensionLiteFieldNumber = 96;
  4938. extern ::google::protobuf::internal::ExtensionIdentifier< ::protobuf_unittest::TestPackedExtensionsLite,
  4939. ::google::protobuf::internal::RepeatedPrimitiveTypeTraits< ::google::protobuf::uint32 >, 7, true >
  4940. packed_fixed32_extension_lite;
  4941. static const int kPackedFixed64ExtensionLiteFieldNumber = 97;
  4942. extern ::google::protobuf::internal::ExtensionIdentifier< ::protobuf_unittest::TestPackedExtensionsLite,
  4943. ::google::protobuf::internal::RepeatedPrimitiveTypeTraits< ::google::protobuf::uint64 >, 6, true >
  4944. packed_fixed64_extension_lite;
  4945. static const int kPackedSfixed32ExtensionLiteFieldNumber = 98;
  4946. extern ::google::protobuf::internal::ExtensionIdentifier< ::protobuf_unittest::TestPackedExtensionsLite,
  4947. ::google::protobuf::internal::RepeatedPrimitiveTypeTraits< ::google::protobuf::int32 >, 15, true >
  4948. packed_sfixed32_extension_lite;
  4949. static const int kPackedSfixed64ExtensionLiteFieldNumber = 99;
  4950. extern ::google::protobuf::internal::ExtensionIdentifier< ::protobuf_unittest::TestPackedExtensionsLite,
  4951. ::google::protobuf::internal::RepeatedPrimitiveTypeTraits< ::google::protobuf::int64 >, 16, true >
  4952. packed_sfixed64_extension_lite;
  4953. static const int kPackedFloatExtensionLiteFieldNumber = 100;
  4954. extern ::google::protobuf::internal::ExtensionIdentifier< ::protobuf_unittest::TestPackedExtensionsLite,
  4955. ::google::protobuf::internal::RepeatedPrimitiveTypeTraits< float >, 2, true >
  4956. packed_float_extension_lite;
  4957. static const int kPackedDoubleExtensionLiteFieldNumber = 101;
  4958. extern ::google::protobuf::internal::ExtensionIdentifier< ::protobuf_unittest::TestPackedExtensionsLite,
  4959. ::google::protobuf::internal::RepeatedPrimitiveTypeTraits< double >, 1, true >
  4960. packed_double_extension_lite;
  4961. static const int kPackedBoolExtensionLiteFieldNumber = 102;
  4962. extern ::google::protobuf::internal::ExtensionIdentifier< ::protobuf_unittest::TestPackedExtensionsLite,
  4963. ::google::protobuf::internal::RepeatedPrimitiveTypeTraits< bool >, 8, true >
  4964. packed_bool_extension_lite;
  4965. static const int kPackedEnumExtensionLiteFieldNumber = 103;
  4966. extern ::google::protobuf::internal::ExtensionIdentifier< ::protobuf_unittest::TestPackedExtensionsLite,
  4967. ::google::protobuf::internal::RepeatedEnumTypeTraits< ::protobuf_unittest::ForeignEnumLite, ::protobuf_unittest::ForeignEnumLite_IsValid>, 14, true >
  4968. packed_enum_extension_lite;
  4969. static const int kTestAllTypesLiteFieldNumber = 536860000;
  4970. extern ::google::protobuf::internal::ExtensionIdentifier< ::protobuf_unittest::TestHugeFieldNumbersLite,
  4971. ::google::protobuf::internal::MessageTypeTraits< ::protobuf_unittest::TestAllTypesLite >, 11, false >
  4972. test_all_types_lite;
  4973. // ===================================================================
  4974. #ifdef __GNUC__
  4975. #pragma GCC diagnostic push
  4976. #pragma GCC diagnostic ignored "-Wstrict-aliasing"
  4977. #endif // __GNUC__
  4978. // TestAllTypesLite_NestedMessage
  4979. // optional int32 bb = 1;
  4980. inline bool TestAllTypesLite_NestedMessage::has_bb() const {
  4981. return (_has_bits_[0] & 0x00000002u) != 0;
  4982. }
  4983. inline void TestAllTypesLite_NestedMessage::set_has_bb() {
  4984. _has_bits_[0] |= 0x00000002u;
  4985. }
  4986. inline void TestAllTypesLite_NestedMessage::clear_has_bb() {
  4987. _has_bits_[0] &= ~0x00000002u;
  4988. }
  4989. inline void TestAllTypesLite_NestedMessage::clear_bb() {
  4990. bb_ = 0;
  4991. clear_has_bb();
  4992. }
  4993. inline ::google::protobuf::int32 TestAllTypesLite_NestedMessage::bb() const {
  4994. // @@protoc_insertion_point(field_get:protobuf_unittest.TestAllTypesLite.NestedMessage.bb)
  4995. return bb_;
  4996. }
  4997. inline void TestAllTypesLite_NestedMessage::set_bb(::google::protobuf::int32 value) {
  4998. set_has_bb();
  4999. bb_ = value;
  5000. // @@protoc_insertion_point(field_set:protobuf_unittest.TestAllTypesLite.NestedMessage.bb)
  5001. }
  5002. // optional int64 cc = 2;
  5003. inline bool TestAllTypesLite_NestedMessage::has_cc() const {
  5004. return (_has_bits_[0] & 0x00000001u) != 0;
  5005. }
  5006. inline void TestAllTypesLite_NestedMessage::set_has_cc() {
  5007. _has_bits_[0] |= 0x00000001u;
  5008. }
  5009. inline void TestAllTypesLite_NestedMessage::clear_has_cc() {
  5010. _has_bits_[0] &= ~0x00000001u;
  5011. }
  5012. inline void TestAllTypesLite_NestedMessage::clear_cc() {
  5013. cc_ = GOOGLE_LONGLONG(0);
  5014. clear_has_cc();
  5015. }
  5016. inline ::google::protobuf::int64 TestAllTypesLite_NestedMessage::cc() const {
  5017. // @@protoc_insertion_point(field_get:protobuf_unittest.TestAllTypesLite.NestedMessage.cc)
  5018. return cc_;
  5019. }
  5020. inline void TestAllTypesLite_NestedMessage::set_cc(::google::protobuf::int64 value) {
  5021. set_has_cc();
  5022. cc_ = value;
  5023. // @@protoc_insertion_point(field_set:protobuf_unittest.TestAllTypesLite.NestedMessage.cc)
  5024. }
  5025. // -------------------------------------------------------------------
  5026. // TestAllTypesLite_OptionalGroup
  5027. // optional int32 a = 17;
  5028. inline bool TestAllTypesLite_OptionalGroup::has_a() const {
  5029. return (_has_bits_[0] & 0x00000001u) != 0;
  5030. }
  5031. inline void TestAllTypesLite_OptionalGroup::set_has_a() {
  5032. _has_bits_[0] |= 0x00000001u;
  5033. }
  5034. inline void TestAllTypesLite_OptionalGroup::clear_has_a() {
  5035. _has_bits_[0] &= ~0x00000001u;
  5036. }
  5037. inline void TestAllTypesLite_OptionalGroup::clear_a() {
  5038. a_ = 0;
  5039. clear_has_a();
  5040. }
  5041. inline ::google::protobuf::int32 TestAllTypesLite_OptionalGroup::a() const {
  5042. // @@protoc_insertion_point(field_get:protobuf_unittest.TestAllTypesLite.OptionalGroup.a)
  5043. return a_;
  5044. }
  5045. inline void TestAllTypesLite_OptionalGroup::set_a(::google::protobuf::int32 value) {
  5046. set_has_a();
  5047. a_ = value;
  5048. // @@protoc_insertion_point(field_set:protobuf_unittest.TestAllTypesLite.OptionalGroup.a)
  5049. }
  5050. // -------------------------------------------------------------------
  5051. // TestAllTypesLite_RepeatedGroup
  5052. // optional int32 a = 47;
  5053. inline bool TestAllTypesLite_RepeatedGroup::has_a() const {
  5054. return (_has_bits_[0] & 0x00000001u) != 0;
  5055. }
  5056. inline void TestAllTypesLite_RepeatedGroup::set_has_a() {
  5057. _has_bits_[0] |= 0x00000001u;
  5058. }
  5059. inline void TestAllTypesLite_RepeatedGroup::clear_has_a() {
  5060. _has_bits_[0] &= ~0x00000001u;
  5061. }
  5062. inline void TestAllTypesLite_RepeatedGroup::clear_a() {
  5063. a_ = 0;
  5064. clear_has_a();
  5065. }
  5066. inline ::google::protobuf::int32 TestAllTypesLite_RepeatedGroup::a() const {
  5067. // @@protoc_insertion_point(field_get:protobuf_unittest.TestAllTypesLite.RepeatedGroup.a)
  5068. return a_;
  5069. }
  5070. inline void TestAllTypesLite_RepeatedGroup::set_a(::google::protobuf::int32 value) {
  5071. set_has_a();
  5072. a_ = value;
  5073. // @@protoc_insertion_point(field_set:protobuf_unittest.TestAllTypesLite.RepeatedGroup.a)
  5074. }
  5075. // -------------------------------------------------------------------
  5076. // TestAllTypesLite
  5077. // optional int32 optional_int32 = 1;
  5078. inline bool TestAllTypesLite::has_optional_int32() const {
  5079. return (_has_bits_[0] & 0x00008000u) != 0;
  5080. }
  5081. inline void TestAllTypesLite::set_has_optional_int32() {
  5082. _has_bits_[0] |= 0x00008000u;
  5083. }
  5084. inline void TestAllTypesLite::clear_has_optional_int32() {
  5085. _has_bits_[0] &= ~0x00008000u;
  5086. }
  5087. inline void TestAllTypesLite::clear_optional_int32() {
  5088. optional_int32_ = 0;
  5089. clear_has_optional_int32();
  5090. }
  5091. inline ::google::protobuf::int32 TestAllTypesLite::optional_int32() const {
  5092. // @@protoc_insertion_point(field_get:protobuf_unittest.TestAllTypesLite.optional_int32)
  5093. return optional_int32_;
  5094. }
  5095. inline void TestAllTypesLite::set_optional_int32(::google::protobuf::int32 value) {
  5096. set_has_optional_int32();
  5097. optional_int32_ = value;
  5098. // @@protoc_insertion_point(field_set:protobuf_unittest.TestAllTypesLite.optional_int32)
  5099. }
  5100. // optional int64 optional_int64 = 2;
  5101. inline bool TestAllTypesLite::has_optional_int64() const {
  5102. return (_has_bits_[0] & 0x00004000u) != 0;
  5103. }
  5104. inline void TestAllTypesLite::set_has_optional_int64() {
  5105. _has_bits_[0] |= 0x00004000u;
  5106. }
  5107. inline void TestAllTypesLite::clear_has_optional_int64() {
  5108. _has_bits_[0] &= ~0x00004000u;
  5109. }
  5110. inline void TestAllTypesLite::clear_optional_int64() {
  5111. optional_int64_ = GOOGLE_LONGLONG(0);
  5112. clear_has_optional_int64();
  5113. }
  5114. inline ::google::protobuf::int64 TestAllTypesLite::optional_int64() const {
  5115. // @@protoc_insertion_point(field_get:protobuf_unittest.TestAllTypesLite.optional_int64)
  5116. return optional_int64_;
  5117. }
  5118. inline void TestAllTypesLite::set_optional_int64(::google::protobuf::int64 value) {
  5119. set_has_optional_int64();
  5120. optional_int64_ = value;
  5121. // @@protoc_insertion_point(field_set:protobuf_unittest.TestAllTypesLite.optional_int64)
  5122. }
  5123. // optional uint32 optional_uint32 = 3;
  5124. inline bool TestAllTypesLite::has_optional_uint32() const {
  5125. return (_has_bits_[0] & 0x00010000u) != 0;
  5126. }
  5127. inline void TestAllTypesLite::set_has_optional_uint32() {
  5128. _has_bits_[0] |= 0x00010000u;
  5129. }
  5130. inline void TestAllTypesLite::clear_has_optional_uint32() {
  5131. _has_bits_[0] &= ~0x00010000u;
  5132. }
  5133. inline void TestAllTypesLite::clear_optional_uint32() {
  5134. optional_uint32_ = 0u;
  5135. clear_has_optional_uint32();
  5136. }
  5137. inline ::google::protobuf::uint32 TestAllTypesLite::optional_uint32() const {
  5138. // @@protoc_insertion_point(field_get:protobuf_unittest.TestAllTypesLite.optional_uint32)
  5139. return optional_uint32_;
  5140. }
  5141. inline void TestAllTypesLite::set_optional_uint32(::google::protobuf::uint32 value) {
  5142. set_has_optional_uint32();
  5143. optional_uint32_ = value;
  5144. // @@protoc_insertion_point(field_set:protobuf_unittest.TestAllTypesLite.optional_uint32)
  5145. }
  5146. // optional uint64 optional_uint64 = 4;
  5147. inline bool TestAllTypesLite::has_optional_uint64() const {
  5148. return (_has_bits_[0] & 0x00020000u) != 0;
  5149. }
  5150. inline void TestAllTypesLite::set_has_optional_uint64() {
  5151. _has_bits_[0] |= 0x00020000u;
  5152. }
  5153. inline void TestAllTypesLite::clear_has_optional_uint64() {
  5154. _has_bits_[0] &= ~0x00020000u;
  5155. }
  5156. inline void TestAllTypesLite::clear_optional_uint64() {
  5157. optional_uint64_ = GOOGLE_ULONGLONG(0);
  5158. clear_has_optional_uint64();
  5159. }
  5160. inline ::google::protobuf::uint64 TestAllTypesLite::optional_uint64() const {
  5161. // @@protoc_insertion_point(field_get:protobuf_unittest.TestAllTypesLite.optional_uint64)
  5162. return optional_uint64_;
  5163. }
  5164. inline void TestAllTypesLite::set_optional_uint64(::google::protobuf::uint64 value) {
  5165. set_has_optional_uint64();
  5166. optional_uint64_ = value;
  5167. // @@protoc_insertion_point(field_set:protobuf_unittest.TestAllTypesLite.optional_uint64)
  5168. }
  5169. // optional sint32 optional_sint32 = 5;
  5170. inline bool TestAllTypesLite::has_optional_sint32() const {
  5171. return (_has_bits_[0] & 0x00080000u) != 0;
  5172. }
  5173. inline void TestAllTypesLite::set_has_optional_sint32() {
  5174. _has_bits_[0] |= 0x00080000u;
  5175. }
  5176. inline void TestAllTypesLite::clear_has_optional_sint32() {
  5177. _has_bits_[0] &= ~0x00080000u;
  5178. }
  5179. inline void TestAllTypesLite::clear_optional_sint32() {
  5180. optional_sint32_ = 0;
  5181. clear_has_optional_sint32();
  5182. }
  5183. inline ::google::protobuf::int32 TestAllTypesLite::optional_sint32() const {
  5184. // @@protoc_insertion_point(field_get:protobuf_unittest.TestAllTypesLite.optional_sint32)
  5185. return optional_sint32_;
  5186. }
  5187. inline void TestAllTypesLite::set_optional_sint32(::google::protobuf::int32 value) {
  5188. set_has_optional_sint32();
  5189. optional_sint32_ = value;
  5190. // @@protoc_insertion_point(field_set:protobuf_unittest.TestAllTypesLite.optional_sint32)
  5191. }
  5192. // optional sint64 optional_sint64 = 6;
  5193. inline bool TestAllTypesLite::has_optional_sint64() const {
  5194. return (_has_bits_[0] & 0x00040000u) != 0;
  5195. }
  5196. inline void TestAllTypesLite::set_has_optional_sint64() {
  5197. _has_bits_[0] |= 0x00040000u;
  5198. }
  5199. inline void TestAllTypesLite::clear_has_optional_sint64() {
  5200. _has_bits_[0] &= ~0x00040000u;
  5201. }
  5202. inline void TestAllTypesLite::clear_optional_sint64() {
  5203. optional_sint64_ = GOOGLE_LONGLONG(0);
  5204. clear_has_optional_sint64();
  5205. }
  5206. inline ::google::protobuf::int64 TestAllTypesLite::optional_sint64() const {
  5207. // @@protoc_insertion_point(field_get:protobuf_unittest.TestAllTypesLite.optional_sint64)
  5208. return optional_sint64_;
  5209. }
  5210. inline void TestAllTypesLite::set_optional_sint64(::google::protobuf::int64 value) {
  5211. set_has_optional_sint64();
  5212. optional_sint64_ = value;
  5213. // @@protoc_insertion_point(field_set:protobuf_unittest.TestAllTypesLite.optional_sint64)
  5214. }
  5215. // optional fixed32 optional_fixed32 = 7;
  5216. inline bool TestAllTypesLite::has_optional_fixed32() const {
  5217. return (_has_bits_[0] & 0x00100000u) != 0;
  5218. }
  5219. inline void TestAllTypesLite::set_has_optional_fixed32() {
  5220. _has_bits_[0] |= 0x00100000u;
  5221. }
  5222. inline void TestAllTypesLite::clear_has_optional_fixed32() {
  5223. _has_bits_[0] &= ~0x00100000u;
  5224. }
  5225. inline void TestAllTypesLite::clear_optional_fixed32() {
  5226. optional_fixed32_ = 0u;
  5227. clear_has_optional_fixed32();
  5228. }
  5229. inline ::google::protobuf::uint32 TestAllTypesLite::optional_fixed32() const {
  5230. // @@protoc_insertion_point(field_get:protobuf_unittest.TestAllTypesLite.optional_fixed32)
  5231. return optional_fixed32_;
  5232. }
  5233. inline void TestAllTypesLite::set_optional_fixed32(::google::protobuf::uint32 value) {
  5234. set_has_optional_fixed32();
  5235. optional_fixed32_ = value;
  5236. // @@protoc_insertion_point(field_set:protobuf_unittest.TestAllTypesLite.optional_fixed32)
  5237. }
  5238. // optional fixed64 optional_fixed64 = 8;
  5239. inline bool TestAllTypesLite::has_optional_fixed64() const {
  5240. return (_has_bits_[0] & 0x00200000u) != 0;
  5241. }
  5242. inline void TestAllTypesLite::set_has_optional_fixed64() {
  5243. _has_bits_[0] |= 0x00200000u;
  5244. }
  5245. inline void TestAllTypesLite::clear_has_optional_fixed64() {
  5246. _has_bits_[0] &= ~0x00200000u;
  5247. }
  5248. inline void TestAllTypesLite::clear_optional_fixed64() {
  5249. optional_fixed64_ = GOOGLE_ULONGLONG(0);
  5250. clear_has_optional_fixed64();
  5251. }
  5252. inline ::google::protobuf::uint64 TestAllTypesLite::optional_fixed64() const {
  5253. // @@protoc_insertion_point(field_get:protobuf_unittest.TestAllTypesLite.optional_fixed64)
  5254. return optional_fixed64_;
  5255. }
  5256. inline void TestAllTypesLite::set_optional_fixed64(::google::protobuf::uint64 value) {
  5257. set_has_optional_fixed64();
  5258. optional_fixed64_ = value;
  5259. // @@protoc_insertion_point(field_set:protobuf_unittest.TestAllTypesLite.optional_fixed64)
  5260. }
  5261. // optional sfixed32 optional_sfixed32 = 9;
  5262. inline bool TestAllTypesLite::has_optional_sfixed32() const {
  5263. return (_has_bits_[0] & 0x00800000u) != 0;
  5264. }
  5265. inline void TestAllTypesLite::set_has_optional_sfixed32() {
  5266. _has_bits_[0] |= 0x00800000u;
  5267. }
  5268. inline void TestAllTypesLite::clear_has_optional_sfixed32() {
  5269. _has_bits_[0] &= ~0x00800000u;
  5270. }
  5271. inline void TestAllTypesLite::clear_optional_sfixed32() {
  5272. optional_sfixed32_ = 0;
  5273. clear_has_optional_sfixed32();
  5274. }
  5275. inline ::google::protobuf::int32 TestAllTypesLite::optional_sfixed32() const {
  5276. // @@protoc_insertion_point(field_get:protobuf_unittest.TestAllTypesLite.optional_sfixed32)
  5277. return optional_sfixed32_;
  5278. }
  5279. inline void TestAllTypesLite::set_optional_sfixed32(::google::protobuf::int32 value) {
  5280. set_has_optional_sfixed32();
  5281. optional_sfixed32_ = value;
  5282. // @@protoc_insertion_point(field_set:protobuf_unittest.TestAllTypesLite.optional_sfixed32)
  5283. }
  5284. // optional sfixed64 optional_sfixed64 = 10;
  5285. inline bool TestAllTypesLite::has_optional_sfixed64() const {
  5286. return (_has_bits_[0] & 0x00400000u) != 0;
  5287. }
  5288. inline void TestAllTypesLite::set_has_optional_sfixed64() {
  5289. _has_bits_[0] |= 0x00400000u;
  5290. }
  5291. inline void TestAllTypesLite::clear_has_optional_sfixed64() {
  5292. _has_bits_[0] &= ~0x00400000u;
  5293. }
  5294. inline void TestAllTypesLite::clear_optional_sfixed64() {
  5295. optional_sfixed64_ = GOOGLE_LONGLONG(0);
  5296. clear_has_optional_sfixed64();
  5297. }
  5298. inline ::google::protobuf::int64 TestAllTypesLite::optional_sfixed64() const {
  5299. // @@protoc_insertion_point(field_get:protobuf_unittest.TestAllTypesLite.optional_sfixed64)
  5300. return optional_sfixed64_;
  5301. }
  5302. inline void TestAllTypesLite::set_optional_sfixed64(::google::protobuf::int64 value) {
  5303. set_has_optional_sfixed64();
  5304. optional_sfixed64_ = value;
  5305. // @@protoc_insertion_point(field_set:protobuf_unittest.TestAllTypesLite.optional_sfixed64)
  5306. }
  5307. // optional float optional_float = 11;
  5308. inline bool TestAllTypesLite::has_optional_float() const {
  5309. return (_has_bits_[0] & 0x01000000u) != 0;
  5310. }
  5311. inline void TestAllTypesLite::set_has_optional_float() {
  5312. _has_bits_[0] |= 0x01000000u;
  5313. }
  5314. inline void TestAllTypesLite::clear_has_optional_float() {
  5315. _has_bits_[0] &= ~0x01000000u;
  5316. }
  5317. inline void TestAllTypesLite::clear_optional_float() {
  5318. optional_float_ = 0;
  5319. clear_has_optional_float();
  5320. }
  5321. inline float TestAllTypesLite::optional_float() const {
  5322. // @@protoc_insertion_point(field_get:protobuf_unittest.TestAllTypesLite.optional_float)
  5323. return optional_float_;
  5324. }
  5325. inline void TestAllTypesLite::set_optional_float(float value) {
  5326. set_has_optional_float();
  5327. optional_float_ = value;
  5328. // @@protoc_insertion_point(field_set:protobuf_unittest.TestAllTypesLite.optional_float)
  5329. }
  5330. // optional double optional_double = 12;
  5331. inline bool TestAllTypesLite::has_optional_double() const {
  5332. return (_has_bits_[0] & 0x02000000u) != 0;
  5333. }
  5334. inline void TestAllTypesLite::set_has_optional_double() {
  5335. _has_bits_[0] |= 0x02000000u;
  5336. }
  5337. inline void TestAllTypesLite::clear_has_optional_double() {
  5338. _has_bits_[0] &= ~0x02000000u;
  5339. }
  5340. inline void TestAllTypesLite::clear_optional_double() {
  5341. optional_double_ = 0;
  5342. clear_has_optional_double();
  5343. }
  5344. inline double TestAllTypesLite::optional_double() const {
  5345. // @@protoc_insertion_point(field_get:protobuf_unittest.TestAllTypesLite.optional_double)
  5346. return optional_double_;
  5347. }
  5348. inline void TestAllTypesLite::set_optional_double(double value) {
  5349. set_has_optional_double();
  5350. optional_double_ = value;
  5351. // @@protoc_insertion_point(field_set:protobuf_unittest.TestAllTypesLite.optional_double)
  5352. }
  5353. // optional bool optional_bool = 13;
  5354. inline bool TestAllTypesLite::has_optional_bool() const {
  5355. return (_has_bits_[0] & 0x04000000u) != 0;
  5356. }
  5357. inline void TestAllTypesLite::set_has_optional_bool() {
  5358. _has_bits_[0] |= 0x04000000u;
  5359. }
  5360. inline void TestAllTypesLite::clear_has_optional_bool() {
  5361. _has_bits_[0] &= ~0x04000000u;
  5362. }
  5363. inline void TestAllTypesLite::clear_optional_bool() {
  5364. optional_bool_ = false;
  5365. clear_has_optional_bool();
  5366. }
  5367. inline bool TestAllTypesLite::optional_bool() const {
  5368. // @@protoc_insertion_point(field_get:protobuf_unittest.TestAllTypesLite.optional_bool)
  5369. return optional_bool_;
  5370. }
  5371. inline void TestAllTypesLite::set_optional_bool(bool value) {
  5372. set_has_optional_bool();
  5373. optional_bool_ = value;
  5374. // @@protoc_insertion_point(field_set:protobuf_unittest.TestAllTypesLite.optional_bool)
  5375. }
  5376. // optional string optional_string = 14;
  5377. inline bool TestAllTypesLite::has_optional_string() const {
  5378. return (_has_bits_[0] & 0x00000001u) != 0;
  5379. }
  5380. inline void TestAllTypesLite::set_has_optional_string() {
  5381. _has_bits_[0] |= 0x00000001u;
  5382. }
  5383. inline void TestAllTypesLite::clear_has_optional_string() {
  5384. _has_bits_[0] &= ~0x00000001u;
  5385. }
  5386. inline void TestAllTypesLite::clear_optional_string() {
  5387. optional_string_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  5388. clear_has_optional_string();
  5389. }
  5390. inline const ::std::string& TestAllTypesLite::optional_string() const {
  5391. // @@protoc_insertion_point(field_get:protobuf_unittest.TestAllTypesLite.optional_string)
  5392. return optional_string_.GetNoArena();
  5393. }
  5394. inline void TestAllTypesLite::set_optional_string(const ::std::string& value) {
  5395. set_has_optional_string();
  5396. optional_string_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
  5397. // @@protoc_insertion_point(field_set:protobuf_unittest.TestAllTypesLite.optional_string)
  5398. }
  5399. #if LANG_CXX11
  5400. inline void TestAllTypesLite::set_optional_string(::std::string&& value) {
  5401. set_has_optional_string();
  5402. optional_string_.SetNoArena(
  5403. &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
  5404. // @@protoc_insertion_point(field_set_rvalue:protobuf_unittest.TestAllTypesLite.optional_string)
  5405. }
  5406. #endif
  5407. inline void TestAllTypesLite::set_optional_string(const char* value) {
  5408. GOOGLE_DCHECK(value != NULL);
  5409. set_has_optional_string();
  5410. optional_string_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
  5411. // @@protoc_insertion_point(field_set_char:protobuf_unittest.TestAllTypesLite.optional_string)
  5412. }
  5413. inline void TestAllTypesLite::set_optional_string(const char* value, size_t size) {
  5414. set_has_optional_string();
  5415. optional_string_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  5416. ::std::string(reinterpret_cast<const char*>(value), size));
  5417. // @@protoc_insertion_point(field_set_pointer:protobuf_unittest.TestAllTypesLite.optional_string)
  5418. }
  5419. inline ::std::string* TestAllTypesLite::mutable_optional_string() {
  5420. set_has_optional_string();
  5421. // @@protoc_insertion_point(field_mutable:protobuf_unittest.TestAllTypesLite.optional_string)
  5422. return optional_string_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  5423. }
  5424. inline ::std::string* TestAllTypesLite::release_optional_string() {
  5425. // @@protoc_insertion_point(field_release:protobuf_unittest.TestAllTypesLite.optional_string)
  5426. if (!has_optional_string()) {
  5427. return NULL;
  5428. }
  5429. clear_has_optional_string();
  5430. return optional_string_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  5431. }
  5432. inline void TestAllTypesLite::set_allocated_optional_string(::std::string* optional_string) {
  5433. if (optional_string != NULL) {
  5434. set_has_optional_string();
  5435. } else {
  5436. clear_has_optional_string();
  5437. }
  5438. optional_string_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), optional_string);
  5439. // @@protoc_insertion_point(field_set_allocated:protobuf_unittest.TestAllTypesLite.optional_string)
  5440. }
  5441. // optional bytes optional_bytes = 15;
  5442. inline bool TestAllTypesLite::has_optional_bytes() const {
  5443. return (_has_bits_[0] & 0x00000002u) != 0;
  5444. }
  5445. inline void TestAllTypesLite::set_has_optional_bytes() {
  5446. _has_bits_[0] |= 0x00000002u;
  5447. }
  5448. inline void TestAllTypesLite::clear_has_optional_bytes() {
  5449. _has_bits_[0] &= ~0x00000002u;
  5450. }
  5451. inline void TestAllTypesLite::clear_optional_bytes() {
  5452. optional_bytes_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  5453. clear_has_optional_bytes();
  5454. }
  5455. inline const ::std::string& TestAllTypesLite::optional_bytes() const {
  5456. // @@protoc_insertion_point(field_get:protobuf_unittest.TestAllTypesLite.optional_bytes)
  5457. return optional_bytes_.GetNoArena();
  5458. }
  5459. inline void TestAllTypesLite::set_optional_bytes(const ::std::string& value) {
  5460. set_has_optional_bytes();
  5461. optional_bytes_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
  5462. // @@protoc_insertion_point(field_set:protobuf_unittest.TestAllTypesLite.optional_bytes)
  5463. }
  5464. #if LANG_CXX11
  5465. inline void TestAllTypesLite::set_optional_bytes(::std::string&& value) {
  5466. set_has_optional_bytes();
  5467. optional_bytes_.SetNoArena(
  5468. &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
  5469. // @@protoc_insertion_point(field_set_rvalue:protobuf_unittest.TestAllTypesLite.optional_bytes)
  5470. }
  5471. #endif
  5472. inline void TestAllTypesLite::set_optional_bytes(const char* value) {
  5473. GOOGLE_DCHECK(value != NULL);
  5474. set_has_optional_bytes();
  5475. optional_bytes_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
  5476. // @@protoc_insertion_point(field_set_char:protobuf_unittest.TestAllTypesLite.optional_bytes)
  5477. }
  5478. inline void TestAllTypesLite::set_optional_bytes(const void* value, size_t size) {
  5479. set_has_optional_bytes();
  5480. optional_bytes_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  5481. ::std::string(reinterpret_cast<const char*>(value), size));
  5482. // @@protoc_insertion_point(field_set_pointer:protobuf_unittest.TestAllTypesLite.optional_bytes)
  5483. }
  5484. inline ::std::string* TestAllTypesLite::mutable_optional_bytes() {
  5485. set_has_optional_bytes();
  5486. // @@protoc_insertion_point(field_mutable:protobuf_unittest.TestAllTypesLite.optional_bytes)
  5487. return optional_bytes_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  5488. }
  5489. inline ::std::string* TestAllTypesLite::release_optional_bytes() {
  5490. // @@protoc_insertion_point(field_release:protobuf_unittest.TestAllTypesLite.optional_bytes)
  5491. if (!has_optional_bytes()) {
  5492. return NULL;
  5493. }
  5494. clear_has_optional_bytes();
  5495. return optional_bytes_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  5496. }
  5497. inline void TestAllTypesLite::set_allocated_optional_bytes(::std::string* optional_bytes) {
  5498. if (optional_bytes != NULL) {
  5499. set_has_optional_bytes();
  5500. } else {
  5501. clear_has_optional_bytes();
  5502. }
  5503. optional_bytes_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), optional_bytes);
  5504. // @@protoc_insertion_point(field_set_allocated:protobuf_unittest.TestAllTypesLite.optional_bytes)
  5505. }
  5506. // optional group OptionalGroup = 16 { ... };
  5507. inline bool TestAllTypesLite::has_optionalgroup() const {
  5508. return (_has_bits_[0] & 0x00000100u) != 0;
  5509. }
  5510. inline void TestAllTypesLite::set_has_optionalgroup() {
  5511. _has_bits_[0] |= 0x00000100u;
  5512. }
  5513. inline void TestAllTypesLite::clear_has_optionalgroup() {
  5514. _has_bits_[0] &= ~0x00000100u;
  5515. }
  5516. inline void TestAllTypesLite::clear_optionalgroup() {
  5517. if (optionalgroup_ != NULL) optionalgroup_->Clear();
  5518. clear_has_optionalgroup();
  5519. }
  5520. inline const ::protobuf_unittest::TestAllTypesLite_OptionalGroup& TestAllTypesLite::_internal_optionalgroup() const {
  5521. return *optionalgroup_;
  5522. }
  5523. inline const ::protobuf_unittest::TestAllTypesLite_OptionalGroup& TestAllTypesLite::optionalgroup() const {
  5524. const ::protobuf_unittest::TestAllTypesLite_OptionalGroup* p = optionalgroup_;
  5525. // @@protoc_insertion_point(field_get:protobuf_unittest.TestAllTypesLite.optionalgroup)
  5526. return p != NULL ? *p : *reinterpret_cast<const ::protobuf_unittest::TestAllTypesLite_OptionalGroup*>(
  5527. &::protobuf_unittest::_TestAllTypesLite_OptionalGroup_default_instance_);
  5528. }
  5529. inline ::protobuf_unittest::TestAllTypesLite_OptionalGroup* TestAllTypesLite::release_optionalgroup() {
  5530. // @@protoc_insertion_point(field_release:protobuf_unittest.TestAllTypesLite.optionalgroup)
  5531. clear_has_optionalgroup();
  5532. ::protobuf_unittest::TestAllTypesLite_OptionalGroup* temp = optionalgroup_;
  5533. optionalgroup_ = NULL;
  5534. return temp;
  5535. }
  5536. inline ::protobuf_unittest::TestAllTypesLite_OptionalGroup* TestAllTypesLite::mutable_optionalgroup() {
  5537. set_has_optionalgroup();
  5538. if (optionalgroup_ == NULL) {
  5539. auto* p = CreateMaybeMessage<::protobuf_unittest::TestAllTypesLite_OptionalGroup>(GetArenaNoVirtual());
  5540. optionalgroup_ = p;
  5541. }
  5542. // @@protoc_insertion_point(field_mutable:protobuf_unittest.TestAllTypesLite.optionalgroup)
  5543. return optionalgroup_;
  5544. }
  5545. inline void TestAllTypesLite::set_allocated_optionalgroup(::protobuf_unittest::TestAllTypesLite_OptionalGroup* optionalgroup) {
  5546. ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
  5547. if (message_arena == NULL) {
  5548. delete optionalgroup_;
  5549. }
  5550. if (optionalgroup) {
  5551. ::google::protobuf::Arena* submessage_arena = NULL;
  5552. if (message_arena != submessage_arena) {
  5553. optionalgroup = ::google::protobuf::internal::GetOwnedMessage(
  5554. message_arena, optionalgroup, submessage_arena);
  5555. }
  5556. set_has_optionalgroup();
  5557. } else {
  5558. clear_has_optionalgroup();
  5559. }
  5560. optionalgroup_ = optionalgroup;
  5561. // @@protoc_insertion_point(field_set_allocated:protobuf_unittest.TestAllTypesLite.optionalgroup)
  5562. }
  5563. // optional .protobuf_unittest.TestAllTypesLite.NestedMessage optional_nested_message = 18;
  5564. inline bool TestAllTypesLite::has_optional_nested_message() const {
  5565. return (_has_bits_[0] & 0x00000200u) != 0;
  5566. }
  5567. inline void TestAllTypesLite::set_has_optional_nested_message() {
  5568. _has_bits_[0] |= 0x00000200u;
  5569. }
  5570. inline void TestAllTypesLite::clear_has_optional_nested_message() {
  5571. _has_bits_[0] &= ~0x00000200u;
  5572. }
  5573. inline void TestAllTypesLite::clear_optional_nested_message() {
  5574. if (optional_nested_message_ != NULL) optional_nested_message_->Clear();
  5575. clear_has_optional_nested_message();
  5576. }
  5577. inline const ::protobuf_unittest::TestAllTypesLite_NestedMessage& TestAllTypesLite::_internal_optional_nested_message() const {
  5578. return *optional_nested_message_;
  5579. }
  5580. inline const ::protobuf_unittest::TestAllTypesLite_NestedMessage& TestAllTypesLite::optional_nested_message() const {
  5581. const ::protobuf_unittest::TestAllTypesLite_NestedMessage* p = optional_nested_message_;
  5582. // @@protoc_insertion_point(field_get:protobuf_unittest.TestAllTypesLite.optional_nested_message)
  5583. return p != NULL ? *p : *reinterpret_cast<const ::protobuf_unittest::TestAllTypesLite_NestedMessage*>(
  5584. &::protobuf_unittest::_TestAllTypesLite_NestedMessage_default_instance_);
  5585. }
  5586. inline ::protobuf_unittest::TestAllTypesLite_NestedMessage* TestAllTypesLite::release_optional_nested_message() {
  5587. // @@protoc_insertion_point(field_release:protobuf_unittest.TestAllTypesLite.optional_nested_message)
  5588. clear_has_optional_nested_message();
  5589. ::protobuf_unittest::TestAllTypesLite_NestedMessage* temp = optional_nested_message_;
  5590. optional_nested_message_ = NULL;
  5591. return temp;
  5592. }
  5593. inline ::protobuf_unittest::TestAllTypesLite_NestedMessage* TestAllTypesLite::mutable_optional_nested_message() {
  5594. set_has_optional_nested_message();
  5595. if (optional_nested_message_ == NULL) {
  5596. auto* p = CreateMaybeMessage<::protobuf_unittest::TestAllTypesLite_NestedMessage>(GetArenaNoVirtual());
  5597. optional_nested_message_ = p;
  5598. }
  5599. // @@protoc_insertion_point(field_mutable:protobuf_unittest.TestAllTypesLite.optional_nested_message)
  5600. return optional_nested_message_;
  5601. }
  5602. inline void TestAllTypesLite::set_allocated_optional_nested_message(::protobuf_unittest::TestAllTypesLite_NestedMessage* optional_nested_message) {
  5603. ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
  5604. if (message_arena == NULL) {
  5605. delete optional_nested_message_;
  5606. }
  5607. if (optional_nested_message) {
  5608. ::google::protobuf::Arena* submessage_arena = NULL;
  5609. if (message_arena != submessage_arena) {
  5610. optional_nested_message = ::google::protobuf::internal::GetOwnedMessage(
  5611. message_arena, optional_nested_message, submessage_arena);
  5612. }
  5613. set_has_optional_nested_message();
  5614. } else {
  5615. clear_has_optional_nested_message();
  5616. }
  5617. optional_nested_message_ = optional_nested_message;
  5618. // @@protoc_insertion_point(field_set_allocated:protobuf_unittest.TestAllTypesLite.optional_nested_message)
  5619. }
  5620. // optional .protobuf_unittest.ForeignMessageLite optional_foreign_message = 19;
  5621. inline bool TestAllTypesLite::has_optional_foreign_message() const {
  5622. return (_has_bits_[0] & 0x00000400u) != 0;
  5623. }
  5624. inline void TestAllTypesLite::set_has_optional_foreign_message() {
  5625. _has_bits_[0] |= 0x00000400u;
  5626. }
  5627. inline void TestAllTypesLite::clear_has_optional_foreign_message() {
  5628. _has_bits_[0] &= ~0x00000400u;
  5629. }
  5630. inline void TestAllTypesLite::clear_optional_foreign_message() {
  5631. if (optional_foreign_message_ != NULL) optional_foreign_message_->Clear();
  5632. clear_has_optional_foreign_message();
  5633. }
  5634. inline const ::protobuf_unittest::ForeignMessageLite& TestAllTypesLite::_internal_optional_foreign_message() const {
  5635. return *optional_foreign_message_;
  5636. }
  5637. inline const ::protobuf_unittest::ForeignMessageLite& TestAllTypesLite::optional_foreign_message() const {
  5638. const ::protobuf_unittest::ForeignMessageLite* p = optional_foreign_message_;
  5639. // @@protoc_insertion_point(field_get:protobuf_unittest.TestAllTypesLite.optional_foreign_message)
  5640. return p != NULL ? *p : *reinterpret_cast<const ::protobuf_unittest::ForeignMessageLite*>(
  5641. &::protobuf_unittest::_ForeignMessageLite_default_instance_);
  5642. }
  5643. inline ::protobuf_unittest::ForeignMessageLite* TestAllTypesLite::release_optional_foreign_message() {
  5644. // @@protoc_insertion_point(field_release:protobuf_unittest.TestAllTypesLite.optional_foreign_message)
  5645. clear_has_optional_foreign_message();
  5646. ::protobuf_unittest::ForeignMessageLite* temp = optional_foreign_message_;
  5647. optional_foreign_message_ = NULL;
  5648. return temp;
  5649. }
  5650. inline ::protobuf_unittest::ForeignMessageLite* TestAllTypesLite::mutable_optional_foreign_message() {
  5651. set_has_optional_foreign_message();
  5652. if (optional_foreign_message_ == NULL) {
  5653. auto* p = CreateMaybeMessage<::protobuf_unittest::ForeignMessageLite>(GetArenaNoVirtual());
  5654. optional_foreign_message_ = p;
  5655. }
  5656. // @@protoc_insertion_point(field_mutable:protobuf_unittest.TestAllTypesLite.optional_foreign_message)
  5657. return optional_foreign_message_;
  5658. }
  5659. inline void TestAllTypesLite::set_allocated_optional_foreign_message(::protobuf_unittest::ForeignMessageLite* optional_foreign_message) {
  5660. ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
  5661. if (message_arena == NULL) {
  5662. delete optional_foreign_message_;
  5663. }
  5664. if (optional_foreign_message) {
  5665. ::google::protobuf::Arena* submessage_arena = NULL;
  5666. if (message_arena != submessage_arena) {
  5667. optional_foreign_message = ::google::protobuf::internal::GetOwnedMessage(
  5668. message_arena, optional_foreign_message, submessage_arena);
  5669. }
  5670. set_has_optional_foreign_message();
  5671. } else {
  5672. clear_has_optional_foreign_message();
  5673. }
  5674. optional_foreign_message_ = optional_foreign_message;
  5675. // @@protoc_insertion_point(field_set_allocated:protobuf_unittest.TestAllTypesLite.optional_foreign_message)
  5676. }
  5677. // optional .protobuf_unittest_import.ImportMessageLite optional_import_message = 20;
  5678. inline bool TestAllTypesLite::has_optional_import_message() const {
  5679. return (_has_bits_[0] & 0x00000800u) != 0;
  5680. }
  5681. inline void TestAllTypesLite::set_has_optional_import_message() {
  5682. _has_bits_[0] |= 0x00000800u;
  5683. }
  5684. inline void TestAllTypesLite::clear_has_optional_import_message() {
  5685. _has_bits_[0] &= ~0x00000800u;
  5686. }
  5687. inline const ::protobuf_unittest_import::ImportMessageLite& TestAllTypesLite::_internal_optional_import_message() const {
  5688. return *optional_import_message_;
  5689. }
  5690. inline const ::protobuf_unittest_import::ImportMessageLite& TestAllTypesLite::optional_import_message() const {
  5691. const ::protobuf_unittest_import::ImportMessageLite* p = optional_import_message_;
  5692. // @@protoc_insertion_point(field_get:protobuf_unittest.TestAllTypesLite.optional_import_message)
  5693. return p != NULL ? *p : *reinterpret_cast<const ::protobuf_unittest_import::ImportMessageLite*>(
  5694. &::protobuf_unittest_import::_ImportMessageLite_default_instance_);
  5695. }
  5696. inline ::protobuf_unittest_import::ImportMessageLite* TestAllTypesLite::release_optional_import_message() {
  5697. // @@protoc_insertion_point(field_release:protobuf_unittest.TestAllTypesLite.optional_import_message)
  5698. clear_has_optional_import_message();
  5699. ::protobuf_unittest_import::ImportMessageLite* temp = optional_import_message_;
  5700. optional_import_message_ = NULL;
  5701. return temp;
  5702. }
  5703. inline ::protobuf_unittest_import::ImportMessageLite* TestAllTypesLite::mutable_optional_import_message() {
  5704. set_has_optional_import_message();
  5705. if (optional_import_message_ == NULL) {
  5706. auto* p = CreateMaybeMessage<::protobuf_unittest_import::ImportMessageLite>(GetArenaNoVirtual());
  5707. optional_import_message_ = p;
  5708. }
  5709. // @@protoc_insertion_point(field_mutable:protobuf_unittest.TestAllTypesLite.optional_import_message)
  5710. return optional_import_message_;
  5711. }
  5712. inline void TestAllTypesLite::set_allocated_optional_import_message(::protobuf_unittest_import::ImportMessageLite* optional_import_message) {
  5713. ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
  5714. if (message_arena == NULL) {
  5715. delete reinterpret_cast< ::google::protobuf::MessageLite*>(optional_import_message_);
  5716. }
  5717. if (optional_import_message) {
  5718. ::google::protobuf::Arena* submessage_arena = NULL;
  5719. if (message_arena != submessage_arena) {
  5720. optional_import_message = ::google::protobuf::internal::GetOwnedMessage(
  5721. message_arena, optional_import_message, submessage_arena);
  5722. }
  5723. set_has_optional_import_message();
  5724. } else {
  5725. clear_has_optional_import_message();
  5726. }
  5727. optional_import_message_ = optional_import_message;
  5728. // @@protoc_insertion_point(field_set_allocated:protobuf_unittest.TestAllTypesLite.optional_import_message)
  5729. }
  5730. // optional .protobuf_unittest.TestAllTypesLite.NestedEnum optional_nested_enum = 21;
  5731. inline bool TestAllTypesLite::has_optional_nested_enum() const {
  5732. return (_has_bits_[0] & 0x20000000u) != 0;
  5733. }
  5734. inline void TestAllTypesLite::set_has_optional_nested_enum() {
  5735. _has_bits_[0] |= 0x20000000u;
  5736. }
  5737. inline void TestAllTypesLite::clear_has_optional_nested_enum() {
  5738. _has_bits_[0] &= ~0x20000000u;
  5739. }
  5740. inline void TestAllTypesLite::clear_optional_nested_enum() {
  5741. optional_nested_enum_ = 1;
  5742. clear_has_optional_nested_enum();
  5743. }
  5744. inline ::protobuf_unittest::TestAllTypesLite_NestedEnum TestAllTypesLite::optional_nested_enum() const {
  5745. // @@protoc_insertion_point(field_get:protobuf_unittest.TestAllTypesLite.optional_nested_enum)
  5746. return static_cast< ::protobuf_unittest::TestAllTypesLite_NestedEnum >(optional_nested_enum_);
  5747. }
  5748. inline void TestAllTypesLite::set_optional_nested_enum(::protobuf_unittest::TestAllTypesLite_NestedEnum value) {
  5749. assert(::protobuf_unittest::TestAllTypesLite_NestedEnum_IsValid(value));
  5750. set_has_optional_nested_enum();
  5751. optional_nested_enum_ = value;
  5752. // @@protoc_insertion_point(field_set:protobuf_unittest.TestAllTypesLite.optional_nested_enum)
  5753. }
  5754. // optional .protobuf_unittest.ForeignEnumLite optional_foreign_enum = 22;
  5755. inline bool TestAllTypesLite::has_optional_foreign_enum() const {
  5756. return (_has_bits_[0] & 0x40000000u) != 0;
  5757. }
  5758. inline void TestAllTypesLite::set_has_optional_foreign_enum() {
  5759. _has_bits_[0] |= 0x40000000u;
  5760. }
  5761. inline void TestAllTypesLite::clear_has_optional_foreign_enum() {
  5762. _has_bits_[0] &= ~0x40000000u;
  5763. }
  5764. inline void TestAllTypesLite::clear_optional_foreign_enum() {
  5765. optional_foreign_enum_ = 4;
  5766. clear_has_optional_foreign_enum();
  5767. }
  5768. inline ::protobuf_unittest::ForeignEnumLite TestAllTypesLite::optional_foreign_enum() const {
  5769. // @@protoc_insertion_point(field_get:protobuf_unittest.TestAllTypesLite.optional_foreign_enum)
  5770. return static_cast< ::protobuf_unittest::ForeignEnumLite >(optional_foreign_enum_);
  5771. }
  5772. inline void TestAllTypesLite::set_optional_foreign_enum(::protobuf_unittest::ForeignEnumLite value) {
  5773. assert(::protobuf_unittest::ForeignEnumLite_IsValid(value));
  5774. set_has_optional_foreign_enum();
  5775. optional_foreign_enum_ = value;
  5776. // @@protoc_insertion_point(field_set:protobuf_unittest.TestAllTypesLite.optional_foreign_enum)
  5777. }
  5778. // optional .protobuf_unittest_import.ImportEnumLite optional_import_enum = 23;
  5779. inline bool TestAllTypesLite::has_optional_import_enum() const {
  5780. return (_has_bits_[0] & 0x80000000u) != 0;
  5781. }
  5782. inline void TestAllTypesLite::set_has_optional_import_enum() {
  5783. _has_bits_[0] |= 0x80000000u;
  5784. }
  5785. inline void TestAllTypesLite::clear_has_optional_import_enum() {
  5786. _has_bits_[0] &= ~0x80000000u;
  5787. }
  5788. inline void TestAllTypesLite::clear_optional_import_enum() {
  5789. optional_import_enum_ = 7;
  5790. clear_has_optional_import_enum();
  5791. }
  5792. inline ::protobuf_unittest_import::ImportEnumLite TestAllTypesLite::optional_import_enum() const {
  5793. // @@protoc_insertion_point(field_get:protobuf_unittest.TestAllTypesLite.optional_import_enum)
  5794. return static_cast< ::protobuf_unittest_import::ImportEnumLite >(optional_import_enum_);
  5795. }
  5796. inline void TestAllTypesLite::set_optional_import_enum(::protobuf_unittest_import::ImportEnumLite value) {
  5797. assert(::protobuf_unittest_import::ImportEnumLite_IsValid(value));
  5798. set_has_optional_import_enum();
  5799. optional_import_enum_ = value;
  5800. // @@protoc_insertion_point(field_set:protobuf_unittest.TestAllTypesLite.optional_import_enum)
  5801. }
  5802. // optional string optional_string_piece = 24 [ctype = STRING_PIECE];
  5803. inline bool TestAllTypesLite::has_optional_string_piece() const {
  5804. return (_has_bits_[0] & 0x00000004u) != 0;
  5805. }
  5806. inline void TestAllTypesLite::set_has_optional_string_piece() {
  5807. _has_bits_[0] |= 0x00000004u;
  5808. }
  5809. inline void TestAllTypesLite::clear_has_optional_string_piece() {
  5810. _has_bits_[0] &= ~0x00000004u;
  5811. }
  5812. inline void TestAllTypesLite::clear_optional_string_piece() {
  5813. optional_string_piece_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  5814. clear_has_optional_string_piece();
  5815. }
  5816. inline const ::std::string& TestAllTypesLite::optional_string_piece() const {
  5817. // @@protoc_insertion_point(field_get:protobuf_unittest.TestAllTypesLite.optional_string_piece)
  5818. return optional_string_piece_.GetNoArena();
  5819. }
  5820. inline void TestAllTypesLite::set_optional_string_piece(const ::std::string& value) {
  5821. set_has_optional_string_piece();
  5822. optional_string_piece_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
  5823. // @@protoc_insertion_point(field_set:protobuf_unittest.TestAllTypesLite.optional_string_piece)
  5824. }
  5825. #if LANG_CXX11
  5826. inline void TestAllTypesLite::set_optional_string_piece(::std::string&& value) {
  5827. set_has_optional_string_piece();
  5828. optional_string_piece_.SetNoArena(
  5829. &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
  5830. // @@protoc_insertion_point(field_set_rvalue:protobuf_unittest.TestAllTypesLite.optional_string_piece)
  5831. }
  5832. #endif
  5833. inline void TestAllTypesLite::set_optional_string_piece(const char* value) {
  5834. GOOGLE_DCHECK(value != NULL);
  5835. set_has_optional_string_piece();
  5836. optional_string_piece_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
  5837. // @@protoc_insertion_point(field_set_char:protobuf_unittest.TestAllTypesLite.optional_string_piece)
  5838. }
  5839. inline void TestAllTypesLite::set_optional_string_piece(const char* value, size_t size) {
  5840. set_has_optional_string_piece();
  5841. optional_string_piece_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  5842. ::std::string(reinterpret_cast<const char*>(value), size));
  5843. // @@protoc_insertion_point(field_set_pointer:protobuf_unittest.TestAllTypesLite.optional_string_piece)
  5844. }
  5845. inline ::std::string* TestAllTypesLite::mutable_optional_string_piece() {
  5846. set_has_optional_string_piece();
  5847. // @@protoc_insertion_point(field_mutable:protobuf_unittest.TestAllTypesLite.optional_string_piece)
  5848. return optional_string_piece_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  5849. }
  5850. inline ::std::string* TestAllTypesLite::release_optional_string_piece() {
  5851. // @@protoc_insertion_point(field_release:protobuf_unittest.TestAllTypesLite.optional_string_piece)
  5852. if (!has_optional_string_piece()) {
  5853. return NULL;
  5854. }
  5855. clear_has_optional_string_piece();
  5856. return optional_string_piece_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  5857. }
  5858. inline void TestAllTypesLite::set_allocated_optional_string_piece(::std::string* optional_string_piece) {
  5859. if (optional_string_piece != NULL) {
  5860. set_has_optional_string_piece();
  5861. } else {
  5862. clear_has_optional_string_piece();
  5863. }
  5864. optional_string_piece_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), optional_string_piece);
  5865. // @@protoc_insertion_point(field_set_allocated:protobuf_unittest.TestAllTypesLite.optional_string_piece)
  5866. }
  5867. // optional string optional_cord = 25 [ctype = CORD];
  5868. inline bool TestAllTypesLite::has_optional_cord() const {
  5869. return (_has_bits_[0] & 0x00000008u) != 0;
  5870. }
  5871. inline void TestAllTypesLite::set_has_optional_cord() {
  5872. _has_bits_[0] |= 0x00000008u;
  5873. }
  5874. inline void TestAllTypesLite::clear_has_optional_cord() {
  5875. _has_bits_[0] &= ~0x00000008u;
  5876. }
  5877. inline void TestAllTypesLite::clear_optional_cord() {
  5878. optional_cord_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  5879. clear_has_optional_cord();
  5880. }
  5881. inline const ::std::string& TestAllTypesLite::optional_cord() const {
  5882. // @@protoc_insertion_point(field_get:protobuf_unittest.TestAllTypesLite.optional_cord)
  5883. return optional_cord_.GetNoArena();
  5884. }
  5885. inline void TestAllTypesLite::set_optional_cord(const ::std::string& value) {
  5886. set_has_optional_cord();
  5887. optional_cord_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
  5888. // @@protoc_insertion_point(field_set:protobuf_unittest.TestAllTypesLite.optional_cord)
  5889. }
  5890. #if LANG_CXX11
  5891. inline void TestAllTypesLite::set_optional_cord(::std::string&& value) {
  5892. set_has_optional_cord();
  5893. optional_cord_.SetNoArena(
  5894. &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
  5895. // @@protoc_insertion_point(field_set_rvalue:protobuf_unittest.TestAllTypesLite.optional_cord)
  5896. }
  5897. #endif
  5898. inline void TestAllTypesLite::set_optional_cord(const char* value) {
  5899. GOOGLE_DCHECK(value != NULL);
  5900. set_has_optional_cord();
  5901. optional_cord_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
  5902. // @@protoc_insertion_point(field_set_char:protobuf_unittest.TestAllTypesLite.optional_cord)
  5903. }
  5904. inline void TestAllTypesLite::set_optional_cord(const char* value, size_t size) {
  5905. set_has_optional_cord();
  5906. optional_cord_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  5907. ::std::string(reinterpret_cast<const char*>(value), size));
  5908. // @@protoc_insertion_point(field_set_pointer:protobuf_unittest.TestAllTypesLite.optional_cord)
  5909. }
  5910. inline ::std::string* TestAllTypesLite::mutable_optional_cord() {
  5911. set_has_optional_cord();
  5912. // @@protoc_insertion_point(field_mutable:protobuf_unittest.TestAllTypesLite.optional_cord)
  5913. return optional_cord_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  5914. }
  5915. inline ::std::string* TestAllTypesLite::release_optional_cord() {
  5916. // @@protoc_insertion_point(field_release:protobuf_unittest.TestAllTypesLite.optional_cord)
  5917. if (!has_optional_cord()) {
  5918. return NULL;
  5919. }
  5920. clear_has_optional_cord();
  5921. return optional_cord_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  5922. }
  5923. inline void TestAllTypesLite::set_allocated_optional_cord(::std::string* optional_cord) {
  5924. if (optional_cord != NULL) {
  5925. set_has_optional_cord();
  5926. } else {
  5927. clear_has_optional_cord();
  5928. }
  5929. optional_cord_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), optional_cord);
  5930. // @@protoc_insertion_point(field_set_allocated:protobuf_unittest.TestAllTypesLite.optional_cord)
  5931. }
  5932. // optional .protobuf_unittest_import.PublicImportMessageLite optional_public_import_message = 26;
  5933. inline bool TestAllTypesLite::has_optional_public_import_message() const {
  5934. return (_has_bits_[0] & 0x00001000u) != 0;
  5935. }
  5936. inline void TestAllTypesLite::set_has_optional_public_import_message() {
  5937. _has_bits_[0] |= 0x00001000u;
  5938. }
  5939. inline void TestAllTypesLite::clear_has_optional_public_import_message() {
  5940. _has_bits_[0] &= ~0x00001000u;
  5941. }
  5942. inline const ::protobuf_unittest_import::PublicImportMessageLite& TestAllTypesLite::_internal_optional_public_import_message() const {
  5943. return *optional_public_import_message_;
  5944. }
  5945. inline const ::protobuf_unittest_import::PublicImportMessageLite& TestAllTypesLite::optional_public_import_message() const {
  5946. const ::protobuf_unittest_import::PublicImportMessageLite* p = optional_public_import_message_;
  5947. // @@protoc_insertion_point(field_get:protobuf_unittest.TestAllTypesLite.optional_public_import_message)
  5948. return p != NULL ? *p : *reinterpret_cast<const ::protobuf_unittest_import::PublicImportMessageLite*>(
  5949. &::protobuf_unittest_import::_PublicImportMessageLite_default_instance_);
  5950. }
  5951. inline ::protobuf_unittest_import::PublicImportMessageLite* TestAllTypesLite::release_optional_public_import_message() {
  5952. // @@protoc_insertion_point(field_release:protobuf_unittest.TestAllTypesLite.optional_public_import_message)
  5953. clear_has_optional_public_import_message();
  5954. ::protobuf_unittest_import::PublicImportMessageLite* temp = optional_public_import_message_;
  5955. optional_public_import_message_ = NULL;
  5956. return temp;
  5957. }
  5958. inline ::protobuf_unittest_import::PublicImportMessageLite* TestAllTypesLite::mutable_optional_public_import_message() {
  5959. set_has_optional_public_import_message();
  5960. if (optional_public_import_message_ == NULL) {
  5961. auto* p = CreateMaybeMessage<::protobuf_unittest_import::PublicImportMessageLite>(GetArenaNoVirtual());
  5962. optional_public_import_message_ = p;
  5963. }
  5964. // @@protoc_insertion_point(field_mutable:protobuf_unittest.TestAllTypesLite.optional_public_import_message)
  5965. return optional_public_import_message_;
  5966. }
  5967. inline void TestAllTypesLite::set_allocated_optional_public_import_message(::protobuf_unittest_import::PublicImportMessageLite* optional_public_import_message) {
  5968. ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
  5969. if (message_arena == NULL) {
  5970. delete reinterpret_cast< ::google::protobuf::MessageLite*>(optional_public_import_message_);
  5971. }
  5972. if (optional_public_import_message) {
  5973. ::google::protobuf::Arena* submessage_arena = NULL;
  5974. if (message_arena != submessage_arena) {
  5975. optional_public_import_message = ::google::protobuf::internal::GetOwnedMessage(
  5976. message_arena, optional_public_import_message, submessage_arena);
  5977. }
  5978. set_has_optional_public_import_message();
  5979. } else {
  5980. clear_has_optional_public_import_message();
  5981. }
  5982. optional_public_import_message_ = optional_public_import_message;
  5983. // @@protoc_insertion_point(field_set_allocated:protobuf_unittest.TestAllTypesLite.optional_public_import_message)
  5984. }
  5985. // optional .protobuf_unittest.TestAllTypesLite.NestedMessage optional_lazy_message = 27 [lazy = true];
  5986. inline bool TestAllTypesLite::has_optional_lazy_message() const {
  5987. return (_has_bits_[0] & 0x00002000u) != 0;
  5988. }
  5989. inline void TestAllTypesLite::set_has_optional_lazy_message() {
  5990. _has_bits_[0] |= 0x00002000u;
  5991. }
  5992. inline void TestAllTypesLite::clear_has_optional_lazy_message() {
  5993. _has_bits_[0] &= ~0x00002000u;
  5994. }
  5995. inline void TestAllTypesLite::clear_optional_lazy_message() {
  5996. if (optional_lazy_message_ != NULL) optional_lazy_message_->Clear();
  5997. clear_has_optional_lazy_message();
  5998. }
  5999. inline const ::protobuf_unittest::TestAllTypesLite_NestedMessage& TestAllTypesLite::_internal_optional_lazy_message() const {
  6000. return *optional_lazy_message_;
  6001. }
  6002. inline const ::protobuf_unittest::TestAllTypesLite_NestedMessage& TestAllTypesLite::optional_lazy_message() const {
  6003. const ::protobuf_unittest::TestAllTypesLite_NestedMessage* p = optional_lazy_message_;
  6004. // @@protoc_insertion_point(field_get:protobuf_unittest.TestAllTypesLite.optional_lazy_message)
  6005. return p != NULL ? *p : *reinterpret_cast<const ::protobuf_unittest::TestAllTypesLite_NestedMessage*>(
  6006. &::protobuf_unittest::_TestAllTypesLite_NestedMessage_default_instance_);
  6007. }
  6008. inline ::protobuf_unittest::TestAllTypesLite_NestedMessage* TestAllTypesLite::release_optional_lazy_message() {
  6009. // @@protoc_insertion_point(field_release:protobuf_unittest.TestAllTypesLite.optional_lazy_message)
  6010. clear_has_optional_lazy_message();
  6011. ::protobuf_unittest::TestAllTypesLite_NestedMessage* temp = optional_lazy_message_;
  6012. optional_lazy_message_ = NULL;
  6013. return temp;
  6014. }
  6015. inline ::protobuf_unittest::TestAllTypesLite_NestedMessage* TestAllTypesLite::mutable_optional_lazy_message() {
  6016. set_has_optional_lazy_message();
  6017. if (optional_lazy_message_ == NULL) {
  6018. auto* p = CreateMaybeMessage<::protobuf_unittest::TestAllTypesLite_NestedMessage>(GetArenaNoVirtual());
  6019. optional_lazy_message_ = p;
  6020. }
  6021. // @@protoc_insertion_point(field_mutable:protobuf_unittest.TestAllTypesLite.optional_lazy_message)
  6022. return optional_lazy_message_;
  6023. }
  6024. inline void TestAllTypesLite::set_allocated_optional_lazy_message(::protobuf_unittest::TestAllTypesLite_NestedMessage* optional_lazy_message) {
  6025. ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
  6026. if (message_arena == NULL) {
  6027. delete optional_lazy_message_;
  6028. }
  6029. if (optional_lazy_message) {
  6030. ::google::protobuf::Arena* submessage_arena = NULL;
  6031. if (message_arena != submessage_arena) {
  6032. optional_lazy_message = ::google::protobuf::internal::GetOwnedMessage(
  6033. message_arena, optional_lazy_message, submessage_arena);
  6034. }
  6035. set_has_optional_lazy_message();
  6036. } else {
  6037. clear_has_optional_lazy_message();
  6038. }
  6039. optional_lazy_message_ = optional_lazy_message;
  6040. // @@protoc_insertion_point(field_set_allocated:protobuf_unittest.TestAllTypesLite.optional_lazy_message)
  6041. }
  6042. // repeated int32 repeated_int32 = 31;
  6043. inline int TestAllTypesLite::repeated_int32_size() const {
  6044. return repeated_int32_.size();
  6045. }
  6046. inline void TestAllTypesLite::clear_repeated_int32() {
  6047. repeated_int32_.Clear();
  6048. }
  6049. inline ::google::protobuf::int32 TestAllTypesLite::repeated_int32(int index) const {
  6050. // @@protoc_insertion_point(field_get:protobuf_unittest.TestAllTypesLite.repeated_int32)
  6051. return repeated_int32_.Get(index);
  6052. }
  6053. inline void TestAllTypesLite::set_repeated_int32(int index, ::google::protobuf::int32 value) {
  6054. repeated_int32_.Set(index, value);
  6055. // @@protoc_insertion_point(field_set:protobuf_unittest.TestAllTypesLite.repeated_int32)
  6056. }
  6057. inline void TestAllTypesLite::add_repeated_int32(::google::protobuf::int32 value) {
  6058. repeated_int32_.Add(value);
  6059. // @@protoc_insertion_point(field_add:protobuf_unittest.TestAllTypesLite.repeated_int32)
  6060. }
  6061. inline const ::google::protobuf::RepeatedField< ::google::protobuf::int32 >&
  6062. TestAllTypesLite::repeated_int32() const {
  6063. // @@protoc_insertion_point(field_list:protobuf_unittest.TestAllTypesLite.repeated_int32)
  6064. return repeated_int32_;
  6065. }
  6066. inline ::google::protobuf::RepeatedField< ::google::protobuf::int32 >*
  6067. TestAllTypesLite::mutable_repeated_int32() {
  6068. // @@protoc_insertion_point(field_mutable_list:protobuf_unittest.TestAllTypesLite.repeated_int32)
  6069. return &repeated_int32_;
  6070. }
  6071. // repeated int64 repeated_int64 = 32;
  6072. inline int TestAllTypesLite::repeated_int64_size() const {
  6073. return repeated_int64_.size();
  6074. }
  6075. inline void TestAllTypesLite::clear_repeated_int64() {
  6076. repeated_int64_.Clear();
  6077. }
  6078. inline ::google::protobuf::int64 TestAllTypesLite::repeated_int64(int index) const {
  6079. // @@protoc_insertion_point(field_get:protobuf_unittest.TestAllTypesLite.repeated_int64)
  6080. return repeated_int64_.Get(index);
  6081. }
  6082. inline void TestAllTypesLite::set_repeated_int64(int index, ::google::protobuf::int64 value) {
  6083. repeated_int64_.Set(index, value);
  6084. // @@protoc_insertion_point(field_set:protobuf_unittest.TestAllTypesLite.repeated_int64)
  6085. }
  6086. inline void TestAllTypesLite::add_repeated_int64(::google::protobuf::int64 value) {
  6087. repeated_int64_.Add(value);
  6088. // @@protoc_insertion_point(field_add:protobuf_unittest.TestAllTypesLite.repeated_int64)
  6089. }
  6090. inline const ::google::protobuf::RepeatedField< ::google::protobuf::int64 >&
  6091. TestAllTypesLite::repeated_int64() const {
  6092. // @@protoc_insertion_point(field_list:protobuf_unittest.TestAllTypesLite.repeated_int64)
  6093. return repeated_int64_;
  6094. }
  6095. inline ::google::protobuf::RepeatedField< ::google::protobuf::int64 >*
  6096. TestAllTypesLite::mutable_repeated_int64() {
  6097. // @@protoc_insertion_point(field_mutable_list:protobuf_unittest.TestAllTypesLite.repeated_int64)
  6098. return &repeated_int64_;
  6099. }
  6100. // repeated uint32 repeated_uint32 = 33;
  6101. inline int TestAllTypesLite::repeated_uint32_size() const {
  6102. return repeated_uint32_.size();
  6103. }
  6104. inline void TestAllTypesLite::clear_repeated_uint32() {
  6105. repeated_uint32_.Clear();
  6106. }
  6107. inline ::google::protobuf::uint32 TestAllTypesLite::repeated_uint32(int index) const {
  6108. // @@protoc_insertion_point(field_get:protobuf_unittest.TestAllTypesLite.repeated_uint32)
  6109. return repeated_uint32_.Get(index);
  6110. }
  6111. inline void TestAllTypesLite::set_repeated_uint32(int index, ::google::protobuf::uint32 value) {
  6112. repeated_uint32_.Set(index, value);
  6113. // @@protoc_insertion_point(field_set:protobuf_unittest.TestAllTypesLite.repeated_uint32)
  6114. }
  6115. inline void TestAllTypesLite::add_repeated_uint32(::google::protobuf::uint32 value) {
  6116. repeated_uint32_.Add(value);
  6117. // @@protoc_insertion_point(field_add:protobuf_unittest.TestAllTypesLite.repeated_uint32)
  6118. }
  6119. inline const ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >&
  6120. TestAllTypesLite::repeated_uint32() const {
  6121. // @@protoc_insertion_point(field_list:protobuf_unittest.TestAllTypesLite.repeated_uint32)
  6122. return repeated_uint32_;
  6123. }
  6124. inline ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >*
  6125. TestAllTypesLite::mutable_repeated_uint32() {
  6126. // @@protoc_insertion_point(field_mutable_list:protobuf_unittest.TestAllTypesLite.repeated_uint32)
  6127. return &repeated_uint32_;
  6128. }
  6129. // repeated uint64 repeated_uint64 = 34;
  6130. inline int TestAllTypesLite::repeated_uint64_size() const {
  6131. return repeated_uint64_.size();
  6132. }
  6133. inline void TestAllTypesLite::clear_repeated_uint64() {
  6134. repeated_uint64_.Clear();
  6135. }
  6136. inline ::google::protobuf::uint64 TestAllTypesLite::repeated_uint64(int index) const {
  6137. // @@protoc_insertion_point(field_get:protobuf_unittest.TestAllTypesLite.repeated_uint64)
  6138. return repeated_uint64_.Get(index);
  6139. }
  6140. inline void TestAllTypesLite::set_repeated_uint64(int index, ::google::protobuf::uint64 value) {
  6141. repeated_uint64_.Set(index, value);
  6142. // @@protoc_insertion_point(field_set:protobuf_unittest.TestAllTypesLite.repeated_uint64)
  6143. }
  6144. inline void TestAllTypesLite::add_repeated_uint64(::google::protobuf::uint64 value) {
  6145. repeated_uint64_.Add(value);
  6146. // @@protoc_insertion_point(field_add:protobuf_unittest.TestAllTypesLite.repeated_uint64)
  6147. }
  6148. inline const ::google::protobuf::RepeatedField< ::google::protobuf::uint64 >&
  6149. TestAllTypesLite::repeated_uint64() const {
  6150. // @@protoc_insertion_point(field_list:protobuf_unittest.TestAllTypesLite.repeated_uint64)
  6151. return repeated_uint64_;
  6152. }
  6153. inline ::google::protobuf::RepeatedField< ::google::protobuf::uint64 >*
  6154. TestAllTypesLite::mutable_repeated_uint64() {
  6155. // @@protoc_insertion_point(field_mutable_list:protobuf_unittest.TestAllTypesLite.repeated_uint64)
  6156. return &repeated_uint64_;
  6157. }
  6158. // repeated sint32 repeated_sint32 = 35;
  6159. inline int TestAllTypesLite::repeated_sint32_size() const {
  6160. return repeated_sint32_.size();
  6161. }
  6162. inline void TestAllTypesLite::clear_repeated_sint32() {
  6163. repeated_sint32_.Clear();
  6164. }
  6165. inline ::google::protobuf::int32 TestAllTypesLite::repeated_sint32(int index) const {
  6166. // @@protoc_insertion_point(field_get:protobuf_unittest.TestAllTypesLite.repeated_sint32)
  6167. return repeated_sint32_.Get(index);
  6168. }
  6169. inline void TestAllTypesLite::set_repeated_sint32(int index, ::google::protobuf::int32 value) {
  6170. repeated_sint32_.Set(index, value);
  6171. // @@protoc_insertion_point(field_set:protobuf_unittest.TestAllTypesLite.repeated_sint32)
  6172. }
  6173. inline void TestAllTypesLite::add_repeated_sint32(::google::protobuf::int32 value) {
  6174. repeated_sint32_.Add(value);
  6175. // @@protoc_insertion_point(field_add:protobuf_unittest.TestAllTypesLite.repeated_sint32)
  6176. }
  6177. inline const ::google::protobuf::RepeatedField< ::google::protobuf::int32 >&
  6178. TestAllTypesLite::repeated_sint32() const {
  6179. // @@protoc_insertion_point(field_list:protobuf_unittest.TestAllTypesLite.repeated_sint32)
  6180. return repeated_sint32_;
  6181. }
  6182. inline ::google::protobuf::RepeatedField< ::google::protobuf::int32 >*
  6183. TestAllTypesLite::mutable_repeated_sint32() {
  6184. // @@protoc_insertion_point(field_mutable_list:protobuf_unittest.TestAllTypesLite.repeated_sint32)
  6185. return &repeated_sint32_;
  6186. }
  6187. // repeated sint64 repeated_sint64 = 36;
  6188. inline int TestAllTypesLite::repeated_sint64_size() const {
  6189. return repeated_sint64_.size();
  6190. }
  6191. inline void TestAllTypesLite::clear_repeated_sint64() {
  6192. repeated_sint64_.Clear();
  6193. }
  6194. inline ::google::protobuf::int64 TestAllTypesLite::repeated_sint64(int index) const {
  6195. // @@protoc_insertion_point(field_get:protobuf_unittest.TestAllTypesLite.repeated_sint64)
  6196. return repeated_sint64_.Get(index);
  6197. }
  6198. inline void TestAllTypesLite::set_repeated_sint64(int index, ::google::protobuf::int64 value) {
  6199. repeated_sint64_.Set(index, value);
  6200. // @@protoc_insertion_point(field_set:protobuf_unittest.TestAllTypesLite.repeated_sint64)
  6201. }
  6202. inline void TestAllTypesLite::add_repeated_sint64(::google::protobuf::int64 value) {
  6203. repeated_sint64_.Add(value);
  6204. // @@protoc_insertion_point(field_add:protobuf_unittest.TestAllTypesLite.repeated_sint64)
  6205. }
  6206. inline const ::google::protobuf::RepeatedField< ::google::protobuf::int64 >&
  6207. TestAllTypesLite::repeated_sint64() const {
  6208. // @@protoc_insertion_point(field_list:protobuf_unittest.TestAllTypesLite.repeated_sint64)
  6209. return repeated_sint64_;
  6210. }
  6211. inline ::google::protobuf::RepeatedField< ::google::protobuf::int64 >*
  6212. TestAllTypesLite::mutable_repeated_sint64() {
  6213. // @@protoc_insertion_point(field_mutable_list:protobuf_unittest.TestAllTypesLite.repeated_sint64)
  6214. return &repeated_sint64_;
  6215. }
  6216. // repeated fixed32 repeated_fixed32 = 37;
  6217. inline int TestAllTypesLite::repeated_fixed32_size() const {
  6218. return repeated_fixed32_.size();
  6219. }
  6220. inline void TestAllTypesLite::clear_repeated_fixed32() {
  6221. repeated_fixed32_.Clear();
  6222. }
  6223. inline ::google::protobuf::uint32 TestAllTypesLite::repeated_fixed32(int index) const {
  6224. // @@protoc_insertion_point(field_get:protobuf_unittest.TestAllTypesLite.repeated_fixed32)
  6225. return repeated_fixed32_.Get(index);
  6226. }
  6227. inline void TestAllTypesLite::set_repeated_fixed32(int index, ::google::protobuf::uint32 value) {
  6228. repeated_fixed32_.Set(index, value);
  6229. // @@protoc_insertion_point(field_set:protobuf_unittest.TestAllTypesLite.repeated_fixed32)
  6230. }
  6231. inline void TestAllTypesLite::add_repeated_fixed32(::google::protobuf::uint32 value) {
  6232. repeated_fixed32_.Add(value);
  6233. // @@protoc_insertion_point(field_add:protobuf_unittest.TestAllTypesLite.repeated_fixed32)
  6234. }
  6235. inline const ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >&
  6236. TestAllTypesLite::repeated_fixed32() const {
  6237. // @@protoc_insertion_point(field_list:protobuf_unittest.TestAllTypesLite.repeated_fixed32)
  6238. return repeated_fixed32_;
  6239. }
  6240. inline ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >*
  6241. TestAllTypesLite::mutable_repeated_fixed32() {
  6242. // @@protoc_insertion_point(field_mutable_list:protobuf_unittest.TestAllTypesLite.repeated_fixed32)
  6243. return &repeated_fixed32_;
  6244. }
  6245. // repeated fixed64 repeated_fixed64 = 38;
  6246. inline int TestAllTypesLite::repeated_fixed64_size() const {
  6247. return repeated_fixed64_.size();
  6248. }
  6249. inline void TestAllTypesLite::clear_repeated_fixed64() {
  6250. repeated_fixed64_.Clear();
  6251. }
  6252. inline ::google::protobuf::uint64 TestAllTypesLite::repeated_fixed64(int index) const {
  6253. // @@protoc_insertion_point(field_get:protobuf_unittest.TestAllTypesLite.repeated_fixed64)
  6254. return repeated_fixed64_.Get(index);
  6255. }
  6256. inline void TestAllTypesLite::set_repeated_fixed64(int index, ::google::protobuf::uint64 value) {
  6257. repeated_fixed64_.Set(index, value);
  6258. // @@protoc_insertion_point(field_set:protobuf_unittest.TestAllTypesLite.repeated_fixed64)
  6259. }
  6260. inline void TestAllTypesLite::add_repeated_fixed64(::google::protobuf::uint64 value) {
  6261. repeated_fixed64_.Add(value);
  6262. // @@protoc_insertion_point(field_add:protobuf_unittest.TestAllTypesLite.repeated_fixed64)
  6263. }
  6264. inline const ::google::protobuf::RepeatedField< ::google::protobuf::uint64 >&
  6265. TestAllTypesLite::repeated_fixed64() const {
  6266. // @@protoc_insertion_point(field_list:protobuf_unittest.TestAllTypesLite.repeated_fixed64)
  6267. return repeated_fixed64_;
  6268. }
  6269. inline ::google::protobuf::RepeatedField< ::google::protobuf::uint64 >*
  6270. TestAllTypesLite::mutable_repeated_fixed64() {
  6271. // @@protoc_insertion_point(field_mutable_list:protobuf_unittest.TestAllTypesLite.repeated_fixed64)
  6272. return &repeated_fixed64_;
  6273. }
  6274. // repeated sfixed32 repeated_sfixed32 = 39;
  6275. inline int TestAllTypesLite::repeated_sfixed32_size() const {
  6276. return repeated_sfixed32_.size();
  6277. }
  6278. inline void TestAllTypesLite::clear_repeated_sfixed32() {
  6279. repeated_sfixed32_.Clear();
  6280. }
  6281. inline ::google::protobuf::int32 TestAllTypesLite::repeated_sfixed32(int index) const {
  6282. // @@protoc_insertion_point(field_get:protobuf_unittest.TestAllTypesLite.repeated_sfixed32)
  6283. return repeated_sfixed32_.Get(index);
  6284. }
  6285. inline void TestAllTypesLite::set_repeated_sfixed32(int index, ::google::protobuf::int32 value) {
  6286. repeated_sfixed32_.Set(index, value);
  6287. // @@protoc_insertion_point(field_set:protobuf_unittest.TestAllTypesLite.repeated_sfixed32)
  6288. }
  6289. inline void TestAllTypesLite::add_repeated_sfixed32(::google::protobuf::int32 value) {
  6290. repeated_sfixed32_.Add(value);
  6291. // @@protoc_insertion_point(field_add:protobuf_unittest.TestAllTypesLite.repeated_sfixed32)
  6292. }
  6293. inline const ::google::protobuf::RepeatedField< ::google::protobuf::int32 >&
  6294. TestAllTypesLite::repeated_sfixed32() const {
  6295. // @@protoc_insertion_point(field_list:protobuf_unittest.TestAllTypesLite.repeated_sfixed32)
  6296. return repeated_sfixed32_;
  6297. }
  6298. inline ::google::protobuf::RepeatedField< ::google::protobuf::int32 >*
  6299. TestAllTypesLite::mutable_repeated_sfixed32() {
  6300. // @@protoc_insertion_point(field_mutable_list:protobuf_unittest.TestAllTypesLite.repeated_sfixed32)
  6301. return &repeated_sfixed32_;
  6302. }
  6303. // repeated sfixed64 repeated_sfixed64 = 40;
  6304. inline int TestAllTypesLite::repeated_sfixed64_size() const {
  6305. return repeated_sfixed64_.size();
  6306. }
  6307. inline void TestAllTypesLite::clear_repeated_sfixed64() {
  6308. repeated_sfixed64_.Clear();
  6309. }
  6310. inline ::google::protobuf::int64 TestAllTypesLite::repeated_sfixed64(int index) const {
  6311. // @@protoc_insertion_point(field_get:protobuf_unittest.TestAllTypesLite.repeated_sfixed64)
  6312. return repeated_sfixed64_.Get(index);
  6313. }
  6314. inline void TestAllTypesLite::set_repeated_sfixed64(int index, ::google::protobuf::int64 value) {
  6315. repeated_sfixed64_.Set(index, value);
  6316. // @@protoc_insertion_point(field_set:protobuf_unittest.TestAllTypesLite.repeated_sfixed64)
  6317. }
  6318. inline void TestAllTypesLite::add_repeated_sfixed64(::google::protobuf::int64 value) {
  6319. repeated_sfixed64_.Add(value);
  6320. // @@protoc_insertion_point(field_add:protobuf_unittest.TestAllTypesLite.repeated_sfixed64)
  6321. }
  6322. inline const ::google::protobuf::RepeatedField< ::google::protobuf::int64 >&
  6323. TestAllTypesLite::repeated_sfixed64() const {
  6324. // @@protoc_insertion_point(field_list:protobuf_unittest.TestAllTypesLite.repeated_sfixed64)
  6325. return repeated_sfixed64_;
  6326. }
  6327. inline ::google::protobuf::RepeatedField< ::google::protobuf::int64 >*
  6328. TestAllTypesLite::mutable_repeated_sfixed64() {
  6329. // @@protoc_insertion_point(field_mutable_list:protobuf_unittest.TestAllTypesLite.repeated_sfixed64)
  6330. return &repeated_sfixed64_;
  6331. }
  6332. // repeated float repeated_float = 41;
  6333. inline int TestAllTypesLite::repeated_float_size() const {
  6334. return repeated_float_.size();
  6335. }
  6336. inline void TestAllTypesLite::clear_repeated_float() {
  6337. repeated_float_.Clear();
  6338. }
  6339. inline float TestAllTypesLite::repeated_float(int index) const {
  6340. // @@protoc_insertion_point(field_get:protobuf_unittest.TestAllTypesLite.repeated_float)
  6341. return repeated_float_.Get(index);
  6342. }
  6343. inline void TestAllTypesLite::set_repeated_float(int index, float value) {
  6344. repeated_float_.Set(index, value);
  6345. // @@protoc_insertion_point(field_set:protobuf_unittest.TestAllTypesLite.repeated_float)
  6346. }
  6347. inline void TestAllTypesLite::add_repeated_float(float value) {
  6348. repeated_float_.Add(value);
  6349. // @@protoc_insertion_point(field_add:protobuf_unittest.TestAllTypesLite.repeated_float)
  6350. }
  6351. inline const ::google::protobuf::RepeatedField< float >&
  6352. TestAllTypesLite::repeated_float() const {
  6353. // @@protoc_insertion_point(field_list:protobuf_unittest.TestAllTypesLite.repeated_float)
  6354. return repeated_float_;
  6355. }
  6356. inline ::google::protobuf::RepeatedField< float >*
  6357. TestAllTypesLite::mutable_repeated_float() {
  6358. // @@protoc_insertion_point(field_mutable_list:protobuf_unittest.TestAllTypesLite.repeated_float)
  6359. return &repeated_float_;
  6360. }
  6361. // repeated double repeated_double = 42;
  6362. inline int TestAllTypesLite::repeated_double_size() const {
  6363. return repeated_double_.size();
  6364. }
  6365. inline void TestAllTypesLite::clear_repeated_double() {
  6366. repeated_double_.Clear();
  6367. }
  6368. inline double TestAllTypesLite::repeated_double(int index) const {
  6369. // @@protoc_insertion_point(field_get:protobuf_unittest.TestAllTypesLite.repeated_double)
  6370. return repeated_double_.Get(index);
  6371. }
  6372. inline void TestAllTypesLite::set_repeated_double(int index, double value) {
  6373. repeated_double_.Set(index, value);
  6374. // @@protoc_insertion_point(field_set:protobuf_unittest.TestAllTypesLite.repeated_double)
  6375. }
  6376. inline void TestAllTypesLite::add_repeated_double(double value) {
  6377. repeated_double_.Add(value);
  6378. // @@protoc_insertion_point(field_add:protobuf_unittest.TestAllTypesLite.repeated_double)
  6379. }
  6380. inline const ::google::protobuf::RepeatedField< double >&
  6381. TestAllTypesLite::repeated_double() const {
  6382. // @@protoc_insertion_point(field_list:protobuf_unittest.TestAllTypesLite.repeated_double)
  6383. return repeated_double_;
  6384. }
  6385. inline ::google::protobuf::RepeatedField< double >*
  6386. TestAllTypesLite::mutable_repeated_double() {
  6387. // @@protoc_insertion_point(field_mutable_list:protobuf_unittest.TestAllTypesLite.repeated_double)
  6388. return &repeated_double_;
  6389. }
  6390. // repeated bool repeated_bool = 43;
  6391. inline int TestAllTypesLite::repeated_bool_size() const {
  6392. return repeated_bool_.size();
  6393. }
  6394. inline void TestAllTypesLite::clear_repeated_bool() {
  6395. repeated_bool_.Clear();
  6396. }
  6397. inline bool TestAllTypesLite::repeated_bool(int index) const {
  6398. // @@protoc_insertion_point(field_get:protobuf_unittest.TestAllTypesLite.repeated_bool)
  6399. return repeated_bool_.Get(index);
  6400. }
  6401. inline void TestAllTypesLite::set_repeated_bool(int index, bool value) {
  6402. repeated_bool_.Set(index, value);
  6403. // @@protoc_insertion_point(field_set:protobuf_unittest.TestAllTypesLite.repeated_bool)
  6404. }
  6405. inline void TestAllTypesLite::add_repeated_bool(bool value) {
  6406. repeated_bool_.Add(value);
  6407. // @@protoc_insertion_point(field_add:protobuf_unittest.TestAllTypesLite.repeated_bool)
  6408. }
  6409. inline const ::google::protobuf::RepeatedField< bool >&
  6410. TestAllTypesLite::repeated_bool() const {
  6411. // @@protoc_insertion_point(field_list:protobuf_unittest.TestAllTypesLite.repeated_bool)
  6412. return repeated_bool_;
  6413. }
  6414. inline ::google::protobuf::RepeatedField< bool >*
  6415. TestAllTypesLite::mutable_repeated_bool() {
  6416. // @@protoc_insertion_point(field_mutable_list:protobuf_unittest.TestAllTypesLite.repeated_bool)
  6417. return &repeated_bool_;
  6418. }
  6419. // repeated string repeated_string = 44;
  6420. inline int TestAllTypesLite::repeated_string_size() const {
  6421. return repeated_string_.size();
  6422. }
  6423. inline void TestAllTypesLite::clear_repeated_string() {
  6424. repeated_string_.Clear();
  6425. }
  6426. inline const ::std::string& TestAllTypesLite::repeated_string(int index) const {
  6427. // @@protoc_insertion_point(field_get:protobuf_unittest.TestAllTypesLite.repeated_string)
  6428. return repeated_string_.Get(index);
  6429. }
  6430. inline ::std::string* TestAllTypesLite::mutable_repeated_string(int index) {
  6431. // @@protoc_insertion_point(field_mutable:protobuf_unittest.TestAllTypesLite.repeated_string)
  6432. return repeated_string_.Mutable(index);
  6433. }
  6434. inline void TestAllTypesLite::set_repeated_string(int index, const ::std::string& value) {
  6435. // @@protoc_insertion_point(field_set:protobuf_unittest.TestAllTypesLite.repeated_string)
  6436. repeated_string_.Mutable(index)->assign(value);
  6437. }
  6438. #if LANG_CXX11
  6439. inline void TestAllTypesLite::set_repeated_string(int index, ::std::string&& value) {
  6440. // @@protoc_insertion_point(field_set:protobuf_unittest.TestAllTypesLite.repeated_string)
  6441. repeated_string_.Mutable(index)->assign(std::move(value));
  6442. }
  6443. #endif
  6444. inline void TestAllTypesLite::set_repeated_string(int index, const char* value) {
  6445. GOOGLE_DCHECK(value != NULL);
  6446. repeated_string_.Mutable(index)->assign(value);
  6447. // @@protoc_insertion_point(field_set_char:protobuf_unittest.TestAllTypesLite.repeated_string)
  6448. }
  6449. inline void TestAllTypesLite::set_repeated_string(int index, const char* value, size_t size) {
  6450. repeated_string_.Mutable(index)->assign(
  6451. reinterpret_cast<const char*>(value), size);
  6452. // @@protoc_insertion_point(field_set_pointer:protobuf_unittest.TestAllTypesLite.repeated_string)
  6453. }
  6454. inline ::std::string* TestAllTypesLite::add_repeated_string() {
  6455. // @@protoc_insertion_point(field_add_mutable:protobuf_unittest.TestAllTypesLite.repeated_string)
  6456. return repeated_string_.Add();
  6457. }
  6458. inline void TestAllTypesLite::add_repeated_string(const ::std::string& value) {
  6459. repeated_string_.Add()->assign(value);
  6460. // @@protoc_insertion_point(field_add:protobuf_unittest.TestAllTypesLite.repeated_string)
  6461. }
  6462. #if LANG_CXX11
  6463. inline void TestAllTypesLite::add_repeated_string(::std::string&& value) {
  6464. repeated_string_.Add(std::move(value));
  6465. // @@protoc_insertion_point(field_add:protobuf_unittest.TestAllTypesLite.repeated_string)
  6466. }
  6467. #endif
  6468. inline void TestAllTypesLite::add_repeated_string(const char* value) {
  6469. GOOGLE_DCHECK(value != NULL);
  6470. repeated_string_.Add()->assign(value);
  6471. // @@protoc_insertion_point(field_add_char:protobuf_unittest.TestAllTypesLite.repeated_string)
  6472. }
  6473. inline void TestAllTypesLite::add_repeated_string(const char* value, size_t size) {
  6474. repeated_string_.Add()->assign(reinterpret_cast<const char*>(value), size);
  6475. // @@protoc_insertion_point(field_add_pointer:protobuf_unittest.TestAllTypesLite.repeated_string)
  6476. }
  6477. inline const ::google::protobuf::RepeatedPtrField< ::std::string>&
  6478. TestAllTypesLite::repeated_string() const {
  6479. // @@protoc_insertion_point(field_list:protobuf_unittest.TestAllTypesLite.repeated_string)
  6480. return repeated_string_;
  6481. }
  6482. inline ::google::protobuf::RepeatedPtrField< ::std::string>*
  6483. TestAllTypesLite::mutable_repeated_string() {
  6484. // @@protoc_insertion_point(field_mutable_list:protobuf_unittest.TestAllTypesLite.repeated_string)
  6485. return &repeated_string_;
  6486. }
  6487. // repeated bytes repeated_bytes = 45;
  6488. inline int TestAllTypesLite::repeated_bytes_size() const {
  6489. return repeated_bytes_.size();
  6490. }
  6491. inline void TestAllTypesLite::clear_repeated_bytes() {
  6492. repeated_bytes_.Clear();
  6493. }
  6494. inline const ::std::string& TestAllTypesLite::repeated_bytes(int index) const {
  6495. // @@protoc_insertion_point(field_get:protobuf_unittest.TestAllTypesLite.repeated_bytes)
  6496. return repeated_bytes_.Get(index);
  6497. }
  6498. inline ::std::string* TestAllTypesLite::mutable_repeated_bytes(int index) {
  6499. // @@protoc_insertion_point(field_mutable:protobuf_unittest.TestAllTypesLite.repeated_bytes)
  6500. return repeated_bytes_.Mutable(index);
  6501. }
  6502. inline void TestAllTypesLite::set_repeated_bytes(int index, const ::std::string& value) {
  6503. // @@protoc_insertion_point(field_set:protobuf_unittest.TestAllTypesLite.repeated_bytes)
  6504. repeated_bytes_.Mutable(index)->assign(value);
  6505. }
  6506. #if LANG_CXX11
  6507. inline void TestAllTypesLite::set_repeated_bytes(int index, ::std::string&& value) {
  6508. // @@protoc_insertion_point(field_set:protobuf_unittest.TestAllTypesLite.repeated_bytes)
  6509. repeated_bytes_.Mutable(index)->assign(std::move(value));
  6510. }
  6511. #endif
  6512. inline void TestAllTypesLite::set_repeated_bytes(int index, const char* value) {
  6513. GOOGLE_DCHECK(value != NULL);
  6514. repeated_bytes_.Mutable(index)->assign(value);
  6515. // @@protoc_insertion_point(field_set_char:protobuf_unittest.TestAllTypesLite.repeated_bytes)
  6516. }
  6517. inline void TestAllTypesLite::set_repeated_bytes(int index, const void* value, size_t size) {
  6518. repeated_bytes_.Mutable(index)->assign(
  6519. reinterpret_cast<const char*>(value), size);
  6520. // @@protoc_insertion_point(field_set_pointer:protobuf_unittest.TestAllTypesLite.repeated_bytes)
  6521. }
  6522. inline ::std::string* TestAllTypesLite::add_repeated_bytes() {
  6523. // @@protoc_insertion_point(field_add_mutable:protobuf_unittest.TestAllTypesLite.repeated_bytes)
  6524. return repeated_bytes_.Add();
  6525. }
  6526. inline void TestAllTypesLite::add_repeated_bytes(const ::std::string& value) {
  6527. repeated_bytes_.Add()->assign(value);
  6528. // @@protoc_insertion_point(field_add:protobuf_unittest.TestAllTypesLite.repeated_bytes)
  6529. }
  6530. #if LANG_CXX11
  6531. inline void TestAllTypesLite::add_repeated_bytes(::std::string&& value) {
  6532. repeated_bytes_.Add(std::move(value));
  6533. // @@protoc_insertion_point(field_add:protobuf_unittest.TestAllTypesLite.repeated_bytes)
  6534. }
  6535. #endif
  6536. inline void TestAllTypesLite::add_repeated_bytes(const char* value) {
  6537. GOOGLE_DCHECK(value != NULL);
  6538. repeated_bytes_.Add()->assign(value);
  6539. // @@protoc_insertion_point(field_add_char:protobuf_unittest.TestAllTypesLite.repeated_bytes)
  6540. }
  6541. inline void TestAllTypesLite::add_repeated_bytes(const void* value, size_t size) {
  6542. repeated_bytes_.Add()->assign(reinterpret_cast<const char*>(value), size);
  6543. // @@protoc_insertion_point(field_add_pointer:protobuf_unittest.TestAllTypesLite.repeated_bytes)
  6544. }
  6545. inline const ::google::protobuf::RepeatedPtrField< ::std::string>&
  6546. TestAllTypesLite::repeated_bytes() const {
  6547. // @@protoc_insertion_point(field_list:protobuf_unittest.TestAllTypesLite.repeated_bytes)
  6548. return repeated_bytes_;
  6549. }
  6550. inline ::google::protobuf::RepeatedPtrField< ::std::string>*
  6551. TestAllTypesLite::mutable_repeated_bytes() {
  6552. // @@protoc_insertion_point(field_mutable_list:protobuf_unittest.TestAllTypesLite.repeated_bytes)
  6553. return &repeated_bytes_;
  6554. }
  6555. // repeated group RepeatedGroup = 46 { ... };
  6556. inline int TestAllTypesLite::repeatedgroup_size() const {
  6557. return repeatedgroup_.size();
  6558. }
  6559. inline void TestAllTypesLite::clear_repeatedgroup() {
  6560. repeatedgroup_.Clear();
  6561. }
  6562. inline ::protobuf_unittest::TestAllTypesLite_RepeatedGroup* TestAllTypesLite::mutable_repeatedgroup(int index) {
  6563. // @@protoc_insertion_point(field_mutable:protobuf_unittest.TestAllTypesLite.repeatedgroup)
  6564. return repeatedgroup_.Mutable(index);
  6565. }
  6566. inline ::google::protobuf::RepeatedPtrField< ::protobuf_unittest::TestAllTypesLite_RepeatedGroup >*
  6567. TestAllTypesLite::mutable_repeatedgroup() {
  6568. // @@protoc_insertion_point(field_mutable_list:protobuf_unittest.TestAllTypesLite.repeatedgroup)
  6569. return &repeatedgroup_;
  6570. }
  6571. inline const ::protobuf_unittest::TestAllTypesLite_RepeatedGroup& TestAllTypesLite::repeatedgroup(int index) const {
  6572. // @@protoc_insertion_point(field_get:protobuf_unittest.TestAllTypesLite.repeatedgroup)
  6573. return repeatedgroup_.Get(index);
  6574. }
  6575. inline ::protobuf_unittest::TestAllTypesLite_RepeatedGroup* TestAllTypesLite::add_repeatedgroup() {
  6576. // @@protoc_insertion_point(field_add:protobuf_unittest.TestAllTypesLite.repeatedgroup)
  6577. return repeatedgroup_.Add();
  6578. }
  6579. inline const ::google::protobuf::RepeatedPtrField< ::protobuf_unittest::TestAllTypesLite_RepeatedGroup >&
  6580. TestAllTypesLite::repeatedgroup() const {
  6581. // @@protoc_insertion_point(field_list:protobuf_unittest.TestAllTypesLite.repeatedgroup)
  6582. return repeatedgroup_;
  6583. }
  6584. // repeated .protobuf_unittest.TestAllTypesLite.NestedMessage repeated_nested_message = 48;
  6585. inline int TestAllTypesLite::repeated_nested_message_size() const {
  6586. return repeated_nested_message_.size();
  6587. }
  6588. inline void TestAllTypesLite::clear_repeated_nested_message() {
  6589. repeated_nested_message_.Clear();
  6590. }
  6591. inline ::protobuf_unittest::TestAllTypesLite_NestedMessage* TestAllTypesLite::mutable_repeated_nested_message(int index) {
  6592. // @@protoc_insertion_point(field_mutable:protobuf_unittest.TestAllTypesLite.repeated_nested_message)
  6593. return repeated_nested_message_.Mutable(index);
  6594. }
  6595. inline ::google::protobuf::RepeatedPtrField< ::protobuf_unittest::TestAllTypesLite_NestedMessage >*
  6596. TestAllTypesLite::mutable_repeated_nested_message() {
  6597. // @@protoc_insertion_point(field_mutable_list:protobuf_unittest.TestAllTypesLite.repeated_nested_message)
  6598. return &repeated_nested_message_;
  6599. }
  6600. inline const ::protobuf_unittest::TestAllTypesLite_NestedMessage& TestAllTypesLite::repeated_nested_message(int index) const {
  6601. // @@protoc_insertion_point(field_get:protobuf_unittest.TestAllTypesLite.repeated_nested_message)
  6602. return repeated_nested_message_.Get(index);
  6603. }
  6604. inline ::protobuf_unittest::TestAllTypesLite_NestedMessage* TestAllTypesLite::add_repeated_nested_message() {
  6605. // @@protoc_insertion_point(field_add:protobuf_unittest.TestAllTypesLite.repeated_nested_message)
  6606. return repeated_nested_message_.Add();
  6607. }
  6608. inline const ::google::protobuf::RepeatedPtrField< ::protobuf_unittest::TestAllTypesLite_NestedMessage >&
  6609. TestAllTypesLite::repeated_nested_message() const {
  6610. // @@protoc_insertion_point(field_list:protobuf_unittest.TestAllTypesLite.repeated_nested_message)
  6611. return repeated_nested_message_;
  6612. }
  6613. // repeated .protobuf_unittest.ForeignMessageLite repeated_foreign_message = 49;
  6614. inline int TestAllTypesLite::repeated_foreign_message_size() const {
  6615. return repeated_foreign_message_.size();
  6616. }
  6617. inline void TestAllTypesLite::clear_repeated_foreign_message() {
  6618. repeated_foreign_message_.Clear();
  6619. }
  6620. inline ::protobuf_unittest::ForeignMessageLite* TestAllTypesLite::mutable_repeated_foreign_message(int index) {
  6621. // @@protoc_insertion_point(field_mutable:protobuf_unittest.TestAllTypesLite.repeated_foreign_message)
  6622. return repeated_foreign_message_.Mutable(index);
  6623. }
  6624. inline ::google::protobuf::RepeatedPtrField< ::protobuf_unittest::ForeignMessageLite >*
  6625. TestAllTypesLite::mutable_repeated_foreign_message() {
  6626. // @@protoc_insertion_point(field_mutable_list:protobuf_unittest.TestAllTypesLite.repeated_foreign_message)
  6627. return &repeated_foreign_message_;
  6628. }
  6629. inline const ::protobuf_unittest::ForeignMessageLite& TestAllTypesLite::repeated_foreign_message(int index) const {
  6630. // @@protoc_insertion_point(field_get:protobuf_unittest.TestAllTypesLite.repeated_foreign_message)
  6631. return repeated_foreign_message_.Get(index);
  6632. }
  6633. inline ::protobuf_unittest::ForeignMessageLite* TestAllTypesLite::add_repeated_foreign_message() {
  6634. // @@protoc_insertion_point(field_add:protobuf_unittest.TestAllTypesLite.repeated_foreign_message)
  6635. return repeated_foreign_message_.Add();
  6636. }
  6637. inline const ::google::protobuf::RepeatedPtrField< ::protobuf_unittest::ForeignMessageLite >&
  6638. TestAllTypesLite::repeated_foreign_message() const {
  6639. // @@protoc_insertion_point(field_list:protobuf_unittest.TestAllTypesLite.repeated_foreign_message)
  6640. return repeated_foreign_message_;
  6641. }
  6642. // repeated .protobuf_unittest_import.ImportMessageLite repeated_import_message = 50;
  6643. inline int TestAllTypesLite::repeated_import_message_size() const {
  6644. return repeated_import_message_.size();
  6645. }
  6646. inline ::protobuf_unittest_import::ImportMessageLite* TestAllTypesLite::mutable_repeated_import_message(int index) {
  6647. // @@protoc_insertion_point(field_mutable:protobuf_unittest.TestAllTypesLite.repeated_import_message)
  6648. return repeated_import_message_.Mutable(index);
  6649. }
  6650. inline ::google::protobuf::RepeatedPtrField< ::protobuf_unittest_import::ImportMessageLite >*
  6651. TestAllTypesLite::mutable_repeated_import_message() {
  6652. // @@protoc_insertion_point(field_mutable_list:protobuf_unittest.TestAllTypesLite.repeated_import_message)
  6653. return &repeated_import_message_;
  6654. }
  6655. inline const ::protobuf_unittest_import::ImportMessageLite& TestAllTypesLite::repeated_import_message(int index) const {
  6656. // @@protoc_insertion_point(field_get:protobuf_unittest.TestAllTypesLite.repeated_import_message)
  6657. return repeated_import_message_.Get(index);
  6658. }
  6659. inline ::protobuf_unittest_import::ImportMessageLite* TestAllTypesLite::add_repeated_import_message() {
  6660. // @@protoc_insertion_point(field_add:protobuf_unittest.TestAllTypesLite.repeated_import_message)
  6661. return repeated_import_message_.Add();
  6662. }
  6663. inline const ::google::protobuf::RepeatedPtrField< ::protobuf_unittest_import::ImportMessageLite >&
  6664. TestAllTypesLite::repeated_import_message() const {
  6665. // @@protoc_insertion_point(field_list:protobuf_unittest.TestAllTypesLite.repeated_import_message)
  6666. return repeated_import_message_;
  6667. }
  6668. // repeated .protobuf_unittest.TestAllTypesLite.NestedEnum repeated_nested_enum = 51;
  6669. inline int TestAllTypesLite::repeated_nested_enum_size() const {
  6670. return repeated_nested_enum_.size();
  6671. }
  6672. inline void TestAllTypesLite::clear_repeated_nested_enum() {
  6673. repeated_nested_enum_.Clear();
  6674. }
  6675. inline ::protobuf_unittest::TestAllTypesLite_NestedEnum TestAllTypesLite::repeated_nested_enum(int index) const {
  6676. // @@protoc_insertion_point(field_get:protobuf_unittest.TestAllTypesLite.repeated_nested_enum)
  6677. return static_cast< ::protobuf_unittest::TestAllTypesLite_NestedEnum >(repeated_nested_enum_.Get(index));
  6678. }
  6679. inline void TestAllTypesLite::set_repeated_nested_enum(int index, ::protobuf_unittest::TestAllTypesLite_NestedEnum value) {
  6680. assert(::protobuf_unittest::TestAllTypesLite_NestedEnum_IsValid(value));
  6681. repeated_nested_enum_.Set(index, value);
  6682. // @@protoc_insertion_point(field_set:protobuf_unittest.TestAllTypesLite.repeated_nested_enum)
  6683. }
  6684. inline void TestAllTypesLite::add_repeated_nested_enum(::protobuf_unittest::TestAllTypesLite_NestedEnum value) {
  6685. assert(::protobuf_unittest::TestAllTypesLite_NestedEnum_IsValid(value));
  6686. repeated_nested_enum_.Add(value);
  6687. // @@protoc_insertion_point(field_add:protobuf_unittest.TestAllTypesLite.repeated_nested_enum)
  6688. }
  6689. inline const ::google::protobuf::RepeatedField<int>&
  6690. TestAllTypesLite::repeated_nested_enum() const {
  6691. // @@protoc_insertion_point(field_list:protobuf_unittest.TestAllTypesLite.repeated_nested_enum)
  6692. return repeated_nested_enum_;
  6693. }
  6694. inline ::google::protobuf::RepeatedField<int>*
  6695. TestAllTypesLite::mutable_repeated_nested_enum() {
  6696. // @@protoc_insertion_point(field_mutable_list:protobuf_unittest.TestAllTypesLite.repeated_nested_enum)
  6697. return &repeated_nested_enum_;
  6698. }
  6699. // repeated .protobuf_unittest.ForeignEnumLite repeated_foreign_enum = 52;
  6700. inline int TestAllTypesLite::repeated_foreign_enum_size() const {
  6701. return repeated_foreign_enum_.size();
  6702. }
  6703. inline void TestAllTypesLite::clear_repeated_foreign_enum() {
  6704. repeated_foreign_enum_.Clear();
  6705. }
  6706. inline ::protobuf_unittest::ForeignEnumLite TestAllTypesLite::repeated_foreign_enum(int index) const {
  6707. // @@protoc_insertion_point(field_get:protobuf_unittest.TestAllTypesLite.repeated_foreign_enum)
  6708. return static_cast< ::protobuf_unittest::ForeignEnumLite >(repeated_foreign_enum_.Get(index));
  6709. }
  6710. inline void TestAllTypesLite::set_repeated_foreign_enum(int index, ::protobuf_unittest::ForeignEnumLite value) {
  6711. assert(::protobuf_unittest::ForeignEnumLite_IsValid(value));
  6712. repeated_foreign_enum_.Set(index, value);
  6713. // @@protoc_insertion_point(field_set:protobuf_unittest.TestAllTypesLite.repeated_foreign_enum)
  6714. }
  6715. inline void TestAllTypesLite::add_repeated_foreign_enum(::protobuf_unittest::ForeignEnumLite value) {
  6716. assert(::protobuf_unittest::ForeignEnumLite_IsValid(value));
  6717. repeated_foreign_enum_.Add(value);
  6718. // @@protoc_insertion_point(field_add:protobuf_unittest.TestAllTypesLite.repeated_foreign_enum)
  6719. }
  6720. inline const ::google::protobuf::RepeatedField<int>&
  6721. TestAllTypesLite::repeated_foreign_enum() const {
  6722. // @@protoc_insertion_point(field_list:protobuf_unittest.TestAllTypesLite.repeated_foreign_enum)
  6723. return repeated_foreign_enum_;
  6724. }
  6725. inline ::google::protobuf::RepeatedField<int>*
  6726. TestAllTypesLite::mutable_repeated_foreign_enum() {
  6727. // @@protoc_insertion_point(field_mutable_list:protobuf_unittest.TestAllTypesLite.repeated_foreign_enum)
  6728. return &repeated_foreign_enum_;
  6729. }
  6730. // repeated .protobuf_unittest_import.ImportEnumLite repeated_import_enum = 53;
  6731. inline int TestAllTypesLite::repeated_import_enum_size() const {
  6732. return repeated_import_enum_.size();
  6733. }
  6734. inline void TestAllTypesLite::clear_repeated_import_enum() {
  6735. repeated_import_enum_.Clear();
  6736. }
  6737. inline ::protobuf_unittest_import::ImportEnumLite TestAllTypesLite::repeated_import_enum(int index) const {
  6738. // @@protoc_insertion_point(field_get:protobuf_unittest.TestAllTypesLite.repeated_import_enum)
  6739. return static_cast< ::protobuf_unittest_import::ImportEnumLite >(repeated_import_enum_.Get(index));
  6740. }
  6741. inline void TestAllTypesLite::set_repeated_import_enum(int index, ::protobuf_unittest_import::ImportEnumLite value) {
  6742. assert(::protobuf_unittest_import::ImportEnumLite_IsValid(value));
  6743. repeated_import_enum_.Set(index, value);
  6744. // @@protoc_insertion_point(field_set:protobuf_unittest.TestAllTypesLite.repeated_import_enum)
  6745. }
  6746. inline void TestAllTypesLite::add_repeated_import_enum(::protobuf_unittest_import::ImportEnumLite value) {
  6747. assert(::protobuf_unittest_import::ImportEnumLite_IsValid(value));
  6748. repeated_import_enum_.Add(value);
  6749. // @@protoc_insertion_point(field_add:protobuf_unittest.TestAllTypesLite.repeated_import_enum)
  6750. }
  6751. inline const ::google::protobuf::RepeatedField<int>&
  6752. TestAllTypesLite::repeated_import_enum() const {
  6753. // @@protoc_insertion_point(field_list:protobuf_unittest.TestAllTypesLite.repeated_import_enum)
  6754. return repeated_import_enum_;
  6755. }
  6756. inline ::google::protobuf::RepeatedField<int>*
  6757. TestAllTypesLite::mutable_repeated_import_enum() {
  6758. // @@protoc_insertion_point(field_mutable_list:protobuf_unittest.TestAllTypesLite.repeated_import_enum)
  6759. return &repeated_import_enum_;
  6760. }
  6761. // repeated string repeated_string_piece = 54 [ctype = STRING_PIECE];
  6762. inline int TestAllTypesLite::repeated_string_piece_size() const {
  6763. return repeated_string_piece_.size();
  6764. }
  6765. inline void TestAllTypesLite::clear_repeated_string_piece() {
  6766. repeated_string_piece_.Clear();
  6767. }
  6768. inline const ::std::string& TestAllTypesLite::repeated_string_piece(int index) const {
  6769. // @@protoc_insertion_point(field_get:protobuf_unittest.TestAllTypesLite.repeated_string_piece)
  6770. return repeated_string_piece_.Get(index);
  6771. }
  6772. inline ::std::string* TestAllTypesLite::mutable_repeated_string_piece(int index) {
  6773. // @@protoc_insertion_point(field_mutable:protobuf_unittest.TestAllTypesLite.repeated_string_piece)
  6774. return repeated_string_piece_.Mutable(index);
  6775. }
  6776. inline void TestAllTypesLite::set_repeated_string_piece(int index, const ::std::string& value) {
  6777. // @@protoc_insertion_point(field_set:protobuf_unittest.TestAllTypesLite.repeated_string_piece)
  6778. repeated_string_piece_.Mutable(index)->assign(value);
  6779. }
  6780. #if LANG_CXX11
  6781. inline void TestAllTypesLite::set_repeated_string_piece(int index, ::std::string&& value) {
  6782. // @@protoc_insertion_point(field_set:protobuf_unittest.TestAllTypesLite.repeated_string_piece)
  6783. repeated_string_piece_.Mutable(index)->assign(std::move(value));
  6784. }
  6785. #endif
  6786. inline void TestAllTypesLite::set_repeated_string_piece(int index, const char* value) {
  6787. GOOGLE_DCHECK(value != NULL);
  6788. repeated_string_piece_.Mutable(index)->assign(value);
  6789. // @@protoc_insertion_point(field_set_char:protobuf_unittest.TestAllTypesLite.repeated_string_piece)
  6790. }
  6791. inline void TestAllTypesLite::set_repeated_string_piece(int index, const char* value, size_t size) {
  6792. repeated_string_piece_.Mutable(index)->assign(
  6793. reinterpret_cast<const char*>(value), size);
  6794. // @@protoc_insertion_point(field_set_pointer:protobuf_unittest.TestAllTypesLite.repeated_string_piece)
  6795. }
  6796. inline ::std::string* TestAllTypesLite::add_repeated_string_piece() {
  6797. // @@protoc_insertion_point(field_add_mutable:protobuf_unittest.TestAllTypesLite.repeated_string_piece)
  6798. return repeated_string_piece_.Add();
  6799. }
  6800. inline void TestAllTypesLite::add_repeated_string_piece(const ::std::string& value) {
  6801. repeated_string_piece_.Add()->assign(value);
  6802. // @@protoc_insertion_point(field_add:protobuf_unittest.TestAllTypesLite.repeated_string_piece)
  6803. }
  6804. #if LANG_CXX11
  6805. inline void TestAllTypesLite::add_repeated_string_piece(::std::string&& value) {
  6806. repeated_string_piece_.Add(std::move(value));
  6807. // @@protoc_insertion_point(field_add:protobuf_unittest.TestAllTypesLite.repeated_string_piece)
  6808. }
  6809. #endif
  6810. inline void TestAllTypesLite::add_repeated_string_piece(const char* value) {
  6811. GOOGLE_DCHECK(value != NULL);
  6812. repeated_string_piece_.Add()->assign(value);
  6813. // @@protoc_insertion_point(field_add_char:protobuf_unittest.TestAllTypesLite.repeated_string_piece)
  6814. }
  6815. inline void TestAllTypesLite::add_repeated_string_piece(const char* value, size_t size) {
  6816. repeated_string_piece_.Add()->assign(reinterpret_cast<const char*>(value), size);
  6817. // @@protoc_insertion_point(field_add_pointer:protobuf_unittest.TestAllTypesLite.repeated_string_piece)
  6818. }
  6819. inline const ::google::protobuf::RepeatedPtrField< ::std::string>&
  6820. TestAllTypesLite::repeated_string_piece() const {
  6821. // @@protoc_insertion_point(field_list:protobuf_unittest.TestAllTypesLite.repeated_string_piece)
  6822. return repeated_string_piece_;
  6823. }
  6824. inline ::google::protobuf::RepeatedPtrField< ::std::string>*
  6825. TestAllTypesLite::mutable_repeated_string_piece() {
  6826. // @@protoc_insertion_point(field_mutable_list:protobuf_unittest.TestAllTypesLite.repeated_string_piece)
  6827. return &repeated_string_piece_;
  6828. }
  6829. // repeated string repeated_cord = 55 [ctype = CORD];
  6830. inline int TestAllTypesLite::repeated_cord_size() const {
  6831. return repeated_cord_.size();
  6832. }
  6833. inline void TestAllTypesLite::clear_repeated_cord() {
  6834. repeated_cord_.Clear();
  6835. }
  6836. inline const ::std::string& TestAllTypesLite::repeated_cord(int index) const {
  6837. // @@protoc_insertion_point(field_get:protobuf_unittest.TestAllTypesLite.repeated_cord)
  6838. return repeated_cord_.Get(index);
  6839. }
  6840. inline ::std::string* TestAllTypesLite::mutable_repeated_cord(int index) {
  6841. // @@protoc_insertion_point(field_mutable:protobuf_unittest.TestAllTypesLite.repeated_cord)
  6842. return repeated_cord_.Mutable(index);
  6843. }
  6844. inline void TestAllTypesLite::set_repeated_cord(int index, const ::std::string& value) {
  6845. // @@protoc_insertion_point(field_set:protobuf_unittest.TestAllTypesLite.repeated_cord)
  6846. repeated_cord_.Mutable(index)->assign(value);
  6847. }
  6848. #if LANG_CXX11
  6849. inline void TestAllTypesLite::set_repeated_cord(int index, ::std::string&& value) {
  6850. // @@protoc_insertion_point(field_set:protobuf_unittest.TestAllTypesLite.repeated_cord)
  6851. repeated_cord_.Mutable(index)->assign(std::move(value));
  6852. }
  6853. #endif
  6854. inline void TestAllTypesLite::set_repeated_cord(int index, const char* value) {
  6855. GOOGLE_DCHECK(value != NULL);
  6856. repeated_cord_.Mutable(index)->assign(value);
  6857. // @@protoc_insertion_point(field_set_char:protobuf_unittest.TestAllTypesLite.repeated_cord)
  6858. }
  6859. inline void TestAllTypesLite::set_repeated_cord(int index, const char* value, size_t size) {
  6860. repeated_cord_.Mutable(index)->assign(
  6861. reinterpret_cast<const char*>(value), size);
  6862. // @@protoc_insertion_point(field_set_pointer:protobuf_unittest.TestAllTypesLite.repeated_cord)
  6863. }
  6864. inline ::std::string* TestAllTypesLite::add_repeated_cord() {
  6865. // @@protoc_insertion_point(field_add_mutable:protobuf_unittest.TestAllTypesLite.repeated_cord)
  6866. return repeated_cord_.Add();
  6867. }
  6868. inline void TestAllTypesLite::add_repeated_cord(const ::std::string& value) {
  6869. repeated_cord_.Add()->assign(value);
  6870. // @@protoc_insertion_point(field_add:protobuf_unittest.TestAllTypesLite.repeated_cord)
  6871. }
  6872. #if LANG_CXX11
  6873. inline void TestAllTypesLite::add_repeated_cord(::std::string&& value) {
  6874. repeated_cord_.Add(std::move(value));
  6875. // @@protoc_insertion_point(field_add:protobuf_unittest.TestAllTypesLite.repeated_cord)
  6876. }
  6877. #endif
  6878. inline void TestAllTypesLite::add_repeated_cord(const char* value) {
  6879. GOOGLE_DCHECK(value != NULL);
  6880. repeated_cord_.Add()->assign(value);
  6881. // @@protoc_insertion_point(field_add_char:protobuf_unittest.TestAllTypesLite.repeated_cord)
  6882. }
  6883. inline void TestAllTypesLite::add_repeated_cord(const char* value, size_t size) {
  6884. repeated_cord_.Add()->assign(reinterpret_cast<const char*>(value), size);
  6885. // @@protoc_insertion_point(field_add_pointer:protobuf_unittest.TestAllTypesLite.repeated_cord)
  6886. }
  6887. inline const ::google::protobuf::RepeatedPtrField< ::std::string>&
  6888. TestAllTypesLite::repeated_cord() const {
  6889. // @@protoc_insertion_point(field_list:protobuf_unittest.TestAllTypesLite.repeated_cord)
  6890. return repeated_cord_;
  6891. }
  6892. inline ::google::protobuf::RepeatedPtrField< ::std::string>*
  6893. TestAllTypesLite::mutable_repeated_cord() {
  6894. // @@protoc_insertion_point(field_mutable_list:protobuf_unittest.TestAllTypesLite.repeated_cord)
  6895. return &repeated_cord_;
  6896. }
  6897. // repeated .protobuf_unittest.TestAllTypesLite.NestedMessage repeated_lazy_message = 57 [lazy = true];
  6898. inline int TestAllTypesLite::repeated_lazy_message_size() const {
  6899. return repeated_lazy_message_.size();
  6900. }
  6901. inline void TestAllTypesLite::clear_repeated_lazy_message() {
  6902. repeated_lazy_message_.Clear();
  6903. }
  6904. inline ::protobuf_unittest::TestAllTypesLite_NestedMessage* TestAllTypesLite::mutable_repeated_lazy_message(int index) {
  6905. // @@protoc_insertion_point(field_mutable:protobuf_unittest.TestAllTypesLite.repeated_lazy_message)
  6906. return repeated_lazy_message_.Mutable(index);
  6907. }
  6908. inline ::google::protobuf::RepeatedPtrField< ::protobuf_unittest::TestAllTypesLite_NestedMessage >*
  6909. TestAllTypesLite::mutable_repeated_lazy_message() {
  6910. // @@protoc_insertion_point(field_mutable_list:protobuf_unittest.TestAllTypesLite.repeated_lazy_message)
  6911. return &repeated_lazy_message_;
  6912. }
  6913. inline const ::protobuf_unittest::TestAllTypesLite_NestedMessage& TestAllTypesLite::repeated_lazy_message(int index) const {
  6914. // @@protoc_insertion_point(field_get:protobuf_unittest.TestAllTypesLite.repeated_lazy_message)
  6915. return repeated_lazy_message_.Get(index);
  6916. }
  6917. inline ::protobuf_unittest::TestAllTypesLite_NestedMessage* TestAllTypesLite::add_repeated_lazy_message() {
  6918. // @@protoc_insertion_point(field_add:protobuf_unittest.TestAllTypesLite.repeated_lazy_message)
  6919. return repeated_lazy_message_.Add();
  6920. }
  6921. inline const ::google::protobuf::RepeatedPtrField< ::protobuf_unittest::TestAllTypesLite_NestedMessage >&
  6922. TestAllTypesLite::repeated_lazy_message() const {
  6923. // @@protoc_insertion_point(field_list:protobuf_unittest.TestAllTypesLite.repeated_lazy_message)
  6924. return repeated_lazy_message_;
  6925. }
  6926. // optional int32 default_int32 = 61 [default = 41];
  6927. inline bool TestAllTypesLite::has_default_int32() const {
  6928. return (_has_bits_[1] & 0x00000001u) != 0;
  6929. }
  6930. inline void TestAllTypesLite::set_has_default_int32() {
  6931. _has_bits_[1] |= 0x00000001u;
  6932. }
  6933. inline void TestAllTypesLite::clear_has_default_int32() {
  6934. _has_bits_[1] &= ~0x00000001u;
  6935. }
  6936. inline void TestAllTypesLite::clear_default_int32() {
  6937. default_int32_ = 41;
  6938. clear_has_default_int32();
  6939. }
  6940. inline ::google::protobuf::int32 TestAllTypesLite::default_int32() const {
  6941. // @@protoc_insertion_point(field_get:protobuf_unittest.TestAllTypesLite.default_int32)
  6942. return default_int32_;
  6943. }
  6944. inline void TestAllTypesLite::set_default_int32(::google::protobuf::int32 value) {
  6945. set_has_default_int32();
  6946. default_int32_ = value;
  6947. // @@protoc_insertion_point(field_set:protobuf_unittest.TestAllTypesLite.default_int32)
  6948. }
  6949. // optional int64 default_int64 = 62 [default = 42];
  6950. inline bool TestAllTypesLite::has_default_int64() const {
  6951. return (_has_bits_[1] & 0x00000002u) != 0;
  6952. }
  6953. inline void TestAllTypesLite::set_has_default_int64() {
  6954. _has_bits_[1] |= 0x00000002u;
  6955. }
  6956. inline void TestAllTypesLite::clear_has_default_int64() {
  6957. _has_bits_[1] &= ~0x00000002u;
  6958. }
  6959. inline void TestAllTypesLite::clear_default_int64() {
  6960. default_int64_ = GOOGLE_LONGLONG(42);
  6961. clear_has_default_int64();
  6962. }
  6963. inline ::google::protobuf::int64 TestAllTypesLite::default_int64() const {
  6964. // @@protoc_insertion_point(field_get:protobuf_unittest.TestAllTypesLite.default_int64)
  6965. return default_int64_;
  6966. }
  6967. inline void TestAllTypesLite::set_default_int64(::google::protobuf::int64 value) {
  6968. set_has_default_int64();
  6969. default_int64_ = value;
  6970. // @@protoc_insertion_point(field_set:protobuf_unittest.TestAllTypesLite.default_int64)
  6971. }
  6972. // optional uint32 default_uint32 = 63 [default = 43];
  6973. inline bool TestAllTypesLite::has_default_uint32() const {
  6974. return (_has_bits_[1] & 0x00000008u) != 0;
  6975. }
  6976. inline void TestAllTypesLite::set_has_default_uint32() {
  6977. _has_bits_[1] |= 0x00000008u;
  6978. }
  6979. inline void TestAllTypesLite::clear_has_default_uint32() {
  6980. _has_bits_[1] &= ~0x00000008u;
  6981. }
  6982. inline void TestAllTypesLite::clear_default_uint32() {
  6983. default_uint32_ = 43u;
  6984. clear_has_default_uint32();
  6985. }
  6986. inline ::google::protobuf::uint32 TestAllTypesLite::default_uint32() const {
  6987. // @@protoc_insertion_point(field_get:protobuf_unittest.TestAllTypesLite.default_uint32)
  6988. return default_uint32_;
  6989. }
  6990. inline void TestAllTypesLite::set_default_uint32(::google::protobuf::uint32 value) {
  6991. set_has_default_uint32();
  6992. default_uint32_ = value;
  6993. // @@protoc_insertion_point(field_set:protobuf_unittest.TestAllTypesLite.default_uint32)
  6994. }
  6995. // optional uint64 default_uint64 = 64 [default = 44];
  6996. inline bool TestAllTypesLite::has_default_uint64() const {
  6997. return (_has_bits_[1] & 0x00000004u) != 0;
  6998. }
  6999. inline void TestAllTypesLite::set_has_default_uint64() {
  7000. _has_bits_[1] |= 0x00000004u;
  7001. }
  7002. inline void TestAllTypesLite::clear_has_default_uint64() {
  7003. _has_bits_[1] &= ~0x00000004u;
  7004. }
  7005. inline void TestAllTypesLite::clear_default_uint64() {
  7006. default_uint64_ = GOOGLE_ULONGLONG(44);
  7007. clear_has_default_uint64();
  7008. }
  7009. inline ::google::protobuf::uint64 TestAllTypesLite::default_uint64() const {
  7010. // @@protoc_insertion_point(field_get:protobuf_unittest.TestAllTypesLite.default_uint64)
  7011. return default_uint64_;
  7012. }
  7013. inline void TestAllTypesLite::set_default_uint64(::google::protobuf::uint64 value) {
  7014. set_has_default_uint64();
  7015. default_uint64_ = value;
  7016. // @@protoc_insertion_point(field_set:protobuf_unittest.TestAllTypesLite.default_uint64)
  7017. }
  7018. // optional sint32 default_sint32 = 65 [default = -45];
  7019. inline bool TestAllTypesLite::has_default_sint32() const {
  7020. return (_has_bits_[1] & 0x00000010u) != 0;
  7021. }
  7022. inline void TestAllTypesLite::set_has_default_sint32() {
  7023. _has_bits_[1] |= 0x00000010u;
  7024. }
  7025. inline void TestAllTypesLite::clear_has_default_sint32() {
  7026. _has_bits_[1] &= ~0x00000010u;
  7027. }
  7028. inline void TestAllTypesLite::clear_default_sint32() {
  7029. default_sint32_ = -45;
  7030. clear_has_default_sint32();
  7031. }
  7032. inline ::google::protobuf::int32 TestAllTypesLite::default_sint32() const {
  7033. // @@protoc_insertion_point(field_get:protobuf_unittest.TestAllTypesLite.default_sint32)
  7034. return default_sint32_;
  7035. }
  7036. inline void TestAllTypesLite::set_default_sint32(::google::protobuf::int32 value) {
  7037. set_has_default_sint32();
  7038. default_sint32_ = value;
  7039. // @@protoc_insertion_point(field_set:protobuf_unittest.TestAllTypesLite.default_sint32)
  7040. }
  7041. // optional sint64 default_sint64 = 66 [default = 46];
  7042. inline bool TestAllTypesLite::has_default_sint64() const {
  7043. return (_has_bits_[1] & 0x00000020u) != 0;
  7044. }
  7045. inline void TestAllTypesLite::set_has_default_sint64() {
  7046. _has_bits_[1] |= 0x00000020u;
  7047. }
  7048. inline void TestAllTypesLite::clear_has_default_sint64() {
  7049. _has_bits_[1] &= ~0x00000020u;
  7050. }
  7051. inline void TestAllTypesLite::clear_default_sint64() {
  7052. default_sint64_ = GOOGLE_LONGLONG(46);
  7053. clear_has_default_sint64();
  7054. }
  7055. inline ::google::protobuf::int64 TestAllTypesLite::default_sint64() const {
  7056. // @@protoc_insertion_point(field_get:protobuf_unittest.TestAllTypesLite.default_sint64)
  7057. return default_sint64_;
  7058. }
  7059. inline void TestAllTypesLite::set_default_sint64(::google::protobuf::int64 value) {
  7060. set_has_default_sint64();
  7061. default_sint64_ = value;
  7062. // @@protoc_insertion_point(field_set:protobuf_unittest.TestAllTypesLite.default_sint64)
  7063. }
  7064. // optional fixed32 default_fixed32 = 67 [default = 47];
  7065. inline bool TestAllTypesLite::has_default_fixed32() const {
  7066. return (_has_bits_[1] & 0x00000080u) != 0;
  7067. }
  7068. inline void TestAllTypesLite::set_has_default_fixed32() {
  7069. _has_bits_[1] |= 0x00000080u;
  7070. }
  7071. inline void TestAllTypesLite::clear_has_default_fixed32() {
  7072. _has_bits_[1] &= ~0x00000080u;
  7073. }
  7074. inline void TestAllTypesLite::clear_default_fixed32() {
  7075. default_fixed32_ = 47u;
  7076. clear_has_default_fixed32();
  7077. }
  7078. inline ::google::protobuf::uint32 TestAllTypesLite::default_fixed32() const {
  7079. // @@protoc_insertion_point(field_get:protobuf_unittest.TestAllTypesLite.default_fixed32)
  7080. return default_fixed32_;
  7081. }
  7082. inline void TestAllTypesLite::set_default_fixed32(::google::protobuf::uint32 value) {
  7083. set_has_default_fixed32();
  7084. default_fixed32_ = value;
  7085. // @@protoc_insertion_point(field_set:protobuf_unittest.TestAllTypesLite.default_fixed32)
  7086. }
  7087. // optional fixed64 default_fixed64 = 68 [default = 48];
  7088. inline bool TestAllTypesLite::has_default_fixed64() const {
  7089. return (_has_bits_[1] & 0x00000040u) != 0;
  7090. }
  7091. inline void TestAllTypesLite::set_has_default_fixed64() {
  7092. _has_bits_[1] |= 0x00000040u;
  7093. }
  7094. inline void TestAllTypesLite::clear_has_default_fixed64() {
  7095. _has_bits_[1] &= ~0x00000040u;
  7096. }
  7097. inline void TestAllTypesLite::clear_default_fixed64() {
  7098. default_fixed64_ = GOOGLE_ULONGLONG(48);
  7099. clear_has_default_fixed64();
  7100. }
  7101. inline ::google::protobuf::uint64 TestAllTypesLite::default_fixed64() const {
  7102. // @@protoc_insertion_point(field_get:protobuf_unittest.TestAllTypesLite.default_fixed64)
  7103. return default_fixed64_;
  7104. }
  7105. inline void TestAllTypesLite::set_default_fixed64(::google::protobuf::uint64 value) {
  7106. set_has_default_fixed64();
  7107. default_fixed64_ = value;
  7108. // @@protoc_insertion_point(field_set:protobuf_unittest.TestAllTypesLite.default_fixed64)
  7109. }
  7110. // optional sfixed32 default_sfixed32 = 69 [default = 49];
  7111. inline bool TestAllTypesLite::has_default_sfixed32() const {
  7112. return (_has_bits_[1] & 0x00000100u) != 0;
  7113. }
  7114. inline void TestAllTypesLite::set_has_default_sfixed32() {
  7115. _has_bits_[1] |= 0x00000100u;
  7116. }
  7117. inline void TestAllTypesLite::clear_has_default_sfixed32() {
  7118. _has_bits_[1] &= ~0x00000100u;
  7119. }
  7120. inline void TestAllTypesLite::clear_default_sfixed32() {
  7121. default_sfixed32_ = 49;
  7122. clear_has_default_sfixed32();
  7123. }
  7124. inline ::google::protobuf::int32 TestAllTypesLite::default_sfixed32() const {
  7125. // @@protoc_insertion_point(field_get:protobuf_unittest.TestAllTypesLite.default_sfixed32)
  7126. return default_sfixed32_;
  7127. }
  7128. inline void TestAllTypesLite::set_default_sfixed32(::google::protobuf::int32 value) {
  7129. set_has_default_sfixed32();
  7130. default_sfixed32_ = value;
  7131. // @@protoc_insertion_point(field_set:protobuf_unittest.TestAllTypesLite.default_sfixed32)
  7132. }
  7133. // optional sfixed64 default_sfixed64 = 70 [default = -50];
  7134. inline bool TestAllTypesLite::has_default_sfixed64() const {
  7135. return (_has_bits_[1] & 0x00000200u) != 0;
  7136. }
  7137. inline void TestAllTypesLite::set_has_default_sfixed64() {
  7138. _has_bits_[1] |= 0x00000200u;
  7139. }
  7140. inline void TestAllTypesLite::clear_has_default_sfixed64() {
  7141. _has_bits_[1] &= ~0x00000200u;
  7142. }
  7143. inline void TestAllTypesLite::clear_default_sfixed64() {
  7144. default_sfixed64_ = GOOGLE_LONGLONG(-50);
  7145. clear_has_default_sfixed64();
  7146. }
  7147. inline ::google::protobuf::int64 TestAllTypesLite::default_sfixed64() const {
  7148. // @@protoc_insertion_point(field_get:protobuf_unittest.TestAllTypesLite.default_sfixed64)
  7149. return default_sfixed64_;
  7150. }
  7151. inline void TestAllTypesLite::set_default_sfixed64(::google::protobuf::int64 value) {
  7152. set_has_default_sfixed64();
  7153. default_sfixed64_ = value;
  7154. // @@protoc_insertion_point(field_set:protobuf_unittest.TestAllTypesLite.default_sfixed64)
  7155. }
  7156. // optional float default_float = 71 [default = 51.5];
  7157. inline bool TestAllTypesLite::has_default_float() const {
  7158. return (_has_bits_[1] & 0x00000800u) != 0;
  7159. }
  7160. inline void TestAllTypesLite::set_has_default_float() {
  7161. _has_bits_[1] |= 0x00000800u;
  7162. }
  7163. inline void TestAllTypesLite::clear_has_default_float() {
  7164. _has_bits_[1] &= ~0x00000800u;
  7165. }
  7166. inline void TestAllTypesLite::clear_default_float() {
  7167. default_float_ = 51.5f;
  7168. clear_has_default_float();
  7169. }
  7170. inline float TestAllTypesLite::default_float() const {
  7171. // @@protoc_insertion_point(field_get:protobuf_unittest.TestAllTypesLite.default_float)
  7172. return default_float_;
  7173. }
  7174. inline void TestAllTypesLite::set_default_float(float value) {
  7175. set_has_default_float();
  7176. default_float_ = value;
  7177. // @@protoc_insertion_point(field_set:protobuf_unittest.TestAllTypesLite.default_float)
  7178. }
  7179. // optional double default_double = 72 [default = 52000];
  7180. inline bool TestAllTypesLite::has_default_double() const {
  7181. return (_has_bits_[1] & 0x00000400u) != 0;
  7182. }
  7183. inline void TestAllTypesLite::set_has_default_double() {
  7184. _has_bits_[1] |= 0x00000400u;
  7185. }
  7186. inline void TestAllTypesLite::clear_has_default_double() {
  7187. _has_bits_[1] &= ~0x00000400u;
  7188. }
  7189. inline void TestAllTypesLite::clear_default_double() {
  7190. default_double_ = 52000;
  7191. clear_has_default_double();
  7192. }
  7193. inline double TestAllTypesLite::default_double() const {
  7194. // @@protoc_insertion_point(field_get:protobuf_unittest.TestAllTypesLite.default_double)
  7195. return default_double_;
  7196. }
  7197. inline void TestAllTypesLite::set_default_double(double value) {
  7198. set_has_default_double();
  7199. default_double_ = value;
  7200. // @@protoc_insertion_point(field_set:protobuf_unittest.TestAllTypesLite.default_double)
  7201. }
  7202. // optional bool default_bool = 73 [default = true];
  7203. inline bool TestAllTypesLite::has_default_bool() const {
  7204. return (_has_bits_[1] & 0x00001000u) != 0;
  7205. }
  7206. inline void TestAllTypesLite::set_has_default_bool() {
  7207. _has_bits_[1] |= 0x00001000u;
  7208. }
  7209. inline void TestAllTypesLite::clear_has_default_bool() {
  7210. _has_bits_[1] &= ~0x00001000u;
  7211. }
  7212. inline void TestAllTypesLite::clear_default_bool() {
  7213. default_bool_ = true;
  7214. clear_has_default_bool();
  7215. }
  7216. inline bool TestAllTypesLite::default_bool() const {
  7217. // @@protoc_insertion_point(field_get:protobuf_unittest.TestAllTypesLite.default_bool)
  7218. return default_bool_;
  7219. }
  7220. inline void TestAllTypesLite::set_default_bool(bool value) {
  7221. set_has_default_bool();
  7222. default_bool_ = value;
  7223. // @@protoc_insertion_point(field_set:protobuf_unittest.TestAllTypesLite.default_bool)
  7224. }
  7225. // optional string default_string = 74 [default = "hello"];
  7226. inline bool TestAllTypesLite::has_default_string() const {
  7227. return (_has_bits_[0] & 0x00000010u) != 0;
  7228. }
  7229. inline void TestAllTypesLite::set_has_default_string() {
  7230. _has_bits_[0] |= 0x00000010u;
  7231. }
  7232. inline void TestAllTypesLite::clear_has_default_string() {
  7233. _has_bits_[0] &= ~0x00000010u;
  7234. }
  7235. inline void TestAllTypesLite::clear_default_string() {
  7236. default_string_.ClearToDefaultNoArena(&::protobuf_unittest::TestAllTypesLite::_i_give_permission_to_break_this_code_default_default_string_.get());
  7237. clear_has_default_string();
  7238. }
  7239. inline const ::std::string& TestAllTypesLite::default_string() const {
  7240. // @@protoc_insertion_point(field_get:protobuf_unittest.TestAllTypesLite.default_string)
  7241. return default_string_.GetNoArena();
  7242. }
  7243. inline void TestAllTypesLite::set_default_string(const ::std::string& value) {
  7244. set_has_default_string();
  7245. default_string_.SetNoArena(&::protobuf_unittest::TestAllTypesLite::_i_give_permission_to_break_this_code_default_default_string_.get(), value);
  7246. // @@protoc_insertion_point(field_set:protobuf_unittest.TestAllTypesLite.default_string)
  7247. }
  7248. #if LANG_CXX11
  7249. inline void TestAllTypesLite::set_default_string(::std::string&& value) {
  7250. set_has_default_string();
  7251. default_string_.SetNoArena(
  7252. &::protobuf_unittest::TestAllTypesLite::_i_give_permission_to_break_this_code_default_default_string_.get(), ::std::move(value));
  7253. // @@protoc_insertion_point(field_set_rvalue:protobuf_unittest.TestAllTypesLite.default_string)
  7254. }
  7255. #endif
  7256. inline void TestAllTypesLite::set_default_string(const char* value) {
  7257. GOOGLE_DCHECK(value != NULL);
  7258. set_has_default_string();
  7259. default_string_.SetNoArena(&::protobuf_unittest::TestAllTypesLite::_i_give_permission_to_break_this_code_default_default_string_.get(), ::std::string(value));
  7260. // @@protoc_insertion_point(field_set_char:protobuf_unittest.TestAllTypesLite.default_string)
  7261. }
  7262. inline void TestAllTypesLite::set_default_string(const char* value, size_t size) {
  7263. set_has_default_string();
  7264. default_string_.SetNoArena(&::protobuf_unittest::TestAllTypesLite::_i_give_permission_to_break_this_code_default_default_string_.get(),
  7265. ::std::string(reinterpret_cast<const char*>(value), size));
  7266. // @@protoc_insertion_point(field_set_pointer:protobuf_unittest.TestAllTypesLite.default_string)
  7267. }
  7268. inline ::std::string* TestAllTypesLite::mutable_default_string() {
  7269. set_has_default_string();
  7270. // @@protoc_insertion_point(field_mutable:protobuf_unittest.TestAllTypesLite.default_string)
  7271. return default_string_.MutableNoArena(&::protobuf_unittest::TestAllTypesLite::_i_give_permission_to_break_this_code_default_default_string_.get());
  7272. }
  7273. inline ::std::string* TestAllTypesLite::release_default_string() {
  7274. // @@protoc_insertion_point(field_release:protobuf_unittest.TestAllTypesLite.default_string)
  7275. if (!has_default_string()) {
  7276. return NULL;
  7277. }
  7278. clear_has_default_string();
  7279. return default_string_.ReleaseNonDefaultNoArena(&::protobuf_unittest::TestAllTypesLite::_i_give_permission_to_break_this_code_default_default_string_.get());
  7280. }
  7281. inline void TestAllTypesLite::set_allocated_default_string(::std::string* default_string) {
  7282. if (default_string != NULL) {
  7283. set_has_default_string();
  7284. } else {
  7285. clear_has_default_string();
  7286. }
  7287. default_string_.SetAllocatedNoArena(&::protobuf_unittest::TestAllTypesLite::_i_give_permission_to_break_this_code_default_default_string_.get(), default_string);
  7288. // @@protoc_insertion_point(field_set_allocated:protobuf_unittest.TestAllTypesLite.default_string)
  7289. }
  7290. // optional bytes default_bytes = 75 [default = "world"];
  7291. inline bool TestAllTypesLite::has_default_bytes() const {
  7292. return (_has_bits_[0] & 0x00000020u) != 0;
  7293. }
  7294. inline void TestAllTypesLite::set_has_default_bytes() {
  7295. _has_bits_[0] |= 0x00000020u;
  7296. }
  7297. inline void TestAllTypesLite::clear_has_default_bytes() {
  7298. _has_bits_[0] &= ~0x00000020u;
  7299. }
  7300. inline void TestAllTypesLite::clear_default_bytes() {
  7301. default_bytes_.ClearToDefaultNoArena(&::protobuf_unittest::TestAllTypesLite::_i_give_permission_to_break_this_code_default_default_bytes_.get());
  7302. clear_has_default_bytes();
  7303. }
  7304. inline const ::std::string& TestAllTypesLite::default_bytes() const {
  7305. // @@protoc_insertion_point(field_get:protobuf_unittest.TestAllTypesLite.default_bytes)
  7306. return default_bytes_.GetNoArena();
  7307. }
  7308. inline void TestAllTypesLite::set_default_bytes(const ::std::string& value) {
  7309. set_has_default_bytes();
  7310. default_bytes_.SetNoArena(&::protobuf_unittest::TestAllTypesLite::_i_give_permission_to_break_this_code_default_default_bytes_.get(), value);
  7311. // @@protoc_insertion_point(field_set:protobuf_unittest.TestAllTypesLite.default_bytes)
  7312. }
  7313. #if LANG_CXX11
  7314. inline void TestAllTypesLite::set_default_bytes(::std::string&& value) {
  7315. set_has_default_bytes();
  7316. default_bytes_.SetNoArena(
  7317. &::protobuf_unittest::TestAllTypesLite::_i_give_permission_to_break_this_code_default_default_bytes_.get(), ::std::move(value));
  7318. // @@protoc_insertion_point(field_set_rvalue:protobuf_unittest.TestAllTypesLite.default_bytes)
  7319. }
  7320. #endif
  7321. inline void TestAllTypesLite::set_default_bytes(const char* value) {
  7322. GOOGLE_DCHECK(value != NULL);
  7323. set_has_default_bytes();
  7324. default_bytes_.SetNoArena(&::protobuf_unittest::TestAllTypesLite::_i_give_permission_to_break_this_code_default_default_bytes_.get(), ::std::string(value));
  7325. // @@protoc_insertion_point(field_set_char:protobuf_unittest.TestAllTypesLite.default_bytes)
  7326. }
  7327. inline void TestAllTypesLite::set_default_bytes(const void* value, size_t size) {
  7328. set_has_default_bytes();
  7329. default_bytes_.SetNoArena(&::protobuf_unittest::TestAllTypesLite::_i_give_permission_to_break_this_code_default_default_bytes_.get(),
  7330. ::std::string(reinterpret_cast<const char*>(value), size));
  7331. // @@protoc_insertion_point(field_set_pointer:protobuf_unittest.TestAllTypesLite.default_bytes)
  7332. }
  7333. inline ::std::string* TestAllTypesLite::mutable_default_bytes() {
  7334. set_has_default_bytes();
  7335. // @@protoc_insertion_point(field_mutable:protobuf_unittest.TestAllTypesLite.default_bytes)
  7336. return default_bytes_.MutableNoArena(&::protobuf_unittest::TestAllTypesLite::_i_give_permission_to_break_this_code_default_default_bytes_.get());
  7337. }
  7338. inline ::std::string* TestAllTypesLite::release_default_bytes() {
  7339. // @@protoc_insertion_point(field_release:protobuf_unittest.TestAllTypesLite.default_bytes)
  7340. if (!has_default_bytes()) {
  7341. return NULL;
  7342. }
  7343. clear_has_default_bytes();
  7344. return default_bytes_.ReleaseNonDefaultNoArena(&::protobuf_unittest::TestAllTypesLite::_i_give_permission_to_break_this_code_default_default_bytes_.get());
  7345. }
  7346. inline void TestAllTypesLite::set_allocated_default_bytes(::std::string* default_bytes) {
  7347. if (default_bytes != NULL) {
  7348. set_has_default_bytes();
  7349. } else {
  7350. clear_has_default_bytes();
  7351. }
  7352. default_bytes_.SetAllocatedNoArena(&::protobuf_unittest::TestAllTypesLite::_i_give_permission_to_break_this_code_default_default_bytes_.get(), default_bytes);
  7353. // @@protoc_insertion_point(field_set_allocated:protobuf_unittest.TestAllTypesLite.default_bytes)
  7354. }
  7355. // optional .protobuf_unittest.TestAllTypesLite.NestedEnum default_nested_enum = 81 [default = BAR];
  7356. inline bool TestAllTypesLite::has_default_nested_enum() const {
  7357. return (_has_bits_[1] & 0x00002000u) != 0;
  7358. }
  7359. inline void TestAllTypesLite::set_has_default_nested_enum() {
  7360. _has_bits_[1] |= 0x00002000u;
  7361. }
  7362. inline void TestAllTypesLite::clear_has_default_nested_enum() {
  7363. _has_bits_[1] &= ~0x00002000u;
  7364. }
  7365. inline void TestAllTypesLite::clear_default_nested_enum() {
  7366. default_nested_enum_ = 2;
  7367. clear_has_default_nested_enum();
  7368. }
  7369. inline ::protobuf_unittest::TestAllTypesLite_NestedEnum TestAllTypesLite::default_nested_enum() const {
  7370. // @@protoc_insertion_point(field_get:protobuf_unittest.TestAllTypesLite.default_nested_enum)
  7371. return static_cast< ::protobuf_unittest::TestAllTypesLite_NestedEnum >(default_nested_enum_);
  7372. }
  7373. inline void TestAllTypesLite::set_default_nested_enum(::protobuf_unittest::TestAllTypesLite_NestedEnum value) {
  7374. assert(::protobuf_unittest::TestAllTypesLite_NestedEnum_IsValid(value));
  7375. set_has_default_nested_enum();
  7376. default_nested_enum_ = value;
  7377. // @@protoc_insertion_point(field_set:protobuf_unittest.TestAllTypesLite.default_nested_enum)
  7378. }
  7379. // optional .protobuf_unittest.ForeignEnumLite default_foreign_enum = 82 [default = FOREIGN_LITE_BAR];
  7380. inline bool TestAllTypesLite::has_default_foreign_enum() const {
  7381. return (_has_bits_[1] & 0x00004000u) != 0;
  7382. }
  7383. inline void TestAllTypesLite::set_has_default_foreign_enum() {
  7384. _has_bits_[1] |= 0x00004000u;
  7385. }
  7386. inline void TestAllTypesLite::clear_has_default_foreign_enum() {
  7387. _has_bits_[1] &= ~0x00004000u;
  7388. }
  7389. inline void TestAllTypesLite::clear_default_foreign_enum() {
  7390. default_foreign_enum_ = 5;
  7391. clear_has_default_foreign_enum();
  7392. }
  7393. inline ::protobuf_unittest::ForeignEnumLite TestAllTypesLite::default_foreign_enum() const {
  7394. // @@protoc_insertion_point(field_get:protobuf_unittest.TestAllTypesLite.default_foreign_enum)
  7395. return static_cast< ::protobuf_unittest::ForeignEnumLite >(default_foreign_enum_);
  7396. }
  7397. inline void TestAllTypesLite::set_default_foreign_enum(::protobuf_unittest::ForeignEnumLite value) {
  7398. assert(::protobuf_unittest::ForeignEnumLite_IsValid(value));
  7399. set_has_default_foreign_enum();
  7400. default_foreign_enum_ = value;
  7401. // @@protoc_insertion_point(field_set:protobuf_unittest.TestAllTypesLite.default_foreign_enum)
  7402. }
  7403. // optional .protobuf_unittest_import.ImportEnumLite default_import_enum = 83 [default = IMPORT_LITE_BAR];
  7404. inline bool TestAllTypesLite::has_default_import_enum() const {
  7405. return (_has_bits_[0] & 0x10000000u) != 0;
  7406. }
  7407. inline void TestAllTypesLite::set_has_default_import_enum() {
  7408. _has_bits_[0] |= 0x10000000u;
  7409. }
  7410. inline void TestAllTypesLite::clear_has_default_import_enum() {
  7411. _has_bits_[0] &= ~0x10000000u;
  7412. }
  7413. inline void TestAllTypesLite::clear_default_import_enum() {
  7414. default_import_enum_ = 8;
  7415. clear_has_default_import_enum();
  7416. }
  7417. inline ::protobuf_unittest_import::ImportEnumLite TestAllTypesLite::default_import_enum() const {
  7418. // @@protoc_insertion_point(field_get:protobuf_unittest.TestAllTypesLite.default_import_enum)
  7419. return static_cast< ::protobuf_unittest_import::ImportEnumLite >(default_import_enum_);
  7420. }
  7421. inline void TestAllTypesLite::set_default_import_enum(::protobuf_unittest_import::ImportEnumLite value) {
  7422. assert(::protobuf_unittest_import::ImportEnumLite_IsValid(value));
  7423. set_has_default_import_enum();
  7424. default_import_enum_ = value;
  7425. // @@protoc_insertion_point(field_set:protobuf_unittest.TestAllTypesLite.default_import_enum)
  7426. }
  7427. // optional string default_string_piece = 84 [default = "abc", ctype = STRING_PIECE];
  7428. inline bool TestAllTypesLite::has_default_string_piece() const {
  7429. return (_has_bits_[0] & 0x00000040u) != 0;
  7430. }
  7431. inline void TestAllTypesLite::set_has_default_string_piece() {
  7432. _has_bits_[0] |= 0x00000040u;
  7433. }
  7434. inline void TestAllTypesLite::clear_has_default_string_piece() {
  7435. _has_bits_[0] &= ~0x00000040u;
  7436. }
  7437. inline void TestAllTypesLite::clear_default_string_piece() {
  7438. default_string_piece_.ClearToDefaultNoArena(&::protobuf_unittest::TestAllTypesLite::_i_give_permission_to_break_this_code_default_default_string_piece_.get());
  7439. clear_has_default_string_piece();
  7440. }
  7441. inline const ::std::string& TestAllTypesLite::default_string_piece() const {
  7442. // @@protoc_insertion_point(field_get:protobuf_unittest.TestAllTypesLite.default_string_piece)
  7443. return default_string_piece_.GetNoArena();
  7444. }
  7445. inline void TestAllTypesLite::set_default_string_piece(const ::std::string& value) {
  7446. set_has_default_string_piece();
  7447. default_string_piece_.SetNoArena(&::protobuf_unittest::TestAllTypesLite::_i_give_permission_to_break_this_code_default_default_string_piece_.get(), value);
  7448. // @@protoc_insertion_point(field_set:protobuf_unittest.TestAllTypesLite.default_string_piece)
  7449. }
  7450. #if LANG_CXX11
  7451. inline void TestAllTypesLite::set_default_string_piece(::std::string&& value) {
  7452. set_has_default_string_piece();
  7453. default_string_piece_.SetNoArena(
  7454. &::protobuf_unittest::TestAllTypesLite::_i_give_permission_to_break_this_code_default_default_string_piece_.get(), ::std::move(value));
  7455. // @@protoc_insertion_point(field_set_rvalue:protobuf_unittest.TestAllTypesLite.default_string_piece)
  7456. }
  7457. #endif
  7458. inline void TestAllTypesLite::set_default_string_piece(const char* value) {
  7459. GOOGLE_DCHECK(value != NULL);
  7460. set_has_default_string_piece();
  7461. default_string_piece_.SetNoArena(&::protobuf_unittest::TestAllTypesLite::_i_give_permission_to_break_this_code_default_default_string_piece_.get(), ::std::string(value));
  7462. // @@protoc_insertion_point(field_set_char:protobuf_unittest.TestAllTypesLite.default_string_piece)
  7463. }
  7464. inline void TestAllTypesLite::set_default_string_piece(const char* value, size_t size) {
  7465. set_has_default_string_piece();
  7466. default_string_piece_.SetNoArena(&::protobuf_unittest::TestAllTypesLite::_i_give_permission_to_break_this_code_default_default_string_piece_.get(),
  7467. ::std::string(reinterpret_cast<const char*>(value), size));
  7468. // @@protoc_insertion_point(field_set_pointer:protobuf_unittest.TestAllTypesLite.default_string_piece)
  7469. }
  7470. inline ::std::string* TestAllTypesLite::mutable_default_string_piece() {
  7471. set_has_default_string_piece();
  7472. // @@protoc_insertion_point(field_mutable:protobuf_unittest.TestAllTypesLite.default_string_piece)
  7473. return default_string_piece_.MutableNoArena(&::protobuf_unittest::TestAllTypesLite::_i_give_permission_to_break_this_code_default_default_string_piece_.get());
  7474. }
  7475. inline ::std::string* TestAllTypesLite::release_default_string_piece() {
  7476. // @@protoc_insertion_point(field_release:protobuf_unittest.TestAllTypesLite.default_string_piece)
  7477. if (!has_default_string_piece()) {
  7478. return NULL;
  7479. }
  7480. clear_has_default_string_piece();
  7481. return default_string_piece_.ReleaseNonDefaultNoArena(&::protobuf_unittest::TestAllTypesLite::_i_give_permission_to_break_this_code_default_default_string_piece_.get());
  7482. }
  7483. inline void TestAllTypesLite::set_allocated_default_string_piece(::std::string* default_string_piece) {
  7484. if (default_string_piece != NULL) {
  7485. set_has_default_string_piece();
  7486. } else {
  7487. clear_has_default_string_piece();
  7488. }
  7489. default_string_piece_.SetAllocatedNoArena(&::protobuf_unittest::TestAllTypesLite::_i_give_permission_to_break_this_code_default_default_string_piece_.get(), default_string_piece);
  7490. // @@protoc_insertion_point(field_set_allocated:protobuf_unittest.TestAllTypesLite.default_string_piece)
  7491. }
  7492. // optional string default_cord = 85 [default = "123", ctype = CORD];
  7493. inline bool TestAllTypesLite::has_default_cord() const {
  7494. return (_has_bits_[0] & 0x00000080u) != 0;
  7495. }
  7496. inline void TestAllTypesLite::set_has_default_cord() {
  7497. _has_bits_[0] |= 0x00000080u;
  7498. }
  7499. inline void TestAllTypesLite::clear_has_default_cord() {
  7500. _has_bits_[0] &= ~0x00000080u;
  7501. }
  7502. inline void TestAllTypesLite::clear_default_cord() {
  7503. default_cord_.ClearToDefaultNoArena(&::protobuf_unittest::TestAllTypesLite::_i_give_permission_to_break_this_code_default_default_cord_.get());
  7504. clear_has_default_cord();
  7505. }
  7506. inline const ::std::string& TestAllTypesLite::default_cord() const {
  7507. // @@protoc_insertion_point(field_get:protobuf_unittest.TestAllTypesLite.default_cord)
  7508. return default_cord_.GetNoArena();
  7509. }
  7510. inline void TestAllTypesLite::set_default_cord(const ::std::string& value) {
  7511. set_has_default_cord();
  7512. default_cord_.SetNoArena(&::protobuf_unittest::TestAllTypesLite::_i_give_permission_to_break_this_code_default_default_cord_.get(), value);
  7513. // @@protoc_insertion_point(field_set:protobuf_unittest.TestAllTypesLite.default_cord)
  7514. }
  7515. #if LANG_CXX11
  7516. inline void TestAllTypesLite::set_default_cord(::std::string&& value) {
  7517. set_has_default_cord();
  7518. default_cord_.SetNoArena(
  7519. &::protobuf_unittest::TestAllTypesLite::_i_give_permission_to_break_this_code_default_default_cord_.get(), ::std::move(value));
  7520. // @@protoc_insertion_point(field_set_rvalue:protobuf_unittest.TestAllTypesLite.default_cord)
  7521. }
  7522. #endif
  7523. inline void TestAllTypesLite::set_default_cord(const char* value) {
  7524. GOOGLE_DCHECK(value != NULL);
  7525. set_has_default_cord();
  7526. default_cord_.SetNoArena(&::protobuf_unittest::TestAllTypesLite::_i_give_permission_to_break_this_code_default_default_cord_.get(), ::std::string(value));
  7527. // @@protoc_insertion_point(field_set_char:protobuf_unittest.TestAllTypesLite.default_cord)
  7528. }
  7529. inline void TestAllTypesLite::set_default_cord(const char* value, size_t size) {
  7530. set_has_default_cord();
  7531. default_cord_.SetNoArena(&::protobuf_unittest::TestAllTypesLite::_i_give_permission_to_break_this_code_default_default_cord_.get(),
  7532. ::std::string(reinterpret_cast<const char*>(value), size));
  7533. // @@protoc_insertion_point(field_set_pointer:protobuf_unittest.TestAllTypesLite.default_cord)
  7534. }
  7535. inline ::std::string* TestAllTypesLite::mutable_default_cord() {
  7536. set_has_default_cord();
  7537. // @@protoc_insertion_point(field_mutable:protobuf_unittest.TestAllTypesLite.default_cord)
  7538. return default_cord_.MutableNoArena(&::protobuf_unittest::TestAllTypesLite::_i_give_permission_to_break_this_code_default_default_cord_.get());
  7539. }
  7540. inline ::std::string* TestAllTypesLite::release_default_cord() {
  7541. // @@protoc_insertion_point(field_release:protobuf_unittest.TestAllTypesLite.default_cord)
  7542. if (!has_default_cord()) {
  7543. return NULL;
  7544. }
  7545. clear_has_default_cord();
  7546. return default_cord_.ReleaseNonDefaultNoArena(&::protobuf_unittest::TestAllTypesLite::_i_give_permission_to_break_this_code_default_default_cord_.get());
  7547. }
  7548. inline void TestAllTypesLite::set_allocated_default_cord(::std::string* default_cord) {
  7549. if (default_cord != NULL) {
  7550. set_has_default_cord();
  7551. } else {
  7552. clear_has_default_cord();
  7553. }
  7554. default_cord_.SetAllocatedNoArena(&::protobuf_unittest::TestAllTypesLite::_i_give_permission_to_break_this_code_default_default_cord_.get(), default_cord);
  7555. // @@protoc_insertion_point(field_set_allocated:protobuf_unittest.TestAllTypesLite.default_cord)
  7556. }
  7557. // optional uint32 oneof_uint32 = 111;
  7558. inline bool TestAllTypesLite::has_oneof_uint32() const {
  7559. return oneof_field_case() == kOneofUint32;
  7560. }
  7561. inline void TestAllTypesLite::set_has_oneof_uint32() {
  7562. _oneof_case_[0] = kOneofUint32;
  7563. }
  7564. inline void TestAllTypesLite::clear_oneof_uint32() {
  7565. if (has_oneof_uint32()) {
  7566. oneof_field_.oneof_uint32_ = 0u;
  7567. clear_has_oneof_field();
  7568. }
  7569. }
  7570. inline ::google::protobuf::uint32 TestAllTypesLite::oneof_uint32() const {
  7571. // @@protoc_insertion_point(field_get:protobuf_unittest.TestAllTypesLite.oneof_uint32)
  7572. if (has_oneof_uint32()) {
  7573. return oneof_field_.oneof_uint32_;
  7574. }
  7575. return 0u;
  7576. }
  7577. inline void TestAllTypesLite::set_oneof_uint32(::google::protobuf::uint32 value) {
  7578. if (!has_oneof_uint32()) {
  7579. clear_oneof_field();
  7580. set_has_oneof_uint32();
  7581. }
  7582. oneof_field_.oneof_uint32_ = value;
  7583. // @@protoc_insertion_point(field_set:protobuf_unittest.TestAllTypesLite.oneof_uint32)
  7584. }
  7585. // optional .protobuf_unittest.TestAllTypesLite.NestedMessage oneof_nested_message = 112;
  7586. inline bool TestAllTypesLite::has_oneof_nested_message() const {
  7587. return oneof_field_case() == kOneofNestedMessage;
  7588. }
  7589. inline void TestAllTypesLite::set_has_oneof_nested_message() {
  7590. _oneof_case_[0] = kOneofNestedMessage;
  7591. }
  7592. inline void TestAllTypesLite::clear_oneof_nested_message() {
  7593. if (has_oneof_nested_message()) {
  7594. delete oneof_field_.oneof_nested_message_;
  7595. clear_has_oneof_field();
  7596. }
  7597. }
  7598. inline const ::protobuf_unittest::TestAllTypesLite_NestedMessage& TestAllTypesLite::_internal_oneof_nested_message() const {
  7599. return *oneof_field_.oneof_nested_message_;
  7600. }
  7601. inline ::protobuf_unittest::TestAllTypesLite_NestedMessage* TestAllTypesLite::release_oneof_nested_message() {
  7602. // @@protoc_insertion_point(field_release:protobuf_unittest.TestAllTypesLite.oneof_nested_message)
  7603. if (has_oneof_nested_message()) {
  7604. clear_has_oneof_field();
  7605. ::protobuf_unittest::TestAllTypesLite_NestedMessage* temp = oneof_field_.oneof_nested_message_;
  7606. oneof_field_.oneof_nested_message_ = NULL;
  7607. return temp;
  7608. } else {
  7609. return NULL;
  7610. }
  7611. }
  7612. inline const ::protobuf_unittest::TestAllTypesLite_NestedMessage& TestAllTypesLite::oneof_nested_message() const {
  7613. // @@protoc_insertion_point(field_get:protobuf_unittest.TestAllTypesLite.oneof_nested_message)
  7614. return has_oneof_nested_message()
  7615. ? *oneof_field_.oneof_nested_message_
  7616. : *reinterpret_cast< ::protobuf_unittest::TestAllTypesLite_NestedMessage*>(&::protobuf_unittest::_TestAllTypesLite_NestedMessage_default_instance_);
  7617. }
  7618. inline ::protobuf_unittest::TestAllTypesLite_NestedMessage* TestAllTypesLite::mutable_oneof_nested_message() {
  7619. if (!has_oneof_nested_message()) {
  7620. clear_oneof_field();
  7621. set_has_oneof_nested_message();
  7622. oneof_field_.oneof_nested_message_ = CreateMaybeMessage< ::protobuf_unittest::TestAllTypesLite_NestedMessage >(
  7623. GetArenaNoVirtual());
  7624. }
  7625. // @@protoc_insertion_point(field_mutable:protobuf_unittest.TestAllTypesLite.oneof_nested_message)
  7626. return oneof_field_.oneof_nested_message_;
  7627. }
  7628. // optional string oneof_string = 113;
  7629. inline bool TestAllTypesLite::has_oneof_string() const {
  7630. return oneof_field_case() == kOneofString;
  7631. }
  7632. inline void TestAllTypesLite::set_has_oneof_string() {
  7633. _oneof_case_[0] = kOneofString;
  7634. }
  7635. inline void TestAllTypesLite::clear_oneof_string() {
  7636. if (has_oneof_string()) {
  7637. oneof_field_.oneof_string_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  7638. clear_has_oneof_field();
  7639. }
  7640. }
  7641. inline const ::std::string& TestAllTypesLite::oneof_string() const {
  7642. // @@protoc_insertion_point(field_get:protobuf_unittest.TestAllTypesLite.oneof_string)
  7643. if (has_oneof_string()) {
  7644. return oneof_field_.oneof_string_.GetNoArena();
  7645. }
  7646. return *&::google::protobuf::internal::GetEmptyStringAlreadyInited();
  7647. }
  7648. inline void TestAllTypesLite::set_oneof_string(const ::std::string& value) {
  7649. // @@protoc_insertion_point(field_set:protobuf_unittest.TestAllTypesLite.oneof_string)
  7650. if (!has_oneof_string()) {
  7651. clear_oneof_field();
  7652. set_has_oneof_string();
  7653. oneof_field_.oneof_string_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  7654. }
  7655. oneof_field_.oneof_string_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
  7656. // @@protoc_insertion_point(field_set:protobuf_unittest.TestAllTypesLite.oneof_string)
  7657. }
  7658. #if LANG_CXX11
  7659. inline void TestAllTypesLite::set_oneof_string(::std::string&& value) {
  7660. // @@protoc_insertion_point(field_set:protobuf_unittest.TestAllTypesLite.oneof_string)
  7661. if (!has_oneof_string()) {
  7662. clear_oneof_field();
  7663. set_has_oneof_string();
  7664. oneof_field_.oneof_string_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  7665. }
  7666. oneof_field_.oneof_string_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
  7667. // @@protoc_insertion_point(field_set_rvalue:protobuf_unittest.TestAllTypesLite.oneof_string)
  7668. }
  7669. #endif
  7670. inline void TestAllTypesLite::set_oneof_string(const char* value) {
  7671. GOOGLE_DCHECK(value != NULL);
  7672. if (!has_oneof_string()) {
  7673. clear_oneof_field();
  7674. set_has_oneof_string();
  7675. oneof_field_.oneof_string_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  7676. }
  7677. oneof_field_.oneof_string_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  7678. ::std::string(value));
  7679. // @@protoc_insertion_point(field_set_char:protobuf_unittest.TestAllTypesLite.oneof_string)
  7680. }
  7681. inline void TestAllTypesLite::set_oneof_string(const char* value, size_t size) {
  7682. if (!has_oneof_string()) {
  7683. clear_oneof_field();
  7684. set_has_oneof_string();
  7685. oneof_field_.oneof_string_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  7686. }
  7687. oneof_field_.oneof_string_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(
  7688. reinterpret_cast<const char*>(value), size));
  7689. // @@protoc_insertion_point(field_set_pointer:protobuf_unittest.TestAllTypesLite.oneof_string)
  7690. }
  7691. inline ::std::string* TestAllTypesLite::mutable_oneof_string() {
  7692. if (!has_oneof_string()) {
  7693. clear_oneof_field();
  7694. set_has_oneof_string();
  7695. oneof_field_.oneof_string_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  7696. }
  7697. // @@protoc_insertion_point(field_mutable:protobuf_unittest.TestAllTypesLite.oneof_string)
  7698. return oneof_field_.oneof_string_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  7699. }
  7700. inline ::std::string* TestAllTypesLite::release_oneof_string() {
  7701. // @@protoc_insertion_point(field_release:protobuf_unittest.TestAllTypesLite.oneof_string)
  7702. if (has_oneof_string()) {
  7703. clear_has_oneof_field();
  7704. return oneof_field_.oneof_string_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  7705. } else {
  7706. return NULL;
  7707. }
  7708. }
  7709. inline void TestAllTypesLite::set_allocated_oneof_string(::std::string* oneof_string) {
  7710. if (!has_oneof_string()) {
  7711. oneof_field_.oneof_string_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  7712. }
  7713. clear_oneof_field();
  7714. if (oneof_string != NULL) {
  7715. set_has_oneof_string();
  7716. oneof_field_.oneof_string_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), oneof_string);
  7717. }
  7718. // @@protoc_insertion_point(field_set_allocated:protobuf_unittest.TestAllTypesLite.oneof_string)
  7719. }
  7720. // optional bytes oneof_bytes = 114;
  7721. inline bool TestAllTypesLite::has_oneof_bytes() const {
  7722. return oneof_field_case() == kOneofBytes;
  7723. }
  7724. inline void TestAllTypesLite::set_has_oneof_bytes() {
  7725. _oneof_case_[0] = kOneofBytes;
  7726. }
  7727. inline void TestAllTypesLite::clear_oneof_bytes() {
  7728. if (has_oneof_bytes()) {
  7729. oneof_field_.oneof_bytes_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  7730. clear_has_oneof_field();
  7731. }
  7732. }
  7733. inline const ::std::string& TestAllTypesLite::oneof_bytes() const {
  7734. // @@protoc_insertion_point(field_get:protobuf_unittest.TestAllTypesLite.oneof_bytes)
  7735. if (has_oneof_bytes()) {
  7736. return oneof_field_.oneof_bytes_.GetNoArena();
  7737. }
  7738. return *&::google::protobuf::internal::GetEmptyStringAlreadyInited();
  7739. }
  7740. inline void TestAllTypesLite::set_oneof_bytes(const ::std::string& value) {
  7741. // @@protoc_insertion_point(field_set:protobuf_unittest.TestAllTypesLite.oneof_bytes)
  7742. if (!has_oneof_bytes()) {
  7743. clear_oneof_field();
  7744. set_has_oneof_bytes();
  7745. oneof_field_.oneof_bytes_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  7746. }
  7747. oneof_field_.oneof_bytes_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
  7748. // @@protoc_insertion_point(field_set:protobuf_unittest.TestAllTypesLite.oneof_bytes)
  7749. }
  7750. #if LANG_CXX11
  7751. inline void TestAllTypesLite::set_oneof_bytes(::std::string&& value) {
  7752. // @@protoc_insertion_point(field_set:protobuf_unittest.TestAllTypesLite.oneof_bytes)
  7753. if (!has_oneof_bytes()) {
  7754. clear_oneof_field();
  7755. set_has_oneof_bytes();
  7756. oneof_field_.oneof_bytes_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  7757. }
  7758. oneof_field_.oneof_bytes_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
  7759. // @@protoc_insertion_point(field_set_rvalue:protobuf_unittest.TestAllTypesLite.oneof_bytes)
  7760. }
  7761. #endif
  7762. inline void TestAllTypesLite::set_oneof_bytes(const char* value) {
  7763. GOOGLE_DCHECK(value != NULL);
  7764. if (!has_oneof_bytes()) {
  7765. clear_oneof_field();
  7766. set_has_oneof_bytes();
  7767. oneof_field_.oneof_bytes_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  7768. }
  7769. oneof_field_.oneof_bytes_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  7770. ::std::string(value));
  7771. // @@protoc_insertion_point(field_set_char:protobuf_unittest.TestAllTypesLite.oneof_bytes)
  7772. }
  7773. inline void TestAllTypesLite::set_oneof_bytes(const void* value, size_t size) {
  7774. if (!has_oneof_bytes()) {
  7775. clear_oneof_field();
  7776. set_has_oneof_bytes();
  7777. oneof_field_.oneof_bytes_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  7778. }
  7779. oneof_field_.oneof_bytes_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(
  7780. reinterpret_cast<const char*>(value), size));
  7781. // @@protoc_insertion_point(field_set_pointer:protobuf_unittest.TestAllTypesLite.oneof_bytes)
  7782. }
  7783. inline ::std::string* TestAllTypesLite::mutable_oneof_bytes() {
  7784. if (!has_oneof_bytes()) {
  7785. clear_oneof_field();
  7786. set_has_oneof_bytes();
  7787. oneof_field_.oneof_bytes_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  7788. }
  7789. // @@protoc_insertion_point(field_mutable:protobuf_unittest.TestAllTypesLite.oneof_bytes)
  7790. return oneof_field_.oneof_bytes_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  7791. }
  7792. inline ::std::string* TestAllTypesLite::release_oneof_bytes() {
  7793. // @@protoc_insertion_point(field_release:protobuf_unittest.TestAllTypesLite.oneof_bytes)
  7794. if (has_oneof_bytes()) {
  7795. clear_has_oneof_field();
  7796. return oneof_field_.oneof_bytes_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  7797. } else {
  7798. return NULL;
  7799. }
  7800. }
  7801. inline void TestAllTypesLite::set_allocated_oneof_bytes(::std::string* oneof_bytes) {
  7802. if (!has_oneof_bytes()) {
  7803. oneof_field_.oneof_bytes_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  7804. }
  7805. clear_oneof_field();
  7806. if (oneof_bytes != NULL) {
  7807. set_has_oneof_bytes();
  7808. oneof_field_.oneof_bytes_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), oneof_bytes);
  7809. }
  7810. // @@protoc_insertion_point(field_set_allocated:protobuf_unittest.TestAllTypesLite.oneof_bytes)
  7811. }
  7812. // optional .protobuf_unittest.TestAllTypesLite.NestedMessage oneof_lazy_nested_message = 115 [lazy = true];
  7813. inline bool TestAllTypesLite::has_oneof_lazy_nested_message() const {
  7814. return oneof_field_case() == kOneofLazyNestedMessage;
  7815. }
  7816. inline void TestAllTypesLite::set_has_oneof_lazy_nested_message() {
  7817. _oneof_case_[0] = kOneofLazyNestedMessage;
  7818. }
  7819. inline void TestAllTypesLite::clear_oneof_lazy_nested_message() {
  7820. if (has_oneof_lazy_nested_message()) {
  7821. delete oneof_field_.oneof_lazy_nested_message_;
  7822. clear_has_oneof_field();
  7823. }
  7824. }
  7825. inline const ::protobuf_unittest::TestAllTypesLite_NestedMessage& TestAllTypesLite::_internal_oneof_lazy_nested_message() const {
  7826. return *oneof_field_.oneof_lazy_nested_message_;
  7827. }
  7828. inline ::protobuf_unittest::TestAllTypesLite_NestedMessage* TestAllTypesLite::release_oneof_lazy_nested_message() {
  7829. // @@protoc_insertion_point(field_release:protobuf_unittest.TestAllTypesLite.oneof_lazy_nested_message)
  7830. if (has_oneof_lazy_nested_message()) {
  7831. clear_has_oneof_field();
  7832. ::protobuf_unittest::TestAllTypesLite_NestedMessage* temp = oneof_field_.oneof_lazy_nested_message_;
  7833. oneof_field_.oneof_lazy_nested_message_ = NULL;
  7834. return temp;
  7835. } else {
  7836. return NULL;
  7837. }
  7838. }
  7839. inline const ::protobuf_unittest::TestAllTypesLite_NestedMessage& TestAllTypesLite::oneof_lazy_nested_message() const {
  7840. // @@protoc_insertion_point(field_get:protobuf_unittest.TestAllTypesLite.oneof_lazy_nested_message)
  7841. return has_oneof_lazy_nested_message()
  7842. ? *oneof_field_.oneof_lazy_nested_message_
  7843. : *reinterpret_cast< ::protobuf_unittest::TestAllTypesLite_NestedMessage*>(&::protobuf_unittest::_TestAllTypesLite_NestedMessage_default_instance_);
  7844. }
  7845. inline ::protobuf_unittest::TestAllTypesLite_NestedMessage* TestAllTypesLite::mutable_oneof_lazy_nested_message() {
  7846. if (!has_oneof_lazy_nested_message()) {
  7847. clear_oneof_field();
  7848. set_has_oneof_lazy_nested_message();
  7849. oneof_field_.oneof_lazy_nested_message_ = CreateMaybeMessage< ::protobuf_unittest::TestAllTypesLite_NestedMessage >(
  7850. GetArenaNoVirtual());
  7851. }
  7852. // @@protoc_insertion_point(field_mutable:protobuf_unittest.TestAllTypesLite.oneof_lazy_nested_message)
  7853. return oneof_field_.oneof_lazy_nested_message_;
  7854. }
  7855. // optional int32 deceptively_named_list = 116;
  7856. inline bool TestAllTypesLite::has_deceptively_named_list() const {
  7857. return (_has_bits_[0] & 0x08000000u) != 0;
  7858. }
  7859. inline void TestAllTypesLite::set_has_deceptively_named_list() {
  7860. _has_bits_[0] |= 0x08000000u;
  7861. }
  7862. inline void TestAllTypesLite::clear_has_deceptively_named_list() {
  7863. _has_bits_[0] &= ~0x08000000u;
  7864. }
  7865. inline void TestAllTypesLite::clear_deceptively_named_list() {
  7866. deceptively_named_list_ = 0;
  7867. clear_has_deceptively_named_list();
  7868. }
  7869. inline ::google::protobuf::int32 TestAllTypesLite::deceptively_named_list() const {
  7870. // @@protoc_insertion_point(field_get:protobuf_unittest.TestAllTypesLite.deceptively_named_list)
  7871. return deceptively_named_list_;
  7872. }
  7873. inline void TestAllTypesLite::set_deceptively_named_list(::google::protobuf::int32 value) {
  7874. set_has_deceptively_named_list();
  7875. deceptively_named_list_ = value;
  7876. // @@protoc_insertion_point(field_set:protobuf_unittest.TestAllTypesLite.deceptively_named_list)
  7877. }
  7878. inline bool TestAllTypesLite::has_oneof_field() const {
  7879. return oneof_field_case() != ONEOF_FIELD_NOT_SET;
  7880. }
  7881. inline void TestAllTypesLite::clear_has_oneof_field() {
  7882. _oneof_case_[0] = ONEOF_FIELD_NOT_SET;
  7883. }
  7884. inline TestAllTypesLite::OneofFieldCase TestAllTypesLite::oneof_field_case() const {
  7885. return TestAllTypesLite::OneofFieldCase(_oneof_case_[0]);
  7886. }
  7887. // -------------------------------------------------------------------
  7888. // ForeignMessageLite
  7889. // optional int32 c = 1;
  7890. inline bool ForeignMessageLite::has_c() const {
  7891. return (_has_bits_[0] & 0x00000001u) != 0;
  7892. }
  7893. inline void ForeignMessageLite::set_has_c() {
  7894. _has_bits_[0] |= 0x00000001u;
  7895. }
  7896. inline void ForeignMessageLite::clear_has_c() {
  7897. _has_bits_[0] &= ~0x00000001u;
  7898. }
  7899. inline void ForeignMessageLite::clear_c() {
  7900. c_ = 0;
  7901. clear_has_c();
  7902. }
  7903. inline ::google::protobuf::int32 ForeignMessageLite::c() const {
  7904. // @@protoc_insertion_point(field_get:protobuf_unittest.ForeignMessageLite.c)
  7905. return c_;
  7906. }
  7907. inline void ForeignMessageLite::set_c(::google::protobuf::int32 value) {
  7908. set_has_c();
  7909. c_ = value;
  7910. // @@protoc_insertion_point(field_set:protobuf_unittest.ForeignMessageLite.c)
  7911. }
  7912. // -------------------------------------------------------------------
  7913. // TestPackedTypesLite
  7914. // repeated int32 packed_int32 = 90 [packed = true];
  7915. inline int TestPackedTypesLite::packed_int32_size() const {
  7916. return packed_int32_.size();
  7917. }
  7918. inline void TestPackedTypesLite::clear_packed_int32() {
  7919. packed_int32_.Clear();
  7920. }
  7921. inline ::google::protobuf::int32 TestPackedTypesLite::packed_int32(int index) const {
  7922. // @@protoc_insertion_point(field_get:protobuf_unittest.TestPackedTypesLite.packed_int32)
  7923. return packed_int32_.Get(index);
  7924. }
  7925. inline void TestPackedTypesLite::set_packed_int32(int index, ::google::protobuf::int32 value) {
  7926. packed_int32_.Set(index, value);
  7927. // @@protoc_insertion_point(field_set:protobuf_unittest.TestPackedTypesLite.packed_int32)
  7928. }
  7929. inline void TestPackedTypesLite::add_packed_int32(::google::protobuf::int32 value) {
  7930. packed_int32_.Add(value);
  7931. // @@protoc_insertion_point(field_add:protobuf_unittest.TestPackedTypesLite.packed_int32)
  7932. }
  7933. inline const ::google::protobuf::RepeatedField< ::google::protobuf::int32 >&
  7934. TestPackedTypesLite::packed_int32() const {
  7935. // @@protoc_insertion_point(field_list:protobuf_unittest.TestPackedTypesLite.packed_int32)
  7936. return packed_int32_;
  7937. }
  7938. inline ::google::protobuf::RepeatedField< ::google::protobuf::int32 >*
  7939. TestPackedTypesLite::mutable_packed_int32() {
  7940. // @@protoc_insertion_point(field_mutable_list:protobuf_unittest.TestPackedTypesLite.packed_int32)
  7941. return &packed_int32_;
  7942. }
  7943. // repeated int64 packed_int64 = 91 [packed = true];
  7944. inline int TestPackedTypesLite::packed_int64_size() const {
  7945. return packed_int64_.size();
  7946. }
  7947. inline void TestPackedTypesLite::clear_packed_int64() {
  7948. packed_int64_.Clear();
  7949. }
  7950. inline ::google::protobuf::int64 TestPackedTypesLite::packed_int64(int index) const {
  7951. // @@protoc_insertion_point(field_get:protobuf_unittest.TestPackedTypesLite.packed_int64)
  7952. return packed_int64_.Get(index);
  7953. }
  7954. inline void TestPackedTypesLite::set_packed_int64(int index, ::google::protobuf::int64 value) {
  7955. packed_int64_.Set(index, value);
  7956. // @@protoc_insertion_point(field_set:protobuf_unittest.TestPackedTypesLite.packed_int64)
  7957. }
  7958. inline void TestPackedTypesLite::add_packed_int64(::google::protobuf::int64 value) {
  7959. packed_int64_.Add(value);
  7960. // @@protoc_insertion_point(field_add:protobuf_unittest.TestPackedTypesLite.packed_int64)
  7961. }
  7962. inline const ::google::protobuf::RepeatedField< ::google::protobuf::int64 >&
  7963. TestPackedTypesLite::packed_int64() const {
  7964. // @@protoc_insertion_point(field_list:protobuf_unittest.TestPackedTypesLite.packed_int64)
  7965. return packed_int64_;
  7966. }
  7967. inline ::google::protobuf::RepeatedField< ::google::protobuf::int64 >*
  7968. TestPackedTypesLite::mutable_packed_int64() {
  7969. // @@protoc_insertion_point(field_mutable_list:protobuf_unittest.TestPackedTypesLite.packed_int64)
  7970. return &packed_int64_;
  7971. }
  7972. // repeated uint32 packed_uint32 = 92 [packed = true];
  7973. inline int TestPackedTypesLite::packed_uint32_size() const {
  7974. return packed_uint32_.size();
  7975. }
  7976. inline void TestPackedTypesLite::clear_packed_uint32() {
  7977. packed_uint32_.Clear();
  7978. }
  7979. inline ::google::protobuf::uint32 TestPackedTypesLite::packed_uint32(int index) const {
  7980. // @@protoc_insertion_point(field_get:protobuf_unittest.TestPackedTypesLite.packed_uint32)
  7981. return packed_uint32_.Get(index);
  7982. }
  7983. inline void TestPackedTypesLite::set_packed_uint32(int index, ::google::protobuf::uint32 value) {
  7984. packed_uint32_.Set(index, value);
  7985. // @@protoc_insertion_point(field_set:protobuf_unittest.TestPackedTypesLite.packed_uint32)
  7986. }
  7987. inline void TestPackedTypesLite::add_packed_uint32(::google::protobuf::uint32 value) {
  7988. packed_uint32_.Add(value);
  7989. // @@protoc_insertion_point(field_add:protobuf_unittest.TestPackedTypesLite.packed_uint32)
  7990. }
  7991. inline const ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >&
  7992. TestPackedTypesLite::packed_uint32() const {
  7993. // @@protoc_insertion_point(field_list:protobuf_unittest.TestPackedTypesLite.packed_uint32)
  7994. return packed_uint32_;
  7995. }
  7996. inline ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >*
  7997. TestPackedTypesLite::mutable_packed_uint32() {
  7998. // @@protoc_insertion_point(field_mutable_list:protobuf_unittest.TestPackedTypesLite.packed_uint32)
  7999. return &packed_uint32_;
  8000. }
  8001. // repeated uint64 packed_uint64 = 93 [packed = true];
  8002. inline int TestPackedTypesLite::packed_uint64_size() const {
  8003. return packed_uint64_.size();
  8004. }
  8005. inline void TestPackedTypesLite::clear_packed_uint64() {
  8006. packed_uint64_.Clear();
  8007. }
  8008. inline ::google::protobuf::uint64 TestPackedTypesLite::packed_uint64(int index) const {
  8009. // @@protoc_insertion_point(field_get:protobuf_unittest.TestPackedTypesLite.packed_uint64)
  8010. return packed_uint64_.Get(index);
  8011. }
  8012. inline void TestPackedTypesLite::set_packed_uint64(int index, ::google::protobuf::uint64 value) {
  8013. packed_uint64_.Set(index, value);
  8014. // @@protoc_insertion_point(field_set:protobuf_unittest.TestPackedTypesLite.packed_uint64)
  8015. }
  8016. inline void TestPackedTypesLite::add_packed_uint64(::google::protobuf::uint64 value) {
  8017. packed_uint64_.Add(value);
  8018. // @@protoc_insertion_point(field_add:protobuf_unittest.TestPackedTypesLite.packed_uint64)
  8019. }
  8020. inline const ::google::protobuf::RepeatedField< ::google::protobuf::uint64 >&
  8021. TestPackedTypesLite::packed_uint64() const {
  8022. // @@protoc_insertion_point(field_list:protobuf_unittest.TestPackedTypesLite.packed_uint64)
  8023. return packed_uint64_;
  8024. }
  8025. inline ::google::protobuf::RepeatedField< ::google::protobuf::uint64 >*
  8026. TestPackedTypesLite::mutable_packed_uint64() {
  8027. // @@protoc_insertion_point(field_mutable_list:protobuf_unittest.TestPackedTypesLite.packed_uint64)
  8028. return &packed_uint64_;
  8029. }
  8030. // repeated sint32 packed_sint32 = 94 [packed = true];
  8031. inline int TestPackedTypesLite::packed_sint32_size() const {
  8032. return packed_sint32_.size();
  8033. }
  8034. inline void TestPackedTypesLite::clear_packed_sint32() {
  8035. packed_sint32_.Clear();
  8036. }
  8037. inline ::google::protobuf::int32 TestPackedTypesLite::packed_sint32(int index) const {
  8038. // @@protoc_insertion_point(field_get:protobuf_unittest.TestPackedTypesLite.packed_sint32)
  8039. return packed_sint32_.Get(index);
  8040. }
  8041. inline void TestPackedTypesLite::set_packed_sint32(int index, ::google::protobuf::int32 value) {
  8042. packed_sint32_.Set(index, value);
  8043. // @@protoc_insertion_point(field_set:protobuf_unittest.TestPackedTypesLite.packed_sint32)
  8044. }
  8045. inline void TestPackedTypesLite::add_packed_sint32(::google::protobuf::int32 value) {
  8046. packed_sint32_.Add(value);
  8047. // @@protoc_insertion_point(field_add:protobuf_unittest.TestPackedTypesLite.packed_sint32)
  8048. }
  8049. inline const ::google::protobuf::RepeatedField< ::google::protobuf::int32 >&
  8050. TestPackedTypesLite::packed_sint32() const {
  8051. // @@protoc_insertion_point(field_list:protobuf_unittest.TestPackedTypesLite.packed_sint32)
  8052. return packed_sint32_;
  8053. }
  8054. inline ::google::protobuf::RepeatedField< ::google::protobuf::int32 >*
  8055. TestPackedTypesLite::mutable_packed_sint32() {
  8056. // @@protoc_insertion_point(field_mutable_list:protobuf_unittest.TestPackedTypesLite.packed_sint32)
  8057. return &packed_sint32_;
  8058. }
  8059. // repeated sint64 packed_sint64 = 95 [packed = true];
  8060. inline int TestPackedTypesLite::packed_sint64_size() const {
  8061. return packed_sint64_.size();
  8062. }
  8063. inline void TestPackedTypesLite::clear_packed_sint64() {
  8064. packed_sint64_.Clear();
  8065. }
  8066. inline ::google::protobuf::int64 TestPackedTypesLite::packed_sint64(int index) const {
  8067. // @@protoc_insertion_point(field_get:protobuf_unittest.TestPackedTypesLite.packed_sint64)
  8068. return packed_sint64_.Get(index);
  8069. }
  8070. inline void TestPackedTypesLite::set_packed_sint64(int index, ::google::protobuf::int64 value) {
  8071. packed_sint64_.Set(index, value);
  8072. // @@protoc_insertion_point(field_set:protobuf_unittest.TestPackedTypesLite.packed_sint64)
  8073. }
  8074. inline void TestPackedTypesLite::add_packed_sint64(::google::protobuf::int64 value) {
  8075. packed_sint64_.Add(value);
  8076. // @@protoc_insertion_point(field_add:protobuf_unittest.TestPackedTypesLite.packed_sint64)
  8077. }
  8078. inline const ::google::protobuf::RepeatedField< ::google::protobuf::int64 >&
  8079. TestPackedTypesLite::packed_sint64() const {
  8080. // @@protoc_insertion_point(field_list:protobuf_unittest.TestPackedTypesLite.packed_sint64)
  8081. return packed_sint64_;
  8082. }
  8083. inline ::google::protobuf::RepeatedField< ::google::protobuf::int64 >*
  8084. TestPackedTypesLite::mutable_packed_sint64() {
  8085. // @@protoc_insertion_point(field_mutable_list:protobuf_unittest.TestPackedTypesLite.packed_sint64)
  8086. return &packed_sint64_;
  8087. }
  8088. // repeated fixed32 packed_fixed32 = 96 [packed = true];
  8089. inline int TestPackedTypesLite::packed_fixed32_size() const {
  8090. return packed_fixed32_.size();
  8091. }
  8092. inline void TestPackedTypesLite::clear_packed_fixed32() {
  8093. packed_fixed32_.Clear();
  8094. }
  8095. inline ::google::protobuf::uint32 TestPackedTypesLite::packed_fixed32(int index) const {
  8096. // @@protoc_insertion_point(field_get:protobuf_unittest.TestPackedTypesLite.packed_fixed32)
  8097. return packed_fixed32_.Get(index);
  8098. }
  8099. inline void TestPackedTypesLite::set_packed_fixed32(int index, ::google::protobuf::uint32 value) {
  8100. packed_fixed32_.Set(index, value);
  8101. // @@protoc_insertion_point(field_set:protobuf_unittest.TestPackedTypesLite.packed_fixed32)
  8102. }
  8103. inline void TestPackedTypesLite::add_packed_fixed32(::google::protobuf::uint32 value) {
  8104. packed_fixed32_.Add(value);
  8105. // @@protoc_insertion_point(field_add:protobuf_unittest.TestPackedTypesLite.packed_fixed32)
  8106. }
  8107. inline const ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >&
  8108. TestPackedTypesLite::packed_fixed32() const {
  8109. // @@protoc_insertion_point(field_list:protobuf_unittest.TestPackedTypesLite.packed_fixed32)
  8110. return packed_fixed32_;
  8111. }
  8112. inline ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >*
  8113. TestPackedTypesLite::mutable_packed_fixed32() {
  8114. // @@protoc_insertion_point(field_mutable_list:protobuf_unittest.TestPackedTypesLite.packed_fixed32)
  8115. return &packed_fixed32_;
  8116. }
  8117. // repeated fixed64 packed_fixed64 = 97 [packed = true];
  8118. inline int TestPackedTypesLite::packed_fixed64_size() const {
  8119. return packed_fixed64_.size();
  8120. }
  8121. inline void TestPackedTypesLite::clear_packed_fixed64() {
  8122. packed_fixed64_.Clear();
  8123. }
  8124. inline ::google::protobuf::uint64 TestPackedTypesLite::packed_fixed64(int index) const {
  8125. // @@protoc_insertion_point(field_get:protobuf_unittest.TestPackedTypesLite.packed_fixed64)
  8126. return packed_fixed64_.Get(index);
  8127. }
  8128. inline void TestPackedTypesLite::set_packed_fixed64(int index, ::google::protobuf::uint64 value) {
  8129. packed_fixed64_.Set(index, value);
  8130. // @@protoc_insertion_point(field_set:protobuf_unittest.TestPackedTypesLite.packed_fixed64)
  8131. }
  8132. inline void TestPackedTypesLite::add_packed_fixed64(::google::protobuf::uint64 value) {
  8133. packed_fixed64_.Add(value);
  8134. // @@protoc_insertion_point(field_add:protobuf_unittest.TestPackedTypesLite.packed_fixed64)
  8135. }
  8136. inline const ::google::protobuf::RepeatedField< ::google::protobuf::uint64 >&
  8137. TestPackedTypesLite::packed_fixed64() const {
  8138. // @@protoc_insertion_point(field_list:protobuf_unittest.TestPackedTypesLite.packed_fixed64)
  8139. return packed_fixed64_;
  8140. }
  8141. inline ::google::protobuf::RepeatedField< ::google::protobuf::uint64 >*
  8142. TestPackedTypesLite::mutable_packed_fixed64() {
  8143. // @@protoc_insertion_point(field_mutable_list:protobuf_unittest.TestPackedTypesLite.packed_fixed64)
  8144. return &packed_fixed64_;
  8145. }
  8146. // repeated sfixed32 packed_sfixed32 = 98 [packed = true];
  8147. inline int TestPackedTypesLite::packed_sfixed32_size() const {
  8148. return packed_sfixed32_.size();
  8149. }
  8150. inline void TestPackedTypesLite::clear_packed_sfixed32() {
  8151. packed_sfixed32_.Clear();
  8152. }
  8153. inline ::google::protobuf::int32 TestPackedTypesLite::packed_sfixed32(int index) const {
  8154. // @@protoc_insertion_point(field_get:protobuf_unittest.TestPackedTypesLite.packed_sfixed32)
  8155. return packed_sfixed32_.Get(index);
  8156. }
  8157. inline void TestPackedTypesLite::set_packed_sfixed32(int index, ::google::protobuf::int32 value) {
  8158. packed_sfixed32_.Set(index, value);
  8159. // @@protoc_insertion_point(field_set:protobuf_unittest.TestPackedTypesLite.packed_sfixed32)
  8160. }
  8161. inline void TestPackedTypesLite::add_packed_sfixed32(::google::protobuf::int32 value) {
  8162. packed_sfixed32_.Add(value);
  8163. // @@protoc_insertion_point(field_add:protobuf_unittest.TestPackedTypesLite.packed_sfixed32)
  8164. }
  8165. inline const ::google::protobuf::RepeatedField< ::google::protobuf::int32 >&
  8166. TestPackedTypesLite::packed_sfixed32() const {
  8167. // @@protoc_insertion_point(field_list:protobuf_unittest.TestPackedTypesLite.packed_sfixed32)
  8168. return packed_sfixed32_;
  8169. }
  8170. inline ::google::protobuf::RepeatedField< ::google::protobuf::int32 >*
  8171. TestPackedTypesLite::mutable_packed_sfixed32() {
  8172. // @@protoc_insertion_point(field_mutable_list:protobuf_unittest.TestPackedTypesLite.packed_sfixed32)
  8173. return &packed_sfixed32_;
  8174. }
  8175. // repeated sfixed64 packed_sfixed64 = 99 [packed = true];
  8176. inline int TestPackedTypesLite::packed_sfixed64_size() const {
  8177. return packed_sfixed64_.size();
  8178. }
  8179. inline void TestPackedTypesLite::clear_packed_sfixed64() {
  8180. packed_sfixed64_.Clear();
  8181. }
  8182. inline ::google::protobuf::int64 TestPackedTypesLite::packed_sfixed64(int index) const {
  8183. // @@protoc_insertion_point(field_get:protobuf_unittest.TestPackedTypesLite.packed_sfixed64)
  8184. return packed_sfixed64_.Get(index);
  8185. }
  8186. inline void TestPackedTypesLite::set_packed_sfixed64(int index, ::google::protobuf::int64 value) {
  8187. packed_sfixed64_.Set(index, value);
  8188. // @@protoc_insertion_point(field_set:protobuf_unittest.TestPackedTypesLite.packed_sfixed64)
  8189. }
  8190. inline void TestPackedTypesLite::add_packed_sfixed64(::google::protobuf::int64 value) {
  8191. packed_sfixed64_.Add(value);
  8192. // @@protoc_insertion_point(field_add:protobuf_unittest.TestPackedTypesLite.packed_sfixed64)
  8193. }
  8194. inline const ::google::protobuf::RepeatedField< ::google::protobuf::int64 >&
  8195. TestPackedTypesLite::packed_sfixed64() const {
  8196. // @@protoc_insertion_point(field_list:protobuf_unittest.TestPackedTypesLite.packed_sfixed64)
  8197. return packed_sfixed64_;
  8198. }
  8199. inline ::google::protobuf::RepeatedField< ::google::protobuf::int64 >*
  8200. TestPackedTypesLite::mutable_packed_sfixed64() {
  8201. // @@protoc_insertion_point(field_mutable_list:protobuf_unittest.TestPackedTypesLite.packed_sfixed64)
  8202. return &packed_sfixed64_;
  8203. }
  8204. // repeated float packed_float = 100 [packed = true];
  8205. inline int TestPackedTypesLite::packed_float_size() const {
  8206. return packed_float_.size();
  8207. }
  8208. inline void TestPackedTypesLite::clear_packed_float() {
  8209. packed_float_.Clear();
  8210. }
  8211. inline float TestPackedTypesLite::packed_float(int index) const {
  8212. // @@protoc_insertion_point(field_get:protobuf_unittest.TestPackedTypesLite.packed_float)
  8213. return packed_float_.Get(index);
  8214. }
  8215. inline void TestPackedTypesLite::set_packed_float(int index, float value) {
  8216. packed_float_.Set(index, value);
  8217. // @@protoc_insertion_point(field_set:protobuf_unittest.TestPackedTypesLite.packed_float)
  8218. }
  8219. inline void TestPackedTypesLite::add_packed_float(float value) {
  8220. packed_float_.Add(value);
  8221. // @@protoc_insertion_point(field_add:protobuf_unittest.TestPackedTypesLite.packed_float)
  8222. }
  8223. inline const ::google::protobuf::RepeatedField< float >&
  8224. TestPackedTypesLite::packed_float() const {
  8225. // @@protoc_insertion_point(field_list:protobuf_unittest.TestPackedTypesLite.packed_float)
  8226. return packed_float_;
  8227. }
  8228. inline ::google::protobuf::RepeatedField< float >*
  8229. TestPackedTypesLite::mutable_packed_float() {
  8230. // @@protoc_insertion_point(field_mutable_list:protobuf_unittest.TestPackedTypesLite.packed_float)
  8231. return &packed_float_;
  8232. }
  8233. // repeated double packed_double = 101 [packed = true];
  8234. inline int TestPackedTypesLite::packed_double_size() const {
  8235. return packed_double_.size();
  8236. }
  8237. inline void TestPackedTypesLite::clear_packed_double() {
  8238. packed_double_.Clear();
  8239. }
  8240. inline double TestPackedTypesLite::packed_double(int index) const {
  8241. // @@protoc_insertion_point(field_get:protobuf_unittest.TestPackedTypesLite.packed_double)
  8242. return packed_double_.Get(index);
  8243. }
  8244. inline void TestPackedTypesLite::set_packed_double(int index, double value) {
  8245. packed_double_.Set(index, value);
  8246. // @@protoc_insertion_point(field_set:protobuf_unittest.TestPackedTypesLite.packed_double)
  8247. }
  8248. inline void TestPackedTypesLite::add_packed_double(double value) {
  8249. packed_double_.Add(value);
  8250. // @@protoc_insertion_point(field_add:protobuf_unittest.TestPackedTypesLite.packed_double)
  8251. }
  8252. inline const ::google::protobuf::RepeatedField< double >&
  8253. TestPackedTypesLite::packed_double() const {
  8254. // @@protoc_insertion_point(field_list:protobuf_unittest.TestPackedTypesLite.packed_double)
  8255. return packed_double_;
  8256. }
  8257. inline ::google::protobuf::RepeatedField< double >*
  8258. TestPackedTypesLite::mutable_packed_double() {
  8259. // @@protoc_insertion_point(field_mutable_list:protobuf_unittest.TestPackedTypesLite.packed_double)
  8260. return &packed_double_;
  8261. }
  8262. // repeated bool packed_bool = 102 [packed = true];
  8263. inline int TestPackedTypesLite::packed_bool_size() const {
  8264. return packed_bool_.size();
  8265. }
  8266. inline void TestPackedTypesLite::clear_packed_bool() {
  8267. packed_bool_.Clear();
  8268. }
  8269. inline bool TestPackedTypesLite::packed_bool(int index) const {
  8270. // @@protoc_insertion_point(field_get:protobuf_unittest.TestPackedTypesLite.packed_bool)
  8271. return packed_bool_.Get(index);
  8272. }
  8273. inline void TestPackedTypesLite::set_packed_bool(int index, bool value) {
  8274. packed_bool_.Set(index, value);
  8275. // @@protoc_insertion_point(field_set:protobuf_unittest.TestPackedTypesLite.packed_bool)
  8276. }
  8277. inline void TestPackedTypesLite::add_packed_bool(bool value) {
  8278. packed_bool_.Add(value);
  8279. // @@protoc_insertion_point(field_add:protobuf_unittest.TestPackedTypesLite.packed_bool)
  8280. }
  8281. inline const ::google::protobuf::RepeatedField< bool >&
  8282. TestPackedTypesLite::packed_bool() const {
  8283. // @@protoc_insertion_point(field_list:protobuf_unittest.TestPackedTypesLite.packed_bool)
  8284. return packed_bool_;
  8285. }
  8286. inline ::google::protobuf::RepeatedField< bool >*
  8287. TestPackedTypesLite::mutable_packed_bool() {
  8288. // @@protoc_insertion_point(field_mutable_list:protobuf_unittest.TestPackedTypesLite.packed_bool)
  8289. return &packed_bool_;
  8290. }
  8291. // repeated .protobuf_unittest.ForeignEnumLite packed_enum = 103 [packed = true];
  8292. inline int TestPackedTypesLite::packed_enum_size() const {
  8293. return packed_enum_.size();
  8294. }
  8295. inline void TestPackedTypesLite::clear_packed_enum() {
  8296. packed_enum_.Clear();
  8297. }
  8298. inline ::protobuf_unittest::ForeignEnumLite TestPackedTypesLite::packed_enum(int index) const {
  8299. // @@protoc_insertion_point(field_get:protobuf_unittest.TestPackedTypesLite.packed_enum)
  8300. return static_cast< ::protobuf_unittest::ForeignEnumLite >(packed_enum_.Get(index));
  8301. }
  8302. inline void TestPackedTypesLite::set_packed_enum(int index, ::protobuf_unittest::ForeignEnumLite value) {
  8303. assert(::protobuf_unittest::ForeignEnumLite_IsValid(value));
  8304. packed_enum_.Set(index, value);
  8305. // @@protoc_insertion_point(field_set:protobuf_unittest.TestPackedTypesLite.packed_enum)
  8306. }
  8307. inline void TestPackedTypesLite::add_packed_enum(::protobuf_unittest::ForeignEnumLite value) {
  8308. assert(::protobuf_unittest::ForeignEnumLite_IsValid(value));
  8309. packed_enum_.Add(value);
  8310. // @@protoc_insertion_point(field_add:protobuf_unittest.TestPackedTypesLite.packed_enum)
  8311. }
  8312. inline const ::google::protobuf::RepeatedField<int>&
  8313. TestPackedTypesLite::packed_enum() const {
  8314. // @@protoc_insertion_point(field_list:protobuf_unittest.TestPackedTypesLite.packed_enum)
  8315. return packed_enum_;
  8316. }
  8317. inline ::google::protobuf::RepeatedField<int>*
  8318. TestPackedTypesLite::mutable_packed_enum() {
  8319. // @@protoc_insertion_point(field_mutable_list:protobuf_unittest.TestPackedTypesLite.packed_enum)
  8320. return &packed_enum_;
  8321. }
  8322. // -------------------------------------------------------------------
  8323. // TestAllExtensionsLite
  8324. // -------------------------------------------------------------------
  8325. // OptionalGroup_extension_lite
  8326. // optional int32 a = 17;
  8327. inline bool OptionalGroup_extension_lite::has_a() const {
  8328. return (_has_bits_[0] & 0x00000001u) != 0;
  8329. }
  8330. inline void OptionalGroup_extension_lite::set_has_a() {
  8331. _has_bits_[0] |= 0x00000001u;
  8332. }
  8333. inline void OptionalGroup_extension_lite::clear_has_a() {
  8334. _has_bits_[0] &= ~0x00000001u;
  8335. }
  8336. inline void OptionalGroup_extension_lite::clear_a() {
  8337. a_ = 0;
  8338. clear_has_a();
  8339. }
  8340. inline ::google::protobuf::int32 OptionalGroup_extension_lite::a() const {
  8341. // @@protoc_insertion_point(field_get:protobuf_unittest.OptionalGroup_extension_lite.a)
  8342. return a_;
  8343. }
  8344. inline void OptionalGroup_extension_lite::set_a(::google::protobuf::int32 value) {
  8345. set_has_a();
  8346. a_ = value;
  8347. // @@protoc_insertion_point(field_set:protobuf_unittest.OptionalGroup_extension_lite.a)
  8348. }
  8349. // -------------------------------------------------------------------
  8350. // RepeatedGroup_extension_lite
  8351. // optional int32 a = 47;
  8352. inline bool RepeatedGroup_extension_lite::has_a() const {
  8353. return (_has_bits_[0] & 0x00000001u) != 0;
  8354. }
  8355. inline void RepeatedGroup_extension_lite::set_has_a() {
  8356. _has_bits_[0] |= 0x00000001u;
  8357. }
  8358. inline void RepeatedGroup_extension_lite::clear_has_a() {
  8359. _has_bits_[0] &= ~0x00000001u;
  8360. }
  8361. inline void RepeatedGroup_extension_lite::clear_a() {
  8362. a_ = 0;
  8363. clear_has_a();
  8364. }
  8365. inline ::google::protobuf::int32 RepeatedGroup_extension_lite::a() const {
  8366. // @@protoc_insertion_point(field_get:protobuf_unittest.RepeatedGroup_extension_lite.a)
  8367. return a_;
  8368. }
  8369. inline void RepeatedGroup_extension_lite::set_a(::google::protobuf::int32 value) {
  8370. set_has_a();
  8371. a_ = value;
  8372. // @@protoc_insertion_point(field_set:protobuf_unittest.RepeatedGroup_extension_lite.a)
  8373. }
  8374. // -------------------------------------------------------------------
  8375. // TestPackedExtensionsLite
  8376. // -------------------------------------------------------------------
  8377. // TestNestedExtensionLite
  8378. // -------------------------------------------------------------------
  8379. // TestDeprecatedLite
  8380. // optional int32 deprecated_field = 1 [deprecated = true];
  8381. inline bool TestDeprecatedLite::has_deprecated_field() const {
  8382. return (_has_bits_[0] & 0x00000001u) != 0;
  8383. }
  8384. inline void TestDeprecatedLite::set_has_deprecated_field() {
  8385. _has_bits_[0] |= 0x00000001u;
  8386. }
  8387. inline void TestDeprecatedLite::clear_has_deprecated_field() {
  8388. _has_bits_[0] &= ~0x00000001u;
  8389. }
  8390. inline void TestDeprecatedLite::clear_deprecated_field() {
  8391. deprecated_field_ = 0;
  8392. clear_has_deprecated_field();
  8393. }
  8394. inline ::google::protobuf::int32 TestDeprecatedLite::deprecated_field() const {
  8395. // @@protoc_insertion_point(field_get:protobuf_unittest.TestDeprecatedLite.deprecated_field)
  8396. return deprecated_field_;
  8397. }
  8398. inline void TestDeprecatedLite::set_deprecated_field(::google::protobuf::int32 value) {
  8399. set_has_deprecated_field();
  8400. deprecated_field_ = value;
  8401. // @@protoc_insertion_point(field_set:protobuf_unittest.TestDeprecatedLite.deprecated_field)
  8402. }
  8403. // -------------------------------------------------------------------
  8404. // TestParsingMergeLite_RepeatedFieldsGenerator_Group1
  8405. // optional .protobuf_unittest.TestAllTypesLite field1 = 11;
  8406. inline bool TestParsingMergeLite_RepeatedFieldsGenerator_Group1::has_field1() const {
  8407. return (_has_bits_[0] & 0x00000001u) != 0;
  8408. }
  8409. inline void TestParsingMergeLite_RepeatedFieldsGenerator_Group1::set_has_field1() {
  8410. _has_bits_[0] |= 0x00000001u;
  8411. }
  8412. inline void TestParsingMergeLite_RepeatedFieldsGenerator_Group1::clear_has_field1() {
  8413. _has_bits_[0] &= ~0x00000001u;
  8414. }
  8415. inline void TestParsingMergeLite_RepeatedFieldsGenerator_Group1::clear_field1() {
  8416. if (field1_ != NULL) field1_->Clear();
  8417. clear_has_field1();
  8418. }
  8419. inline const ::protobuf_unittest::TestAllTypesLite& TestParsingMergeLite_RepeatedFieldsGenerator_Group1::_internal_field1() const {
  8420. return *field1_;
  8421. }
  8422. inline const ::protobuf_unittest::TestAllTypesLite& TestParsingMergeLite_RepeatedFieldsGenerator_Group1::field1() const {
  8423. const ::protobuf_unittest::TestAllTypesLite* p = field1_;
  8424. // @@protoc_insertion_point(field_get:protobuf_unittest.TestParsingMergeLite.RepeatedFieldsGenerator.Group1.field1)
  8425. return p != NULL ? *p : *reinterpret_cast<const ::protobuf_unittest::TestAllTypesLite*>(
  8426. &::protobuf_unittest::_TestAllTypesLite_default_instance_);
  8427. }
  8428. inline ::protobuf_unittest::TestAllTypesLite* TestParsingMergeLite_RepeatedFieldsGenerator_Group1::release_field1() {
  8429. // @@protoc_insertion_point(field_release:protobuf_unittest.TestParsingMergeLite.RepeatedFieldsGenerator.Group1.field1)
  8430. clear_has_field1();
  8431. ::protobuf_unittest::TestAllTypesLite* temp = field1_;
  8432. field1_ = NULL;
  8433. return temp;
  8434. }
  8435. inline ::protobuf_unittest::TestAllTypesLite* TestParsingMergeLite_RepeatedFieldsGenerator_Group1::mutable_field1() {
  8436. set_has_field1();
  8437. if (field1_ == NULL) {
  8438. auto* p = CreateMaybeMessage<::protobuf_unittest::TestAllTypesLite>(GetArenaNoVirtual());
  8439. field1_ = p;
  8440. }
  8441. // @@protoc_insertion_point(field_mutable:protobuf_unittest.TestParsingMergeLite.RepeatedFieldsGenerator.Group1.field1)
  8442. return field1_;
  8443. }
  8444. inline void TestParsingMergeLite_RepeatedFieldsGenerator_Group1::set_allocated_field1(::protobuf_unittest::TestAllTypesLite* field1) {
  8445. ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
  8446. if (message_arena == NULL) {
  8447. delete field1_;
  8448. }
  8449. if (field1) {
  8450. ::google::protobuf::Arena* submessage_arena = NULL;
  8451. if (message_arena != submessage_arena) {
  8452. field1 = ::google::protobuf::internal::GetOwnedMessage(
  8453. message_arena, field1, submessage_arena);
  8454. }
  8455. set_has_field1();
  8456. } else {
  8457. clear_has_field1();
  8458. }
  8459. field1_ = field1;
  8460. // @@protoc_insertion_point(field_set_allocated:protobuf_unittest.TestParsingMergeLite.RepeatedFieldsGenerator.Group1.field1)
  8461. }
  8462. // -------------------------------------------------------------------
  8463. // TestParsingMergeLite_RepeatedFieldsGenerator_Group2
  8464. // optional .protobuf_unittest.TestAllTypesLite field1 = 21;
  8465. inline bool TestParsingMergeLite_RepeatedFieldsGenerator_Group2::has_field1() const {
  8466. return (_has_bits_[0] & 0x00000001u) != 0;
  8467. }
  8468. inline void TestParsingMergeLite_RepeatedFieldsGenerator_Group2::set_has_field1() {
  8469. _has_bits_[0] |= 0x00000001u;
  8470. }
  8471. inline void TestParsingMergeLite_RepeatedFieldsGenerator_Group2::clear_has_field1() {
  8472. _has_bits_[0] &= ~0x00000001u;
  8473. }
  8474. inline void TestParsingMergeLite_RepeatedFieldsGenerator_Group2::clear_field1() {
  8475. if (field1_ != NULL) field1_->Clear();
  8476. clear_has_field1();
  8477. }
  8478. inline const ::protobuf_unittest::TestAllTypesLite& TestParsingMergeLite_RepeatedFieldsGenerator_Group2::_internal_field1() const {
  8479. return *field1_;
  8480. }
  8481. inline const ::protobuf_unittest::TestAllTypesLite& TestParsingMergeLite_RepeatedFieldsGenerator_Group2::field1() const {
  8482. const ::protobuf_unittest::TestAllTypesLite* p = field1_;
  8483. // @@protoc_insertion_point(field_get:protobuf_unittest.TestParsingMergeLite.RepeatedFieldsGenerator.Group2.field1)
  8484. return p != NULL ? *p : *reinterpret_cast<const ::protobuf_unittest::TestAllTypesLite*>(
  8485. &::protobuf_unittest::_TestAllTypesLite_default_instance_);
  8486. }
  8487. inline ::protobuf_unittest::TestAllTypesLite* TestParsingMergeLite_RepeatedFieldsGenerator_Group2::release_field1() {
  8488. // @@protoc_insertion_point(field_release:protobuf_unittest.TestParsingMergeLite.RepeatedFieldsGenerator.Group2.field1)
  8489. clear_has_field1();
  8490. ::protobuf_unittest::TestAllTypesLite* temp = field1_;
  8491. field1_ = NULL;
  8492. return temp;
  8493. }
  8494. inline ::protobuf_unittest::TestAllTypesLite* TestParsingMergeLite_RepeatedFieldsGenerator_Group2::mutable_field1() {
  8495. set_has_field1();
  8496. if (field1_ == NULL) {
  8497. auto* p = CreateMaybeMessage<::protobuf_unittest::TestAllTypesLite>(GetArenaNoVirtual());
  8498. field1_ = p;
  8499. }
  8500. // @@protoc_insertion_point(field_mutable:protobuf_unittest.TestParsingMergeLite.RepeatedFieldsGenerator.Group2.field1)
  8501. return field1_;
  8502. }
  8503. inline void TestParsingMergeLite_RepeatedFieldsGenerator_Group2::set_allocated_field1(::protobuf_unittest::TestAllTypesLite* field1) {
  8504. ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
  8505. if (message_arena == NULL) {
  8506. delete field1_;
  8507. }
  8508. if (field1) {
  8509. ::google::protobuf::Arena* submessage_arena = NULL;
  8510. if (message_arena != submessage_arena) {
  8511. field1 = ::google::protobuf::internal::GetOwnedMessage(
  8512. message_arena, field1, submessage_arena);
  8513. }
  8514. set_has_field1();
  8515. } else {
  8516. clear_has_field1();
  8517. }
  8518. field1_ = field1;
  8519. // @@protoc_insertion_point(field_set_allocated:protobuf_unittest.TestParsingMergeLite.RepeatedFieldsGenerator.Group2.field1)
  8520. }
  8521. // -------------------------------------------------------------------
  8522. // TestParsingMergeLite_RepeatedFieldsGenerator
  8523. // repeated .protobuf_unittest.TestAllTypesLite field1 = 1;
  8524. inline int TestParsingMergeLite_RepeatedFieldsGenerator::field1_size() const {
  8525. return field1_.size();
  8526. }
  8527. inline void TestParsingMergeLite_RepeatedFieldsGenerator::clear_field1() {
  8528. field1_.Clear();
  8529. }
  8530. inline ::protobuf_unittest::TestAllTypesLite* TestParsingMergeLite_RepeatedFieldsGenerator::mutable_field1(int index) {
  8531. // @@protoc_insertion_point(field_mutable:protobuf_unittest.TestParsingMergeLite.RepeatedFieldsGenerator.field1)
  8532. return field1_.Mutable(index);
  8533. }
  8534. inline ::google::protobuf::RepeatedPtrField< ::protobuf_unittest::TestAllTypesLite >*
  8535. TestParsingMergeLite_RepeatedFieldsGenerator::mutable_field1() {
  8536. // @@protoc_insertion_point(field_mutable_list:protobuf_unittest.TestParsingMergeLite.RepeatedFieldsGenerator.field1)
  8537. return &field1_;
  8538. }
  8539. inline const ::protobuf_unittest::TestAllTypesLite& TestParsingMergeLite_RepeatedFieldsGenerator::field1(int index) const {
  8540. // @@protoc_insertion_point(field_get:protobuf_unittest.TestParsingMergeLite.RepeatedFieldsGenerator.field1)
  8541. return field1_.Get(index);
  8542. }
  8543. inline ::protobuf_unittest::TestAllTypesLite* TestParsingMergeLite_RepeatedFieldsGenerator::add_field1() {
  8544. // @@protoc_insertion_point(field_add:protobuf_unittest.TestParsingMergeLite.RepeatedFieldsGenerator.field1)
  8545. return field1_.Add();
  8546. }
  8547. inline const ::google::protobuf::RepeatedPtrField< ::protobuf_unittest::TestAllTypesLite >&
  8548. TestParsingMergeLite_RepeatedFieldsGenerator::field1() const {
  8549. // @@protoc_insertion_point(field_list:protobuf_unittest.TestParsingMergeLite.RepeatedFieldsGenerator.field1)
  8550. return field1_;
  8551. }
  8552. // repeated .protobuf_unittest.TestAllTypesLite field2 = 2;
  8553. inline int TestParsingMergeLite_RepeatedFieldsGenerator::field2_size() const {
  8554. return field2_.size();
  8555. }
  8556. inline void TestParsingMergeLite_RepeatedFieldsGenerator::clear_field2() {
  8557. field2_.Clear();
  8558. }
  8559. inline ::protobuf_unittest::TestAllTypesLite* TestParsingMergeLite_RepeatedFieldsGenerator::mutable_field2(int index) {
  8560. // @@protoc_insertion_point(field_mutable:protobuf_unittest.TestParsingMergeLite.RepeatedFieldsGenerator.field2)
  8561. return field2_.Mutable(index);
  8562. }
  8563. inline ::google::protobuf::RepeatedPtrField< ::protobuf_unittest::TestAllTypesLite >*
  8564. TestParsingMergeLite_RepeatedFieldsGenerator::mutable_field2() {
  8565. // @@protoc_insertion_point(field_mutable_list:protobuf_unittest.TestParsingMergeLite.RepeatedFieldsGenerator.field2)
  8566. return &field2_;
  8567. }
  8568. inline const ::protobuf_unittest::TestAllTypesLite& TestParsingMergeLite_RepeatedFieldsGenerator::field2(int index) const {
  8569. // @@protoc_insertion_point(field_get:protobuf_unittest.TestParsingMergeLite.RepeatedFieldsGenerator.field2)
  8570. return field2_.Get(index);
  8571. }
  8572. inline ::protobuf_unittest::TestAllTypesLite* TestParsingMergeLite_RepeatedFieldsGenerator::add_field2() {
  8573. // @@protoc_insertion_point(field_add:protobuf_unittest.TestParsingMergeLite.RepeatedFieldsGenerator.field2)
  8574. return field2_.Add();
  8575. }
  8576. inline const ::google::protobuf::RepeatedPtrField< ::protobuf_unittest::TestAllTypesLite >&
  8577. TestParsingMergeLite_RepeatedFieldsGenerator::field2() const {
  8578. // @@protoc_insertion_point(field_list:protobuf_unittest.TestParsingMergeLite.RepeatedFieldsGenerator.field2)
  8579. return field2_;
  8580. }
  8581. // repeated .protobuf_unittest.TestAllTypesLite field3 = 3;
  8582. inline int TestParsingMergeLite_RepeatedFieldsGenerator::field3_size() const {
  8583. return field3_.size();
  8584. }
  8585. inline void TestParsingMergeLite_RepeatedFieldsGenerator::clear_field3() {
  8586. field3_.Clear();
  8587. }
  8588. inline ::protobuf_unittest::TestAllTypesLite* TestParsingMergeLite_RepeatedFieldsGenerator::mutable_field3(int index) {
  8589. // @@protoc_insertion_point(field_mutable:protobuf_unittest.TestParsingMergeLite.RepeatedFieldsGenerator.field3)
  8590. return field3_.Mutable(index);
  8591. }
  8592. inline ::google::protobuf::RepeatedPtrField< ::protobuf_unittest::TestAllTypesLite >*
  8593. TestParsingMergeLite_RepeatedFieldsGenerator::mutable_field3() {
  8594. // @@protoc_insertion_point(field_mutable_list:protobuf_unittest.TestParsingMergeLite.RepeatedFieldsGenerator.field3)
  8595. return &field3_;
  8596. }
  8597. inline const ::protobuf_unittest::TestAllTypesLite& TestParsingMergeLite_RepeatedFieldsGenerator::field3(int index) const {
  8598. // @@protoc_insertion_point(field_get:protobuf_unittest.TestParsingMergeLite.RepeatedFieldsGenerator.field3)
  8599. return field3_.Get(index);
  8600. }
  8601. inline ::protobuf_unittest::TestAllTypesLite* TestParsingMergeLite_RepeatedFieldsGenerator::add_field3() {
  8602. // @@protoc_insertion_point(field_add:protobuf_unittest.TestParsingMergeLite.RepeatedFieldsGenerator.field3)
  8603. return field3_.Add();
  8604. }
  8605. inline const ::google::protobuf::RepeatedPtrField< ::protobuf_unittest::TestAllTypesLite >&
  8606. TestParsingMergeLite_RepeatedFieldsGenerator::field3() const {
  8607. // @@protoc_insertion_point(field_list:protobuf_unittest.TestParsingMergeLite.RepeatedFieldsGenerator.field3)
  8608. return field3_;
  8609. }
  8610. // repeated group Group1 = 10 { ... };
  8611. inline int TestParsingMergeLite_RepeatedFieldsGenerator::group1_size() const {
  8612. return group1_.size();
  8613. }
  8614. inline void TestParsingMergeLite_RepeatedFieldsGenerator::clear_group1() {
  8615. group1_.Clear();
  8616. }
  8617. inline ::protobuf_unittest::TestParsingMergeLite_RepeatedFieldsGenerator_Group1* TestParsingMergeLite_RepeatedFieldsGenerator::mutable_group1(int index) {
  8618. // @@protoc_insertion_point(field_mutable:protobuf_unittest.TestParsingMergeLite.RepeatedFieldsGenerator.group1)
  8619. return group1_.Mutable(index);
  8620. }
  8621. inline ::google::protobuf::RepeatedPtrField< ::protobuf_unittest::TestParsingMergeLite_RepeatedFieldsGenerator_Group1 >*
  8622. TestParsingMergeLite_RepeatedFieldsGenerator::mutable_group1() {
  8623. // @@protoc_insertion_point(field_mutable_list:protobuf_unittest.TestParsingMergeLite.RepeatedFieldsGenerator.group1)
  8624. return &group1_;
  8625. }
  8626. inline const ::protobuf_unittest::TestParsingMergeLite_RepeatedFieldsGenerator_Group1& TestParsingMergeLite_RepeatedFieldsGenerator::group1(int index) const {
  8627. // @@protoc_insertion_point(field_get:protobuf_unittest.TestParsingMergeLite.RepeatedFieldsGenerator.group1)
  8628. return group1_.Get(index);
  8629. }
  8630. inline ::protobuf_unittest::TestParsingMergeLite_RepeatedFieldsGenerator_Group1* TestParsingMergeLite_RepeatedFieldsGenerator::add_group1() {
  8631. // @@protoc_insertion_point(field_add:protobuf_unittest.TestParsingMergeLite.RepeatedFieldsGenerator.group1)
  8632. return group1_.Add();
  8633. }
  8634. inline const ::google::protobuf::RepeatedPtrField< ::protobuf_unittest::TestParsingMergeLite_RepeatedFieldsGenerator_Group1 >&
  8635. TestParsingMergeLite_RepeatedFieldsGenerator::group1() const {
  8636. // @@protoc_insertion_point(field_list:protobuf_unittest.TestParsingMergeLite.RepeatedFieldsGenerator.group1)
  8637. return group1_;
  8638. }
  8639. // repeated group Group2 = 20 { ... };
  8640. inline int TestParsingMergeLite_RepeatedFieldsGenerator::group2_size() const {
  8641. return group2_.size();
  8642. }
  8643. inline void TestParsingMergeLite_RepeatedFieldsGenerator::clear_group2() {
  8644. group2_.Clear();
  8645. }
  8646. inline ::protobuf_unittest::TestParsingMergeLite_RepeatedFieldsGenerator_Group2* TestParsingMergeLite_RepeatedFieldsGenerator::mutable_group2(int index) {
  8647. // @@protoc_insertion_point(field_mutable:protobuf_unittest.TestParsingMergeLite.RepeatedFieldsGenerator.group2)
  8648. return group2_.Mutable(index);
  8649. }
  8650. inline ::google::protobuf::RepeatedPtrField< ::protobuf_unittest::TestParsingMergeLite_RepeatedFieldsGenerator_Group2 >*
  8651. TestParsingMergeLite_RepeatedFieldsGenerator::mutable_group2() {
  8652. // @@protoc_insertion_point(field_mutable_list:protobuf_unittest.TestParsingMergeLite.RepeatedFieldsGenerator.group2)
  8653. return &group2_;
  8654. }
  8655. inline const ::protobuf_unittest::TestParsingMergeLite_RepeatedFieldsGenerator_Group2& TestParsingMergeLite_RepeatedFieldsGenerator::group2(int index) const {
  8656. // @@protoc_insertion_point(field_get:protobuf_unittest.TestParsingMergeLite.RepeatedFieldsGenerator.group2)
  8657. return group2_.Get(index);
  8658. }
  8659. inline ::protobuf_unittest::TestParsingMergeLite_RepeatedFieldsGenerator_Group2* TestParsingMergeLite_RepeatedFieldsGenerator::add_group2() {
  8660. // @@protoc_insertion_point(field_add:protobuf_unittest.TestParsingMergeLite.RepeatedFieldsGenerator.group2)
  8661. return group2_.Add();
  8662. }
  8663. inline const ::google::protobuf::RepeatedPtrField< ::protobuf_unittest::TestParsingMergeLite_RepeatedFieldsGenerator_Group2 >&
  8664. TestParsingMergeLite_RepeatedFieldsGenerator::group2() const {
  8665. // @@protoc_insertion_point(field_list:protobuf_unittest.TestParsingMergeLite.RepeatedFieldsGenerator.group2)
  8666. return group2_;
  8667. }
  8668. // repeated .protobuf_unittest.TestAllTypesLite ext1 = 1000;
  8669. inline int TestParsingMergeLite_RepeatedFieldsGenerator::ext1_size() const {
  8670. return ext1_.size();
  8671. }
  8672. inline void TestParsingMergeLite_RepeatedFieldsGenerator::clear_ext1() {
  8673. ext1_.Clear();
  8674. }
  8675. inline ::protobuf_unittest::TestAllTypesLite* TestParsingMergeLite_RepeatedFieldsGenerator::mutable_ext1(int index) {
  8676. // @@protoc_insertion_point(field_mutable:protobuf_unittest.TestParsingMergeLite.RepeatedFieldsGenerator.ext1)
  8677. return ext1_.Mutable(index);
  8678. }
  8679. inline ::google::protobuf::RepeatedPtrField< ::protobuf_unittest::TestAllTypesLite >*
  8680. TestParsingMergeLite_RepeatedFieldsGenerator::mutable_ext1() {
  8681. // @@protoc_insertion_point(field_mutable_list:protobuf_unittest.TestParsingMergeLite.RepeatedFieldsGenerator.ext1)
  8682. return &ext1_;
  8683. }
  8684. inline const ::protobuf_unittest::TestAllTypesLite& TestParsingMergeLite_RepeatedFieldsGenerator::ext1(int index) const {
  8685. // @@protoc_insertion_point(field_get:protobuf_unittest.TestParsingMergeLite.RepeatedFieldsGenerator.ext1)
  8686. return ext1_.Get(index);
  8687. }
  8688. inline ::protobuf_unittest::TestAllTypesLite* TestParsingMergeLite_RepeatedFieldsGenerator::add_ext1() {
  8689. // @@protoc_insertion_point(field_add:protobuf_unittest.TestParsingMergeLite.RepeatedFieldsGenerator.ext1)
  8690. return ext1_.Add();
  8691. }
  8692. inline const ::google::protobuf::RepeatedPtrField< ::protobuf_unittest::TestAllTypesLite >&
  8693. TestParsingMergeLite_RepeatedFieldsGenerator::ext1() const {
  8694. // @@protoc_insertion_point(field_list:protobuf_unittest.TestParsingMergeLite.RepeatedFieldsGenerator.ext1)
  8695. return ext1_;
  8696. }
  8697. // repeated .protobuf_unittest.TestAllTypesLite ext2 = 1001;
  8698. inline int TestParsingMergeLite_RepeatedFieldsGenerator::ext2_size() const {
  8699. return ext2_.size();
  8700. }
  8701. inline void TestParsingMergeLite_RepeatedFieldsGenerator::clear_ext2() {
  8702. ext2_.Clear();
  8703. }
  8704. inline ::protobuf_unittest::TestAllTypesLite* TestParsingMergeLite_RepeatedFieldsGenerator::mutable_ext2(int index) {
  8705. // @@protoc_insertion_point(field_mutable:protobuf_unittest.TestParsingMergeLite.RepeatedFieldsGenerator.ext2)
  8706. return ext2_.Mutable(index);
  8707. }
  8708. inline ::google::protobuf::RepeatedPtrField< ::protobuf_unittest::TestAllTypesLite >*
  8709. TestParsingMergeLite_RepeatedFieldsGenerator::mutable_ext2() {
  8710. // @@protoc_insertion_point(field_mutable_list:protobuf_unittest.TestParsingMergeLite.RepeatedFieldsGenerator.ext2)
  8711. return &ext2_;
  8712. }
  8713. inline const ::protobuf_unittest::TestAllTypesLite& TestParsingMergeLite_RepeatedFieldsGenerator::ext2(int index) const {
  8714. // @@protoc_insertion_point(field_get:protobuf_unittest.TestParsingMergeLite.RepeatedFieldsGenerator.ext2)
  8715. return ext2_.Get(index);
  8716. }
  8717. inline ::protobuf_unittest::TestAllTypesLite* TestParsingMergeLite_RepeatedFieldsGenerator::add_ext2() {
  8718. // @@protoc_insertion_point(field_add:protobuf_unittest.TestParsingMergeLite.RepeatedFieldsGenerator.ext2)
  8719. return ext2_.Add();
  8720. }
  8721. inline const ::google::protobuf::RepeatedPtrField< ::protobuf_unittest::TestAllTypesLite >&
  8722. TestParsingMergeLite_RepeatedFieldsGenerator::ext2() const {
  8723. // @@protoc_insertion_point(field_list:protobuf_unittest.TestParsingMergeLite.RepeatedFieldsGenerator.ext2)
  8724. return ext2_;
  8725. }
  8726. // -------------------------------------------------------------------
  8727. // TestParsingMergeLite_OptionalGroup
  8728. // optional .protobuf_unittest.TestAllTypesLite optional_group_all_types = 11;
  8729. inline bool TestParsingMergeLite_OptionalGroup::has_optional_group_all_types() const {
  8730. return (_has_bits_[0] & 0x00000001u) != 0;
  8731. }
  8732. inline void TestParsingMergeLite_OptionalGroup::set_has_optional_group_all_types() {
  8733. _has_bits_[0] |= 0x00000001u;
  8734. }
  8735. inline void TestParsingMergeLite_OptionalGroup::clear_has_optional_group_all_types() {
  8736. _has_bits_[0] &= ~0x00000001u;
  8737. }
  8738. inline void TestParsingMergeLite_OptionalGroup::clear_optional_group_all_types() {
  8739. if (optional_group_all_types_ != NULL) optional_group_all_types_->Clear();
  8740. clear_has_optional_group_all_types();
  8741. }
  8742. inline const ::protobuf_unittest::TestAllTypesLite& TestParsingMergeLite_OptionalGroup::_internal_optional_group_all_types() const {
  8743. return *optional_group_all_types_;
  8744. }
  8745. inline const ::protobuf_unittest::TestAllTypesLite& TestParsingMergeLite_OptionalGroup::optional_group_all_types() const {
  8746. const ::protobuf_unittest::TestAllTypesLite* p = optional_group_all_types_;
  8747. // @@protoc_insertion_point(field_get:protobuf_unittest.TestParsingMergeLite.OptionalGroup.optional_group_all_types)
  8748. return p != NULL ? *p : *reinterpret_cast<const ::protobuf_unittest::TestAllTypesLite*>(
  8749. &::protobuf_unittest::_TestAllTypesLite_default_instance_);
  8750. }
  8751. inline ::protobuf_unittest::TestAllTypesLite* TestParsingMergeLite_OptionalGroup::release_optional_group_all_types() {
  8752. // @@protoc_insertion_point(field_release:protobuf_unittest.TestParsingMergeLite.OptionalGroup.optional_group_all_types)
  8753. clear_has_optional_group_all_types();
  8754. ::protobuf_unittest::TestAllTypesLite* temp = optional_group_all_types_;
  8755. optional_group_all_types_ = NULL;
  8756. return temp;
  8757. }
  8758. inline ::protobuf_unittest::TestAllTypesLite* TestParsingMergeLite_OptionalGroup::mutable_optional_group_all_types() {
  8759. set_has_optional_group_all_types();
  8760. if (optional_group_all_types_ == NULL) {
  8761. auto* p = CreateMaybeMessage<::protobuf_unittest::TestAllTypesLite>(GetArenaNoVirtual());
  8762. optional_group_all_types_ = p;
  8763. }
  8764. // @@protoc_insertion_point(field_mutable:protobuf_unittest.TestParsingMergeLite.OptionalGroup.optional_group_all_types)
  8765. return optional_group_all_types_;
  8766. }
  8767. inline void TestParsingMergeLite_OptionalGroup::set_allocated_optional_group_all_types(::protobuf_unittest::TestAllTypesLite* optional_group_all_types) {
  8768. ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
  8769. if (message_arena == NULL) {
  8770. delete optional_group_all_types_;
  8771. }
  8772. if (optional_group_all_types) {
  8773. ::google::protobuf::Arena* submessage_arena = NULL;
  8774. if (message_arena != submessage_arena) {
  8775. optional_group_all_types = ::google::protobuf::internal::GetOwnedMessage(
  8776. message_arena, optional_group_all_types, submessage_arena);
  8777. }
  8778. set_has_optional_group_all_types();
  8779. } else {
  8780. clear_has_optional_group_all_types();
  8781. }
  8782. optional_group_all_types_ = optional_group_all_types;
  8783. // @@protoc_insertion_point(field_set_allocated:protobuf_unittest.TestParsingMergeLite.OptionalGroup.optional_group_all_types)
  8784. }
  8785. // -------------------------------------------------------------------
  8786. // TestParsingMergeLite_RepeatedGroup
  8787. // optional .protobuf_unittest.TestAllTypesLite repeated_group_all_types = 21;
  8788. inline bool TestParsingMergeLite_RepeatedGroup::has_repeated_group_all_types() const {
  8789. return (_has_bits_[0] & 0x00000001u) != 0;
  8790. }
  8791. inline void TestParsingMergeLite_RepeatedGroup::set_has_repeated_group_all_types() {
  8792. _has_bits_[0] |= 0x00000001u;
  8793. }
  8794. inline void TestParsingMergeLite_RepeatedGroup::clear_has_repeated_group_all_types() {
  8795. _has_bits_[0] &= ~0x00000001u;
  8796. }
  8797. inline void TestParsingMergeLite_RepeatedGroup::clear_repeated_group_all_types() {
  8798. if (repeated_group_all_types_ != NULL) repeated_group_all_types_->Clear();
  8799. clear_has_repeated_group_all_types();
  8800. }
  8801. inline const ::protobuf_unittest::TestAllTypesLite& TestParsingMergeLite_RepeatedGroup::_internal_repeated_group_all_types() const {
  8802. return *repeated_group_all_types_;
  8803. }
  8804. inline const ::protobuf_unittest::TestAllTypesLite& TestParsingMergeLite_RepeatedGroup::repeated_group_all_types() const {
  8805. const ::protobuf_unittest::TestAllTypesLite* p = repeated_group_all_types_;
  8806. // @@protoc_insertion_point(field_get:protobuf_unittest.TestParsingMergeLite.RepeatedGroup.repeated_group_all_types)
  8807. return p != NULL ? *p : *reinterpret_cast<const ::protobuf_unittest::TestAllTypesLite*>(
  8808. &::protobuf_unittest::_TestAllTypesLite_default_instance_);
  8809. }
  8810. inline ::protobuf_unittest::TestAllTypesLite* TestParsingMergeLite_RepeatedGroup::release_repeated_group_all_types() {
  8811. // @@protoc_insertion_point(field_release:protobuf_unittest.TestParsingMergeLite.RepeatedGroup.repeated_group_all_types)
  8812. clear_has_repeated_group_all_types();
  8813. ::protobuf_unittest::TestAllTypesLite* temp = repeated_group_all_types_;
  8814. repeated_group_all_types_ = NULL;
  8815. return temp;
  8816. }
  8817. inline ::protobuf_unittest::TestAllTypesLite* TestParsingMergeLite_RepeatedGroup::mutable_repeated_group_all_types() {
  8818. set_has_repeated_group_all_types();
  8819. if (repeated_group_all_types_ == NULL) {
  8820. auto* p = CreateMaybeMessage<::protobuf_unittest::TestAllTypesLite>(GetArenaNoVirtual());
  8821. repeated_group_all_types_ = p;
  8822. }
  8823. // @@protoc_insertion_point(field_mutable:protobuf_unittest.TestParsingMergeLite.RepeatedGroup.repeated_group_all_types)
  8824. return repeated_group_all_types_;
  8825. }
  8826. inline void TestParsingMergeLite_RepeatedGroup::set_allocated_repeated_group_all_types(::protobuf_unittest::TestAllTypesLite* repeated_group_all_types) {
  8827. ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
  8828. if (message_arena == NULL) {
  8829. delete repeated_group_all_types_;
  8830. }
  8831. if (repeated_group_all_types) {
  8832. ::google::protobuf::Arena* submessage_arena = NULL;
  8833. if (message_arena != submessage_arena) {
  8834. repeated_group_all_types = ::google::protobuf::internal::GetOwnedMessage(
  8835. message_arena, repeated_group_all_types, submessage_arena);
  8836. }
  8837. set_has_repeated_group_all_types();
  8838. } else {
  8839. clear_has_repeated_group_all_types();
  8840. }
  8841. repeated_group_all_types_ = repeated_group_all_types;
  8842. // @@protoc_insertion_point(field_set_allocated:protobuf_unittest.TestParsingMergeLite.RepeatedGroup.repeated_group_all_types)
  8843. }
  8844. // -------------------------------------------------------------------
  8845. // TestParsingMergeLite
  8846. // required .protobuf_unittest.TestAllTypesLite required_all_types = 1;
  8847. inline bool TestParsingMergeLite::has_required_all_types() const {
  8848. return (_has_bits_[0] & 0x00000001u) != 0;
  8849. }
  8850. inline void TestParsingMergeLite::set_has_required_all_types() {
  8851. _has_bits_[0] |= 0x00000001u;
  8852. }
  8853. inline void TestParsingMergeLite::clear_has_required_all_types() {
  8854. _has_bits_[0] &= ~0x00000001u;
  8855. }
  8856. inline void TestParsingMergeLite::clear_required_all_types() {
  8857. if (required_all_types_ != NULL) required_all_types_->Clear();
  8858. clear_has_required_all_types();
  8859. }
  8860. inline const ::protobuf_unittest::TestAllTypesLite& TestParsingMergeLite::_internal_required_all_types() const {
  8861. return *required_all_types_;
  8862. }
  8863. inline const ::protobuf_unittest::TestAllTypesLite& TestParsingMergeLite::required_all_types() const {
  8864. const ::protobuf_unittest::TestAllTypesLite* p = required_all_types_;
  8865. // @@protoc_insertion_point(field_get:protobuf_unittest.TestParsingMergeLite.required_all_types)
  8866. return p != NULL ? *p : *reinterpret_cast<const ::protobuf_unittest::TestAllTypesLite*>(
  8867. &::protobuf_unittest::_TestAllTypesLite_default_instance_);
  8868. }
  8869. inline ::protobuf_unittest::TestAllTypesLite* TestParsingMergeLite::release_required_all_types() {
  8870. // @@protoc_insertion_point(field_release:protobuf_unittest.TestParsingMergeLite.required_all_types)
  8871. clear_has_required_all_types();
  8872. ::protobuf_unittest::TestAllTypesLite* temp = required_all_types_;
  8873. required_all_types_ = NULL;
  8874. return temp;
  8875. }
  8876. inline ::protobuf_unittest::TestAllTypesLite* TestParsingMergeLite::mutable_required_all_types() {
  8877. set_has_required_all_types();
  8878. if (required_all_types_ == NULL) {
  8879. auto* p = CreateMaybeMessage<::protobuf_unittest::TestAllTypesLite>(GetArenaNoVirtual());
  8880. required_all_types_ = p;
  8881. }
  8882. // @@protoc_insertion_point(field_mutable:protobuf_unittest.TestParsingMergeLite.required_all_types)
  8883. return required_all_types_;
  8884. }
  8885. inline void TestParsingMergeLite::set_allocated_required_all_types(::protobuf_unittest::TestAllTypesLite* required_all_types) {
  8886. ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
  8887. if (message_arena == NULL) {
  8888. delete required_all_types_;
  8889. }
  8890. if (required_all_types) {
  8891. ::google::protobuf::Arena* submessage_arena = NULL;
  8892. if (message_arena != submessage_arena) {
  8893. required_all_types = ::google::protobuf::internal::GetOwnedMessage(
  8894. message_arena, required_all_types, submessage_arena);
  8895. }
  8896. set_has_required_all_types();
  8897. } else {
  8898. clear_has_required_all_types();
  8899. }
  8900. required_all_types_ = required_all_types;
  8901. // @@protoc_insertion_point(field_set_allocated:protobuf_unittest.TestParsingMergeLite.required_all_types)
  8902. }
  8903. // optional .protobuf_unittest.TestAllTypesLite optional_all_types = 2;
  8904. inline bool TestParsingMergeLite::has_optional_all_types() const {
  8905. return (_has_bits_[0] & 0x00000002u) != 0;
  8906. }
  8907. inline void TestParsingMergeLite::set_has_optional_all_types() {
  8908. _has_bits_[0] |= 0x00000002u;
  8909. }
  8910. inline void TestParsingMergeLite::clear_has_optional_all_types() {
  8911. _has_bits_[0] &= ~0x00000002u;
  8912. }
  8913. inline void TestParsingMergeLite::clear_optional_all_types() {
  8914. if (optional_all_types_ != NULL) optional_all_types_->Clear();
  8915. clear_has_optional_all_types();
  8916. }
  8917. inline const ::protobuf_unittest::TestAllTypesLite& TestParsingMergeLite::_internal_optional_all_types() const {
  8918. return *optional_all_types_;
  8919. }
  8920. inline const ::protobuf_unittest::TestAllTypesLite& TestParsingMergeLite::optional_all_types() const {
  8921. const ::protobuf_unittest::TestAllTypesLite* p = optional_all_types_;
  8922. // @@protoc_insertion_point(field_get:protobuf_unittest.TestParsingMergeLite.optional_all_types)
  8923. return p != NULL ? *p : *reinterpret_cast<const ::protobuf_unittest::TestAllTypesLite*>(
  8924. &::protobuf_unittest::_TestAllTypesLite_default_instance_);
  8925. }
  8926. inline ::protobuf_unittest::TestAllTypesLite* TestParsingMergeLite::release_optional_all_types() {
  8927. // @@protoc_insertion_point(field_release:protobuf_unittest.TestParsingMergeLite.optional_all_types)
  8928. clear_has_optional_all_types();
  8929. ::protobuf_unittest::TestAllTypesLite* temp = optional_all_types_;
  8930. optional_all_types_ = NULL;
  8931. return temp;
  8932. }
  8933. inline ::protobuf_unittest::TestAllTypesLite* TestParsingMergeLite::mutable_optional_all_types() {
  8934. set_has_optional_all_types();
  8935. if (optional_all_types_ == NULL) {
  8936. auto* p = CreateMaybeMessage<::protobuf_unittest::TestAllTypesLite>(GetArenaNoVirtual());
  8937. optional_all_types_ = p;
  8938. }
  8939. // @@protoc_insertion_point(field_mutable:protobuf_unittest.TestParsingMergeLite.optional_all_types)
  8940. return optional_all_types_;
  8941. }
  8942. inline void TestParsingMergeLite::set_allocated_optional_all_types(::protobuf_unittest::TestAllTypesLite* optional_all_types) {
  8943. ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
  8944. if (message_arena == NULL) {
  8945. delete optional_all_types_;
  8946. }
  8947. if (optional_all_types) {
  8948. ::google::protobuf::Arena* submessage_arena = NULL;
  8949. if (message_arena != submessage_arena) {
  8950. optional_all_types = ::google::protobuf::internal::GetOwnedMessage(
  8951. message_arena, optional_all_types, submessage_arena);
  8952. }
  8953. set_has_optional_all_types();
  8954. } else {
  8955. clear_has_optional_all_types();
  8956. }
  8957. optional_all_types_ = optional_all_types;
  8958. // @@protoc_insertion_point(field_set_allocated:protobuf_unittest.TestParsingMergeLite.optional_all_types)
  8959. }
  8960. // repeated .protobuf_unittest.TestAllTypesLite repeated_all_types = 3;
  8961. inline int TestParsingMergeLite::repeated_all_types_size() const {
  8962. return repeated_all_types_.size();
  8963. }
  8964. inline void TestParsingMergeLite::clear_repeated_all_types() {
  8965. repeated_all_types_.Clear();
  8966. }
  8967. inline ::protobuf_unittest::TestAllTypesLite* TestParsingMergeLite::mutable_repeated_all_types(int index) {
  8968. // @@protoc_insertion_point(field_mutable:protobuf_unittest.TestParsingMergeLite.repeated_all_types)
  8969. return repeated_all_types_.Mutable(index);
  8970. }
  8971. inline ::google::protobuf::RepeatedPtrField< ::protobuf_unittest::TestAllTypesLite >*
  8972. TestParsingMergeLite::mutable_repeated_all_types() {
  8973. // @@protoc_insertion_point(field_mutable_list:protobuf_unittest.TestParsingMergeLite.repeated_all_types)
  8974. return &repeated_all_types_;
  8975. }
  8976. inline const ::protobuf_unittest::TestAllTypesLite& TestParsingMergeLite::repeated_all_types(int index) const {
  8977. // @@protoc_insertion_point(field_get:protobuf_unittest.TestParsingMergeLite.repeated_all_types)
  8978. return repeated_all_types_.Get(index);
  8979. }
  8980. inline ::protobuf_unittest::TestAllTypesLite* TestParsingMergeLite::add_repeated_all_types() {
  8981. // @@protoc_insertion_point(field_add:protobuf_unittest.TestParsingMergeLite.repeated_all_types)
  8982. return repeated_all_types_.Add();
  8983. }
  8984. inline const ::google::protobuf::RepeatedPtrField< ::protobuf_unittest::TestAllTypesLite >&
  8985. TestParsingMergeLite::repeated_all_types() const {
  8986. // @@protoc_insertion_point(field_list:protobuf_unittest.TestParsingMergeLite.repeated_all_types)
  8987. return repeated_all_types_;
  8988. }
  8989. // optional group OptionalGroup = 10 { ... };
  8990. inline bool TestParsingMergeLite::has_optionalgroup() const {
  8991. return (_has_bits_[0] & 0x00000004u) != 0;
  8992. }
  8993. inline void TestParsingMergeLite::set_has_optionalgroup() {
  8994. _has_bits_[0] |= 0x00000004u;
  8995. }
  8996. inline void TestParsingMergeLite::clear_has_optionalgroup() {
  8997. _has_bits_[0] &= ~0x00000004u;
  8998. }
  8999. inline void TestParsingMergeLite::clear_optionalgroup() {
  9000. if (optionalgroup_ != NULL) optionalgroup_->Clear();
  9001. clear_has_optionalgroup();
  9002. }
  9003. inline const ::protobuf_unittest::TestParsingMergeLite_OptionalGroup& TestParsingMergeLite::_internal_optionalgroup() const {
  9004. return *optionalgroup_;
  9005. }
  9006. inline const ::protobuf_unittest::TestParsingMergeLite_OptionalGroup& TestParsingMergeLite::optionalgroup() const {
  9007. const ::protobuf_unittest::TestParsingMergeLite_OptionalGroup* p = optionalgroup_;
  9008. // @@protoc_insertion_point(field_get:protobuf_unittest.TestParsingMergeLite.optionalgroup)
  9009. return p != NULL ? *p : *reinterpret_cast<const ::protobuf_unittest::TestParsingMergeLite_OptionalGroup*>(
  9010. &::protobuf_unittest::_TestParsingMergeLite_OptionalGroup_default_instance_);
  9011. }
  9012. inline ::protobuf_unittest::TestParsingMergeLite_OptionalGroup* TestParsingMergeLite::release_optionalgroup() {
  9013. // @@protoc_insertion_point(field_release:protobuf_unittest.TestParsingMergeLite.optionalgroup)
  9014. clear_has_optionalgroup();
  9015. ::protobuf_unittest::TestParsingMergeLite_OptionalGroup* temp = optionalgroup_;
  9016. optionalgroup_ = NULL;
  9017. return temp;
  9018. }
  9019. inline ::protobuf_unittest::TestParsingMergeLite_OptionalGroup* TestParsingMergeLite::mutable_optionalgroup() {
  9020. set_has_optionalgroup();
  9021. if (optionalgroup_ == NULL) {
  9022. auto* p = CreateMaybeMessage<::protobuf_unittest::TestParsingMergeLite_OptionalGroup>(GetArenaNoVirtual());
  9023. optionalgroup_ = p;
  9024. }
  9025. // @@protoc_insertion_point(field_mutable:protobuf_unittest.TestParsingMergeLite.optionalgroup)
  9026. return optionalgroup_;
  9027. }
  9028. inline void TestParsingMergeLite::set_allocated_optionalgroup(::protobuf_unittest::TestParsingMergeLite_OptionalGroup* optionalgroup) {
  9029. ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
  9030. if (message_arena == NULL) {
  9031. delete optionalgroup_;
  9032. }
  9033. if (optionalgroup) {
  9034. ::google::protobuf::Arena* submessage_arena = NULL;
  9035. if (message_arena != submessage_arena) {
  9036. optionalgroup = ::google::protobuf::internal::GetOwnedMessage(
  9037. message_arena, optionalgroup, submessage_arena);
  9038. }
  9039. set_has_optionalgroup();
  9040. } else {
  9041. clear_has_optionalgroup();
  9042. }
  9043. optionalgroup_ = optionalgroup;
  9044. // @@protoc_insertion_point(field_set_allocated:protobuf_unittest.TestParsingMergeLite.optionalgroup)
  9045. }
  9046. // repeated group RepeatedGroup = 20 { ... };
  9047. inline int TestParsingMergeLite::repeatedgroup_size() const {
  9048. return repeatedgroup_.size();
  9049. }
  9050. inline void TestParsingMergeLite::clear_repeatedgroup() {
  9051. repeatedgroup_.Clear();
  9052. }
  9053. inline ::protobuf_unittest::TestParsingMergeLite_RepeatedGroup* TestParsingMergeLite::mutable_repeatedgroup(int index) {
  9054. // @@protoc_insertion_point(field_mutable:protobuf_unittest.TestParsingMergeLite.repeatedgroup)
  9055. return repeatedgroup_.Mutable(index);
  9056. }
  9057. inline ::google::protobuf::RepeatedPtrField< ::protobuf_unittest::TestParsingMergeLite_RepeatedGroup >*
  9058. TestParsingMergeLite::mutable_repeatedgroup() {
  9059. // @@protoc_insertion_point(field_mutable_list:protobuf_unittest.TestParsingMergeLite.repeatedgroup)
  9060. return &repeatedgroup_;
  9061. }
  9062. inline const ::protobuf_unittest::TestParsingMergeLite_RepeatedGroup& TestParsingMergeLite::repeatedgroup(int index) const {
  9063. // @@protoc_insertion_point(field_get:protobuf_unittest.TestParsingMergeLite.repeatedgroup)
  9064. return repeatedgroup_.Get(index);
  9065. }
  9066. inline ::protobuf_unittest::TestParsingMergeLite_RepeatedGroup* TestParsingMergeLite::add_repeatedgroup() {
  9067. // @@protoc_insertion_point(field_add:protobuf_unittest.TestParsingMergeLite.repeatedgroup)
  9068. return repeatedgroup_.Add();
  9069. }
  9070. inline const ::google::protobuf::RepeatedPtrField< ::protobuf_unittest::TestParsingMergeLite_RepeatedGroup >&
  9071. TestParsingMergeLite::repeatedgroup() const {
  9072. // @@protoc_insertion_point(field_list:protobuf_unittest.TestParsingMergeLite.repeatedgroup)
  9073. return repeatedgroup_;
  9074. }
  9075. // -------------------------------------------------------------------
  9076. // TestEmptyMessageLite
  9077. // -------------------------------------------------------------------
  9078. // TestEmptyMessageWithExtensionsLite
  9079. // -------------------------------------------------------------------
  9080. // V1MessageLite
  9081. // required int32 int_field = 1;
  9082. inline bool V1MessageLite::has_int_field() const {
  9083. return (_has_bits_[0] & 0x00000001u) != 0;
  9084. }
  9085. inline void V1MessageLite::set_has_int_field() {
  9086. _has_bits_[0] |= 0x00000001u;
  9087. }
  9088. inline void V1MessageLite::clear_has_int_field() {
  9089. _has_bits_[0] &= ~0x00000001u;
  9090. }
  9091. inline void V1MessageLite::clear_int_field() {
  9092. int_field_ = 0;
  9093. clear_has_int_field();
  9094. }
  9095. inline ::google::protobuf::int32 V1MessageLite::int_field() const {
  9096. // @@protoc_insertion_point(field_get:protobuf_unittest.V1MessageLite.int_field)
  9097. return int_field_;
  9098. }
  9099. inline void V1MessageLite::set_int_field(::google::protobuf::int32 value) {
  9100. set_has_int_field();
  9101. int_field_ = value;
  9102. // @@protoc_insertion_point(field_set:protobuf_unittest.V1MessageLite.int_field)
  9103. }
  9104. // optional .protobuf_unittest.V1EnumLite enum_field = 2 [default = V1_FIRST];
  9105. inline bool V1MessageLite::has_enum_field() const {
  9106. return (_has_bits_[0] & 0x00000002u) != 0;
  9107. }
  9108. inline void V1MessageLite::set_has_enum_field() {
  9109. _has_bits_[0] |= 0x00000002u;
  9110. }
  9111. inline void V1MessageLite::clear_has_enum_field() {
  9112. _has_bits_[0] &= ~0x00000002u;
  9113. }
  9114. inline void V1MessageLite::clear_enum_field() {
  9115. enum_field_ = 1;
  9116. clear_has_enum_field();
  9117. }
  9118. inline ::protobuf_unittest::V1EnumLite V1MessageLite::enum_field() const {
  9119. // @@protoc_insertion_point(field_get:protobuf_unittest.V1MessageLite.enum_field)
  9120. return static_cast< ::protobuf_unittest::V1EnumLite >(enum_field_);
  9121. }
  9122. inline void V1MessageLite::set_enum_field(::protobuf_unittest::V1EnumLite value) {
  9123. assert(::protobuf_unittest::V1EnumLite_IsValid(value));
  9124. set_has_enum_field();
  9125. enum_field_ = value;
  9126. // @@protoc_insertion_point(field_set:protobuf_unittest.V1MessageLite.enum_field)
  9127. }
  9128. // -------------------------------------------------------------------
  9129. // V2MessageLite
  9130. // required int32 int_field = 1;
  9131. inline bool V2MessageLite::has_int_field() const {
  9132. return (_has_bits_[0] & 0x00000001u) != 0;
  9133. }
  9134. inline void V2MessageLite::set_has_int_field() {
  9135. _has_bits_[0] |= 0x00000001u;
  9136. }
  9137. inline void V2MessageLite::clear_has_int_field() {
  9138. _has_bits_[0] &= ~0x00000001u;
  9139. }
  9140. inline void V2MessageLite::clear_int_field() {
  9141. int_field_ = 0;
  9142. clear_has_int_field();
  9143. }
  9144. inline ::google::protobuf::int32 V2MessageLite::int_field() const {
  9145. // @@protoc_insertion_point(field_get:protobuf_unittest.V2MessageLite.int_field)
  9146. return int_field_;
  9147. }
  9148. inline void V2MessageLite::set_int_field(::google::protobuf::int32 value) {
  9149. set_has_int_field();
  9150. int_field_ = value;
  9151. // @@protoc_insertion_point(field_set:protobuf_unittest.V2MessageLite.int_field)
  9152. }
  9153. // optional .protobuf_unittest.V2EnumLite enum_field = 2 [default = V2_FIRST];
  9154. inline bool V2MessageLite::has_enum_field() const {
  9155. return (_has_bits_[0] & 0x00000002u) != 0;
  9156. }
  9157. inline void V2MessageLite::set_has_enum_field() {
  9158. _has_bits_[0] |= 0x00000002u;
  9159. }
  9160. inline void V2MessageLite::clear_has_enum_field() {
  9161. _has_bits_[0] &= ~0x00000002u;
  9162. }
  9163. inline void V2MessageLite::clear_enum_field() {
  9164. enum_field_ = 1;
  9165. clear_has_enum_field();
  9166. }
  9167. inline ::protobuf_unittest::V2EnumLite V2MessageLite::enum_field() const {
  9168. // @@protoc_insertion_point(field_get:protobuf_unittest.V2MessageLite.enum_field)
  9169. return static_cast< ::protobuf_unittest::V2EnumLite >(enum_field_);
  9170. }
  9171. inline void V2MessageLite::set_enum_field(::protobuf_unittest::V2EnumLite value) {
  9172. assert(::protobuf_unittest::V2EnumLite_IsValid(value));
  9173. set_has_enum_field();
  9174. enum_field_ = value;
  9175. // @@protoc_insertion_point(field_set:protobuf_unittest.V2MessageLite.enum_field)
  9176. }
  9177. // -------------------------------------------------------------------
  9178. // TestHugeFieldNumbersLite_OptionalGroup
  9179. // optional int32 group_a = 536870009;
  9180. inline bool TestHugeFieldNumbersLite_OptionalGroup::has_group_a() const {
  9181. return (_has_bits_[0] & 0x00000001u) != 0;
  9182. }
  9183. inline void TestHugeFieldNumbersLite_OptionalGroup::set_has_group_a() {
  9184. _has_bits_[0] |= 0x00000001u;
  9185. }
  9186. inline void TestHugeFieldNumbersLite_OptionalGroup::clear_has_group_a() {
  9187. _has_bits_[0] &= ~0x00000001u;
  9188. }
  9189. inline void TestHugeFieldNumbersLite_OptionalGroup::clear_group_a() {
  9190. group_a_ = 0;
  9191. clear_has_group_a();
  9192. }
  9193. inline ::google::protobuf::int32 TestHugeFieldNumbersLite_OptionalGroup::group_a() const {
  9194. // @@protoc_insertion_point(field_get:protobuf_unittest.TestHugeFieldNumbersLite.OptionalGroup.group_a)
  9195. return group_a_;
  9196. }
  9197. inline void TestHugeFieldNumbersLite_OptionalGroup::set_group_a(::google::protobuf::int32 value) {
  9198. set_has_group_a();
  9199. group_a_ = value;
  9200. // @@protoc_insertion_point(field_set:protobuf_unittest.TestHugeFieldNumbersLite.OptionalGroup.group_a)
  9201. }
  9202. // -------------------------------------------------------------------
  9203. // -------------------------------------------------------------------
  9204. // TestHugeFieldNumbersLite
  9205. // optional int32 optional_int32 = 536870000;
  9206. inline bool TestHugeFieldNumbersLite::has_optional_int32() const {
  9207. return (_has_bits_[0] & 0x00000010u) != 0;
  9208. }
  9209. inline void TestHugeFieldNumbersLite::set_has_optional_int32() {
  9210. _has_bits_[0] |= 0x00000010u;
  9211. }
  9212. inline void TestHugeFieldNumbersLite::clear_has_optional_int32() {
  9213. _has_bits_[0] &= ~0x00000010u;
  9214. }
  9215. inline void TestHugeFieldNumbersLite::clear_optional_int32() {
  9216. optional_int32_ = 0;
  9217. clear_has_optional_int32();
  9218. }
  9219. inline ::google::protobuf::int32 TestHugeFieldNumbersLite::optional_int32() const {
  9220. // @@protoc_insertion_point(field_get:protobuf_unittest.TestHugeFieldNumbersLite.optional_int32)
  9221. return optional_int32_;
  9222. }
  9223. inline void TestHugeFieldNumbersLite::set_optional_int32(::google::protobuf::int32 value) {
  9224. set_has_optional_int32();
  9225. optional_int32_ = value;
  9226. // @@protoc_insertion_point(field_set:protobuf_unittest.TestHugeFieldNumbersLite.optional_int32)
  9227. }
  9228. // optional int32 fixed_32 = 536870001;
  9229. inline bool TestHugeFieldNumbersLite::has_fixed_32() const {
  9230. return (_has_bits_[0] & 0x00000020u) != 0;
  9231. }
  9232. inline void TestHugeFieldNumbersLite::set_has_fixed_32() {
  9233. _has_bits_[0] |= 0x00000020u;
  9234. }
  9235. inline void TestHugeFieldNumbersLite::clear_has_fixed_32() {
  9236. _has_bits_[0] &= ~0x00000020u;
  9237. }
  9238. inline void TestHugeFieldNumbersLite::clear_fixed_32() {
  9239. fixed_32_ = 0;
  9240. clear_has_fixed_32();
  9241. }
  9242. inline ::google::protobuf::int32 TestHugeFieldNumbersLite::fixed_32() const {
  9243. // @@protoc_insertion_point(field_get:protobuf_unittest.TestHugeFieldNumbersLite.fixed_32)
  9244. return fixed_32_;
  9245. }
  9246. inline void TestHugeFieldNumbersLite::set_fixed_32(::google::protobuf::int32 value) {
  9247. set_has_fixed_32();
  9248. fixed_32_ = value;
  9249. // @@protoc_insertion_point(field_set:protobuf_unittest.TestHugeFieldNumbersLite.fixed_32)
  9250. }
  9251. // repeated int32 repeated_int32 = 536870002 [packed = false];
  9252. inline int TestHugeFieldNumbersLite::repeated_int32_size() const {
  9253. return repeated_int32_.size();
  9254. }
  9255. inline void TestHugeFieldNumbersLite::clear_repeated_int32() {
  9256. repeated_int32_.Clear();
  9257. }
  9258. inline ::google::protobuf::int32 TestHugeFieldNumbersLite::repeated_int32(int index) const {
  9259. // @@protoc_insertion_point(field_get:protobuf_unittest.TestHugeFieldNumbersLite.repeated_int32)
  9260. return repeated_int32_.Get(index);
  9261. }
  9262. inline void TestHugeFieldNumbersLite::set_repeated_int32(int index, ::google::protobuf::int32 value) {
  9263. repeated_int32_.Set(index, value);
  9264. // @@protoc_insertion_point(field_set:protobuf_unittest.TestHugeFieldNumbersLite.repeated_int32)
  9265. }
  9266. inline void TestHugeFieldNumbersLite::add_repeated_int32(::google::protobuf::int32 value) {
  9267. repeated_int32_.Add(value);
  9268. // @@protoc_insertion_point(field_add:protobuf_unittest.TestHugeFieldNumbersLite.repeated_int32)
  9269. }
  9270. inline const ::google::protobuf::RepeatedField< ::google::protobuf::int32 >&
  9271. TestHugeFieldNumbersLite::repeated_int32() const {
  9272. // @@protoc_insertion_point(field_list:protobuf_unittest.TestHugeFieldNumbersLite.repeated_int32)
  9273. return repeated_int32_;
  9274. }
  9275. inline ::google::protobuf::RepeatedField< ::google::protobuf::int32 >*
  9276. TestHugeFieldNumbersLite::mutable_repeated_int32() {
  9277. // @@protoc_insertion_point(field_mutable_list:protobuf_unittest.TestHugeFieldNumbersLite.repeated_int32)
  9278. return &repeated_int32_;
  9279. }
  9280. // repeated int32 packed_int32 = 536870003 [packed = true];
  9281. inline int TestHugeFieldNumbersLite::packed_int32_size() const {
  9282. return packed_int32_.size();
  9283. }
  9284. inline void TestHugeFieldNumbersLite::clear_packed_int32() {
  9285. packed_int32_.Clear();
  9286. }
  9287. inline ::google::protobuf::int32 TestHugeFieldNumbersLite::packed_int32(int index) const {
  9288. // @@protoc_insertion_point(field_get:protobuf_unittest.TestHugeFieldNumbersLite.packed_int32)
  9289. return packed_int32_.Get(index);
  9290. }
  9291. inline void TestHugeFieldNumbersLite::set_packed_int32(int index, ::google::protobuf::int32 value) {
  9292. packed_int32_.Set(index, value);
  9293. // @@protoc_insertion_point(field_set:protobuf_unittest.TestHugeFieldNumbersLite.packed_int32)
  9294. }
  9295. inline void TestHugeFieldNumbersLite::add_packed_int32(::google::protobuf::int32 value) {
  9296. packed_int32_.Add(value);
  9297. // @@protoc_insertion_point(field_add:protobuf_unittest.TestHugeFieldNumbersLite.packed_int32)
  9298. }
  9299. inline const ::google::protobuf::RepeatedField< ::google::protobuf::int32 >&
  9300. TestHugeFieldNumbersLite::packed_int32() const {
  9301. // @@protoc_insertion_point(field_list:protobuf_unittest.TestHugeFieldNumbersLite.packed_int32)
  9302. return packed_int32_;
  9303. }
  9304. inline ::google::protobuf::RepeatedField< ::google::protobuf::int32 >*
  9305. TestHugeFieldNumbersLite::mutable_packed_int32() {
  9306. // @@protoc_insertion_point(field_mutable_list:protobuf_unittest.TestHugeFieldNumbersLite.packed_int32)
  9307. return &packed_int32_;
  9308. }
  9309. // optional .protobuf_unittest.ForeignEnumLite optional_enum = 536870004;
  9310. inline bool TestHugeFieldNumbersLite::has_optional_enum() const {
  9311. return (_has_bits_[0] & 0x00000040u) != 0;
  9312. }
  9313. inline void TestHugeFieldNumbersLite::set_has_optional_enum() {
  9314. _has_bits_[0] |= 0x00000040u;
  9315. }
  9316. inline void TestHugeFieldNumbersLite::clear_has_optional_enum() {
  9317. _has_bits_[0] &= ~0x00000040u;
  9318. }
  9319. inline void TestHugeFieldNumbersLite::clear_optional_enum() {
  9320. optional_enum_ = 4;
  9321. clear_has_optional_enum();
  9322. }
  9323. inline ::protobuf_unittest::ForeignEnumLite TestHugeFieldNumbersLite::optional_enum() const {
  9324. // @@protoc_insertion_point(field_get:protobuf_unittest.TestHugeFieldNumbersLite.optional_enum)
  9325. return static_cast< ::protobuf_unittest::ForeignEnumLite >(optional_enum_);
  9326. }
  9327. inline void TestHugeFieldNumbersLite::set_optional_enum(::protobuf_unittest::ForeignEnumLite value) {
  9328. assert(::protobuf_unittest::ForeignEnumLite_IsValid(value));
  9329. set_has_optional_enum();
  9330. optional_enum_ = value;
  9331. // @@protoc_insertion_point(field_set:protobuf_unittest.TestHugeFieldNumbersLite.optional_enum)
  9332. }
  9333. // optional string optional_string = 536870005;
  9334. inline bool TestHugeFieldNumbersLite::has_optional_string() const {
  9335. return (_has_bits_[0] & 0x00000001u) != 0;
  9336. }
  9337. inline void TestHugeFieldNumbersLite::set_has_optional_string() {
  9338. _has_bits_[0] |= 0x00000001u;
  9339. }
  9340. inline void TestHugeFieldNumbersLite::clear_has_optional_string() {
  9341. _has_bits_[0] &= ~0x00000001u;
  9342. }
  9343. inline void TestHugeFieldNumbersLite::clear_optional_string() {
  9344. optional_string_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  9345. clear_has_optional_string();
  9346. }
  9347. inline const ::std::string& TestHugeFieldNumbersLite::optional_string() const {
  9348. // @@protoc_insertion_point(field_get:protobuf_unittest.TestHugeFieldNumbersLite.optional_string)
  9349. return optional_string_.GetNoArena();
  9350. }
  9351. inline void TestHugeFieldNumbersLite::set_optional_string(const ::std::string& value) {
  9352. set_has_optional_string();
  9353. optional_string_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
  9354. // @@protoc_insertion_point(field_set:protobuf_unittest.TestHugeFieldNumbersLite.optional_string)
  9355. }
  9356. #if LANG_CXX11
  9357. inline void TestHugeFieldNumbersLite::set_optional_string(::std::string&& value) {
  9358. set_has_optional_string();
  9359. optional_string_.SetNoArena(
  9360. &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
  9361. // @@protoc_insertion_point(field_set_rvalue:protobuf_unittest.TestHugeFieldNumbersLite.optional_string)
  9362. }
  9363. #endif
  9364. inline void TestHugeFieldNumbersLite::set_optional_string(const char* value) {
  9365. GOOGLE_DCHECK(value != NULL);
  9366. set_has_optional_string();
  9367. optional_string_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
  9368. // @@protoc_insertion_point(field_set_char:protobuf_unittest.TestHugeFieldNumbersLite.optional_string)
  9369. }
  9370. inline void TestHugeFieldNumbersLite::set_optional_string(const char* value, size_t size) {
  9371. set_has_optional_string();
  9372. optional_string_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  9373. ::std::string(reinterpret_cast<const char*>(value), size));
  9374. // @@protoc_insertion_point(field_set_pointer:protobuf_unittest.TestHugeFieldNumbersLite.optional_string)
  9375. }
  9376. inline ::std::string* TestHugeFieldNumbersLite::mutable_optional_string() {
  9377. set_has_optional_string();
  9378. // @@protoc_insertion_point(field_mutable:protobuf_unittest.TestHugeFieldNumbersLite.optional_string)
  9379. return optional_string_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  9380. }
  9381. inline ::std::string* TestHugeFieldNumbersLite::release_optional_string() {
  9382. // @@protoc_insertion_point(field_release:protobuf_unittest.TestHugeFieldNumbersLite.optional_string)
  9383. if (!has_optional_string()) {
  9384. return NULL;
  9385. }
  9386. clear_has_optional_string();
  9387. return optional_string_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  9388. }
  9389. inline void TestHugeFieldNumbersLite::set_allocated_optional_string(::std::string* optional_string) {
  9390. if (optional_string != NULL) {
  9391. set_has_optional_string();
  9392. } else {
  9393. clear_has_optional_string();
  9394. }
  9395. optional_string_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), optional_string);
  9396. // @@protoc_insertion_point(field_set_allocated:protobuf_unittest.TestHugeFieldNumbersLite.optional_string)
  9397. }
  9398. // optional bytes optional_bytes = 536870006;
  9399. inline bool TestHugeFieldNumbersLite::has_optional_bytes() const {
  9400. return (_has_bits_[0] & 0x00000002u) != 0;
  9401. }
  9402. inline void TestHugeFieldNumbersLite::set_has_optional_bytes() {
  9403. _has_bits_[0] |= 0x00000002u;
  9404. }
  9405. inline void TestHugeFieldNumbersLite::clear_has_optional_bytes() {
  9406. _has_bits_[0] &= ~0x00000002u;
  9407. }
  9408. inline void TestHugeFieldNumbersLite::clear_optional_bytes() {
  9409. optional_bytes_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  9410. clear_has_optional_bytes();
  9411. }
  9412. inline const ::std::string& TestHugeFieldNumbersLite::optional_bytes() const {
  9413. // @@protoc_insertion_point(field_get:protobuf_unittest.TestHugeFieldNumbersLite.optional_bytes)
  9414. return optional_bytes_.GetNoArena();
  9415. }
  9416. inline void TestHugeFieldNumbersLite::set_optional_bytes(const ::std::string& value) {
  9417. set_has_optional_bytes();
  9418. optional_bytes_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
  9419. // @@protoc_insertion_point(field_set:protobuf_unittest.TestHugeFieldNumbersLite.optional_bytes)
  9420. }
  9421. #if LANG_CXX11
  9422. inline void TestHugeFieldNumbersLite::set_optional_bytes(::std::string&& value) {
  9423. set_has_optional_bytes();
  9424. optional_bytes_.SetNoArena(
  9425. &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
  9426. // @@protoc_insertion_point(field_set_rvalue:protobuf_unittest.TestHugeFieldNumbersLite.optional_bytes)
  9427. }
  9428. #endif
  9429. inline void TestHugeFieldNumbersLite::set_optional_bytes(const char* value) {
  9430. GOOGLE_DCHECK(value != NULL);
  9431. set_has_optional_bytes();
  9432. optional_bytes_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
  9433. // @@protoc_insertion_point(field_set_char:protobuf_unittest.TestHugeFieldNumbersLite.optional_bytes)
  9434. }
  9435. inline void TestHugeFieldNumbersLite::set_optional_bytes(const void* value, size_t size) {
  9436. set_has_optional_bytes();
  9437. optional_bytes_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  9438. ::std::string(reinterpret_cast<const char*>(value), size));
  9439. // @@protoc_insertion_point(field_set_pointer:protobuf_unittest.TestHugeFieldNumbersLite.optional_bytes)
  9440. }
  9441. inline ::std::string* TestHugeFieldNumbersLite::mutable_optional_bytes() {
  9442. set_has_optional_bytes();
  9443. // @@protoc_insertion_point(field_mutable:protobuf_unittest.TestHugeFieldNumbersLite.optional_bytes)
  9444. return optional_bytes_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  9445. }
  9446. inline ::std::string* TestHugeFieldNumbersLite::release_optional_bytes() {
  9447. // @@protoc_insertion_point(field_release:protobuf_unittest.TestHugeFieldNumbersLite.optional_bytes)
  9448. if (!has_optional_bytes()) {
  9449. return NULL;
  9450. }
  9451. clear_has_optional_bytes();
  9452. return optional_bytes_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  9453. }
  9454. inline void TestHugeFieldNumbersLite::set_allocated_optional_bytes(::std::string* optional_bytes) {
  9455. if (optional_bytes != NULL) {
  9456. set_has_optional_bytes();
  9457. } else {
  9458. clear_has_optional_bytes();
  9459. }
  9460. optional_bytes_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), optional_bytes);
  9461. // @@protoc_insertion_point(field_set_allocated:protobuf_unittest.TestHugeFieldNumbersLite.optional_bytes)
  9462. }
  9463. // optional .protobuf_unittest.ForeignMessageLite optional_message = 536870007;
  9464. inline bool TestHugeFieldNumbersLite::has_optional_message() const {
  9465. return (_has_bits_[0] & 0x00000004u) != 0;
  9466. }
  9467. inline void TestHugeFieldNumbersLite::set_has_optional_message() {
  9468. _has_bits_[0] |= 0x00000004u;
  9469. }
  9470. inline void TestHugeFieldNumbersLite::clear_has_optional_message() {
  9471. _has_bits_[0] &= ~0x00000004u;
  9472. }
  9473. inline void TestHugeFieldNumbersLite::clear_optional_message() {
  9474. if (optional_message_ != NULL) optional_message_->Clear();
  9475. clear_has_optional_message();
  9476. }
  9477. inline const ::protobuf_unittest::ForeignMessageLite& TestHugeFieldNumbersLite::_internal_optional_message() const {
  9478. return *optional_message_;
  9479. }
  9480. inline const ::protobuf_unittest::ForeignMessageLite& TestHugeFieldNumbersLite::optional_message() const {
  9481. const ::protobuf_unittest::ForeignMessageLite* p = optional_message_;
  9482. // @@protoc_insertion_point(field_get:protobuf_unittest.TestHugeFieldNumbersLite.optional_message)
  9483. return p != NULL ? *p : *reinterpret_cast<const ::protobuf_unittest::ForeignMessageLite*>(
  9484. &::protobuf_unittest::_ForeignMessageLite_default_instance_);
  9485. }
  9486. inline ::protobuf_unittest::ForeignMessageLite* TestHugeFieldNumbersLite::release_optional_message() {
  9487. // @@protoc_insertion_point(field_release:protobuf_unittest.TestHugeFieldNumbersLite.optional_message)
  9488. clear_has_optional_message();
  9489. ::protobuf_unittest::ForeignMessageLite* temp = optional_message_;
  9490. optional_message_ = NULL;
  9491. return temp;
  9492. }
  9493. inline ::protobuf_unittest::ForeignMessageLite* TestHugeFieldNumbersLite::mutable_optional_message() {
  9494. set_has_optional_message();
  9495. if (optional_message_ == NULL) {
  9496. auto* p = CreateMaybeMessage<::protobuf_unittest::ForeignMessageLite>(GetArenaNoVirtual());
  9497. optional_message_ = p;
  9498. }
  9499. // @@protoc_insertion_point(field_mutable:protobuf_unittest.TestHugeFieldNumbersLite.optional_message)
  9500. return optional_message_;
  9501. }
  9502. inline void TestHugeFieldNumbersLite::set_allocated_optional_message(::protobuf_unittest::ForeignMessageLite* optional_message) {
  9503. ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
  9504. if (message_arena == NULL) {
  9505. delete optional_message_;
  9506. }
  9507. if (optional_message) {
  9508. ::google::protobuf::Arena* submessage_arena = NULL;
  9509. if (message_arena != submessage_arena) {
  9510. optional_message = ::google::protobuf::internal::GetOwnedMessage(
  9511. message_arena, optional_message, submessage_arena);
  9512. }
  9513. set_has_optional_message();
  9514. } else {
  9515. clear_has_optional_message();
  9516. }
  9517. optional_message_ = optional_message;
  9518. // @@protoc_insertion_point(field_set_allocated:protobuf_unittest.TestHugeFieldNumbersLite.optional_message)
  9519. }
  9520. // optional group OptionalGroup = 536870008 { ... };
  9521. inline bool TestHugeFieldNumbersLite::has_optionalgroup() const {
  9522. return (_has_bits_[0] & 0x00000008u) != 0;
  9523. }
  9524. inline void TestHugeFieldNumbersLite::set_has_optionalgroup() {
  9525. _has_bits_[0] |= 0x00000008u;
  9526. }
  9527. inline void TestHugeFieldNumbersLite::clear_has_optionalgroup() {
  9528. _has_bits_[0] &= ~0x00000008u;
  9529. }
  9530. inline void TestHugeFieldNumbersLite::clear_optionalgroup() {
  9531. if (optionalgroup_ != NULL) optionalgroup_->Clear();
  9532. clear_has_optionalgroup();
  9533. }
  9534. inline const ::protobuf_unittest::TestHugeFieldNumbersLite_OptionalGroup& TestHugeFieldNumbersLite::_internal_optionalgroup() const {
  9535. return *optionalgroup_;
  9536. }
  9537. inline const ::protobuf_unittest::TestHugeFieldNumbersLite_OptionalGroup& TestHugeFieldNumbersLite::optionalgroup() const {
  9538. const ::protobuf_unittest::TestHugeFieldNumbersLite_OptionalGroup* p = optionalgroup_;
  9539. // @@protoc_insertion_point(field_get:protobuf_unittest.TestHugeFieldNumbersLite.optionalgroup)
  9540. return p != NULL ? *p : *reinterpret_cast<const ::protobuf_unittest::TestHugeFieldNumbersLite_OptionalGroup*>(
  9541. &::protobuf_unittest::_TestHugeFieldNumbersLite_OptionalGroup_default_instance_);
  9542. }
  9543. inline ::protobuf_unittest::TestHugeFieldNumbersLite_OptionalGroup* TestHugeFieldNumbersLite::release_optionalgroup() {
  9544. // @@protoc_insertion_point(field_release:protobuf_unittest.TestHugeFieldNumbersLite.optionalgroup)
  9545. clear_has_optionalgroup();
  9546. ::protobuf_unittest::TestHugeFieldNumbersLite_OptionalGroup* temp = optionalgroup_;
  9547. optionalgroup_ = NULL;
  9548. return temp;
  9549. }
  9550. inline ::protobuf_unittest::TestHugeFieldNumbersLite_OptionalGroup* TestHugeFieldNumbersLite::mutable_optionalgroup() {
  9551. set_has_optionalgroup();
  9552. if (optionalgroup_ == NULL) {
  9553. auto* p = CreateMaybeMessage<::protobuf_unittest::TestHugeFieldNumbersLite_OptionalGroup>(GetArenaNoVirtual());
  9554. optionalgroup_ = p;
  9555. }
  9556. // @@protoc_insertion_point(field_mutable:protobuf_unittest.TestHugeFieldNumbersLite.optionalgroup)
  9557. return optionalgroup_;
  9558. }
  9559. inline void TestHugeFieldNumbersLite::set_allocated_optionalgroup(::protobuf_unittest::TestHugeFieldNumbersLite_OptionalGroup* optionalgroup) {
  9560. ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
  9561. if (message_arena == NULL) {
  9562. delete optionalgroup_;
  9563. }
  9564. if (optionalgroup) {
  9565. ::google::protobuf::Arena* submessage_arena = NULL;
  9566. if (message_arena != submessage_arena) {
  9567. optionalgroup = ::google::protobuf::internal::GetOwnedMessage(
  9568. message_arena, optionalgroup, submessage_arena);
  9569. }
  9570. set_has_optionalgroup();
  9571. } else {
  9572. clear_has_optionalgroup();
  9573. }
  9574. optionalgroup_ = optionalgroup;
  9575. // @@protoc_insertion_point(field_set_allocated:protobuf_unittest.TestHugeFieldNumbersLite.optionalgroup)
  9576. }
  9577. // map<string, string> string_string_map = 536870010;
  9578. inline int TestHugeFieldNumbersLite::string_string_map_size() const {
  9579. return string_string_map_.size();
  9580. }
  9581. inline void TestHugeFieldNumbersLite::clear_string_string_map() {
  9582. string_string_map_.Clear();
  9583. }
  9584. inline const ::google::protobuf::Map< ::std::string, ::std::string >&
  9585. TestHugeFieldNumbersLite::string_string_map() const {
  9586. // @@protoc_insertion_point(field_map:protobuf_unittest.TestHugeFieldNumbersLite.string_string_map)
  9587. return string_string_map_.GetMap();
  9588. }
  9589. inline ::google::protobuf::Map< ::std::string, ::std::string >*
  9590. TestHugeFieldNumbersLite::mutable_string_string_map() {
  9591. // @@protoc_insertion_point(field_mutable_map:protobuf_unittest.TestHugeFieldNumbersLite.string_string_map)
  9592. return string_string_map_.MutableMap();
  9593. }
  9594. // optional uint32 oneof_uint32 = 536870011;
  9595. inline bool TestHugeFieldNumbersLite::has_oneof_uint32() const {
  9596. return oneof_field_case() == kOneofUint32;
  9597. }
  9598. inline void TestHugeFieldNumbersLite::set_has_oneof_uint32() {
  9599. _oneof_case_[0] = kOneofUint32;
  9600. }
  9601. inline void TestHugeFieldNumbersLite::clear_oneof_uint32() {
  9602. if (has_oneof_uint32()) {
  9603. oneof_field_.oneof_uint32_ = 0u;
  9604. clear_has_oneof_field();
  9605. }
  9606. }
  9607. inline ::google::protobuf::uint32 TestHugeFieldNumbersLite::oneof_uint32() const {
  9608. // @@protoc_insertion_point(field_get:protobuf_unittest.TestHugeFieldNumbersLite.oneof_uint32)
  9609. if (has_oneof_uint32()) {
  9610. return oneof_field_.oneof_uint32_;
  9611. }
  9612. return 0u;
  9613. }
  9614. inline void TestHugeFieldNumbersLite::set_oneof_uint32(::google::protobuf::uint32 value) {
  9615. if (!has_oneof_uint32()) {
  9616. clear_oneof_field();
  9617. set_has_oneof_uint32();
  9618. }
  9619. oneof_field_.oneof_uint32_ = value;
  9620. // @@protoc_insertion_point(field_set:protobuf_unittest.TestHugeFieldNumbersLite.oneof_uint32)
  9621. }
  9622. // optional .protobuf_unittest.TestAllTypesLite oneof_test_all_types = 536870012;
  9623. inline bool TestHugeFieldNumbersLite::has_oneof_test_all_types() const {
  9624. return oneof_field_case() == kOneofTestAllTypes;
  9625. }
  9626. inline void TestHugeFieldNumbersLite::set_has_oneof_test_all_types() {
  9627. _oneof_case_[0] = kOneofTestAllTypes;
  9628. }
  9629. inline void TestHugeFieldNumbersLite::clear_oneof_test_all_types() {
  9630. if (has_oneof_test_all_types()) {
  9631. delete oneof_field_.oneof_test_all_types_;
  9632. clear_has_oneof_field();
  9633. }
  9634. }
  9635. inline const ::protobuf_unittest::TestAllTypesLite& TestHugeFieldNumbersLite::_internal_oneof_test_all_types() const {
  9636. return *oneof_field_.oneof_test_all_types_;
  9637. }
  9638. inline ::protobuf_unittest::TestAllTypesLite* TestHugeFieldNumbersLite::release_oneof_test_all_types() {
  9639. // @@protoc_insertion_point(field_release:protobuf_unittest.TestHugeFieldNumbersLite.oneof_test_all_types)
  9640. if (has_oneof_test_all_types()) {
  9641. clear_has_oneof_field();
  9642. ::protobuf_unittest::TestAllTypesLite* temp = oneof_field_.oneof_test_all_types_;
  9643. oneof_field_.oneof_test_all_types_ = NULL;
  9644. return temp;
  9645. } else {
  9646. return NULL;
  9647. }
  9648. }
  9649. inline const ::protobuf_unittest::TestAllTypesLite& TestHugeFieldNumbersLite::oneof_test_all_types() const {
  9650. // @@protoc_insertion_point(field_get:protobuf_unittest.TestHugeFieldNumbersLite.oneof_test_all_types)
  9651. return has_oneof_test_all_types()
  9652. ? *oneof_field_.oneof_test_all_types_
  9653. : *reinterpret_cast< ::protobuf_unittest::TestAllTypesLite*>(&::protobuf_unittest::_TestAllTypesLite_default_instance_);
  9654. }
  9655. inline ::protobuf_unittest::TestAllTypesLite* TestHugeFieldNumbersLite::mutable_oneof_test_all_types() {
  9656. if (!has_oneof_test_all_types()) {
  9657. clear_oneof_field();
  9658. set_has_oneof_test_all_types();
  9659. oneof_field_.oneof_test_all_types_ = CreateMaybeMessage< ::protobuf_unittest::TestAllTypesLite >(
  9660. GetArenaNoVirtual());
  9661. }
  9662. // @@protoc_insertion_point(field_mutable:protobuf_unittest.TestHugeFieldNumbersLite.oneof_test_all_types)
  9663. return oneof_field_.oneof_test_all_types_;
  9664. }
  9665. // optional string oneof_string = 536870013;
  9666. inline bool TestHugeFieldNumbersLite::has_oneof_string() const {
  9667. return oneof_field_case() == kOneofString;
  9668. }
  9669. inline void TestHugeFieldNumbersLite::set_has_oneof_string() {
  9670. _oneof_case_[0] = kOneofString;
  9671. }
  9672. inline void TestHugeFieldNumbersLite::clear_oneof_string() {
  9673. if (has_oneof_string()) {
  9674. oneof_field_.oneof_string_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  9675. clear_has_oneof_field();
  9676. }
  9677. }
  9678. inline const ::std::string& TestHugeFieldNumbersLite::oneof_string() const {
  9679. // @@protoc_insertion_point(field_get:protobuf_unittest.TestHugeFieldNumbersLite.oneof_string)
  9680. if (has_oneof_string()) {
  9681. return oneof_field_.oneof_string_.GetNoArena();
  9682. }
  9683. return *&::google::protobuf::internal::GetEmptyStringAlreadyInited();
  9684. }
  9685. inline void TestHugeFieldNumbersLite::set_oneof_string(const ::std::string& value) {
  9686. // @@protoc_insertion_point(field_set:protobuf_unittest.TestHugeFieldNumbersLite.oneof_string)
  9687. if (!has_oneof_string()) {
  9688. clear_oneof_field();
  9689. set_has_oneof_string();
  9690. oneof_field_.oneof_string_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  9691. }
  9692. oneof_field_.oneof_string_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
  9693. // @@protoc_insertion_point(field_set:protobuf_unittest.TestHugeFieldNumbersLite.oneof_string)
  9694. }
  9695. #if LANG_CXX11
  9696. inline void TestHugeFieldNumbersLite::set_oneof_string(::std::string&& value) {
  9697. // @@protoc_insertion_point(field_set:protobuf_unittest.TestHugeFieldNumbersLite.oneof_string)
  9698. if (!has_oneof_string()) {
  9699. clear_oneof_field();
  9700. set_has_oneof_string();
  9701. oneof_field_.oneof_string_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  9702. }
  9703. oneof_field_.oneof_string_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
  9704. // @@protoc_insertion_point(field_set_rvalue:protobuf_unittest.TestHugeFieldNumbersLite.oneof_string)
  9705. }
  9706. #endif
  9707. inline void TestHugeFieldNumbersLite::set_oneof_string(const char* value) {
  9708. GOOGLE_DCHECK(value != NULL);
  9709. if (!has_oneof_string()) {
  9710. clear_oneof_field();
  9711. set_has_oneof_string();
  9712. oneof_field_.oneof_string_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  9713. }
  9714. oneof_field_.oneof_string_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  9715. ::std::string(value));
  9716. // @@protoc_insertion_point(field_set_char:protobuf_unittest.TestHugeFieldNumbersLite.oneof_string)
  9717. }
  9718. inline void TestHugeFieldNumbersLite::set_oneof_string(const char* value, size_t size) {
  9719. if (!has_oneof_string()) {
  9720. clear_oneof_field();
  9721. set_has_oneof_string();
  9722. oneof_field_.oneof_string_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  9723. }
  9724. oneof_field_.oneof_string_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(
  9725. reinterpret_cast<const char*>(value), size));
  9726. // @@protoc_insertion_point(field_set_pointer:protobuf_unittest.TestHugeFieldNumbersLite.oneof_string)
  9727. }
  9728. inline ::std::string* TestHugeFieldNumbersLite::mutable_oneof_string() {
  9729. if (!has_oneof_string()) {
  9730. clear_oneof_field();
  9731. set_has_oneof_string();
  9732. oneof_field_.oneof_string_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  9733. }
  9734. // @@protoc_insertion_point(field_mutable:protobuf_unittest.TestHugeFieldNumbersLite.oneof_string)
  9735. return oneof_field_.oneof_string_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  9736. }
  9737. inline ::std::string* TestHugeFieldNumbersLite::release_oneof_string() {
  9738. // @@protoc_insertion_point(field_release:protobuf_unittest.TestHugeFieldNumbersLite.oneof_string)
  9739. if (has_oneof_string()) {
  9740. clear_has_oneof_field();
  9741. return oneof_field_.oneof_string_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  9742. } else {
  9743. return NULL;
  9744. }
  9745. }
  9746. inline void TestHugeFieldNumbersLite::set_allocated_oneof_string(::std::string* oneof_string) {
  9747. if (!has_oneof_string()) {
  9748. oneof_field_.oneof_string_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  9749. }
  9750. clear_oneof_field();
  9751. if (oneof_string != NULL) {
  9752. set_has_oneof_string();
  9753. oneof_field_.oneof_string_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), oneof_string);
  9754. }
  9755. // @@protoc_insertion_point(field_set_allocated:protobuf_unittest.TestHugeFieldNumbersLite.oneof_string)
  9756. }
  9757. // optional bytes oneof_bytes = 536870014;
  9758. inline bool TestHugeFieldNumbersLite::has_oneof_bytes() const {
  9759. return oneof_field_case() == kOneofBytes;
  9760. }
  9761. inline void TestHugeFieldNumbersLite::set_has_oneof_bytes() {
  9762. _oneof_case_[0] = kOneofBytes;
  9763. }
  9764. inline void TestHugeFieldNumbersLite::clear_oneof_bytes() {
  9765. if (has_oneof_bytes()) {
  9766. oneof_field_.oneof_bytes_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  9767. clear_has_oneof_field();
  9768. }
  9769. }
  9770. inline const ::std::string& TestHugeFieldNumbersLite::oneof_bytes() const {
  9771. // @@protoc_insertion_point(field_get:protobuf_unittest.TestHugeFieldNumbersLite.oneof_bytes)
  9772. if (has_oneof_bytes()) {
  9773. return oneof_field_.oneof_bytes_.GetNoArena();
  9774. }
  9775. return *&::google::protobuf::internal::GetEmptyStringAlreadyInited();
  9776. }
  9777. inline void TestHugeFieldNumbersLite::set_oneof_bytes(const ::std::string& value) {
  9778. // @@protoc_insertion_point(field_set:protobuf_unittest.TestHugeFieldNumbersLite.oneof_bytes)
  9779. if (!has_oneof_bytes()) {
  9780. clear_oneof_field();
  9781. set_has_oneof_bytes();
  9782. oneof_field_.oneof_bytes_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  9783. }
  9784. oneof_field_.oneof_bytes_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
  9785. // @@protoc_insertion_point(field_set:protobuf_unittest.TestHugeFieldNumbersLite.oneof_bytes)
  9786. }
  9787. #if LANG_CXX11
  9788. inline void TestHugeFieldNumbersLite::set_oneof_bytes(::std::string&& value) {
  9789. // @@protoc_insertion_point(field_set:protobuf_unittest.TestHugeFieldNumbersLite.oneof_bytes)
  9790. if (!has_oneof_bytes()) {
  9791. clear_oneof_field();
  9792. set_has_oneof_bytes();
  9793. oneof_field_.oneof_bytes_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  9794. }
  9795. oneof_field_.oneof_bytes_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
  9796. // @@protoc_insertion_point(field_set_rvalue:protobuf_unittest.TestHugeFieldNumbersLite.oneof_bytes)
  9797. }
  9798. #endif
  9799. inline void TestHugeFieldNumbersLite::set_oneof_bytes(const char* value) {
  9800. GOOGLE_DCHECK(value != NULL);
  9801. if (!has_oneof_bytes()) {
  9802. clear_oneof_field();
  9803. set_has_oneof_bytes();
  9804. oneof_field_.oneof_bytes_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  9805. }
  9806. oneof_field_.oneof_bytes_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  9807. ::std::string(value));
  9808. // @@protoc_insertion_point(field_set_char:protobuf_unittest.TestHugeFieldNumbersLite.oneof_bytes)
  9809. }
  9810. inline void TestHugeFieldNumbersLite::set_oneof_bytes(const void* value, size_t size) {
  9811. if (!has_oneof_bytes()) {
  9812. clear_oneof_field();
  9813. set_has_oneof_bytes();
  9814. oneof_field_.oneof_bytes_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  9815. }
  9816. oneof_field_.oneof_bytes_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(
  9817. reinterpret_cast<const char*>(value), size));
  9818. // @@protoc_insertion_point(field_set_pointer:protobuf_unittest.TestHugeFieldNumbersLite.oneof_bytes)
  9819. }
  9820. inline ::std::string* TestHugeFieldNumbersLite::mutable_oneof_bytes() {
  9821. if (!has_oneof_bytes()) {
  9822. clear_oneof_field();
  9823. set_has_oneof_bytes();
  9824. oneof_field_.oneof_bytes_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  9825. }
  9826. // @@protoc_insertion_point(field_mutable:protobuf_unittest.TestHugeFieldNumbersLite.oneof_bytes)
  9827. return oneof_field_.oneof_bytes_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  9828. }
  9829. inline ::std::string* TestHugeFieldNumbersLite::release_oneof_bytes() {
  9830. // @@protoc_insertion_point(field_release:protobuf_unittest.TestHugeFieldNumbersLite.oneof_bytes)
  9831. if (has_oneof_bytes()) {
  9832. clear_has_oneof_field();
  9833. return oneof_field_.oneof_bytes_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  9834. } else {
  9835. return NULL;
  9836. }
  9837. }
  9838. inline void TestHugeFieldNumbersLite::set_allocated_oneof_bytes(::std::string* oneof_bytes) {
  9839. if (!has_oneof_bytes()) {
  9840. oneof_field_.oneof_bytes_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  9841. }
  9842. clear_oneof_field();
  9843. if (oneof_bytes != NULL) {
  9844. set_has_oneof_bytes();
  9845. oneof_field_.oneof_bytes_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), oneof_bytes);
  9846. }
  9847. // @@protoc_insertion_point(field_set_allocated:protobuf_unittest.TestHugeFieldNumbersLite.oneof_bytes)
  9848. }
  9849. inline bool TestHugeFieldNumbersLite::has_oneof_field() const {
  9850. return oneof_field_case() != ONEOF_FIELD_NOT_SET;
  9851. }
  9852. inline void TestHugeFieldNumbersLite::clear_has_oneof_field() {
  9853. _oneof_case_[0] = ONEOF_FIELD_NOT_SET;
  9854. }
  9855. inline TestHugeFieldNumbersLite::OneofFieldCase TestHugeFieldNumbersLite::oneof_field_case() const {
  9856. return TestHugeFieldNumbersLite::OneofFieldCase(_oneof_case_[0]);
  9857. }
  9858. // -------------------------------------------------------------------
  9859. // TestOneofParsingLite
  9860. // optional int32 oneof_int32 = 1;
  9861. inline bool TestOneofParsingLite::has_oneof_int32() const {
  9862. return oneof_field_case() == kOneofInt32;
  9863. }
  9864. inline void TestOneofParsingLite::set_has_oneof_int32() {
  9865. _oneof_case_[0] = kOneofInt32;
  9866. }
  9867. inline void TestOneofParsingLite::clear_oneof_int32() {
  9868. if (has_oneof_int32()) {
  9869. oneof_field_.oneof_int32_ = 0;
  9870. clear_has_oneof_field();
  9871. }
  9872. }
  9873. inline ::google::protobuf::int32 TestOneofParsingLite::oneof_int32() const {
  9874. // @@protoc_insertion_point(field_get:protobuf_unittest.TestOneofParsingLite.oneof_int32)
  9875. if (has_oneof_int32()) {
  9876. return oneof_field_.oneof_int32_;
  9877. }
  9878. return 0;
  9879. }
  9880. inline void TestOneofParsingLite::set_oneof_int32(::google::protobuf::int32 value) {
  9881. if (!has_oneof_int32()) {
  9882. clear_oneof_field();
  9883. set_has_oneof_int32();
  9884. }
  9885. oneof_field_.oneof_int32_ = value;
  9886. // @@protoc_insertion_point(field_set:protobuf_unittest.TestOneofParsingLite.oneof_int32)
  9887. }
  9888. // optional .protobuf_unittest.TestAllTypesLite oneof_submessage = 2;
  9889. inline bool TestOneofParsingLite::has_oneof_submessage() const {
  9890. return oneof_field_case() == kOneofSubmessage;
  9891. }
  9892. inline void TestOneofParsingLite::set_has_oneof_submessage() {
  9893. _oneof_case_[0] = kOneofSubmessage;
  9894. }
  9895. inline void TestOneofParsingLite::clear_oneof_submessage() {
  9896. if (has_oneof_submessage()) {
  9897. delete oneof_field_.oneof_submessage_;
  9898. clear_has_oneof_field();
  9899. }
  9900. }
  9901. inline const ::protobuf_unittest::TestAllTypesLite& TestOneofParsingLite::_internal_oneof_submessage() const {
  9902. return *oneof_field_.oneof_submessage_;
  9903. }
  9904. inline ::protobuf_unittest::TestAllTypesLite* TestOneofParsingLite::release_oneof_submessage() {
  9905. // @@protoc_insertion_point(field_release:protobuf_unittest.TestOneofParsingLite.oneof_submessage)
  9906. if (has_oneof_submessage()) {
  9907. clear_has_oneof_field();
  9908. ::protobuf_unittest::TestAllTypesLite* temp = oneof_field_.oneof_submessage_;
  9909. oneof_field_.oneof_submessage_ = NULL;
  9910. return temp;
  9911. } else {
  9912. return NULL;
  9913. }
  9914. }
  9915. inline const ::protobuf_unittest::TestAllTypesLite& TestOneofParsingLite::oneof_submessage() const {
  9916. // @@protoc_insertion_point(field_get:protobuf_unittest.TestOneofParsingLite.oneof_submessage)
  9917. return has_oneof_submessage()
  9918. ? *oneof_field_.oneof_submessage_
  9919. : *reinterpret_cast< ::protobuf_unittest::TestAllTypesLite*>(&::protobuf_unittest::_TestAllTypesLite_default_instance_);
  9920. }
  9921. inline ::protobuf_unittest::TestAllTypesLite* TestOneofParsingLite::mutable_oneof_submessage() {
  9922. if (!has_oneof_submessage()) {
  9923. clear_oneof_field();
  9924. set_has_oneof_submessage();
  9925. oneof_field_.oneof_submessage_ = CreateMaybeMessage< ::protobuf_unittest::TestAllTypesLite >(
  9926. GetArenaNoVirtual());
  9927. }
  9928. // @@protoc_insertion_point(field_mutable:protobuf_unittest.TestOneofParsingLite.oneof_submessage)
  9929. return oneof_field_.oneof_submessage_;
  9930. }
  9931. // optional string oneof_string = 3;
  9932. inline bool TestOneofParsingLite::has_oneof_string() const {
  9933. return oneof_field_case() == kOneofString;
  9934. }
  9935. inline void TestOneofParsingLite::set_has_oneof_string() {
  9936. _oneof_case_[0] = kOneofString;
  9937. }
  9938. inline void TestOneofParsingLite::clear_oneof_string() {
  9939. if (has_oneof_string()) {
  9940. oneof_field_.oneof_string_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  9941. clear_has_oneof_field();
  9942. }
  9943. }
  9944. inline const ::std::string& TestOneofParsingLite::oneof_string() const {
  9945. // @@protoc_insertion_point(field_get:protobuf_unittest.TestOneofParsingLite.oneof_string)
  9946. if (has_oneof_string()) {
  9947. return oneof_field_.oneof_string_.GetNoArena();
  9948. }
  9949. return *&::google::protobuf::internal::GetEmptyStringAlreadyInited();
  9950. }
  9951. inline void TestOneofParsingLite::set_oneof_string(const ::std::string& value) {
  9952. // @@protoc_insertion_point(field_set:protobuf_unittest.TestOneofParsingLite.oneof_string)
  9953. if (!has_oneof_string()) {
  9954. clear_oneof_field();
  9955. set_has_oneof_string();
  9956. oneof_field_.oneof_string_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  9957. }
  9958. oneof_field_.oneof_string_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
  9959. // @@protoc_insertion_point(field_set:protobuf_unittest.TestOneofParsingLite.oneof_string)
  9960. }
  9961. #if LANG_CXX11
  9962. inline void TestOneofParsingLite::set_oneof_string(::std::string&& value) {
  9963. // @@protoc_insertion_point(field_set:protobuf_unittest.TestOneofParsingLite.oneof_string)
  9964. if (!has_oneof_string()) {
  9965. clear_oneof_field();
  9966. set_has_oneof_string();
  9967. oneof_field_.oneof_string_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  9968. }
  9969. oneof_field_.oneof_string_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
  9970. // @@protoc_insertion_point(field_set_rvalue:protobuf_unittest.TestOneofParsingLite.oneof_string)
  9971. }
  9972. #endif
  9973. inline void TestOneofParsingLite::set_oneof_string(const char* value) {
  9974. GOOGLE_DCHECK(value != NULL);
  9975. if (!has_oneof_string()) {
  9976. clear_oneof_field();
  9977. set_has_oneof_string();
  9978. oneof_field_.oneof_string_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  9979. }
  9980. oneof_field_.oneof_string_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  9981. ::std::string(value));
  9982. // @@protoc_insertion_point(field_set_char:protobuf_unittest.TestOneofParsingLite.oneof_string)
  9983. }
  9984. inline void TestOneofParsingLite::set_oneof_string(const char* value, size_t size) {
  9985. if (!has_oneof_string()) {
  9986. clear_oneof_field();
  9987. set_has_oneof_string();
  9988. oneof_field_.oneof_string_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  9989. }
  9990. oneof_field_.oneof_string_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(
  9991. reinterpret_cast<const char*>(value), size));
  9992. // @@protoc_insertion_point(field_set_pointer:protobuf_unittest.TestOneofParsingLite.oneof_string)
  9993. }
  9994. inline ::std::string* TestOneofParsingLite::mutable_oneof_string() {
  9995. if (!has_oneof_string()) {
  9996. clear_oneof_field();
  9997. set_has_oneof_string();
  9998. oneof_field_.oneof_string_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  9999. }
  10000. // @@protoc_insertion_point(field_mutable:protobuf_unittest.TestOneofParsingLite.oneof_string)
  10001. return oneof_field_.oneof_string_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  10002. }
  10003. inline ::std::string* TestOneofParsingLite::release_oneof_string() {
  10004. // @@protoc_insertion_point(field_release:protobuf_unittest.TestOneofParsingLite.oneof_string)
  10005. if (has_oneof_string()) {
  10006. clear_has_oneof_field();
  10007. return oneof_field_.oneof_string_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  10008. } else {
  10009. return NULL;
  10010. }
  10011. }
  10012. inline void TestOneofParsingLite::set_allocated_oneof_string(::std::string* oneof_string) {
  10013. if (!has_oneof_string()) {
  10014. oneof_field_.oneof_string_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  10015. }
  10016. clear_oneof_field();
  10017. if (oneof_string != NULL) {
  10018. set_has_oneof_string();
  10019. oneof_field_.oneof_string_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), oneof_string);
  10020. }
  10021. // @@protoc_insertion_point(field_set_allocated:protobuf_unittest.TestOneofParsingLite.oneof_string)
  10022. }
  10023. // optional bytes oneof_bytes = 4 [default = "default bytes"];
  10024. inline bool TestOneofParsingLite::has_oneof_bytes() const {
  10025. return oneof_field_case() == kOneofBytes;
  10026. }
  10027. inline void TestOneofParsingLite::set_has_oneof_bytes() {
  10028. _oneof_case_[0] = kOneofBytes;
  10029. }
  10030. inline void TestOneofParsingLite::clear_oneof_bytes() {
  10031. if (has_oneof_bytes()) {
  10032. oneof_field_.oneof_bytes_.DestroyNoArena(&::protobuf_unittest::TestOneofParsingLite::_i_give_permission_to_break_this_code_default_oneof_bytes_.get());
  10033. clear_has_oneof_field();
  10034. }
  10035. }
  10036. inline const ::std::string& TestOneofParsingLite::oneof_bytes() const {
  10037. // @@protoc_insertion_point(field_get:protobuf_unittest.TestOneofParsingLite.oneof_bytes)
  10038. if (has_oneof_bytes()) {
  10039. return oneof_field_.oneof_bytes_.GetNoArena();
  10040. }
  10041. return *&::protobuf_unittest::TestOneofParsingLite::_i_give_permission_to_break_this_code_default_oneof_bytes_.get();
  10042. }
  10043. inline void TestOneofParsingLite::set_oneof_bytes(const ::std::string& value) {
  10044. // @@protoc_insertion_point(field_set:protobuf_unittest.TestOneofParsingLite.oneof_bytes)
  10045. if (!has_oneof_bytes()) {
  10046. clear_oneof_field();
  10047. set_has_oneof_bytes();
  10048. oneof_field_.oneof_bytes_.UnsafeSetDefault(&::protobuf_unittest::TestOneofParsingLite::_i_give_permission_to_break_this_code_default_oneof_bytes_.get());
  10049. }
  10050. oneof_field_.oneof_bytes_.SetNoArena(&::protobuf_unittest::TestOneofParsingLite::_i_give_permission_to_break_this_code_default_oneof_bytes_.get(), value);
  10051. // @@protoc_insertion_point(field_set:protobuf_unittest.TestOneofParsingLite.oneof_bytes)
  10052. }
  10053. #if LANG_CXX11
  10054. inline void TestOneofParsingLite::set_oneof_bytes(::std::string&& value) {
  10055. // @@protoc_insertion_point(field_set:protobuf_unittest.TestOneofParsingLite.oneof_bytes)
  10056. if (!has_oneof_bytes()) {
  10057. clear_oneof_field();
  10058. set_has_oneof_bytes();
  10059. oneof_field_.oneof_bytes_.UnsafeSetDefault(&::protobuf_unittest::TestOneofParsingLite::_i_give_permission_to_break_this_code_default_oneof_bytes_.get());
  10060. }
  10061. oneof_field_.oneof_bytes_.SetNoArena(&::protobuf_unittest::TestOneofParsingLite::_i_give_permission_to_break_this_code_default_oneof_bytes_.get(), ::std::move(value));
  10062. // @@protoc_insertion_point(field_set_rvalue:protobuf_unittest.TestOneofParsingLite.oneof_bytes)
  10063. }
  10064. #endif
  10065. inline void TestOneofParsingLite::set_oneof_bytes(const char* value) {
  10066. GOOGLE_DCHECK(value != NULL);
  10067. if (!has_oneof_bytes()) {
  10068. clear_oneof_field();
  10069. set_has_oneof_bytes();
  10070. oneof_field_.oneof_bytes_.UnsafeSetDefault(&::protobuf_unittest::TestOneofParsingLite::_i_give_permission_to_break_this_code_default_oneof_bytes_.get());
  10071. }
  10072. oneof_field_.oneof_bytes_.SetNoArena(&::protobuf_unittest::TestOneofParsingLite::_i_give_permission_to_break_this_code_default_oneof_bytes_.get(),
  10073. ::std::string(value));
  10074. // @@protoc_insertion_point(field_set_char:protobuf_unittest.TestOneofParsingLite.oneof_bytes)
  10075. }
  10076. inline void TestOneofParsingLite::set_oneof_bytes(const void* value, size_t size) {
  10077. if (!has_oneof_bytes()) {
  10078. clear_oneof_field();
  10079. set_has_oneof_bytes();
  10080. oneof_field_.oneof_bytes_.UnsafeSetDefault(&::protobuf_unittest::TestOneofParsingLite::_i_give_permission_to_break_this_code_default_oneof_bytes_.get());
  10081. }
  10082. oneof_field_.oneof_bytes_.SetNoArena(&::protobuf_unittest::TestOneofParsingLite::_i_give_permission_to_break_this_code_default_oneof_bytes_.get(), ::std::string(
  10083. reinterpret_cast<const char*>(value), size));
  10084. // @@protoc_insertion_point(field_set_pointer:protobuf_unittest.TestOneofParsingLite.oneof_bytes)
  10085. }
  10086. inline ::std::string* TestOneofParsingLite::mutable_oneof_bytes() {
  10087. if (!has_oneof_bytes()) {
  10088. clear_oneof_field();
  10089. set_has_oneof_bytes();
  10090. oneof_field_.oneof_bytes_.UnsafeSetDefault(&::protobuf_unittest::TestOneofParsingLite::_i_give_permission_to_break_this_code_default_oneof_bytes_.get());
  10091. }
  10092. // @@protoc_insertion_point(field_mutable:protobuf_unittest.TestOneofParsingLite.oneof_bytes)
  10093. return oneof_field_.oneof_bytes_.MutableNoArena(&::protobuf_unittest::TestOneofParsingLite::_i_give_permission_to_break_this_code_default_oneof_bytes_.get());
  10094. }
  10095. inline ::std::string* TestOneofParsingLite::release_oneof_bytes() {
  10096. // @@protoc_insertion_point(field_release:protobuf_unittest.TestOneofParsingLite.oneof_bytes)
  10097. if (has_oneof_bytes()) {
  10098. clear_has_oneof_field();
  10099. return oneof_field_.oneof_bytes_.ReleaseNoArena(&::protobuf_unittest::TestOneofParsingLite::_i_give_permission_to_break_this_code_default_oneof_bytes_.get());
  10100. } else {
  10101. return NULL;
  10102. }
  10103. }
  10104. inline void TestOneofParsingLite::set_allocated_oneof_bytes(::std::string* oneof_bytes) {
  10105. if (!has_oneof_bytes()) {
  10106. oneof_field_.oneof_bytes_.UnsafeSetDefault(&::protobuf_unittest::TestOneofParsingLite::_i_give_permission_to_break_this_code_default_oneof_bytes_.get());
  10107. }
  10108. clear_oneof_field();
  10109. if (oneof_bytes != NULL) {
  10110. set_has_oneof_bytes();
  10111. oneof_field_.oneof_bytes_.SetAllocatedNoArena(&::protobuf_unittest::TestOneofParsingLite::_i_give_permission_to_break_this_code_default_oneof_bytes_.get(), oneof_bytes);
  10112. }
  10113. // @@protoc_insertion_point(field_set_allocated:protobuf_unittest.TestOneofParsingLite.oneof_bytes)
  10114. }
  10115. // optional string oneof_string_cord = 5 [default = "default Cord", ctype = CORD];
  10116. inline bool TestOneofParsingLite::has_oneof_string_cord() const {
  10117. return oneof_field_case() == kOneofStringCord;
  10118. }
  10119. inline void TestOneofParsingLite::set_has_oneof_string_cord() {
  10120. _oneof_case_[0] = kOneofStringCord;
  10121. }
  10122. inline void TestOneofParsingLite::clear_oneof_string_cord() {
  10123. if (has_oneof_string_cord()) {
  10124. oneof_field_.oneof_string_cord_.DestroyNoArena(&::protobuf_unittest::TestOneofParsingLite::_i_give_permission_to_break_this_code_default_oneof_string_cord_.get());
  10125. clear_has_oneof_field();
  10126. }
  10127. }
  10128. inline const ::std::string& TestOneofParsingLite::oneof_string_cord() const {
  10129. // @@protoc_insertion_point(field_get:protobuf_unittest.TestOneofParsingLite.oneof_string_cord)
  10130. if (has_oneof_string_cord()) {
  10131. return oneof_field_.oneof_string_cord_.GetNoArena();
  10132. }
  10133. return *&::protobuf_unittest::TestOneofParsingLite::_i_give_permission_to_break_this_code_default_oneof_string_cord_.get();
  10134. }
  10135. inline void TestOneofParsingLite::set_oneof_string_cord(const ::std::string& value) {
  10136. // @@protoc_insertion_point(field_set:protobuf_unittest.TestOneofParsingLite.oneof_string_cord)
  10137. if (!has_oneof_string_cord()) {
  10138. clear_oneof_field();
  10139. set_has_oneof_string_cord();
  10140. oneof_field_.oneof_string_cord_.UnsafeSetDefault(&::protobuf_unittest::TestOneofParsingLite::_i_give_permission_to_break_this_code_default_oneof_string_cord_.get());
  10141. }
  10142. oneof_field_.oneof_string_cord_.SetNoArena(&::protobuf_unittest::TestOneofParsingLite::_i_give_permission_to_break_this_code_default_oneof_string_cord_.get(), value);
  10143. // @@protoc_insertion_point(field_set:protobuf_unittest.TestOneofParsingLite.oneof_string_cord)
  10144. }
  10145. #if LANG_CXX11
  10146. inline void TestOneofParsingLite::set_oneof_string_cord(::std::string&& value) {
  10147. // @@protoc_insertion_point(field_set:protobuf_unittest.TestOneofParsingLite.oneof_string_cord)
  10148. if (!has_oneof_string_cord()) {
  10149. clear_oneof_field();
  10150. set_has_oneof_string_cord();
  10151. oneof_field_.oneof_string_cord_.UnsafeSetDefault(&::protobuf_unittest::TestOneofParsingLite::_i_give_permission_to_break_this_code_default_oneof_string_cord_.get());
  10152. }
  10153. oneof_field_.oneof_string_cord_.SetNoArena(&::protobuf_unittest::TestOneofParsingLite::_i_give_permission_to_break_this_code_default_oneof_string_cord_.get(), ::std::move(value));
  10154. // @@protoc_insertion_point(field_set_rvalue:protobuf_unittest.TestOneofParsingLite.oneof_string_cord)
  10155. }
  10156. #endif
  10157. inline void TestOneofParsingLite::set_oneof_string_cord(const char* value) {
  10158. GOOGLE_DCHECK(value != NULL);
  10159. if (!has_oneof_string_cord()) {
  10160. clear_oneof_field();
  10161. set_has_oneof_string_cord();
  10162. oneof_field_.oneof_string_cord_.UnsafeSetDefault(&::protobuf_unittest::TestOneofParsingLite::_i_give_permission_to_break_this_code_default_oneof_string_cord_.get());
  10163. }
  10164. oneof_field_.oneof_string_cord_.SetNoArena(&::protobuf_unittest::TestOneofParsingLite::_i_give_permission_to_break_this_code_default_oneof_string_cord_.get(),
  10165. ::std::string(value));
  10166. // @@protoc_insertion_point(field_set_char:protobuf_unittest.TestOneofParsingLite.oneof_string_cord)
  10167. }
  10168. inline void TestOneofParsingLite::set_oneof_string_cord(const char* value, size_t size) {
  10169. if (!has_oneof_string_cord()) {
  10170. clear_oneof_field();
  10171. set_has_oneof_string_cord();
  10172. oneof_field_.oneof_string_cord_.UnsafeSetDefault(&::protobuf_unittest::TestOneofParsingLite::_i_give_permission_to_break_this_code_default_oneof_string_cord_.get());
  10173. }
  10174. oneof_field_.oneof_string_cord_.SetNoArena(&::protobuf_unittest::TestOneofParsingLite::_i_give_permission_to_break_this_code_default_oneof_string_cord_.get(), ::std::string(
  10175. reinterpret_cast<const char*>(value), size));
  10176. // @@protoc_insertion_point(field_set_pointer:protobuf_unittest.TestOneofParsingLite.oneof_string_cord)
  10177. }
  10178. inline ::std::string* TestOneofParsingLite::mutable_oneof_string_cord() {
  10179. if (!has_oneof_string_cord()) {
  10180. clear_oneof_field();
  10181. set_has_oneof_string_cord();
  10182. oneof_field_.oneof_string_cord_.UnsafeSetDefault(&::protobuf_unittest::TestOneofParsingLite::_i_give_permission_to_break_this_code_default_oneof_string_cord_.get());
  10183. }
  10184. // @@protoc_insertion_point(field_mutable:protobuf_unittest.TestOneofParsingLite.oneof_string_cord)
  10185. return oneof_field_.oneof_string_cord_.MutableNoArena(&::protobuf_unittest::TestOneofParsingLite::_i_give_permission_to_break_this_code_default_oneof_string_cord_.get());
  10186. }
  10187. inline ::std::string* TestOneofParsingLite::release_oneof_string_cord() {
  10188. // @@protoc_insertion_point(field_release:protobuf_unittest.TestOneofParsingLite.oneof_string_cord)
  10189. if (has_oneof_string_cord()) {
  10190. clear_has_oneof_field();
  10191. return oneof_field_.oneof_string_cord_.ReleaseNoArena(&::protobuf_unittest::TestOneofParsingLite::_i_give_permission_to_break_this_code_default_oneof_string_cord_.get());
  10192. } else {
  10193. return NULL;
  10194. }
  10195. }
  10196. inline void TestOneofParsingLite::set_allocated_oneof_string_cord(::std::string* oneof_string_cord) {
  10197. if (!has_oneof_string_cord()) {
  10198. oneof_field_.oneof_string_cord_.UnsafeSetDefault(&::protobuf_unittest::TestOneofParsingLite::_i_give_permission_to_break_this_code_default_oneof_string_cord_.get());
  10199. }
  10200. clear_oneof_field();
  10201. if (oneof_string_cord != NULL) {
  10202. set_has_oneof_string_cord();
  10203. oneof_field_.oneof_string_cord_.SetAllocatedNoArena(&::protobuf_unittest::TestOneofParsingLite::_i_give_permission_to_break_this_code_default_oneof_string_cord_.get(), oneof_string_cord);
  10204. }
  10205. // @@protoc_insertion_point(field_set_allocated:protobuf_unittest.TestOneofParsingLite.oneof_string_cord)
  10206. }
  10207. // optional bytes oneof_bytes_cord = 6 [ctype = CORD];
  10208. inline bool TestOneofParsingLite::has_oneof_bytes_cord() const {
  10209. return oneof_field_case() == kOneofBytesCord;
  10210. }
  10211. inline void TestOneofParsingLite::set_has_oneof_bytes_cord() {
  10212. _oneof_case_[0] = kOneofBytesCord;
  10213. }
  10214. inline void TestOneofParsingLite::clear_oneof_bytes_cord() {
  10215. if (has_oneof_bytes_cord()) {
  10216. oneof_field_.oneof_bytes_cord_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  10217. clear_has_oneof_field();
  10218. }
  10219. }
  10220. inline const ::std::string& TestOneofParsingLite::oneof_bytes_cord() const {
  10221. // @@protoc_insertion_point(field_get:protobuf_unittest.TestOneofParsingLite.oneof_bytes_cord)
  10222. if (has_oneof_bytes_cord()) {
  10223. return oneof_field_.oneof_bytes_cord_.GetNoArena();
  10224. }
  10225. return *&::google::protobuf::internal::GetEmptyStringAlreadyInited();
  10226. }
  10227. inline void TestOneofParsingLite::set_oneof_bytes_cord(const ::std::string& value) {
  10228. // @@protoc_insertion_point(field_set:protobuf_unittest.TestOneofParsingLite.oneof_bytes_cord)
  10229. if (!has_oneof_bytes_cord()) {
  10230. clear_oneof_field();
  10231. set_has_oneof_bytes_cord();
  10232. oneof_field_.oneof_bytes_cord_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  10233. }
  10234. oneof_field_.oneof_bytes_cord_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
  10235. // @@protoc_insertion_point(field_set:protobuf_unittest.TestOneofParsingLite.oneof_bytes_cord)
  10236. }
  10237. #if LANG_CXX11
  10238. inline void TestOneofParsingLite::set_oneof_bytes_cord(::std::string&& value) {
  10239. // @@protoc_insertion_point(field_set:protobuf_unittest.TestOneofParsingLite.oneof_bytes_cord)
  10240. if (!has_oneof_bytes_cord()) {
  10241. clear_oneof_field();
  10242. set_has_oneof_bytes_cord();
  10243. oneof_field_.oneof_bytes_cord_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  10244. }
  10245. oneof_field_.oneof_bytes_cord_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
  10246. // @@protoc_insertion_point(field_set_rvalue:protobuf_unittest.TestOneofParsingLite.oneof_bytes_cord)
  10247. }
  10248. #endif
  10249. inline void TestOneofParsingLite::set_oneof_bytes_cord(const char* value) {
  10250. GOOGLE_DCHECK(value != NULL);
  10251. if (!has_oneof_bytes_cord()) {
  10252. clear_oneof_field();
  10253. set_has_oneof_bytes_cord();
  10254. oneof_field_.oneof_bytes_cord_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  10255. }
  10256. oneof_field_.oneof_bytes_cord_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  10257. ::std::string(value));
  10258. // @@protoc_insertion_point(field_set_char:protobuf_unittest.TestOneofParsingLite.oneof_bytes_cord)
  10259. }
  10260. inline void TestOneofParsingLite::set_oneof_bytes_cord(const void* value, size_t size) {
  10261. if (!has_oneof_bytes_cord()) {
  10262. clear_oneof_field();
  10263. set_has_oneof_bytes_cord();
  10264. oneof_field_.oneof_bytes_cord_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  10265. }
  10266. oneof_field_.oneof_bytes_cord_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(
  10267. reinterpret_cast<const char*>(value), size));
  10268. // @@protoc_insertion_point(field_set_pointer:protobuf_unittest.TestOneofParsingLite.oneof_bytes_cord)
  10269. }
  10270. inline ::std::string* TestOneofParsingLite::mutable_oneof_bytes_cord() {
  10271. if (!has_oneof_bytes_cord()) {
  10272. clear_oneof_field();
  10273. set_has_oneof_bytes_cord();
  10274. oneof_field_.oneof_bytes_cord_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  10275. }
  10276. // @@protoc_insertion_point(field_mutable:protobuf_unittest.TestOneofParsingLite.oneof_bytes_cord)
  10277. return oneof_field_.oneof_bytes_cord_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  10278. }
  10279. inline ::std::string* TestOneofParsingLite::release_oneof_bytes_cord() {
  10280. // @@protoc_insertion_point(field_release:protobuf_unittest.TestOneofParsingLite.oneof_bytes_cord)
  10281. if (has_oneof_bytes_cord()) {
  10282. clear_has_oneof_field();
  10283. return oneof_field_.oneof_bytes_cord_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  10284. } else {
  10285. return NULL;
  10286. }
  10287. }
  10288. inline void TestOneofParsingLite::set_allocated_oneof_bytes_cord(::std::string* oneof_bytes_cord) {
  10289. if (!has_oneof_bytes_cord()) {
  10290. oneof_field_.oneof_bytes_cord_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  10291. }
  10292. clear_oneof_field();
  10293. if (oneof_bytes_cord != NULL) {
  10294. set_has_oneof_bytes_cord();
  10295. oneof_field_.oneof_bytes_cord_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), oneof_bytes_cord);
  10296. }
  10297. // @@protoc_insertion_point(field_set_allocated:protobuf_unittest.TestOneofParsingLite.oneof_bytes_cord)
  10298. }
  10299. // optional string oneof_string_string_piece = 7 [ctype = STRING_PIECE];
  10300. inline bool TestOneofParsingLite::has_oneof_string_string_piece() const {
  10301. return oneof_field_case() == kOneofStringStringPiece;
  10302. }
  10303. inline void TestOneofParsingLite::set_has_oneof_string_string_piece() {
  10304. _oneof_case_[0] = kOneofStringStringPiece;
  10305. }
  10306. inline void TestOneofParsingLite::clear_oneof_string_string_piece() {
  10307. if (has_oneof_string_string_piece()) {
  10308. oneof_field_.oneof_string_string_piece_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  10309. clear_has_oneof_field();
  10310. }
  10311. }
  10312. inline const ::std::string& TestOneofParsingLite::oneof_string_string_piece() const {
  10313. // @@protoc_insertion_point(field_get:protobuf_unittest.TestOneofParsingLite.oneof_string_string_piece)
  10314. if (has_oneof_string_string_piece()) {
  10315. return oneof_field_.oneof_string_string_piece_.GetNoArena();
  10316. }
  10317. return *&::google::protobuf::internal::GetEmptyStringAlreadyInited();
  10318. }
  10319. inline void TestOneofParsingLite::set_oneof_string_string_piece(const ::std::string& value) {
  10320. // @@protoc_insertion_point(field_set:protobuf_unittest.TestOneofParsingLite.oneof_string_string_piece)
  10321. if (!has_oneof_string_string_piece()) {
  10322. clear_oneof_field();
  10323. set_has_oneof_string_string_piece();
  10324. oneof_field_.oneof_string_string_piece_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  10325. }
  10326. oneof_field_.oneof_string_string_piece_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
  10327. // @@protoc_insertion_point(field_set:protobuf_unittest.TestOneofParsingLite.oneof_string_string_piece)
  10328. }
  10329. #if LANG_CXX11
  10330. inline void TestOneofParsingLite::set_oneof_string_string_piece(::std::string&& value) {
  10331. // @@protoc_insertion_point(field_set:protobuf_unittest.TestOneofParsingLite.oneof_string_string_piece)
  10332. if (!has_oneof_string_string_piece()) {
  10333. clear_oneof_field();
  10334. set_has_oneof_string_string_piece();
  10335. oneof_field_.oneof_string_string_piece_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  10336. }
  10337. oneof_field_.oneof_string_string_piece_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
  10338. // @@protoc_insertion_point(field_set_rvalue:protobuf_unittest.TestOneofParsingLite.oneof_string_string_piece)
  10339. }
  10340. #endif
  10341. inline void TestOneofParsingLite::set_oneof_string_string_piece(const char* value) {
  10342. GOOGLE_DCHECK(value != NULL);
  10343. if (!has_oneof_string_string_piece()) {
  10344. clear_oneof_field();
  10345. set_has_oneof_string_string_piece();
  10346. oneof_field_.oneof_string_string_piece_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  10347. }
  10348. oneof_field_.oneof_string_string_piece_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  10349. ::std::string(value));
  10350. // @@protoc_insertion_point(field_set_char:protobuf_unittest.TestOneofParsingLite.oneof_string_string_piece)
  10351. }
  10352. inline void TestOneofParsingLite::set_oneof_string_string_piece(const char* value, size_t size) {
  10353. if (!has_oneof_string_string_piece()) {
  10354. clear_oneof_field();
  10355. set_has_oneof_string_string_piece();
  10356. oneof_field_.oneof_string_string_piece_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  10357. }
  10358. oneof_field_.oneof_string_string_piece_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(
  10359. reinterpret_cast<const char*>(value), size));
  10360. // @@protoc_insertion_point(field_set_pointer:protobuf_unittest.TestOneofParsingLite.oneof_string_string_piece)
  10361. }
  10362. inline ::std::string* TestOneofParsingLite::mutable_oneof_string_string_piece() {
  10363. if (!has_oneof_string_string_piece()) {
  10364. clear_oneof_field();
  10365. set_has_oneof_string_string_piece();
  10366. oneof_field_.oneof_string_string_piece_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  10367. }
  10368. // @@protoc_insertion_point(field_mutable:protobuf_unittest.TestOneofParsingLite.oneof_string_string_piece)
  10369. return oneof_field_.oneof_string_string_piece_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  10370. }
  10371. inline ::std::string* TestOneofParsingLite::release_oneof_string_string_piece() {
  10372. // @@protoc_insertion_point(field_release:protobuf_unittest.TestOneofParsingLite.oneof_string_string_piece)
  10373. if (has_oneof_string_string_piece()) {
  10374. clear_has_oneof_field();
  10375. return oneof_field_.oneof_string_string_piece_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  10376. } else {
  10377. return NULL;
  10378. }
  10379. }
  10380. inline void TestOneofParsingLite::set_allocated_oneof_string_string_piece(::std::string* oneof_string_string_piece) {
  10381. if (!has_oneof_string_string_piece()) {
  10382. oneof_field_.oneof_string_string_piece_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  10383. }
  10384. clear_oneof_field();
  10385. if (oneof_string_string_piece != NULL) {
  10386. set_has_oneof_string_string_piece();
  10387. oneof_field_.oneof_string_string_piece_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), oneof_string_string_piece);
  10388. }
  10389. // @@protoc_insertion_point(field_set_allocated:protobuf_unittest.TestOneofParsingLite.oneof_string_string_piece)
  10390. }
  10391. // optional bytes oneof_bytes_string_piece = 8 [default = "default StringPiece", ctype = STRING_PIECE];
  10392. inline bool TestOneofParsingLite::has_oneof_bytes_string_piece() const {
  10393. return oneof_field_case() == kOneofBytesStringPiece;
  10394. }
  10395. inline void TestOneofParsingLite::set_has_oneof_bytes_string_piece() {
  10396. _oneof_case_[0] = kOneofBytesStringPiece;
  10397. }
  10398. inline void TestOneofParsingLite::clear_oneof_bytes_string_piece() {
  10399. if (has_oneof_bytes_string_piece()) {
  10400. oneof_field_.oneof_bytes_string_piece_.DestroyNoArena(&::protobuf_unittest::TestOneofParsingLite::_i_give_permission_to_break_this_code_default_oneof_bytes_string_piece_.get());
  10401. clear_has_oneof_field();
  10402. }
  10403. }
  10404. inline const ::std::string& TestOneofParsingLite::oneof_bytes_string_piece() const {
  10405. // @@protoc_insertion_point(field_get:protobuf_unittest.TestOneofParsingLite.oneof_bytes_string_piece)
  10406. if (has_oneof_bytes_string_piece()) {
  10407. return oneof_field_.oneof_bytes_string_piece_.GetNoArena();
  10408. }
  10409. return *&::protobuf_unittest::TestOneofParsingLite::_i_give_permission_to_break_this_code_default_oneof_bytes_string_piece_.get();
  10410. }
  10411. inline void TestOneofParsingLite::set_oneof_bytes_string_piece(const ::std::string& value) {
  10412. // @@protoc_insertion_point(field_set:protobuf_unittest.TestOneofParsingLite.oneof_bytes_string_piece)
  10413. if (!has_oneof_bytes_string_piece()) {
  10414. clear_oneof_field();
  10415. set_has_oneof_bytes_string_piece();
  10416. oneof_field_.oneof_bytes_string_piece_.UnsafeSetDefault(&::protobuf_unittest::TestOneofParsingLite::_i_give_permission_to_break_this_code_default_oneof_bytes_string_piece_.get());
  10417. }
  10418. oneof_field_.oneof_bytes_string_piece_.SetNoArena(&::protobuf_unittest::TestOneofParsingLite::_i_give_permission_to_break_this_code_default_oneof_bytes_string_piece_.get(), value);
  10419. // @@protoc_insertion_point(field_set:protobuf_unittest.TestOneofParsingLite.oneof_bytes_string_piece)
  10420. }
  10421. #if LANG_CXX11
  10422. inline void TestOneofParsingLite::set_oneof_bytes_string_piece(::std::string&& value) {
  10423. // @@protoc_insertion_point(field_set:protobuf_unittest.TestOneofParsingLite.oneof_bytes_string_piece)
  10424. if (!has_oneof_bytes_string_piece()) {
  10425. clear_oneof_field();
  10426. set_has_oneof_bytes_string_piece();
  10427. oneof_field_.oneof_bytes_string_piece_.UnsafeSetDefault(&::protobuf_unittest::TestOneofParsingLite::_i_give_permission_to_break_this_code_default_oneof_bytes_string_piece_.get());
  10428. }
  10429. oneof_field_.oneof_bytes_string_piece_.SetNoArena(&::protobuf_unittest::TestOneofParsingLite::_i_give_permission_to_break_this_code_default_oneof_bytes_string_piece_.get(), ::std::move(value));
  10430. // @@protoc_insertion_point(field_set_rvalue:protobuf_unittest.TestOneofParsingLite.oneof_bytes_string_piece)
  10431. }
  10432. #endif
  10433. inline void TestOneofParsingLite::set_oneof_bytes_string_piece(const char* value) {
  10434. GOOGLE_DCHECK(value != NULL);
  10435. if (!has_oneof_bytes_string_piece()) {
  10436. clear_oneof_field();
  10437. set_has_oneof_bytes_string_piece();
  10438. oneof_field_.oneof_bytes_string_piece_.UnsafeSetDefault(&::protobuf_unittest::TestOneofParsingLite::_i_give_permission_to_break_this_code_default_oneof_bytes_string_piece_.get());
  10439. }
  10440. oneof_field_.oneof_bytes_string_piece_.SetNoArena(&::protobuf_unittest::TestOneofParsingLite::_i_give_permission_to_break_this_code_default_oneof_bytes_string_piece_.get(),
  10441. ::std::string(value));
  10442. // @@protoc_insertion_point(field_set_char:protobuf_unittest.TestOneofParsingLite.oneof_bytes_string_piece)
  10443. }
  10444. inline void TestOneofParsingLite::set_oneof_bytes_string_piece(const void* value, size_t size) {
  10445. if (!has_oneof_bytes_string_piece()) {
  10446. clear_oneof_field();
  10447. set_has_oneof_bytes_string_piece();
  10448. oneof_field_.oneof_bytes_string_piece_.UnsafeSetDefault(&::protobuf_unittest::TestOneofParsingLite::_i_give_permission_to_break_this_code_default_oneof_bytes_string_piece_.get());
  10449. }
  10450. oneof_field_.oneof_bytes_string_piece_.SetNoArena(&::protobuf_unittest::TestOneofParsingLite::_i_give_permission_to_break_this_code_default_oneof_bytes_string_piece_.get(), ::std::string(
  10451. reinterpret_cast<const char*>(value), size));
  10452. // @@protoc_insertion_point(field_set_pointer:protobuf_unittest.TestOneofParsingLite.oneof_bytes_string_piece)
  10453. }
  10454. inline ::std::string* TestOneofParsingLite::mutable_oneof_bytes_string_piece() {
  10455. if (!has_oneof_bytes_string_piece()) {
  10456. clear_oneof_field();
  10457. set_has_oneof_bytes_string_piece();
  10458. oneof_field_.oneof_bytes_string_piece_.UnsafeSetDefault(&::protobuf_unittest::TestOneofParsingLite::_i_give_permission_to_break_this_code_default_oneof_bytes_string_piece_.get());
  10459. }
  10460. // @@protoc_insertion_point(field_mutable:protobuf_unittest.TestOneofParsingLite.oneof_bytes_string_piece)
  10461. return oneof_field_.oneof_bytes_string_piece_.MutableNoArena(&::protobuf_unittest::TestOneofParsingLite::_i_give_permission_to_break_this_code_default_oneof_bytes_string_piece_.get());
  10462. }
  10463. inline ::std::string* TestOneofParsingLite::release_oneof_bytes_string_piece() {
  10464. // @@protoc_insertion_point(field_release:protobuf_unittest.TestOneofParsingLite.oneof_bytes_string_piece)
  10465. if (has_oneof_bytes_string_piece()) {
  10466. clear_has_oneof_field();
  10467. return oneof_field_.oneof_bytes_string_piece_.ReleaseNoArena(&::protobuf_unittest::TestOneofParsingLite::_i_give_permission_to_break_this_code_default_oneof_bytes_string_piece_.get());
  10468. } else {
  10469. return NULL;
  10470. }
  10471. }
  10472. inline void TestOneofParsingLite::set_allocated_oneof_bytes_string_piece(::std::string* oneof_bytes_string_piece) {
  10473. if (!has_oneof_bytes_string_piece()) {
  10474. oneof_field_.oneof_bytes_string_piece_.UnsafeSetDefault(&::protobuf_unittest::TestOneofParsingLite::_i_give_permission_to_break_this_code_default_oneof_bytes_string_piece_.get());
  10475. }
  10476. clear_oneof_field();
  10477. if (oneof_bytes_string_piece != NULL) {
  10478. set_has_oneof_bytes_string_piece();
  10479. oneof_field_.oneof_bytes_string_piece_.SetAllocatedNoArena(&::protobuf_unittest::TestOneofParsingLite::_i_give_permission_to_break_this_code_default_oneof_bytes_string_piece_.get(), oneof_bytes_string_piece);
  10480. }
  10481. // @@protoc_insertion_point(field_set_allocated:protobuf_unittest.TestOneofParsingLite.oneof_bytes_string_piece)
  10482. }
  10483. // optional .protobuf_unittest.V2EnumLite oneof_enum = 9;
  10484. inline bool TestOneofParsingLite::has_oneof_enum() const {
  10485. return oneof_field_case() == kOneofEnum;
  10486. }
  10487. inline void TestOneofParsingLite::set_has_oneof_enum() {
  10488. _oneof_case_[0] = kOneofEnum;
  10489. }
  10490. inline void TestOneofParsingLite::clear_oneof_enum() {
  10491. if (has_oneof_enum()) {
  10492. oneof_field_.oneof_enum_ = 1;
  10493. clear_has_oneof_field();
  10494. }
  10495. }
  10496. inline ::protobuf_unittest::V2EnumLite TestOneofParsingLite::oneof_enum() const {
  10497. // @@protoc_insertion_point(field_get:protobuf_unittest.TestOneofParsingLite.oneof_enum)
  10498. if (has_oneof_enum()) {
  10499. return static_cast< ::protobuf_unittest::V2EnumLite >(oneof_field_.oneof_enum_);
  10500. }
  10501. return static_cast< ::protobuf_unittest::V2EnumLite >(1);
  10502. }
  10503. inline void TestOneofParsingLite::set_oneof_enum(::protobuf_unittest::V2EnumLite value) {
  10504. assert(::protobuf_unittest::V2EnumLite_IsValid(value));
  10505. if (!has_oneof_enum()) {
  10506. clear_oneof_field();
  10507. set_has_oneof_enum();
  10508. }
  10509. oneof_field_.oneof_enum_ = value;
  10510. // @@protoc_insertion_point(field_set:protobuf_unittest.TestOneofParsingLite.oneof_enum)
  10511. }
  10512. inline bool TestOneofParsingLite::has_oneof_field() const {
  10513. return oneof_field_case() != ONEOF_FIELD_NOT_SET;
  10514. }
  10515. inline void TestOneofParsingLite::clear_has_oneof_field() {
  10516. _oneof_case_[0] = ONEOF_FIELD_NOT_SET;
  10517. }
  10518. inline TestOneofParsingLite::OneofFieldCase TestOneofParsingLite::oneof_field_case() const {
  10519. return TestOneofParsingLite::OneofFieldCase(_oneof_case_[0]);
  10520. }
  10521. // -------------------------------------------------------------------
  10522. // PackedInt32
  10523. // repeated int32 repeated_int32 = 2048 [packed = true];
  10524. inline int PackedInt32::repeated_int32_size() const {
  10525. return repeated_int32_.size();
  10526. }
  10527. inline void PackedInt32::clear_repeated_int32() {
  10528. repeated_int32_.Clear();
  10529. }
  10530. inline ::google::protobuf::int32 PackedInt32::repeated_int32(int index) const {
  10531. // @@protoc_insertion_point(field_get:protobuf_unittest.PackedInt32.repeated_int32)
  10532. return repeated_int32_.Get(index);
  10533. }
  10534. inline void PackedInt32::set_repeated_int32(int index, ::google::protobuf::int32 value) {
  10535. repeated_int32_.Set(index, value);
  10536. // @@protoc_insertion_point(field_set:protobuf_unittest.PackedInt32.repeated_int32)
  10537. }
  10538. inline void PackedInt32::add_repeated_int32(::google::protobuf::int32 value) {
  10539. repeated_int32_.Add(value);
  10540. // @@protoc_insertion_point(field_add:protobuf_unittest.PackedInt32.repeated_int32)
  10541. }
  10542. inline const ::google::protobuf::RepeatedField< ::google::protobuf::int32 >&
  10543. PackedInt32::repeated_int32() const {
  10544. // @@protoc_insertion_point(field_list:protobuf_unittest.PackedInt32.repeated_int32)
  10545. return repeated_int32_;
  10546. }
  10547. inline ::google::protobuf::RepeatedField< ::google::protobuf::int32 >*
  10548. PackedInt32::mutable_repeated_int32() {
  10549. // @@protoc_insertion_point(field_mutable_list:protobuf_unittest.PackedInt32.repeated_int32)
  10550. return &repeated_int32_;
  10551. }
  10552. // -------------------------------------------------------------------
  10553. // NonPackedInt32
  10554. // repeated int32 repeated_int32 = 2048;
  10555. inline int NonPackedInt32::repeated_int32_size() const {
  10556. return repeated_int32_.size();
  10557. }
  10558. inline void NonPackedInt32::clear_repeated_int32() {
  10559. repeated_int32_.Clear();
  10560. }
  10561. inline ::google::protobuf::int32 NonPackedInt32::repeated_int32(int index) const {
  10562. // @@protoc_insertion_point(field_get:protobuf_unittest.NonPackedInt32.repeated_int32)
  10563. return repeated_int32_.Get(index);
  10564. }
  10565. inline void NonPackedInt32::set_repeated_int32(int index, ::google::protobuf::int32 value) {
  10566. repeated_int32_.Set(index, value);
  10567. // @@protoc_insertion_point(field_set:protobuf_unittest.NonPackedInt32.repeated_int32)
  10568. }
  10569. inline void NonPackedInt32::add_repeated_int32(::google::protobuf::int32 value) {
  10570. repeated_int32_.Add(value);
  10571. // @@protoc_insertion_point(field_add:protobuf_unittest.NonPackedInt32.repeated_int32)
  10572. }
  10573. inline const ::google::protobuf::RepeatedField< ::google::protobuf::int32 >&
  10574. NonPackedInt32::repeated_int32() const {
  10575. // @@protoc_insertion_point(field_list:protobuf_unittest.NonPackedInt32.repeated_int32)
  10576. return repeated_int32_;
  10577. }
  10578. inline ::google::protobuf::RepeatedField< ::google::protobuf::int32 >*
  10579. NonPackedInt32::mutable_repeated_int32() {
  10580. // @@protoc_insertion_point(field_mutable_list:protobuf_unittest.NonPackedInt32.repeated_int32)
  10581. return &repeated_int32_;
  10582. }
  10583. // -------------------------------------------------------------------
  10584. // PackedFixed32
  10585. // repeated fixed32 repeated_fixed32 = 2048 [packed = true];
  10586. inline int PackedFixed32::repeated_fixed32_size() const {
  10587. return repeated_fixed32_.size();
  10588. }
  10589. inline void PackedFixed32::clear_repeated_fixed32() {
  10590. repeated_fixed32_.Clear();
  10591. }
  10592. inline ::google::protobuf::uint32 PackedFixed32::repeated_fixed32(int index) const {
  10593. // @@protoc_insertion_point(field_get:protobuf_unittest.PackedFixed32.repeated_fixed32)
  10594. return repeated_fixed32_.Get(index);
  10595. }
  10596. inline void PackedFixed32::set_repeated_fixed32(int index, ::google::protobuf::uint32 value) {
  10597. repeated_fixed32_.Set(index, value);
  10598. // @@protoc_insertion_point(field_set:protobuf_unittest.PackedFixed32.repeated_fixed32)
  10599. }
  10600. inline void PackedFixed32::add_repeated_fixed32(::google::protobuf::uint32 value) {
  10601. repeated_fixed32_.Add(value);
  10602. // @@protoc_insertion_point(field_add:protobuf_unittest.PackedFixed32.repeated_fixed32)
  10603. }
  10604. inline const ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >&
  10605. PackedFixed32::repeated_fixed32() const {
  10606. // @@protoc_insertion_point(field_list:protobuf_unittest.PackedFixed32.repeated_fixed32)
  10607. return repeated_fixed32_;
  10608. }
  10609. inline ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >*
  10610. PackedFixed32::mutable_repeated_fixed32() {
  10611. // @@protoc_insertion_point(field_mutable_list:protobuf_unittest.PackedFixed32.repeated_fixed32)
  10612. return &repeated_fixed32_;
  10613. }
  10614. // -------------------------------------------------------------------
  10615. // NonPackedFixed32
  10616. // repeated fixed32 repeated_fixed32 = 2048;
  10617. inline int NonPackedFixed32::repeated_fixed32_size() const {
  10618. return repeated_fixed32_.size();
  10619. }
  10620. inline void NonPackedFixed32::clear_repeated_fixed32() {
  10621. repeated_fixed32_.Clear();
  10622. }
  10623. inline ::google::protobuf::uint32 NonPackedFixed32::repeated_fixed32(int index) const {
  10624. // @@protoc_insertion_point(field_get:protobuf_unittest.NonPackedFixed32.repeated_fixed32)
  10625. return repeated_fixed32_.Get(index);
  10626. }
  10627. inline void NonPackedFixed32::set_repeated_fixed32(int index, ::google::protobuf::uint32 value) {
  10628. repeated_fixed32_.Set(index, value);
  10629. // @@protoc_insertion_point(field_set:protobuf_unittest.NonPackedFixed32.repeated_fixed32)
  10630. }
  10631. inline void NonPackedFixed32::add_repeated_fixed32(::google::protobuf::uint32 value) {
  10632. repeated_fixed32_.Add(value);
  10633. // @@protoc_insertion_point(field_add:protobuf_unittest.NonPackedFixed32.repeated_fixed32)
  10634. }
  10635. inline const ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >&
  10636. NonPackedFixed32::repeated_fixed32() const {
  10637. // @@protoc_insertion_point(field_list:protobuf_unittest.NonPackedFixed32.repeated_fixed32)
  10638. return repeated_fixed32_;
  10639. }
  10640. inline ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >*
  10641. NonPackedFixed32::mutable_repeated_fixed32() {
  10642. // @@protoc_insertion_point(field_mutable_list:protobuf_unittest.NonPackedFixed32.repeated_fixed32)
  10643. return &repeated_fixed32_;
  10644. }
  10645. #ifdef __GNUC__
  10646. #pragma GCC diagnostic pop
  10647. #endif // __GNUC__
  10648. // -------------------------------------------------------------------
  10649. // -------------------------------------------------------------------
  10650. // -------------------------------------------------------------------
  10651. // -------------------------------------------------------------------
  10652. // -------------------------------------------------------------------
  10653. // -------------------------------------------------------------------
  10654. // -------------------------------------------------------------------
  10655. // -------------------------------------------------------------------
  10656. // -------------------------------------------------------------------
  10657. // -------------------------------------------------------------------
  10658. // -------------------------------------------------------------------
  10659. // -------------------------------------------------------------------
  10660. // -------------------------------------------------------------------
  10661. // -------------------------------------------------------------------
  10662. // -------------------------------------------------------------------
  10663. // -------------------------------------------------------------------
  10664. // -------------------------------------------------------------------
  10665. // -------------------------------------------------------------------
  10666. // -------------------------------------------------------------------
  10667. // -------------------------------------------------------------------
  10668. // -------------------------------------------------------------------
  10669. // -------------------------------------------------------------------
  10670. // -------------------------------------------------------------------
  10671. // -------------------------------------------------------------------
  10672. // -------------------------------------------------------------------
  10673. // -------------------------------------------------------------------
  10674. // -------------------------------------------------------------------
  10675. // -------------------------------------------------------------------
  10676. // -------------------------------------------------------------------
  10677. // @@protoc_insertion_point(namespace_scope)
  10678. } // namespace protobuf_unittest
  10679. namespace google {
  10680. namespace protobuf {
  10681. template <> struct is_proto_enum< ::protobuf_unittest::TestAllTypesLite_NestedEnum> : ::std::true_type {};
  10682. template <> struct is_proto_enum< ::protobuf_unittest::ForeignEnumLite> : ::std::true_type {};
  10683. template <> struct is_proto_enum< ::protobuf_unittest::V1EnumLite> : ::std::true_type {};
  10684. template <> struct is_proto_enum< ::protobuf_unittest::V2EnumLite> : ::std::true_type {};
  10685. } // namespace protobuf
  10686. } // namespace google
  10687. // @@protoc_insertion_point(global_scope)
  10688. #endif // PROTOBUF_INCLUDED_google_2fprotobuf_2funittest_5flite_2eproto