unittest_proto3_arena_lite.pb.h 226 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145
  1. // Generated by the protocol buffer compiler. DO NOT EDIT!
  2. // source: google/protobuf/unittest_proto3_arena_lite.proto
  3. #ifndef PROTOBUF_INCLUDED_google_2fprotobuf_2funittest_5fproto3_5farena_5flite_2eproto
  4. #define PROTOBUF_INCLUDED_google_2fprotobuf_2funittest_5fproto3_5farena_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/generated_enum_util.h>
  28. #include <google/protobuf/unittest_import.pb.h>
  29. // @@protoc_insertion_point(includes)
  30. #define PROTOBUF_INTERNAL_EXPORT_protobuf_google_2fprotobuf_2funittest_5fproto3_5farena_5flite_2eproto
  31. namespace protobuf_google_2fprotobuf_2funittest_5fproto3_5farena_5flite_2eproto {
  32. // Internal implementation detail -- do not use these members.
  33. struct TableStruct {
  34. static const ::google::protobuf::internal::ParseTableField entries[];
  35. static const ::google::protobuf::internal::AuxillaryParseTableField aux[];
  36. static const ::google::protobuf::internal::ParseTable schema[7];
  37. static const ::google::protobuf::internal::FieldMetadata field_metadata[];
  38. static const ::google::protobuf::internal::SerializationTable serialization_table[];
  39. static const ::google::protobuf::uint32 offsets[];
  40. };
  41. } // namespace protobuf_google_2fprotobuf_2funittest_5fproto3_5farena_5flite_2eproto
  42. namespace proto3_arena_lite_unittest {
  43. class ForeignMessage;
  44. class ForeignMessageDefaultTypeInternal;
  45. extern ForeignMessageDefaultTypeInternal _ForeignMessage_default_instance_;
  46. class NestedTestAllTypes;
  47. class NestedTestAllTypesDefaultTypeInternal;
  48. extern NestedTestAllTypesDefaultTypeInternal _NestedTestAllTypes_default_instance_;
  49. class TestAllTypes;
  50. class TestAllTypesDefaultTypeInternal;
  51. extern TestAllTypesDefaultTypeInternal _TestAllTypes_default_instance_;
  52. class TestAllTypes_NestedMessage;
  53. class TestAllTypes_NestedMessageDefaultTypeInternal;
  54. extern TestAllTypes_NestedMessageDefaultTypeInternal _TestAllTypes_NestedMessage_default_instance_;
  55. class TestEmptyMessage;
  56. class TestEmptyMessageDefaultTypeInternal;
  57. extern TestEmptyMessageDefaultTypeInternal _TestEmptyMessage_default_instance_;
  58. class TestPackedTypes;
  59. class TestPackedTypesDefaultTypeInternal;
  60. extern TestPackedTypesDefaultTypeInternal _TestPackedTypes_default_instance_;
  61. class TestUnpackedTypes;
  62. class TestUnpackedTypesDefaultTypeInternal;
  63. extern TestUnpackedTypesDefaultTypeInternal _TestUnpackedTypes_default_instance_;
  64. } // namespace proto3_arena_lite_unittest
  65. namespace google {
  66. namespace protobuf {
  67. template<> ::proto3_arena_lite_unittest::ForeignMessage* Arena::CreateMaybeMessage<::proto3_arena_lite_unittest::ForeignMessage>(Arena*);
  68. template<> ::proto3_arena_lite_unittest::NestedTestAllTypes* Arena::CreateMaybeMessage<::proto3_arena_lite_unittest::NestedTestAllTypes>(Arena*);
  69. template<> ::proto3_arena_lite_unittest::TestAllTypes* Arena::CreateMaybeMessage<::proto3_arena_lite_unittest::TestAllTypes>(Arena*);
  70. template<> ::proto3_arena_lite_unittest::TestAllTypes_NestedMessage* Arena::CreateMaybeMessage<::proto3_arena_lite_unittest::TestAllTypes_NestedMessage>(Arena*);
  71. template<> ::proto3_arena_lite_unittest::TestEmptyMessage* Arena::CreateMaybeMessage<::proto3_arena_lite_unittest::TestEmptyMessage>(Arena*);
  72. template<> ::proto3_arena_lite_unittest::TestPackedTypes* Arena::CreateMaybeMessage<::proto3_arena_lite_unittest::TestPackedTypes>(Arena*);
  73. template<> ::proto3_arena_lite_unittest::TestUnpackedTypes* Arena::CreateMaybeMessage<::proto3_arena_lite_unittest::TestUnpackedTypes>(Arena*);
  74. } // namespace protobuf
  75. } // namespace google
  76. namespace proto3_arena_lite_unittest {
  77. enum TestAllTypes_NestedEnum {
  78. TestAllTypes_NestedEnum_ZERO = 0,
  79. TestAllTypes_NestedEnum_FOO = 1,
  80. TestAllTypes_NestedEnum_BAR = 2,
  81. TestAllTypes_NestedEnum_BAZ = 3,
  82. TestAllTypes_NestedEnum_NEG = -1,
  83. TestAllTypes_NestedEnum_TestAllTypes_NestedEnum_INT_MIN_SENTINEL_DO_NOT_USE_ = ::google::protobuf::kint32min,
  84. TestAllTypes_NestedEnum_TestAllTypes_NestedEnum_INT_MAX_SENTINEL_DO_NOT_USE_ = ::google::protobuf::kint32max
  85. };
  86. bool TestAllTypes_NestedEnum_IsValid(int value);
  87. const TestAllTypes_NestedEnum TestAllTypes_NestedEnum_NestedEnum_MIN = TestAllTypes_NestedEnum_NEG;
  88. const TestAllTypes_NestedEnum TestAllTypes_NestedEnum_NestedEnum_MAX = TestAllTypes_NestedEnum_BAZ;
  89. const int TestAllTypes_NestedEnum_NestedEnum_ARRAYSIZE = TestAllTypes_NestedEnum_NestedEnum_MAX + 1;
  90. enum ForeignEnum {
  91. FOREIGN_ZERO = 0,
  92. FOREIGN_FOO = 4,
  93. FOREIGN_BAR = 5,
  94. FOREIGN_BAZ = 6,
  95. ForeignEnum_INT_MIN_SENTINEL_DO_NOT_USE_ = ::google::protobuf::kint32min,
  96. ForeignEnum_INT_MAX_SENTINEL_DO_NOT_USE_ = ::google::protobuf::kint32max
  97. };
  98. bool ForeignEnum_IsValid(int value);
  99. const ForeignEnum ForeignEnum_MIN = FOREIGN_ZERO;
  100. const ForeignEnum ForeignEnum_MAX = FOREIGN_BAZ;
  101. const int ForeignEnum_ARRAYSIZE = ForeignEnum_MAX + 1;
  102. // ===================================================================
  103. class TestAllTypes_NestedMessage : public ::google::protobuf::MessageLite /* @@protoc_insertion_point(class_definition:proto3_arena_lite_unittest.TestAllTypes.NestedMessage) */ {
  104. public:
  105. TestAllTypes_NestedMessage();
  106. virtual ~TestAllTypes_NestedMessage();
  107. TestAllTypes_NestedMessage(const TestAllTypes_NestedMessage& from);
  108. inline TestAllTypes_NestedMessage& operator=(const TestAllTypes_NestedMessage& from) {
  109. CopyFrom(from);
  110. return *this;
  111. }
  112. #if LANG_CXX11
  113. TestAllTypes_NestedMessage(TestAllTypes_NestedMessage&& from) noexcept
  114. : TestAllTypes_NestedMessage() {
  115. *this = ::std::move(from);
  116. }
  117. inline TestAllTypes_NestedMessage& operator=(TestAllTypes_NestedMessage&& from) noexcept {
  118. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  119. if (this != &from) InternalSwap(&from);
  120. } else {
  121. CopyFrom(from);
  122. }
  123. return *this;
  124. }
  125. #endif
  126. inline ::google::protobuf::Arena* GetArena() const final {
  127. return GetArenaNoVirtual();
  128. }
  129. inline void* GetMaybeArenaPointer() const final {
  130. return MaybeArenaPtr();
  131. }
  132. static const TestAllTypes_NestedMessage& default_instance();
  133. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  134. static inline const TestAllTypes_NestedMessage* internal_default_instance() {
  135. return reinterpret_cast<const TestAllTypes_NestedMessage*>(
  136. &_TestAllTypes_NestedMessage_default_instance_);
  137. }
  138. static constexpr int kIndexInFileMessages =
  139. 0;
  140. void UnsafeArenaSwap(TestAllTypes_NestedMessage* other);
  141. void Swap(TestAllTypes_NestedMessage* other);
  142. friend void swap(TestAllTypes_NestedMessage& a, TestAllTypes_NestedMessage& b) {
  143. a.Swap(&b);
  144. }
  145. // implements Message ----------------------------------------------
  146. inline TestAllTypes_NestedMessage* New() const final {
  147. return CreateMaybeMessage<TestAllTypes_NestedMessage>(NULL);
  148. }
  149. TestAllTypes_NestedMessage* New(::google::protobuf::Arena* arena) const final {
  150. return CreateMaybeMessage<TestAllTypes_NestedMessage>(arena);
  151. }
  152. void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from)
  153. final;
  154. void CopyFrom(const TestAllTypes_NestedMessage& from);
  155. void MergeFrom(const TestAllTypes_NestedMessage& from);
  156. void Clear() final;
  157. bool IsInitialized() const final;
  158. size_t ByteSizeLong() const final;
  159. bool MergePartialFromCodedStream(
  160. ::google::protobuf::io::CodedInputStream* input) final;
  161. void SerializeWithCachedSizes(
  162. ::google::protobuf::io::CodedOutputStream* output) const final;
  163. void DiscardUnknownFields();
  164. int GetCachedSize() const final { return _cached_size_.Get(); }
  165. private:
  166. void SharedCtor();
  167. void SharedDtor();
  168. void SetCachedSize(int size) const;
  169. void InternalSwap(TestAllTypes_NestedMessage* other);
  170. protected:
  171. explicit TestAllTypes_NestedMessage(::google::protobuf::Arena* arena);
  172. private:
  173. static void ArenaDtor(void* object);
  174. inline void RegisterArenaDtor(::google::protobuf::Arena* arena);
  175. private:
  176. inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
  177. return _internal_metadata_.arena();
  178. }
  179. inline void* MaybeArenaPtr() const {
  180. return _internal_metadata_.raw_arena_ptr();
  181. }
  182. public:
  183. ::std::string GetTypeName() const final;
  184. // nested types ----------------------------------------------------
  185. // accessors -------------------------------------------------------
  186. // int32 bb = 1;
  187. void clear_bb();
  188. static const int kBbFieldNumber = 1;
  189. ::google::protobuf::int32 bb() const;
  190. void set_bb(::google::protobuf::int32 value);
  191. // @@protoc_insertion_point(class_scope:proto3_arena_lite_unittest.TestAllTypes.NestedMessage)
  192. private:
  193. ::google::protobuf::internal::InternalMetadataWithArenaLite _internal_metadata_;
  194. template <typename T> friend class ::google::protobuf::Arena::InternalHelper;
  195. typedef void InternalArenaConstructable_;
  196. typedef void DestructorSkippable_;
  197. ::google::protobuf::int32 bb_;
  198. mutable ::google::protobuf::internal::CachedSize _cached_size_;
  199. friend struct ::protobuf_google_2fprotobuf_2funittest_5fproto3_5farena_5flite_2eproto::TableStruct;
  200. };
  201. // -------------------------------------------------------------------
  202. class TestAllTypes : public ::google::protobuf::MessageLite /* @@protoc_insertion_point(class_definition:proto3_arena_lite_unittest.TestAllTypes) */ {
  203. public:
  204. TestAllTypes();
  205. virtual ~TestAllTypes();
  206. TestAllTypes(const TestAllTypes& from);
  207. inline TestAllTypes& operator=(const TestAllTypes& from) {
  208. CopyFrom(from);
  209. return *this;
  210. }
  211. #if LANG_CXX11
  212. TestAllTypes(TestAllTypes&& from) noexcept
  213. : TestAllTypes() {
  214. *this = ::std::move(from);
  215. }
  216. inline TestAllTypes& operator=(TestAllTypes&& from) noexcept {
  217. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  218. if (this != &from) InternalSwap(&from);
  219. } else {
  220. CopyFrom(from);
  221. }
  222. return *this;
  223. }
  224. #endif
  225. inline ::google::protobuf::Arena* GetArena() const final {
  226. return GetArenaNoVirtual();
  227. }
  228. inline void* GetMaybeArenaPointer() const final {
  229. return MaybeArenaPtr();
  230. }
  231. static const TestAllTypes& default_instance();
  232. enum OneofFieldCase {
  233. kOneofUint32 = 111,
  234. kOneofNestedMessage = 112,
  235. kOneofString = 113,
  236. kOneofBytes = 114,
  237. ONEOF_FIELD_NOT_SET = 0,
  238. };
  239. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  240. static inline const TestAllTypes* internal_default_instance() {
  241. return reinterpret_cast<const TestAllTypes*>(
  242. &_TestAllTypes_default_instance_);
  243. }
  244. static constexpr int kIndexInFileMessages =
  245. 1;
  246. void UnsafeArenaSwap(TestAllTypes* other);
  247. void Swap(TestAllTypes* other);
  248. friend void swap(TestAllTypes& a, TestAllTypes& b) {
  249. a.Swap(&b);
  250. }
  251. // implements Message ----------------------------------------------
  252. inline TestAllTypes* New() const final {
  253. return CreateMaybeMessage<TestAllTypes>(NULL);
  254. }
  255. TestAllTypes* New(::google::protobuf::Arena* arena) const final {
  256. return CreateMaybeMessage<TestAllTypes>(arena);
  257. }
  258. void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from)
  259. final;
  260. void CopyFrom(const TestAllTypes& from);
  261. void MergeFrom(const TestAllTypes& from);
  262. void Clear() final;
  263. bool IsInitialized() const final;
  264. size_t ByteSizeLong() const final;
  265. bool MergePartialFromCodedStream(
  266. ::google::protobuf::io::CodedInputStream* input) final;
  267. void SerializeWithCachedSizes(
  268. ::google::protobuf::io::CodedOutputStream* output) const final;
  269. void DiscardUnknownFields();
  270. int GetCachedSize() const final { return _cached_size_.Get(); }
  271. private:
  272. void SharedCtor();
  273. void SharedDtor();
  274. void SetCachedSize(int size) const;
  275. void InternalSwap(TestAllTypes* other);
  276. protected:
  277. explicit TestAllTypes(::google::protobuf::Arena* arena);
  278. private:
  279. static void ArenaDtor(void* object);
  280. inline void RegisterArenaDtor(::google::protobuf::Arena* arena);
  281. private:
  282. inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
  283. return _internal_metadata_.arena();
  284. }
  285. inline void* MaybeArenaPtr() const {
  286. return _internal_metadata_.raw_arena_ptr();
  287. }
  288. public:
  289. ::std::string GetTypeName() const final;
  290. // nested types ----------------------------------------------------
  291. typedef TestAllTypes_NestedMessage NestedMessage;
  292. typedef TestAllTypes_NestedEnum NestedEnum;
  293. static const NestedEnum ZERO =
  294. TestAllTypes_NestedEnum_ZERO;
  295. static const NestedEnum FOO =
  296. TestAllTypes_NestedEnum_FOO;
  297. static const NestedEnum BAR =
  298. TestAllTypes_NestedEnum_BAR;
  299. static const NestedEnum BAZ =
  300. TestAllTypes_NestedEnum_BAZ;
  301. static const NestedEnum NEG =
  302. TestAllTypes_NestedEnum_NEG;
  303. static inline bool NestedEnum_IsValid(int value) {
  304. return TestAllTypes_NestedEnum_IsValid(value);
  305. }
  306. static const NestedEnum NestedEnum_MIN =
  307. TestAllTypes_NestedEnum_NestedEnum_MIN;
  308. static const NestedEnum NestedEnum_MAX =
  309. TestAllTypes_NestedEnum_NestedEnum_MAX;
  310. static const int NestedEnum_ARRAYSIZE =
  311. TestAllTypes_NestedEnum_NestedEnum_ARRAYSIZE;
  312. // accessors -------------------------------------------------------
  313. // repeated int32 repeated_int32 = 31;
  314. int repeated_int32_size() const;
  315. void clear_repeated_int32();
  316. static const int kRepeatedInt32FieldNumber = 31;
  317. ::google::protobuf::int32 repeated_int32(int index) const;
  318. void set_repeated_int32(int index, ::google::protobuf::int32 value);
  319. void add_repeated_int32(::google::protobuf::int32 value);
  320. const ::google::protobuf::RepeatedField< ::google::protobuf::int32 >&
  321. repeated_int32() const;
  322. ::google::protobuf::RepeatedField< ::google::protobuf::int32 >*
  323. mutable_repeated_int32();
  324. // repeated int64 repeated_int64 = 32;
  325. int repeated_int64_size() const;
  326. void clear_repeated_int64();
  327. static const int kRepeatedInt64FieldNumber = 32;
  328. ::google::protobuf::int64 repeated_int64(int index) const;
  329. void set_repeated_int64(int index, ::google::protobuf::int64 value);
  330. void add_repeated_int64(::google::protobuf::int64 value);
  331. const ::google::protobuf::RepeatedField< ::google::protobuf::int64 >&
  332. repeated_int64() const;
  333. ::google::protobuf::RepeatedField< ::google::protobuf::int64 >*
  334. mutable_repeated_int64();
  335. // repeated uint32 repeated_uint32 = 33;
  336. int repeated_uint32_size() const;
  337. void clear_repeated_uint32();
  338. static const int kRepeatedUint32FieldNumber = 33;
  339. ::google::protobuf::uint32 repeated_uint32(int index) const;
  340. void set_repeated_uint32(int index, ::google::protobuf::uint32 value);
  341. void add_repeated_uint32(::google::protobuf::uint32 value);
  342. const ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >&
  343. repeated_uint32() const;
  344. ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >*
  345. mutable_repeated_uint32();
  346. // repeated uint64 repeated_uint64 = 34;
  347. int repeated_uint64_size() const;
  348. void clear_repeated_uint64();
  349. static const int kRepeatedUint64FieldNumber = 34;
  350. ::google::protobuf::uint64 repeated_uint64(int index) const;
  351. void set_repeated_uint64(int index, ::google::protobuf::uint64 value);
  352. void add_repeated_uint64(::google::protobuf::uint64 value);
  353. const ::google::protobuf::RepeatedField< ::google::protobuf::uint64 >&
  354. repeated_uint64() const;
  355. ::google::protobuf::RepeatedField< ::google::protobuf::uint64 >*
  356. mutable_repeated_uint64();
  357. // repeated sint32 repeated_sint32 = 35;
  358. int repeated_sint32_size() const;
  359. void clear_repeated_sint32();
  360. static const int kRepeatedSint32FieldNumber = 35;
  361. ::google::protobuf::int32 repeated_sint32(int index) const;
  362. void set_repeated_sint32(int index, ::google::protobuf::int32 value);
  363. void add_repeated_sint32(::google::protobuf::int32 value);
  364. const ::google::protobuf::RepeatedField< ::google::protobuf::int32 >&
  365. repeated_sint32() const;
  366. ::google::protobuf::RepeatedField< ::google::protobuf::int32 >*
  367. mutable_repeated_sint32();
  368. // repeated sint64 repeated_sint64 = 36;
  369. int repeated_sint64_size() const;
  370. void clear_repeated_sint64();
  371. static const int kRepeatedSint64FieldNumber = 36;
  372. ::google::protobuf::int64 repeated_sint64(int index) const;
  373. void set_repeated_sint64(int index, ::google::protobuf::int64 value);
  374. void add_repeated_sint64(::google::protobuf::int64 value);
  375. const ::google::protobuf::RepeatedField< ::google::protobuf::int64 >&
  376. repeated_sint64() const;
  377. ::google::protobuf::RepeatedField< ::google::protobuf::int64 >*
  378. mutable_repeated_sint64();
  379. // repeated fixed32 repeated_fixed32 = 37;
  380. int repeated_fixed32_size() const;
  381. void clear_repeated_fixed32();
  382. static const int kRepeatedFixed32FieldNumber = 37;
  383. ::google::protobuf::uint32 repeated_fixed32(int index) const;
  384. void set_repeated_fixed32(int index, ::google::protobuf::uint32 value);
  385. void add_repeated_fixed32(::google::protobuf::uint32 value);
  386. const ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >&
  387. repeated_fixed32() const;
  388. ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >*
  389. mutable_repeated_fixed32();
  390. // repeated fixed64 repeated_fixed64 = 38;
  391. int repeated_fixed64_size() const;
  392. void clear_repeated_fixed64();
  393. static const int kRepeatedFixed64FieldNumber = 38;
  394. ::google::protobuf::uint64 repeated_fixed64(int index) const;
  395. void set_repeated_fixed64(int index, ::google::protobuf::uint64 value);
  396. void add_repeated_fixed64(::google::protobuf::uint64 value);
  397. const ::google::protobuf::RepeatedField< ::google::protobuf::uint64 >&
  398. repeated_fixed64() const;
  399. ::google::protobuf::RepeatedField< ::google::protobuf::uint64 >*
  400. mutable_repeated_fixed64();
  401. // repeated sfixed32 repeated_sfixed32 = 39;
  402. int repeated_sfixed32_size() const;
  403. void clear_repeated_sfixed32();
  404. static const int kRepeatedSfixed32FieldNumber = 39;
  405. ::google::protobuf::int32 repeated_sfixed32(int index) const;
  406. void set_repeated_sfixed32(int index, ::google::protobuf::int32 value);
  407. void add_repeated_sfixed32(::google::protobuf::int32 value);
  408. const ::google::protobuf::RepeatedField< ::google::protobuf::int32 >&
  409. repeated_sfixed32() const;
  410. ::google::protobuf::RepeatedField< ::google::protobuf::int32 >*
  411. mutable_repeated_sfixed32();
  412. // repeated sfixed64 repeated_sfixed64 = 40;
  413. int repeated_sfixed64_size() const;
  414. void clear_repeated_sfixed64();
  415. static const int kRepeatedSfixed64FieldNumber = 40;
  416. ::google::protobuf::int64 repeated_sfixed64(int index) const;
  417. void set_repeated_sfixed64(int index, ::google::protobuf::int64 value);
  418. void add_repeated_sfixed64(::google::protobuf::int64 value);
  419. const ::google::protobuf::RepeatedField< ::google::protobuf::int64 >&
  420. repeated_sfixed64() const;
  421. ::google::protobuf::RepeatedField< ::google::protobuf::int64 >*
  422. mutable_repeated_sfixed64();
  423. // repeated float repeated_float = 41;
  424. int repeated_float_size() const;
  425. void clear_repeated_float();
  426. static const int kRepeatedFloatFieldNumber = 41;
  427. float repeated_float(int index) const;
  428. void set_repeated_float(int index, float value);
  429. void add_repeated_float(float value);
  430. const ::google::protobuf::RepeatedField< float >&
  431. repeated_float() const;
  432. ::google::protobuf::RepeatedField< float >*
  433. mutable_repeated_float();
  434. // repeated double repeated_double = 42;
  435. int repeated_double_size() const;
  436. void clear_repeated_double();
  437. static const int kRepeatedDoubleFieldNumber = 42;
  438. double repeated_double(int index) const;
  439. void set_repeated_double(int index, double value);
  440. void add_repeated_double(double value);
  441. const ::google::protobuf::RepeatedField< double >&
  442. repeated_double() const;
  443. ::google::protobuf::RepeatedField< double >*
  444. mutable_repeated_double();
  445. // repeated bool repeated_bool = 43;
  446. int repeated_bool_size() const;
  447. void clear_repeated_bool();
  448. static const int kRepeatedBoolFieldNumber = 43;
  449. bool repeated_bool(int index) const;
  450. void set_repeated_bool(int index, bool value);
  451. void add_repeated_bool(bool value);
  452. const ::google::protobuf::RepeatedField< bool >&
  453. repeated_bool() const;
  454. ::google::protobuf::RepeatedField< bool >*
  455. mutable_repeated_bool();
  456. // repeated string repeated_string = 44;
  457. int repeated_string_size() const;
  458. void clear_repeated_string();
  459. static const int kRepeatedStringFieldNumber = 44;
  460. const ::std::string& repeated_string(int index) const;
  461. ::std::string* mutable_repeated_string(int index);
  462. void set_repeated_string(int index, const ::std::string& value);
  463. #if LANG_CXX11
  464. void set_repeated_string(int index, ::std::string&& value);
  465. #endif
  466. void set_repeated_string(int index, const char* value);
  467. void set_repeated_string(int index, const char* value, size_t size);
  468. ::std::string* add_repeated_string();
  469. void add_repeated_string(const ::std::string& value);
  470. #if LANG_CXX11
  471. void add_repeated_string(::std::string&& value);
  472. #endif
  473. void add_repeated_string(const char* value);
  474. void add_repeated_string(const char* value, size_t size);
  475. const ::google::protobuf::RepeatedPtrField< ::std::string>& repeated_string() const;
  476. ::google::protobuf::RepeatedPtrField< ::std::string>* mutable_repeated_string();
  477. // repeated bytes repeated_bytes = 45;
  478. int repeated_bytes_size() const;
  479. void clear_repeated_bytes();
  480. static const int kRepeatedBytesFieldNumber = 45;
  481. const ::std::string& repeated_bytes(int index) const;
  482. ::std::string* mutable_repeated_bytes(int index);
  483. void set_repeated_bytes(int index, const ::std::string& value);
  484. #if LANG_CXX11
  485. void set_repeated_bytes(int index, ::std::string&& value);
  486. #endif
  487. void set_repeated_bytes(int index, const char* value);
  488. void set_repeated_bytes(int index, const void* value, size_t size);
  489. ::std::string* add_repeated_bytes();
  490. void add_repeated_bytes(const ::std::string& value);
  491. #if LANG_CXX11
  492. void add_repeated_bytes(::std::string&& value);
  493. #endif
  494. void add_repeated_bytes(const char* value);
  495. void add_repeated_bytes(const void* value, size_t size);
  496. const ::google::protobuf::RepeatedPtrField< ::std::string>& repeated_bytes() const;
  497. ::google::protobuf::RepeatedPtrField< ::std::string>* mutable_repeated_bytes();
  498. // repeated .proto3_arena_lite_unittest.TestAllTypes.NestedMessage repeated_nested_message = 48;
  499. int repeated_nested_message_size() const;
  500. void clear_repeated_nested_message();
  501. static const int kRepeatedNestedMessageFieldNumber = 48;
  502. ::proto3_arena_lite_unittest::TestAllTypes_NestedMessage* mutable_repeated_nested_message(int index);
  503. ::google::protobuf::RepeatedPtrField< ::proto3_arena_lite_unittest::TestAllTypes_NestedMessage >*
  504. mutable_repeated_nested_message();
  505. const ::proto3_arena_lite_unittest::TestAllTypes_NestedMessage& repeated_nested_message(int index) const;
  506. ::proto3_arena_lite_unittest::TestAllTypes_NestedMessage* add_repeated_nested_message();
  507. const ::google::protobuf::RepeatedPtrField< ::proto3_arena_lite_unittest::TestAllTypes_NestedMessage >&
  508. repeated_nested_message() const;
  509. // repeated .proto3_arena_lite_unittest.ForeignMessage repeated_foreign_message = 49;
  510. int repeated_foreign_message_size() const;
  511. void clear_repeated_foreign_message();
  512. static const int kRepeatedForeignMessageFieldNumber = 49;
  513. ::proto3_arena_lite_unittest::ForeignMessage* mutable_repeated_foreign_message(int index);
  514. ::google::protobuf::RepeatedPtrField< ::proto3_arena_lite_unittest::ForeignMessage >*
  515. mutable_repeated_foreign_message();
  516. const ::proto3_arena_lite_unittest::ForeignMessage& repeated_foreign_message(int index) const;
  517. ::proto3_arena_lite_unittest::ForeignMessage* add_repeated_foreign_message();
  518. const ::google::protobuf::RepeatedPtrField< ::proto3_arena_lite_unittest::ForeignMessage >&
  519. repeated_foreign_message() const;
  520. // repeated .protobuf_unittest_import.ImportMessage repeated_import_message = 50;
  521. int repeated_import_message_size() const;
  522. void clear_repeated_import_message();
  523. static const int kRepeatedImportMessageFieldNumber = 50;
  524. ::protobuf_unittest_import::ImportMessage* mutable_repeated_import_message(int index);
  525. ::google::protobuf::RepeatedPtrField< ::protobuf_unittest_import::ImportMessage >*
  526. mutable_repeated_import_message();
  527. const ::protobuf_unittest_import::ImportMessage& repeated_import_message(int index) const;
  528. ::protobuf_unittest_import::ImportMessage* add_repeated_import_message();
  529. const ::google::protobuf::RepeatedPtrField< ::protobuf_unittest_import::ImportMessage >&
  530. repeated_import_message() const;
  531. // repeated .proto3_arena_lite_unittest.TestAllTypes.NestedEnum repeated_nested_enum = 51;
  532. int repeated_nested_enum_size() const;
  533. void clear_repeated_nested_enum();
  534. static const int kRepeatedNestedEnumFieldNumber = 51;
  535. ::proto3_arena_lite_unittest::TestAllTypes_NestedEnum repeated_nested_enum(int index) const;
  536. void set_repeated_nested_enum(int index, ::proto3_arena_lite_unittest::TestAllTypes_NestedEnum value);
  537. void add_repeated_nested_enum(::proto3_arena_lite_unittest::TestAllTypes_NestedEnum value);
  538. const ::google::protobuf::RepeatedField<int>& repeated_nested_enum() const;
  539. ::google::protobuf::RepeatedField<int>* mutable_repeated_nested_enum();
  540. // repeated .proto3_arena_lite_unittest.ForeignEnum repeated_foreign_enum = 52;
  541. int repeated_foreign_enum_size() const;
  542. void clear_repeated_foreign_enum();
  543. static const int kRepeatedForeignEnumFieldNumber = 52;
  544. ::proto3_arena_lite_unittest::ForeignEnum repeated_foreign_enum(int index) const;
  545. void set_repeated_foreign_enum(int index, ::proto3_arena_lite_unittest::ForeignEnum value);
  546. void add_repeated_foreign_enum(::proto3_arena_lite_unittest::ForeignEnum value);
  547. const ::google::protobuf::RepeatedField<int>& repeated_foreign_enum() const;
  548. ::google::protobuf::RepeatedField<int>* mutable_repeated_foreign_enum();
  549. // repeated string repeated_string_piece = 54 [ctype = STRING_PIECE];
  550. int repeated_string_piece_size() const;
  551. void clear_repeated_string_piece();
  552. static const int kRepeatedStringPieceFieldNumber = 54;
  553. private:
  554. // Hidden due to unknown ctype option.
  555. const ::std::string& repeated_string_piece(int index) const;
  556. ::std::string* mutable_repeated_string_piece(int index);
  557. void set_repeated_string_piece(int index, const ::std::string& value);
  558. #if LANG_CXX11
  559. void set_repeated_string_piece(int index, ::std::string&& value);
  560. #endif
  561. void set_repeated_string_piece(int index, const char* value);
  562. void set_repeated_string_piece(int index, const char* value, size_t size);
  563. ::std::string* add_repeated_string_piece();
  564. void add_repeated_string_piece(const ::std::string& value);
  565. #if LANG_CXX11
  566. void add_repeated_string_piece(::std::string&& value);
  567. #endif
  568. void add_repeated_string_piece(const char* value);
  569. void add_repeated_string_piece(const char* value, size_t size);
  570. const ::google::protobuf::RepeatedPtrField< ::std::string>& repeated_string_piece() const;
  571. ::google::protobuf::RepeatedPtrField< ::std::string>* mutable_repeated_string_piece();
  572. public:
  573. // repeated string repeated_cord = 55 [ctype = CORD];
  574. int repeated_cord_size() const;
  575. void clear_repeated_cord();
  576. static const int kRepeatedCordFieldNumber = 55;
  577. private:
  578. // Hidden due to unknown ctype option.
  579. const ::std::string& repeated_cord(int index) const;
  580. ::std::string* mutable_repeated_cord(int index);
  581. void set_repeated_cord(int index, const ::std::string& value);
  582. #if LANG_CXX11
  583. void set_repeated_cord(int index, ::std::string&& value);
  584. #endif
  585. void set_repeated_cord(int index, const char* value);
  586. void set_repeated_cord(int index, const char* value, size_t size);
  587. ::std::string* add_repeated_cord();
  588. void add_repeated_cord(const ::std::string& value);
  589. #if LANG_CXX11
  590. void add_repeated_cord(::std::string&& value);
  591. #endif
  592. void add_repeated_cord(const char* value);
  593. void add_repeated_cord(const char* value, size_t size);
  594. const ::google::protobuf::RepeatedPtrField< ::std::string>& repeated_cord() const;
  595. ::google::protobuf::RepeatedPtrField< ::std::string>* mutable_repeated_cord();
  596. public:
  597. // repeated .proto3_arena_lite_unittest.TestAllTypes.NestedMessage repeated_lazy_message = 57 [lazy = true];
  598. int repeated_lazy_message_size() const;
  599. void clear_repeated_lazy_message();
  600. static const int kRepeatedLazyMessageFieldNumber = 57;
  601. ::proto3_arena_lite_unittest::TestAllTypes_NestedMessage* mutable_repeated_lazy_message(int index);
  602. ::google::protobuf::RepeatedPtrField< ::proto3_arena_lite_unittest::TestAllTypes_NestedMessage >*
  603. mutable_repeated_lazy_message();
  604. const ::proto3_arena_lite_unittest::TestAllTypes_NestedMessage& repeated_lazy_message(int index) const;
  605. ::proto3_arena_lite_unittest::TestAllTypes_NestedMessage* add_repeated_lazy_message();
  606. const ::google::protobuf::RepeatedPtrField< ::proto3_arena_lite_unittest::TestAllTypes_NestedMessage >&
  607. repeated_lazy_message() const;
  608. // string optional_string = 14;
  609. void clear_optional_string();
  610. static const int kOptionalStringFieldNumber = 14;
  611. const ::std::string& optional_string() const;
  612. void set_optional_string(const ::std::string& value);
  613. #if LANG_CXX11
  614. void set_optional_string(::std::string&& value);
  615. #endif
  616. void set_optional_string(const char* value);
  617. void set_optional_string(const char* value, size_t size);
  618. ::std::string* mutable_optional_string();
  619. ::std::string* release_optional_string();
  620. void set_allocated_optional_string(::std::string* optional_string);
  621. PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
  622. " string fields are deprecated and will be removed in a"
  623. " future release.")
  624. ::std::string* unsafe_arena_release_optional_string();
  625. PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
  626. " string fields are deprecated and will be removed in a"
  627. " future release.")
  628. void unsafe_arena_set_allocated_optional_string(
  629. ::std::string* optional_string);
  630. // bytes optional_bytes = 15;
  631. void clear_optional_bytes();
  632. static const int kOptionalBytesFieldNumber = 15;
  633. const ::std::string& optional_bytes() const;
  634. void set_optional_bytes(const ::std::string& value);
  635. #if LANG_CXX11
  636. void set_optional_bytes(::std::string&& value);
  637. #endif
  638. void set_optional_bytes(const char* value);
  639. void set_optional_bytes(const void* value, size_t size);
  640. ::std::string* mutable_optional_bytes();
  641. ::std::string* release_optional_bytes();
  642. void set_allocated_optional_bytes(::std::string* optional_bytes);
  643. PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
  644. " string fields are deprecated and will be removed in a"
  645. " future release.")
  646. ::std::string* unsafe_arena_release_optional_bytes();
  647. PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
  648. " string fields are deprecated and will be removed in a"
  649. " future release.")
  650. void unsafe_arena_set_allocated_optional_bytes(
  651. ::std::string* optional_bytes);
  652. // string optional_string_piece = 24 [ctype = STRING_PIECE];
  653. void clear_optional_string_piece();
  654. static const int kOptionalStringPieceFieldNumber = 24;
  655. private:
  656. // Hidden due to unknown ctype option.
  657. const ::std::string& optional_string_piece() const;
  658. void set_optional_string_piece(const ::std::string& value);
  659. #if LANG_CXX11
  660. void set_optional_string_piece(::std::string&& value);
  661. #endif
  662. void set_optional_string_piece(const char* value);
  663. void set_optional_string_piece(const char* value, size_t size);
  664. ::std::string* mutable_optional_string_piece();
  665. ::std::string* release_optional_string_piece();
  666. void set_allocated_optional_string_piece(::std::string* optional_string_piece);
  667. PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
  668. " string fields are deprecated and will be removed in a"
  669. " future release.")
  670. ::std::string* unsafe_arena_release_optional_string_piece();
  671. PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
  672. " string fields are deprecated and will be removed in a"
  673. " future release.")
  674. void unsafe_arena_set_allocated_optional_string_piece(
  675. ::std::string* optional_string_piece);
  676. public:
  677. // string optional_cord = 25 [ctype = CORD];
  678. void clear_optional_cord();
  679. static const int kOptionalCordFieldNumber = 25;
  680. private:
  681. // Hidden due to unknown ctype option.
  682. const ::std::string& optional_cord() const;
  683. void set_optional_cord(const ::std::string& value);
  684. #if LANG_CXX11
  685. void set_optional_cord(::std::string&& value);
  686. #endif
  687. void set_optional_cord(const char* value);
  688. void set_optional_cord(const char* value, size_t size);
  689. ::std::string* mutable_optional_cord();
  690. ::std::string* release_optional_cord();
  691. void set_allocated_optional_cord(::std::string* optional_cord);
  692. PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
  693. " string fields are deprecated and will be removed in a"
  694. " future release.")
  695. ::std::string* unsafe_arena_release_optional_cord();
  696. PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
  697. " string fields are deprecated and will be removed in a"
  698. " future release.")
  699. void unsafe_arena_set_allocated_optional_cord(
  700. ::std::string* optional_cord);
  701. public:
  702. // .proto3_arena_lite_unittest.TestAllTypes.NestedMessage optional_nested_message = 18;
  703. bool has_optional_nested_message() const;
  704. void clear_optional_nested_message();
  705. static const int kOptionalNestedMessageFieldNumber = 18;
  706. private:
  707. const ::proto3_arena_lite_unittest::TestAllTypes_NestedMessage& _internal_optional_nested_message() const;
  708. public:
  709. const ::proto3_arena_lite_unittest::TestAllTypes_NestedMessage& optional_nested_message() const;
  710. ::proto3_arena_lite_unittest::TestAllTypes_NestedMessage* release_optional_nested_message();
  711. ::proto3_arena_lite_unittest::TestAllTypes_NestedMessage* mutable_optional_nested_message();
  712. void set_allocated_optional_nested_message(::proto3_arena_lite_unittest::TestAllTypes_NestedMessage* optional_nested_message);
  713. void unsafe_arena_set_allocated_optional_nested_message(
  714. ::proto3_arena_lite_unittest::TestAllTypes_NestedMessage* optional_nested_message);
  715. ::proto3_arena_lite_unittest::TestAllTypes_NestedMessage* unsafe_arena_release_optional_nested_message();
  716. // .proto3_arena_lite_unittest.ForeignMessage optional_foreign_message = 19;
  717. bool has_optional_foreign_message() const;
  718. void clear_optional_foreign_message();
  719. static const int kOptionalForeignMessageFieldNumber = 19;
  720. private:
  721. const ::proto3_arena_lite_unittest::ForeignMessage& _internal_optional_foreign_message() const;
  722. public:
  723. const ::proto3_arena_lite_unittest::ForeignMessage& optional_foreign_message() const;
  724. ::proto3_arena_lite_unittest::ForeignMessage* release_optional_foreign_message();
  725. ::proto3_arena_lite_unittest::ForeignMessage* mutable_optional_foreign_message();
  726. void set_allocated_optional_foreign_message(::proto3_arena_lite_unittest::ForeignMessage* optional_foreign_message);
  727. void unsafe_arena_set_allocated_optional_foreign_message(
  728. ::proto3_arena_lite_unittest::ForeignMessage* optional_foreign_message);
  729. ::proto3_arena_lite_unittest::ForeignMessage* unsafe_arena_release_optional_foreign_message();
  730. // .protobuf_unittest_import.ImportMessage optional_import_message = 20;
  731. bool has_optional_import_message() const;
  732. void clear_optional_import_message();
  733. static const int kOptionalImportMessageFieldNumber = 20;
  734. private:
  735. const ::protobuf_unittest_import::ImportMessage& _internal_optional_import_message() const;
  736. public:
  737. const ::protobuf_unittest_import::ImportMessage& optional_import_message() const;
  738. ::protobuf_unittest_import::ImportMessage* release_optional_import_message();
  739. ::protobuf_unittest_import::ImportMessage* mutable_optional_import_message();
  740. void set_allocated_optional_import_message(::protobuf_unittest_import::ImportMessage* optional_import_message);
  741. void unsafe_arena_set_allocated_optional_import_message(
  742. ::protobuf_unittest_import::ImportMessage* optional_import_message);
  743. ::protobuf_unittest_import::ImportMessage* unsafe_arena_release_optional_import_message();
  744. // .protobuf_unittest_import.PublicImportMessage optional_public_import_message = 26;
  745. bool has_optional_public_import_message() const;
  746. void clear_optional_public_import_message();
  747. static const int kOptionalPublicImportMessageFieldNumber = 26;
  748. private:
  749. const ::protobuf_unittest_import::PublicImportMessage& _internal_optional_public_import_message() const;
  750. public:
  751. const ::protobuf_unittest_import::PublicImportMessage& optional_public_import_message() const;
  752. ::protobuf_unittest_import::PublicImportMessage* release_optional_public_import_message();
  753. ::protobuf_unittest_import::PublicImportMessage* mutable_optional_public_import_message();
  754. void set_allocated_optional_public_import_message(::protobuf_unittest_import::PublicImportMessage* optional_public_import_message);
  755. void unsafe_arena_set_allocated_optional_public_import_message(
  756. ::protobuf_unittest_import::PublicImportMessage* optional_public_import_message);
  757. ::protobuf_unittest_import::PublicImportMessage* unsafe_arena_release_optional_public_import_message();
  758. // .proto3_arena_lite_unittest.TestAllTypes.NestedMessage optional_lazy_message = 27 [lazy = true];
  759. bool has_optional_lazy_message() const;
  760. void clear_optional_lazy_message();
  761. static const int kOptionalLazyMessageFieldNumber = 27;
  762. private:
  763. const ::proto3_arena_lite_unittest::TestAllTypes_NestedMessage& _internal_optional_lazy_message() const;
  764. public:
  765. const ::proto3_arena_lite_unittest::TestAllTypes_NestedMessage& optional_lazy_message() const;
  766. ::proto3_arena_lite_unittest::TestAllTypes_NestedMessage* release_optional_lazy_message();
  767. ::proto3_arena_lite_unittest::TestAllTypes_NestedMessage* mutable_optional_lazy_message();
  768. void set_allocated_optional_lazy_message(::proto3_arena_lite_unittest::TestAllTypes_NestedMessage* optional_lazy_message);
  769. void unsafe_arena_set_allocated_optional_lazy_message(
  770. ::proto3_arena_lite_unittest::TestAllTypes_NestedMessage* optional_lazy_message);
  771. ::proto3_arena_lite_unittest::TestAllTypes_NestedMessage* unsafe_arena_release_optional_lazy_message();
  772. // int64 optional_int64 = 2;
  773. void clear_optional_int64();
  774. static const int kOptionalInt64FieldNumber = 2;
  775. ::google::protobuf::int64 optional_int64() const;
  776. void set_optional_int64(::google::protobuf::int64 value);
  777. // int32 optional_int32 = 1;
  778. void clear_optional_int32();
  779. static const int kOptionalInt32FieldNumber = 1;
  780. ::google::protobuf::int32 optional_int32() const;
  781. void set_optional_int32(::google::protobuf::int32 value);
  782. // uint32 optional_uint32 = 3;
  783. void clear_optional_uint32();
  784. static const int kOptionalUint32FieldNumber = 3;
  785. ::google::protobuf::uint32 optional_uint32() const;
  786. void set_optional_uint32(::google::protobuf::uint32 value);
  787. // uint64 optional_uint64 = 4;
  788. void clear_optional_uint64();
  789. static const int kOptionalUint64FieldNumber = 4;
  790. ::google::protobuf::uint64 optional_uint64() const;
  791. void set_optional_uint64(::google::protobuf::uint64 value);
  792. // sint64 optional_sint64 = 6;
  793. void clear_optional_sint64();
  794. static const int kOptionalSint64FieldNumber = 6;
  795. ::google::protobuf::int64 optional_sint64() const;
  796. void set_optional_sint64(::google::protobuf::int64 value);
  797. // sint32 optional_sint32 = 5;
  798. void clear_optional_sint32();
  799. static const int kOptionalSint32FieldNumber = 5;
  800. ::google::protobuf::int32 optional_sint32() const;
  801. void set_optional_sint32(::google::protobuf::int32 value);
  802. // fixed32 optional_fixed32 = 7;
  803. void clear_optional_fixed32();
  804. static const int kOptionalFixed32FieldNumber = 7;
  805. ::google::protobuf::uint32 optional_fixed32() const;
  806. void set_optional_fixed32(::google::protobuf::uint32 value);
  807. // fixed64 optional_fixed64 = 8;
  808. void clear_optional_fixed64();
  809. static const int kOptionalFixed64FieldNumber = 8;
  810. ::google::protobuf::uint64 optional_fixed64() const;
  811. void set_optional_fixed64(::google::protobuf::uint64 value);
  812. // sfixed64 optional_sfixed64 = 10;
  813. void clear_optional_sfixed64();
  814. static const int kOptionalSfixed64FieldNumber = 10;
  815. ::google::protobuf::int64 optional_sfixed64() const;
  816. void set_optional_sfixed64(::google::protobuf::int64 value);
  817. // sfixed32 optional_sfixed32 = 9;
  818. void clear_optional_sfixed32();
  819. static const int kOptionalSfixed32FieldNumber = 9;
  820. ::google::protobuf::int32 optional_sfixed32() const;
  821. void set_optional_sfixed32(::google::protobuf::int32 value);
  822. // float optional_float = 11;
  823. void clear_optional_float();
  824. static const int kOptionalFloatFieldNumber = 11;
  825. float optional_float() const;
  826. void set_optional_float(float value);
  827. // double optional_double = 12;
  828. void clear_optional_double();
  829. static const int kOptionalDoubleFieldNumber = 12;
  830. double optional_double() const;
  831. void set_optional_double(double value);
  832. // bool optional_bool = 13;
  833. void clear_optional_bool();
  834. static const int kOptionalBoolFieldNumber = 13;
  835. bool optional_bool() const;
  836. void set_optional_bool(bool value);
  837. // .proto3_arena_lite_unittest.TestAllTypes.NestedEnum optional_nested_enum = 21;
  838. void clear_optional_nested_enum();
  839. static const int kOptionalNestedEnumFieldNumber = 21;
  840. ::proto3_arena_lite_unittest::TestAllTypes_NestedEnum optional_nested_enum() const;
  841. void set_optional_nested_enum(::proto3_arena_lite_unittest::TestAllTypes_NestedEnum value);
  842. // .proto3_arena_lite_unittest.ForeignEnum optional_foreign_enum = 22;
  843. void clear_optional_foreign_enum();
  844. static const int kOptionalForeignEnumFieldNumber = 22;
  845. ::proto3_arena_lite_unittest::ForeignEnum optional_foreign_enum() const;
  846. void set_optional_foreign_enum(::proto3_arena_lite_unittest::ForeignEnum value);
  847. // uint32 oneof_uint32 = 111;
  848. private:
  849. bool has_oneof_uint32() const;
  850. public:
  851. void clear_oneof_uint32();
  852. static const int kOneofUint32FieldNumber = 111;
  853. ::google::protobuf::uint32 oneof_uint32() const;
  854. void set_oneof_uint32(::google::protobuf::uint32 value);
  855. // .proto3_arena_lite_unittest.TestAllTypes.NestedMessage oneof_nested_message = 112;
  856. bool has_oneof_nested_message() const;
  857. void clear_oneof_nested_message();
  858. static const int kOneofNestedMessageFieldNumber = 112;
  859. private:
  860. const ::proto3_arena_lite_unittest::TestAllTypes_NestedMessage& _internal_oneof_nested_message() const;
  861. public:
  862. const ::proto3_arena_lite_unittest::TestAllTypes_NestedMessage& oneof_nested_message() const;
  863. ::proto3_arena_lite_unittest::TestAllTypes_NestedMessage* release_oneof_nested_message();
  864. ::proto3_arena_lite_unittest::TestAllTypes_NestedMessage* mutable_oneof_nested_message();
  865. void set_allocated_oneof_nested_message(::proto3_arena_lite_unittest::TestAllTypes_NestedMessage* oneof_nested_message);
  866. void unsafe_arena_set_allocated_oneof_nested_message(
  867. ::proto3_arena_lite_unittest::TestAllTypes_NestedMessage* oneof_nested_message);
  868. ::proto3_arena_lite_unittest::TestAllTypes_NestedMessage* unsafe_arena_release_oneof_nested_message();
  869. // string oneof_string = 113;
  870. private:
  871. bool has_oneof_string() const;
  872. public:
  873. void clear_oneof_string();
  874. static const int kOneofStringFieldNumber = 113;
  875. const ::std::string& oneof_string() const;
  876. void set_oneof_string(const ::std::string& value);
  877. #if LANG_CXX11
  878. void set_oneof_string(::std::string&& value);
  879. #endif
  880. void set_oneof_string(const char* value);
  881. void set_oneof_string(const char* value, size_t size);
  882. ::std::string* mutable_oneof_string();
  883. ::std::string* release_oneof_string();
  884. void set_allocated_oneof_string(::std::string* oneof_string);
  885. PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
  886. " string fields are deprecated and will be removed in a"
  887. " future release.")
  888. ::std::string* unsafe_arena_release_oneof_string();
  889. PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
  890. " string fields are deprecated and will be removed in a"
  891. " future release.")
  892. void unsafe_arena_set_allocated_oneof_string(
  893. ::std::string* oneof_string);
  894. // bytes oneof_bytes = 114;
  895. private:
  896. bool has_oneof_bytes() const;
  897. public:
  898. void clear_oneof_bytes();
  899. static const int kOneofBytesFieldNumber = 114;
  900. const ::std::string& oneof_bytes() const;
  901. void set_oneof_bytes(const ::std::string& value);
  902. #if LANG_CXX11
  903. void set_oneof_bytes(::std::string&& value);
  904. #endif
  905. void set_oneof_bytes(const char* value);
  906. void set_oneof_bytes(const void* value, size_t size);
  907. ::std::string* mutable_oneof_bytes();
  908. ::std::string* release_oneof_bytes();
  909. void set_allocated_oneof_bytes(::std::string* oneof_bytes);
  910. PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
  911. " string fields are deprecated and will be removed in a"
  912. " future release.")
  913. ::std::string* unsafe_arena_release_oneof_bytes();
  914. PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
  915. " string fields are deprecated and will be removed in a"
  916. " future release.")
  917. void unsafe_arena_set_allocated_oneof_bytes(
  918. ::std::string* oneof_bytes);
  919. void clear_oneof_field();
  920. OneofFieldCase oneof_field_case() const;
  921. // @@protoc_insertion_point(class_scope:proto3_arena_lite_unittest.TestAllTypes)
  922. private:
  923. void set_has_oneof_uint32();
  924. void set_has_oneof_nested_message();
  925. void set_has_oneof_string();
  926. void set_has_oneof_bytes();
  927. inline bool has_oneof_field() const;
  928. inline void clear_has_oneof_field();
  929. ::google::protobuf::internal::InternalMetadataWithArenaLite _internal_metadata_;
  930. template <typename T> friend class ::google::protobuf::Arena::InternalHelper;
  931. typedef void InternalArenaConstructable_;
  932. typedef void DestructorSkippable_;
  933. ::google::protobuf::RepeatedField< ::google::protobuf::int32 > repeated_int32_;
  934. mutable int _repeated_int32_cached_byte_size_;
  935. ::google::protobuf::RepeatedField< ::google::protobuf::int64 > repeated_int64_;
  936. mutable int _repeated_int64_cached_byte_size_;
  937. ::google::protobuf::RepeatedField< ::google::protobuf::uint32 > repeated_uint32_;
  938. mutable int _repeated_uint32_cached_byte_size_;
  939. ::google::protobuf::RepeatedField< ::google::protobuf::uint64 > repeated_uint64_;
  940. mutable int _repeated_uint64_cached_byte_size_;
  941. ::google::protobuf::RepeatedField< ::google::protobuf::int32 > repeated_sint32_;
  942. mutable int _repeated_sint32_cached_byte_size_;
  943. ::google::protobuf::RepeatedField< ::google::protobuf::int64 > repeated_sint64_;
  944. mutable int _repeated_sint64_cached_byte_size_;
  945. ::google::protobuf::RepeatedField< ::google::protobuf::uint32 > repeated_fixed32_;
  946. mutable int _repeated_fixed32_cached_byte_size_;
  947. ::google::protobuf::RepeatedField< ::google::protobuf::uint64 > repeated_fixed64_;
  948. mutable int _repeated_fixed64_cached_byte_size_;
  949. ::google::protobuf::RepeatedField< ::google::protobuf::int32 > repeated_sfixed32_;
  950. mutable int _repeated_sfixed32_cached_byte_size_;
  951. ::google::protobuf::RepeatedField< ::google::protobuf::int64 > repeated_sfixed64_;
  952. mutable int _repeated_sfixed64_cached_byte_size_;
  953. ::google::protobuf::RepeatedField< float > repeated_float_;
  954. mutable int _repeated_float_cached_byte_size_;
  955. ::google::protobuf::RepeatedField< double > repeated_double_;
  956. mutable int _repeated_double_cached_byte_size_;
  957. ::google::protobuf::RepeatedField< bool > repeated_bool_;
  958. mutable int _repeated_bool_cached_byte_size_;
  959. ::google::protobuf::RepeatedPtrField< ::std::string> repeated_string_;
  960. ::google::protobuf::RepeatedPtrField< ::std::string> repeated_bytes_;
  961. ::google::protobuf::RepeatedPtrField< ::proto3_arena_lite_unittest::TestAllTypes_NestedMessage > repeated_nested_message_;
  962. ::google::protobuf::RepeatedPtrField< ::proto3_arena_lite_unittest::ForeignMessage > repeated_foreign_message_;
  963. ::google::protobuf::RepeatedPtrField< ::protobuf_unittest_import::ImportMessage > repeated_import_message_;
  964. ::google::protobuf::RepeatedField<int> repeated_nested_enum_;
  965. mutable int _repeated_nested_enum_cached_byte_size_;
  966. ::google::protobuf::RepeatedField<int> repeated_foreign_enum_;
  967. mutable int _repeated_foreign_enum_cached_byte_size_;
  968. ::google::protobuf::RepeatedPtrField< ::std::string> repeated_string_piece_;
  969. ::google::protobuf::RepeatedPtrField< ::std::string> repeated_cord_;
  970. ::google::protobuf::RepeatedPtrField< ::proto3_arena_lite_unittest::TestAllTypes_NestedMessage > repeated_lazy_message_;
  971. ::google::protobuf::internal::ArenaStringPtr optional_string_;
  972. ::google::protobuf::internal::ArenaStringPtr optional_bytes_;
  973. ::google::protobuf::internal::ArenaStringPtr optional_string_piece_;
  974. ::google::protobuf::internal::ArenaStringPtr optional_cord_;
  975. ::proto3_arena_lite_unittest::TestAllTypes_NestedMessage* optional_nested_message_;
  976. ::proto3_arena_lite_unittest::ForeignMessage* optional_foreign_message_;
  977. ::protobuf_unittest_import::ImportMessage* optional_import_message_;
  978. ::protobuf_unittest_import::PublicImportMessage* optional_public_import_message_;
  979. ::proto3_arena_lite_unittest::TestAllTypes_NestedMessage* optional_lazy_message_;
  980. ::google::protobuf::int64 optional_int64_;
  981. ::google::protobuf::int32 optional_int32_;
  982. ::google::protobuf::uint32 optional_uint32_;
  983. ::google::protobuf::uint64 optional_uint64_;
  984. ::google::protobuf::int64 optional_sint64_;
  985. ::google::protobuf::int32 optional_sint32_;
  986. ::google::protobuf::uint32 optional_fixed32_;
  987. ::google::protobuf::uint64 optional_fixed64_;
  988. ::google::protobuf::int64 optional_sfixed64_;
  989. ::google::protobuf::int32 optional_sfixed32_;
  990. float optional_float_;
  991. double optional_double_;
  992. bool optional_bool_;
  993. int optional_nested_enum_;
  994. int optional_foreign_enum_;
  995. union OneofFieldUnion {
  996. OneofFieldUnion() {}
  997. ::google::protobuf::uint32 oneof_uint32_;
  998. ::proto3_arena_lite_unittest::TestAllTypes_NestedMessage* oneof_nested_message_;
  999. ::google::protobuf::internal::ArenaStringPtr oneof_string_;
  1000. ::google::protobuf::internal::ArenaStringPtr oneof_bytes_;
  1001. } oneof_field_;
  1002. mutable ::google::protobuf::internal::CachedSize _cached_size_;
  1003. ::google::protobuf::uint32 _oneof_case_[1];
  1004. friend struct ::protobuf_google_2fprotobuf_2funittest_5fproto3_5farena_5flite_2eproto::TableStruct;
  1005. };
  1006. // -------------------------------------------------------------------
  1007. class TestPackedTypes : public ::google::protobuf::MessageLite /* @@protoc_insertion_point(class_definition:proto3_arena_lite_unittest.TestPackedTypes) */ {
  1008. public:
  1009. TestPackedTypes();
  1010. virtual ~TestPackedTypes();
  1011. TestPackedTypes(const TestPackedTypes& from);
  1012. inline TestPackedTypes& operator=(const TestPackedTypes& from) {
  1013. CopyFrom(from);
  1014. return *this;
  1015. }
  1016. #if LANG_CXX11
  1017. TestPackedTypes(TestPackedTypes&& from) noexcept
  1018. : TestPackedTypes() {
  1019. *this = ::std::move(from);
  1020. }
  1021. inline TestPackedTypes& operator=(TestPackedTypes&& from) noexcept {
  1022. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  1023. if (this != &from) InternalSwap(&from);
  1024. } else {
  1025. CopyFrom(from);
  1026. }
  1027. return *this;
  1028. }
  1029. #endif
  1030. inline ::google::protobuf::Arena* GetArena() const final {
  1031. return GetArenaNoVirtual();
  1032. }
  1033. inline void* GetMaybeArenaPointer() const final {
  1034. return MaybeArenaPtr();
  1035. }
  1036. static const TestPackedTypes& default_instance();
  1037. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  1038. static inline const TestPackedTypes* internal_default_instance() {
  1039. return reinterpret_cast<const TestPackedTypes*>(
  1040. &_TestPackedTypes_default_instance_);
  1041. }
  1042. static constexpr int kIndexInFileMessages =
  1043. 2;
  1044. void UnsafeArenaSwap(TestPackedTypes* other);
  1045. void Swap(TestPackedTypes* other);
  1046. friend void swap(TestPackedTypes& a, TestPackedTypes& b) {
  1047. a.Swap(&b);
  1048. }
  1049. // implements Message ----------------------------------------------
  1050. inline TestPackedTypes* New() const final {
  1051. return CreateMaybeMessage<TestPackedTypes>(NULL);
  1052. }
  1053. TestPackedTypes* New(::google::protobuf::Arena* arena) const final {
  1054. return CreateMaybeMessage<TestPackedTypes>(arena);
  1055. }
  1056. void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from)
  1057. final;
  1058. void CopyFrom(const TestPackedTypes& from);
  1059. void MergeFrom(const TestPackedTypes& from);
  1060. void Clear() final;
  1061. bool IsInitialized() const final;
  1062. size_t ByteSizeLong() const final;
  1063. bool MergePartialFromCodedStream(
  1064. ::google::protobuf::io::CodedInputStream* input) final;
  1065. void SerializeWithCachedSizes(
  1066. ::google::protobuf::io::CodedOutputStream* output) const final;
  1067. void DiscardUnknownFields();
  1068. int GetCachedSize() const final { return _cached_size_.Get(); }
  1069. private:
  1070. void SharedCtor();
  1071. void SharedDtor();
  1072. void SetCachedSize(int size) const;
  1073. void InternalSwap(TestPackedTypes* other);
  1074. protected:
  1075. explicit TestPackedTypes(::google::protobuf::Arena* arena);
  1076. private:
  1077. static void ArenaDtor(void* object);
  1078. inline void RegisterArenaDtor(::google::protobuf::Arena* arena);
  1079. private:
  1080. inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
  1081. return _internal_metadata_.arena();
  1082. }
  1083. inline void* MaybeArenaPtr() const {
  1084. return _internal_metadata_.raw_arena_ptr();
  1085. }
  1086. public:
  1087. ::std::string GetTypeName() const final;
  1088. // nested types ----------------------------------------------------
  1089. // accessors -------------------------------------------------------
  1090. // repeated int32 packed_int32 = 90 [packed = true];
  1091. int packed_int32_size() const;
  1092. void clear_packed_int32();
  1093. static const int kPackedInt32FieldNumber = 90;
  1094. ::google::protobuf::int32 packed_int32(int index) const;
  1095. void set_packed_int32(int index, ::google::protobuf::int32 value);
  1096. void add_packed_int32(::google::protobuf::int32 value);
  1097. const ::google::protobuf::RepeatedField< ::google::protobuf::int32 >&
  1098. packed_int32() const;
  1099. ::google::protobuf::RepeatedField< ::google::protobuf::int32 >*
  1100. mutable_packed_int32();
  1101. // repeated int64 packed_int64 = 91 [packed = true];
  1102. int packed_int64_size() const;
  1103. void clear_packed_int64();
  1104. static const int kPackedInt64FieldNumber = 91;
  1105. ::google::protobuf::int64 packed_int64(int index) const;
  1106. void set_packed_int64(int index, ::google::protobuf::int64 value);
  1107. void add_packed_int64(::google::protobuf::int64 value);
  1108. const ::google::protobuf::RepeatedField< ::google::protobuf::int64 >&
  1109. packed_int64() const;
  1110. ::google::protobuf::RepeatedField< ::google::protobuf::int64 >*
  1111. mutable_packed_int64();
  1112. // repeated uint32 packed_uint32 = 92 [packed = true];
  1113. int packed_uint32_size() const;
  1114. void clear_packed_uint32();
  1115. static const int kPackedUint32FieldNumber = 92;
  1116. ::google::protobuf::uint32 packed_uint32(int index) const;
  1117. void set_packed_uint32(int index, ::google::protobuf::uint32 value);
  1118. void add_packed_uint32(::google::protobuf::uint32 value);
  1119. const ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >&
  1120. packed_uint32() const;
  1121. ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >*
  1122. mutable_packed_uint32();
  1123. // repeated uint64 packed_uint64 = 93 [packed = true];
  1124. int packed_uint64_size() const;
  1125. void clear_packed_uint64();
  1126. static const int kPackedUint64FieldNumber = 93;
  1127. ::google::protobuf::uint64 packed_uint64(int index) const;
  1128. void set_packed_uint64(int index, ::google::protobuf::uint64 value);
  1129. void add_packed_uint64(::google::protobuf::uint64 value);
  1130. const ::google::protobuf::RepeatedField< ::google::protobuf::uint64 >&
  1131. packed_uint64() const;
  1132. ::google::protobuf::RepeatedField< ::google::protobuf::uint64 >*
  1133. mutable_packed_uint64();
  1134. // repeated sint32 packed_sint32 = 94 [packed = true];
  1135. int packed_sint32_size() const;
  1136. void clear_packed_sint32();
  1137. static const int kPackedSint32FieldNumber = 94;
  1138. ::google::protobuf::int32 packed_sint32(int index) const;
  1139. void set_packed_sint32(int index, ::google::protobuf::int32 value);
  1140. void add_packed_sint32(::google::protobuf::int32 value);
  1141. const ::google::protobuf::RepeatedField< ::google::protobuf::int32 >&
  1142. packed_sint32() const;
  1143. ::google::protobuf::RepeatedField< ::google::protobuf::int32 >*
  1144. mutable_packed_sint32();
  1145. // repeated sint64 packed_sint64 = 95 [packed = true];
  1146. int packed_sint64_size() const;
  1147. void clear_packed_sint64();
  1148. static const int kPackedSint64FieldNumber = 95;
  1149. ::google::protobuf::int64 packed_sint64(int index) const;
  1150. void set_packed_sint64(int index, ::google::protobuf::int64 value);
  1151. void add_packed_sint64(::google::protobuf::int64 value);
  1152. const ::google::protobuf::RepeatedField< ::google::protobuf::int64 >&
  1153. packed_sint64() const;
  1154. ::google::protobuf::RepeatedField< ::google::protobuf::int64 >*
  1155. mutable_packed_sint64();
  1156. // repeated fixed32 packed_fixed32 = 96 [packed = true];
  1157. int packed_fixed32_size() const;
  1158. void clear_packed_fixed32();
  1159. static const int kPackedFixed32FieldNumber = 96;
  1160. ::google::protobuf::uint32 packed_fixed32(int index) const;
  1161. void set_packed_fixed32(int index, ::google::protobuf::uint32 value);
  1162. void add_packed_fixed32(::google::protobuf::uint32 value);
  1163. const ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >&
  1164. packed_fixed32() const;
  1165. ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >*
  1166. mutable_packed_fixed32();
  1167. // repeated fixed64 packed_fixed64 = 97 [packed = true];
  1168. int packed_fixed64_size() const;
  1169. void clear_packed_fixed64();
  1170. static const int kPackedFixed64FieldNumber = 97;
  1171. ::google::protobuf::uint64 packed_fixed64(int index) const;
  1172. void set_packed_fixed64(int index, ::google::protobuf::uint64 value);
  1173. void add_packed_fixed64(::google::protobuf::uint64 value);
  1174. const ::google::protobuf::RepeatedField< ::google::protobuf::uint64 >&
  1175. packed_fixed64() const;
  1176. ::google::protobuf::RepeatedField< ::google::protobuf::uint64 >*
  1177. mutable_packed_fixed64();
  1178. // repeated sfixed32 packed_sfixed32 = 98 [packed = true];
  1179. int packed_sfixed32_size() const;
  1180. void clear_packed_sfixed32();
  1181. static const int kPackedSfixed32FieldNumber = 98;
  1182. ::google::protobuf::int32 packed_sfixed32(int index) const;
  1183. void set_packed_sfixed32(int index, ::google::protobuf::int32 value);
  1184. void add_packed_sfixed32(::google::protobuf::int32 value);
  1185. const ::google::protobuf::RepeatedField< ::google::protobuf::int32 >&
  1186. packed_sfixed32() const;
  1187. ::google::protobuf::RepeatedField< ::google::protobuf::int32 >*
  1188. mutable_packed_sfixed32();
  1189. // repeated sfixed64 packed_sfixed64 = 99 [packed = true];
  1190. int packed_sfixed64_size() const;
  1191. void clear_packed_sfixed64();
  1192. static const int kPackedSfixed64FieldNumber = 99;
  1193. ::google::protobuf::int64 packed_sfixed64(int index) const;
  1194. void set_packed_sfixed64(int index, ::google::protobuf::int64 value);
  1195. void add_packed_sfixed64(::google::protobuf::int64 value);
  1196. const ::google::protobuf::RepeatedField< ::google::protobuf::int64 >&
  1197. packed_sfixed64() const;
  1198. ::google::protobuf::RepeatedField< ::google::protobuf::int64 >*
  1199. mutable_packed_sfixed64();
  1200. // repeated float packed_float = 100 [packed = true];
  1201. int packed_float_size() const;
  1202. void clear_packed_float();
  1203. static const int kPackedFloatFieldNumber = 100;
  1204. float packed_float(int index) const;
  1205. void set_packed_float(int index, float value);
  1206. void add_packed_float(float value);
  1207. const ::google::protobuf::RepeatedField< float >&
  1208. packed_float() const;
  1209. ::google::protobuf::RepeatedField< float >*
  1210. mutable_packed_float();
  1211. // repeated double packed_double = 101 [packed = true];
  1212. int packed_double_size() const;
  1213. void clear_packed_double();
  1214. static const int kPackedDoubleFieldNumber = 101;
  1215. double packed_double(int index) const;
  1216. void set_packed_double(int index, double value);
  1217. void add_packed_double(double value);
  1218. const ::google::protobuf::RepeatedField< double >&
  1219. packed_double() const;
  1220. ::google::protobuf::RepeatedField< double >*
  1221. mutable_packed_double();
  1222. // repeated bool packed_bool = 102 [packed = true];
  1223. int packed_bool_size() const;
  1224. void clear_packed_bool();
  1225. static const int kPackedBoolFieldNumber = 102;
  1226. bool packed_bool(int index) const;
  1227. void set_packed_bool(int index, bool value);
  1228. void add_packed_bool(bool value);
  1229. const ::google::protobuf::RepeatedField< bool >&
  1230. packed_bool() const;
  1231. ::google::protobuf::RepeatedField< bool >*
  1232. mutable_packed_bool();
  1233. // repeated .proto3_arena_lite_unittest.ForeignEnum packed_enum = 103 [packed = true];
  1234. int packed_enum_size() const;
  1235. void clear_packed_enum();
  1236. static const int kPackedEnumFieldNumber = 103;
  1237. ::proto3_arena_lite_unittest::ForeignEnum packed_enum(int index) const;
  1238. void set_packed_enum(int index, ::proto3_arena_lite_unittest::ForeignEnum value);
  1239. void add_packed_enum(::proto3_arena_lite_unittest::ForeignEnum value);
  1240. const ::google::protobuf::RepeatedField<int>& packed_enum() const;
  1241. ::google::protobuf::RepeatedField<int>* mutable_packed_enum();
  1242. // @@protoc_insertion_point(class_scope:proto3_arena_lite_unittest.TestPackedTypes)
  1243. private:
  1244. ::google::protobuf::internal::InternalMetadataWithArenaLite _internal_metadata_;
  1245. template <typename T> friend class ::google::protobuf::Arena::InternalHelper;
  1246. typedef void InternalArenaConstructable_;
  1247. typedef void DestructorSkippable_;
  1248. ::google::protobuf::RepeatedField< ::google::protobuf::int32 > packed_int32_;
  1249. mutable int _packed_int32_cached_byte_size_;
  1250. ::google::protobuf::RepeatedField< ::google::protobuf::int64 > packed_int64_;
  1251. mutable int _packed_int64_cached_byte_size_;
  1252. ::google::protobuf::RepeatedField< ::google::protobuf::uint32 > packed_uint32_;
  1253. mutable int _packed_uint32_cached_byte_size_;
  1254. ::google::protobuf::RepeatedField< ::google::protobuf::uint64 > packed_uint64_;
  1255. mutable int _packed_uint64_cached_byte_size_;
  1256. ::google::protobuf::RepeatedField< ::google::protobuf::int32 > packed_sint32_;
  1257. mutable int _packed_sint32_cached_byte_size_;
  1258. ::google::protobuf::RepeatedField< ::google::protobuf::int64 > packed_sint64_;
  1259. mutable int _packed_sint64_cached_byte_size_;
  1260. ::google::protobuf::RepeatedField< ::google::protobuf::uint32 > packed_fixed32_;
  1261. mutable int _packed_fixed32_cached_byte_size_;
  1262. ::google::protobuf::RepeatedField< ::google::protobuf::uint64 > packed_fixed64_;
  1263. mutable int _packed_fixed64_cached_byte_size_;
  1264. ::google::protobuf::RepeatedField< ::google::protobuf::int32 > packed_sfixed32_;
  1265. mutable int _packed_sfixed32_cached_byte_size_;
  1266. ::google::protobuf::RepeatedField< ::google::protobuf::int64 > packed_sfixed64_;
  1267. mutable int _packed_sfixed64_cached_byte_size_;
  1268. ::google::protobuf::RepeatedField< float > packed_float_;
  1269. mutable int _packed_float_cached_byte_size_;
  1270. ::google::protobuf::RepeatedField< double > packed_double_;
  1271. mutable int _packed_double_cached_byte_size_;
  1272. ::google::protobuf::RepeatedField< bool > packed_bool_;
  1273. mutable int _packed_bool_cached_byte_size_;
  1274. ::google::protobuf::RepeatedField<int> packed_enum_;
  1275. mutable int _packed_enum_cached_byte_size_;
  1276. mutable ::google::protobuf::internal::CachedSize _cached_size_;
  1277. friend struct ::protobuf_google_2fprotobuf_2funittest_5fproto3_5farena_5flite_2eproto::TableStruct;
  1278. };
  1279. // -------------------------------------------------------------------
  1280. class TestUnpackedTypes : public ::google::protobuf::MessageLite /* @@protoc_insertion_point(class_definition:proto3_arena_lite_unittest.TestUnpackedTypes) */ {
  1281. public:
  1282. TestUnpackedTypes();
  1283. virtual ~TestUnpackedTypes();
  1284. TestUnpackedTypes(const TestUnpackedTypes& from);
  1285. inline TestUnpackedTypes& operator=(const TestUnpackedTypes& from) {
  1286. CopyFrom(from);
  1287. return *this;
  1288. }
  1289. #if LANG_CXX11
  1290. TestUnpackedTypes(TestUnpackedTypes&& from) noexcept
  1291. : TestUnpackedTypes() {
  1292. *this = ::std::move(from);
  1293. }
  1294. inline TestUnpackedTypes& operator=(TestUnpackedTypes&& from) noexcept {
  1295. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  1296. if (this != &from) InternalSwap(&from);
  1297. } else {
  1298. CopyFrom(from);
  1299. }
  1300. return *this;
  1301. }
  1302. #endif
  1303. inline ::google::protobuf::Arena* GetArena() const final {
  1304. return GetArenaNoVirtual();
  1305. }
  1306. inline void* GetMaybeArenaPointer() const final {
  1307. return MaybeArenaPtr();
  1308. }
  1309. static const TestUnpackedTypes& default_instance();
  1310. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  1311. static inline const TestUnpackedTypes* internal_default_instance() {
  1312. return reinterpret_cast<const TestUnpackedTypes*>(
  1313. &_TestUnpackedTypes_default_instance_);
  1314. }
  1315. static constexpr int kIndexInFileMessages =
  1316. 3;
  1317. void UnsafeArenaSwap(TestUnpackedTypes* other);
  1318. void Swap(TestUnpackedTypes* other);
  1319. friend void swap(TestUnpackedTypes& a, TestUnpackedTypes& b) {
  1320. a.Swap(&b);
  1321. }
  1322. // implements Message ----------------------------------------------
  1323. inline TestUnpackedTypes* New() const final {
  1324. return CreateMaybeMessage<TestUnpackedTypes>(NULL);
  1325. }
  1326. TestUnpackedTypes* New(::google::protobuf::Arena* arena) const final {
  1327. return CreateMaybeMessage<TestUnpackedTypes>(arena);
  1328. }
  1329. void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from)
  1330. final;
  1331. void CopyFrom(const TestUnpackedTypes& from);
  1332. void MergeFrom(const TestUnpackedTypes& from);
  1333. void Clear() final;
  1334. bool IsInitialized() const final;
  1335. size_t ByteSizeLong() const final;
  1336. bool MergePartialFromCodedStream(
  1337. ::google::protobuf::io::CodedInputStream* input) final;
  1338. void SerializeWithCachedSizes(
  1339. ::google::protobuf::io::CodedOutputStream* output) const final;
  1340. void DiscardUnknownFields();
  1341. int GetCachedSize() const final { return _cached_size_.Get(); }
  1342. private:
  1343. void SharedCtor();
  1344. void SharedDtor();
  1345. void SetCachedSize(int size) const;
  1346. void InternalSwap(TestUnpackedTypes* other);
  1347. protected:
  1348. explicit TestUnpackedTypes(::google::protobuf::Arena* arena);
  1349. private:
  1350. static void ArenaDtor(void* object);
  1351. inline void RegisterArenaDtor(::google::protobuf::Arena* arena);
  1352. private:
  1353. inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
  1354. return _internal_metadata_.arena();
  1355. }
  1356. inline void* MaybeArenaPtr() const {
  1357. return _internal_metadata_.raw_arena_ptr();
  1358. }
  1359. public:
  1360. ::std::string GetTypeName() const final;
  1361. // nested types ----------------------------------------------------
  1362. // accessors -------------------------------------------------------
  1363. // repeated int32 repeated_int32 = 1 [packed = false];
  1364. int repeated_int32_size() const;
  1365. void clear_repeated_int32();
  1366. static const int kRepeatedInt32FieldNumber = 1;
  1367. ::google::protobuf::int32 repeated_int32(int index) const;
  1368. void set_repeated_int32(int index, ::google::protobuf::int32 value);
  1369. void add_repeated_int32(::google::protobuf::int32 value);
  1370. const ::google::protobuf::RepeatedField< ::google::protobuf::int32 >&
  1371. repeated_int32() const;
  1372. ::google::protobuf::RepeatedField< ::google::protobuf::int32 >*
  1373. mutable_repeated_int32();
  1374. // repeated int64 repeated_int64 = 2 [packed = false];
  1375. int repeated_int64_size() const;
  1376. void clear_repeated_int64();
  1377. static const int kRepeatedInt64FieldNumber = 2;
  1378. ::google::protobuf::int64 repeated_int64(int index) const;
  1379. void set_repeated_int64(int index, ::google::protobuf::int64 value);
  1380. void add_repeated_int64(::google::protobuf::int64 value);
  1381. const ::google::protobuf::RepeatedField< ::google::protobuf::int64 >&
  1382. repeated_int64() const;
  1383. ::google::protobuf::RepeatedField< ::google::protobuf::int64 >*
  1384. mutable_repeated_int64();
  1385. // repeated uint32 repeated_uint32 = 3 [packed = false];
  1386. int repeated_uint32_size() const;
  1387. void clear_repeated_uint32();
  1388. static const int kRepeatedUint32FieldNumber = 3;
  1389. ::google::protobuf::uint32 repeated_uint32(int index) const;
  1390. void set_repeated_uint32(int index, ::google::protobuf::uint32 value);
  1391. void add_repeated_uint32(::google::protobuf::uint32 value);
  1392. const ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >&
  1393. repeated_uint32() const;
  1394. ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >*
  1395. mutable_repeated_uint32();
  1396. // repeated uint64 repeated_uint64 = 4 [packed = false];
  1397. int repeated_uint64_size() const;
  1398. void clear_repeated_uint64();
  1399. static const int kRepeatedUint64FieldNumber = 4;
  1400. ::google::protobuf::uint64 repeated_uint64(int index) const;
  1401. void set_repeated_uint64(int index, ::google::protobuf::uint64 value);
  1402. void add_repeated_uint64(::google::protobuf::uint64 value);
  1403. const ::google::protobuf::RepeatedField< ::google::protobuf::uint64 >&
  1404. repeated_uint64() const;
  1405. ::google::protobuf::RepeatedField< ::google::protobuf::uint64 >*
  1406. mutable_repeated_uint64();
  1407. // repeated sint32 repeated_sint32 = 5 [packed = false];
  1408. int repeated_sint32_size() const;
  1409. void clear_repeated_sint32();
  1410. static const int kRepeatedSint32FieldNumber = 5;
  1411. ::google::protobuf::int32 repeated_sint32(int index) const;
  1412. void set_repeated_sint32(int index, ::google::protobuf::int32 value);
  1413. void add_repeated_sint32(::google::protobuf::int32 value);
  1414. const ::google::protobuf::RepeatedField< ::google::protobuf::int32 >&
  1415. repeated_sint32() const;
  1416. ::google::protobuf::RepeatedField< ::google::protobuf::int32 >*
  1417. mutable_repeated_sint32();
  1418. // repeated sint64 repeated_sint64 = 6 [packed = false];
  1419. int repeated_sint64_size() const;
  1420. void clear_repeated_sint64();
  1421. static const int kRepeatedSint64FieldNumber = 6;
  1422. ::google::protobuf::int64 repeated_sint64(int index) const;
  1423. void set_repeated_sint64(int index, ::google::protobuf::int64 value);
  1424. void add_repeated_sint64(::google::protobuf::int64 value);
  1425. const ::google::protobuf::RepeatedField< ::google::protobuf::int64 >&
  1426. repeated_sint64() const;
  1427. ::google::protobuf::RepeatedField< ::google::protobuf::int64 >*
  1428. mutable_repeated_sint64();
  1429. // repeated fixed32 repeated_fixed32 = 7 [packed = false];
  1430. int repeated_fixed32_size() const;
  1431. void clear_repeated_fixed32();
  1432. static const int kRepeatedFixed32FieldNumber = 7;
  1433. ::google::protobuf::uint32 repeated_fixed32(int index) const;
  1434. void set_repeated_fixed32(int index, ::google::protobuf::uint32 value);
  1435. void add_repeated_fixed32(::google::protobuf::uint32 value);
  1436. const ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >&
  1437. repeated_fixed32() const;
  1438. ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >*
  1439. mutable_repeated_fixed32();
  1440. // repeated fixed64 repeated_fixed64 = 8 [packed = false];
  1441. int repeated_fixed64_size() const;
  1442. void clear_repeated_fixed64();
  1443. static const int kRepeatedFixed64FieldNumber = 8;
  1444. ::google::protobuf::uint64 repeated_fixed64(int index) const;
  1445. void set_repeated_fixed64(int index, ::google::protobuf::uint64 value);
  1446. void add_repeated_fixed64(::google::protobuf::uint64 value);
  1447. const ::google::protobuf::RepeatedField< ::google::protobuf::uint64 >&
  1448. repeated_fixed64() const;
  1449. ::google::protobuf::RepeatedField< ::google::protobuf::uint64 >*
  1450. mutable_repeated_fixed64();
  1451. // repeated sfixed32 repeated_sfixed32 = 9 [packed = false];
  1452. int repeated_sfixed32_size() const;
  1453. void clear_repeated_sfixed32();
  1454. static const int kRepeatedSfixed32FieldNumber = 9;
  1455. ::google::protobuf::int32 repeated_sfixed32(int index) const;
  1456. void set_repeated_sfixed32(int index, ::google::protobuf::int32 value);
  1457. void add_repeated_sfixed32(::google::protobuf::int32 value);
  1458. const ::google::protobuf::RepeatedField< ::google::protobuf::int32 >&
  1459. repeated_sfixed32() const;
  1460. ::google::protobuf::RepeatedField< ::google::protobuf::int32 >*
  1461. mutable_repeated_sfixed32();
  1462. // repeated sfixed64 repeated_sfixed64 = 10 [packed = false];
  1463. int repeated_sfixed64_size() const;
  1464. void clear_repeated_sfixed64();
  1465. static const int kRepeatedSfixed64FieldNumber = 10;
  1466. ::google::protobuf::int64 repeated_sfixed64(int index) const;
  1467. void set_repeated_sfixed64(int index, ::google::protobuf::int64 value);
  1468. void add_repeated_sfixed64(::google::protobuf::int64 value);
  1469. const ::google::protobuf::RepeatedField< ::google::protobuf::int64 >&
  1470. repeated_sfixed64() const;
  1471. ::google::protobuf::RepeatedField< ::google::protobuf::int64 >*
  1472. mutable_repeated_sfixed64();
  1473. // repeated float repeated_float = 11 [packed = false];
  1474. int repeated_float_size() const;
  1475. void clear_repeated_float();
  1476. static const int kRepeatedFloatFieldNumber = 11;
  1477. float repeated_float(int index) const;
  1478. void set_repeated_float(int index, float value);
  1479. void add_repeated_float(float value);
  1480. const ::google::protobuf::RepeatedField< float >&
  1481. repeated_float() const;
  1482. ::google::protobuf::RepeatedField< float >*
  1483. mutable_repeated_float();
  1484. // repeated double repeated_double = 12 [packed = false];
  1485. int repeated_double_size() const;
  1486. void clear_repeated_double();
  1487. static const int kRepeatedDoubleFieldNumber = 12;
  1488. double repeated_double(int index) const;
  1489. void set_repeated_double(int index, double value);
  1490. void add_repeated_double(double value);
  1491. const ::google::protobuf::RepeatedField< double >&
  1492. repeated_double() const;
  1493. ::google::protobuf::RepeatedField< double >*
  1494. mutable_repeated_double();
  1495. // repeated bool repeated_bool = 13 [packed = false];
  1496. int repeated_bool_size() const;
  1497. void clear_repeated_bool();
  1498. static const int kRepeatedBoolFieldNumber = 13;
  1499. bool repeated_bool(int index) const;
  1500. void set_repeated_bool(int index, bool value);
  1501. void add_repeated_bool(bool value);
  1502. const ::google::protobuf::RepeatedField< bool >&
  1503. repeated_bool() const;
  1504. ::google::protobuf::RepeatedField< bool >*
  1505. mutable_repeated_bool();
  1506. // repeated .proto3_arena_lite_unittest.TestAllTypes.NestedEnum repeated_nested_enum = 14 [packed = false];
  1507. int repeated_nested_enum_size() const;
  1508. void clear_repeated_nested_enum();
  1509. static const int kRepeatedNestedEnumFieldNumber = 14;
  1510. ::proto3_arena_lite_unittest::TestAllTypes_NestedEnum repeated_nested_enum(int index) const;
  1511. void set_repeated_nested_enum(int index, ::proto3_arena_lite_unittest::TestAllTypes_NestedEnum value);
  1512. void add_repeated_nested_enum(::proto3_arena_lite_unittest::TestAllTypes_NestedEnum value);
  1513. const ::google::protobuf::RepeatedField<int>& repeated_nested_enum() const;
  1514. ::google::protobuf::RepeatedField<int>* mutable_repeated_nested_enum();
  1515. // @@protoc_insertion_point(class_scope:proto3_arena_lite_unittest.TestUnpackedTypes)
  1516. private:
  1517. ::google::protobuf::internal::InternalMetadataWithArenaLite _internal_metadata_;
  1518. template <typename T> friend class ::google::protobuf::Arena::InternalHelper;
  1519. typedef void InternalArenaConstructable_;
  1520. typedef void DestructorSkippable_;
  1521. ::google::protobuf::RepeatedField< ::google::protobuf::int32 > repeated_int32_;
  1522. ::google::protobuf::RepeatedField< ::google::protobuf::int64 > repeated_int64_;
  1523. ::google::protobuf::RepeatedField< ::google::protobuf::uint32 > repeated_uint32_;
  1524. ::google::protobuf::RepeatedField< ::google::protobuf::uint64 > repeated_uint64_;
  1525. ::google::protobuf::RepeatedField< ::google::protobuf::int32 > repeated_sint32_;
  1526. ::google::protobuf::RepeatedField< ::google::protobuf::int64 > repeated_sint64_;
  1527. ::google::protobuf::RepeatedField< ::google::protobuf::uint32 > repeated_fixed32_;
  1528. ::google::protobuf::RepeatedField< ::google::protobuf::uint64 > repeated_fixed64_;
  1529. ::google::protobuf::RepeatedField< ::google::protobuf::int32 > repeated_sfixed32_;
  1530. ::google::protobuf::RepeatedField< ::google::protobuf::int64 > repeated_sfixed64_;
  1531. ::google::protobuf::RepeatedField< float > repeated_float_;
  1532. ::google::protobuf::RepeatedField< double > repeated_double_;
  1533. ::google::protobuf::RepeatedField< bool > repeated_bool_;
  1534. ::google::protobuf::RepeatedField<int> repeated_nested_enum_;
  1535. mutable ::google::protobuf::internal::CachedSize _cached_size_;
  1536. friend struct ::protobuf_google_2fprotobuf_2funittest_5fproto3_5farena_5flite_2eproto::TableStruct;
  1537. };
  1538. // -------------------------------------------------------------------
  1539. class NestedTestAllTypes : public ::google::protobuf::MessageLite /* @@protoc_insertion_point(class_definition:proto3_arena_lite_unittest.NestedTestAllTypes) */ {
  1540. public:
  1541. NestedTestAllTypes();
  1542. virtual ~NestedTestAllTypes();
  1543. NestedTestAllTypes(const NestedTestAllTypes& from);
  1544. inline NestedTestAllTypes& operator=(const NestedTestAllTypes& from) {
  1545. CopyFrom(from);
  1546. return *this;
  1547. }
  1548. #if LANG_CXX11
  1549. NestedTestAllTypes(NestedTestAllTypes&& from) noexcept
  1550. : NestedTestAllTypes() {
  1551. *this = ::std::move(from);
  1552. }
  1553. inline NestedTestAllTypes& operator=(NestedTestAllTypes&& from) noexcept {
  1554. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  1555. if (this != &from) InternalSwap(&from);
  1556. } else {
  1557. CopyFrom(from);
  1558. }
  1559. return *this;
  1560. }
  1561. #endif
  1562. inline ::google::protobuf::Arena* GetArena() const final {
  1563. return GetArenaNoVirtual();
  1564. }
  1565. inline void* GetMaybeArenaPointer() const final {
  1566. return MaybeArenaPtr();
  1567. }
  1568. static const NestedTestAllTypes& default_instance();
  1569. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  1570. static inline const NestedTestAllTypes* internal_default_instance() {
  1571. return reinterpret_cast<const NestedTestAllTypes*>(
  1572. &_NestedTestAllTypes_default_instance_);
  1573. }
  1574. static constexpr int kIndexInFileMessages =
  1575. 4;
  1576. void UnsafeArenaSwap(NestedTestAllTypes* other);
  1577. void Swap(NestedTestAllTypes* other);
  1578. friend void swap(NestedTestAllTypes& a, NestedTestAllTypes& b) {
  1579. a.Swap(&b);
  1580. }
  1581. // implements Message ----------------------------------------------
  1582. inline NestedTestAllTypes* New() const final {
  1583. return CreateMaybeMessage<NestedTestAllTypes>(NULL);
  1584. }
  1585. NestedTestAllTypes* New(::google::protobuf::Arena* arena) const final {
  1586. return CreateMaybeMessage<NestedTestAllTypes>(arena);
  1587. }
  1588. void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from)
  1589. final;
  1590. void CopyFrom(const NestedTestAllTypes& from);
  1591. void MergeFrom(const NestedTestAllTypes& from);
  1592. void Clear() final;
  1593. bool IsInitialized() const final;
  1594. size_t ByteSizeLong() const final;
  1595. bool MergePartialFromCodedStream(
  1596. ::google::protobuf::io::CodedInputStream* input) final;
  1597. void SerializeWithCachedSizes(
  1598. ::google::protobuf::io::CodedOutputStream* output) const final;
  1599. void DiscardUnknownFields();
  1600. int GetCachedSize() const final { return _cached_size_.Get(); }
  1601. private:
  1602. void SharedCtor();
  1603. void SharedDtor();
  1604. void SetCachedSize(int size) const;
  1605. void InternalSwap(NestedTestAllTypes* other);
  1606. protected:
  1607. explicit NestedTestAllTypes(::google::protobuf::Arena* arena);
  1608. private:
  1609. static void ArenaDtor(void* object);
  1610. inline void RegisterArenaDtor(::google::protobuf::Arena* arena);
  1611. private:
  1612. inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
  1613. return _internal_metadata_.arena();
  1614. }
  1615. inline void* MaybeArenaPtr() const {
  1616. return _internal_metadata_.raw_arena_ptr();
  1617. }
  1618. public:
  1619. ::std::string GetTypeName() const final;
  1620. // nested types ----------------------------------------------------
  1621. // accessors -------------------------------------------------------
  1622. // .proto3_arena_lite_unittest.NestedTestAllTypes child = 1;
  1623. bool has_child() const;
  1624. void clear_child();
  1625. static const int kChildFieldNumber = 1;
  1626. private:
  1627. const ::proto3_arena_lite_unittest::NestedTestAllTypes& _internal_child() const;
  1628. public:
  1629. const ::proto3_arena_lite_unittest::NestedTestAllTypes& child() const;
  1630. ::proto3_arena_lite_unittest::NestedTestAllTypes* release_child();
  1631. ::proto3_arena_lite_unittest::NestedTestAllTypes* mutable_child();
  1632. void set_allocated_child(::proto3_arena_lite_unittest::NestedTestAllTypes* child);
  1633. void unsafe_arena_set_allocated_child(
  1634. ::proto3_arena_lite_unittest::NestedTestAllTypes* child);
  1635. ::proto3_arena_lite_unittest::NestedTestAllTypes* unsafe_arena_release_child();
  1636. // .proto3_arena_lite_unittest.TestAllTypes payload = 2;
  1637. bool has_payload() const;
  1638. void clear_payload();
  1639. static const int kPayloadFieldNumber = 2;
  1640. private:
  1641. const ::proto3_arena_lite_unittest::TestAllTypes& _internal_payload() const;
  1642. public:
  1643. const ::proto3_arena_lite_unittest::TestAllTypes& payload() const;
  1644. ::proto3_arena_lite_unittest::TestAllTypes* release_payload();
  1645. ::proto3_arena_lite_unittest::TestAllTypes* mutable_payload();
  1646. void set_allocated_payload(::proto3_arena_lite_unittest::TestAllTypes* payload);
  1647. void unsafe_arena_set_allocated_payload(
  1648. ::proto3_arena_lite_unittest::TestAllTypes* payload);
  1649. ::proto3_arena_lite_unittest::TestAllTypes* unsafe_arena_release_payload();
  1650. // @@protoc_insertion_point(class_scope:proto3_arena_lite_unittest.NestedTestAllTypes)
  1651. private:
  1652. ::google::protobuf::internal::InternalMetadataWithArenaLite _internal_metadata_;
  1653. template <typename T> friend class ::google::protobuf::Arena::InternalHelper;
  1654. typedef void InternalArenaConstructable_;
  1655. typedef void DestructorSkippable_;
  1656. ::proto3_arena_lite_unittest::NestedTestAllTypes* child_;
  1657. ::proto3_arena_lite_unittest::TestAllTypes* payload_;
  1658. mutable ::google::protobuf::internal::CachedSize _cached_size_;
  1659. friend struct ::protobuf_google_2fprotobuf_2funittest_5fproto3_5farena_5flite_2eproto::TableStruct;
  1660. };
  1661. // -------------------------------------------------------------------
  1662. class ForeignMessage : public ::google::protobuf::MessageLite /* @@protoc_insertion_point(class_definition:proto3_arena_lite_unittest.ForeignMessage) */ {
  1663. public:
  1664. ForeignMessage();
  1665. virtual ~ForeignMessage();
  1666. ForeignMessage(const ForeignMessage& from);
  1667. inline ForeignMessage& operator=(const ForeignMessage& from) {
  1668. CopyFrom(from);
  1669. return *this;
  1670. }
  1671. #if LANG_CXX11
  1672. ForeignMessage(ForeignMessage&& from) noexcept
  1673. : ForeignMessage() {
  1674. *this = ::std::move(from);
  1675. }
  1676. inline ForeignMessage& operator=(ForeignMessage&& from) noexcept {
  1677. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  1678. if (this != &from) InternalSwap(&from);
  1679. } else {
  1680. CopyFrom(from);
  1681. }
  1682. return *this;
  1683. }
  1684. #endif
  1685. inline ::google::protobuf::Arena* GetArena() const final {
  1686. return GetArenaNoVirtual();
  1687. }
  1688. inline void* GetMaybeArenaPointer() const final {
  1689. return MaybeArenaPtr();
  1690. }
  1691. static const ForeignMessage& default_instance();
  1692. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  1693. static inline const ForeignMessage* internal_default_instance() {
  1694. return reinterpret_cast<const ForeignMessage*>(
  1695. &_ForeignMessage_default_instance_);
  1696. }
  1697. static constexpr int kIndexInFileMessages =
  1698. 5;
  1699. void UnsafeArenaSwap(ForeignMessage* other);
  1700. void Swap(ForeignMessage* other);
  1701. friend void swap(ForeignMessage& a, ForeignMessage& b) {
  1702. a.Swap(&b);
  1703. }
  1704. // implements Message ----------------------------------------------
  1705. inline ForeignMessage* New() const final {
  1706. return CreateMaybeMessage<ForeignMessage>(NULL);
  1707. }
  1708. ForeignMessage* New(::google::protobuf::Arena* arena) const final {
  1709. return CreateMaybeMessage<ForeignMessage>(arena);
  1710. }
  1711. void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from)
  1712. final;
  1713. void CopyFrom(const ForeignMessage& from);
  1714. void MergeFrom(const ForeignMessage& from);
  1715. void Clear() final;
  1716. bool IsInitialized() const final;
  1717. size_t ByteSizeLong() const final;
  1718. bool MergePartialFromCodedStream(
  1719. ::google::protobuf::io::CodedInputStream* input) final;
  1720. void SerializeWithCachedSizes(
  1721. ::google::protobuf::io::CodedOutputStream* output) const final;
  1722. void DiscardUnknownFields();
  1723. int GetCachedSize() const final { return _cached_size_.Get(); }
  1724. private:
  1725. void SharedCtor();
  1726. void SharedDtor();
  1727. void SetCachedSize(int size) const;
  1728. void InternalSwap(ForeignMessage* other);
  1729. protected:
  1730. explicit ForeignMessage(::google::protobuf::Arena* arena);
  1731. private:
  1732. static void ArenaDtor(void* object);
  1733. inline void RegisterArenaDtor(::google::protobuf::Arena* arena);
  1734. private:
  1735. inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
  1736. return _internal_metadata_.arena();
  1737. }
  1738. inline void* MaybeArenaPtr() const {
  1739. return _internal_metadata_.raw_arena_ptr();
  1740. }
  1741. public:
  1742. ::std::string GetTypeName() const final;
  1743. // nested types ----------------------------------------------------
  1744. // accessors -------------------------------------------------------
  1745. // int32 c = 1;
  1746. void clear_c();
  1747. static const int kCFieldNumber = 1;
  1748. ::google::protobuf::int32 c() const;
  1749. void set_c(::google::protobuf::int32 value);
  1750. // @@protoc_insertion_point(class_scope:proto3_arena_lite_unittest.ForeignMessage)
  1751. private:
  1752. ::google::protobuf::internal::InternalMetadataWithArenaLite _internal_metadata_;
  1753. template <typename T> friend class ::google::protobuf::Arena::InternalHelper;
  1754. typedef void InternalArenaConstructable_;
  1755. typedef void DestructorSkippable_;
  1756. ::google::protobuf::int32 c_;
  1757. mutable ::google::protobuf::internal::CachedSize _cached_size_;
  1758. friend struct ::protobuf_google_2fprotobuf_2funittest_5fproto3_5farena_5flite_2eproto::TableStruct;
  1759. };
  1760. // -------------------------------------------------------------------
  1761. class TestEmptyMessage : public ::google::protobuf::MessageLite /* @@protoc_insertion_point(class_definition:proto3_arena_lite_unittest.TestEmptyMessage) */ {
  1762. public:
  1763. TestEmptyMessage();
  1764. virtual ~TestEmptyMessage();
  1765. TestEmptyMessage(const TestEmptyMessage& from);
  1766. inline TestEmptyMessage& operator=(const TestEmptyMessage& from) {
  1767. CopyFrom(from);
  1768. return *this;
  1769. }
  1770. #if LANG_CXX11
  1771. TestEmptyMessage(TestEmptyMessage&& from) noexcept
  1772. : TestEmptyMessage() {
  1773. *this = ::std::move(from);
  1774. }
  1775. inline TestEmptyMessage& operator=(TestEmptyMessage&& from) noexcept {
  1776. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  1777. if (this != &from) InternalSwap(&from);
  1778. } else {
  1779. CopyFrom(from);
  1780. }
  1781. return *this;
  1782. }
  1783. #endif
  1784. inline ::google::protobuf::Arena* GetArena() const final {
  1785. return GetArenaNoVirtual();
  1786. }
  1787. inline void* GetMaybeArenaPointer() const final {
  1788. return MaybeArenaPtr();
  1789. }
  1790. static const TestEmptyMessage& default_instance();
  1791. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  1792. static inline const TestEmptyMessage* internal_default_instance() {
  1793. return reinterpret_cast<const TestEmptyMessage*>(
  1794. &_TestEmptyMessage_default_instance_);
  1795. }
  1796. static constexpr int kIndexInFileMessages =
  1797. 6;
  1798. void UnsafeArenaSwap(TestEmptyMessage* other);
  1799. void Swap(TestEmptyMessage* other);
  1800. friend void swap(TestEmptyMessage& a, TestEmptyMessage& b) {
  1801. a.Swap(&b);
  1802. }
  1803. // implements Message ----------------------------------------------
  1804. inline TestEmptyMessage* New() const final {
  1805. return CreateMaybeMessage<TestEmptyMessage>(NULL);
  1806. }
  1807. TestEmptyMessage* New(::google::protobuf::Arena* arena) const final {
  1808. return CreateMaybeMessage<TestEmptyMessage>(arena);
  1809. }
  1810. void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from)
  1811. final;
  1812. void CopyFrom(const TestEmptyMessage& from);
  1813. void MergeFrom(const TestEmptyMessage& from);
  1814. void Clear() final;
  1815. bool IsInitialized() const final;
  1816. size_t ByteSizeLong() const final;
  1817. bool MergePartialFromCodedStream(
  1818. ::google::protobuf::io::CodedInputStream* input) final;
  1819. void SerializeWithCachedSizes(
  1820. ::google::protobuf::io::CodedOutputStream* output) const final;
  1821. void DiscardUnknownFields();
  1822. int GetCachedSize() const final { return _cached_size_.Get(); }
  1823. private:
  1824. void SharedCtor();
  1825. void SharedDtor();
  1826. void SetCachedSize(int size) const;
  1827. void InternalSwap(TestEmptyMessage* other);
  1828. protected:
  1829. explicit TestEmptyMessage(::google::protobuf::Arena* arena);
  1830. private:
  1831. static void ArenaDtor(void* object);
  1832. inline void RegisterArenaDtor(::google::protobuf::Arena* arena);
  1833. private:
  1834. inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
  1835. return _internal_metadata_.arena();
  1836. }
  1837. inline void* MaybeArenaPtr() const {
  1838. return _internal_metadata_.raw_arena_ptr();
  1839. }
  1840. public:
  1841. ::std::string GetTypeName() const final;
  1842. // nested types ----------------------------------------------------
  1843. // accessors -------------------------------------------------------
  1844. // @@protoc_insertion_point(class_scope:proto3_arena_lite_unittest.TestEmptyMessage)
  1845. private:
  1846. ::google::protobuf::internal::InternalMetadataWithArenaLite _internal_metadata_;
  1847. template <typename T> friend class ::google::protobuf::Arena::InternalHelper;
  1848. typedef void InternalArenaConstructable_;
  1849. typedef void DestructorSkippable_;
  1850. mutable ::google::protobuf::internal::CachedSize _cached_size_;
  1851. friend struct ::protobuf_google_2fprotobuf_2funittest_5fproto3_5farena_5flite_2eproto::TableStruct;
  1852. };
  1853. // ===================================================================
  1854. // ===================================================================
  1855. #ifdef __GNUC__
  1856. #pragma GCC diagnostic push
  1857. #pragma GCC diagnostic ignored "-Wstrict-aliasing"
  1858. #endif // __GNUC__
  1859. // TestAllTypes_NestedMessage
  1860. // int32 bb = 1;
  1861. inline void TestAllTypes_NestedMessage::clear_bb() {
  1862. bb_ = 0;
  1863. }
  1864. inline ::google::protobuf::int32 TestAllTypes_NestedMessage::bb() const {
  1865. // @@protoc_insertion_point(field_get:proto3_arena_lite_unittest.TestAllTypes.NestedMessage.bb)
  1866. return bb_;
  1867. }
  1868. inline void TestAllTypes_NestedMessage::set_bb(::google::protobuf::int32 value) {
  1869. bb_ = value;
  1870. // @@protoc_insertion_point(field_set:proto3_arena_lite_unittest.TestAllTypes.NestedMessage.bb)
  1871. }
  1872. // -------------------------------------------------------------------
  1873. // TestAllTypes
  1874. // int32 optional_int32 = 1;
  1875. inline void TestAllTypes::clear_optional_int32() {
  1876. optional_int32_ = 0;
  1877. }
  1878. inline ::google::protobuf::int32 TestAllTypes::optional_int32() const {
  1879. // @@protoc_insertion_point(field_get:proto3_arena_lite_unittest.TestAllTypes.optional_int32)
  1880. return optional_int32_;
  1881. }
  1882. inline void TestAllTypes::set_optional_int32(::google::protobuf::int32 value) {
  1883. optional_int32_ = value;
  1884. // @@protoc_insertion_point(field_set:proto3_arena_lite_unittest.TestAllTypes.optional_int32)
  1885. }
  1886. // int64 optional_int64 = 2;
  1887. inline void TestAllTypes::clear_optional_int64() {
  1888. optional_int64_ = GOOGLE_LONGLONG(0);
  1889. }
  1890. inline ::google::protobuf::int64 TestAllTypes::optional_int64() const {
  1891. // @@protoc_insertion_point(field_get:proto3_arena_lite_unittest.TestAllTypes.optional_int64)
  1892. return optional_int64_;
  1893. }
  1894. inline void TestAllTypes::set_optional_int64(::google::protobuf::int64 value) {
  1895. optional_int64_ = value;
  1896. // @@protoc_insertion_point(field_set:proto3_arena_lite_unittest.TestAllTypes.optional_int64)
  1897. }
  1898. // uint32 optional_uint32 = 3;
  1899. inline void TestAllTypes::clear_optional_uint32() {
  1900. optional_uint32_ = 0u;
  1901. }
  1902. inline ::google::protobuf::uint32 TestAllTypes::optional_uint32() const {
  1903. // @@protoc_insertion_point(field_get:proto3_arena_lite_unittest.TestAllTypes.optional_uint32)
  1904. return optional_uint32_;
  1905. }
  1906. inline void TestAllTypes::set_optional_uint32(::google::protobuf::uint32 value) {
  1907. optional_uint32_ = value;
  1908. // @@protoc_insertion_point(field_set:proto3_arena_lite_unittest.TestAllTypes.optional_uint32)
  1909. }
  1910. // uint64 optional_uint64 = 4;
  1911. inline void TestAllTypes::clear_optional_uint64() {
  1912. optional_uint64_ = GOOGLE_ULONGLONG(0);
  1913. }
  1914. inline ::google::protobuf::uint64 TestAllTypes::optional_uint64() const {
  1915. // @@protoc_insertion_point(field_get:proto3_arena_lite_unittest.TestAllTypes.optional_uint64)
  1916. return optional_uint64_;
  1917. }
  1918. inline void TestAllTypes::set_optional_uint64(::google::protobuf::uint64 value) {
  1919. optional_uint64_ = value;
  1920. // @@protoc_insertion_point(field_set:proto3_arena_lite_unittest.TestAllTypes.optional_uint64)
  1921. }
  1922. // sint32 optional_sint32 = 5;
  1923. inline void TestAllTypes::clear_optional_sint32() {
  1924. optional_sint32_ = 0;
  1925. }
  1926. inline ::google::protobuf::int32 TestAllTypes::optional_sint32() const {
  1927. // @@protoc_insertion_point(field_get:proto3_arena_lite_unittest.TestAllTypes.optional_sint32)
  1928. return optional_sint32_;
  1929. }
  1930. inline void TestAllTypes::set_optional_sint32(::google::protobuf::int32 value) {
  1931. optional_sint32_ = value;
  1932. // @@protoc_insertion_point(field_set:proto3_arena_lite_unittest.TestAllTypes.optional_sint32)
  1933. }
  1934. // sint64 optional_sint64 = 6;
  1935. inline void TestAllTypes::clear_optional_sint64() {
  1936. optional_sint64_ = GOOGLE_LONGLONG(0);
  1937. }
  1938. inline ::google::protobuf::int64 TestAllTypes::optional_sint64() const {
  1939. // @@protoc_insertion_point(field_get:proto3_arena_lite_unittest.TestAllTypes.optional_sint64)
  1940. return optional_sint64_;
  1941. }
  1942. inline void TestAllTypes::set_optional_sint64(::google::protobuf::int64 value) {
  1943. optional_sint64_ = value;
  1944. // @@protoc_insertion_point(field_set:proto3_arena_lite_unittest.TestAllTypes.optional_sint64)
  1945. }
  1946. // fixed32 optional_fixed32 = 7;
  1947. inline void TestAllTypes::clear_optional_fixed32() {
  1948. optional_fixed32_ = 0u;
  1949. }
  1950. inline ::google::protobuf::uint32 TestAllTypes::optional_fixed32() const {
  1951. // @@protoc_insertion_point(field_get:proto3_arena_lite_unittest.TestAllTypes.optional_fixed32)
  1952. return optional_fixed32_;
  1953. }
  1954. inline void TestAllTypes::set_optional_fixed32(::google::protobuf::uint32 value) {
  1955. optional_fixed32_ = value;
  1956. // @@protoc_insertion_point(field_set:proto3_arena_lite_unittest.TestAllTypes.optional_fixed32)
  1957. }
  1958. // fixed64 optional_fixed64 = 8;
  1959. inline void TestAllTypes::clear_optional_fixed64() {
  1960. optional_fixed64_ = GOOGLE_ULONGLONG(0);
  1961. }
  1962. inline ::google::protobuf::uint64 TestAllTypes::optional_fixed64() const {
  1963. // @@protoc_insertion_point(field_get:proto3_arena_lite_unittest.TestAllTypes.optional_fixed64)
  1964. return optional_fixed64_;
  1965. }
  1966. inline void TestAllTypes::set_optional_fixed64(::google::protobuf::uint64 value) {
  1967. optional_fixed64_ = value;
  1968. // @@protoc_insertion_point(field_set:proto3_arena_lite_unittest.TestAllTypes.optional_fixed64)
  1969. }
  1970. // sfixed32 optional_sfixed32 = 9;
  1971. inline void TestAllTypes::clear_optional_sfixed32() {
  1972. optional_sfixed32_ = 0;
  1973. }
  1974. inline ::google::protobuf::int32 TestAllTypes::optional_sfixed32() const {
  1975. // @@protoc_insertion_point(field_get:proto3_arena_lite_unittest.TestAllTypes.optional_sfixed32)
  1976. return optional_sfixed32_;
  1977. }
  1978. inline void TestAllTypes::set_optional_sfixed32(::google::protobuf::int32 value) {
  1979. optional_sfixed32_ = value;
  1980. // @@protoc_insertion_point(field_set:proto3_arena_lite_unittest.TestAllTypes.optional_sfixed32)
  1981. }
  1982. // sfixed64 optional_sfixed64 = 10;
  1983. inline void TestAllTypes::clear_optional_sfixed64() {
  1984. optional_sfixed64_ = GOOGLE_LONGLONG(0);
  1985. }
  1986. inline ::google::protobuf::int64 TestAllTypes::optional_sfixed64() const {
  1987. // @@protoc_insertion_point(field_get:proto3_arena_lite_unittest.TestAllTypes.optional_sfixed64)
  1988. return optional_sfixed64_;
  1989. }
  1990. inline void TestAllTypes::set_optional_sfixed64(::google::protobuf::int64 value) {
  1991. optional_sfixed64_ = value;
  1992. // @@protoc_insertion_point(field_set:proto3_arena_lite_unittest.TestAllTypes.optional_sfixed64)
  1993. }
  1994. // float optional_float = 11;
  1995. inline void TestAllTypes::clear_optional_float() {
  1996. optional_float_ = 0;
  1997. }
  1998. inline float TestAllTypes::optional_float() const {
  1999. // @@protoc_insertion_point(field_get:proto3_arena_lite_unittest.TestAllTypes.optional_float)
  2000. return optional_float_;
  2001. }
  2002. inline void TestAllTypes::set_optional_float(float value) {
  2003. optional_float_ = value;
  2004. // @@protoc_insertion_point(field_set:proto3_arena_lite_unittest.TestAllTypes.optional_float)
  2005. }
  2006. // double optional_double = 12;
  2007. inline void TestAllTypes::clear_optional_double() {
  2008. optional_double_ = 0;
  2009. }
  2010. inline double TestAllTypes::optional_double() const {
  2011. // @@protoc_insertion_point(field_get:proto3_arena_lite_unittest.TestAllTypes.optional_double)
  2012. return optional_double_;
  2013. }
  2014. inline void TestAllTypes::set_optional_double(double value) {
  2015. optional_double_ = value;
  2016. // @@protoc_insertion_point(field_set:proto3_arena_lite_unittest.TestAllTypes.optional_double)
  2017. }
  2018. // bool optional_bool = 13;
  2019. inline void TestAllTypes::clear_optional_bool() {
  2020. optional_bool_ = false;
  2021. }
  2022. inline bool TestAllTypes::optional_bool() const {
  2023. // @@protoc_insertion_point(field_get:proto3_arena_lite_unittest.TestAllTypes.optional_bool)
  2024. return optional_bool_;
  2025. }
  2026. inline void TestAllTypes::set_optional_bool(bool value) {
  2027. optional_bool_ = value;
  2028. // @@protoc_insertion_point(field_set:proto3_arena_lite_unittest.TestAllTypes.optional_bool)
  2029. }
  2030. // string optional_string = 14;
  2031. inline void TestAllTypes::clear_optional_string() {
  2032. optional_string_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
  2033. }
  2034. inline const ::std::string& TestAllTypes::optional_string() const {
  2035. // @@protoc_insertion_point(field_get:proto3_arena_lite_unittest.TestAllTypes.optional_string)
  2036. return optional_string_.Get();
  2037. }
  2038. inline void TestAllTypes::set_optional_string(const ::std::string& value) {
  2039. optional_string_.SetLite(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual());
  2040. // @@protoc_insertion_point(field_set:proto3_arena_lite_unittest.TestAllTypes.optional_string)
  2041. }
  2042. #if LANG_CXX11
  2043. inline void TestAllTypes::set_optional_string(::std::string&& value) {
  2044. optional_string_.SetLite(
  2045. &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual());
  2046. // @@protoc_insertion_point(field_set_rvalue:proto3_arena_lite_unittest.TestAllTypes.optional_string)
  2047. }
  2048. #endif
  2049. inline void TestAllTypes::set_optional_string(const char* value) {
  2050. GOOGLE_DCHECK(value != NULL);
  2051. optional_string_.SetLite(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value),
  2052. GetArenaNoVirtual());
  2053. // @@protoc_insertion_point(field_set_char:proto3_arena_lite_unittest.TestAllTypes.optional_string)
  2054. }
  2055. inline void TestAllTypes::set_optional_string(const char* value,
  2056. size_t size) {
  2057. optional_string_.SetLite(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(
  2058. reinterpret_cast<const char*>(value), size), GetArenaNoVirtual());
  2059. // @@protoc_insertion_point(field_set_pointer:proto3_arena_lite_unittest.TestAllTypes.optional_string)
  2060. }
  2061. inline ::std::string* TestAllTypes::mutable_optional_string() {
  2062. // @@protoc_insertion_point(field_mutable:proto3_arena_lite_unittest.TestAllTypes.optional_string)
  2063. return optional_string_.Mutable(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
  2064. }
  2065. inline ::std::string* TestAllTypes::release_optional_string() {
  2066. // @@protoc_insertion_point(field_release:proto3_arena_lite_unittest.TestAllTypes.optional_string)
  2067. return optional_string_.Release(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
  2068. }
  2069. inline void TestAllTypes::set_allocated_optional_string(::std::string* optional_string) {
  2070. if (optional_string != NULL) {
  2071. } else {
  2072. }
  2073. optional_string_.SetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), optional_string,
  2074. GetArenaNoVirtual());
  2075. // @@protoc_insertion_point(field_set_allocated:proto3_arena_lite_unittest.TestAllTypes.optional_string)
  2076. }
  2077. inline ::std::string* TestAllTypes::unsafe_arena_release_optional_string() {
  2078. // @@protoc_insertion_point(field_unsafe_arena_release:proto3_arena_lite_unittest.TestAllTypes.optional_string)
  2079. GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
  2080. return optional_string_.UnsafeArenaRelease(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  2081. GetArenaNoVirtual());
  2082. }
  2083. inline void TestAllTypes::unsafe_arena_set_allocated_optional_string(
  2084. ::std::string* optional_string) {
  2085. GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
  2086. if (optional_string != NULL) {
  2087. } else {
  2088. }
  2089. optional_string_.UnsafeArenaSetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  2090. optional_string, GetArenaNoVirtual());
  2091. // @@protoc_insertion_point(field_unsafe_arena_set_allocated:proto3_arena_lite_unittest.TestAllTypes.optional_string)
  2092. }
  2093. // bytes optional_bytes = 15;
  2094. inline void TestAllTypes::clear_optional_bytes() {
  2095. optional_bytes_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
  2096. }
  2097. inline const ::std::string& TestAllTypes::optional_bytes() const {
  2098. // @@protoc_insertion_point(field_get:proto3_arena_lite_unittest.TestAllTypes.optional_bytes)
  2099. return optional_bytes_.Get();
  2100. }
  2101. inline void TestAllTypes::set_optional_bytes(const ::std::string& value) {
  2102. optional_bytes_.SetLite(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual());
  2103. // @@protoc_insertion_point(field_set:proto3_arena_lite_unittest.TestAllTypes.optional_bytes)
  2104. }
  2105. #if LANG_CXX11
  2106. inline void TestAllTypes::set_optional_bytes(::std::string&& value) {
  2107. optional_bytes_.SetLite(
  2108. &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual());
  2109. // @@protoc_insertion_point(field_set_rvalue:proto3_arena_lite_unittest.TestAllTypes.optional_bytes)
  2110. }
  2111. #endif
  2112. inline void TestAllTypes::set_optional_bytes(const char* value) {
  2113. GOOGLE_DCHECK(value != NULL);
  2114. optional_bytes_.SetLite(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value),
  2115. GetArenaNoVirtual());
  2116. // @@protoc_insertion_point(field_set_char:proto3_arena_lite_unittest.TestAllTypes.optional_bytes)
  2117. }
  2118. inline void TestAllTypes::set_optional_bytes(const void* value,
  2119. size_t size) {
  2120. optional_bytes_.SetLite(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(
  2121. reinterpret_cast<const char*>(value), size), GetArenaNoVirtual());
  2122. // @@protoc_insertion_point(field_set_pointer:proto3_arena_lite_unittest.TestAllTypes.optional_bytes)
  2123. }
  2124. inline ::std::string* TestAllTypes::mutable_optional_bytes() {
  2125. // @@protoc_insertion_point(field_mutable:proto3_arena_lite_unittest.TestAllTypes.optional_bytes)
  2126. return optional_bytes_.Mutable(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
  2127. }
  2128. inline ::std::string* TestAllTypes::release_optional_bytes() {
  2129. // @@protoc_insertion_point(field_release:proto3_arena_lite_unittest.TestAllTypes.optional_bytes)
  2130. return optional_bytes_.Release(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
  2131. }
  2132. inline void TestAllTypes::set_allocated_optional_bytes(::std::string* optional_bytes) {
  2133. if (optional_bytes != NULL) {
  2134. } else {
  2135. }
  2136. optional_bytes_.SetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), optional_bytes,
  2137. GetArenaNoVirtual());
  2138. // @@protoc_insertion_point(field_set_allocated:proto3_arena_lite_unittest.TestAllTypes.optional_bytes)
  2139. }
  2140. inline ::std::string* TestAllTypes::unsafe_arena_release_optional_bytes() {
  2141. // @@protoc_insertion_point(field_unsafe_arena_release:proto3_arena_lite_unittest.TestAllTypes.optional_bytes)
  2142. GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
  2143. return optional_bytes_.UnsafeArenaRelease(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  2144. GetArenaNoVirtual());
  2145. }
  2146. inline void TestAllTypes::unsafe_arena_set_allocated_optional_bytes(
  2147. ::std::string* optional_bytes) {
  2148. GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
  2149. if (optional_bytes != NULL) {
  2150. } else {
  2151. }
  2152. optional_bytes_.UnsafeArenaSetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  2153. optional_bytes, GetArenaNoVirtual());
  2154. // @@protoc_insertion_point(field_unsafe_arena_set_allocated:proto3_arena_lite_unittest.TestAllTypes.optional_bytes)
  2155. }
  2156. // .proto3_arena_lite_unittest.TestAllTypes.NestedMessage optional_nested_message = 18;
  2157. inline bool TestAllTypes::has_optional_nested_message() const {
  2158. return this != internal_default_instance() && optional_nested_message_ != NULL;
  2159. }
  2160. inline void TestAllTypes::clear_optional_nested_message() {
  2161. if (GetArenaNoVirtual() == NULL && optional_nested_message_ != NULL) {
  2162. delete optional_nested_message_;
  2163. }
  2164. optional_nested_message_ = NULL;
  2165. }
  2166. inline const ::proto3_arena_lite_unittest::TestAllTypes_NestedMessage& TestAllTypes::_internal_optional_nested_message() const {
  2167. return *optional_nested_message_;
  2168. }
  2169. inline const ::proto3_arena_lite_unittest::TestAllTypes_NestedMessage& TestAllTypes::optional_nested_message() const {
  2170. const ::proto3_arena_lite_unittest::TestAllTypes_NestedMessage* p = optional_nested_message_;
  2171. // @@protoc_insertion_point(field_get:proto3_arena_lite_unittest.TestAllTypes.optional_nested_message)
  2172. return p != NULL ? *p : *reinterpret_cast<const ::proto3_arena_lite_unittest::TestAllTypes_NestedMessage*>(
  2173. &::proto3_arena_lite_unittest::_TestAllTypes_NestedMessage_default_instance_);
  2174. }
  2175. inline ::proto3_arena_lite_unittest::TestAllTypes_NestedMessage* TestAllTypes::release_optional_nested_message() {
  2176. // @@protoc_insertion_point(field_release:proto3_arena_lite_unittest.TestAllTypes.optional_nested_message)
  2177. ::proto3_arena_lite_unittest::TestAllTypes_NestedMessage* temp = optional_nested_message_;
  2178. if (GetArenaNoVirtual() != NULL) {
  2179. temp = ::google::protobuf::internal::DuplicateIfNonNull(temp);
  2180. }
  2181. optional_nested_message_ = NULL;
  2182. return temp;
  2183. }
  2184. inline ::proto3_arena_lite_unittest::TestAllTypes_NestedMessage* TestAllTypes::unsafe_arena_release_optional_nested_message() {
  2185. // @@protoc_insertion_point(field_unsafe_arena_release:proto3_arena_lite_unittest.TestAllTypes.optional_nested_message)
  2186. ::proto3_arena_lite_unittest::TestAllTypes_NestedMessage* temp = optional_nested_message_;
  2187. optional_nested_message_ = NULL;
  2188. return temp;
  2189. }
  2190. inline ::proto3_arena_lite_unittest::TestAllTypes_NestedMessage* TestAllTypes::mutable_optional_nested_message() {
  2191. if (optional_nested_message_ == NULL) {
  2192. auto* p = CreateMaybeMessage<::proto3_arena_lite_unittest::TestAllTypes_NestedMessage>(GetArenaNoVirtual());
  2193. optional_nested_message_ = p;
  2194. }
  2195. // @@protoc_insertion_point(field_mutable:proto3_arena_lite_unittest.TestAllTypes.optional_nested_message)
  2196. return optional_nested_message_;
  2197. }
  2198. inline void TestAllTypes::set_allocated_optional_nested_message(::proto3_arena_lite_unittest::TestAllTypes_NestedMessage* optional_nested_message) {
  2199. ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
  2200. if (message_arena == NULL) {
  2201. delete optional_nested_message_;
  2202. }
  2203. if (optional_nested_message) {
  2204. ::google::protobuf::Arena* submessage_arena =
  2205. ::google::protobuf::Arena::GetArena(optional_nested_message);
  2206. if (message_arena != submessage_arena) {
  2207. optional_nested_message = ::google::protobuf::internal::GetOwnedMessage(
  2208. message_arena, optional_nested_message, submessage_arena);
  2209. }
  2210. } else {
  2211. }
  2212. optional_nested_message_ = optional_nested_message;
  2213. // @@protoc_insertion_point(field_set_allocated:proto3_arena_lite_unittest.TestAllTypes.optional_nested_message)
  2214. }
  2215. // .proto3_arena_lite_unittest.ForeignMessage optional_foreign_message = 19;
  2216. inline bool TestAllTypes::has_optional_foreign_message() const {
  2217. return this != internal_default_instance() && optional_foreign_message_ != NULL;
  2218. }
  2219. inline void TestAllTypes::clear_optional_foreign_message() {
  2220. if (GetArenaNoVirtual() == NULL && optional_foreign_message_ != NULL) {
  2221. delete optional_foreign_message_;
  2222. }
  2223. optional_foreign_message_ = NULL;
  2224. }
  2225. inline const ::proto3_arena_lite_unittest::ForeignMessage& TestAllTypes::_internal_optional_foreign_message() const {
  2226. return *optional_foreign_message_;
  2227. }
  2228. inline const ::proto3_arena_lite_unittest::ForeignMessage& TestAllTypes::optional_foreign_message() const {
  2229. const ::proto3_arena_lite_unittest::ForeignMessage* p = optional_foreign_message_;
  2230. // @@protoc_insertion_point(field_get:proto3_arena_lite_unittest.TestAllTypes.optional_foreign_message)
  2231. return p != NULL ? *p : *reinterpret_cast<const ::proto3_arena_lite_unittest::ForeignMessage*>(
  2232. &::proto3_arena_lite_unittest::_ForeignMessage_default_instance_);
  2233. }
  2234. inline ::proto3_arena_lite_unittest::ForeignMessage* TestAllTypes::release_optional_foreign_message() {
  2235. // @@protoc_insertion_point(field_release:proto3_arena_lite_unittest.TestAllTypes.optional_foreign_message)
  2236. ::proto3_arena_lite_unittest::ForeignMessage* temp = optional_foreign_message_;
  2237. if (GetArenaNoVirtual() != NULL) {
  2238. temp = ::google::protobuf::internal::DuplicateIfNonNull(temp);
  2239. }
  2240. optional_foreign_message_ = NULL;
  2241. return temp;
  2242. }
  2243. inline ::proto3_arena_lite_unittest::ForeignMessage* TestAllTypes::unsafe_arena_release_optional_foreign_message() {
  2244. // @@protoc_insertion_point(field_unsafe_arena_release:proto3_arena_lite_unittest.TestAllTypes.optional_foreign_message)
  2245. ::proto3_arena_lite_unittest::ForeignMessage* temp = optional_foreign_message_;
  2246. optional_foreign_message_ = NULL;
  2247. return temp;
  2248. }
  2249. inline ::proto3_arena_lite_unittest::ForeignMessage* TestAllTypes::mutable_optional_foreign_message() {
  2250. if (optional_foreign_message_ == NULL) {
  2251. auto* p = CreateMaybeMessage<::proto3_arena_lite_unittest::ForeignMessage>(GetArenaNoVirtual());
  2252. optional_foreign_message_ = p;
  2253. }
  2254. // @@protoc_insertion_point(field_mutable:proto3_arena_lite_unittest.TestAllTypes.optional_foreign_message)
  2255. return optional_foreign_message_;
  2256. }
  2257. inline void TestAllTypes::set_allocated_optional_foreign_message(::proto3_arena_lite_unittest::ForeignMessage* optional_foreign_message) {
  2258. ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
  2259. if (message_arena == NULL) {
  2260. delete optional_foreign_message_;
  2261. }
  2262. if (optional_foreign_message) {
  2263. ::google::protobuf::Arena* submessage_arena =
  2264. ::google::protobuf::Arena::GetArena(optional_foreign_message);
  2265. if (message_arena != submessage_arena) {
  2266. optional_foreign_message = ::google::protobuf::internal::GetOwnedMessage(
  2267. message_arena, optional_foreign_message, submessage_arena);
  2268. }
  2269. } else {
  2270. }
  2271. optional_foreign_message_ = optional_foreign_message;
  2272. // @@protoc_insertion_point(field_set_allocated:proto3_arena_lite_unittest.TestAllTypes.optional_foreign_message)
  2273. }
  2274. // .protobuf_unittest_import.ImportMessage optional_import_message = 20;
  2275. inline bool TestAllTypes::has_optional_import_message() const {
  2276. return this != internal_default_instance() && optional_import_message_ != NULL;
  2277. }
  2278. inline const ::protobuf_unittest_import::ImportMessage& TestAllTypes::_internal_optional_import_message() const {
  2279. return *optional_import_message_;
  2280. }
  2281. inline const ::protobuf_unittest_import::ImportMessage& TestAllTypes::optional_import_message() const {
  2282. const ::protobuf_unittest_import::ImportMessage* p = optional_import_message_;
  2283. // @@protoc_insertion_point(field_get:proto3_arena_lite_unittest.TestAllTypes.optional_import_message)
  2284. return p != NULL ? *p : *reinterpret_cast<const ::protobuf_unittest_import::ImportMessage*>(
  2285. &::protobuf_unittest_import::_ImportMessage_default_instance_);
  2286. }
  2287. inline ::protobuf_unittest_import::ImportMessage* TestAllTypes::release_optional_import_message() {
  2288. // @@protoc_insertion_point(field_release:proto3_arena_lite_unittest.TestAllTypes.optional_import_message)
  2289. ::protobuf_unittest_import::ImportMessage* temp = optional_import_message_;
  2290. if (GetArenaNoVirtual() != NULL) {
  2291. temp = ::google::protobuf::internal::DuplicateIfNonNull(temp);
  2292. }
  2293. optional_import_message_ = NULL;
  2294. return temp;
  2295. }
  2296. inline ::protobuf_unittest_import::ImportMessage* TestAllTypes::unsafe_arena_release_optional_import_message() {
  2297. // @@protoc_insertion_point(field_unsafe_arena_release:proto3_arena_lite_unittest.TestAllTypes.optional_import_message)
  2298. ::protobuf_unittest_import::ImportMessage* temp = optional_import_message_;
  2299. optional_import_message_ = NULL;
  2300. return temp;
  2301. }
  2302. inline ::protobuf_unittest_import::ImportMessage* TestAllTypes::mutable_optional_import_message() {
  2303. if (optional_import_message_ == NULL) {
  2304. auto* p = CreateMaybeMessage<::protobuf_unittest_import::ImportMessage>(GetArenaNoVirtual());
  2305. optional_import_message_ = p;
  2306. }
  2307. // @@protoc_insertion_point(field_mutable:proto3_arena_lite_unittest.TestAllTypes.optional_import_message)
  2308. return optional_import_message_;
  2309. }
  2310. inline void TestAllTypes::set_allocated_optional_import_message(::protobuf_unittest_import::ImportMessage* optional_import_message) {
  2311. ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
  2312. if (message_arena == NULL) {
  2313. delete reinterpret_cast< ::google::protobuf::MessageLite*>(optional_import_message_);
  2314. }
  2315. if (optional_import_message) {
  2316. ::google::protobuf::Arena* submessage_arena =
  2317. reinterpret_cast<::google::protobuf::MessageLite*>(optional_import_message)->GetArena();
  2318. if (message_arena != submessage_arena) {
  2319. optional_import_message = ::google::protobuf::internal::GetOwnedMessage(
  2320. message_arena, optional_import_message, submessage_arena);
  2321. }
  2322. } else {
  2323. }
  2324. optional_import_message_ = optional_import_message;
  2325. // @@protoc_insertion_point(field_set_allocated:proto3_arena_lite_unittest.TestAllTypes.optional_import_message)
  2326. }
  2327. // .proto3_arena_lite_unittest.TestAllTypes.NestedEnum optional_nested_enum = 21;
  2328. inline void TestAllTypes::clear_optional_nested_enum() {
  2329. optional_nested_enum_ = 0;
  2330. }
  2331. inline ::proto3_arena_lite_unittest::TestAllTypes_NestedEnum TestAllTypes::optional_nested_enum() const {
  2332. // @@protoc_insertion_point(field_get:proto3_arena_lite_unittest.TestAllTypes.optional_nested_enum)
  2333. return static_cast< ::proto3_arena_lite_unittest::TestAllTypes_NestedEnum >(optional_nested_enum_);
  2334. }
  2335. inline void TestAllTypes::set_optional_nested_enum(::proto3_arena_lite_unittest::TestAllTypes_NestedEnum value) {
  2336. optional_nested_enum_ = value;
  2337. // @@protoc_insertion_point(field_set:proto3_arena_lite_unittest.TestAllTypes.optional_nested_enum)
  2338. }
  2339. // .proto3_arena_lite_unittest.ForeignEnum optional_foreign_enum = 22;
  2340. inline void TestAllTypes::clear_optional_foreign_enum() {
  2341. optional_foreign_enum_ = 0;
  2342. }
  2343. inline ::proto3_arena_lite_unittest::ForeignEnum TestAllTypes::optional_foreign_enum() const {
  2344. // @@protoc_insertion_point(field_get:proto3_arena_lite_unittest.TestAllTypes.optional_foreign_enum)
  2345. return static_cast< ::proto3_arena_lite_unittest::ForeignEnum >(optional_foreign_enum_);
  2346. }
  2347. inline void TestAllTypes::set_optional_foreign_enum(::proto3_arena_lite_unittest::ForeignEnum value) {
  2348. optional_foreign_enum_ = value;
  2349. // @@protoc_insertion_point(field_set:proto3_arena_lite_unittest.TestAllTypes.optional_foreign_enum)
  2350. }
  2351. // string optional_string_piece = 24 [ctype = STRING_PIECE];
  2352. inline void TestAllTypes::clear_optional_string_piece() {
  2353. optional_string_piece_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
  2354. }
  2355. inline const ::std::string& TestAllTypes::optional_string_piece() const {
  2356. // @@protoc_insertion_point(field_get:proto3_arena_lite_unittest.TestAllTypes.optional_string_piece)
  2357. return optional_string_piece_.Get();
  2358. }
  2359. inline void TestAllTypes::set_optional_string_piece(const ::std::string& value) {
  2360. optional_string_piece_.SetLite(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual());
  2361. // @@protoc_insertion_point(field_set:proto3_arena_lite_unittest.TestAllTypes.optional_string_piece)
  2362. }
  2363. #if LANG_CXX11
  2364. inline void TestAllTypes::set_optional_string_piece(::std::string&& value) {
  2365. optional_string_piece_.SetLite(
  2366. &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual());
  2367. // @@protoc_insertion_point(field_set_rvalue:proto3_arena_lite_unittest.TestAllTypes.optional_string_piece)
  2368. }
  2369. #endif
  2370. inline void TestAllTypes::set_optional_string_piece(const char* value) {
  2371. GOOGLE_DCHECK(value != NULL);
  2372. optional_string_piece_.SetLite(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value),
  2373. GetArenaNoVirtual());
  2374. // @@protoc_insertion_point(field_set_char:proto3_arena_lite_unittest.TestAllTypes.optional_string_piece)
  2375. }
  2376. inline void TestAllTypes::set_optional_string_piece(const char* value,
  2377. size_t size) {
  2378. optional_string_piece_.SetLite(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(
  2379. reinterpret_cast<const char*>(value), size), GetArenaNoVirtual());
  2380. // @@protoc_insertion_point(field_set_pointer:proto3_arena_lite_unittest.TestAllTypes.optional_string_piece)
  2381. }
  2382. inline ::std::string* TestAllTypes::mutable_optional_string_piece() {
  2383. // @@protoc_insertion_point(field_mutable:proto3_arena_lite_unittest.TestAllTypes.optional_string_piece)
  2384. return optional_string_piece_.Mutable(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
  2385. }
  2386. inline ::std::string* TestAllTypes::release_optional_string_piece() {
  2387. // @@protoc_insertion_point(field_release:proto3_arena_lite_unittest.TestAllTypes.optional_string_piece)
  2388. return optional_string_piece_.Release(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
  2389. }
  2390. inline void TestAllTypes::set_allocated_optional_string_piece(::std::string* optional_string_piece) {
  2391. if (optional_string_piece != NULL) {
  2392. } else {
  2393. }
  2394. optional_string_piece_.SetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), optional_string_piece,
  2395. GetArenaNoVirtual());
  2396. // @@protoc_insertion_point(field_set_allocated:proto3_arena_lite_unittest.TestAllTypes.optional_string_piece)
  2397. }
  2398. inline ::std::string* TestAllTypes::unsafe_arena_release_optional_string_piece() {
  2399. // @@protoc_insertion_point(field_unsafe_arena_release:proto3_arena_lite_unittest.TestAllTypes.optional_string_piece)
  2400. GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
  2401. return optional_string_piece_.UnsafeArenaRelease(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  2402. GetArenaNoVirtual());
  2403. }
  2404. inline void TestAllTypes::unsafe_arena_set_allocated_optional_string_piece(
  2405. ::std::string* optional_string_piece) {
  2406. GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
  2407. if (optional_string_piece != NULL) {
  2408. } else {
  2409. }
  2410. optional_string_piece_.UnsafeArenaSetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  2411. optional_string_piece, GetArenaNoVirtual());
  2412. // @@protoc_insertion_point(field_unsafe_arena_set_allocated:proto3_arena_lite_unittest.TestAllTypes.optional_string_piece)
  2413. }
  2414. // string optional_cord = 25 [ctype = CORD];
  2415. inline void TestAllTypes::clear_optional_cord() {
  2416. optional_cord_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
  2417. }
  2418. inline const ::std::string& TestAllTypes::optional_cord() const {
  2419. // @@protoc_insertion_point(field_get:proto3_arena_lite_unittest.TestAllTypes.optional_cord)
  2420. return optional_cord_.Get();
  2421. }
  2422. inline void TestAllTypes::set_optional_cord(const ::std::string& value) {
  2423. optional_cord_.SetLite(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual());
  2424. // @@protoc_insertion_point(field_set:proto3_arena_lite_unittest.TestAllTypes.optional_cord)
  2425. }
  2426. #if LANG_CXX11
  2427. inline void TestAllTypes::set_optional_cord(::std::string&& value) {
  2428. optional_cord_.SetLite(
  2429. &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual());
  2430. // @@protoc_insertion_point(field_set_rvalue:proto3_arena_lite_unittest.TestAllTypes.optional_cord)
  2431. }
  2432. #endif
  2433. inline void TestAllTypes::set_optional_cord(const char* value) {
  2434. GOOGLE_DCHECK(value != NULL);
  2435. optional_cord_.SetLite(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value),
  2436. GetArenaNoVirtual());
  2437. // @@protoc_insertion_point(field_set_char:proto3_arena_lite_unittest.TestAllTypes.optional_cord)
  2438. }
  2439. inline void TestAllTypes::set_optional_cord(const char* value,
  2440. size_t size) {
  2441. optional_cord_.SetLite(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(
  2442. reinterpret_cast<const char*>(value), size), GetArenaNoVirtual());
  2443. // @@protoc_insertion_point(field_set_pointer:proto3_arena_lite_unittest.TestAllTypes.optional_cord)
  2444. }
  2445. inline ::std::string* TestAllTypes::mutable_optional_cord() {
  2446. // @@protoc_insertion_point(field_mutable:proto3_arena_lite_unittest.TestAllTypes.optional_cord)
  2447. return optional_cord_.Mutable(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
  2448. }
  2449. inline ::std::string* TestAllTypes::release_optional_cord() {
  2450. // @@protoc_insertion_point(field_release:proto3_arena_lite_unittest.TestAllTypes.optional_cord)
  2451. return optional_cord_.Release(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
  2452. }
  2453. inline void TestAllTypes::set_allocated_optional_cord(::std::string* optional_cord) {
  2454. if (optional_cord != NULL) {
  2455. } else {
  2456. }
  2457. optional_cord_.SetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), optional_cord,
  2458. GetArenaNoVirtual());
  2459. // @@protoc_insertion_point(field_set_allocated:proto3_arena_lite_unittest.TestAllTypes.optional_cord)
  2460. }
  2461. inline ::std::string* TestAllTypes::unsafe_arena_release_optional_cord() {
  2462. // @@protoc_insertion_point(field_unsafe_arena_release:proto3_arena_lite_unittest.TestAllTypes.optional_cord)
  2463. GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
  2464. return optional_cord_.UnsafeArenaRelease(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  2465. GetArenaNoVirtual());
  2466. }
  2467. inline void TestAllTypes::unsafe_arena_set_allocated_optional_cord(
  2468. ::std::string* optional_cord) {
  2469. GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
  2470. if (optional_cord != NULL) {
  2471. } else {
  2472. }
  2473. optional_cord_.UnsafeArenaSetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  2474. optional_cord, GetArenaNoVirtual());
  2475. // @@protoc_insertion_point(field_unsafe_arena_set_allocated:proto3_arena_lite_unittest.TestAllTypes.optional_cord)
  2476. }
  2477. // .protobuf_unittest_import.PublicImportMessage optional_public_import_message = 26;
  2478. inline bool TestAllTypes::has_optional_public_import_message() const {
  2479. return this != internal_default_instance() && optional_public_import_message_ != NULL;
  2480. }
  2481. inline const ::protobuf_unittest_import::PublicImportMessage& TestAllTypes::_internal_optional_public_import_message() const {
  2482. return *optional_public_import_message_;
  2483. }
  2484. inline const ::protobuf_unittest_import::PublicImportMessage& TestAllTypes::optional_public_import_message() const {
  2485. const ::protobuf_unittest_import::PublicImportMessage* p = optional_public_import_message_;
  2486. // @@protoc_insertion_point(field_get:proto3_arena_lite_unittest.TestAllTypes.optional_public_import_message)
  2487. return p != NULL ? *p : *reinterpret_cast<const ::protobuf_unittest_import::PublicImportMessage*>(
  2488. &::protobuf_unittest_import::_PublicImportMessage_default_instance_);
  2489. }
  2490. inline ::protobuf_unittest_import::PublicImportMessage* TestAllTypes::release_optional_public_import_message() {
  2491. // @@protoc_insertion_point(field_release:proto3_arena_lite_unittest.TestAllTypes.optional_public_import_message)
  2492. ::protobuf_unittest_import::PublicImportMessage* temp = optional_public_import_message_;
  2493. if (GetArenaNoVirtual() != NULL) {
  2494. temp = ::google::protobuf::internal::DuplicateIfNonNull(temp);
  2495. }
  2496. optional_public_import_message_ = NULL;
  2497. return temp;
  2498. }
  2499. inline ::protobuf_unittest_import::PublicImportMessage* TestAllTypes::unsafe_arena_release_optional_public_import_message() {
  2500. // @@protoc_insertion_point(field_unsafe_arena_release:proto3_arena_lite_unittest.TestAllTypes.optional_public_import_message)
  2501. ::protobuf_unittest_import::PublicImportMessage* temp = optional_public_import_message_;
  2502. optional_public_import_message_ = NULL;
  2503. return temp;
  2504. }
  2505. inline ::protobuf_unittest_import::PublicImportMessage* TestAllTypes::mutable_optional_public_import_message() {
  2506. if (optional_public_import_message_ == NULL) {
  2507. auto* p = CreateMaybeMessage<::protobuf_unittest_import::PublicImportMessage>(GetArenaNoVirtual());
  2508. optional_public_import_message_ = p;
  2509. }
  2510. // @@protoc_insertion_point(field_mutable:proto3_arena_lite_unittest.TestAllTypes.optional_public_import_message)
  2511. return optional_public_import_message_;
  2512. }
  2513. inline void TestAllTypes::set_allocated_optional_public_import_message(::protobuf_unittest_import::PublicImportMessage* optional_public_import_message) {
  2514. ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
  2515. if (message_arena == NULL) {
  2516. delete reinterpret_cast< ::google::protobuf::MessageLite*>(optional_public_import_message_);
  2517. }
  2518. if (optional_public_import_message) {
  2519. ::google::protobuf::Arena* submessage_arena = NULL;
  2520. if (message_arena != submessage_arena) {
  2521. optional_public_import_message = ::google::protobuf::internal::GetOwnedMessage(
  2522. message_arena, optional_public_import_message, submessage_arena);
  2523. }
  2524. } else {
  2525. }
  2526. optional_public_import_message_ = optional_public_import_message;
  2527. // @@protoc_insertion_point(field_set_allocated:proto3_arena_lite_unittest.TestAllTypes.optional_public_import_message)
  2528. }
  2529. // .proto3_arena_lite_unittest.TestAllTypes.NestedMessage optional_lazy_message = 27 [lazy = true];
  2530. inline bool TestAllTypes::has_optional_lazy_message() const {
  2531. return this != internal_default_instance() && optional_lazy_message_ != NULL;
  2532. }
  2533. inline void TestAllTypes::clear_optional_lazy_message() {
  2534. if (GetArenaNoVirtual() == NULL && optional_lazy_message_ != NULL) {
  2535. delete optional_lazy_message_;
  2536. }
  2537. optional_lazy_message_ = NULL;
  2538. }
  2539. inline const ::proto3_arena_lite_unittest::TestAllTypes_NestedMessage& TestAllTypes::_internal_optional_lazy_message() const {
  2540. return *optional_lazy_message_;
  2541. }
  2542. inline const ::proto3_arena_lite_unittest::TestAllTypes_NestedMessage& TestAllTypes::optional_lazy_message() const {
  2543. const ::proto3_arena_lite_unittest::TestAllTypes_NestedMessage* p = optional_lazy_message_;
  2544. // @@protoc_insertion_point(field_get:proto3_arena_lite_unittest.TestAllTypes.optional_lazy_message)
  2545. return p != NULL ? *p : *reinterpret_cast<const ::proto3_arena_lite_unittest::TestAllTypes_NestedMessage*>(
  2546. &::proto3_arena_lite_unittest::_TestAllTypes_NestedMessage_default_instance_);
  2547. }
  2548. inline ::proto3_arena_lite_unittest::TestAllTypes_NestedMessage* TestAllTypes::release_optional_lazy_message() {
  2549. // @@protoc_insertion_point(field_release:proto3_arena_lite_unittest.TestAllTypes.optional_lazy_message)
  2550. ::proto3_arena_lite_unittest::TestAllTypes_NestedMessage* temp = optional_lazy_message_;
  2551. if (GetArenaNoVirtual() != NULL) {
  2552. temp = ::google::protobuf::internal::DuplicateIfNonNull(temp);
  2553. }
  2554. optional_lazy_message_ = NULL;
  2555. return temp;
  2556. }
  2557. inline ::proto3_arena_lite_unittest::TestAllTypes_NestedMessage* TestAllTypes::unsafe_arena_release_optional_lazy_message() {
  2558. // @@protoc_insertion_point(field_unsafe_arena_release:proto3_arena_lite_unittest.TestAllTypes.optional_lazy_message)
  2559. ::proto3_arena_lite_unittest::TestAllTypes_NestedMessage* temp = optional_lazy_message_;
  2560. optional_lazy_message_ = NULL;
  2561. return temp;
  2562. }
  2563. inline ::proto3_arena_lite_unittest::TestAllTypes_NestedMessage* TestAllTypes::mutable_optional_lazy_message() {
  2564. if (optional_lazy_message_ == NULL) {
  2565. auto* p = CreateMaybeMessage<::proto3_arena_lite_unittest::TestAllTypes_NestedMessage>(GetArenaNoVirtual());
  2566. optional_lazy_message_ = p;
  2567. }
  2568. // @@protoc_insertion_point(field_mutable:proto3_arena_lite_unittest.TestAllTypes.optional_lazy_message)
  2569. return optional_lazy_message_;
  2570. }
  2571. inline void TestAllTypes::set_allocated_optional_lazy_message(::proto3_arena_lite_unittest::TestAllTypes_NestedMessage* optional_lazy_message) {
  2572. ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
  2573. if (message_arena == NULL) {
  2574. delete optional_lazy_message_;
  2575. }
  2576. if (optional_lazy_message) {
  2577. ::google::protobuf::Arena* submessage_arena =
  2578. ::google::protobuf::Arena::GetArena(optional_lazy_message);
  2579. if (message_arena != submessage_arena) {
  2580. optional_lazy_message = ::google::protobuf::internal::GetOwnedMessage(
  2581. message_arena, optional_lazy_message, submessage_arena);
  2582. }
  2583. } else {
  2584. }
  2585. optional_lazy_message_ = optional_lazy_message;
  2586. // @@protoc_insertion_point(field_set_allocated:proto3_arena_lite_unittest.TestAllTypes.optional_lazy_message)
  2587. }
  2588. // repeated int32 repeated_int32 = 31;
  2589. inline int TestAllTypes::repeated_int32_size() const {
  2590. return repeated_int32_.size();
  2591. }
  2592. inline void TestAllTypes::clear_repeated_int32() {
  2593. repeated_int32_.Clear();
  2594. }
  2595. inline ::google::protobuf::int32 TestAllTypes::repeated_int32(int index) const {
  2596. // @@protoc_insertion_point(field_get:proto3_arena_lite_unittest.TestAllTypes.repeated_int32)
  2597. return repeated_int32_.Get(index);
  2598. }
  2599. inline void TestAllTypes::set_repeated_int32(int index, ::google::protobuf::int32 value) {
  2600. repeated_int32_.Set(index, value);
  2601. // @@protoc_insertion_point(field_set:proto3_arena_lite_unittest.TestAllTypes.repeated_int32)
  2602. }
  2603. inline void TestAllTypes::add_repeated_int32(::google::protobuf::int32 value) {
  2604. repeated_int32_.Add(value);
  2605. // @@protoc_insertion_point(field_add:proto3_arena_lite_unittest.TestAllTypes.repeated_int32)
  2606. }
  2607. inline const ::google::protobuf::RepeatedField< ::google::protobuf::int32 >&
  2608. TestAllTypes::repeated_int32() const {
  2609. // @@protoc_insertion_point(field_list:proto3_arena_lite_unittest.TestAllTypes.repeated_int32)
  2610. return repeated_int32_;
  2611. }
  2612. inline ::google::protobuf::RepeatedField< ::google::protobuf::int32 >*
  2613. TestAllTypes::mutable_repeated_int32() {
  2614. // @@protoc_insertion_point(field_mutable_list:proto3_arena_lite_unittest.TestAllTypes.repeated_int32)
  2615. return &repeated_int32_;
  2616. }
  2617. // repeated int64 repeated_int64 = 32;
  2618. inline int TestAllTypes::repeated_int64_size() const {
  2619. return repeated_int64_.size();
  2620. }
  2621. inline void TestAllTypes::clear_repeated_int64() {
  2622. repeated_int64_.Clear();
  2623. }
  2624. inline ::google::protobuf::int64 TestAllTypes::repeated_int64(int index) const {
  2625. // @@protoc_insertion_point(field_get:proto3_arena_lite_unittest.TestAllTypes.repeated_int64)
  2626. return repeated_int64_.Get(index);
  2627. }
  2628. inline void TestAllTypes::set_repeated_int64(int index, ::google::protobuf::int64 value) {
  2629. repeated_int64_.Set(index, value);
  2630. // @@protoc_insertion_point(field_set:proto3_arena_lite_unittest.TestAllTypes.repeated_int64)
  2631. }
  2632. inline void TestAllTypes::add_repeated_int64(::google::protobuf::int64 value) {
  2633. repeated_int64_.Add(value);
  2634. // @@protoc_insertion_point(field_add:proto3_arena_lite_unittest.TestAllTypes.repeated_int64)
  2635. }
  2636. inline const ::google::protobuf::RepeatedField< ::google::protobuf::int64 >&
  2637. TestAllTypes::repeated_int64() const {
  2638. // @@protoc_insertion_point(field_list:proto3_arena_lite_unittest.TestAllTypes.repeated_int64)
  2639. return repeated_int64_;
  2640. }
  2641. inline ::google::protobuf::RepeatedField< ::google::protobuf::int64 >*
  2642. TestAllTypes::mutable_repeated_int64() {
  2643. // @@protoc_insertion_point(field_mutable_list:proto3_arena_lite_unittest.TestAllTypes.repeated_int64)
  2644. return &repeated_int64_;
  2645. }
  2646. // repeated uint32 repeated_uint32 = 33;
  2647. inline int TestAllTypes::repeated_uint32_size() const {
  2648. return repeated_uint32_.size();
  2649. }
  2650. inline void TestAllTypes::clear_repeated_uint32() {
  2651. repeated_uint32_.Clear();
  2652. }
  2653. inline ::google::protobuf::uint32 TestAllTypes::repeated_uint32(int index) const {
  2654. // @@protoc_insertion_point(field_get:proto3_arena_lite_unittest.TestAllTypes.repeated_uint32)
  2655. return repeated_uint32_.Get(index);
  2656. }
  2657. inline void TestAllTypes::set_repeated_uint32(int index, ::google::protobuf::uint32 value) {
  2658. repeated_uint32_.Set(index, value);
  2659. // @@protoc_insertion_point(field_set:proto3_arena_lite_unittest.TestAllTypes.repeated_uint32)
  2660. }
  2661. inline void TestAllTypes::add_repeated_uint32(::google::protobuf::uint32 value) {
  2662. repeated_uint32_.Add(value);
  2663. // @@protoc_insertion_point(field_add:proto3_arena_lite_unittest.TestAllTypes.repeated_uint32)
  2664. }
  2665. inline const ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >&
  2666. TestAllTypes::repeated_uint32() const {
  2667. // @@protoc_insertion_point(field_list:proto3_arena_lite_unittest.TestAllTypes.repeated_uint32)
  2668. return repeated_uint32_;
  2669. }
  2670. inline ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >*
  2671. TestAllTypes::mutable_repeated_uint32() {
  2672. // @@protoc_insertion_point(field_mutable_list:proto3_arena_lite_unittest.TestAllTypes.repeated_uint32)
  2673. return &repeated_uint32_;
  2674. }
  2675. // repeated uint64 repeated_uint64 = 34;
  2676. inline int TestAllTypes::repeated_uint64_size() const {
  2677. return repeated_uint64_.size();
  2678. }
  2679. inline void TestAllTypes::clear_repeated_uint64() {
  2680. repeated_uint64_.Clear();
  2681. }
  2682. inline ::google::protobuf::uint64 TestAllTypes::repeated_uint64(int index) const {
  2683. // @@protoc_insertion_point(field_get:proto3_arena_lite_unittest.TestAllTypes.repeated_uint64)
  2684. return repeated_uint64_.Get(index);
  2685. }
  2686. inline void TestAllTypes::set_repeated_uint64(int index, ::google::protobuf::uint64 value) {
  2687. repeated_uint64_.Set(index, value);
  2688. // @@protoc_insertion_point(field_set:proto3_arena_lite_unittest.TestAllTypes.repeated_uint64)
  2689. }
  2690. inline void TestAllTypes::add_repeated_uint64(::google::protobuf::uint64 value) {
  2691. repeated_uint64_.Add(value);
  2692. // @@protoc_insertion_point(field_add:proto3_arena_lite_unittest.TestAllTypes.repeated_uint64)
  2693. }
  2694. inline const ::google::protobuf::RepeatedField< ::google::protobuf::uint64 >&
  2695. TestAllTypes::repeated_uint64() const {
  2696. // @@protoc_insertion_point(field_list:proto3_arena_lite_unittest.TestAllTypes.repeated_uint64)
  2697. return repeated_uint64_;
  2698. }
  2699. inline ::google::protobuf::RepeatedField< ::google::protobuf::uint64 >*
  2700. TestAllTypes::mutable_repeated_uint64() {
  2701. // @@protoc_insertion_point(field_mutable_list:proto3_arena_lite_unittest.TestAllTypes.repeated_uint64)
  2702. return &repeated_uint64_;
  2703. }
  2704. // repeated sint32 repeated_sint32 = 35;
  2705. inline int TestAllTypes::repeated_sint32_size() const {
  2706. return repeated_sint32_.size();
  2707. }
  2708. inline void TestAllTypes::clear_repeated_sint32() {
  2709. repeated_sint32_.Clear();
  2710. }
  2711. inline ::google::protobuf::int32 TestAllTypes::repeated_sint32(int index) const {
  2712. // @@protoc_insertion_point(field_get:proto3_arena_lite_unittest.TestAllTypes.repeated_sint32)
  2713. return repeated_sint32_.Get(index);
  2714. }
  2715. inline void TestAllTypes::set_repeated_sint32(int index, ::google::protobuf::int32 value) {
  2716. repeated_sint32_.Set(index, value);
  2717. // @@protoc_insertion_point(field_set:proto3_arena_lite_unittest.TestAllTypes.repeated_sint32)
  2718. }
  2719. inline void TestAllTypes::add_repeated_sint32(::google::protobuf::int32 value) {
  2720. repeated_sint32_.Add(value);
  2721. // @@protoc_insertion_point(field_add:proto3_arena_lite_unittest.TestAllTypes.repeated_sint32)
  2722. }
  2723. inline const ::google::protobuf::RepeatedField< ::google::protobuf::int32 >&
  2724. TestAllTypes::repeated_sint32() const {
  2725. // @@protoc_insertion_point(field_list:proto3_arena_lite_unittest.TestAllTypes.repeated_sint32)
  2726. return repeated_sint32_;
  2727. }
  2728. inline ::google::protobuf::RepeatedField< ::google::protobuf::int32 >*
  2729. TestAllTypes::mutable_repeated_sint32() {
  2730. // @@protoc_insertion_point(field_mutable_list:proto3_arena_lite_unittest.TestAllTypes.repeated_sint32)
  2731. return &repeated_sint32_;
  2732. }
  2733. // repeated sint64 repeated_sint64 = 36;
  2734. inline int TestAllTypes::repeated_sint64_size() const {
  2735. return repeated_sint64_.size();
  2736. }
  2737. inline void TestAllTypes::clear_repeated_sint64() {
  2738. repeated_sint64_.Clear();
  2739. }
  2740. inline ::google::protobuf::int64 TestAllTypes::repeated_sint64(int index) const {
  2741. // @@protoc_insertion_point(field_get:proto3_arena_lite_unittest.TestAllTypes.repeated_sint64)
  2742. return repeated_sint64_.Get(index);
  2743. }
  2744. inline void TestAllTypes::set_repeated_sint64(int index, ::google::protobuf::int64 value) {
  2745. repeated_sint64_.Set(index, value);
  2746. // @@protoc_insertion_point(field_set:proto3_arena_lite_unittest.TestAllTypes.repeated_sint64)
  2747. }
  2748. inline void TestAllTypes::add_repeated_sint64(::google::protobuf::int64 value) {
  2749. repeated_sint64_.Add(value);
  2750. // @@protoc_insertion_point(field_add:proto3_arena_lite_unittest.TestAllTypes.repeated_sint64)
  2751. }
  2752. inline const ::google::protobuf::RepeatedField< ::google::protobuf::int64 >&
  2753. TestAllTypes::repeated_sint64() const {
  2754. // @@protoc_insertion_point(field_list:proto3_arena_lite_unittest.TestAllTypes.repeated_sint64)
  2755. return repeated_sint64_;
  2756. }
  2757. inline ::google::protobuf::RepeatedField< ::google::protobuf::int64 >*
  2758. TestAllTypes::mutable_repeated_sint64() {
  2759. // @@protoc_insertion_point(field_mutable_list:proto3_arena_lite_unittest.TestAllTypes.repeated_sint64)
  2760. return &repeated_sint64_;
  2761. }
  2762. // repeated fixed32 repeated_fixed32 = 37;
  2763. inline int TestAllTypes::repeated_fixed32_size() const {
  2764. return repeated_fixed32_.size();
  2765. }
  2766. inline void TestAllTypes::clear_repeated_fixed32() {
  2767. repeated_fixed32_.Clear();
  2768. }
  2769. inline ::google::protobuf::uint32 TestAllTypes::repeated_fixed32(int index) const {
  2770. // @@protoc_insertion_point(field_get:proto3_arena_lite_unittest.TestAllTypes.repeated_fixed32)
  2771. return repeated_fixed32_.Get(index);
  2772. }
  2773. inline void TestAllTypes::set_repeated_fixed32(int index, ::google::protobuf::uint32 value) {
  2774. repeated_fixed32_.Set(index, value);
  2775. // @@protoc_insertion_point(field_set:proto3_arena_lite_unittest.TestAllTypes.repeated_fixed32)
  2776. }
  2777. inline void TestAllTypes::add_repeated_fixed32(::google::protobuf::uint32 value) {
  2778. repeated_fixed32_.Add(value);
  2779. // @@protoc_insertion_point(field_add:proto3_arena_lite_unittest.TestAllTypes.repeated_fixed32)
  2780. }
  2781. inline const ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >&
  2782. TestAllTypes::repeated_fixed32() const {
  2783. // @@protoc_insertion_point(field_list:proto3_arena_lite_unittest.TestAllTypes.repeated_fixed32)
  2784. return repeated_fixed32_;
  2785. }
  2786. inline ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >*
  2787. TestAllTypes::mutable_repeated_fixed32() {
  2788. // @@protoc_insertion_point(field_mutable_list:proto3_arena_lite_unittest.TestAllTypes.repeated_fixed32)
  2789. return &repeated_fixed32_;
  2790. }
  2791. // repeated fixed64 repeated_fixed64 = 38;
  2792. inline int TestAllTypes::repeated_fixed64_size() const {
  2793. return repeated_fixed64_.size();
  2794. }
  2795. inline void TestAllTypes::clear_repeated_fixed64() {
  2796. repeated_fixed64_.Clear();
  2797. }
  2798. inline ::google::protobuf::uint64 TestAllTypes::repeated_fixed64(int index) const {
  2799. // @@protoc_insertion_point(field_get:proto3_arena_lite_unittest.TestAllTypes.repeated_fixed64)
  2800. return repeated_fixed64_.Get(index);
  2801. }
  2802. inline void TestAllTypes::set_repeated_fixed64(int index, ::google::protobuf::uint64 value) {
  2803. repeated_fixed64_.Set(index, value);
  2804. // @@protoc_insertion_point(field_set:proto3_arena_lite_unittest.TestAllTypes.repeated_fixed64)
  2805. }
  2806. inline void TestAllTypes::add_repeated_fixed64(::google::protobuf::uint64 value) {
  2807. repeated_fixed64_.Add(value);
  2808. // @@protoc_insertion_point(field_add:proto3_arena_lite_unittest.TestAllTypes.repeated_fixed64)
  2809. }
  2810. inline const ::google::protobuf::RepeatedField< ::google::protobuf::uint64 >&
  2811. TestAllTypes::repeated_fixed64() const {
  2812. // @@protoc_insertion_point(field_list:proto3_arena_lite_unittest.TestAllTypes.repeated_fixed64)
  2813. return repeated_fixed64_;
  2814. }
  2815. inline ::google::protobuf::RepeatedField< ::google::protobuf::uint64 >*
  2816. TestAllTypes::mutable_repeated_fixed64() {
  2817. // @@protoc_insertion_point(field_mutable_list:proto3_arena_lite_unittest.TestAllTypes.repeated_fixed64)
  2818. return &repeated_fixed64_;
  2819. }
  2820. // repeated sfixed32 repeated_sfixed32 = 39;
  2821. inline int TestAllTypes::repeated_sfixed32_size() const {
  2822. return repeated_sfixed32_.size();
  2823. }
  2824. inline void TestAllTypes::clear_repeated_sfixed32() {
  2825. repeated_sfixed32_.Clear();
  2826. }
  2827. inline ::google::protobuf::int32 TestAllTypes::repeated_sfixed32(int index) const {
  2828. // @@protoc_insertion_point(field_get:proto3_arena_lite_unittest.TestAllTypes.repeated_sfixed32)
  2829. return repeated_sfixed32_.Get(index);
  2830. }
  2831. inline void TestAllTypes::set_repeated_sfixed32(int index, ::google::protobuf::int32 value) {
  2832. repeated_sfixed32_.Set(index, value);
  2833. // @@protoc_insertion_point(field_set:proto3_arena_lite_unittest.TestAllTypes.repeated_sfixed32)
  2834. }
  2835. inline void TestAllTypes::add_repeated_sfixed32(::google::protobuf::int32 value) {
  2836. repeated_sfixed32_.Add(value);
  2837. // @@protoc_insertion_point(field_add:proto3_arena_lite_unittest.TestAllTypes.repeated_sfixed32)
  2838. }
  2839. inline const ::google::protobuf::RepeatedField< ::google::protobuf::int32 >&
  2840. TestAllTypes::repeated_sfixed32() const {
  2841. // @@protoc_insertion_point(field_list:proto3_arena_lite_unittest.TestAllTypes.repeated_sfixed32)
  2842. return repeated_sfixed32_;
  2843. }
  2844. inline ::google::protobuf::RepeatedField< ::google::protobuf::int32 >*
  2845. TestAllTypes::mutable_repeated_sfixed32() {
  2846. // @@protoc_insertion_point(field_mutable_list:proto3_arena_lite_unittest.TestAllTypes.repeated_sfixed32)
  2847. return &repeated_sfixed32_;
  2848. }
  2849. // repeated sfixed64 repeated_sfixed64 = 40;
  2850. inline int TestAllTypes::repeated_sfixed64_size() const {
  2851. return repeated_sfixed64_.size();
  2852. }
  2853. inline void TestAllTypes::clear_repeated_sfixed64() {
  2854. repeated_sfixed64_.Clear();
  2855. }
  2856. inline ::google::protobuf::int64 TestAllTypes::repeated_sfixed64(int index) const {
  2857. // @@protoc_insertion_point(field_get:proto3_arena_lite_unittest.TestAllTypes.repeated_sfixed64)
  2858. return repeated_sfixed64_.Get(index);
  2859. }
  2860. inline void TestAllTypes::set_repeated_sfixed64(int index, ::google::protobuf::int64 value) {
  2861. repeated_sfixed64_.Set(index, value);
  2862. // @@protoc_insertion_point(field_set:proto3_arena_lite_unittest.TestAllTypes.repeated_sfixed64)
  2863. }
  2864. inline void TestAllTypes::add_repeated_sfixed64(::google::protobuf::int64 value) {
  2865. repeated_sfixed64_.Add(value);
  2866. // @@protoc_insertion_point(field_add:proto3_arena_lite_unittest.TestAllTypes.repeated_sfixed64)
  2867. }
  2868. inline const ::google::protobuf::RepeatedField< ::google::protobuf::int64 >&
  2869. TestAllTypes::repeated_sfixed64() const {
  2870. // @@protoc_insertion_point(field_list:proto3_arena_lite_unittest.TestAllTypes.repeated_sfixed64)
  2871. return repeated_sfixed64_;
  2872. }
  2873. inline ::google::protobuf::RepeatedField< ::google::protobuf::int64 >*
  2874. TestAllTypes::mutable_repeated_sfixed64() {
  2875. // @@protoc_insertion_point(field_mutable_list:proto3_arena_lite_unittest.TestAllTypes.repeated_sfixed64)
  2876. return &repeated_sfixed64_;
  2877. }
  2878. // repeated float repeated_float = 41;
  2879. inline int TestAllTypes::repeated_float_size() const {
  2880. return repeated_float_.size();
  2881. }
  2882. inline void TestAllTypes::clear_repeated_float() {
  2883. repeated_float_.Clear();
  2884. }
  2885. inline float TestAllTypes::repeated_float(int index) const {
  2886. // @@protoc_insertion_point(field_get:proto3_arena_lite_unittest.TestAllTypes.repeated_float)
  2887. return repeated_float_.Get(index);
  2888. }
  2889. inline void TestAllTypes::set_repeated_float(int index, float value) {
  2890. repeated_float_.Set(index, value);
  2891. // @@protoc_insertion_point(field_set:proto3_arena_lite_unittest.TestAllTypes.repeated_float)
  2892. }
  2893. inline void TestAllTypes::add_repeated_float(float value) {
  2894. repeated_float_.Add(value);
  2895. // @@protoc_insertion_point(field_add:proto3_arena_lite_unittest.TestAllTypes.repeated_float)
  2896. }
  2897. inline const ::google::protobuf::RepeatedField< float >&
  2898. TestAllTypes::repeated_float() const {
  2899. // @@protoc_insertion_point(field_list:proto3_arena_lite_unittest.TestAllTypes.repeated_float)
  2900. return repeated_float_;
  2901. }
  2902. inline ::google::protobuf::RepeatedField< float >*
  2903. TestAllTypes::mutable_repeated_float() {
  2904. // @@protoc_insertion_point(field_mutable_list:proto3_arena_lite_unittest.TestAllTypes.repeated_float)
  2905. return &repeated_float_;
  2906. }
  2907. // repeated double repeated_double = 42;
  2908. inline int TestAllTypes::repeated_double_size() const {
  2909. return repeated_double_.size();
  2910. }
  2911. inline void TestAllTypes::clear_repeated_double() {
  2912. repeated_double_.Clear();
  2913. }
  2914. inline double TestAllTypes::repeated_double(int index) const {
  2915. // @@protoc_insertion_point(field_get:proto3_arena_lite_unittest.TestAllTypes.repeated_double)
  2916. return repeated_double_.Get(index);
  2917. }
  2918. inline void TestAllTypes::set_repeated_double(int index, double value) {
  2919. repeated_double_.Set(index, value);
  2920. // @@protoc_insertion_point(field_set:proto3_arena_lite_unittest.TestAllTypes.repeated_double)
  2921. }
  2922. inline void TestAllTypes::add_repeated_double(double value) {
  2923. repeated_double_.Add(value);
  2924. // @@protoc_insertion_point(field_add:proto3_arena_lite_unittest.TestAllTypes.repeated_double)
  2925. }
  2926. inline const ::google::protobuf::RepeatedField< double >&
  2927. TestAllTypes::repeated_double() const {
  2928. // @@protoc_insertion_point(field_list:proto3_arena_lite_unittest.TestAllTypes.repeated_double)
  2929. return repeated_double_;
  2930. }
  2931. inline ::google::protobuf::RepeatedField< double >*
  2932. TestAllTypes::mutable_repeated_double() {
  2933. // @@protoc_insertion_point(field_mutable_list:proto3_arena_lite_unittest.TestAllTypes.repeated_double)
  2934. return &repeated_double_;
  2935. }
  2936. // repeated bool repeated_bool = 43;
  2937. inline int TestAllTypes::repeated_bool_size() const {
  2938. return repeated_bool_.size();
  2939. }
  2940. inline void TestAllTypes::clear_repeated_bool() {
  2941. repeated_bool_.Clear();
  2942. }
  2943. inline bool TestAllTypes::repeated_bool(int index) const {
  2944. // @@protoc_insertion_point(field_get:proto3_arena_lite_unittest.TestAllTypes.repeated_bool)
  2945. return repeated_bool_.Get(index);
  2946. }
  2947. inline void TestAllTypes::set_repeated_bool(int index, bool value) {
  2948. repeated_bool_.Set(index, value);
  2949. // @@protoc_insertion_point(field_set:proto3_arena_lite_unittest.TestAllTypes.repeated_bool)
  2950. }
  2951. inline void TestAllTypes::add_repeated_bool(bool value) {
  2952. repeated_bool_.Add(value);
  2953. // @@protoc_insertion_point(field_add:proto3_arena_lite_unittest.TestAllTypes.repeated_bool)
  2954. }
  2955. inline const ::google::protobuf::RepeatedField< bool >&
  2956. TestAllTypes::repeated_bool() const {
  2957. // @@protoc_insertion_point(field_list:proto3_arena_lite_unittest.TestAllTypes.repeated_bool)
  2958. return repeated_bool_;
  2959. }
  2960. inline ::google::protobuf::RepeatedField< bool >*
  2961. TestAllTypes::mutable_repeated_bool() {
  2962. // @@protoc_insertion_point(field_mutable_list:proto3_arena_lite_unittest.TestAllTypes.repeated_bool)
  2963. return &repeated_bool_;
  2964. }
  2965. // repeated string repeated_string = 44;
  2966. inline int TestAllTypes::repeated_string_size() const {
  2967. return repeated_string_.size();
  2968. }
  2969. inline void TestAllTypes::clear_repeated_string() {
  2970. repeated_string_.Clear();
  2971. }
  2972. inline const ::std::string& TestAllTypes::repeated_string(int index) const {
  2973. // @@protoc_insertion_point(field_get:proto3_arena_lite_unittest.TestAllTypes.repeated_string)
  2974. return repeated_string_.Get(index);
  2975. }
  2976. inline ::std::string* TestAllTypes::mutable_repeated_string(int index) {
  2977. // @@protoc_insertion_point(field_mutable:proto3_arena_lite_unittest.TestAllTypes.repeated_string)
  2978. return repeated_string_.Mutable(index);
  2979. }
  2980. inline void TestAllTypes::set_repeated_string(int index, const ::std::string& value) {
  2981. // @@protoc_insertion_point(field_set:proto3_arena_lite_unittest.TestAllTypes.repeated_string)
  2982. repeated_string_.Mutable(index)->assign(value);
  2983. }
  2984. #if LANG_CXX11
  2985. inline void TestAllTypes::set_repeated_string(int index, ::std::string&& value) {
  2986. // @@protoc_insertion_point(field_set:proto3_arena_lite_unittest.TestAllTypes.repeated_string)
  2987. repeated_string_.Mutable(index)->assign(std::move(value));
  2988. }
  2989. #endif
  2990. inline void TestAllTypes::set_repeated_string(int index, const char* value) {
  2991. GOOGLE_DCHECK(value != NULL);
  2992. repeated_string_.Mutable(index)->assign(value);
  2993. // @@protoc_insertion_point(field_set_char:proto3_arena_lite_unittest.TestAllTypes.repeated_string)
  2994. }
  2995. inline void TestAllTypes::set_repeated_string(int index, const char* value, size_t size) {
  2996. repeated_string_.Mutable(index)->assign(
  2997. reinterpret_cast<const char*>(value), size);
  2998. // @@protoc_insertion_point(field_set_pointer:proto3_arena_lite_unittest.TestAllTypes.repeated_string)
  2999. }
  3000. inline ::std::string* TestAllTypes::add_repeated_string() {
  3001. // @@protoc_insertion_point(field_add_mutable:proto3_arena_lite_unittest.TestAllTypes.repeated_string)
  3002. return repeated_string_.Add();
  3003. }
  3004. inline void TestAllTypes::add_repeated_string(const ::std::string& value) {
  3005. repeated_string_.Add()->assign(value);
  3006. // @@protoc_insertion_point(field_add:proto3_arena_lite_unittest.TestAllTypes.repeated_string)
  3007. }
  3008. #if LANG_CXX11
  3009. inline void TestAllTypes::add_repeated_string(::std::string&& value) {
  3010. repeated_string_.Add(std::move(value));
  3011. // @@protoc_insertion_point(field_add:proto3_arena_lite_unittest.TestAllTypes.repeated_string)
  3012. }
  3013. #endif
  3014. inline void TestAllTypes::add_repeated_string(const char* value) {
  3015. GOOGLE_DCHECK(value != NULL);
  3016. repeated_string_.Add()->assign(value);
  3017. // @@protoc_insertion_point(field_add_char:proto3_arena_lite_unittest.TestAllTypes.repeated_string)
  3018. }
  3019. inline void TestAllTypes::add_repeated_string(const char* value, size_t size) {
  3020. repeated_string_.Add()->assign(reinterpret_cast<const char*>(value), size);
  3021. // @@protoc_insertion_point(field_add_pointer:proto3_arena_lite_unittest.TestAllTypes.repeated_string)
  3022. }
  3023. inline const ::google::protobuf::RepeatedPtrField< ::std::string>&
  3024. TestAllTypes::repeated_string() const {
  3025. // @@protoc_insertion_point(field_list:proto3_arena_lite_unittest.TestAllTypes.repeated_string)
  3026. return repeated_string_;
  3027. }
  3028. inline ::google::protobuf::RepeatedPtrField< ::std::string>*
  3029. TestAllTypes::mutable_repeated_string() {
  3030. // @@protoc_insertion_point(field_mutable_list:proto3_arena_lite_unittest.TestAllTypes.repeated_string)
  3031. return &repeated_string_;
  3032. }
  3033. // repeated bytes repeated_bytes = 45;
  3034. inline int TestAllTypes::repeated_bytes_size() const {
  3035. return repeated_bytes_.size();
  3036. }
  3037. inline void TestAllTypes::clear_repeated_bytes() {
  3038. repeated_bytes_.Clear();
  3039. }
  3040. inline const ::std::string& TestAllTypes::repeated_bytes(int index) const {
  3041. // @@protoc_insertion_point(field_get:proto3_arena_lite_unittest.TestAllTypes.repeated_bytes)
  3042. return repeated_bytes_.Get(index);
  3043. }
  3044. inline ::std::string* TestAllTypes::mutable_repeated_bytes(int index) {
  3045. // @@protoc_insertion_point(field_mutable:proto3_arena_lite_unittest.TestAllTypes.repeated_bytes)
  3046. return repeated_bytes_.Mutable(index);
  3047. }
  3048. inline void TestAllTypes::set_repeated_bytes(int index, const ::std::string& value) {
  3049. // @@protoc_insertion_point(field_set:proto3_arena_lite_unittest.TestAllTypes.repeated_bytes)
  3050. repeated_bytes_.Mutable(index)->assign(value);
  3051. }
  3052. #if LANG_CXX11
  3053. inline void TestAllTypes::set_repeated_bytes(int index, ::std::string&& value) {
  3054. // @@protoc_insertion_point(field_set:proto3_arena_lite_unittest.TestAllTypes.repeated_bytes)
  3055. repeated_bytes_.Mutable(index)->assign(std::move(value));
  3056. }
  3057. #endif
  3058. inline void TestAllTypes::set_repeated_bytes(int index, const char* value) {
  3059. GOOGLE_DCHECK(value != NULL);
  3060. repeated_bytes_.Mutable(index)->assign(value);
  3061. // @@protoc_insertion_point(field_set_char:proto3_arena_lite_unittest.TestAllTypes.repeated_bytes)
  3062. }
  3063. inline void TestAllTypes::set_repeated_bytes(int index, const void* value, size_t size) {
  3064. repeated_bytes_.Mutable(index)->assign(
  3065. reinterpret_cast<const char*>(value), size);
  3066. // @@protoc_insertion_point(field_set_pointer:proto3_arena_lite_unittest.TestAllTypes.repeated_bytes)
  3067. }
  3068. inline ::std::string* TestAllTypes::add_repeated_bytes() {
  3069. // @@protoc_insertion_point(field_add_mutable:proto3_arena_lite_unittest.TestAllTypes.repeated_bytes)
  3070. return repeated_bytes_.Add();
  3071. }
  3072. inline void TestAllTypes::add_repeated_bytes(const ::std::string& value) {
  3073. repeated_bytes_.Add()->assign(value);
  3074. // @@protoc_insertion_point(field_add:proto3_arena_lite_unittest.TestAllTypes.repeated_bytes)
  3075. }
  3076. #if LANG_CXX11
  3077. inline void TestAllTypes::add_repeated_bytes(::std::string&& value) {
  3078. repeated_bytes_.Add(std::move(value));
  3079. // @@protoc_insertion_point(field_add:proto3_arena_lite_unittest.TestAllTypes.repeated_bytes)
  3080. }
  3081. #endif
  3082. inline void TestAllTypes::add_repeated_bytes(const char* value) {
  3083. GOOGLE_DCHECK(value != NULL);
  3084. repeated_bytes_.Add()->assign(value);
  3085. // @@protoc_insertion_point(field_add_char:proto3_arena_lite_unittest.TestAllTypes.repeated_bytes)
  3086. }
  3087. inline void TestAllTypes::add_repeated_bytes(const void* value, size_t size) {
  3088. repeated_bytes_.Add()->assign(reinterpret_cast<const char*>(value), size);
  3089. // @@protoc_insertion_point(field_add_pointer:proto3_arena_lite_unittest.TestAllTypes.repeated_bytes)
  3090. }
  3091. inline const ::google::protobuf::RepeatedPtrField< ::std::string>&
  3092. TestAllTypes::repeated_bytes() const {
  3093. // @@protoc_insertion_point(field_list:proto3_arena_lite_unittest.TestAllTypes.repeated_bytes)
  3094. return repeated_bytes_;
  3095. }
  3096. inline ::google::protobuf::RepeatedPtrField< ::std::string>*
  3097. TestAllTypes::mutable_repeated_bytes() {
  3098. // @@protoc_insertion_point(field_mutable_list:proto3_arena_lite_unittest.TestAllTypes.repeated_bytes)
  3099. return &repeated_bytes_;
  3100. }
  3101. // repeated .proto3_arena_lite_unittest.TestAllTypes.NestedMessage repeated_nested_message = 48;
  3102. inline int TestAllTypes::repeated_nested_message_size() const {
  3103. return repeated_nested_message_.size();
  3104. }
  3105. inline void TestAllTypes::clear_repeated_nested_message() {
  3106. repeated_nested_message_.Clear();
  3107. }
  3108. inline ::proto3_arena_lite_unittest::TestAllTypes_NestedMessage* TestAllTypes::mutable_repeated_nested_message(int index) {
  3109. // @@protoc_insertion_point(field_mutable:proto3_arena_lite_unittest.TestAllTypes.repeated_nested_message)
  3110. return repeated_nested_message_.Mutable(index);
  3111. }
  3112. inline ::google::protobuf::RepeatedPtrField< ::proto3_arena_lite_unittest::TestAllTypes_NestedMessage >*
  3113. TestAllTypes::mutable_repeated_nested_message() {
  3114. // @@protoc_insertion_point(field_mutable_list:proto3_arena_lite_unittest.TestAllTypes.repeated_nested_message)
  3115. return &repeated_nested_message_;
  3116. }
  3117. inline const ::proto3_arena_lite_unittest::TestAllTypes_NestedMessage& TestAllTypes::repeated_nested_message(int index) const {
  3118. // @@protoc_insertion_point(field_get:proto3_arena_lite_unittest.TestAllTypes.repeated_nested_message)
  3119. return repeated_nested_message_.Get(index);
  3120. }
  3121. inline ::proto3_arena_lite_unittest::TestAllTypes_NestedMessage* TestAllTypes::add_repeated_nested_message() {
  3122. // @@protoc_insertion_point(field_add:proto3_arena_lite_unittest.TestAllTypes.repeated_nested_message)
  3123. return repeated_nested_message_.Add();
  3124. }
  3125. inline const ::google::protobuf::RepeatedPtrField< ::proto3_arena_lite_unittest::TestAllTypes_NestedMessage >&
  3126. TestAllTypes::repeated_nested_message() const {
  3127. // @@protoc_insertion_point(field_list:proto3_arena_lite_unittest.TestAllTypes.repeated_nested_message)
  3128. return repeated_nested_message_;
  3129. }
  3130. // repeated .proto3_arena_lite_unittest.ForeignMessage repeated_foreign_message = 49;
  3131. inline int TestAllTypes::repeated_foreign_message_size() const {
  3132. return repeated_foreign_message_.size();
  3133. }
  3134. inline void TestAllTypes::clear_repeated_foreign_message() {
  3135. repeated_foreign_message_.Clear();
  3136. }
  3137. inline ::proto3_arena_lite_unittest::ForeignMessage* TestAllTypes::mutable_repeated_foreign_message(int index) {
  3138. // @@protoc_insertion_point(field_mutable:proto3_arena_lite_unittest.TestAllTypes.repeated_foreign_message)
  3139. return repeated_foreign_message_.Mutable(index);
  3140. }
  3141. inline ::google::protobuf::RepeatedPtrField< ::proto3_arena_lite_unittest::ForeignMessage >*
  3142. TestAllTypes::mutable_repeated_foreign_message() {
  3143. // @@protoc_insertion_point(field_mutable_list:proto3_arena_lite_unittest.TestAllTypes.repeated_foreign_message)
  3144. return &repeated_foreign_message_;
  3145. }
  3146. inline const ::proto3_arena_lite_unittest::ForeignMessage& TestAllTypes::repeated_foreign_message(int index) const {
  3147. // @@protoc_insertion_point(field_get:proto3_arena_lite_unittest.TestAllTypes.repeated_foreign_message)
  3148. return repeated_foreign_message_.Get(index);
  3149. }
  3150. inline ::proto3_arena_lite_unittest::ForeignMessage* TestAllTypes::add_repeated_foreign_message() {
  3151. // @@protoc_insertion_point(field_add:proto3_arena_lite_unittest.TestAllTypes.repeated_foreign_message)
  3152. return repeated_foreign_message_.Add();
  3153. }
  3154. inline const ::google::protobuf::RepeatedPtrField< ::proto3_arena_lite_unittest::ForeignMessage >&
  3155. TestAllTypes::repeated_foreign_message() const {
  3156. // @@protoc_insertion_point(field_list:proto3_arena_lite_unittest.TestAllTypes.repeated_foreign_message)
  3157. return repeated_foreign_message_;
  3158. }
  3159. // repeated .protobuf_unittest_import.ImportMessage repeated_import_message = 50;
  3160. inline int TestAllTypes::repeated_import_message_size() const {
  3161. return repeated_import_message_.size();
  3162. }
  3163. inline ::protobuf_unittest_import::ImportMessage* TestAllTypes::mutable_repeated_import_message(int index) {
  3164. // @@protoc_insertion_point(field_mutable:proto3_arena_lite_unittest.TestAllTypes.repeated_import_message)
  3165. return repeated_import_message_.Mutable(index);
  3166. }
  3167. inline ::google::protobuf::RepeatedPtrField< ::protobuf_unittest_import::ImportMessage >*
  3168. TestAllTypes::mutable_repeated_import_message() {
  3169. // @@protoc_insertion_point(field_mutable_list:proto3_arena_lite_unittest.TestAllTypes.repeated_import_message)
  3170. return &repeated_import_message_;
  3171. }
  3172. inline const ::protobuf_unittest_import::ImportMessage& TestAllTypes::repeated_import_message(int index) const {
  3173. // @@protoc_insertion_point(field_get:proto3_arena_lite_unittest.TestAllTypes.repeated_import_message)
  3174. return repeated_import_message_.Get(index);
  3175. }
  3176. inline ::protobuf_unittest_import::ImportMessage* TestAllTypes::add_repeated_import_message() {
  3177. // @@protoc_insertion_point(field_add:proto3_arena_lite_unittest.TestAllTypes.repeated_import_message)
  3178. return repeated_import_message_.Add();
  3179. }
  3180. inline const ::google::protobuf::RepeatedPtrField< ::protobuf_unittest_import::ImportMessage >&
  3181. TestAllTypes::repeated_import_message() const {
  3182. // @@protoc_insertion_point(field_list:proto3_arena_lite_unittest.TestAllTypes.repeated_import_message)
  3183. return repeated_import_message_;
  3184. }
  3185. // repeated .proto3_arena_lite_unittest.TestAllTypes.NestedEnum repeated_nested_enum = 51;
  3186. inline int TestAllTypes::repeated_nested_enum_size() const {
  3187. return repeated_nested_enum_.size();
  3188. }
  3189. inline void TestAllTypes::clear_repeated_nested_enum() {
  3190. repeated_nested_enum_.Clear();
  3191. }
  3192. inline ::proto3_arena_lite_unittest::TestAllTypes_NestedEnum TestAllTypes::repeated_nested_enum(int index) const {
  3193. // @@protoc_insertion_point(field_get:proto3_arena_lite_unittest.TestAllTypes.repeated_nested_enum)
  3194. return static_cast< ::proto3_arena_lite_unittest::TestAllTypes_NestedEnum >(repeated_nested_enum_.Get(index));
  3195. }
  3196. inline void TestAllTypes::set_repeated_nested_enum(int index, ::proto3_arena_lite_unittest::TestAllTypes_NestedEnum value) {
  3197. repeated_nested_enum_.Set(index, value);
  3198. // @@protoc_insertion_point(field_set:proto3_arena_lite_unittest.TestAllTypes.repeated_nested_enum)
  3199. }
  3200. inline void TestAllTypes::add_repeated_nested_enum(::proto3_arena_lite_unittest::TestAllTypes_NestedEnum value) {
  3201. repeated_nested_enum_.Add(value);
  3202. // @@protoc_insertion_point(field_add:proto3_arena_lite_unittest.TestAllTypes.repeated_nested_enum)
  3203. }
  3204. inline const ::google::protobuf::RepeatedField<int>&
  3205. TestAllTypes::repeated_nested_enum() const {
  3206. // @@protoc_insertion_point(field_list:proto3_arena_lite_unittest.TestAllTypes.repeated_nested_enum)
  3207. return repeated_nested_enum_;
  3208. }
  3209. inline ::google::protobuf::RepeatedField<int>*
  3210. TestAllTypes::mutable_repeated_nested_enum() {
  3211. // @@protoc_insertion_point(field_mutable_list:proto3_arena_lite_unittest.TestAllTypes.repeated_nested_enum)
  3212. return &repeated_nested_enum_;
  3213. }
  3214. // repeated .proto3_arena_lite_unittest.ForeignEnum repeated_foreign_enum = 52;
  3215. inline int TestAllTypes::repeated_foreign_enum_size() const {
  3216. return repeated_foreign_enum_.size();
  3217. }
  3218. inline void TestAllTypes::clear_repeated_foreign_enum() {
  3219. repeated_foreign_enum_.Clear();
  3220. }
  3221. inline ::proto3_arena_lite_unittest::ForeignEnum TestAllTypes::repeated_foreign_enum(int index) const {
  3222. // @@protoc_insertion_point(field_get:proto3_arena_lite_unittest.TestAllTypes.repeated_foreign_enum)
  3223. return static_cast< ::proto3_arena_lite_unittest::ForeignEnum >(repeated_foreign_enum_.Get(index));
  3224. }
  3225. inline void TestAllTypes::set_repeated_foreign_enum(int index, ::proto3_arena_lite_unittest::ForeignEnum value) {
  3226. repeated_foreign_enum_.Set(index, value);
  3227. // @@protoc_insertion_point(field_set:proto3_arena_lite_unittest.TestAllTypes.repeated_foreign_enum)
  3228. }
  3229. inline void TestAllTypes::add_repeated_foreign_enum(::proto3_arena_lite_unittest::ForeignEnum value) {
  3230. repeated_foreign_enum_.Add(value);
  3231. // @@protoc_insertion_point(field_add:proto3_arena_lite_unittest.TestAllTypes.repeated_foreign_enum)
  3232. }
  3233. inline const ::google::protobuf::RepeatedField<int>&
  3234. TestAllTypes::repeated_foreign_enum() const {
  3235. // @@protoc_insertion_point(field_list:proto3_arena_lite_unittest.TestAllTypes.repeated_foreign_enum)
  3236. return repeated_foreign_enum_;
  3237. }
  3238. inline ::google::protobuf::RepeatedField<int>*
  3239. TestAllTypes::mutable_repeated_foreign_enum() {
  3240. // @@protoc_insertion_point(field_mutable_list:proto3_arena_lite_unittest.TestAllTypes.repeated_foreign_enum)
  3241. return &repeated_foreign_enum_;
  3242. }
  3243. // repeated string repeated_string_piece = 54 [ctype = STRING_PIECE];
  3244. inline int TestAllTypes::repeated_string_piece_size() const {
  3245. return repeated_string_piece_.size();
  3246. }
  3247. inline void TestAllTypes::clear_repeated_string_piece() {
  3248. repeated_string_piece_.Clear();
  3249. }
  3250. inline const ::std::string& TestAllTypes::repeated_string_piece(int index) const {
  3251. // @@protoc_insertion_point(field_get:proto3_arena_lite_unittest.TestAllTypes.repeated_string_piece)
  3252. return repeated_string_piece_.Get(index);
  3253. }
  3254. inline ::std::string* TestAllTypes::mutable_repeated_string_piece(int index) {
  3255. // @@protoc_insertion_point(field_mutable:proto3_arena_lite_unittest.TestAllTypes.repeated_string_piece)
  3256. return repeated_string_piece_.Mutable(index);
  3257. }
  3258. inline void TestAllTypes::set_repeated_string_piece(int index, const ::std::string& value) {
  3259. // @@protoc_insertion_point(field_set:proto3_arena_lite_unittest.TestAllTypes.repeated_string_piece)
  3260. repeated_string_piece_.Mutable(index)->assign(value);
  3261. }
  3262. #if LANG_CXX11
  3263. inline void TestAllTypes::set_repeated_string_piece(int index, ::std::string&& value) {
  3264. // @@protoc_insertion_point(field_set:proto3_arena_lite_unittest.TestAllTypes.repeated_string_piece)
  3265. repeated_string_piece_.Mutable(index)->assign(std::move(value));
  3266. }
  3267. #endif
  3268. inline void TestAllTypes::set_repeated_string_piece(int index, const char* value) {
  3269. GOOGLE_DCHECK(value != NULL);
  3270. repeated_string_piece_.Mutable(index)->assign(value);
  3271. // @@protoc_insertion_point(field_set_char:proto3_arena_lite_unittest.TestAllTypes.repeated_string_piece)
  3272. }
  3273. inline void TestAllTypes::set_repeated_string_piece(int index, const char* value, size_t size) {
  3274. repeated_string_piece_.Mutable(index)->assign(
  3275. reinterpret_cast<const char*>(value), size);
  3276. // @@protoc_insertion_point(field_set_pointer:proto3_arena_lite_unittest.TestAllTypes.repeated_string_piece)
  3277. }
  3278. inline ::std::string* TestAllTypes::add_repeated_string_piece() {
  3279. // @@protoc_insertion_point(field_add_mutable:proto3_arena_lite_unittest.TestAllTypes.repeated_string_piece)
  3280. return repeated_string_piece_.Add();
  3281. }
  3282. inline void TestAllTypes::add_repeated_string_piece(const ::std::string& value) {
  3283. repeated_string_piece_.Add()->assign(value);
  3284. // @@protoc_insertion_point(field_add:proto3_arena_lite_unittest.TestAllTypes.repeated_string_piece)
  3285. }
  3286. #if LANG_CXX11
  3287. inline void TestAllTypes::add_repeated_string_piece(::std::string&& value) {
  3288. repeated_string_piece_.Add(std::move(value));
  3289. // @@protoc_insertion_point(field_add:proto3_arena_lite_unittest.TestAllTypes.repeated_string_piece)
  3290. }
  3291. #endif
  3292. inline void TestAllTypes::add_repeated_string_piece(const char* value) {
  3293. GOOGLE_DCHECK(value != NULL);
  3294. repeated_string_piece_.Add()->assign(value);
  3295. // @@protoc_insertion_point(field_add_char:proto3_arena_lite_unittest.TestAllTypes.repeated_string_piece)
  3296. }
  3297. inline void TestAllTypes::add_repeated_string_piece(const char* value, size_t size) {
  3298. repeated_string_piece_.Add()->assign(reinterpret_cast<const char*>(value), size);
  3299. // @@protoc_insertion_point(field_add_pointer:proto3_arena_lite_unittest.TestAllTypes.repeated_string_piece)
  3300. }
  3301. inline const ::google::protobuf::RepeatedPtrField< ::std::string>&
  3302. TestAllTypes::repeated_string_piece() const {
  3303. // @@protoc_insertion_point(field_list:proto3_arena_lite_unittest.TestAllTypes.repeated_string_piece)
  3304. return repeated_string_piece_;
  3305. }
  3306. inline ::google::protobuf::RepeatedPtrField< ::std::string>*
  3307. TestAllTypes::mutable_repeated_string_piece() {
  3308. // @@protoc_insertion_point(field_mutable_list:proto3_arena_lite_unittest.TestAllTypes.repeated_string_piece)
  3309. return &repeated_string_piece_;
  3310. }
  3311. // repeated string repeated_cord = 55 [ctype = CORD];
  3312. inline int TestAllTypes::repeated_cord_size() const {
  3313. return repeated_cord_.size();
  3314. }
  3315. inline void TestAllTypes::clear_repeated_cord() {
  3316. repeated_cord_.Clear();
  3317. }
  3318. inline const ::std::string& TestAllTypes::repeated_cord(int index) const {
  3319. // @@protoc_insertion_point(field_get:proto3_arena_lite_unittest.TestAllTypes.repeated_cord)
  3320. return repeated_cord_.Get(index);
  3321. }
  3322. inline ::std::string* TestAllTypes::mutable_repeated_cord(int index) {
  3323. // @@protoc_insertion_point(field_mutable:proto3_arena_lite_unittest.TestAllTypes.repeated_cord)
  3324. return repeated_cord_.Mutable(index);
  3325. }
  3326. inline void TestAllTypes::set_repeated_cord(int index, const ::std::string& value) {
  3327. // @@protoc_insertion_point(field_set:proto3_arena_lite_unittest.TestAllTypes.repeated_cord)
  3328. repeated_cord_.Mutable(index)->assign(value);
  3329. }
  3330. #if LANG_CXX11
  3331. inline void TestAllTypes::set_repeated_cord(int index, ::std::string&& value) {
  3332. // @@protoc_insertion_point(field_set:proto3_arena_lite_unittest.TestAllTypes.repeated_cord)
  3333. repeated_cord_.Mutable(index)->assign(std::move(value));
  3334. }
  3335. #endif
  3336. inline void TestAllTypes::set_repeated_cord(int index, const char* value) {
  3337. GOOGLE_DCHECK(value != NULL);
  3338. repeated_cord_.Mutable(index)->assign(value);
  3339. // @@protoc_insertion_point(field_set_char:proto3_arena_lite_unittest.TestAllTypes.repeated_cord)
  3340. }
  3341. inline void TestAllTypes::set_repeated_cord(int index, const char* value, size_t size) {
  3342. repeated_cord_.Mutable(index)->assign(
  3343. reinterpret_cast<const char*>(value), size);
  3344. // @@protoc_insertion_point(field_set_pointer:proto3_arena_lite_unittest.TestAllTypes.repeated_cord)
  3345. }
  3346. inline ::std::string* TestAllTypes::add_repeated_cord() {
  3347. // @@protoc_insertion_point(field_add_mutable:proto3_arena_lite_unittest.TestAllTypes.repeated_cord)
  3348. return repeated_cord_.Add();
  3349. }
  3350. inline void TestAllTypes::add_repeated_cord(const ::std::string& value) {
  3351. repeated_cord_.Add()->assign(value);
  3352. // @@protoc_insertion_point(field_add:proto3_arena_lite_unittest.TestAllTypes.repeated_cord)
  3353. }
  3354. #if LANG_CXX11
  3355. inline void TestAllTypes::add_repeated_cord(::std::string&& value) {
  3356. repeated_cord_.Add(std::move(value));
  3357. // @@protoc_insertion_point(field_add:proto3_arena_lite_unittest.TestAllTypes.repeated_cord)
  3358. }
  3359. #endif
  3360. inline void TestAllTypes::add_repeated_cord(const char* value) {
  3361. GOOGLE_DCHECK(value != NULL);
  3362. repeated_cord_.Add()->assign(value);
  3363. // @@protoc_insertion_point(field_add_char:proto3_arena_lite_unittest.TestAllTypes.repeated_cord)
  3364. }
  3365. inline void TestAllTypes::add_repeated_cord(const char* value, size_t size) {
  3366. repeated_cord_.Add()->assign(reinterpret_cast<const char*>(value), size);
  3367. // @@protoc_insertion_point(field_add_pointer:proto3_arena_lite_unittest.TestAllTypes.repeated_cord)
  3368. }
  3369. inline const ::google::protobuf::RepeatedPtrField< ::std::string>&
  3370. TestAllTypes::repeated_cord() const {
  3371. // @@protoc_insertion_point(field_list:proto3_arena_lite_unittest.TestAllTypes.repeated_cord)
  3372. return repeated_cord_;
  3373. }
  3374. inline ::google::protobuf::RepeatedPtrField< ::std::string>*
  3375. TestAllTypes::mutable_repeated_cord() {
  3376. // @@protoc_insertion_point(field_mutable_list:proto3_arena_lite_unittest.TestAllTypes.repeated_cord)
  3377. return &repeated_cord_;
  3378. }
  3379. // repeated .proto3_arena_lite_unittest.TestAllTypes.NestedMessage repeated_lazy_message = 57 [lazy = true];
  3380. inline int TestAllTypes::repeated_lazy_message_size() const {
  3381. return repeated_lazy_message_.size();
  3382. }
  3383. inline void TestAllTypes::clear_repeated_lazy_message() {
  3384. repeated_lazy_message_.Clear();
  3385. }
  3386. inline ::proto3_arena_lite_unittest::TestAllTypes_NestedMessage* TestAllTypes::mutable_repeated_lazy_message(int index) {
  3387. // @@protoc_insertion_point(field_mutable:proto3_arena_lite_unittest.TestAllTypes.repeated_lazy_message)
  3388. return repeated_lazy_message_.Mutable(index);
  3389. }
  3390. inline ::google::protobuf::RepeatedPtrField< ::proto3_arena_lite_unittest::TestAllTypes_NestedMessage >*
  3391. TestAllTypes::mutable_repeated_lazy_message() {
  3392. // @@protoc_insertion_point(field_mutable_list:proto3_arena_lite_unittest.TestAllTypes.repeated_lazy_message)
  3393. return &repeated_lazy_message_;
  3394. }
  3395. inline const ::proto3_arena_lite_unittest::TestAllTypes_NestedMessage& TestAllTypes::repeated_lazy_message(int index) const {
  3396. // @@protoc_insertion_point(field_get:proto3_arena_lite_unittest.TestAllTypes.repeated_lazy_message)
  3397. return repeated_lazy_message_.Get(index);
  3398. }
  3399. inline ::proto3_arena_lite_unittest::TestAllTypes_NestedMessage* TestAllTypes::add_repeated_lazy_message() {
  3400. // @@protoc_insertion_point(field_add:proto3_arena_lite_unittest.TestAllTypes.repeated_lazy_message)
  3401. return repeated_lazy_message_.Add();
  3402. }
  3403. inline const ::google::protobuf::RepeatedPtrField< ::proto3_arena_lite_unittest::TestAllTypes_NestedMessage >&
  3404. TestAllTypes::repeated_lazy_message() const {
  3405. // @@protoc_insertion_point(field_list:proto3_arena_lite_unittest.TestAllTypes.repeated_lazy_message)
  3406. return repeated_lazy_message_;
  3407. }
  3408. // uint32 oneof_uint32 = 111;
  3409. inline bool TestAllTypes::has_oneof_uint32() const {
  3410. return oneof_field_case() == kOneofUint32;
  3411. }
  3412. inline void TestAllTypes::set_has_oneof_uint32() {
  3413. _oneof_case_[0] = kOneofUint32;
  3414. }
  3415. inline void TestAllTypes::clear_oneof_uint32() {
  3416. if (has_oneof_uint32()) {
  3417. oneof_field_.oneof_uint32_ = 0u;
  3418. clear_has_oneof_field();
  3419. }
  3420. }
  3421. inline ::google::protobuf::uint32 TestAllTypes::oneof_uint32() const {
  3422. // @@protoc_insertion_point(field_get:proto3_arena_lite_unittest.TestAllTypes.oneof_uint32)
  3423. if (has_oneof_uint32()) {
  3424. return oneof_field_.oneof_uint32_;
  3425. }
  3426. return 0u;
  3427. }
  3428. inline void TestAllTypes::set_oneof_uint32(::google::protobuf::uint32 value) {
  3429. if (!has_oneof_uint32()) {
  3430. clear_oneof_field();
  3431. set_has_oneof_uint32();
  3432. }
  3433. oneof_field_.oneof_uint32_ = value;
  3434. // @@protoc_insertion_point(field_set:proto3_arena_lite_unittest.TestAllTypes.oneof_uint32)
  3435. }
  3436. // .proto3_arena_lite_unittest.TestAllTypes.NestedMessage oneof_nested_message = 112;
  3437. inline bool TestAllTypes::has_oneof_nested_message() const {
  3438. return oneof_field_case() == kOneofNestedMessage;
  3439. }
  3440. inline void TestAllTypes::set_has_oneof_nested_message() {
  3441. _oneof_case_[0] = kOneofNestedMessage;
  3442. }
  3443. inline void TestAllTypes::clear_oneof_nested_message() {
  3444. if (has_oneof_nested_message()) {
  3445. if (GetArenaNoVirtual() == NULL) {
  3446. delete oneof_field_.oneof_nested_message_;
  3447. }
  3448. clear_has_oneof_field();
  3449. }
  3450. }
  3451. inline const ::proto3_arena_lite_unittest::TestAllTypes_NestedMessage& TestAllTypes::_internal_oneof_nested_message() const {
  3452. return *oneof_field_.oneof_nested_message_;
  3453. }
  3454. inline ::proto3_arena_lite_unittest::TestAllTypes_NestedMessage* TestAllTypes::release_oneof_nested_message() {
  3455. // @@protoc_insertion_point(field_release:proto3_arena_lite_unittest.TestAllTypes.oneof_nested_message)
  3456. if (has_oneof_nested_message()) {
  3457. clear_has_oneof_field();
  3458. ::proto3_arena_lite_unittest::TestAllTypes_NestedMessage* temp = oneof_field_.oneof_nested_message_;
  3459. if (GetArenaNoVirtual() != NULL) {
  3460. temp = ::google::protobuf::internal::DuplicateIfNonNull(temp);
  3461. }
  3462. oneof_field_.oneof_nested_message_ = NULL;
  3463. return temp;
  3464. } else {
  3465. return NULL;
  3466. }
  3467. }
  3468. inline const ::proto3_arena_lite_unittest::TestAllTypes_NestedMessage& TestAllTypes::oneof_nested_message() const {
  3469. // @@protoc_insertion_point(field_get:proto3_arena_lite_unittest.TestAllTypes.oneof_nested_message)
  3470. return has_oneof_nested_message()
  3471. ? *oneof_field_.oneof_nested_message_
  3472. : *reinterpret_cast< ::proto3_arena_lite_unittest::TestAllTypes_NestedMessage*>(&::proto3_arena_lite_unittest::_TestAllTypes_NestedMessage_default_instance_);
  3473. }
  3474. inline ::proto3_arena_lite_unittest::TestAllTypes_NestedMessage* TestAllTypes::unsafe_arena_release_oneof_nested_message() {
  3475. // @@protoc_insertion_point(field_unsafe_arena_release:proto3_arena_lite_unittest.TestAllTypes.oneof_nested_message)
  3476. if (has_oneof_nested_message()) {
  3477. clear_has_oneof_field();
  3478. ::proto3_arena_lite_unittest::TestAllTypes_NestedMessage* temp = oneof_field_.oneof_nested_message_;
  3479. oneof_field_.oneof_nested_message_ = NULL;
  3480. return temp;
  3481. } else {
  3482. return NULL;
  3483. }
  3484. }
  3485. inline void TestAllTypes::unsafe_arena_set_allocated_oneof_nested_message(::proto3_arena_lite_unittest::TestAllTypes_NestedMessage* oneof_nested_message) {
  3486. clear_oneof_field();
  3487. if (oneof_nested_message) {
  3488. set_has_oneof_nested_message();
  3489. oneof_field_.oneof_nested_message_ = oneof_nested_message;
  3490. }
  3491. // @@protoc_insertion_point(field_unsafe_arena_set_allocated:proto3_arena_lite_unittest.TestAllTypes.oneof_nested_message)
  3492. }
  3493. inline ::proto3_arena_lite_unittest::TestAllTypes_NestedMessage* TestAllTypes::mutable_oneof_nested_message() {
  3494. if (!has_oneof_nested_message()) {
  3495. clear_oneof_field();
  3496. set_has_oneof_nested_message();
  3497. oneof_field_.oneof_nested_message_ = CreateMaybeMessage< ::proto3_arena_lite_unittest::TestAllTypes_NestedMessage >(
  3498. GetArenaNoVirtual());
  3499. }
  3500. // @@protoc_insertion_point(field_mutable:proto3_arena_lite_unittest.TestAllTypes.oneof_nested_message)
  3501. return oneof_field_.oneof_nested_message_;
  3502. }
  3503. // string oneof_string = 113;
  3504. inline bool TestAllTypes::has_oneof_string() const {
  3505. return oneof_field_case() == kOneofString;
  3506. }
  3507. inline void TestAllTypes::set_has_oneof_string() {
  3508. _oneof_case_[0] = kOneofString;
  3509. }
  3510. inline void TestAllTypes::clear_oneof_string() {
  3511. if (has_oneof_string()) {
  3512. oneof_field_.oneof_string_.Destroy(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  3513. GetArenaNoVirtual());
  3514. clear_has_oneof_field();
  3515. }
  3516. }
  3517. inline const ::std::string& TestAllTypes::oneof_string() const {
  3518. // @@protoc_insertion_point(field_get:proto3_arena_lite_unittest.TestAllTypes.oneof_string)
  3519. if (has_oneof_string()) {
  3520. return oneof_field_.oneof_string_.Get();
  3521. }
  3522. return *&::google::protobuf::internal::GetEmptyStringAlreadyInited();
  3523. }
  3524. inline void TestAllTypes::set_oneof_string(const ::std::string& value) {
  3525. if (!has_oneof_string()) {
  3526. clear_oneof_field();
  3527. set_has_oneof_string();
  3528. oneof_field_.oneof_string_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  3529. }
  3530. oneof_field_.oneof_string_.SetLite(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value,
  3531. GetArenaNoVirtual());
  3532. // @@protoc_insertion_point(field_set:proto3_arena_lite_unittest.TestAllTypes.oneof_string)
  3533. }
  3534. #if LANG_CXX11
  3535. inline void TestAllTypes::set_oneof_string(::std::string&& value) {
  3536. // @@protoc_insertion_point(field_set:proto3_arena_lite_unittest.TestAllTypes.oneof_string)
  3537. if (!has_oneof_string()) {
  3538. clear_oneof_field();
  3539. set_has_oneof_string();
  3540. oneof_field_.oneof_string_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  3541. }
  3542. oneof_field_.oneof_string_.SetLite(
  3543. &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual());
  3544. // @@protoc_insertion_point(field_set_rvalue:proto3_arena_lite_unittest.TestAllTypes.oneof_string)
  3545. }
  3546. #endif
  3547. inline void TestAllTypes::set_oneof_string(const char* value) {
  3548. GOOGLE_DCHECK(value != NULL);
  3549. if (!has_oneof_string()) {
  3550. clear_oneof_field();
  3551. set_has_oneof_string();
  3552. oneof_field_.oneof_string_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  3553. }
  3554. oneof_field_.oneof_string_.SetLite(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  3555. ::std::string(value), GetArenaNoVirtual());
  3556. // @@protoc_insertion_point(field_set_char:proto3_arena_lite_unittest.TestAllTypes.oneof_string)
  3557. }
  3558. inline void TestAllTypes::set_oneof_string(const char* value,
  3559. size_t size) {
  3560. if (!has_oneof_string()) {
  3561. clear_oneof_field();
  3562. set_has_oneof_string();
  3563. oneof_field_.oneof_string_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  3564. }
  3565. oneof_field_.oneof_string_.SetLite(
  3566. &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(
  3567. reinterpret_cast<const char*>(value), size),
  3568. GetArenaNoVirtual());
  3569. // @@protoc_insertion_point(field_set_pointer:proto3_arena_lite_unittest.TestAllTypes.oneof_string)
  3570. }
  3571. inline ::std::string* TestAllTypes::mutable_oneof_string() {
  3572. if (!has_oneof_string()) {
  3573. clear_oneof_field();
  3574. set_has_oneof_string();
  3575. oneof_field_.oneof_string_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  3576. }
  3577. return oneof_field_.oneof_string_.Mutable(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  3578. GetArenaNoVirtual());
  3579. // @@protoc_insertion_point(field_mutable:proto3_arena_lite_unittest.TestAllTypes.oneof_string)
  3580. }
  3581. inline ::std::string* TestAllTypes::release_oneof_string() {
  3582. // @@protoc_insertion_point(field_release:proto3_arena_lite_unittest.TestAllTypes.oneof_string)
  3583. if (has_oneof_string()) {
  3584. clear_has_oneof_field();
  3585. return oneof_field_.oneof_string_.Release(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  3586. GetArenaNoVirtual());
  3587. } else {
  3588. return NULL;
  3589. }
  3590. }
  3591. inline void TestAllTypes::set_allocated_oneof_string(::std::string* oneof_string) {
  3592. if (!has_oneof_string()) {
  3593. oneof_field_.oneof_string_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  3594. }
  3595. clear_oneof_field();
  3596. if (oneof_string != NULL) {
  3597. set_has_oneof_string();
  3598. oneof_field_.oneof_string_.SetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), oneof_string,
  3599. GetArenaNoVirtual());
  3600. }
  3601. // @@protoc_insertion_point(field_set_allocated:proto3_arena_lite_unittest.TestAllTypes.oneof_string)
  3602. }
  3603. inline ::std::string* TestAllTypes::unsafe_arena_release_oneof_string() {
  3604. // @@protoc_insertion_point(field_unsafe_arena_release:proto3_arena_lite_unittest.TestAllTypes.oneof_string)
  3605. GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
  3606. if (has_oneof_string()) {
  3607. clear_has_oneof_field();
  3608. return oneof_field_.oneof_string_.UnsafeArenaRelease(
  3609. &::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
  3610. } else {
  3611. return NULL;
  3612. }
  3613. }
  3614. inline void TestAllTypes::unsafe_arena_set_allocated_oneof_string(::std::string* oneof_string) {
  3615. GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
  3616. if (!has_oneof_string()) {
  3617. oneof_field_.oneof_string_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  3618. }
  3619. clear_oneof_field();
  3620. if (oneof_string) {
  3621. set_has_oneof_string();
  3622. oneof_field_.oneof_string_.UnsafeArenaSetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), oneof_string, GetArenaNoVirtual());
  3623. }
  3624. // @@protoc_insertion_point(field_unsafe_arena_set_allocated:proto3_arena_lite_unittest.TestAllTypes.oneof_string)
  3625. }
  3626. // bytes oneof_bytes = 114;
  3627. inline bool TestAllTypes::has_oneof_bytes() const {
  3628. return oneof_field_case() == kOneofBytes;
  3629. }
  3630. inline void TestAllTypes::set_has_oneof_bytes() {
  3631. _oneof_case_[0] = kOneofBytes;
  3632. }
  3633. inline void TestAllTypes::clear_oneof_bytes() {
  3634. if (has_oneof_bytes()) {
  3635. oneof_field_.oneof_bytes_.Destroy(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  3636. GetArenaNoVirtual());
  3637. clear_has_oneof_field();
  3638. }
  3639. }
  3640. inline const ::std::string& TestAllTypes::oneof_bytes() const {
  3641. // @@protoc_insertion_point(field_get:proto3_arena_lite_unittest.TestAllTypes.oneof_bytes)
  3642. if (has_oneof_bytes()) {
  3643. return oneof_field_.oneof_bytes_.Get();
  3644. }
  3645. return *&::google::protobuf::internal::GetEmptyStringAlreadyInited();
  3646. }
  3647. inline void TestAllTypes::set_oneof_bytes(const ::std::string& value) {
  3648. if (!has_oneof_bytes()) {
  3649. clear_oneof_field();
  3650. set_has_oneof_bytes();
  3651. oneof_field_.oneof_bytes_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  3652. }
  3653. oneof_field_.oneof_bytes_.SetLite(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value,
  3654. GetArenaNoVirtual());
  3655. // @@protoc_insertion_point(field_set:proto3_arena_lite_unittest.TestAllTypes.oneof_bytes)
  3656. }
  3657. #if LANG_CXX11
  3658. inline void TestAllTypes::set_oneof_bytes(::std::string&& value) {
  3659. // @@protoc_insertion_point(field_set:proto3_arena_lite_unittest.TestAllTypes.oneof_bytes)
  3660. if (!has_oneof_bytes()) {
  3661. clear_oneof_field();
  3662. set_has_oneof_bytes();
  3663. oneof_field_.oneof_bytes_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  3664. }
  3665. oneof_field_.oneof_bytes_.SetLite(
  3666. &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual());
  3667. // @@protoc_insertion_point(field_set_rvalue:proto3_arena_lite_unittest.TestAllTypes.oneof_bytes)
  3668. }
  3669. #endif
  3670. inline void TestAllTypes::set_oneof_bytes(const char* value) {
  3671. GOOGLE_DCHECK(value != NULL);
  3672. if (!has_oneof_bytes()) {
  3673. clear_oneof_field();
  3674. set_has_oneof_bytes();
  3675. oneof_field_.oneof_bytes_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  3676. }
  3677. oneof_field_.oneof_bytes_.SetLite(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  3678. ::std::string(value), GetArenaNoVirtual());
  3679. // @@protoc_insertion_point(field_set_char:proto3_arena_lite_unittest.TestAllTypes.oneof_bytes)
  3680. }
  3681. inline void TestAllTypes::set_oneof_bytes(const void* value,
  3682. size_t size) {
  3683. if (!has_oneof_bytes()) {
  3684. clear_oneof_field();
  3685. set_has_oneof_bytes();
  3686. oneof_field_.oneof_bytes_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  3687. }
  3688. oneof_field_.oneof_bytes_.SetLite(
  3689. &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(
  3690. reinterpret_cast<const char*>(value), size),
  3691. GetArenaNoVirtual());
  3692. // @@protoc_insertion_point(field_set_pointer:proto3_arena_lite_unittest.TestAllTypes.oneof_bytes)
  3693. }
  3694. inline ::std::string* TestAllTypes::mutable_oneof_bytes() {
  3695. if (!has_oneof_bytes()) {
  3696. clear_oneof_field();
  3697. set_has_oneof_bytes();
  3698. oneof_field_.oneof_bytes_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  3699. }
  3700. return oneof_field_.oneof_bytes_.Mutable(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  3701. GetArenaNoVirtual());
  3702. // @@protoc_insertion_point(field_mutable:proto3_arena_lite_unittest.TestAllTypes.oneof_bytes)
  3703. }
  3704. inline ::std::string* TestAllTypes::release_oneof_bytes() {
  3705. // @@protoc_insertion_point(field_release:proto3_arena_lite_unittest.TestAllTypes.oneof_bytes)
  3706. if (has_oneof_bytes()) {
  3707. clear_has_oneof_field();
  3708. return oneof_field_.oneof_bytes_.Release(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  3709. GetArenaNoVirtual());
  3710. } else {
  3711. return NULL;
  3712. }
  3713. }
  3714. inline void TestAllTypes::set_allocated_oneof_bytes(::std::string* oneof_bytes) {
  3715. if (!has_oneof_bytes()) {
  3716. oneof_field_.oneof_bytes_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  3717. }
  3718. clear_oneof_field();
  3719. if (oneof_bytes != NULL) {
  3720. set_has_oneof_bytes();
  3721. oneof_field_.oneof_bytes_.SetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), oneof_bytes,
  3722. GetArenaNoVirtual());
  3723. }
  3724. // @@protoc_insertion_point(field_set_allocated:proto3_arena_lite_unittest.TestAllTypes.oneof_bytes)
  3725. }
  3726. inline ::std::string* TestAllTypes::unsafe_arena_release_oneof_bytes() {
  3727. // @@protoc_insertion_point(field_unsafe_arena_release:proto3_arena_lite_unittest.TestAllTypes.oneof_bytes)
  3728. GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
  3729. if (has_oneof_bytes()) {
  3730. clear_has_oneof_field();
  3731. return oneof_field_.oneof_bytes_.UnsafeArenaRelease(
  3732. &::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
  3733. } else {
  3734. return NULL;
  3735. }
  3736. }
  3737. inline void TestAllTypes::unsafe_arena_set_allocated_oneof_bytes(::std::string* oneof_bytes) {
  3738. GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
  3739. if (!has_oneof_bytes()) {
  3740. oneof_field_.oneof_bytes_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  3741. }
  3742. clear_oneof_field();
  3743. if (oneof_bytes) {
  3744. set_has_oneof_bytes();
  3745. oneof_field_.oneof_bytes_.UnsafeArenaSetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), oneof_bytes, GetArenaNoVirtual());
  3746. }
  3747. // @@protoc_insertion_point(field_unsafe_arena_set_allocated:proto3_arena_lite_unittest.TestAllTypes.oneof_bytes)
  3748. }
  3749. inline bool TestAllTypes::has_oneof_field() const {
  3750. return oneof_field_case() != ONEOF_FIELD_NOT_SET;
  3751. }
  3752. inline void TestAllTypes::clear_has_oneof_field() {
  3753. _oneof_case_[0] = ONEOF_FIELD_NOT_SET;
  3754. }
  3755. inline TestAllTypes::OneofFieldCase TestAllTypes::oneof_field_case() const {
  3756. return TestAllTypes::OneofFieldCase(_oneof_case_[0]);
  3757. }
  3758. // -------------------------------------------------------------------
  3759. // TestPackedTypes
  3760. // repeated int32 packed_int32 = 90 [packed = true];
  3761. inline int TestPackedTypes::packed_int32_size() const {
  3762. return packed_int32_.size();
  3763. }
  3764. inline void TestPackedTypes::clear_packed_int32() {
  3765. packed_int32_.Clear();
  3766. }
  3767. inline ::google::protobuf::int32 TestPackedTypes::packed_int32(int index) const {
  3768. // @@protoc_insertion_point(field_get:proto3_arena_lite_unittest.TestPackedTypes.packed_int32)
  3769. return packed_int32_.Get(index);
  3770. }
  3771. inline void TestPackedTypes::set_packed_int32(int index, ::google::protobuf::int32 value) {
  3772. packed_int32_.Set(index, value);
  3773. // @@protoc_insertion_point(field_set:proto3_arena_lite_unittest.TestPackedTypes.packed_int32)
  3774. }
  3775. inline void TestPackedTypes::add_packed_int32(::google::protobuf::int32 value) {
  3776. packed_int32_.Add(value);
  3777. // @@protoc_insertion_point(field_add:proto3_arena_lite_unittest.TestPackedTypes.packed_int32)
  3778. }
  3779. inline const ::google::protobuf::RepeatedField< ::google::protobuf::int32 >&
  3780. TestPackedTypes::packed_int32() const {
  3781. // @@protoc_insertion_point(field_list:proto3_arena_lite_unittest.TestPackedTypes.packed_int32)
  3782. return packed_int32_;
  3783. }
  3784. inline ::google::protobuf::RepeatedField< ::google::protobuf::int32 >*
  3785. TestPackedTypes::mutable_packed_int32() {
  3786. // @@protoc_insertion_point(field_mutable_list:proto3_arena_lite_unittest.TestPackedTypes.packed_int32)
  3787. return &packed_int32_;
  3788. }
  3789. // repeated int64 packed_int64 = 91 [packed = true];
  3790. inline int TestPackedTypes::packed_int64_size() const {
  3791. return packed_int64_.size();
  3792. }
  3793. inline void TestPackedTypes::clear_packed_int64() {
  3794. packed_int64_.Clear();
  3795. }
  3796. inline ::google::protobuf::int64 TestPackedTypes::packed_int64(int index) const {
  3797. // @@protoc_insertion_point(field_get:proto3_arena_lite_unittest.TestPackedTypes.packed_int64)
  3798. return packed_int64_.Get(index);
  3799. }
  3800. inline void TestPackedTypes::set_packed_int64(int index, ::google::protobuf::int64 value) {
  3801. packed_int64_.Set(index, value);
  3802. // @@protoc_insertion_point(field_set:proto3_arena_lite_unittest.TestPackedTypes.packed_int64)
  3803. }
  3804. inline void TestPackedTypes::add_packed_int64(::google::protobuf::int64 value) {
  3805. packed_int64_.Add(value);
  3806. // @@protoc_insertion_point(field_add:proto3_arena_lite_unittest.TestPackedTypes.packed_int64)
  3807. }
  3808. inline const ::google::protobuf::RepeatedField< ::google::protobuf::int64 >&
  3809. TestPackedTypes::packed_int64() const {
  3810. // @@protoc_insertion_point(field_list:proto3_arena_lite_unittest.TestPackedTypes.packed_int64)
  3811. return packed_int64_;
  3812. }
  3813. inline ::google::protobuf::RepeatedField< ::google::protobuf::int64 >*
  3814. TestPackedTypes::mutable_packed_int64() {
  3815. // @@protoc_insertion_point(field_mutable_list:proto3_arena_lite_unittest.TestPackedTypes.packed_int64)
  3816. return &packed_int64_;
  3817. }
  3818. // repeated uint32 packed_uint32 = 92 [packed = true];
  3819. inline int TestPackedTypes::packed_uint32_size() const {
  3820. return packed_uint32_.size();
  3821. }
  3822. inline void TestPackedTypes::clear_packed_uint32() {
  3823. packed_uint32_.Clear();
  3824. }
  3825. inline ::google::protobuf::uint32 TestPackedTypes::packed_uint32(int index) const {
  3826. // @@protoc_insertion_point(field_get:proto3_arena_lite_unittest.TestPackedTypes.packed_uint32)
  3827. return packed_uint32_.Get(index);
  3828. }
  3829. inline void TestPackedTypes::set_packed_uint32(int index, ::google::protobuf::uint32 value) {
  3830. packed_uint32_.Set(index, value);
  3831. // @@protoc_insertion_point(field_set:proto3_arena_lite_unittest.TestPackedTypes.packed_uint32)
  3832. }
  3833. inline void TestPackedTypes::add_packed_uint32(::google::protobuf::uint32 value) {
  3834. packed_uint32_.Add(value);
  3835. // @@protoc_insertion_point(field_add:proto3_arena_lite_unittest.TestPackedTypes.packed_uint32)
  3836. }
  3837. inline const ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >&
  3838. TestPackedTypes::packed_uint32() const {
  3839. // @@protoc_insertion_point(field_list:proto3_arena_lite_unittest.TestPackedTypes.packed_uint32)
  3840. return packed_uint32_;
  3841. }
  3842. inline ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >*
  3843. TestPackedTypes::mutable_packed_uint32() {
  3844. // @@protoc_insertion_point(field_mutable_list:proto3_arena_lite_unittest.TestPackedTypes.packed_uint32)
  3845. return &packed_uint32_;
  3846. }
  3847. // repeated uint64 packed_uint64 = 93 [packed = true];
  3848. inline int TestPackedTypes::packed_uint64_size() const {
  3849. return packed_uint64_.size();
  3850. }
  3851. inline void TestPackedTypes::clear_packed_uint64() {
  3852. packed_uint64_.Clear();
  3853. }
  3854. inline ::google::protobuf::uint64 TestPackedTypes::packed_uint64(int index) const {
  3855. // @@protoc_insertion_point(field_get:proto3_arena_lite_unittest.TestPackedTypes.packed_uint64)
  3856. return packed_uint64_.Get(index);
  3857. }
  3858. inline void TestPackedTypes::set_packed_uint64(int index, ::google::protobuf::uint64 value) {
  3859. packed_uint64_.Set(index, value);
  3860. // @@protoc_insertion_point(field_set:proto3_arena_lite_unittest.TestPackedTypes.packed_uint64)
  3861. }
  3862. inline void TestPackedTypes::add_packed_uint64(::google::protobuf::uint64 value) {
  3863. packed_uint64_.Add(value);
  3864. // @@protoc_insertion_point(field_add:proto3_arena_lite_unittest.TestPackedTypes.packed_uint64)
  3865. }
  3866. inline const ::google::protobuf::RepeatedField< ::google::protobuf::uint64 >&
  3867. TestPackedTypes::packed_uint64() const {
  3868. // @@protoc_insertion_point(field_list:proto3_arena_lite_unittest.TestPackedTypes.packed_uint64)
  3869. return packed_uint64_;
  3870. }
  3871. inline ::google::protobuf::RepeatedField< ::google::protobuf::uint64 >*
  3872. TestPackedTypes::mutable_packed_uint64() {
  3873. // @@protoc_insertion_point(field_mutable_list:proto3_arena_lite_unittest.TestPackedTypes.packed_uint64)
  3874. return &packed_uint64_;
  3875. }
  3876. // repeated sint32 packed_sint32 = 94 [packed = true];
  3877. inline int TestPackedTypes::packed_sint32_size() const {
  3878. return packed_sint32_.size();
  3879. }
  3880. inline void TestPackedTypes::clear_packed_sint32() {
  3881. packed_sint32_.Clear();
  3882. }
  3883. inline ::google::protobuf::int32 TestPackedTypes::packed_sint32(int index) const {
  3884. // @@protoc_insertion_point(field_get:proto3_arena_lite_unittest.TestPackedTypes.packed_sint32)
  3885. return packed_sint32_.Get(index);
  3886. }
  3887. inline void TestPackedTypes::set_packed_sint32(int index, ::google::protobuf::int32 value) {
  3888. packed_sint32_.Set(index, value);
  3889. // @@protoc_insertion_point(field_set:proto3_arena_lite_unittest.TestPackedTypes.packed_sint32)
  3890. }
  3891. inline void TestPackedTypes::add_packed_sint32(::google::protobuf::int32 value) {
  3892. packed_sint32_.Add(value);
  3893. // @@protoc_insertion_point(field_add:proto3_arena_lite_unittest.TestPackedTypes.packed_sint32)
  3894. }
  3895. inline const ::google::protobuf::RepeatedField< ::google::protobuf::int32 >&
  3896. TestPackedTypes::packed_sint32() const {
  3897. // @@protoc_insertion_point(field_list:proto3_arena_lite_unittest.TestPackedTypes.packed_sint32)
  3898. return packed_sint32_;
  3899. }
  3900. inline ::google::protobuf::RepeatedField< ::google::protobuf::int32 >*
  3901. TestPackedTypes::mutable_packed_sint32() {
  3902. // @@protoc_insertion_point(field_mutable_list:proto3_arena_lite_unittest.TestPackedTypes.packed_sint32)
  3903. return &packed_sint32_;
  3904. }
  3905. // repeated sint64 packed_sint64 = 95 [packed = true];
  3906. inline int TestPackedTypes::packed_sint64_size() const {
  3907. return packed_sint64_.size();
  3908. }
  3909. inline void TestPackedTypes::clear_packed_sint64() {
  3910. packed_sint64_.Clear();
  3911. }
  3912. inline ::google::protobuf::int64 TestPackedTypes::packed_sint64(int index) const {
  3913. // @@protoc_insertion_point(field_get:proto3_arena_lite_unittest.TestPackedTypes.packed_sint64)
  3914. return packed_sint64_.Get(index);
  3915. }
  3916. inline void TestPackedTypes::set_packed_sint64(int index, ::google::protobuf::int64 value) {
  3917. packed_sint64_.Set(index, value);
  3918. // @@protoc_insertion_point(field_set:proto3_arena_lite_unittest.TestPackedTypes.packed_sint64)
  3919. }
  3920. inline void TestPackedTypes::add_packed_sint64(::google::protobuf::int64 value) {
  3921. packed_sint64_.Add(value);
  3922. // @@protoc_insertion_point(field_add:proto3_arena_lite_unittest.TestPackedTypes.packed_sint64)
  3923. }
  3924. inline const ::google::protobuf::RepeatedField< ::google::protobuf::int64 >&
  3925. TestPackedTypes::packed_sint64() const {
  3926. // @@protoc_insertion_point(field_list:proto3_arena_lite_unittest.TestPackedTypes.packed_sint64)
  3927. return packed_sint64_;
  3928. }
  3929. inline ::google::protobuf::RepeatedField< ::google::protobuf::int64 >*
  3930. TestPackedTypes::mutable_packed_sint64() {
  3931. // @@protoc_insertion_point(field_mutable_list:proto3_arena_lite_unittest.TestPackedTypes.packed_sint64)
  3932. return &packed_sint64_;
  3933. }
  3934. // repeated fixed32 packed_fixed32 = 96 [packed = true];
  3935. inline int TestPackedTypes::packed_fixed32_size() const {
  3936. return packed_fixed32_.size();
  3937. }
  3938. inline void TestPackedTypes::clear_packed_fixed32() {
  3939. packed_fixed32_.Clear();
  3940. }
  3941. inline ::google::protobuf::uint32 TestPackedTypes::packed_fixed32(int index) const {
  3942. // @@protoc_insertion_point(field_get:proto3_arena_lite_unittest.TestPackedTypes.packed_fixed32)
  3943. return packed_fixed32_.Get(index);
  3944. }
  3945. inline void TestPackedTypes::set_packed_fixed32(int index, ::google::protobuf::uint32 value) {
  3946. packed_fixed32_.Set(index, value);
  3947. // @@protoc_insertion_point(field_set:proto3_arena_lite_unittest.TestPackedTypes.packed_fixed32)
  3948. }
  3949. inline void TestPackedTypes::add_packed_fixed32(::google::protobuf::uint32 value) {
  3950. packed_fixed32_.Add(value);
  3951. // @@protoc_insertion_point(field_add:proto3_arena_lite_unittest.TestPackedTypes.packed_fixed32)
  3952. }
  3953. inline const ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >&
  3954. TestPackedTypes::packed_fixed32() const {
  3955. // @@protoc_insertion_point(field_list:proto3_arena_lite_unittest.TestPackedTypes.packed_fixed32)
  3956. return packed_fixed32_;
  3957. }
  3958. inline ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >*
  3959. TestPackedTypes::mutable_packed_fixed32() {
  3960. // @@protoc_insertion_point(field_mutable_list:proto3_arena_lite_unittest.TestPackedTypes.packed_fixed32)
  3961. return &packed_fixed32_;
  3962. }
  3963. // repeated fixed64 packed_fixed64 = 97 [packed = true];
  3964. inline int TestPackedTypes::packed_fixed64_size() const {
  3965. return packed_fixed64_.size();
  3966. }
  3967. inline void TestPackedTypes::clear_packed_fixed64() {
  3968. packed_fixed64_.Clear();
  3969. }
  3970. inline ::google::protobuf::uint64 TestPackedTypes::packed_fixed64(int index) const {
  3971. // @@protoc_insertion_point(field_get:proto3_arena_lite_unittest.TestPackedTypes.packed_fixed64)
  3972. return packed_fixed64_.Get(index);
  3973. }
  3974. inline void TestPackedTypes::set_packed_fixed64(int index, ::google::protobuf::uint64 value) {
  3975. packed_fixed64_.Set(index, value);
  3976. // @@protoc_insertion_point(field_set:proto3_arena_lite_unittest.TestPackedTypes.packed_fixed64)
  3977. }
  3978. inline void TestPackedTypes::add_packed_fixed64(::google::protobuf::uint64 value) {
  3979. packed_fixed64_.Add(value);
  3980. // @@protoc_insertion_point(field_add:proto3_arena_lite_unittest.TestPackedTypes.packed_fixed64)
  3981. }
  3982. inline const ::google::protobuf::RepeatedField< ::google::protobuf::uint64 >&
  3983. TestPackedTypes::packed_fixed64() const {
  3984. // @@protoc_insertion_point(field_list:proto3_arena_lite_unittest.TestPackedTypes.packed_fixed64)
  3985. return packed_fixed64_;
  3986. }
  3987. inline ::google::protobuf::RepeatedField< ::google::protobuf::uint64 >*
  3988. TestPackedTypes::mutable_packed_fixed64() {
  3989. // @@protoc_insertion_point(field_mutable_list:proto3_arena_lite_unittest.TestPackedTypes.packed_fixed64)
  3990. return &packed_fixed64_;
  3991. }
  3992. // repeated sfixed32 packed_sfixed32 = 98 [packed = true];
  3993. inline int TestPackedTypes::packed_sfixed32_size() const {
  3994. return packed_sfixed32_.size();
  3995. }
  3996. inline void TestPackedTypes::clear_packed_sfixed32() {
  3997. packed_sfixed32_.Clear();
  3998. }
  3999. inline ::google::protobuf::int32 TestPackedTypes::packed_sfixed32(int index) const {
  4000. // @@protoc_insertion_point(field_get:proto3_arena_lite_unittest.TestPackedTypes.packed_sfixed32)
  4001. return packed_sfixed32_.Get(index);
  4002. }
  4003. inline void TestPackedTypes::set_packed_sfixed32(int index, ::google::protobuf::int32 value) {
  4004. packed_sfixed32_.Set(index, value);
  4005. // @@protoc_insertion_point(field_set:proto3_arena_lite_unittest.TestPackedTypes.packed_sfixed32)
  4006. }
  4007. inline void TestPackedTypes::add_packed_sfixed32(::google::protobuf::int32 value) {
  4008. packed_sfixed32_.Add(value);
  4009. // @@protoc_insertion_point(field_add:proto3_arena_lite_unittest.TestPackedTypes.packed_sfixed32)
  4010. }
  4011. inline const ::google::protobuf::RepeatedField< ::google::protobuf::int32 >&
  4012. TestPackedTypes::packed_sfixed32() const {
  4013. // @@protoc_insertion_point(field_list:proto3_arena_lite_unittest.TestPackedTypes.packed_sfixed32)
  4014. return packed_sfixed32_;
  4015. }
  4016. inline ::google::protobuf::RepeatedField< ::google::protobuf::int32 >*
  4017. TestPackedTypes::mutable_packed_sfixed32() {
  4018. // @@protoc_insertion_point(field_mutable_list:proto3_arena_lite_unittest.TestPackedTypes.packed_sfixed32)
  4019. return &packed_sfixed32_;
  4020. }
  4021. // repeated sfixed64 packed_sfixed64 = 99 [packed = true];
  4022. inline int TestPackedTypes::packed_sfixed64_size() const {
  4023. return packed_sfixed64_.size();
  4024. }
  4025. inline void TestPackedTypes::clear_packed_sfixed64() {
  4026. packed_sfixed64_.Clear();
  4027. }
  4028. inline ::google::protobuf::int64 TestPackedTypes::packed_sfixed64(int index) const {
  4029. // @@protoc_insertion_point(field_get:proto3_arena_lite_unittest.TestPackedTypes.packed_sfixed64)
  4030. return packed_sfixed64_.Get(index);
  4031. }
  4032. inline void TestPackedTypes::set_packed_sfixed64(int index, ::google::protobuf::int64 value) {
  4033. packed_sfixed64_.Set(index, value);
  4034. // @@protoc_insertion_point(field_set:proto3_arena_lite_unittest.TestPackedTypes.packed_sfixed64)
  4035. }
  4036. inline void TestPackedTypes::add_packed_sfixed64(::google::protobuf::int64 value) {
  4037. packed_sfixed64_.Add(value);
  4038. // @@protoc_insertion_point(field_add:proto3_arena_lite_unittest.TestPackedTypes.packed_sfixed64)
  4039. }
  4040. inline const ::google::protobuf::RepeatedField< ::google::protobuf::int64 >&
  4041. TestPackedTypes::packed_sfixed64() const {
  4042. // @@protoc_insertion_point(field_list:proto3_arena_lite_unittest.TestPackedTypes.packed_sfixed64)
  4043. return packed_sfixed64_;
  4044. }
  4045. inline ::google::protobuf::RepeatedField< ::google::protobuf::int64 >*
  4046. TestPackedTypes::mutable_packed_sfixed64() {
  4047. // @@protoc_insertion_point(field_mutable_list:proto3_arena_lite_unittest.TestPackedTypes.packed_sfixed64)
  4048. return &packed_sfixed64_;
  4049. }
  4050. // repeated float packed_float = 100 [packed = true];
  4051. inline int TestPackedTypes::packed_float_size() const {
  4052. return packed_float_.size();
  4053. }
  4054. inline void TestPackedTypes::clear_packed_float() {
  4055. packed_float_.Clear();
  4056. }
  4057. inline float TestPackedTypes::packed_float(int index) const {
  4058. // @@protoc_insertion_point(field_get:proto3_arena_lite_unittest.TestPackedTypes.packed_float)
  4059. return packed_float_.Get(index);
  4060. }
  4061. inline void TestPackedTypes::set_packed_float(int index, float value) {
  4062. packed_float_.Set(index, value);
  4063. // @@protoc_insertion_point(field_set:proto3_arena_lite_unittest.TestPackedTypes.packed_float)
  4064. }
  4065. inline void TestPackedTypes::add_packed_float(float value) {
  4066. packed_float_.Add(value);
  4067. // @@protoc_insertion_point(field_add:proto3_arena_lite_unittest.TestPackedTypes.packed_float)
  4068. }
  4069. inline const ::google::protobuf::RepeatedField< float >&
  4070. TestPackedTypes::packed_float() const {
  4071. // @@protoc_insertion_point(field_list:proto3_arena_lite_unittest.TestPackedTypes.packed_float)
  4072. return packed_float_;
  4073. }
  4074. inline ::google::protobuf::RepeatedField< float >*
  4075. TestPackedTypes::mutable_packed_float() {
  4076. // @@protoc_insertion_point(field_mutable_list:proto3_arena_lite_unittest.TestPackedTypes.packed_float)
  4077. return &packed_float_;
  4078. }
  4079. // repeated double packed_double = 101 [packed = true];
  4080. inline int TestPackedTypes::packed_double_size() const {
  4081. return packed_double_.size();
  4082. }
  4083. inline void TestPackedTypes::clear_packed_double() {
  4084. packed_double_.Clear();
  4085. }
  4086. inline double TestPackedTypes::packed_double(int index) const {
  4087. // @@protoc_insertion_point(field_get:proto3_arena_lite_unittest.TestPackedTypes.packed_double)
  4088. return packed_double_.Get(index);
  4089. }
  4090. inline void TestPackedTypes::set_packed_double(int index, double value) {
  4091. packed_double_.Set(index, value);
  4092. // @@protoc_insertion_point(field_set:proto3_arena_lite_unittest.TestPackedTypes.packed_double)
  4093. }
  4094. inline void TestPackedTypes::add_packed_double(double value) {
  4095. packed_double_.Add(value);
  4096. // @@protoc_insertion_point(field_add:proto3_arena_lite_unittest.TestPackedTypes.packed_double)
  4097. }
  4098. inline const ::google::protobuf::RepeatedField< double >&
  4099. TestPackedTypes::packed_double() const {
  4100. // @@protoc_insertion_point(field_list:proto3_arena_lite_unittest.TestPackedTypes.packed_double)
  4101. return packed_double_;
  4102. }
  4103. inline ::google::protobuf::RepeatedField< double >*
  4104. TestPackedTypes::mutable_packed_double() {
  4105. // @@protoc_insertion_point(field_mutable_list:proto3_arena_lite_unittest.TestPackedTypes.packed_double)
  4106. return &packed_double_;
  4107. }
  4108. // repeated bool packed_bool = 102 [packed = true];
  4109. inline int TestPackedTypes::packed_bool_size() const {
  4110. return packed_bool_.size();
  4111. }
  4112. inline void TestPackedTypes::clear_packed_bool() {
  4113. packed_bool_.Clear();
  4114. }
  4115. inline bool TestPackedTypes::packed_bool(int index) const {
  4116. // @@protoc_insertion_point(field_get:proto3_arena_lite_unittest.TestPackedTypes.packed_bool)
  4117. return packed_bool_.Get(index);
  4118. }
  4119. inline void TestPackedTypes::set_packed_bool(int index, bool value) {
  4120. packed_bool_.Set(index, value);
  4121. // @@protoc_insertion_point(field_set:proto3_arena_lite_unittest.TestPackedTypes.packed_bool)
  4122. }
  4123. inline void TestPackedTypes::add_packed_bool(bool value) {
  4124. packed_bool_.Add(value);
  4125. // @@protoc_insertion_point(field_add:proto3_arena_lite_unittest.TestPackedTypes.packed_bool)
  4126. }
  4127. inline const ::google::protobuf::RepeatedField< bool >&
  4128. TestPackedTypes::packed_bool() const {
  4129. // @@protoc_insertion_point(field_list:proto3_arena_lite_unittest.TestPackedTypes.packed_bool)
  4130. return packed_bool_;
  4131. }
  4132. inline ::google::protobuf::RepeatedField< bool >*
  4133. TestPackedTypes::mutable_packed_bool() {
  4134. // @@protoc_insertion_point(field_mutable_list:proto3_arena_lite_unittest.TestPackedTypes.packed_bool)
  4135. return &packed_bool_;
  4136. }
  4137. // repeated .proto3_arena_lite_unittest.ForeignEnum packed_enum = 103 [packed = true];
  4138. inline int TestPackedTypes::packed_enum_size() const {
  4139. return packed_enum_.size();
  4140. }
  4141. inline void TestPackedTypes::clear_packed_enum() {
  4142. packed_enum_.Clear();
  4143. }
  4144. inline ::proto3_arena_lite_unittest::ForeignEnum TestPackedTypes::packed_enum(int index) const {
  4145. // @@protoc_insertion_point(field_get:proto3_arena_lite_unittest.TestPackedTypes.packed_enum)
  4146. return static_cast< ::proto3_arena_lite_unittest::ForeignEnum >(packed_enum_.Get(index));
  4147. }
  4148. inline void TestPackedTypes::set_packed_enum(int index, ::proto3_arena_lite_unittest::ForeignEnum value) {
  4149. packed_enum_.Set(index, value);
  4150. // @@protoc_insertion_point(field_set:proto3_arena_lite_unittest.TestPackedTypes.packed_enum)
  4151. }
  4152. inline void TestPackedTypes::add_packed_enum(::proto3_arena_lite_unittest::ForeignEnum value) {
  4153. packed_enum_.Add(value);
  4154. // @@protoc_insertion_point(field_add:proto3_arena_lite_unittest.TestPackedTypes.packed_enum)
  4155. }
  4156. inline const ::google::protobuf::RepeatedField<int>&
  4157. TestPackedTypes::packed_enum() const {
  4158. // @@protoc_insertion_point(field_list:proto3_arena_lite_unittest.TestPackedTypes.packed_enum)
  4159. return packed_enum_;
  4160. }
  4161. inline ::google::protobuf::RepeatedField<int>*
  4162. TestPackedTypes::mutable_packed_enum() {
  4163. // @@protoc_insertion_point(field_mutable_list:proto3_arena_lite_unittest.TestPackedTypes.packed_enum)
  4164. return &packed_enum_;
  4165. }
  4166. // -------------------------------------------------------------------
  4167. // TestUnpackedTypes
  4168. // repeated int32 repeated_int32 = 1 [packed = false];
  4169. inline int TestUnpackedTypes::repeated_int32_size() const {
  4170. return repeated_int32_.size();
  4171. }
  4172. inline void TestUnpackedTypes::clear_repeated_int32() {
  4173. repeated_int32_.Clear();
  4174. }
  4175. inline ::google::protobuf::int32 TestUnpackedTypes::repeated_int32(int index) const {
  4176. // @@protoc_insertion_point(field_get:proto3_arena_lite_unittest.TestUnpackedTypes.repeated_int32)
  4177. return repeated_int32_.Get(index);
  4178. }
  4179. inline void TestUnpackedTypes::set_repeated_int32(int index, ::google::protobuf::int32 value) {
  4180. repeated_int32_.Set(index, value);
  4181. // @@protoc_insertion_point(field_set:proto3_arena_lite_unittest.TestUnpackedTypes.repeated_int32)
  4182. }
  4183. inline void TestUnpackedTypes::add_repeated_int32(::google::protobuf::int32 value) {
  4184. repeated_int32_.Add(value);
  4185. // @@protoc_insertion_point(field_add:proto3_arena_lite_unittest.TestUnpackedTypes.repeated_int32)
  4186. }
  4187. inline const ::google::protobuf::RepeatedField< ::google::protobuf::int32 >&
  4188. TestUnpackedTypes::repeated_int32() const {
  4189. // @@protoc_insertion_point(field_list:proto3_arena_lite_unittest.TestUnpackedTypes.repeated_int32)
  4190. return repeated_int32_;
  4191. }
  4192. inline ::google::protobuf::RepeatedField< ::google::protobuf::int32 >*
  4193. TestUnpackedTypes::mutable_repeated_int32() {
  4194. // @@protoc_insertion_point(field_mutable_list:proto3_arena_lite_unittest.TestUnpackedTypes.repeated_int32)
  4195. return &repeated_int32_;
  4196. }
  4197. // repeated int64 repeated_int64 = 2 [packed = false];
  4198. inline int TestUnpackedTypes::repeated_int64_size() const {
  4199. return repeated_int64_.size();
  4200. }
  4201. inline void TestUnpackedTypes::clear_repeated_int64() {
  4202. repeated_int64_.Clear();
  4203. }
  4204. inline ::google::protobuf::int64 TestUnpackedTypes::repeated_int64(int index) const {
  4205. // @@protoc_insertion_point(field_get:proto3_arena_lite_unittest.TestUnpackedTypes.repeated_int64)
  4206. return repeated_int64_.Get(index);
  4207. }
  4208. inline void TestUnpackedTypes::set_repeated_int64(int index, ::google::protobuf::int64 value) {
  4209. repeated_int64_.Set(index, value);
  4210. // @@protoc_insertion_point(field_set:proto3_arena_lite_unittest.TestUnpackedTypes.repeated_int64)
  4211. }
  4212. inline void TestUnpackedTypes::add_repeated_int64(::google::protobuf::int64 value) {
  4213. repeated_int64_.Add(value);
  4214. // @@protoc_insertion_point(field_add:proto3_arena_lite_unittest.TestUnpackedTypes.repeated_int64)
  4215. }
  4216. inline const ::google::protobuf::RepeatedField< ::google::protobuf::int64 >&
  4217. TestUnpackedTypes::repeated_int64() const {
  4218. // @@protoc_insertion_point(field_list:proto3_arena_lite_unittest.TestUnpackedTypes.repeated_int64)
  4219. return repeated_int64_;
  4220. }
  4221. inline ::google::protobuf::RepeatedField< ::google::protobuf::int64 >*
  4222. TestUnpackedTypes::mutable_repeated_int64() {
  4223. // @@protoc_insertion_point(field_mutable_list:proto3_arena_lite_unittest.TestUnpackedTypes.repeated_int64)
  4224. return &repeated_int64_;
  4225. }
  4226. // repeated uint32 repeated_uint32 = 3 [packed = false];
  4227. inline int TestUnpackedTypes::repeated_uint32_size() const {
  4228. return repeated_uint32_.size();
  4229. }
  4230. inline void TestUnpackedTypes::clear_repeated_uint32() {
  4231. repeated_uint32_.Clear();
  4232. }
  4233. inline ::google::protobuf::uint32 TestUnpackedTypes::repeated_uint32(int index) const {
  4234. // @@protoc_insertion_point(field_get:proto3_arena_lite_unittest.TestUnpackedTypes.repeated_uint32)
  4235. return repeated_uint32_.Get(index);
  4236. }
  4237. inline void TestUnpackedTypes::set_repeated_uint32(int index, ::google::protobuf::uint32 value) {
  4238. repeated_uint32_.Set(index, value);
  4239. // @@protoc_insertion_point(field_set:proto3_arena_lite_unittest.TestUnpackedTypes.repeated_uint32)
  4240. }
  4241. inline void TestUnpackedTypes::add_repeated_uint32(::google::protobuf::uint32 value) {
  4242. repeated_uint32_.Add(value);
  4243. // @@protoc_insertion_point(field_add:proto3_arena_lite_unittest.TestUnpackedTypes.repeated_uint32)
  4244. }
  4245. inline const ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >&
  4246. TestUnpackedTypes::repeated_uint32() const {
  4247. // @@protoc_insertion_point(field_list:proto3_arena_lite_unittest.TestUnpackedTypes.repeated_uint32)
  4248. return repeated_uint32_;
  4249. }
  4250. inline ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >*
  4251. TestUnpackedTypes::mutable_repeated_uint32() {
  4252. // @@protoc_insertion_point(field_mutable_list:proto3_arena_lite_unittest.TestUnpackedTypes.repeated_uint32)
  4253. return &repeated_uint32_;
  4254. }
  4255. // repeated uint64 repeated_uint64 = 4 [packed = false];
  4256. inline int TestUnpackedTypes::repeated_uint64_size() const {
  4257. return repeated_uint64_.size();
  4258. }
  4259. inline void TestUnpackedTypes::clear_repeated_uint64() {
  4260. repeated_uint64_.Clear();
  4261. }
  4262. inline ::google::protobuf::uint64 TestUnpackedTypes::repeated_uint64(int index) const {
  4263. // @@protoc_insertion_point(field_get:proto3_arena_lite_unittest.TestUnpackedTypes.repeated_uint64)
  4264. return repeated_uint64_.Get(index);
  4265. }
  4266. inline void TestUnpackedTypes::set_repeated_uint64(int index, ::google::protobuf::uint64 value) {
  4267. repeated_uint64_.Set(index, value);
  4268. // @@protoc_insertion_point(field_set:proto3_arena_lite_unittest.TestUnpackedTypes.repeated_uint64)
  4269. }
  4270. inline void TestUnpackedTypes::add_repeated_uint64(::google::protobuf::uint64 value) {
  4271. repeated_uint64_.Add(value);
  4272. // @@protoc_insertion_point(field_add:proto3_arena_lite_unittest.TestUnpackedTypes.repeated_uint64)
  4273. }
  4274. inline const ::google::protobuf::RepeatedField< ::google::protobuf::uint64 >&
  4275. TestUnpackedTypes::repeated_uint64() const {
  4276. // @@protoc_insertion_point(field_list:proto3_arena_lite_unittest.TestUnpackedTypes.repeated_uint64)
  4277. return repeated_uint64_;
  4278. }
  4279. inline ::google::protobuf::RepeatedField< ::google::protobuf::uint64 >*
  4280. TestUnpackedTypes::mutable_repeated_uint64() {
  4281. // @@protoc_insertion_point(field_mutable_list:proto3_arena_lite_unittest.TestUnpackedTypes.repeated_uint64)
  4282. return &repeated_uint64_;
  4283. }
  4284. // repeated sint32 repeated_sint32 = 5 [packed = false];
  4285. inline int TestUnpackedTypes::repeated_sint32_size() const {
  4286. return repeated_sint32_.size();
  4287. }
  4288. inline void TestUnpackedTypes::clear_repeated_sint32() {
  4289. repeated_sint32_.Clear();
  4290. }
  4291. inline ::google::protobuf::int32 TestUnpackedTypes::repeated_sint32(int index) const {
  4292. // @@protoc_insertion_point(field_get:proto3_arena_lite_unittest.TestUnpackedTypes.repeated_sint32)
  4293. return repeated_sint32_.Get(index);
  4294. }
  4295. inline void TestUnpackedTypes::set_repeated_sint32(int index, ::google::protobuf::int32 value) {
  4296. repeated_sint32_.Set(index, value);
  4297. // @@protoc_insertion_point(field_set:proto3_arena_lite_unittest.TestUnpackedTypes.repeated_sint32)
  4298. }
  4299. inline void TestUnpackedTypes::add_repeated_sint32(::google::protobuf::int32 value) {
  4300. repeated_sint32_.Add(value);
  4301. // @@protoc_insertion_point(field_add:proto3_arena_lite_unittest.TestUnpackedTypes.repeated_sint32)
  4302. }
  4303. inline const ::google::protobuf::RepeatedField< ::google::protobuf::int32 >&
  4304. TestUnpackedTypes::repeated_sint32() const {
  4305. // @@protoc_insertion_point(field_list:proto3_arena_lite_unittest.TestUnpackedTypes.repeated_sint32)
  4306. return repeated_sint32_;
  4307. }
  4308. inline ::google::protobuf::RepeatedField< ::google::protobuf::int32 >*
  4309. TestUnpackedTypes::mutable_repeated_sint32() {
  4310. // @@protoc_insertion_point(field_mutable_list:proto3_arena_lite_unittest.TestUnpackedTypes.repeated_sint32)
  4311. return &repeated_sint32_;
  4312. }
  4313. // repeated sint64 repeated_sint64 = 6 [packed = false];
  4314. inline int TestUnpackedTypes::repeated_sint64_size() const {
  4315. return repeated_sint64_.size();
  4316. }
  4317. inline void TestUnpackedTypes::clear_repeated_sint64() {
  4318. repeated_sint64_.Clear();
  4319. }
  4320. inline ::google::protobuf::int64 TestUnpackedTypes::repeated_sint64(int index) const {
  4321. // @@protoc_insertion_point(field_get:proto3_arena_lite_unittest.TestUnpackedTypes.repeated_sint64)
  4322. return repeated_sint64_.Get(index);
  4323. }
  4324. inline void TestUnpackedTypes::set_repeated_sint64(int index, ::google::protobuf::int64 value) {
  4325. repeated_sint64_.Set(index, value);
  4326. // @@protoc_insertion_point(field_set:proto3_arena_lite_unittest.TestUnpackedTypes.repeated_sint64)
  4327. }
  4328. inline void TestUnpackedTypes::add_repeated_sint64(::google::protobuf::int64 value) {
  4329. repeated_sint64_.Add(value);
  4330. // @@protoc_insertion_point(field_add:proto3_arena_lite_unittest.TestUnpackedTypes.repeated_sint64)
  4331. }
  4332. inline const ::google::protobuf::RepeatedField< ::google::protobuf::int64 >&
  4333. TestUnpackedTypes::repeated_sint64() const {
  4334. // @@protoc_insertion_point(field_list:proto3_arena_lite_unittest.TestUnpackedTypes.repeated_sint64)
  4335. return repeated_sint64_;
  4336. }
  4337. inline ::google::protobuf::RepeatedField< ::google::protobuf::int64 >*
  4338. TestUnpackedTypes::mutable_repeated_sint64() {
  4339. // @@protoc_insertion_point(field_mutable_list:proto3_arena_lite_unittest.TestUnpackedTypes.repeated_sint64)
  4340. return &repeated_sint64_;
  4341. }
  4342. // repeated fixed32 repeated_fixed32 = 7 [packed = false];
  4343. inline int TestUnpackedTypes::repeated_fixed32_size() const {
  4344. return repeated_fixed32_.size();
  4345. }
  4346. inline void TestUnpackedTypes::clear_repeated_fixed32() {
  4347. repeated_fixed32_.Clear();
  4348. }
  4349. inline ::google::protobuf::uint32 TestUnpackedTypes::repeated_fixed32(int index) const {
  4350. // @@protoc_insertion_point(field_get:proto3_arena_lite_unittest.TestUnpackedTypes.repeated_fixed32)
  4351. return repeated_fixed32_.Get(index);
  4352. }
  4353. inline void TestUnpackedTypes::set_repeated_fixed32(int index, ::google::protobuf::uint32 value) {
  4354. repeated_fixed32_.Set(index, value);
  4355. // @@protoc_insertion_point(field_set:proto3_arena_lite_unittest.TestUnpackedTypes.repeated_fixed32)
  4356. }
  4357. inline void TestUnpackedTypes::add_repeated_fixed32(::google::protobuf::uint32 value) {
  4358. repeated_fixed32_.Add(value);
  4359. // @@protoc_insertion_point(field_add:proto3_arena_lite_unittest.TestUnpackedTypes.repeated_fixed32)
  4360. }
  4361. inline const ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >&
  4362. TestUnpackedTypes::repeated_fixed32() const {
  4363. // @@protoc_insertion_point(field_list:proto3_arena_lite_unittest.TestUnpackedTypes.repeated_fixed32)
  4364. return repeated_fixed32_;
  4365. }
  4366. inline ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >*
  4367. TestUnpackedTypes::mutable_repeated_fixed32() {
  4368. // @@protoc_insertion_point(field_mutable_list:proto3_arena_lite_unittest.TestUnpackedTypes.repeated_fixed32)
  4369. return &repeated_fixed32_;
  4370. }
  4371. // repeated fixed64 repeated_fixed64 = 8 [packed = false];
  4372. inline int TestUnpackedTypes::repeated_fixed64_size() const {
  4373. return repeated_fixed64_.size();
  4374. }
  4375. inline void TestUnpackedTypes::clear_repeated_fixed64() {
  4376. repeated_fixed64_.Clear();
  4377. }
  4378. inline ::google::protobuf::uint64 TestUnpackedTypes::repeated_fixed64(int index) const {
  4379. // @@protoc_insertion_point(field_get:proto3_arena_lite_unittest.TestUnpackedTypes.repeated_fixed64)
  4380. return repeated_fixed64_.Get(index);
  4381. }
  4382. inline void TestUnpackedTypes::set_repeated_fixed64(int index, ::google::protobuf::uint64 value) {
  4383. repeated_fixed64_.Set(index, value);
  4384. // @@protoc_insertion_point(field_set:proto3_arena_lite_unittest.TestUnpackedTypes.repeated_fixed64)
  4385. }
  4386. inline void TestUnpackedTypes::add_repeated_fixed64(::google::protobuf::uint64 value) {
  4387. repeated_fixed64_.Add(value);
  4388. // @@protoc_insertion_point(field_add:proto3_arena_lite_unittest.TestUnpackedTypes.repeated_fixed64)
  4389. }
  4390. inline const ::google::protobuf::RepeatedField< ::google::protobuf::uint64 >&
  4391. TestUnpackedTypes::repeated_fixed64() const {
  4392. // @@protoc_insertion_point(field_list:proto3_arena_lite_unittest.TestUnpackedTypes.repeated_fixed64)
  4393. return repeated_fixed64_;
  4394. }
  4395. inline ::google::protobuf::RepeatedField< ::google::protobuf::uint64 >*
  4396. TestUnpackedTypes::mutable_repeated_fixed64() {
  4397. // @@protoc_insertion_point(field_mutable_list:proto3_arena_lite_unittest.TestUnpackedTypes.repeated_fixed64)
  4398. return &repeated_fixed64_;
  4399. }
  4400. // repeated sfixed32 repeated_sfixed32 = 9 [packed = false];
  4401. inline int TestUnpackedTypes::repeated_sfixed32_size() const {
  4402. return repeated_sfixed32_.size();
  4403. }
  4404. inline void TestUnpackedTypes::clear_repeated_sfixed32() {
  4405. repeated_sfixed32_.Clear();
  4406. }
  4407. inline ::google::protobuf::int32 TestUnpackedTypes::repeated_sfixed32(int index) const {
  4408. // @@protoc_insertion_point(field_get:proto3_arena_lite_unittest.TestUnpackedTypes.repeated_sfixed32)
  4409. return repeated_sfixed32_.Get(index);
  4410. }
  4411. inline void TestUnpackedTypes::set_repeated_sfixed32(int index, ::google::protobuf::int32 value) {
  4412. repeated_sfixed32_.Set(index, value);
  4413. // @@protoc_insertion_point(field_set:proto3_arena_lite_unittest.TestUnpackedTypes.repeated_sfixed32)
  4414. }
  4415. inline void TestUnpackedTypes::add_repeated_sfixed32(::google::protobuf::int32 value) {
  4416. repeated_sfixed32_.Add(value);
  4417. // @@protoc_insertion_point(field_add:proto3_arena_lite_unittest.TestUnpackedTypes.repeated_sfixed32)
  4418. }
  4419. inline const ::google::protobuf::RepeatedField< ::google::protobuf::int32 >&
  4420. TestUnpackedTypes::repeated_sfixed32() const {
  4421. // @@protoc_insertion_point(field_list:proto3_arena_lite_unittest.TestUnpackedTypes.repeated_sfixed32)
  4422. return repeated_sfixed32_;
  4423. }
  4424. inline ::google::protobuf::RepeatedField< ::google::protobuf::int32 >*
  4425. TestUnpackedTypes::mutable_repeated_sfixed32() {
  4426. // @@protoc_insertion_point(field_mutable_list:proto3_arena_lite_unittest.TestUnpackedTypes.repeated_sfixed32)
  4427. return &repeated_sfixed32_;
  4428. }
  4429. // repeated sfixed64 repeated_sfixed64 = 10 [packed = false];
  4430. inline int TestUnpackedTypes::repeated_sfixed64_size() const {
  4431. return repeated_sfixed64_.size();
  4432. }
  4433. inline void TestUnpackedTypes::clear_repeated_sfixed64() {
  4434. repeated_sfixed64_.Clear();
  4435. }
  4436. inline ::google::protobuf::int64 TestUnpackedTypes::repeated_sfixed64(int index) const {
  4437. // @@protoc_insertion_point(field_get:proto3_arena_lite_unittest.TestUnpackedTypes.repeated_sfixed64)
  4438. return repeated_sfixed64_.Get(index);
  4439. }
  4440. inline void TestUnpackedTypes::set_repeated_sfixed64(int index, ::google::protobuf::int64 value) {
  4441. repeated_sfixed64_.Set(index, value);
  4442. // @@protoc_insertion_point(field_set:proto3_arena_lite_unittest.TestUnpackedTypes.repeated_sfixed64)
  4443. }
  4444. inline void TestUnpackedTypes::add_repeated_sfixed64(::google::protobuf::int64 value) {
  4445. repeated_sfixed64_.Add(value);
  4446. // @@protoc_insertion_point(field_add:proto3_arena_lite_unittest.TestUnpackedTypes.repeated_sfixed64)
  4447. }
  4448. inline const ::google::protobuf::RepeatedField< ::google::protobuf::int64 >&
  4449. TestUnpackedTypes::repeated_sfixed64() const {
  4450. // @@protoc_insertion_point(field_list:proto3_arena_lite_unittest.TestUnpackedTypes.repeated_sfixed64)
  4451. return repeated_sfixed64_;
  4452. }
  4453. inline ::google::protobuf::RepeatedField< ::google::protobuf::int64 >*
  4454. TestUnpackedTypes::mutable_repeated_sfixed64() {
  4455. // @@protoc_insertion_point(field_mutable_list:proto3_arena_lite_unittest.TestUnpackedTypes.repeated_sfixed64)
  4456. return &repeated_sfixed64_;
  4457. }
  4458. // repeated float repeated_float = 11 [packed = false];
  4459. inline int TestUnpackedTypes::repeated_float_size() const {
  4460. return repeated_float_.size();
  4461. }
  4462. inline void TestUnpackedTypes::clear_repeated_float() {
  4463. repeated_float_.Clear();
  4464. }
  4465. inline float TestUnpackedTypes::repeated_float(int index) const {
  4466. // @@protoc_insertion_point(field_get:proto3_arena_lite_unittest.TestUnpackedTypes.repeated_float)
  4467. return repeated_float_.Get(index);
  4468. }
  4469. inline void TestUnpackedTypes::set_repeated_float(int index, float value) {
  4470. repeated_float_.Set(index, value);
  4471. // @@protoc_insertion_point(field_set:proto3_arena_lite_unittest.TestUnpackedTypes.repeated_float)
  4472. }
  4473. inline void TestUnpackedTypes::add_repeated_float(float value) {
  4474. repeated_float_.Add(value);
  4475. // @@protoc_insertion_point(field_add:proto3_arena_lite_unittest.TestUnpackedTypes.repeated_float)
  4476. }
  4477. inline const ::google::protobuf::RepeatedField< float >&
  4478. TestUnpackedTypes::repeated_float() const {
  4479. // @@protoc_insertion_point(field_list:proto3_arena_lite_unittest.TestUnpackedTypes.repeated_float)
  4480. return repeated_float_;
  4481. }
  4482. inline ::google::protobuf::RepeatedField< float >*
  4483. TestUnpackedTypes::mutable_repeated_float() {
  4484. // @@protoc_insertion_point(field_mutable_list:proto3_arena_lite_unittest.TestUnpackedTypes.repeated_float)
  4485. return &repeated_float_;
  4486. }
  4487. // repeated double repeated_double = 12 [packed = false];
  4488. inline int TestUnpackedTypes::repeated_double_size() const {
  4489. return repeated_double_.size();
  4490. }
  4491. inline void TestUnpackedTypes::clear_repeated_double() {
  4492. repeated_double_.Clear();
  4493. }
  4494. inline double TestUnpackedTypes::repeated_double(int index) const {
  4495. // @@protoc_insertion_point(field_get:proto3_arena_lite_unittest.TestUnpackedTypes.repeated_double)
  4496. return repeated_double_.Get(index);
  4497. }
  4498. inline void TestUnpackedTypes::set_repeated_double(int index, double value) {
  4499. repeated_double_.Set(index, value);
  4500. // @@protoc_insertion_point(field_set:proto3_arena_lite_unittest.TestUnpackedTypes.repeated_double)
  4501. }
  4502. inline void TestUnpackedTypes::add_repeated_double(double value) {
  4503. repeated_double_.Add(value);
  4504. // @@protoc_insertion_point(field_add:proto3_arena_lite_unittest.TestUnpackedTypes.repeated_double)
  4505. }
  4506. inline const ::google::protobuf::RepeatedField< double >&
  4507. TestUnpackedTypes::repeated_double() const {
  4508. // @@protoc_insertion_point(field_list:proto3_arena_lite_unittest.TestUnpackedTypes.repeated_double)
  4509. return repeated_double_;
  4510. }
  4511. inline ::google::protobuf::RepeatedField< double >*
  4512. TestUnpackedTypes::mutable_repeated_double() {
  4513. // @@protoc_insertion_point(field_mutable_list:proto3_arena_lite_unittest.TestUnpackedTypes.repeated_double)
  4514. return &repeated_double_;
  4515. }
  4516. // repeated bool repeated_bool = 13 [packed = false];
  4517. inline int TestUnpackedTypes::repeated_bool_size() const {
  4518. return repeated_bool_.size();
  4519. }
  4520. inline void TestUnpackedTypes::clear_repeated_bool() {
  4521. repeated_bool_.Clear();
  4522. }
  4523. inline bool TestUnpackedTypes::repeated_bool(int index) const {
  4524. // @@protoc_insertion_point(field_get:proto3_arena_lite_unittest.TestUnpackedTypes.repeated_bool)
  4525. return repeated_bool_.Get(index);
  4526. }
  4527. inline void TestUnpackedTypes::set_repeated_bool(int index, bool value) {
  4528. repeated_bool_.Set(index, value);
  4529. // @@protoc_insertion_point(field_set:proto3_arena_lite_unittest.TestUnpackedTypes.repeated_bool)
  4530. }
  4531. inline void TestUnpackedTypes::add_repeated_bool(bool value) {
  4532. repeated_bool_.Add(value);
  4533. // @@protoc_insertion_point(field_add:proto3_arena_lite_unittest.TestUnpackedTypes.repeated_bool)
  4534. }
  4535. inline const ::google::protobuf::RepeatedField< bool >&
  4536. TestUnpackedTypes::repeated_bool() const {
  4537. // @@protoc_insertion_point(field_list:proto3_arena_lite_unittest.TestUnpackedTypes.repeated_bool)
  4538. return repeated_bool_;
  4539. }
  4540. inline ::google::protobuf::RepeatedField< bool >*
  4541. TestUnpackedTypes::mutable_repeated_bool() {
  4542. // @@protoc_insertion_point(field_mutable_list:proto3_arena_lite_unittest.TestUnpackedTypes.repeated_bool)
  4543. return &repeated_bool_;
  4544. }
  4545. // repeated .proto3_arena_lite_unittest.TestAllTypes.NestedEnum repeated_nested_enum = 14 [packed = false];
  4546. inline int TestUnpackedTypes::repeated_nested_enum_size() const {
  4547. return repeated_nested_enum_.size();
  4548. }
  4549. inline void TestUnpackedTypes::clear_repeated_nested_enum() {
  4550. repeated_nested_enum_.Clear();
  4551. }
  4552. inline ::proto3_arena_lite_unittest::TestAllTypes_NestedEnum TestUnpackedTypes::repeated_nested_enum(int index) const {
  4553. // @@protoc_insertion_point(field_get:proto3_arena_lite_unittest.TestUnpackedTypes.repeated_nested_enum)
  4554. return static_cast< ::proto3_arena_lite_unittest::TestAllTypes_NestedEnum >(repeated_nested_enum_.Get(index));
  4555. }
  4556. inline void TestUnpackedTypes::set_repeated_nested_enum(int index, ::proto3_arena_lite_unittest::TestAllTypes_NestedEnum value) {
  4557. repeated_nested_enum_.Set(index, value);
  4558. // @@protoc_insertion_point(field_set:proto3_arena_lite_unittest.TestUnpackedTypes.repeated_nested_enum)
  4559. }
  4560. inline void TestUnpackedTypes::add_repeated_nested_enum(::proto3_arena_lite_unittest::TestAllTypes_NestedEnum value) {
  4561. repeated_nested_enum_.Add(value);
  4562. // @@protoc_insertion_point(field_add:proto3_arena_lite_unittest.TestUnpackedTypes.repeated_nested_enum)
  4563. }
  4564. inline const ::google::protobuf::RepeatedField<int>&
  4565. TestUnpackedTypes::repeated_nested_enum() const {
  4566. // @@protoc_insertion_point(field_list:proto3_arena_lite_unittest.TestUnpackedTypes.repeated_nested_enum)
  4567. return repeated_nested_enum_;
  4568. }
  4569. inline ::google::protobuf::RepeatedField<int>*
  4570. TestUnpackedTypes::mutable_repeated_nested_enum() {
  4571. // @@protoc_insertion_point(field_mutable_list:proto3_arena_lite_unittest.TestUnpackedTypes.repeated_nested_enum)
  4572. return &repeated_nested_enum_;
  4573. }
  4574. // -------------------------------------------------------------------
  4575. // NestedTestAllTypes
  4576. // .proto3_arena_lite_unittest.NestedTestAllTypes child = 1;
  4577. inline bool NestedTestAllTypes::has_child() const {
  4578. return this != internal_default_instance() && child_ != NULL;
  4579. }
  4580. inline void NestedTestAllTypes::clear_child() {
  4581. if (GetArenaNoVirtual() == NULL && child_ != NULL) {
  4582. delete child_;
  4583. }
  4584. child_ = NULL;
  4585. }
  4586. inline const ::proto3_arena_lite_unittest::NestedTestAllTypes& NestedTestAllTypes::_internal_child() const {
  4587. return *child_;
  4588. }
  4589. inline const ::proto3_arena_lite_unittest::NestedTestAllTypes& NestedTestAllTypes::child() const {
  4590. const ::proto3_arena_lite_unittest::NestedTestAllTypes* p = child_;
  4591. // @@protoc_insertion_point(field_get:proto3_arena_lite_unittest.NestedTestAllTypes.child)
  4592. return p != NULL ? *p : *reinterpret_cast<const ::proto3_arena_lite_unittest::NestedTestAllTypes*>(
  4593. &::proto3_arena_lite_unittest::_NestedTestAllTypes_default_instance_);
  4594. }
  4595. inline ::proto3_arena_lite_unittest::NestedTestAllTypes* NestedTestAllTypes::release_child() {
  4596. // @@protoc_insertion_point(field_release:proto3_arena_lite_unittest.NestedTestAllTypes.child)
  4597. ::proto3_arena_lite_unittest::NestedTestAllTypes* temp = child_;
  4598. if (GetArenaNoVirtual() != NULL) {
  4599. temp = ::google::protobuf::internal::DuplicateIfNonNull(temp);
  4600. }
  4601. child_ = NULL;
  4602. return temp;
  4603. }
  4604. inline ::proto3_arena_lite_unittest::NestedTestAllTypes* NestedTestAllTypes::unsafe_arena_release_child() {
  4605. // @@protoc_insertion_point(field_unsafe_arena_release:proto3_arena_lite_unittest.NestedTestAllTypes.child)
  4606. ::proto3_arena_lite_unittest::NestedTestAllTypes* temp = child_;
  4607. child_ = NULL;
  4608. return temp;
  4609. }
  4610. inline ::proto3_arena_lite_unittest::NestedTestAllTypes* NestedTestAllTypes::mutable_child() {
  4611. if (child_ == NULL) {
  4612. auto* p = CreateMaybeMessage<::proto3_arena_lite_unittest::NestedTestAllTypes>(GetArenaNoVirtual());
  4613. child_ = p;
  4614. }
  4615. // @@protoc_insertion_point(field_mutable:proto3_arena_lite_unittest.NestedTestAllTypes.child)
  4616. return child_;
  4617. }
  4618. inline void NestedTestAllTypes::set_allocated_child(::proto3_arena_lite_unittest::NestedTestAllTypes* child) {
  4619. ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
  4620. if (message_arena == NULL) {
  4621. delete child_;
  4622. }
  4623. if (child) {
  4624. ::google::protobuf::Arena* submessage_arena =
  4625. ::google::protobuf::Arena::GetArena(child);
  4626. if (message_arena != submessage_arena) {
  4627. child = ::google::protobuf::internal::GetOwnedMessage(
  4628. message_arena, child, submessage_arena);
  4629. }
  4630. } else {
  4631. }
  4632. child_ = child;
  4633. // @@protoc_insertion_point(field_set_allocated:proto3_arena_lite_unittest.NestedTestAllTypes.child)
  4634. }
  4635. // .proto3_arena_lite_unittest.TestAllTypes payload = 2;
  4636. inline bool NestedTestAllTypes::has_payload() const {
  4637. return this != internal_default_instance() && payload_ != NULL;
  4638. }
  4639. inline void NestedTestAllTypes::clear_payload() {
  4640. if (GetArenaNoVirtual() == NULL && payload_ != NULL) {
  4641. delete payload_;
  4642. }
  4643. payload_ = NULL;
  4644. }
  4645. inline const ::proto3_arena_lite_unittest::TestAllTypes& NestedTestAllTypes::_internal_payload() const {
  4646. return *payload_;
  4647. }
  4648. inline const ::proto3_arena_lite_unittest::TestAllTypes& NestedTestAllTypes::payload() const {
  4649. const ::proto3_arena_lite_unittest::TestAllTypes* p = payload_;
  4650. // @@protoc_insertion_point(field_get:proto3_arena_lite_unittest.NestedTestAllTypes.payload)
  4651. return p != NULL ? *p : *reinterpret_cast<const ::proto3_arena_lite_unittest::TestAllTypes*>(
  4652. &::proto3_arena_lite_unittest::_TestAllTypes_default_instance_);
  4653. }
  4654. inline ::proto3_arena_lite_unittest::TestAllTypes* NestedTestAllTypes::release_payload() {
  4655. // @@protoc_insertion_point(field_release:proto3_arena_lite_unittest.NestedTestAllTypes.payload)
  4656. ::proto3_arena_lite_unittest::TestAllTypes* temp = payload_;
  4657. if (GetArenaNoVirtual() != NULL) {
  4658. temp = ::google::protobuf::internal::DuplicateIfNonNull(temp);
  4659. }
  4660. payload_ = NULL;
  4661. return temp;
  4662. }
  4663. inline ::proto3_arena_lite_unittest::TestAllTypes* NestedTestAllTypes::unsafe_arena_release_payload() {
  4664. // @@protoc_insertion_point(field_unsafe_arena_release:proto3_arena_lite_unittest.NestedTestAllTypes.payload)
  4665. ::proto3_arena_lite_unittest::TestAllTypes* temp = payload_;
  4666. payload_ = NULL;
  4667. return temp;
  4668. }
  4669. inline ::proto3_arena_lite_unittest::TestAllTypes* NestedTestAllTypes::mutable_payload() {
  4670. if (payload_ == NULL) {
  4671. auto* p = CreateMaybeMessage<::proto3_arena_lite_unittest::TestAllTypes>(GetArenaNoVirtual());
  4672. payload_ = p;
  4673. }
  4674. // @@protoc_insertion_point(field_mutable:proto3_arena_lite_unittest.NestedTestAllTypes.payload)
  4675. return payload_;
  4676. }
  4677. inline void NestedTestAllTypes::set_allocated_payload(::proto3_arena_lite_unittest::TestAllTypes* payload) {
  4678. ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
  4679. if (message_arena == NULL) {
  4680. delete payload_;
  4681. }
  4682. if (payload) {
  4683. ::google::protobuf::Arena* submessage_arena =
  4684. ::google::protobuf::Arena::GetArena(payload);
  4685. if (message_arena != submessage_arena) {
  4686. payload = ::google::protobuf::internal::GetOwnedMessage(
  4687. message_arena, payload, submessage_arena);
  4688. }
  4689. } else {
  4690. }
  4691. payload_ = payload;
  4692. // @@protoc_insertion_point(field_set_allocated:proto3_arena_lite_unittest.NestedTestAllTypes.payload)
  4693. }
  4694. // -------------------------------------------------------------------
  4695. // ForeignMessage
  4696. // int32 c = 1;
  4697. inline void ForeignMessage::clear_c() {
  4698. c_ = 0;
  4699. }
  4700. inline ::google::protobuf::int32 ForeignMessage::c() const {
  4701. // @@protoc_insertion_point(field_get:proto3_arena_lite_unittest.ForeignMessage.c)
  4702. return c_;
  4703. }
  4704. inline void ForeignMessage::set_c(::google::protobuf::int32 value) {
  4705. c_ = value;
  4706. // @@protoc_insertion_point(field_set:proto3_arena_lite_unittest.ForeignMessage.c)
  4707. }
  4708. // -------------------------------------------------------------------
  4709. // TestEmptyMessage
  4710. #ifdef __GNUC__
  4711. #pragma GCC diagnostic pop
  4712. #endif // __GNUC__
  4713. // -------------------------------------------------------------------
  4714. // -------------------------------------------------------------------
  4715. // -------------------------------------------------------------------
  4716. // -------------------------------------------------------------------
  4717. // -------------------------------------------------------------------
  4718. // -------------------------------------------------------------------
  4719. // @@protoc_insertion_point(namespace_scope)
  4720. } // namespace proto3_arena_lite_unittest
  4721. namespace google {
  4722. namespace protobuf {
  4723. template <> struct is_proto_enum< ::proto3_arena_lite_unittest::TestAllTypes_NestedEnum> : ::std::true_type {};
  4724. template <> struct is_proto_enum< ::proto3_arena_lite_unittest::ForeignEnum> : ::std::true_type {};
  4725. } // namespace protobuf
  4726. } // namespace google
  4727. // @@protoc_insertion_point(global_scope)
  4728. #endif // PROTOBUF_INCLUDED_google_2fprotobuf_2funittest_5fproto3_5farena_5flite_2eproto