unittest_proto3_lite.pb.h 203 KB

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