unittest_custom_options.pb.h 197 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163
  1. // Generated by the protocol buffer compiler. DO NOT EDIT!
  2. // source: google/protobuf/unittest_custom_options.proto
  3. #ifndef PROTOBUF_INCLUDED_google_2fprotobuf_2funittest_5fcustom_5foptions_2eproto
  4. #define PROTOBUF_INCLUDED_google_2fprotobuf_2funittest_5fcustom_5foptions_2eproto
  5. #include <string>
  6. #include <google/protobuf/stubs/common.h>
  7. #if GOOGLE_PROTOBUF_VERSION < 3006001
  8. #error This file was generated by a newer version of protoc which is
  9. #error incompatible with your Protocol Buffer headers. Please update
  10. #error your headers.
  11. #endif
  12. #if 3006001 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION
  13. #error This file was generated by an older version of protoc which is
  14. #error incompatible with your Protocol Buffer headers. Please
  15. #error regenerate this file with a newer version of protoc.
  16. #endif
  17. #include <google/protobuf/io/coded_stream.h>
  18. #include <google/protobuf/arena.h>
  19. #include <google/protobuf/arenastring.h>
  20. #include <google/protobuf/generated_message_table_driven.h>
  21. #include <google/protobuf/generated_message_util.h>
  22. #include <google/protobuf/inlined_string_field.h>
  23. #include <google/protobuf/metadata.h>
  24. #include <google/protobuf/message.h>
  25. #include <google/protobuf/repeated_field.h> // IWYU pragma: export
  26. #include <google/protobuf/extension_set.h> // IWYU pragma: export
  27. #include <google/protobuf/generated_enum_reflection.h>
  28. #include <google/protobuf/service.h>
  29. #include <google/protobuf/unknown_field_set.h>
  30. #include <google/protobuf/descriptor.pb.h>
  31. // @@protoc_insertion_point(includes)
  32. #define PROTOBUF_INTERNAL_EXPORT_protobuf_google_2fprotobuf_2funittest_5fcustom_5foptions_2eproto
  33. namespace protobuf_google_2fprotobuf_2funittest_5fcustom_5foptions_2eproto {
  34. // Internal implementation detail -- do not use these members.
  35. struct TableStruct {
  36. static const ::google::protobuf::internal::ParseTableField entries[];
  37. static const ::google::protobuf::internal::AuxillaryParseTableField aux[];
  38. static const ::google::protobuf::internal::ParseTable schema[28];
  39. static const ::google::protobuf::internal::FieldMetadata field_metadata[];
  40. static const ::google::protobuf::internal::SerializationTable serialization_table[];
  41. static const ::google::protobuf::uint32 offsets[];
  42. };
  43. void AddDescriptors();
  44. } // namespace protobuf_google_2fprotobuf_2funittest_5fcustom_5foptions_2eproto
  45. namespace protobuf_unittest {
  46. class Aggregate;
  47. class AggregateDefaultTypeInternal;
  48. extern AggregateDefaultTypeInternal _Aggregate_default_instance_;
  49. class AggregateMessage;
  50. class AggregateMessageDefaultTypeInternal;
  51. extern AggregateMessageDefaultTypeInternal _AggregateMessage_default_instance_;
  52. class AggregateMessageSet;
  53. class AggregateMessageSetDefaultTypeInternal;
  54. extern AggregateMessageSetDefaultTypeInternal _AggregateMessageSet_default_instance_;
  55. class AggregateMessageSetElement;
  56. class AggregateMessageSetElementDefaultTypeInternal;
  57. extern AggregateMessageSetElementDefaultTypeInternal _AggregateMessageSetElement_default_instance_;
  58. class ComplexOpt6;
  59. class ComplexOpt6DefaultTypeInternal;
  60. extern ComplexOpt6DefaultTypeInternal _ComplexOpt6_default_instance_;
  61. class ComplexOptionType1;
  62. class ComplexOptionType1DefaultTypeInternal;
  63. extern ComplexOptionType1DefaultTypeInternal _ComplexOptionType1_default_instance_;
  64. class ComplexOptionType2;
  65. class ComplexOptionType2DefaultTypeInternal;
  66. extern ComplexOptionType2DefaultTypeInternal _ComplexOptionType2_default_instance_;
  67. class ComplexOptionType2_ComplexOptionType4;
  68. class ComplexOptionType2_ComplexOptionType4DefaultTypeInternal;
  69. extern ComplexOptionType2_ComplexOptionType4DefaultTypeInternal _ComplexOptionType2_ComplexOptionType4_default_instance_;
  70. class ComplexOptionType3;
  71. class ComplexOptionType3DefaultTypeInternal;
  72. extern ComplexOptionType3DefaultTypeInternal _ComplexOptionType3_default_instance_;
  73. class ComplexOptionType3_ComplexOptionType5;
  74. class ComplexOptionType3_ComplexOptionType5DefaultTypeInternal;
  75. extern ComplexOptionType3_ComplexOptionType5DefaultTypeInternal _ComplexOptionType3_ComplexOptionType5_default_instance_;
  76. class CustomOptionFooClientMessage;
  77. class CustomOptionFooClientMessageDefaultTypeInternal;
  78. extern CustomOptionFooClientMessageDefaultTypeInternal _CustomOptionFooClientMessage_default_instance_;
  79. class CustomOptionFooRequest;
  80. class CustomOptionFooRequestDefaultTypeInternal;
  81. extern CustomOptionFooRequestDefaultTypeInternal _CustomOptionFooRequest_default_instance_;
  82. class CustomOptionFooResponse;
  83. class CustomOptionFooResponseDefaultTypeInternal;
  84. extern CustomOptionFooResponseDefaultTypeInternal _CustomOptionFooResponse_default_instance_;
  85. class CustomOptionFooServerMessage;
  86. class CustomOptionFooServerMessageDefaultTypeInternal;
  87. extern CustomOptionFooServerMessageDefaultTypeInternal _CustomOptionFooServerMessage_default_instance_;
  88. class CustomOptionMaxIntegerValues;
  89. class CustomOptionMaxIntegerValuesDefaultTypeInternal;
  90. extern CustomOptionMaxIntegerValuesDefaultTypeInternal _CustomOptionMaxIntegerValues_default_instance_;
  91. class CustomOptionMinIntegerValues;
  92. class CustomOptionMinIntegerValuesDefaultTypeInternal;
  93. extern CustomOptionMinIntegerValuesDefaultTypeInternal _CustomOptionMinIntegerValues_default_instance_;
  94. class CustomOptionOtherValues;
  95. class CustomOptionOtherValuesDefaultTypeInternal;
  96. extern CustomOptionOtherValuesDefaultTypeInternal _CustomOptionOtherValues_default_instance_;
  97. class DummyMessageContainingEnum;
  98. class DummyMessageContainingEnumDefaultTypeInternal;
  99. extern DummyMessageContainingEnumDefaultTypeInternal _DummyMessageContainingEnum_default_instance_;
  100. class DummyMessageInvalidAsOptionType;
  101. class DummyMessageInvalidAsOptionTypeDefaultTypeInternal;
  102. extern DummyMessageInvalidAsOptionTypeDefaultTypeInternal _DummyMessageInvalidAsOptionType_default_instance_;
  103. class NestedOptionType;
  104. class NestedOptionTypeDefaultTypeInternal;
  105. extern NestedOptionTypeDefaultTypeInternal _NestedOptionType_default_instance_;
  106. class NestedOptionType_NestedMessage;
  107. class NestedOptionType_NestedMessageDefaultTypeInternal;
  108. extern NestedOptionType_NestedMessageDefaultTypeInternal _NestedOptionType_NestedMessage_default_instance_;
  109. class NewOptionType;
  110. class NewOptionTypeDefaultTypeInternal;
  111. extern NewOptionTypeDefaultTypeInternal _NewOptionType_default_instance_;
  112. class OldOptionType;
  113. class OldOptionTypeDefaultTypeInternal;
  114. extern OldOptionTypeDefaultTypeInternal _OldOptionType_default_instance_;
  115. class SettingRealsFromNegativeInts;
  116. class SettingRealsFromNegativeIntsDefaultTypeInternal;
  117. extern SettingRealsFromNegativeIntsDefaultTypeInternal _SettingRealsFromNegativeInts_default_instance_;
  118. class SettingRealsFromPositiveInts;
  119. class SettingRealsFromPositiveIntsDefaultTypeInternal;
  120. extern SettingRealsFromPositiveIntsDefaultTypeInternal _SettingRealsFromPositiveInts_default_instance_;
  121. class TestMessageWithCustomOptions;
  122. class TestMessageWithCustomOptionsDefaultTypeInternal;
  123. extern TestMessageWithCustomOptionsDefaultTypeInternal _TestMessageWithCustomOptions_default_instance_;
  124. class TestMessageWithRequiredEnumOption;
  125. class TestMessageWithRequiredEnumOptionDefaultTypeInternal;
  126. extern TestMessageWithRequiredEnumOptionDefaultTypeInternal _TestMessageWithRequiredEnumOption_default_instance_;
  127. class VariousComplexOptions;
  128. class VariousComplexOptionsDefaultTypeInternal;
  129. extern VariousComplexOptionsDefaultTypeInternal _VariousComplexOptions_default_instance_;
  130. } // namespace protobuf_unittest
  131. namespace google {
  132. namespace protobuf {
  133. template<> ::protobuf_unittest::Aggregate* Arena::CreateMaybeMessage<::protobuf_unittest::Aggregate>(Arena*);
  134. template<> ::protobuf_unittest::AggregateMessage* Arena::CreateMaybeMessage<::protobuf_unittest::AggregateMessage>(Arena*);
  135. template<> ::protobuf_unittest::AggregateMessageSet* Arena::CreateMaybeMessage<::protobuf_unittest::AggregateMessageSet>(Arena*);
  136. template<> ::protobuf_unittest::AggregateMessageSetElement* Arena::CreateMaybeMessage<::protobuf_unittest::AggregateMessageSetElement>(Arena*);
  137. template<> ::protobuf_unittest::ComplexOpt6* Arena::CreateMaybeMessage<::protobuf_unittest::ComplexOpt6>(Arena*);
  138. template<> ::protobuf_unittest::ComplexOptionType1* Arena::CreateMaybeMessage<::protobuf_unittest::ComplexOptionType1>(Arena*);
  139. template<> ::protobuf_unittest::ComplexOptionType2* Arena::CreateMaybeMessage<::protobuf_unittest::ComplexOptionType2>(Arena*);
  140. template<> ::protobuf_unittest::ComplexOptionType2_ComplexOptionType4* Arena::CreateMaybeMessage<::protobuf_unittest::ComplexOptionType2_ComplexOptionType4>(Arena*);
  141. template<> ::protobuf_unittest::ComplexOptionType3* Arena::CreateMaybeMessage<::protobuf_unittest::ComplexOptionType3>(Arena*);
  142. template<> ::protobuf_unittest::ComplexOptionType3_ComplexOptionType5* Arena::CreateMaybeMessage<::protobuf_unittest::ComplexOptionType3_ComplexOptionType5>(Arena*);
  143. template<> ::protobuf_unittest::CustomOptionFooClientMessage* Arena::CreateMaybeMessage<::protobuf_unittest::CustomOptionFooClientMessage>(Arena*);
  144. template<> ::protobuf_unittest::CustomOptionFooRequest* Arena::CreateMaybeMessage<::protobuf_unittest::CustomOptionFooRequest>(Arena*);
  145. template<> ::protobuf_unittest::CustomOptionFooResponse* Arena::CreateMaybeMessage<::protobuf_unittest::CustomOptionFooResponse>(Arena*);
  146. template<> ::protobuf_unittest::CustomOptionFooServerMessage* Arena::CreateMaybeMessage<::protobuf_unittest::CustomOptionFooServerMessage>(Arena*);
  147. template<> ::protobuf_unittest::CustomOptionMaxIntegerValues* Arena::CreateMaybeMessage<::protobuf_unittest::CustomOptionMaxIntegerValues>(Arena*);
  148. template<> ::protobuf_unittest::CustomOptionMinIntegerValues* Arena::CreateMaybeMessage<::protobuf_unittest::CustomOptionMinIntegerValues>(Arena*);
  149. template<> ::protobuf_unittest::CustomOptionOtherValues* Arena::CreateMaybeMessage<::protobuf_unittest::CustomOptionOtherValues>(Arena*);
  150. template<> ::protobuf_unittest::DummyMessageContainingEnum* Arena::CreateMaybeMessage<::protobuf_unittest::DummyMessageContainingEnum>(Arena*);
  151. template<> ::protobuf_unittest::DummyMessageInvalidAsOptionType* Arena::CreateMaybeMessage<::protobuf_unittest::DummyMessageInvalidAsOptionType>(Arena*);
  152. template<> ::protobuf_unittest::NestedOptionType* Arena::CreateMaybeMessage<::protobuf_unittest::NestedOptionType>(Arena*);
  153. template<> ::protobuf_unittest::NestedOptionType_NestedMessage* Arena::CreateMaybeMessage<::protobuf_unittest::NestedOptionType_NestedMessage>(Arena*);
  154. template<> ::protobuf_unittest::NewOptionType* Arena::CreateMaybeMessage<::protobuf_unittest::NewOptionType>(Arena*);
  155. template<> ::protobuf_unittest::OldOptionType* Arena::CreateMaybeMessage<::protobuf_unittest::OldOptionType>(Arena*);
  156. template<> ::protobuf_unittest::SettingRealsFromNegativeInts* Arena::CreateMaybeMessage<::protobuf_unittest::SettingRealsFromNegativeInts>(Arena*);
  157. template<> ::protobuf_unittest::SettingRealsFromPositiveInts* Arena::CreateMaybeMessage<::protobuf_unittest::SettingRealsFromPositiveInts>(Arena*);
  158. template<> ::protobuf_unittest::TestMessageWithCustomOptions* Arena::CreateMaybeMessage<::protobuf_unittest::TestMessageWithCustomOptions>(Arena*);
  159. template<> ::protobuf_unittest::TestMessageWithRequiredEnumOption* Arena::CreateMaybeMessage<::protobuf_unittest::TestMessageWithRequiredEnumOption>(Arena*);
  160. template<> ::protobuf_unittest::VariousComplexOptions* Arena::CreateMaybeMessage<::protobuf_unittest::VariousComplexOptions>(Arena*);
  161. } // namespace protobuf
  162. } // namespace google
  163. namespace protobuf_unittest {
  164. enum TestMessageWithCustomOptions_AnEnum {
  165. TestMessageWithCustomOptions_AnEnum_ANENUM_VAL1 = 1,
  166. TestMessageWithCustomOptions_AnEnum_ANENUM_VAL2 = 2
  167. };
  168. bool TestMessageWithCustomOptions_AnEnum_IsValid(int value);
  169. const TestMessageWithCustomOptions_AnEnum TestMessageWithCustomOptions_AnEnum_AnEnum_MIN = TestMessageWithCustomOptions_AnEnum_ANENUM_VAL1;
  170. const TestMessageWithCustomOptions_AnEnum TestMessageWithCustomOptions_AnEnum_AnEnum_MAX = TestMessageWithCustomOptions_AnEnum_ANENUM_VAL2;
  171. const int TestMessageWithCustomOptions_AnEnum_AnEnum_ARRAYSIZE = TestMessageWithCustomOptions_AnEnum_AnEnum_MAX + 1;
  172. const ::google::protobuf::EnumDescriptor* TestMessageWithCustomOptions_AnEnum_descriptor();
  173. inline const ::std::string& TestMessageWithCustomOptions_AnEnum_Name(TestMessageWithCustomOptions_AnEnum value) {
  174. return ::google::protobuf::internal::NameOfEnum(
  175. TestMessageWithCustomOptions_AnEnum_descriptor(), value);
  176. }
  177. inline bool TestMessageWithCustomOptions_AnEnum_Parse(
  178. const ::std::string& name, TestMessageWithCustomOptions_AnEnum* value) {
  179. return ::google::protobuf::internal::ParseNamedEnum<TestMessageWithCustomOptions_AnEnum>(
  180. TestMessageWithCustomOptions_AnEnum_descriptor(), name, value);
  181. }
  182. enum DummyMessageContainingEnum_TestEnumType {
  183. DummyMessageContainingEnum_TestEnumType_TEST_OPTION_ENUM_TYPE1 = 22,
  184. DummyMessageContainingEnum_TestEnumType_TEST_OPTION_ENUM_TYPE2 = -23
  185. };
  186. bool DummyMessageContainingEnum_TestEnumType_IsValid(int value);
  187. const DummyMessageContainingEnum_TestEnumType DummyMessageContainingEnum_TestEnumType_TestEnumType_MIN = DummyMessageContainingEnum_TestEnumType_TEST_OPTION_ENUM_TYPE2;
  188. const DummyMessageContainingEnum_TestEnumType DummyMessageContainingEnum_TestEnumType_TestEnumType_MAX = DummyMessageContainingEnum_TestEnumType_TEST_OPTION_ENUM_TYPE1;
  189. const int DummyMessageContainingEnum_TestEnumType_TestEnumType_ARRAYSIZE = DummyMessageContainingEnum_TestEnumType_TestEnumType_MAX + 1;
  190. const ::google::protobuf::EnumDescriptor* DummyMessageContainingEnum_TestEnumType_descriptor();
  191. inline const ::std::string& DummyMessageContainingEnum_TestEnumType_Name(DummyMessageContainingEnum_TestEnumType value) {
  192. return ::google::protobuf::internal::NameOfEnum(
  193. DummyMessageContainingEnum_TestEnumType_descriptor(), value);
  194. }
  195. inline bool DummyMessageContainingEnum_TestEnumType_Parse(
  196. const ::std::string& name, DummyMessageContainingEnum_TestEnumType* value) {
  197. return ::google::protobuf::internal::ParseNamedEnum<DummyMessageContainingEnum_TestEnumType>(
  198. DummyMessageContainingEnum_TestEnumType_descriptor(), name, value);
  199. }
  200. enum NestedOptionType_NestedEnum {
  201. NestedOptionType_NestedEnum_NESTED_ENUM_VALUE = 1
  202. };
  203. bool NestedOptionType_NestedEnum_IsValid(int value);
  204. const NestedOptionType_NestedEnum NestedOptionType_NestedEnum_NestedEnum_MIN = NestedOptionType_NestedEnum_NESTED_ENUM_VALUE;
  205. const NestedOptionType_NestedEnum NestedOptionType_NestedEnum_NestedEnum_MAX = NestedOptionType_NestedEnum_NESTED_ENUM_VALUE;
  206. const int NestedOptionType_NestedEnum_NestedEnum_ARRAYSIZE = NestedOptionType_NestedEnum_NestedEnum_MAX + 1;
  207. const ::google::protobuf::EnumDescriptor* NestedOptionType_NestedEnum_descriptor();
  208. inline const ::std::string& NestedOptionType_NestedEnum_Name(NestedOptionType_NestedEnum value) {
  209. return ::google::protobuf::internal::NameOfEnum(
  210. NestedOptionType_NestedEnum_descriptor(), value);
  211. }
  212. inline bool NestedOptionType_NestedEnum_Parse(
  213. const ::std::string& name, NestedOptionType_NestedEnum* value) {
  214. return ::google::protobuf::internal::ParseNamedEnum<NestedOptionType_NestedEnum>(
  215. NestedOptionType_NestedEnum_descriptor(), name, value);
  216. }
  217. enum OldOptionType_TestEnum {
  218. OldOptionType_TestEnum_OLD_VALUE = 0
  219. };
  220. bool OldOptionType_TestEnum_IsValid(int value);
  221. const OldOptionType_TestEnum OldOptionType_TestEnum_TestEnum_MIN = OldOptionType_TestEnum_OLD_VALUE;
  222. const OldOptionType_TestEnum OldOptionType_TestEnum_TestEnum_MAX = OldOptionType_TestEnum_OLD_VALUE;
  223. const int OldOptionType_TestEnum_TestEnum_ARRAYSIZE = OldOptionType_TestEnum_TestEnum_MAX + 1;
  224. const ::google::protobuf::EnumDescriptor* OldOptionType_TestEnum_descriptor();
  225. inline const ::std::string& OldOptionType_TestEnum_Name(OldOptionType_TestEnum value) {
  226. return ::google::protobuf::internal::NameOfEnum(
  227. OldOptionType_TestEnum_descriptor(), value);
  228. }
  229. inline bool OldOptionType_TestEnum_Parse(
  230. const ::std::string& name, OldOptionType_TestEnum* value) {
  231. return ::google::protobuf::internal::ParseNamedEnum<OldOptionType_TestEnum>(
  232. OldOptionType_TestEnum_descriptor(), name, value);
  233. }
  234. enum NewOptionType_TestEnum {
  235. NewOptionType_TestEnum_OLD_VALUE = 0,
  236. NewOptionType_TestEnum_NEW_VALUE = 1
  237. };
  238. bool NewOptionType_TestEnum_IsValid(int value);
  239. const NewOptionType_TestEnum NewOptionType_TestEnum_TestEnum_MIN = NewOptionType_TestEnum_OLD_VALUE;
  240. const NewOptionType_TestEnum NewOptionType_TestEnum_TestEnum_MAX = NewOptionType_TestEnum_NEW_VALUE;
  241. const int NewOptionType_TestEnum_TestEnum_ARRAYSIZE = NewOptionType_TestEnum_TestEnum_MAX + 1;
  242. const ::google::protobuf::EnumDescriptor* NewOptionType_TestEnum_descriptor();
  243. inline const ::std::string& NewOptionType_TestEnum_Name(NewOptionType_TestEnum value) {
  244. return ::google::protobuf::internal::NameOfEnum(
  245. NewOptionType_TestEnum_descriptor(), value);
  246. }
  247. inline bool NewOptionType_TestEnum_Parse(
  248. const ::std::string& name, NewOptionType_TestEnum* value) {
  249. return ::google::protobuf::internal::ParseNamedEnum<NewOptionType_TestEnum>(
  250. NewOptionType_TestEnum_descriptor(), name, value);
  251. }
  252. enum MethodOpt1 {
  253. METHODOPT1_VAL1 = 1,
  254. METHODOPT1_VAL2 = 2
  255. };
  256. bool MethodOpt1_IsValid(int value);
  257. const MethodOpt1 MethodOpt1_MIN = METHODOPT1_VAL1;
  258. const MethodOpt1 MethodOpt1_MAX = METHODOPT1_VAL2;
  259. const int MethodOpt1_ARRAYSIZE = MethodOpt1_MAX + 1;
  260. const ::google::protobuf::EnumDescriptor* MethodOpt1_descriptor();
  261. inline const ::std::string& MethodOpt1_Name(MethodOpt1 value) {
  262. return ::google::protobuf::internal::NameOfEnum(
  263. MethodOpt1_descriptor(), value);
  264. }
  265. inline bool MethodOpt1_Parse(
  266. const ::std::string& name, MethodOpt1* value) {
  267. return ::google::protobuf::internal::ParseNamedEnum<MethodOpt1>(
  268. MethodOpt1_descriptor(), name, value);
  269. }
  270. enum AggregateEnum {
  271. VALUE = 1
  272. };
  273. bool AggregateEnum_IsValid(int value);
  274. const AggregateEnum AggregateEnum_MIN = VALUE;
  275. const AggregateEnum AggregateEnum_MAX = VALUE;
  276. const int AggregateEnum_ARRAYSIZE = AggregateEnum_MAX + 1;
  277. const ::google::protobuf::EnumDescriptor* AggregateEnum_descriptor();
  278. inline const ::std::string& AggregateEnum_Name(AggregateEnum value) {
  279. return ::google::protobuf::internal::NameOfEnum(
  280. AggregateEnum_descriptor(), value);
  281. }
  282. inline bool AggregateEnum_Parse(
  283. const ::std::string& name, AggregateEnum* value) {
  284. return ::google::protobuf::internal::ParseNamedEnum<AggregateEnum>(
  285. AggregateEnum_descriptor(), name, value);
  286. }
  287. // ===================================================================
  288. class TestMessageWithCustomOptions : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:protobuf_unittest.TestMessageWithCustomOptions) */ {
  289. public:
  290. TestMessageWithCustomOptions();
  291. virtual ~TestMessageWithCustomOptions();
  292. TestMessageWithCustomOptions(const TestMessageWithCustomOptions& from);
  293. inline TestMessageWithCustomOptions& operator=(const TestMessageWithCustomOptions& from) {
  294. CopyFrom(from);
  295. return *this;
  296. }
  297. #if LANG_CXX11
  298. TestMessageWithCustomOptions(TestMessageWithCustomOptions&& from) noexcept
  299. : TestMessageWithCustomOptions() {
  300. *this = ::std::move(from);
  301. }
  302. inline TestMessageWithCustomOptions& operator=(TestMessageWithCustomOptions&& from) noexcept {
  303. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  304. if (this != &from) InternalSwap(&from);
  305. } else {
  306. CopyFrom(from);
  307. }
  308. return *this;
  309. }
  310. #endif
  311. inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
  312. return _internal_metadata_.unknown_fields();
  313. }
  314. inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
  315. return _internal_metadata_.mutable_unknown_fields();
  316. }
  317. static const ::google::protobuf::Descriptor* descriptor();
  318. static const TestMessageWithCustomOptions& default_instance();
  319. enum AnOneofCase {
  320. kOneofField = 2,
  321. ANONEOF_NOT_SET = 0,
  322. };
  323. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  324. static inline const TestMessageWithCustomOptions* internal_default_instance() {
  325. return reinterpret_cast<const TestMessageWithCustomOptions*>(
  326. &_TestMessageWithCustomOptions_default_instance_);
  327. }
  328. static constexpr int kIndexInFileMessages =
  329. 0;
  330. void Swap(TestMessageWithCustomOptions* other);
  331. friend void swap(TestMessageWithCustomOptions& a, TestMessageWithCustomOptions& b) {
  332. a.Swap(&b);
  333. }
  334. // implements Message ----------------------------------------------
  335. inline TestMessageWithCustomOptions* New() const final {
  336. return CreateMaybeMessage<TestMessageWithCustomOptions>(NULL);
  337. }
  338. TestMessageWithCustomOptions* New(::google::protobuf::Arena* arena) const final {
  339. return CreateMaybeMessage<TestMessageWithCustomOptions>(arena);
  340. }
  341. void CopyFrom(const ::google::protobuf::Message& from) final;
  342. void MergeFrom(const ::google::protobuf::Message& from) final;
  343. void CopyFrom(const TestMessageWithCustomOptions& from);
  344. void MergeFrom(const TestMessageWithCustomOptions& from);
  345. void Clear() final;
  346. bool IsInitialized() const final;
  347. size_t ByteSizeLong() const final;
  348. bool MergePartialFromCodedStream(
  349. ::google::protobuf::io::CodedInputStream* input) final;
  350. void SerializeWithCachedSizes(
  351. ::google::protobuf::io::CodedOutputStream* output) const final;
  352. ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
  353. bool deterministic, ::google::protobuf::uint8* target) const final;
  354. int GetCachedSize() const final { return _cached_size_.Get(); }
  355. private:
  356. void SharedCtor();
  357. void SharedDtor();
  358. void SetCachedSize(int size) const final;
  359. void InternalSwap(TestMessageWithCustomOptions* other);
  360. private:
  361. inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
  362. return NULL;
  363. }
  364. inline void* MaybeArenaPtr() const {
  365. return NULL;
  366. }
  367. public:
  368. ::google::protobuf::Metadata GetMetadata() const final;
  369. // nested types ----------------------------------------------------
  370. typedef TestMessageWithCustomOptions_AnEnum AnEnum;
  371. static const AnEnum ANENUM_VAL1 =
  372. TestMessageWithCustomOptions_AnEnum_ANENUM_VAL1;
  373. static const AnEnum ANENUM_VAL2 =
  374. TestMessageWithCustomOptions_AnEnum_ANENUM_VAL2;
  375. static inline bool AnEnum_IsValid(int value) {
  376. return TestMessageWithCustomOptions_AnEnum_IsValid(value);
  377. }
  378. static const AnEnum AnEnum_MIN =
  379. TestMessageWithCustomOptions_AnEnum_AnEnum_MIN;
  380. static const AnEnum AnEnum_MAX =
  381. TestMessageWithCustomOptions_AnEnum_AnEnum_MAX;
  382. static const int AnEnum_ARRAYSIZE =
  383. TestMessageWithCustomOptions_AnEnum_AnEnum_ARRAYSIZE;
  384. static inline const ::google::protobuf::EnumDescriptor*
  385. AnEnum_descriptor() {
  386. return TestMessageWithCustomOptions_AnEnum_descriptor();
  387. }
  388. static inline const ::std::string& AnEnum_Name(AnEnum value) {
  389. return TestMessageWithCustomOptions_AnEnum_Name(value);
  390. }
  391. static inline bool AnEnum_Parse(const ::std::string& name,
  392. AnEnum* value) {
  393. return TestMessageWithCustomOptions_AnEnum_Parse(name, value);
  394. }
  395. // accessors -------------------------------------------------------
  396. // optional string field1 = 1 [ctype = CORD, (.protobuf_unittest.field_opt1) = 8765432109];
  397. bool has_field1() const;
  398. void clear_field1();
  399. static const int kField1FieldNumber = 1;
  400. private:
  401. // Hidden due to unknown ctype option.
  402. const ::std::string& field1() const;
  403. void set_field1(const ::std::string& value);
  404. #if LANG_CXX11
  405. void set_field1(::std::string&& value);
  406. #endif
  407. void set_field1(const char* value);
  408. void set_field1(const char* value, size_t size);
  409. ::std::string* mutable_field1();
  410. ::std::string* release_field1();
  411. void set_allocated_field1(::std::string* field1);
  412. public:
  413. // optional int32 oneof_field = 2;
  414. bool has_oneof_field() const;
  415. void clear_oneof_field();
  416. static const int kOneofFieldFieldNumber = 2;
  417. ::google::protobuf::int32 oneof_field() const;
  418. void set_oneof_field(::google::protobuf::int32 value);
  419. void clear_AnOneof();
  420. AnOneofCase AnOneof_case() const;
  421. // @@protoc_insertion_point(class_scope:protobuf_unittest.TestMessageWithCustomOptions)
  422. private:
  423. void set_has_field1();
  424. void clear_has_field1();
  425. void set_has_oneof_field();
  426. inline bool has_AnOneof() const;
  427. inline void clear_has_AnOneof();
  428. ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
  429. ::google::protobuf::internal::HasBits<1> _has_bits_;
  430. mutable ::google::protobuf::internal::CachedSize _cached_size_;
  431. ::google::protobuf::internal::ArenaStringPtr field1_;
  432. union AnOneofUnion {
  433. AnOneofUnion() {}
  434. ::google::protobuf::int32 oneof_field_;
  435. } AnOneof_;
  436. ::google::protobuf::uint32 _oneof_case_[1];
  437. friend struct ::protobuf_google_2fprotobuf_2funittest_5fcustom_5foptions_2eproto::TableStruct;
  438. };
  439. // -------------------------------------------------------------------
  440. class CustomOptionFooRequest : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:protobuf_unittest.CustomOptionFooRequest) */ {
  441. public:
  442. CustomOptionFooRequest();
  443. virtual ~CustomOptionFooRequest();
  444. CustomOptionFooRequest(const CustomOptionFooRequest& from);
  445. inline CustomOptionFooRequest& operator=(const CustomOptionFooRequest& from) {
  446. CopyFrom(from);
  447. return *this;
  448. }
  449. #if LANG_CXX11
  450. CustomOptionFooRequest(CustomOptionFooRequest&& from) noexcept
  451. : CustomOptionFooRequest() {
  452. *this = ::std::move(from);
  453. }
  454. inline CustomOptionFooRequest& operator=(CustomOptionFooRequest&& from) noexcept {
  455. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  456. if (this != &from) InternalSwap(&from);
  457. } else {
  458. CopyFrom(from);
  459. }
  460. return *this;
  461. }
  462. #endif
  463. inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
  464. return _internal_metadata_.unknown_fields();
  465. }
  466. inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
  467. return _internal_metadata_.mutable_unknown_fields();
  468. }
  469. static const ::google::protobuf::Descriptor* descriptor();
  470. static const CustomOptionFooRequest& default_instance();
  471. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  472. static inline const CustomOptionFooRequest* internal_default_instance() {
  473. return reinterpret_cast<const CustomOptionFooRequest*>(
  474. &_CustomOptionFooRequest_default_instance_);
  475. }
  476. static constexpr int kIndexInFileMessages =
  477. 1;
  478. void Swap(CustomOptionFooRequest* other);
  479. friend void swap(CustomOptionFooRequest& a, CustomOptionFooRequest& b) {
  480. a.Swap(&b);
  481. }
  482. // implements Message ----------------------------------------------
  483. inline CustomOptionFooRequest* New() const final {
  484. return CreateMaybeMessage<CustomOptionFooRequest>(NULL);
  485. }
  486. CustomOptionFooRequest* New(::google::protobuf::Arena* arena) const final {
  487. return CreateMaybeMessage<CustomOptionFooRequest>(arena);
  488. }
  489. void CopyFrom(const ::google::protobuf::Message& from) final;
  490. void MergeFrom(const ::google::protobuf::Message& from) final;
  491. void CopyFrom(const CustomOptionFooRequest& from);
  492. void MergeFrom(const CustomOptionFooRequest& from);
  493. void Clear() final;
  494. bool IsInitialized() const final;
  495. size_t ByteSizeLong() const final;
  496. bool MergePartialFromCodedStream(
  497. ::google::protobuf::io::CodedInputStream* input) final;
  498. void SerializeWithCachedSizes(
  499. ::google::protobuf::io::CodedOutputStream* output) const final;
  500. ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
  501. bool deterministic, ::google::protobuf::uint8* target) const final;
  502. int GetCachedSize() const final { return _cached_size_.Get(); }
  503. private:
  504. void SharedCtor();
  505. void SharedDtor();
  506. void SetCachedSize(int size) const final;
  507. void InternalSwap(CustomOptionFooRequest* other);
  508. private:
  509. inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
  510. return NULL;
  511. }
  512. inline void* MaybeArenaPtr() const {
  513. return NULL;
  514. }
  515. public:
  516. ::google::protobuf::Metadata GetMetadata() const final;
  517. // nested types ----------------------------------------------------
  518. // accessors -------------------------------------------------------
  519. // @@protoc_insertion_point(class_scope:protobuf_unittest.CustomOptionFooRequest)
  520. private:
  521. ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
  522. ::google::protobuf::internal::HasBits<1> _has_bits_;
  523. mutable ::google::protobuf::internal::CachedSize _cached_size_;
  524. friend struct ::protobuf_google_2fprotobuf_2funittest_5fcustom_5foptions_2eproto::TableStruct;
  525. };
  526. // -------------------------------------------------------------------
  527. class CustomOptionFooResponse : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:protobuf_unittest.CustomOptionFooResponse) */ {
  528. public:
  529. CustomOptionFooResponse();
  530. virtual ~CustomOptionFooResponse();
  531. CustomOptionFooResponse(const CustomOptionFooResponse& from);
  532. inline CustomOptionFooResponse& operator=(const CustomOptionFooResponse& from) {
  533. CopyFrom(from);
  534. return *this;
  535. }
  536. #if LANG_CXX11
  537. CustomOptionFooResponse(CustomOptionFooResponse&& from) noexcept
  538. : CustomOptionFooResponse() {
  539. *this = ::std::move(from);
  540. }
  541. inline CustomOptionFooResponse& operator=(CustomOptionFooResponse&& from) noexcept {
  542. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  543. if (this != &from) InternalSwap(&from);
  544. } else {
  545. CopyFrom(from);
  546. }
  547. return *this;
  548. }
  549. #endif
  550. inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
  551. return _internal_metadata_.unknown_fields();
  552. }
  553. inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
  554. return _internal_metadata_.mutable_unknown_fields();
  555. }
  556. static const ::google::protobuf::Descriptor* descriptor();
  557. static const CustomOptionFooResponse& default_instance();
  558. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  559. static inline const CustomOptionFooResponse* internal_default_instance() {
  560. return reinterpret_cast<const CustomOptionFooResponse*>(
  561. &_CustomOptionFooResponse_default_instance_);
  562. }
  563. static constexpr int kIndexInFileMessages =
  564. 2;
  565. void Swap(CustomOptionFooResponse* other);
  566. friend void swap(CustomOptionFooResponse& a, CustomOptionFooResponse& b) {
  567. a.Swap(&b);
  568. }
  569. // implements Message ----------------------------------------------
  570. inline CustomOptionFooResponse* New() const final {
  571. return CreateMaybeMessage<CustomOptionFooResponse>(NULL);
  572. }
  573. CustomOptionFooResponse* New(::google::protobuf::Arena* arena) const final {
  574. return CreateMaybeMessage<CustomOptionFooResponse>(arena);
  575. }
  576. void CopyFrom(const ::google::protobuf::Message& from) final;
  577. void MergeFrom(const ::google::protobuf::Message& from) final;
  578. void CopyFrom(const CustomOptionFooResponse& from);
  579. void MergeFrom(const CustomOptionFooResponse& from);
  580. void Clear() final;
  581. bool IsInitialized() const final;
  582. size_t ByteSizeLong() const final;
  583. bool MergePartialFromCodedStream(
  584. ::google::protobuf::io::CodedInputStream* input) final;
  585. void SerializeWithCachedSizes(
  586. ::google::protobuf::io::CodedOutputStream* output) const final;
  587. ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
  588. bool deterministic, ::google::protobuf::uint8* target) const final;
  589. int GetCachedSize() const final { return _cached_size_.Get(); }
  590. private:
  591. void SharedCtor();
  592. void SharedDtor();
  593. void SetCachedSize(int size) const final;
  594. void InternalSwap(CustomOptionFooResponse* other);
  595. private:
  596. inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
  597. return NULL;
  598. }
  599. inline void* MaybeArenaPtr() const {
  600. return NULL;
  601. }
  602. public:
  603. ::google::protobuf::Metadata GetMetadata() const final;
  604. // nested types ----------------------------------------------------
  605. // accessors -------------------------------------------------------
  606. // @@protoc_insertion_point(class_scope:protobuf_unittest.CustomOptionFooResponse)
  607. private:
  608. ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
  609. ::google::protobuf::internal::HasBits<1> _has_bits_;
  610. mutable ::google::protobuf::internal::CachedSize _cached_size_;
  611. friend struct ::protobuf_google_2fprotobuf_2funittest_5fcustom_5foptions_2eproto::TableStruct;
  612. };
  613. // -------------------------------------------------------------------
  614. class CustomOptionFooClientMessage : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:protobuf_unittest.CustomOptionFooClientMessage) */ {
  615. public:
  616. CustomOptionFooClientMessage();
  617. virtual ~CustomOptionFooClientMessage();
  618. CustomOptionFooClientMessage(const CustomOptionFooClientMessage& from);
  619. inline CustomOptionFooClientMessage& operator=(const CustomOptionFooClientMessage& from) {
  620. CopyFrom(from);
  621. return *this;
  622. }
  623. #if LANG_CXX11
  624. CustomOptionFooClientMessage(CustomOptionFooClientMessage&& from) noexcept
  625. : CustomOptionFooClientMessage() {
  626. *this = ::std::move(from);
  627. }
  628. inline CustomOptionFooClientMessage& operator=(CustomOptionFooClientMessage&& from) noexcept {
  629. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  630. if (this != &from) InternalSwap(&from);
  631. } else {
  632. CopyFrom(from);
  633. }
  634. return *this;
  635. }
  636. #endif
  637. inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
  638. return _internal_metadata_.unknown_fields();
  639. }
  640. inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
  641. return _internal_metadata_.mutable_unknown_fields();
  642. }
  643. static const ::google::protobuf::Descriptor* descriptor();
  644. static const CustomOptionFooClientMessage& default_instance();
  645. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  646. static inline const CustomOptionFooClientMessage* internal_default_instance() {
  647. return reinterpret_cast<const CustomOptionFooClientMessage*>(
  648. &_CustomOptionFooClientMessage_default_instance_);
  649. }
  650. static constexpr int kIndexInFileMessages =
  651. 3;
  652. void Swap(CustomOptionFooClientMessage* other);
  653. friend void swap(CustomOptionFooClientMessage& a, CustomOptionFooClientMessage& b) {
  654. a.Swap(&b);
  655. }
  656. // implements Message ----------------------------------------------
  657. inline CustomOptionFooClientMessage* New() const final {
  658. return CreateMaybeMessage<CustomOptionFooClientMessage>(NULL);
  659. }
  660. CustomOptionFooClientMessage* New(::google::protobuf::Arena* arena) const final {
  661. return CreateMaybeMessage<CustomOptionFooClientMessage>(arena);
  662. }
  663. void CopyFrom(const ::google::protobuf::Message& from) final;
  664. void MergeFrom(const ::google::protobuf::Message& from) final;
  665. void CopyFrom(const CustomOptionFooClientMessage& from);
  666. void MergeFrom(const CustomOptionFooClientMessage& from);
  667. void Clear() final;
  668. bool IsInitialized() const final;
  669. size_t ByteSizeLong() const final;
  670. bool MergePartialFromCodedStream(
  671. ::google::protobuf::io::CodedInputStream* input) final;
  672. void SerializeWithCachedSizes(
  673. ::google::protobuf::io::CodedOutputStream* output) const final;
  674. ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
  675. bool deterministic, ::google::protobuf::uint8* target) const final;
  676. int GetCachedSize() const final { return _cached_size_.Get(); }
  677. private:
  678. void SharedCtor();
  679. void SharedDtor();
  680. void SetCachedSize(int size) const final;
  681. void InternalSwap(CustomOptionFooClientMessage* other);
  682. private:
  683. inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
  684. return NULL;
  685. }
  686. inline void* MaybeArenaPtr() const {
  687. return NULL;
  688. }
  689. public:
  690. ::google::protobuf::Metadata GetMetadata() const final;
  691. // nested types ----------------------------------------------------
  692. // accessors -------------------------------------------------------
  693. // @@protoc_insertion_point(class_scope:protobuf_unittest.CustomOptionFooClientMessage)
  694. private:
  695. ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
  696. ::google::protobuf::internal::HasBits<1> _has_bits_;
  697. mutable ::google::protobuf::internal::CachedSize _cached_size_;
  698. friend struct ::protobuf_google_2fprotobuf_2funittest_5fcustom_5foptions_2eproto::TableStruct;
  699. };
  700. // -------------------------------------------------------------------
  701. class CustomOptionFooServerMessage : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:protobuf_unittest.CustomOptionFooServerMessage) */ {
  702. public:
  703. CustomOptionFooServerMessage();
  704. virtual ~CustomOptionFooServerMessage();
  705. CustomOptionFooServerMessage(const CustomOptionFooServerMessage& from);
  706. inline CustomOptionFooServerMessage& operator=(const CustomOptionFooServerMessage& from) {
  707. CopyFrom(from);
  708. return *this;
  709. }
  710. #if LANG_CXX11
  711. CustomOptionFooServerMessage(CustomOptionFooServerMessage&& from) noexcept
  712. : CustomOptionFooServerMessage() {
  713. *this = ::std::move(from);
  714. }
  715. inline CustomOptionFooServerMessage& operator=(CustomOptionFooServerMessage&& from) noexcept {
  716. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  717. if (this != &from) InternalSwap(&from);
  718. } else {
  719. CopyFrom(from);
  720. }
  721. return *this;
  722. }
  723. #endif
  724. inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
  725. return _internal_metadata_.unknown_fields();
  726. }
  727. inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
  728. return _internal_metadata_.mutable_unknown_fields();
  729. }
  730. static const ::google::protobuf::Descriptor* descriptor();
  731. static const CustomOptionFooServerMessage& default_instance();
  732. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  733. static inline const CustomOptionFooServerMessage* internal_default_instance() {
  734. return reinterpret_cast<const CustomOptionFooServerMessage*>(
  735. &_CustomOptionFooServerMessage_default_instance_);
  736. }
  737. static constexpr int kIndexInFileMessages =
  738. 4;
  739. void Swap(CustomOptionFooServerMessage* other);
  740. friend void swap(CustomOptionFooServerMessage& a, CustomOptionFooServerMessage& b) {
  741. a.Swap(&b);
  742. }
  743. // implements Message ----------------------------------------------
  744. inline CustomOptionFooServerMessage* New() const final {
  745. return CreateMaybeMessage<CustomOptionFooServerMessage>(NULL);
  746. }
  747. CustomOptionFooServerMessage* New(::google::protobuf::Arena* arena) const final {
  748. return CreateMaybeMessage<CustomOptionFooServerMessage>(arena);
  749. }
  750. void CopyFrom(const ::google::protobuf::Message& from) final;
  751. void MergeFrom(const ::google::protobuf::Message& from) final;
  752. void CopyFrom(const CustomOptionFooServerMessage& from);
  753. void MergeFrom(const CustomOptionFooServerMessage& from);
  754. void Clear() final;
  755. bool IsInitialized() const final;
  756. size_t ByteSizeLong() const final;
  757. bool MergePartialFromCodedStream(
  758. ::google::protobuf::io::CodedInputStream* input) final;
  759. void SerializeWithCachedSizes(
  760. ::google::protobuf::io::CodedOutputStream* output) const final;
  761. ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
  762. bool deterministic, ::google::protobuf::uint8* target) const final;
  763. int GetCachedSize() const final { return _cached_size_.Get(); }
  764. private:
  765. void SharedCtor();
  766. void SharedDtor();
  767. void SetCachedSize(int size) const final;
  768. void InternalSwap(CustomOptionFooServerMessage* other);
  769. private:
  770. inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
  771. return NULL;
  772. }
  773. inline void* MaybeArenaPtr() const {
  774. return NULL;
  775. }
  776. public:
  777. ::google::protobuf::Metadata GetMetadata() const final;
  778. // nested types ----------------------------------------------------
  779. // accessors -------------------------------------------------------
  780. // @@protoc_insertion_point(class_scope:protobuf_unittest.CustomOptionFooServerMessage)
  781. private:
  782. ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
  783. ::google::protobuf::internal::HasBits<1> _has_bits_;
  784. mutable ::google::protobuf::internal::CachedSize _cached_size_;
  785. friend struct ::protobuf_google_2fprotobuf_2funittest_5fcustom_5foptions_2eproto::TableStruct;
  786. };
  787. // -------------------------------------------------------------------
  788. class DummyMessageContainingEnum : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:protobuf_unittest.DummyMessageContainingEnum) */ {
  789. public:
  790. DummyMessageContainingEnum();
  791. virtual ~DummyMessageContainingEnum();
  792. DummyMessageContainingEnum(const DummyMessageContainingEnum& from);
  793. inline DummyMessageContainingEnum& operator=(const DummyMessageContainingEnum& from) {
  794. CopyFrom(from);
  795. return *this;
  796. }
  797. #if LANG_CXX11
  798. DummyMessageContainingEnum(DummyMessageContainingEnum&& from) noexcept
  799. : DummyMessageContainingEnum() {
  800. *this = ::std::move(from);
  801. }
  802. inline DummyMessageContainingEnum& operator=(DummyMessageContainingEnum&& from) noexcept {
  803. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  804. if (this != &from) InternalSwap(&from);
  805. } else {
  806. CopyFrom(from);
  807. }
  808. return *this;
  809. }
  810. #endif
  811. inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
  812. return _internal_metadata_.unknown_fields();
  813. }
  814. inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
  815. return _internal_metadata_.mutable_unknown_fields();
  816. }
  817. static const ::google::protobuf::Descriptor* descriptor();
  818. static const DummyMessageContainingEnum& default_instance();
  819. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  820. static inline const DummyMessageContainingEnum* internal_default_instance() {
  821. return reinterpret_cast<const DummyMessageContainingEnum*>(
  822. &_DummyMessageContainingEnum_default_instance_);
  823. }
  824. static constexpr int kIndexInFileMessages =
  825. 5;
  826. void Swap(DummyMessageContainingEnum* other);
  827. friend void swap(DummyMessageContainingEnum& a, DummyMessageContainingEnum& b) {
  828. a.Swap(&b);
  829. }
  830. // implements Message ----------------------------------------------
  831. inline DummyMessageContainingEnum* New() const final {
  832. return CreateMaybeMessage<DummyMessageContainingEnum>(NULL);
  833. }
  834. DummyMessageContainingEnum* New(::google::protobuf::Arena* arena) const final {
  835. return CreateMaybeMessage<DummyMessageContainingEnum>(arena);
  836. }
  837. void CopyFrom(const ::google::protobuf::Message& from) final;
  838. void MergeFrom(const ::google::protobuf::Message& from) final;
  839. void CopyFrom(const DummyMessageContainingEnum& from);
  840. void MergeFrom(const DummyMessageContainingEnum& from);
  841. void Clear() final;
  842. bool IsInitialized() const final;
  843. size_t ByteSizeLong() const final;
  844. bool MergePartialFromCodedStream(
  845. ::google::protobuf::io::CodedInputStream* input) final;
  846. void SerializeWithCachedSizes(
  847. ::google::protobuf::io::CodedOutputStream* output) const final;
  848. ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
  849. bool deterministic, ::google::protobuf::uint8* target) const final;
  850. int GetCachedSize() const final { return _cached_size_.Get(); }
  851. private:
  852. void SharedCtor();
  853. void SharedDtor();
  854. void SetCachedSize(int size) const final;
  855. void InternalSwap(DummyMessageContainingEnum* other);
  856. private:
  857. inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
  858. return NULL;
  859. }
  860. inline void* MaybeArenaPtr() const {
  861. return NULL;
  862. }
  863. public:
  864. ::google::protobuf::Metadata GetMetadata() const final;
  865. // nested types ----------------------------------------------------
  866. typedef DummyMessageContainingEnum_TestEnumType TestEnumType;
  867. static const TestEnumType TEST_OPTION_ENUM_TYPE1 =
  868. DummyMessageContainingEnum_TestEnumType_TEST_OPTION_ENUM_TYPE1;
  869. static const TestEnumType TEST_OPTION_ENUM_TYPE2 =
  870. DummyMessageContainingEnum_TestEnumType_TEST_OPTION_ENUM_TYPE2;
  871. static inline bool TestEnumType_IsValid(int value) {
  872. return DummyMessageContainingEnum_TestEnumType_IsValid(value);
  873. }
  874. static const TestEnumType TestEnumType_MIN =
  875. DummyMessageContainingEnum_TestEnumType_TestEnumType_MIN;
  876. static const TestEnumType TestEnumType_MAX =
  877. DummyMessageContainingEnum_TestEnumType_TestEnumType_MAX;
  878. static const int TestEnumType_ARRAYSIZE =
  879. DummyMessageContainingEnum_TestEnumType_TestEnumType_ARRAYSIZE;
  880. static inline const ::google::protobuf::EnumDescriptor*
  881. TestEnumType_descriptor() {
  882. return DummyMessageContainingEnum_TestEnumType_descriptor();
  883. }
  884. static inline const ::std::string& TestEnumType_Name(TestEnumType value) {
  885. return DummyMessageContainingEnum_TestEnumType_Name(value);
  886. }
  887. static inline bool TestEnumType_Parse(const ::std::string& name,
  888. TestEnumType* value) {
  889. return DummyMessageContainingEnum_TestEnumType_Parse(name, value);
  890. }
  891. // accessors -------------------------------------------------------
  892. // @@protoc_insertion_point(class_scope:protobuf_unittest.DummyMessageContainingEnum)
  893. private:
  894. ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
  895. ::google::protobuf::internal::HasBits<1> _has_bits_;
  896. mutable ::google::protobuf::internal::CachedSize _cached_size_;
  897. friend struct ::protobuf_google_2fprotobuf_2funittest_5fcustom_5foptions_2eproto::TableStruct;
  898. };
  899. // -------------------------------------------------------------------
  900. class DummyMessageInvalidAsOptionType : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:protobuf_unittest.DummyMessageInvalidAsOptionType) */ {
  901. public:
  902. DummyMessageInvalidAsOptionType();
  903. virtual ~DummyMessageInvalidAsOptionType();
  904. DummyMessageInvalidAsOptionType(const DummyMessageInvalidAsOptionType& from);
  905. inline DummyMessageInvalidAsOptionType& operator=(const DummyMessageInvalidAsOptionType& from) {
  906. CopyFrom(from);
  907. return *this;
  908. }
  909. #if LANG_CXX11
  910. DummyMessageInvalidAsOptionType(DummyMessageInvalidAsOptionType&& from) noexcept
  911. : DummyMessageInvalidAsOptionType() {
  912. *this = ::std::move(from);
  913. }
  914. inline DummyMessageInvalidAsOptionType& operator=(DummyMessageInvalidAsOptionType&& from) noexcept {
  915. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  916. if (this != &from) InternalSwap(&from);
  917. } else {
  918. CopyFrom(from);
  919. }
  920. return *this;
  921. }
  922. #endif
  923. inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
  924. return _internal_metadata_.unknown_fields();
  925. }
  926. inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
  927. return _internal_metadata_.mutable_unknown_fields();
  928. }
  929. static const ::google::protobuf::Descriptor* descriptor();
  930. static const DummyMessageInvalidAsOptionType& default_instance();
  931. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  932. static inline const DummyMessageInvalidAsOptionType* internal_default_instance() {
  933. return reinterpret_cast<const DummyMessageInvalidAsOptionType*>(
  934. &_DummyMessageInvalidAsOptionType_default_instance_);
  935. }
  936. static constexpr int kIndexInFileMessages =
  937. 6;
  938. void Swap(DummyMessageInvalidAsOptionType* other);
  939. friend void swap(DummyMessageInvalidAsOptionType& a, DummyMessageInvalidAsOptionType& b) {
  940. a.Swap(&b);
  941. }
  942. // implements Message ----------------------------------------------
  943. inline DummyMessageInvalidAsOptionType* New() const final {
  944. return CreateMaybeMessage<DummyMessageInvalidAsOptionType>(NULL);
  945. }
  946. DummyMessageInvalidAsOptionType* New(::google::protobuf::Arena* arena) const final {
  947. return CreateMaybeMessage<DummyMessageInvalidAsOptionType>(arena);
  948. }
  949. void CopyFrom(const ::google::protobuf::Message& from) final;
  950. void MergeFrom(const ::google::protobuf::Message& from) final;
  951. void CopyFrom(const DummyMessageInvalidAsOptionType& from);
  952. void MergeFrom(const DummyMessageInvalidAsOptionType& from);
  953. void Clear() final;
  954. bool IsInitialized() const final;
  955. size_t ByteSizeLong() const final;
  956. bool MergePartialFromCodedStream(
  957. ::google::protobuf::io::CodedInputStream* input) final;
  958. void SerializeWithCachedSizes(
  959. ::google::protobuf::io::CodedOutputStream* output) const final;
  960. ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
  961. bool deterministic, ::google::protobuf::uint8* target) const final;
  962. int GetCachedSize() const final { return _cached_size_.Get(); }
  963. private:
  964. void SharedCtor();
  965. void SharedDtor();
  966. void SetCachedSize(int size) const final;
  967. void InternalSwap(DummyMessageInvalidAsOptionType* other);
  968. private:
  969. inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
  970. return NULL;
  971. }
  972. inline void* MaybeArenaPtr() const {
  973. return NULL;
  974. }
  975. public:
  976. ::google::protobuf::Metadata GetMetadata() const final;
  977. // nested types ----------------------------------------------------
  978. // accessors -------------------------------------------------------
  979. // @@protoc_insertion_point(class_scope:protobuf_unittest.DummyMessageInvalidAsOptionType)
  980. private:
  981. ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
  982. ::google::protobuf::internal::HasBits<1> _has_bits_;
  983. mutable ::google::protobuf::internal::CachedSize _cached_size_;
  984. friend struct ::protobuf_google_2fprotobuf_2funittest_5fcustom_5foptions_2eproto::TableStruct;
  985. };
  986. // -------------------------------------------------------------------
  987. class CustomOptionMinIntegerValues : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:protobuf_unittest.CustomOptionMinIntegerValues) */ {
  988. public:
  989. CustomOptionMinIntegerValues();
  990. virtual ~CustomOptionMinIntegerValues();
  991. CustomOptionMinIntegerValues(const CustomOptionMinIntegerValues& from);
  992. inline CustomOptionMinIntegerValues& operator=(const CustomOptionMinIntegerValues& from) {
  993. CopyFrom(from);
  994. return *this;
  995. }
  996. #if LANG_CXX11
  997. CustomOptionMinIntegerValues(CustomOptionMinIntegerValues&& from) noexcept
  998. : CustomOptionMinIntegerValues() {
  999. *this = ::std::move(from);
  1000. }
  1001. inline CustomOptionMinIntegerValues& operator=(CustomOptionMinIntegerValues&& from) noexcept {
  1002. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  1003. if (this != &from) InternalSwap(&from);
  1004. } else {
  1005. CopyFrom(from);
  1006. }
  1007. return *this;
  1008. }
  1009. #endif
  1010. inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
  1011. return _internal_metadata_.unknown_fields();
  1012. }
  1013. inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
  1014. return _internal_metadata_.mutable_unknown_fields();
  1015. }
  1016. static const ::google::protobuf::Descriptor* descriptor();
  1017. static const CustomOptionMinIntegerValues& default_instance();
  1018. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  1019. static inline const CustomOptionMinIntegerValues* internal_default_instance() {
  1020. return reinterpret_cast<const CustomOptionMinIntegerValues*>(
  1021. &_CustomOptionMinIntegerValues_default_instance_);
  1022. }
  1023. static constexpr int kIndexInFileMessages =
  1024. 7;
  1025. void Swap(CustomOptionMinIntegerValues* other);
  1026. friend void swap(CustomOptionMinIntegerValues& a, CustomOptionMinIntegerValues& b) {
  1027. a.Swap(&b);
  1028. }
  1029. // implements Message ----------------------------------------------
  1030. inline CustomOptionMinIntegerValues* New() const final {
  1031. return CreateMaybeMessage<CustomOptionMinIntegerValues>(NULL);
  1032. }
  1033. CustomOptionMinIntegerValues* New(::google::protobuf::Arena* arena) const final {
  1034. return CreateMaybeMessage<CustomOptionMinIntegerValues>(arena);
  1035. }
  1036. void CopyFrom(const ::google::protobuf::Message& from) final;
  1037. void MergeFrom(const ::google::protobuf::Message& from) final;
  1038. void CopyFrom(const CustomOptionMinIntegerValues& from);
  1039. void MergeFrom(const CustomOptionMinIntegerValues& from);
  1040. void Clear() final;
  1041. bool IsInitialized() const final;
  1042. size_t ByteSizeLong() const final;
  1043. bool MergePartialFromCodedStream(
  1044. ::google::protobuf::io::CodedInputStream* input) final;
  1045. void SerializeWithCachedSizes(
  1046. ::google::protobuf::io::CodedOutputStream* output) const final;
  1047. ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
  1048. bool deterministic, ::google::protobuf::uint8* target) const final;
  1049. int GetCachedSize() const final { return _cached_size_.Get(); }
  1050. private:
  1051. void SharedCtor();
  1052. void SharedDtor();
  1053. void SetCachedSize(int size) const final;
  1054. void InternalSwap(CustomOptionMinIntegerValues* other);
  1055. private:
  1056. inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
  1057. return NULL;
  1058. }
  1059. inline void* MaybeArenaPtr() const {
  1060. return NULL;
  1061. }
  1062. public:
  1063. ::google::protobuf::Metadata GetMetadata() const final;
  1064. // nested types ----------------------------------------------------
  1065. // accessors -------------------------------------------------------
  1066. // @@protoc_insertion_point(class_scope:protobuf_unittest.CustomOptionMinIntegerValues)
  1067. private:
  1068. ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
  1069. ::google::protobuf::internal::HasBits<1> _has_bits_;
  1070. mutable ::google::protobuf::internal::CachedSize _cached_size_;
  1071. friend struct ::protobuf_google_2fprotobuf_2funittest_5fcustom_5foptions_2eproto::TableStruct;
  1072. };
  1073. // -------------------------------------------------------------------
  1074. class CustomOptionMaxIntegerValues : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:protobuf_unittest.CustomOptionMaxIntegerValues) */ {
  1075. public:
  1076. CustomOptionMaxIntegerValues();
  1077. virtual ~CustomOptionMaxIntegerValues();
  1078. CustomOptionMaxIntegerValues(const CustomOptionMaxIntegerValues& from);
  1079. inline CustomOptionMaxIntegerValues& operator=(const CustomOptionMaxIntegerValues& from) {
  1080. CopyFrom(from);
  1081. return *this;
  1082. }
  1083. #if LANG_CXX11
  1084. CustomOptionMaxIntegerValues(CustomOptionMaxIntegerValues&& from) noexcept
  1085. : CustomOptionMaxIntegerValues() {
  1086. *this = ::std::move(from);
  1087. }
  1088. inline CustomOptionMaxIntegerValues& operator=(CustomOptionMaxIntegerValues&& from) noexcept {
  1089. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  1090. if (this != &from) InternalSwap(&from);
  1091. } else {
  1092. CopyFrom(from);
  1093. }
  1094. return *this;
  1095. }
  1096. #endif
  1097. inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
  1098. return _internal_metadata_.unknown_fields();
  1099. }
  1100. inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
  1101. return _internal_metadata_.mutable_unknown_fields();
  1102. }
  1103. static const ::google::protobuf::Descriptor* descriptor();
  1104. static const CustomOptionMaxIntegerValues& default_instance();
  1105. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  1106. static inline const CustomOptionMaxIntegerValues* internal_default_instance() {
  1107. return reinterpret_cast<const CustomOptionMaxIntegerValues*>(
  1108. &_CustomOptionMaxIntegerValues_default_instance_);
  1109. }
  1110. static constexpr int kIndexInFileMessages =
  1111. 8;
  1112. void Swap(CustomOptionMaxIntegerValues* other);
  1113. friend void swap(CustomOptionMaxIntegerValues& a, CustomOptionMaxIntegerValues& b) {
  1114. a.Swap(&b);
  1115. }
  1116. // implements Message ----------------------------------------------
  1117. inline CustomOptionMaxIntegerValues* New() const final {
  1118. return CreateMaybeMessage<CustomOptionMaxIntegerValues>(NULL);
  1119. }
  1120. CustomOptionMaxIntegerValues* New(::google::protobuf::Arena* arena) const final {
  1121. return CreateMaybeMessage<CustomOptionMaxIntegerValues>(arena);
  1122. }
  1123. void CopyFrom(const ::google::protobuf::Message& from) final;
  1124. void MergeFrom(const ::google::protobuf::Message& from) final;
  1125. void CopyFrom(const CustomOptionMaxIntegerValues& from);
  1126. void MergeFrom(const CustomOptionMaxIntegerValues& from);
  1127. void Clear() final;
  1128. bool IsInitialized() const final;
  1129. size_t ByteSizeLong() const final;
  1130. bool MergePartialFromCodedStream(
  1131. ::google::protobuf::io::CodedInputStream* input) final;
  1132. void SerializeWithCachedSizes(
  1133. ::google::protobuf::io::CodedOutputStream* output) const final;
  1134. ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
  1135. bool deterministic, ::google::protobuf::uint8* target) const final;
  1136. int GetCachedSize() const final { return _cached_size_.Get(); }
  1137. private:
  1138. void SharedCtor();
  1139. void SharedDtor();
  1140. void SetCachedSize(int size) const final;
  1141. void InternalSwap(CustomOptionMaxIntegerValues* other);
  1142. private:
  1143. inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
  1144. return NULL;
  1145. }
  1146. inline void* MaybeArenaPtr() const {
  1147. return NULL;
  1148. }
  1149. public:
  1150. ::google::protobuf::Metadata GetMetadata() const final;
  1151. // nested types ----------------------------------------------------
  1152. // accessors -------------------------------------------------------
  1153. // @@protoc_insertion_point(class_scope:protobuf_unittest.CustomOptionMaxIntegerValues)
  1154. private:
  1155. ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
  1156. ::google::protobuf::internal::HasBits<1> _has_bits_;
  1157. mutable ::google::protobuf::internal::CachedSize _cached_size_;
  1158. friend struct ::protobuf_google_2fprotobuf_2funittest_5fcustom_5foptions_2eproto::TableStruct;
  1159. };
  1160. // -------------------------------------------------------------------
  1161. class CustomOptionOtherValues : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:protobuf_unittest.CustomOptionOtherValues) */ {
  1162. public:
  1163. CustomOptionOtherValues();
  1164. virtual ~CustomOptionOtherValues();
  1165. CustomOptionOtherValues(const CustomOptionOtherValues& from);
  1166. inline CustomOptionOtherValues& operator=(const CustomOptionOtherValues& from) {
  1167. CopyFrom(from);
  1168. return *this;
  1169. }
  1170. #if LANG_CXX11
  1171. CustomOptionOtherValues(CustomOptionOtherValues&& from) noexcept
  1172. : CustomOptionOtherValues() {
  1173. *this = ::std::move(from);
  1174. }
  1175. inline CustomOptionOtherValues& operator=(CustomOptionOtherValues&& from) noexcept {
  1176. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  1177. if (this != &from) InternalSwap(&from);
  1178. } else {
  1179. CopyFrom(from);
  1180. }
  1181. return *this;
  1182. }
  1183. #endif
  1184. inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
  1185. return _internal_metadata_.unknown_fields();
  1186. }
  1187. inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
  1188. return _internal_metadata_.mutable_unknown_fields();
  1189. }
  1190. static const ::google::protobuf::Descriptor* descriptor();
  1191. static const CustomOptionOtherValues& default_instance();
  1192. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  1193. static inline const CustomOptionOtherValues* internal_default_instance() {
  1194. return reinterpret_cast<const CustomOptionOtherValues*>(
  1195. &_CustomOptionOtherValues_default_instance_);
  1196. }
  1197. static constexpr int kIndexInFileMessages =
  1198. 9;
  1199. void Swap(CustomOptionOtherValues* other);
  1200. friend void swap(CustomOptionOtherValues& a, CustomOptionOtherValues& b) {
  1201. a.Swap(&b);
  1202. }
  1203. // implements Message ----------------------------------------------
  1204. inline CustomOptionOtherValues* New() const final {
  1205. return CreateMaybeMessage<CustomOptionOtherValues>(NULL);
  1206. }
  1207. CustomOptionOtherValues* New(::google::protobuf::Arena* arena) const final {
  1208. return CreateMaybeMessage<CustomOptionOtherValues>(arena);
  1209. }
  1210. void CopyFrom(const ::google::protobuf::Message& from) final;
  1211. void MergeFrom(const ::google::protobuf::Message& from) final;
  1212. void CopyFrom(const CustomOptionOtherValues& from);
  1213. void MergeFrom(const CustomOptionOtherValues& from);
  1214. void Clear() final;
  1215. bool IsInitialized() const final;
  1216. size_t ByteSizeLong() const final;
  1217. bool MergePartialFromCodedStream(
  1218. ::google::protobuf::io::CodedInputStream* input) final;
  1219. void SerializeWithCachedSizes(
  1220. ::google::protobuf::io::CodedOutputStream* output) const final;
  1221. ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
  1222. bool deterministic, ::google::protobuf::uint8* target) const final;
  1223. int GetCachedSize() const final { return _cached_size_.Get(); }
  1224. private:
  1225. void SharedCtor();
  1226. void SharedDtor();
  1227. void SetCachedSize(int size) const final;
  1228. void InternalSwap(CustomOptionOtherValues* other);
  1229. private:
  1230. inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
  1231. return NULL;
  1232. }
  1233. inline void* MaybeArenaPtr() const {
  1234. return NULL;
  1235. }
  1236. public:
  1237. ::google::protobuf::Metadata GetMetadata() const final;
  1238. // nested types ----------------------------------------------------
  1239. // accessors -------------------------------------------------------
  1240. // @@protoc_insertion_point(class_scope:protobuf_unittest.CustomOptionOtherValues)
  1241. private:
  1242. ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
  1243. ::google::protobuf::internal::HasBits<1> _has_bits_;
  1244. mutable ::google::protobuf::internal::CachedSize _cached_size_;
  1245. friend struct ::protobuf_google_2fprotobuf_2funittest_5fcustom_5foptions_2eproto::TableStruct;
  1246. };
  1247. // -------------------------------------------------------------------
  1248. class SettingRealsFromPositiveInts : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:protobuf_unittest.SettingRealsFromPositiveInts) */ {
  1249. public:
  1250. SettingRealsFromPositiveInts();
  1251. virtual ~SettingRealsFromPositiveInts();
  1252. SettingRealsFromPositiveInts(const SettingRealsFromPositiveInts& from);
  1253. inline SettingRealsFromPositiveInts& operator=(const SettingRealsFromPositiveInts& from) {
  1254. CopyFrom(from);
  1255. return *this;
  1256. }
  1257. #if LANG_CXX11
  1258. SettingRealsFromPositiveInts(SettingRealsFromPositiveInts&& from) noexcept
  1259. : SettingRealsFromPositiveInts() {
  1260. *this = ::std::move(from);
  1261. }
  1262. inline SettingRealsFromPositiveInts& operator=(SettingRealsFromPositiveInts&& from) noexcept {
  1263. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  1264. if (this != &from) InternalSwap(&from);
  1265. } else {
  1266. CopyFrom(from);
  1267. }
  1268. return *this;
  1269. }
  1270. #endif
  1271. inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
  1272. return _internal_metadata_.unknown_fields();
  1273. }
  1274. inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
  1275. return _internal_metadata_.mutable_unknown_fields();
  1276. }
  1277. static const ::google::protobuf::Descriptor* descriptor();
  1278. static const SettingRealsFromPositiveInts& default_instance();
  1279. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  1280. static inline const SettingRealsFromPositiveInts* internal_default_instance() {
  1281. return reinterpret_cast<const SettingRealsFromPositiveInts*>(
  1282. &_SettingRealsFromPositiveInts_default_instance_);
  1283. }
  1284. static constexpr int kIndexInFileMessages =
  1285. 10;
  1286. void Swap(SettingRealsFromPositiveInts* other);
  1287. friend void swap(SettingRealsFromPositiveInts& a, SettingRealsFromPositiveInts& b) {
  1288. a.Swap(&b);
  1289. }
  1290. // implements Message ----------------------------------------------
  1291. inline SettingRealsFromPositiveInts* New() const final {
  1292. return CreateMaybeMessage<SettingRealsFromPositiveInts>(NULL);
  1293. }
  1294. SettingRealsFromPositiveInts* New(::google::protobuf::Arena* arena) const final {
  1295. return CreateMaybeMessage<SettingRealsFromPositiveInts>(arena);
  1296. }
  1297. void CopyFrom(const ::google::protobuf::Message& from) final;
  1298. void MergeFrom(const ::google::protobuf::Message& from) final;
  1299. void CopyFrom(const SettingRealsFromPositiveInts& from);
  1300. void MergeFrom(const SettingRealsFromPositiveInts& from);
  1301. void Clear() final;
  1302. bool IsInitialized() const final;
  1303. size_t ByteSizeLong() const final;
  1304. bool MergePartialFromCodedStream(
  1305. ::google::protobuf::io::CodedInputStream* input) final;
  1306. void SerializeWithCachedSizes(
  1307. ::google::protobuf::io::CodedOutputStream* output) const final;
  1308. ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
  1309. bool deterministic, ::google::protobuf::uint8* target) const final;
  1310. int GetCachedSize() const final { return _cached_size_.Get(); }
  1311. private:
  1312. void SharedCtor();
  1313. void SharedDtor();
  1314. void SetCachedSize(int size) const final;
  1315. void InternalSwap(SettingRealsFromPositiveInts* other);
  1316. private:
  1317. inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
  1318. return NULL;
  1319. }
  1320. inline void* MaybeArenaPtr() const {
  1321. return NULL;
  1322. }
  1323. public:
  1324. ::google::protobuf::Metadata GetMetadata() const final;
  1325. // nested types ----------------------------------------------------
  1326. // accessors -------------------------------------------------------
  1327. // @@protoc_insertion_point(class_scope:protobuf_unittest.SettingRealsFromPositiveInts)
  1328. private:
  1329. ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
  1330. ::google::protobuf::internal::HasBits<1> _has_bits_;
  1331. mutable ::google::protobuf::internal::CachedSize _cached_size_;
  1332. friend struct ::protobuf_google_2fprotobuf_2funittest_5fcustom_5foptions_2eproto::TableStruct;
  1333. };
  1334. // -------------------------------------------------------------------
  1335. class SettingRealsFromNegativeInts : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:protobuf_unittest.SettingRealsFromNegativeInts) */ {
  1336. public:
  1337. SettingRealsFromNegativeInts();
  1338. virtual ~SettingRealsFromNegativeInts();
  1339. SettingRealsFromNegativeInts(const SettingRealsFromNegativeInts& from);
  1340. inline SettingRealsFromNegativeInts& operator=(const SettingRealsFromNegativeInts& from) {
  1341. CopyFrom(from);
  1342. return *this;
  1343. }
  1344. #if LANG_CXX11
  1345. SettingRealsFromNegativeInts(SettingRealsFromNegativeInts&& from) noexcept
  1346. : SettingRealsFromNegativeInts() {
  1347. *this = ::std::move(from);
  1348. }
  1349. inline SettingRealsFromNegativeInts& operator=(SettingRealsFromNegativeInts&& from) noexcept {
  1350. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  1351. if (this != &from) InternalSwap(&from);
  1352. } else {
  1353. CopyFrom(from);
  1354. }
  1355. return *this;
  1356. }
  1357. #endif
  1358. inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
  1359. return _internal_metadata_.unknown_fields();
  1360. }
  1361. inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
  1362. return _internal_metadata_.mutable_unknown_fields();
  1363. }
  1364. static const ::google::protobuf::Descriptor* descriptor();
  1365. static const SettingRealsFromNegativeInts& default_instance();
  1366. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  1367. static inline const SettingRealsFromNegativeInts* internal_default_instance() {
  1368. return reinterpret_cast<const SettingRealsFromNegativeInts*>(
  1369. &_SettingRealsFromNegativeInts_default_instance_);
  1370. }
  1371. static constexpr int kIndexInFileMessages =
  1372. 11;
  1373. void Swap(SettingRealsFromNegativeInts* other);
  1374. friend void swap(SettingRealsFromNegativeInts& a, SettingRealsFromNegativeInts& b) {
  1375. a.Swap(&b);
  1376. }
  1377. // implements Message ----------------------------------------------
  1378. inline SettingRealsFromNegativeInts* New() const final {
  1379. return CreateMaybeMessage<SettingRealsFromNegativeInts>(NULL);
  1380. }
  1381. SettingRealsFromNegativeInts* New(::google::protobuf::Arena* arena) const final {
  1382. return CreateMaybeMessage<SettingRealsFromNegativeInts>(arena);
  1383. }
  1384. void CopyFrom(const ::google::protobuf::Message& from) final;
  1385. void MergeFrom(const ::google::protobuf::Message& from) final;
  1386. void CopyFrom(const SettingRealsFromNegativeInts& from);
  1387. void MergeFrom(const SettingRealsFromNegativeInts& from);
  1388. void Clear() final;
  1389. bool IsInitialized() const final;
  1390. size_t ByteSizeLong() const final;
  1391. bool MergePartialFromCodedStream(
  1392. ::google::protobuf::io::CodedInputStream* input) final;
  1393. void SerializeWithCachedSizes(
  1394. ::google::protobuf::io::CodedOutputStream* output) const final;
  1395. ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
  1396. bool deterministic, ::google::protobuf::uint8* target) const final;
  1397. int GetCachedSize() const final { return _cached_size_.Get(); }
  1398. private:
  1399. void SharedCtor();
  1400. void SharedDtor();
  1401. void SetCachedSize(int size) const final;
  1402. void InternalSwap(SettingRealsFromNegativeInts* other);
  1403. private:
  1404. inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
  1405. return NULL;
  1406. }
  1407. inline void* MaybeArenaPtr() const {
  1408. return NULL;
  1409. }
  1410. public:
  1411. ::google::protobuf::Metadata GetMetadata() const final;
  1412. // nested types ----------------------------------------------------
  1413. // accessors -------------------------------------------------------
  1414. // @@protoc_insertion_point(class_scope:protobuf_unittest.SettingRealsFromNegativeInts)
  1415. private:
  1416. ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
  1417. ::google::protobuf::internal::HasBits<1> _has_bits_;
  1418. mutable ::google::protobuf::internal::CachedSize _cached_size_;
  1419. friend struct ::protobuf_google_2fprotobuf_2funittest_5fcustom_5foptions_2eproto::TableStruct;
  1420. };
  1421. // -------------------------------------------------------------------
  1422. class ComplexOptionType1 : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:protobuf_unittest.ComplexOptionType1) */ {
  1423. public:
  1424. ComplexOptionType1();
  1425. virtual ~ComplexOptionType1();
  1426. ComplexOptionType1(const ComplexOptionType1& from);
  1427. inline ComplexOptionType1& operator=(const ComplexOptionType1& from) {
  1428. CopyFrom(from);
  1429. return *this;
  1430. }
  1431. #if LANG_CXX11
  1432. ComplexOptionType1(ComplexOptionType1&& from) noexcept
  1433. : ComplexOptionType1() {
  1434. *this = ::std::move(from);
  1435. }
  1436. inline ComplexOptionType1& operator=(ComplexOptionType1&& from) noexcept {
  1437. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  1438. if (this != &from) InternalSwap(&from);
  1439. } else {
  1440. CopyFrom(from);
  1441. }
  1442. return *this;
  1443. }
  1444. #endif
  1445. inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
  1446. return _internal_metadata_.unknown_fields();
  1447. }
  1448. inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
  1449. return _internal_metadata_.mutable_unknown_fields();
  1450. }
  1451. static const ::google::protobuf::Descriptor* descriptor();
  1452. static const ComplexOptionType1& default_instance();
  1453. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  1454. static inline const ComplexOptionType1* internal_default_instance() {
  1455. return reinterpret_cast<const ComplexOptionType1*>(
  1456. &_ComplexOptionType1_default_instance_);
  1457. }
  1458. static constexpr int kIndexInFileMessages =
  1459. 12;
  1460. void Swap(ComplexOptionType1* other);
  1461. friend void swap(ComplexOptionType1& a, ComplexOptionType1& b) {
  1462. a.Swap(&b);
  1463. }
  1464. // implements Message ----------------------------------------------
  1465. inline ComplexOptionType1* New() const final {
  1466. return CreateMaybeMessage<ComplexOptionType1>(NULL);
  1467. }
  1468. ComplexOptionType1* New(::google::protobuf::Arena* arena) const final {
  1469. return CreateMaybeMessage<ComplexOptionType1>(arena);
  1470. }
  1471. void CopyFrom(const ::google::protobuf::Message& from) final;
  1472. void MergeFrom(const ::google::protobuf::Message& from) final;
  1473. void CopyFrom(const ComplexOptionType1& from);
  1474. void MergeFrom(const ComplexOptionType1& from);
  1475. void Clear() final;
  1476. bool IsInitialized() const final;
  1477. size_t ByteSizeLong() const final;
  1478. bool MergePartialFromCodedStream(
  1479. ::google::protobuf::io::CodedInputStream* input) final;
  1480. void SerializeWithCachedSizes(
  1481. ::google::protobuf::io::CodedOutputStream* output) const final;
  1482. ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
  1483. bool deterministic, ::google::protobuf::uint8* target) const final;
  1484. int GetCachedSize() const final { return _cached_size_.Get(); }
  1485. private:
  1486. void SharedCtor();
  1487. void SharedDtor();
  1488. void SetCachedSize(int size) const final;
  1489. void InternalSwap(ComplexOptionType1* other);
  1490. private:
  1491. inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
  1492. return NULL;
  1493. }
  1494. inline void* MaybeArenaPtr() const {
  1495. return NULL;
  1496. }
  1497. public:
  1498. ::google::protobuf::Metadata GetMetadata() const final;
  1499. // nested types ----------------------------------------------------
  1500. // accessors -------------------------------------------------------
  1501. // repeated int32 foo4 = 4;
  1502. int foo4_size() const;
  1503. void clear_foo4();
  1504. static const int kFoo4FieldNumber = 4;
  1505. ::google::protobuf::int32 foo4(int index) const;
  1506. void set_foo4(int index, ::google::protobuf::int32 value);
  1507. void add_foo4(::google::protobuf::int32 value);
  1508. const ::google::protobuf::RepeatedField< ::google::protobuf::int32 >&
  1509. foo4() const;
  1510. ::google::protobuf::RepeatedField< ::google::protobuf::int32 >*
  1511. mutable_foo4();
  1512. // optional int32 foo = 1;
  1513. bool has_foo() const;
  1514. void clear_foo();
  1515. static const int kFooFieldNumber = 1;
  1516. ::google::protobuf::int32 foo() const;
  1517. void set_foo(::google::protobuf::int32 value);
  1518. // optional int32 foo2 = 2;
  1519. bool has_foo2() const;
  1520. void clear_foo2();
  1521. static const int kFoo2FieldNumber = 2;
  1522. ::google::protobuf::int32 foo2() const;
  1523. void set_foo2(::google::protobuf::int32 value);
  1524. // optional int32 foo3 = 3;
  1525. bool has_foo3() const;
  1526. void clear_foo3();
  1527. static const int kFoo3FieldNumber = 3;
  1528. ::google::protobuf::int32 foo3() const;
  1529. void set_foo3(::google::protobuf::int32 value);
  1530. GOOGLE_PROTOBUF_EXTENSION_ACCESSORS(ComplexOptionType1)
  1531. // @@protoc_insertion_point(class_scope:protobuf_unittest.ComplexOptionType1)
  1532. private:
  1533. void set_has_foo();
  1534. void clear_has_foo();
  1535. void set_has_foo2();
  1536. void clear_has_foo2();
  1537. void set_has_foo3();
  1538. void clear_has_foo3();
  1539. ::google::protobuf::internal::ExtensionSet _extensions_;
  1540. ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
  1541. ::google::protobuf::internal::HasBits<1> _has_bits_;
  1542. mutable ::google::protobuf::internal::CachedSize _cached_size_;
  1543. ::google::protobuf::RepeatedField< ::google::protobuf::int32 > foo4_;
  1544. ::google::protobuf::int32 foo_;
  1545. ::google::protobuf::int32 foo2_;
  1546. ::google::protobuf::int32 foo3_;
  1547. friend struct ::protobuf_google_2fprotobuf_2funittest_5fcustom_5foptions_2eproto::TableStruct;
  1548. };
  1549. // -------------------------------------------------------------------
  1550. class ComplexOptionType2_ComplexOptionType4 : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:protobuf_unittest.ComplexOptionType2.ComplexOptionType4) */ {
  1551. public:
  1552. ComplexOptionType2_ComplexOptionType4();
  1553. virtual ~ComplexOptionType2_ComplexOptionType4();
  1554. ComplexOptionType2_ComplexOptionType4(const ComplexOptionType2_ComplexOptionType4& from);
  1555. inline ComplexOptionType2_ComplexOptionType4& operator=(const ComplexOptionType2_ComplexOptionType4& from) {
  1556. CopyFrom(from);
  1557. return *this;
  1558. }
  1559. #if LANG_CXX11
  1560. ComplexOptionType2_ComplexOptionType4(ComplexOptionType2_ComplexOptionType4&& from) noexcept
  1561. : ComplexOptionType2_ComplexOptionType4() {
  1562. *this = ::std::move(from);
  1563. }
  1564. inline ComplexOptionType2_ComplexOptionType4& operator=(ComplexOptionType2_ComplexOptionType4&& from) noexcept {
  1565. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  1566. if (this != &from) InternalSwap(&from);
  1567. } else {
  1568. CopyFrom(from);
  1569. }
  1570. return *this;
  1571. }
  1572. #endif
  1573. inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
  1574. return _internal_metadata_.unknown_fields();
  1575. }
  1576. inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
  1577. return _internal_metadata_.mutable_unknown_fields();
  1578. }
  1579. static const ::google::protobuf::Descriptor* descriptor();
  1580. static const ComplexOptionType2_ComplexOptionType4& default_instance();
  1581. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  1582. static inline const ComplexOptionType2_ComplexOptionType4* internal_default_instance() {
  1583. return reinterpret_cast<const ComplexOptionType2_ComplexOptionType4*>(
  1584. &_ComplexOptionType2_ComplexOptionType4_default_instance_);
  1585. }
  1586. static constexpr int kIndexInFileMessages =
  1587. 13;
  1588. void Swap(ComplexOptionType2_ComplexOptionType4* other);
  1589. friend void swap(ComplexOptionType2_ComplexOptionType4& a, ComplexOptionType2_ComplexOptionType4& b) {
  1590. a.Swap(&b);
  1591. }
  1592. // implements Message ----------------------------------------------
  1593. inline ComplexOptionType2_ComplexOptionType4* New() const final {
  1594. return CreateMaybeMessage<ComplexOptionType2_ComplexOptionType4>(NULL);
  1595. }
  1596. ComplexOptionType2_ComplexOptionType4* New(::google::protobuf::Arena* arena) const final {
  1597. return CreateMaybeMessage<ComplexOptionType2_ComplexOptionType4>(arena);
  1598. }
  1599. void CopyFrom(const ::google::protobuf::Message& from) final;
  1600. void MergeFrom(const ::google::protobuf::Message& from) final;
  1601. void CopyFrom(const ComplexOptionType2_ComplexOptionType4& from);
  1602. void MergeFrom(const ComplexOptionType2_ComplexOptionType4& from);
  1603. void Clear() final;
  1604. bool IsInitialized() const final;
  1605. size_t ByteSizeLong() const final;
  1606. bool MergePartialFromCodedStream(
  1607. ::google::protobuf::io::CodedInputStream* input) final;
  1608. void SerializeWithCachedSizes(
  1609. ::google::protobuf::io::CodedOutputStream* output) const final;
  1610. ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
  1611. bool deterministic, ::google::protobuf::uint8* target) const final;
  1612. int GetCachedSize() const final { return _cached_size_.Get(); }
  1613. private:
  1614. void SharedCtor();
  1615. void SharedDtor();
  1616. void SetCachedSize(int size) const final;
  1617. void InternalSwap(ComplexOptionType2_ComplexOptionType4* other);
  1618. private:
  1619. inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
  1620. return NULL;
  1621. }
  1622. inline void* MaybeArenaPtr() const {
  1623. return NULL;
  1624. }
  1625. public:
  1626. ::google::protobuf::Metadata GetMetadata() const final;
  1627. // nested types ----------------------------------------------------
  1628. // accessors -------------------------------------------------------
  1629. // optional int32 waldo = 1;
  1630. bool has_waldo() const;
  1631. void clear_waldo();
  1632. static const int kWaldoFieldNumber = 1;
  1633. ::google::protobuf::int32 waldo() const;
  1634. void set_waldo(::google::protobuf::int32 value);
  1635. static const int kComplexOpt4FieldNumber = 7633546;
  1636. static ::google::protobuf::internal::ExtensionIdentifier< ::google::protobuf::MessageOptions,
  1637. ::google::protobuf::internal::MessageTypeTraits< ::protobuf_unittest::ComplexOptionType2_ComplexOptionType4 >, 11, false >
  1638. complex_opt4;
  1639. // @@protoc_insertion_point(class_scope:protobuf_unittest.ComplexOptionType2.ComplexOptionType4)
  1640. private:
  1641. void set_has_waldo();
  1642. void clear_has_waldo();
  1643. ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
  1644. ::google::protobuf::internal::HasBits<1> _has_bits_;
  1645. mutable ::google::protobuf::internal::CachedSize _cached_size_;
  1646. ::google::protobuf::int32 waldo_;
  1647. friend struct ::protobuf_google_2fprotobuf_2funittest_5fcustom_5foptions_2eproto::TableStruct;
  1648. };
  1649. // -------------------------------------------------------------------
  1650. class ComplexOptionType2 : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:protobuf_unittest.ComplexOptionType2) */ {
  1651. public:
  1652. ComplexOptionType2();
  1653. virtual ~ComplexOptionType2();
  1654. ComplexOptionType2(const ComplexOptionType2& from);
  1655. inline ComplexOptionType2& operator=(const ComplexOptionType2& from) {
  1656. CopyFrom(from);
  1657. return *this;
  1658. }
  1659. #if LANG_CXX11
  1660. ComplexOptionType2(ComplexOptionType2&& from) noexcept
  1661. : ComplexOptionType2() {
  1662. *this = ::std::move(from);
  1663. }
  1664. inline ComplexOptionType2& operator=(ComplexOptionType2&& from) noexcept {
  1665. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  1666. if (this != &from) InternalSwap(&from);
  1667. } else {
  1668. CopyFrom(from);
  1669. }
  1670. return *this;
  1671. }
  1672. #endif
  1673. inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
  1674. return _internal_metadata_.unknown_fields();
  1675. }
  1676. inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
  1677. return _internal_metadata_.mutable_unknown_fields();
  1678. }
  1679. static const ::google::protobuf::Descriptor* descriptor();
  1680. static const ComplexOptionType2& default_instance();
  1681. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  1682. static inline const ComplexOptionType2* internal_default_instance() {
  1683. return reinterpret_cast<const ComplexOptionType2*>(
  1684. &_ComplexOptionType2_default_instance_);
  1685. }
  1686. static constexpr int kIndexInFileMessages =
  1687. 14;
  1688. void Swap(ComplexOptionType2* other);
  1689. friend void swap(ComplexOptionType2& a, ComplexOptionType2& b) {
  1690. a.Swap(&b);
  1691. }
  1692. // implements Message ----------------------------------------------
  1693. inline ComplexOptionType2* New() const final {
  1694. return CreateMaybeMessage<ComplexOptionType2>(NULL);
  1695. }
  1696. ComplexOptionType2* New(::google::protobuf::Arena* arena) const final {
  1697. return CreateMaybeMessage<ComplexOptionType2>(arena);
  1698. }
  1699. void CopyFrom(const ::google::protobuf::Message& from) final;
  1700. void MergeFrom(const ::google::protobuf::Message& from) final;
  1701. void CopyFrom(const ComplexOptionType2& from);
  1702. void MergeFrom(const ComplexOptionType2& from);
  1703. void Clear() final;
  1704. bool IsInitialized() const final;
  1705. size_t ByteSizeLong() const final;
  1706. bool MergePartialFromCodedStream(
  1707. ::google::protobuf::io::CodedInputStream* input) final;
  1708. void SerializeWithCachedSizes(
  1709. ::google::protobuf::io::CodedOutputStream* output) const final;
  1710. ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
  1711. bool deterministic, ::google::protobuf::uint8* target) const final;
  1712. int GetCachedSize() const final { return _cached_size_.Get(); }
  1713. private:
  1714. void SharedCtor();
  1715. void SharedDtor();
  1716. void SetCachedSize(int size) const final;
  1717. void InternalSwap(ComplexOptionType2* other);
  1718. private:
  1719. inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
  1720. return NULL;
  1721. }
  1722. inline void* MaybeArenaPtr() const {
  1723. return NULL;
  1724. }
  1725. public:
  1726. ::google::protobuf::Metadata GetMetadata() const final;
  1727. // nested types ----------------------------------------------------
  1728. typedef ComplexOptionType2_ComplexOptionType4 ComplexOptionType4;
  1729. // accessors -------------------------------------------------------
  1730. // repeated .protobuf_unittest.ComplexOptionType2.ComplexOptionType4 barney = 4;
  1731. int barney_size() const;
  1732. void clear_barney();
  1733. static const int kBarneyFieldNumber = 4;
  1734. ::protobuf_unittest::ComplexOptionType2_ComplexOptionType4* mutable_barney(int index);
  1735. ::google::protobuf::RepeatedPtrField< ::protobuf_unittest::ComplexOptionType2_ComplexOptionType4 >*
  1736. mutable_barney();
  1737. const ::protobuf_unittest::ComplexOptionType2_ComplexOptionType4& barney(int index) const;
  1738. ::protobuf_unittest::ComplexOptionType2_ComplexOptionType4* add_barney();
  1739. const ::google::protobuf::RepeatedPtrField< ::protobuf_unittest::ComplexOptionType2_ComplexOptionType4 >&
  1740. barney() const;
  1741. // optional .protobuf_unittest.ComplexOptionType1 bar = 1;
  1742. bool has_bar() const;
  1743. void clear_bar();
  1744. static const int kBarFieldNumber = 1;
  1745. private:
  1746. const ::protobuf_unittest::ComplexOptionType1& _internal_bar() const;
  1747. public:
  1748. const ::protobuf_unittest::ComplexOptionType1& bar() const;
  1749. ::protobuf_unittest::ComplexOptionType1* release_bar();
  1750. ::protobuf_unittest::ComplexOptionType1* mutable_bar();
  1751. void set_allocated_bar(::protobuf_unittest::ComplexOptionType1* bar);
  1752. // optional .protobuf_unittest.ComplexOptionType2.ComplexOptionType4 fred = 3;
  1753. bool has_fred() const;
  1754. void clear_fred();
  1755. static const int kFredFieldNumber = 3;
  1756. private:
  1757. const ::protobuf_unittest::ComplexOptionType2_ComplexOptionType4& _internal_fred() const;
  1758. public:
  1759. const ::protobuf_unittest::ComplexOptionType2_ComplexOptionType4& fred() const;
  1760. ::protobuf_unittest::ComplexOptionType2_ComplexOptionType4* release_fred();
  1761. ::protobuf_unittest::ComplexOptionType2_ComplexOptionType4* mutable_fred();
  1762. void set_allocated_fred(::protobuf_unittest::ComplexOptionType2_ComplexOptionType4* fred);
  1763. // optional int32 baz = 2;
  1764. bool has_baz() const;
  1765. void clear_baz();
  1766. static const int kBazFieldNumber = 2;
  1767. ::google::protobuf::int32 baz() const;
  1768. void set_baz(::google::protobuf::int32 value);
  1769. GOOGLE_PROTOBUF_EXTENSION_ACCESSORS(ComplexOptionType2)
  1770. // @@protoc_insertion_point(class_scope:protobuf_unittest.ComplexOptionType2)
  1771. private:
  1772. void set_has_bar();
  1773. void clear_has_bar();
  1774. void set_has_baz();
  1775. void clear_has_baz();
  1776. void set_has_fred();
  1777. void clear_has_fred();
  1778. ::google::protobuf::internal::ExtensionSet _extensions_;
  1779. ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
  1780. ::google::protobuf::internal::HasBits<1> _has_bits_;
  1781. mutable ::google::protobuf::internal::CachedSize _cached_size_;
  1782. ::google::protobuf::RepeatedPtrField< ::protobuf_unittest::ComplexOptionType2_ComplexOptionType4 > barney_;
  1783. ::protobuf_unittest::ComplexOptionType1* bar_;
  1784. ::protobuf_unittest::ComplexOptionType2_ComplexOptionType4* fred_;
  1785. ::google::protobuf::int32 baz_;
  1786. friend struct ::protobuf_google_2fprotobuf_2funittest_5fcustom_5foptions_2eproto::TableStruct;
  1787. };
  1788. // -------------------------------------------------------------------
  1789. class ComplexOptionType3_ComplexOptionType5 : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:protobuf_unittest.ComplexOptionType3.ComplexOptionType5) */ {
  1790. public:
  1791. ComplexOptionType3_ComplexOptionType5();
  1792. virtual ~ComplexOptionType3_ComplexOptionType5();
  1793. ComplexOptionType3_ComplexOptionType5(const ComplexOptionType3_ComplexOptionType5& from);
  1794. inline ComplexOptionType3_ComplexOptionType5& operator=(const ComplexOptionType3_ComplexOptionType5& from) {
  1795. CopyFrom(from);
  1796. return *this;
  1797. }
  1798. #if LANG_CXX11
  1799. ComplexOptionType3_ComplexOptionType5(ComplexOptionType3_ComplexOptionType5&& from) noexcept
  1800. : ComplexOptionType3_ComplexOptionType5() {
  1801. *this = ::std::move(from);
  1802. }
  1803. inline ComplexOptionType3_ComplexOptionType5& operator=(ComplexOptionType3_ComplexOptionType5&& from) noexcept {
  1804. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  1805. if (this != &from) InternalSwap(&from);
  1806. } else {
  1807. CopyFrom(from);
  1808. }
  1809. return *this;
  1810. }
  1811. #endif
  1812. inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
  1813. return _internal_metadata_.unknown_fields();
  1814. }
  1815. inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
  1816. return _internal_metadata_.mutable_unknown_fields();
  1817. }
  1818. static const ::google::protobuf::Descriptor* descriptor();
  1819. static const ComplexOptionType3_ComplexOptionType5& default_instance();
  1820. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  1821. static inline const ComplexOptionType3_ComplexOptionType5* internal_default_instance() {
  1822. return reinterpret_cast<const ComplexOptionType3_ComplexOptionType5*>(
  1823. &_ComplexOptionType3_ComplexOptionType5_default_instance_);
  1824. }
  1825. static constexpr int kIndexInFileMessages =
  1826. 15;
  1827. void Swap(ComplexOptionType3_ComplexOptionType5* other);
  1828. friend void swap(ComplexOptionType3_ComplexOptionType5& a, ComplexOptionType3_ComplexOptionType5& b) {
  1829. a.Swap(&b);
  1830. }
  1831. // implements Message ----------------------------------------------
  1832. inline ComplexOptionType3_ComplexOptionType5* New() const final {
  1833. return CreateMaybeMessage<ComplexOptionType3_ComplexOptionType5>(NULL);
  1834. }
  1835. ComplexOptionType3_ComplexOptionType5* New(::google::protobuf::Arena* arena) const final {
  1836. return CreateMaybeMessage<ComplexOptionType3_ComplexOptionType5>(arena);
  1837. }
  1838. void CopyFrom(const ::google::protobuf::Message& from) final;
  1839. void MergeFrom(const ::google::protobuf::Message& from) final;
  1840. void CopyFrom(const ComplexOptionType3_ComplexOptionType5& from);
  1841. void MergeFrom(const ComplexOptionType3_ComplexOptionType5& from);
  1842. void Clear() final;
  1843. bool IsInitialized() const final;
  1844. size_t ByteSizeLong() const final;
  1845. bool MergePartialFromCodedStream(
  1846. ::google::protobuf::io::CodedInputStream* input) final;
  1847. void SerializeWithCachedSizes(
  1848. ::google::protobuf::io::CodedOutputStream* output) const final;
  1849. ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
  1850. bool deterministic, ::google::protobuf::uint8* target) const final;
  1851. int GetCachedSize() const final { return _cached_size_.Get(); }
  1852. private:
  1853. void SharedCtor();
  1854. void SharedDtor();
  1855. void SetCachedSize(int size) const final;
  1856. void InternalSwap(ComplexOptionType3_ComplexOptionType5* other);
  1857. private:
  1858. inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
  1859. return NULL;
  1860. }
  1861. inline void* MaybeArenaPtr() const {
  1862. return NULL;
  1863. }
  1864. public:
  1865. ::google::protobuf::Metadata GetMetadata() const final;
  1866. // nested types ----------------------------------------------------
  1867. // accessors -------------------------------------------------------
  1868. // optional int32 plugh = 3;
  1869. bool has_plugh() const;
  1870. void clear_plugh();
  1871. static const int kPlughFieldNumber = 3;
  1872. ::google::protobuf::int32 plugh() const;
  1873. void set_plugh(::google::protobuf::int32 value);
  1874. // @@protoc_insertion_point(class_scope:protobuf_unittest.ComplexOptionType3.ComplexOptionType5)
  1875. private:
  1876. void set_has_plugh();
  1877. void clear_has_plugh();
  1878. ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
  1879. ::google::protobuf::internal::HasBits<1> _has_bits_;
  1880. mutable ::google::protobuf::internal::CachedSize _cached_size_;
  1881. ::google::protobuf::int32 plugh_;
  1882. friend struct ::protobuf_google_2fprotobuf_2funittest_5fcustom_5foptions_2eproto::TableStruct;
  1883. };
  1884. // -------------------------------------------------------------------
  1885. class ComplexOptionType3 : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:protobuf_unittest.ComplexOptionType3) */ {
  1886. public:
  1887. ComplexOptionType3();
  1888. virtual ~ComplexOptionType3();
  1889. ComplexOptionType3(const ComplexOptionType3& from);
  1890. inline ComplexOptionType3& operator=(const ComplexOptionType3& from) {
  1891. CopyFrom(from);
  1892. return *this;
  1893. }
  1894. #if LANG_CXX11
  1895. ComplexOptionType3(ComplexOptionType3&& from) noexcept
  1896. : ComplexOptionType3() {
  1897. *this = ::std::move(from);
  1898. }
  1899. inline ComplexOptionType3& operator=(ComplexOptionType3&& from) noexcept {
  1900. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  1901. if (this != &from) InternalSwap(&from);
  1902. } else {
  1903. CopyFrom(from);
  1904. }
  1905. return *this;
  1906. }
  1907. #endif
  1908. inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
  1909. return _internal_metadata_.unknown_fields();
  1910. }
  1911. inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
  1912. return _internal_metadata_.mutable_unknown_fields();
  1913. }
  1914. static const ::google::protobuf::Descriptor* descriptor();
  1915. static const ComplexOptionType3& default_instance();
  1916. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  1917. static inline const ComplexOptionType3* internal_default_instance() {
  1918. return reinterpret_cast<const ComplexOptionType3*>(
  1919. &_ComplexOptionType3_default_instance_);
  1920. }
  1921. static constexpr int kIndexInFileMessages =
  1922. 16;
  1923. void Swap(ComplexOptionType3* other);
  1924. friend void swap(ComplexOptionType3& a, ComplexOptionType3& b) {
  1925. a.Swap(&b);
  1926. }
  1927. // implements Message ----------------------------------------------
  1928. inline ComplexOptionType3* New() const final {
  1929. return CreateMaybeMessage<ComplexOptionType3>(NULL);
  1930. }
  1931. ComplexOptionType3* New(::google::protobuf::Arena* arena) const final {
  1932. return CreateMaybeMessage<ComplexOptionType3>(arena);
  1933. }
  1934. void CopyFrom(const ::google::protobuf::Message& from) final;
  1935. void MergeFrom(const ::google::protobuf::Message& from) final;
  1936. void CopyFrom(const ComplexOptionType3& from);
  1937. void MergeFrom(const ComplexOptionType3& from);
  1938. void Clear() final;
  1939. bool IsInitialized() const final;
  1940. size_t ByteSizeLong() const final;
  1941. bool MergePartialFromCodedStream(
  1942. ::google::protobuf::io::CodedInputStream* input) final;
  1943. void SerializeWithCachedSizes(
  1944. ::google::protobuf::io::CodedOutputStream* output) const final;
  1945. ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
  1946. bool deterministic, ::google::protobuf::uint8* target) const final;
  1947. int GetCachedSize() const final { return _cached_size_.Get(); }
  1948. private:
  1949. void SharedCtor();
  1950. void SharedDtor();
  1951. void SetCachedSize(int size) const final;
  1952. void InternalSwap(ComplexOptionType3* other);
  1953. private:
  1954. inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
  1955. return NULL;
  1956. }
  1957. inline void* MaybeArenaPtr() const {
  1958. return NULL;
  1959. }
  1960. public:
  1961. ::google::protobuf::Metadata GetMetadata() const final;
  1962. // nested types ----------------------------------------------------
  1963. typedef ComplexOptionType3_ComplexOptionType5 ComplexOptionType5;
  1964. // accessors -------------------------------------------------------
  1965. // optional group ComplexOptionType5 = 2 { ... };
  1966. bool has_complexoptiontype5() const;
  1967. void clear_complexoptiontype5();
  1968. static const int kComplexoptiontype5FieldNumber = 2;
  1969. private:
  1970. const ::protobuf_unittest::ComplexOptionType3_ComplexOptionType5& _internal_complexoptiontype5() const;
  1971. public:
  1972. const ::protobuf_unittest::ComplexOptionType3_ComplexOptionType5& complexoptiontype5() const;
  1973. ::protobuf_unittest::ComplexOptionType3_ComplexOptionType5* release_complexoptiontype5();
  1974. ::protobuf_unittest::ComplexOptionType3_ComplexOptionType5* mutable_complexoptiontype5();
  1975. void set_allocated_complexoptiontype5(::protobuf_unittest::ComplexOptionType3_ComplexOptionType5* complexoptiontype5);
  1976. // optional int32 qux = 1;
  1977. bool has_qux() const;
  1978. void clear_qux();
  1979. static const int kQuxFieldNumber = 1;
  1980. ::google::protobuf::int32 qux() const;
  1981. void set_qux(::google::protobuf::int32 value);
  1982. // @@protoc_insertion_point(class_scope:protobuf_unittest.ComplexOptionType3)
  1983. private:
  1984. void set_has_qux();
  1985. void clear_has_qux();
  1986. void set_has_complexoptiontype5();
  1987. void clear_has_complexoptiontype5();
  1988. ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
  1989. ::google::protobuf::internal::HasBits<1> _has_bits_;
  1990. mutable ::google::protobuf::internal::CachedSize _cached_size_;
  1991. ::protobuf_unittest::ComplexOptionType3_ComplexOptionType5* complexoptiontype5_;
  1992. ::google::protobuf::int32 qux_;
  1993. friend struct ::protobuf_google_2fprotobuf_2funittest_5fcustom_5foptions_2eproto::TableStruct;
  1994. };
  1995. // -------------------------------------------------------------------
  1996. class ComplexOpt6 : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:protobuf_unittest.ComplexOpt6) */ {
  1997. public:
  1998. ComplexOpt6();
  1999. virtual ~ComplexOpt6();
  2000. ComplexOpt6(const ComplexOpt6& from);
  2001. inline ComplexOpt6& operator=(const ComplexOpt6& from) {
  2002. CopyFrom(from);
  2003. return *this;
  2004. }
  2005. #if LANG_CXX11
  2006. ComplexOpt6(ComplexOpt6&& from) noexcept
  2007. : ComplexOpt6() {
  2008. *this = ::std::move(from);
  2009. }
  2010. inline ComplexOpt6& operator=(ComplexOpt6&& from) noexcept {
  2011. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  2012. if (this != &from) InternalSwap(&from);
  2013. } else {
  2014. CopyFrom(from);
  2015. }
  2016. return *this;
  2017. }
  2018. #endif
  2019. inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
  2020. return _internal_metadata_.unknown_fields();
  2021. }
  2022. inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
  2023. return _internal_metadata_.mutable_unknown_fields();
  2024. }
  2025. static const ::google::protobuf::Descriptor* descriptor();
  2026. static const ComplexOpt6& default_instance();
  2027. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  2028. static inline const ComplexOpt6* internal_default_instance() {
  2029. return reinterpret_cast<const ComplexOpt6*>(
  2030. &_ComplexOpt6_default_instance_);
  2031. }
  2032. static constexpr int kIndexInFileMessages =
  2033. 17;
  2034. void Swap(ComplexOpt6* other);
  2035. friend void swap(ComplexOpt6& a, ComplexOpt6& b) {
  2036. a.Swap(&b);
  2037. }
  2038. // implements Message ----------------------------------------------
  2039. inline ComplexOpt6* New() const final {
  2040. return CreateMaybeMessage<ComplexOpt6>(NULL);
  2041. }
  2042. ComplexOpt6* New(::google::protobuf::Arena* arena) const final {
  2043. return CreateMaybeMessage<ComplexOpt6>(arena);
  2044. }
  2045. void CopyFrom(const ::google::protobuf::Message& from) final;
  2046. void MergeFrom(const ::google::protobuf::Message& from) final;
  2047. void CopyFrom(const ComplexOpt6& from);
  2048. void MergeFrom(const ComplexOpt6& from);
  2049. void Clear() final;
  2050. bool IsInitialized() const final;
  2051. size_t ByteSizeLong() const final;
  2052. bool MergePartialFromCodedStream(
  2053. ::google::protobuf::io::CodedInputStream* input) final;
  2054. void SerializeWithCachedSizes(
  2055. ::google::protobuf::io::CodedOutputStream* output) const final;
  2056. ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
  2057. bool deterministic, ::google::protobuf::uint8* target) const final;
  2058. int GetCachedSize() const final { return _cached_size_.Get(); }
  2059. private:
  2060. void SharedCtor();
  2061. void SharedDtor();
  2062. void SetCachedSize(int size) const final;
  2063. void InternalSwap(ComplexOpt6* other);
  2064. private:
  2065. inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
  2066. return NULL;
  2067. }
  2068. inline void* MaybeArenaPtr() const {
  2069. return NULL;
  2070. }
  2071. public:
  2072. ::google::protobuf::Metadata GetMetadata() const final;
  2073. // nested types ----------------------------------------------------
  2074. // accessors -------------------------------------------------------
  2075. // optional int32 xyzzy = 7593951;
  2076. bool has_xyzzy() const;
  2077. void clear_xyzzy();
  2078. static const int kXyzzyFieldNumber = 7593951;
  2079. ::google::protobuf::int32 xyzzy() const;
  2080. void set_xyzzy(::google::protobuf::int32 value);
  2081. // @@protoc_insertion_point(class_scope:protobuf_unittest.ComplexOpt6)
  2082. private:
  2083. void set_has_xyzzy();
  2084. void clear_has_xyzzy();
  2085. ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
  2086. ::google::protobuf::internal::HasBits<1> _has_bits_;
  2087. mutable ::google::protobuf::internal::CachedSize _cached_size_;
  2088. ::google::protobuf::int32 xyzzy_;
  2089. friend struct ::protobuf_google_2fprotobuf_2funittest_5fcustom_5foptions_2eproto::TableStruct;
  2090. };
  2091. // -------------------------------------------------------------------
  2092. class VariousComplexOptions : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:protobuf_unittest.VariousComplexOptions) */ {
  2093. public:
  2094. VariousComplexOptions();
  2095. virtual ~VariousComplexOptions();
  2096. VariousComplexOptions(const VariousComplexOptions& from);
  2097. inline VariousComplexOptions& operator=(const VariousComplexOptions& from) {
  2098. CopyFrom(from);
  2099. return *this;
  2100. }
  2101. #if LANG_CXX11
  2102. VariousComplexOptions(VariousComplexOptions&& from) noexcept
  2103. : VariousComplexOptions() {
  2104. *this = ::std::move(from);
  2105. }
  2106. inline VariousComplexOptions& operator=(VariousComplexOptions&& from) noexcept {
  2107. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  2108. if (this != &from) InternalSwap(&from);
  2109. } else {
  2110. CopyFrom(from);
  2111. }
  2112. return *this;
  2113. }
  2114. #endif
  2115. inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
  2116. return _internal_metadata_.unknown_fields();
  2117. }
  2118. inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
  2119. return _internal_metadata_.mutable_unknown_fields();
  2120. }
  2121. static const ::google::protobuf::Descriptor* descriptor();
  2122. static const VariousComplexOptions& default_instance();
  2123. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  2124. static inline const VariousComplexOptions* internal_default_instance() {
  2125. return reinterpret_cast<const VariousComplexOptions*>(
  2126. &_VariousComplexOptions_default_instance_);
  2127. }
  2128. static constexpr int kIndexInFileMessages =
  2129. 18;
  2130. void Swap(VariousComplexOptions* other);
  2131. friend void swap(VariousComplexOptions& a, VariousComplexOptions& b) {
  2132. a.Swap(&b);
  2133. }
  2134. // implements Message ----------------------------------------------
  2135. inline VariousComplexOptions* New() const final {
  2136. return CreateMaybeMessage<VariousComplexOptions>(NULL);
  2137. }
  2138. VariousComplexOptions* New(::google::protobuf::Arena* arena) const final {
  2139. return CreateMaybeMessage<VariousComplexOptions>(arena);
  2140. }
  2141. void CopyFrom(const ::google::protobuf::Message& from) final;
  2142. void MergeFrom(const ::google::protobuf::Message& from) final;
  2143. void CopyFrom(const VariousComplexOptions& from);
  2144. void MergeFrom(const VariousComplexOptions& from);
  2145. void Clear() final;
  2146. bool IsInitialized() const final;
  2147. size_t ByteSizeLong() const final;
  2148. bool MergePartialFromCodedStream(
  2149. ::google::protobuf::io::CodedInputStream* input) final;
  2150. void SerializeWithCachedSizes(
  2151. ::google::protobuf::io::CodedOutputStream* output) const final;
  2152. ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
  2153. bool deterministic, ::google::protobuf::uint8* target) const final;
  2154. int GetCachedSize() const final { return _cached_size_.Get(); }
  2155. private:
  2156. void SharedCtor();
  2157. void SharedDtor();
  2158. void SetCachedSize(int size) const final;
  2159. void InternalSwap(VariousComplexOptions* other);
  2160. private:
  2161. inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
  2162. return NULL;
  2163. }
  2164. inline void* MaybeArenaPtr() const {
  2165. return NULL;
  2166. }
  2167. public:
  2168. ::google::protobuf::Metadata GetMetadata() const final;
  2169. // nested types ----------------------------------------------------
  2170. // accessors -------------------------------------------------------
  2171. // @@protoc_insertion_point(class_scope:protobuf_unittest.VariousComplexOptions)
  2172. private:
  2173. ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
  2174. ::google::protobuf::internal::HasBits<1> _has_bits_;
  2175. mutable ::google::protobuf::internal::CachedSize _cached_size_;
  2176. friend struct ::protobuf_google_2fprotobuf_2funittest_5fcustom_5foptions_2eproto::TableStruct;
  2177. };
  2178. // -------------------------------------------------------------------
  2179. class AggregateMessageSet : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:protobuf_unittest.AggregateMessageSet) */ {
  2180. public:
  2181. AggregateMessageSet();
  2182. virtual ~AggregateMessageSet();
  2183. AggregateMessageSet(const AggregateMessageSet& from);
  2184. inline AggregateMessageSet& operator=(const AggregateMessageSet& from) {
  2185. CopyFrom(from);
  2186. return *this;
  2187. }
  2188. #if LANG_CXX11
  2189. AggregateMessageSet(AggregateMessageSet&& from) noexcept
  2190. : AggregateMessageSet() {
  2191. *this = ::std::move(from);
  2192. }
  2193. inline AggregateMessageSet& operator=(AggregateMessageSet&& from) noexcept {
  2194. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  2195. if (this != &from) InternalSwap(&from);
  2196. } else {
  2197. CopyFrom(from);
  2198. }
  2199. return *this;
  2200. }
  2201. #endif
  2202. inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
  2203. return _internal_metadata_.unknown_fields();
  2204. }
  2205. inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
  2206. return _internal_metadata_.mutable_unknown_fields();
  2207. }
  2208. static const ::google::protobuf::Descriptor* descriptor();
  2209. static const AggregateMessageSet& default_instance();
  2210. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  2211. static inline const AggregateMessageSet* internal_default_instance() {
  2212. return reinterpret_cast<const AggregateMessageSet*>(
  2213. &_AggregateMessageSet_default_instance_);
  2214. }
  2215. static constexpr int kIndexInFileMessages =
  2216. 19;
  2217. void Swap(AggregateMessageSet* other);
  2218. friend void swap(AggregateMessageSet& a, AggregateMessageSet& b) {
  2219. a.Swap(&b);
  2220. }
  2221. // implements Message ----------------------------------------------
  2222. inline AggregateMessageSet* New() const final {
  2223. return CreateMaybeMessage<AggregateMessageSet>(NULL);
  2224. }
  2225. AggregateMessageSet* New(::google::protobuf::Arena* arena) const final {
  2226. return CreateMaybeMessage<AggregateMessageSet>(arena);
  2227. }
  2228. void CopyFrom(const ::google::protobuf::Message& from) final;
  2229. void MergeFrom(const ::google::protobuf::Message& from) final;
  2230. void CopyFrom(const AggregateMessageSet& from);
  2231. void MergeFrom(const AggregateMessageSet& from);
  2232. void Clear() final;
  2233. bool IsInitialized() const final;
  2234. size_t ByteSizeLong() const final;
  2235. bool MergePartialFromCodedStream(
  2236. ::google::protobuf::io::CodedInputStream* input) final;
  2237. void SerializeWithCachedSizes(
  2238. ::google::protobuf::io::CodedOutputStream* output) const final;
  2239. ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
  2240. bool deterministic, ::google::protobuf::uint8* target) const final;
  2241. int GetCachedSize() const final { return _cached_size_.Get(); }
  2242. private:
  2243. void SharedCtor();
  2244. void SharedDtor();
  2245. void SetCachedSize(int size) const final;
  2246. void InternalSwap(AggregateMessageSet* other);
  2247. private:
  2248. inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
  2249. return NULL;
  2250. }
  2251. inline void* MaybeArenaPtr() const {
  2252. return NULL;
  2253. }
  2254. public:
  2255. ::google::protobuf::Metadata GetMetadata() const final;
  2256. // nested types ----------------------------------------------------
  2257. // accessors -------------------------------------------------------
  2258. GOOGLE_PROTOBUF_EXTENSION_ACCESSORS(AggregateMessageSet)
  2259. // @@protoc_insertion_point(class_scope:protobuf_unittest.AggregateMessageSet)
  2260. private:
  2261. ::google::protobuf::internal::ExtensionSet _extensions_;
  2262. ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
  2263. ::google::protobuf::internal::HasBits<1> _has_bits_;
  2264. mutable ::google::protobuf::internal::CachedSize _cached_size_;
  2265. friend struct ::protobuf_google_2fprotobuf_2funittest_5fcustom_5foptions_2eproto::TableStruct;
  2266. };
  2267. // -------------------------------------------------------------------
  2268. class AggregateMessageSetElement : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:protobuf_unittest.AggregateMessageSetElement) */ {
  2269. public:
  2270. AggregateMessageSetElement();
  2271. virtual ~AggregateMessageSetElement();
  2272. AggregateMessageSetElement(const AggregateMessageSetElement& from);
  2273. inline AggregateMessageSetElement& operator=(const AggregateMessageSetElement& from) {
  2274. CopyFrom(from);
  2275. return *this;
  2276. }
  2277. #if LANG_CXX11
  2278. AggregateMessageSetElement(AggregateMessageSetElement&& from) noexcept
  2279. : AggregateMessageSetElement() {
  2280. *this = ::std::move(from);
  2281. }
  2282. inline AggregateMessageSetElement& operator=(AggregateMessageSetElement&& from) noexcept {
  2283. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  2284. if (this != &from) InternalSwap(&from);
  2285. } else {
  2286. CopyFrom(from);
  2287. }
  2288. return *this;
  2289. }
  2290. #endif
  2291. inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
  2292. return _internal_metadata_.unknown_fields();
  2293. }
  2294. inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
  2295. return _internal_metadata_.mutable_unknown_fields();
  2296. }
  2297. static const ::google::protobuf::Descriptor* descriptor();
  2298. static const AggregateMessageSetElement& default_instance();
  2299. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  2300. static inline const AggregateMessageSetElement* internal_default_instance() {
  2301. return reinterpret_cast<const AggregateMessageSetElement*>(
  2302. &_AggregateMessageSetElement_default_instance_);
  2303. }
  2304. static constexpr int kIndexInFileMessages =
  2305. 20;
  2306. void Swap(AggregateMessageSetElement* other);
  2307. friend void swap(AggregateMessageSetElement& a, AggregateMessageSetElement& b) {
  2308. a.Swap(&b);
  2309. }
  2310. // implements Message ----------------------------------------------
  2311. inline AggregateMessageSetElement* New() const final {
  2312. return CreateMaybeMessage<AggregateMessageSetElement>(NULL);
  2313. }
  2314. AggregateMessageSetElement* New(::google::protobuf::Arena* arena) const final {
  2315. return CreateMaybeMessage<AggregateMessageSetElement>(arena);
  2316. }
  2317. void CopyFrom(const ::google::protobuf::Message& from) final;
  2318. void MergeFrom(const ::google::protobuf::Message& from) final;
  2319. void CopyFrom(const AggregateMessageSetElement& from);
  2320. void MergeFrom(const AggregateMessageSetElement& from);
  2321. void Clear() final;
  2322. bool IsInitialized() const final;
  2323. size_t ByteSizeLong() const final;
  2324. bool MergePartialFromCodedStream(
  2325. ::google::protobuf::io::CodedInputStream* input) final;
  2326. void SerializeWithCachedSizes(
  2327. ::google::protobuf::io::CodedOutputStream* output) const final;
  2328. ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
  2329. bool deterministic, ::google::protobuf::uint8* target) const final;
  2330. int GetCachedSize() const final { return _cached_size_.Get(); }
  2331. private:
  2332. void SharedCtor();
  2333. void SharedDtor();
  2334. void SetCachedSize(int size) const final;
  2335. void InternalSwap(AggregateMessageSetElement* other);
  2336. private:
  2337. inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
  2338. return NULL;
  2339. }
  2340. inline void* MaybeArenaPtr() const {
  2341. return NULL;
  2342. }
  2343. public:
  2344. ::google::protobuf::Metadata GetMetadata() const final;
  2345. // nested types ----------------------------------------------------
  2346. // accessors -------------------------------------------------------
  2347. // optional string s = 1;
  2348. bool has_s() const;
  2349. void clear_s();
  2350. static const int kSFieldNumber = 1;
  2351. const ::std::string& s() const;
  2352. void set_s(const ::std::string& value);
  2353. #if LANG_CXX11
  2354. void set_s(::std::string&& value);
  2355. #endif
  2356. void set_s(const char* value);
  2357. void set_s(const char* value, size_t size);
  2358. ::std::string* mutable_s();
  2359. ::std::string* release_s();
  2360. void set_allocated_s(::std::string* s);
  2361. static const int kMessageSetExtensionFieldNumber = 15447542;
  2362. static ::google::protobuf::internal::ExtensionIdentifier< ::protobuf_unittest::AggregateMessageSet,
  2363. ::google::protobuf::internal::MessageTypeTraits< ::protobuf_unittest::AggregateMessageSetElement >, 11, false >
  2364. message_set_extension;
  2365. // @@protoc_insertion_point(class_scope:protobuf_unittest.AggregateMessageSetElement)
  2366. private:
  2367. void set_has_s();
  2368. void clear_has_s();
  2369. ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
  2370. ::google::protobuf::internal::HasBits<1> _has_bits_;
  2371. mutable ::google::protobuf::internal::CachedSize _cached_size_;
  2372. ::google::protobuf::internal::ArenaStringPtr s_;
  2373. friend struct ::protobuf_google_2fprotobuf_2funittest_5fcustom_5foptions_2eproto::TableStruct;
  2374. };
  2375. // -------------------------------------------------------------------
  2376. class Aggregate : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:protobuf_unittest.Aggregate) */ {
  2377. public:
  2378. Aggregate();
  2379. virtual ~Aggregate();
  2380. Aggregate(const Aggregate& from);
  2381. inline Aggregate& operator=(const Aggregate& from) {
  2382. CopyFrom(from);
  2383. return *this;
  2384. }
  2385. #if LANG_CXX11
  2386. Aggregate(Aggregate&& from) noexcept
  2387. : Aggregate() {
  2388. *this = ::std::move(from);
  2389. }
  2390. inline Aggregate& operator=(Aggregate&& from) noexcept {
  2391. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  2392. if (this != &from) InternalSwap(&from);
  2393. } else {
  2394. CopyFrom(from);
  2395. }
  2396. return *this;
  2397. }
  2398. #endif
  2399. inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
  2400. return _internal_metadata_.unknown_fields();
  2401. }
  2402. inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
  2403. return _internal_metadata_.mutable_unknown_fields();
  2404. }
  2405. static const ::google::protobuf::Descriptor* descriptor();
  2406. static const Aggregate& default_instance();
  2407. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  2408. static inline const Aggregate* internal_default_instance() {
  2409. return reinterpret_cast<const Aggregate*>(
  2410. &_Aggregate_default_instance_);
  2411. }
  2412. static constexpr int kIndexInFileMessages =
  2413. 21;
  2414. void Swap(Aggregate* other);
  2415. friend void swap(Aggregate& a, Aggregate& b) {
  2416. a.Swap(&b);
  2417. }
  2418. // implements Message ----------------------------------------------
  2419. inline Aggregate* New() const final {
  2420. return CreateMaybeMessage<Aggregate>(NULL);
  2421. }
  2422. Aggregate* New(::google::protobuf::Arena* arena) const final {
  2423. return CreateMaybeMessage<Aggregate>(arena);
  2424. }
  2425. void CopyFrom(const ::google::protobuf::Message& from) final;
  2426. void MergeFrom(const ::google::protobuf::Message& from) final;
  2427. void CopyFrom(const Aggregate& from);
  2428. void MergeFrom(const Aggregate& from);
  2429. void Clear() final;
  2430. bool IsInitialized() const final;
  2431. size_t ByteSizeLong() const final;
  2432. bool MergePartialFromCodedStream(
  2433. ::google::protobuf::io::CodedInputStream* input) final;
  2434. void SerializeWithCachedSizes(
  2435. ::google::protobuf::io::CodedOutputStream* output) const final;
  2436. ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
  2437. bool deterministic, ::google::protobuf::uint8* target) const final;
  2438. int GetCachedSize() const final { return _cached_size_.Get(); }
  2439. private:
  2440. void SharedCtor();
  2441. void SharedDtor();
  2442. void SetCachedSize(int size) const final;
  2443. void InternalSwap(Aggregate* other);
  2444. private:
  2445. inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
  2446. return NULL;
  2447. }
  2448. inline void* MaybeArenaPtr() const {
  2449. return NULL;
  2450. }
  2451. public:
  2452. ::google::protobuf::Metadata GetMetadata() const final;
  2453. // nested types ----------------------------------------------------
  2454. // accessors -------------------------------------------------------
  2455. // optional string s = 2;
  2456. bool has_s() const;
  2457. void clear_s();
  2458. static const int kSFieldNumber = 2;
  2459. const ::std::string& s() const;
  2460. void set_s(const ::std::string& value);
  2461. #if LANG_CXX11
  2462. void set_s(::std::string&& value);
  2463. #endif
  2464. void set_s(const char* value);
  2465. void set_s(const char* value, size_t size);
  2466. ::std::string* mutable_s();
  2467. ::std::string* release_s();
  2468. void set_allocated_s(::std::string* s);
  2469. // optional .protobuf_unittest.Aggregate sub = 3;
  2470. bool has_sub() const;
  2471. void clear_sub();
  2472. static const int kSubFieldNumber = 3;
  2473. private:
  2474. const ::protobuf_unittest::Aggregate& _internal_sub() const;
  2475. public:
  2476. const ::protobuf_unittest::Aggregate& sub() const;
  2477. ::protobuf_unittest::Aggregate* release_sub();
  2478. ::protobuf_unittest::Aggregate* mutable_sub();
  2479. void set_allocated_sub(::protobuf_unittest::Aggregate* sub);
  2480. // optional .google.protobuf.FileOptions file = 4;
  2481. bool has_file() const;
  2482. void clear_file();
  2483. static const int kFileFieldNumber = 4;
  2484. private:
  2485. const ::google::protobuf::FileOptions& _internal_file() const;
  2486. public:
  2487. const ::google::protobuf::FileOptions& file() const;
  2488. ::google::protobuf::FileOptions* release_file();
  2489. ::google::protobuf::FileOptions* mutable_file();
  2490. void set_allocated_file(::google::protobuf::FileOptions* file);
  2491. // optional .protobuf_unittest.AggregateMessageSet mset = 5;
  2492. bool has_mset() const;
  2493. void clear_mset();
  2494. static const int kMsetFieldNumber = 5;
  2495. private:
  2496. const ::protobuf_unittest::AggregateMessageSet& _internal_mset() const;
  2497. public:
  2498. const ::protobuf_unittest::AggregateMessageSet& mset() const;
  2499. ::protobuf_unittest::AggregateMessageSet* release_mset();
  2500. ::protobuf_unittest::AggregateMessageSet* mutable_mset();
  2501. void set_allocated_mset(::protobuf_unittest::AggregateMessageSet* mset);
  2502. // optional int32 i = 1;
  2503. bool has_i() const;
  2504. void clear_i();
  2505. static const int kIFieldNumber = 1;
  2506. ::google::protobuf::int32 i() const;
  2507. void set_i(::google::protobuf::int32 value);
  2508. static const int kNestedFieldNumber = 15476903;
  2509. static ::google::protobuf::internal::ExtensionIdentifier< ::google::protobuf::FileOptions,
  2510. ::google::protobuf::internal::MessageTypeTraits< ::protobuf_unittest::Aggregate >, 11, false >
  2511. nested;
  2512. // @@protoc_insertion_point(class_scope:protobuf_unittest.Aggregate)
  2513. private:
  2514. void set_has_i();
  2515. void clear_has_i();
  2516. void set_has_s();
  2517. void clear_has_s();
  2518. void set_has_sub();
  2519. void clear_has_sub();
  2520. void set_has_file();
  2521. void clear_has_file();
  2522. void set_has_mset();
  2523. void clear_has_mset();
  2524. ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
  2525. ::google::protobuf::internal::HasBits<1> _has_bits_;
  2526. mutable ::google::protobuf::internal::CachedSize _cached_size_;
  2527. ::google::protobuf::internal::ArenaStringPtr s_;
  2528. ::protobuf_unittest::Aggregate* sub_;
  2529. ::google::protobuf::FileOptions* file_;
  2530. ::protobuf_unittest::AggregateMessageSet* mset_;
  2531. ::google::protobuf::int32 i_;
  2532. friend struct ::protobuf_google_2fprotobuf_2funittest_5fcustom_5foptions_2eproto::TableStruct;
  2533. };
  2534. // -------------------------------------------------------------------
  2535. class AggregateMessage : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:protobuf_unittest.AggregateMessage) */ {
  2536. public:
  2537. AggregateMessage();
  2538. virtual ~AggregateMessage();
  2539. AggregateMessage(const AggregateMessage& from);
  2540. inline AggregateMessage& operator=(const AggregateMessage& from) {
  2541. CopyFrom(from);
  2542. return *this;
  2543. }
  2544. #if LANG_CXX11
  2545. AggregateMessage(AggregateMessage&& from) noexcept
  2546. : AggregateMessage() {
  2547. *this = ::std::move(from);
  2548. }
  2549. inline AggregateMessage& operator=(AggregateMessage&& from) noexcept {
  2550. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  2551. if (this != &from) InternalSwap(&from);
  2552. } else {
  2553. CopyFrom(from);
  2554. }
  2555. return *this;
  2556. }
  2557. #endif
  2558. inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
  2559. return _internal_metadata_.unknown_fields();
  2560. }
  2561. inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
  2562. return _internal_metadata_.mutable_unknown_fields();
  2563. }
  2564. static const ::google::protobuf::Descriptor* descriptor();
  2565. static const AggregateMessage& default_instance();
  2566. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  2567. static inline const AggregateMessage* internal_default_instance() {
  2568. return reinterpret_cast<const AggregateMessage*>(
  2569. &_AggregateMessage_default_instance_);
  2570. }
  2571. static constexpr int kIndexInFileMessages =
  2572. 22;
  2573. void Swap(AggregateMessage* other);
  2574. friend void swap(AggregateMessage& a, AggregateMessage& b) {
  2575. a.Swap(&b);
  2576. }
  2577. // implements Message ----------------------------------------------
  2578. inline AggregateMessage* New() const final {
  2579. return CreateMaybeMessage<AggregateMessage>(NULL);
  2580. }
  2581. AggregateMessage* New(::google::protobuf::Arena* arena) const final {
  2582. return CreateMaybeMessage<AggregateMessage>(arena);
  2583. }
  2584. void CopyFrom(const ::google::protobuf::Message& from) final;
  2585. void MergeFrom(const ::google::protobuf::Message& from) final;
  2586. void CopyFrom(const AggregateMessage& from);
  2587. void MergeFrom(const AggregateMessage& from);
  2588. void Clear() final;
  2589. bool IsInitialized() const final;
  2590. size_t ByteSizeLong() const final;
  2591. bool MergePartialFromCodedStream(
  2592. ::google::protobuf::io::CodedInputStream* input) final;
  2593. void SerializeWithCachedSizes(
  2594. ::google::protobuf::io::CodedOutputStream* output) const final;
  2595. ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
  2596. bool deterministic, ::google::protobuf::uint8* target) const final;
  2597. int GetCachedSize() const final { return _cached_size_.Get(); }
  2598. private:
  2599. void SharedCtor();
  2600. void SharedDtor();
  2601. void SetCachedSize(int size) const final;
  2602. void InternalSwap(AggregateMessage* other);
  2603. private:
  2604. inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
  2605. return NULL;
  2606. }
  2607. inline void* MaybeArenaPtr() const {
  2608. return NULL;
  2609. }
  2610. public:
  2611. ::google::protobuf::Metadata GetMetadata() const final;
  2612. // nested types ----------------------------------------------------
  2613. // accessors -------------------------------------------------------
  2614. // optional int32 fieldname = 1 [(.protobuf_unittest.fieldopt) = {
  2615. bool has_fieldname() const;
  2616. void clear_fieldname();
  2617. static const int kFieldnameFieldNumber = 1;
  2618. ::google::protobuf::int32 fieldname() const;
  2619. void set_fieldname(::google::protobuf::int32 value);
  2620. // @@protoc_insertion_point(class_scope:protobuf_unittest.AggregateMessage)
  2621. private:
  2622. void set_has_fieldname();
  2623. void clear_has_fieldname();
  2624. ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
  2625. ::google::protobuf::internal::HasBits<1> _has_bits_;
  2626. mutable ::google::protobuf::internal::CachedSize _cached_size_;
  2627. ::google::protobuf::int32 fieldname_;
  2628. friend struct ::protobuf_google_2fprotobuf_2funittest_5fcustom_5foptions_2eproto::TableStruct;
  2629. };
  2630. // -------------------------------------------------------------------
  2631. class NestedOptionType_NestedMessage : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:protobuf_unittest.NestedOptionType.NestedMessage) */ {
  2632. public:
  2633. NestedOptionType_NestedMessage();
  2634. virtual ~NestedOptionType_NestedMessage();
  2635. NestedOptionType_NestedMessage(const NestedOptionType_NestedMessage& from);
  2636. inline NestedOptionType_NestedMessage& operator=(const NestedOptionType_NestedMessage& from) {
  2637. CopyFrom(from);
  2638. return *this;
  2639. }
  2640. #if LANG_CXX11
  2641. NestedOptionType_NestedMessage(NestedOptionType_NestedMessage&& from) noexcept
  2642. : NestedOptionType_NestedMessage() {
  2643. *this = ::std::move(from);
  2644. }
  2645. inline NestedOptionType_NestedMessage& operator=(NestedOptionType_NestedMessage&& from) noexcept {
  2646. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  2647. if (this != &from) InternalSwap(&from);
  2648. } else {
  2649. CopyFrom(from);
  2650. }
  2651. return *this;
  2652. }
  2653. #endif
  2654. inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
  2655. return _internal_metadata_.unknown_fields();
  2656. }
  2657. inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
  2658. return _internal_metadata_.mutable_unknown_fields();
  2659. }
  2660. static const ::google::protobuf::Descriptor* descriptor();
  2661. static const NestedOptionType_NestedMessage& default_instance();
  2662. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  2663. static inline const NestedOptionType_NestedMessage* internal_default_instance() {
  2664. return reinterpret_cast<const NestedOptionType_NestedMessage*>(
  2665. &_NestedOptionType_NestedMessage_default_instance_);
  2666. }
  2667. static constexpr int kIndexInFileMessages =
  2668. 23;
  2669. void Swap(NestedOptionType_NestedMessage* other);
  2670. friend void swap(NestedOptionType_NestedMessage& a, NestedOptionType_NestedMessage& b) {
  2671. a.Swap(&b);
  2672. }
  2673. // implements Message ----------------------------------------------
  2674. inline NestedOptionType_NestedMessage* New() const final {
  2675. return CreateMaybeMessage<NestedOptionType_NestedMessage>(NULL);
  2676. }
  2677. NestedOptionType_NestedMessage* New(::google::protobuf::Arena* arena) const final {
  2678. return CreateMaybeMessage<NestedOptionType_NestedMessage>(arena);
  2679. }
  2680. void CopyFrom(const ::google::protobuf::Message& from) final;
  2681. void MergeFrom(const ::google::protobuf::Message& from) final;
  2682. void CopyFrom(const NestedOptionType_NestedMessage& from);
  2683. void MergeFrom(const NestedOptionType_NestedMessage& from);
  2684. void Clear() final;
  2685. bool IsInitialized() const final;
  2686. size_t ByteSizeLong() const final;
  2687. bool MergePartialFromCodedStream(
  2688. ::google::protobuf::io::CodedInputStream* input) final;
  2689. void SerializeWithCachedSizes(
  2690. ::google::protobuf::io::CodedOutputStream* output) const final;
  2691. ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
  2692. bool deterministic, ::google::protobuf::uint8* target) const final;
  2693. int GetCachedSize() const final { return _cached_size_.Get(); }
  2694. private:
  2695. void SharedCtor();
  2696. void SharedDtor();
  2697. void SetCachedSize(int size) const final;
  2698. void InternalSwap(NestedOptionType_NestedMessage* other);
  2699. private:
  2700. inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
  2701. return NULL;
  2702. }
  2703. inline void* MaybeArenaPtr() const {
  2704. return NULL;
  2705. }
  2706. public:
  2707. ::google::protobuf::Metadata GetMetadata() const final;
  2708. // nested types ----------------------------------------------------
  2709. // accessors -------------------------------------------------------
  2710. // optional int32 nested_field = 1 [(.protobuf_unittest.field_opt1) = 1002];
  2711. bool has_nested_field() const;
  2712. void clear_nested_field();
  2713. static const int kNestedFieldFieldNumber = 1;
  2714. ::google::protobuf::int32 nested_field() const;
  2715. void set_nested_field(::google::protobuf::int32 value);
  2716. // @@protoc_insertion_point(class_scope:protobuf_unittest.NestedOptionType.NestedMessage)
  2717. private:
  2718. void set_has_nested_field();
  2719. void clear_has_nested_field();
  2720. ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
  2721. ::google::protobuf::internal::HasBits<1> _has_bits_;
  2722. mutable ::google::protobuf::internal::CachedSize _cached_size_;
  2723. ::google::protobuf::int32 nested_field_;
  2724. friend struct ::protobuf_google_2fprotobuf_2funittest_5fcustom_5foptions_2eproto::TableStruct;
  2725. };
  2726. // -------------------------------------------------------------------
  2727. class NestedOptionType : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:protobuf_unittest.NestedOptionType) */ {
  2728. public:
  2729. NestedOptionType();
  2730. virtual ~NestedOptionType();
  2731. NestedOptionType(const NestedOptionType& from);
  2732. inline NestedOptionType& operator=(const NestedOptionType& from) {
  2733. CopyFrom(from);
  2734. return *this;
  2735. }
  2736. #if LANG_CXX11
  2737. NestedOptionType(NestedOptionType&& from) noexcept
  2738. : NestedOptionType() {
  2739. *this = ::std::move(from);
  2740. }
  2741. inline NestedOptionType& operator=(NestedOptionType&& from) noexcept {
  2742. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  2743. if (this != &from) InternalSwap(&from);
  2744. } else {
  2745. CopyFrom(from);
  2746. }
  2747. return *this;
  2748. }
  2749. #endif
  2750. inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
  2751. return _internal_metadata_.unknown_fields();
  2752. }
  2753. inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
  2754. return _internal_metadata_.mutable_unknown_fields();
  2755. }
  2756. static const ::google::protobuf::Descriptor* descriptor();
  2757. static const NestedOptionType& default_instance();
  2758. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  2759. static inline const NestedOptionType* internal_default_instance() {
  2760. return reinterpret_cast<const NestedOptionType*>(
  2761. &_NestedOptionType_default_instance_);
  2762. }
  2763. static constexpr int kIndexInFileMessages =
  2764. 24;
  2765. void Swap(NestedOptionType* other);
  2766. friend void swap(NestedOptionType& a, NestedOptionType& b) {
  2767. a.Swap(&b);
  2768. }
  2769. // implements Message ----------------------------------------------
  2770. inline NestedOptionType* New() const final {
  2771. return CreateMaybeMessage<NestedOptionType>(NULL);
  2772. }
  2773. NestedOptionType* New(::google::protobuf::Arena* arena) const final {
  2774. return CreateMaybeMessage<NestedOptionType>(arena);
  2775. }
  2776. void CopyFrom(const ::google::protobuf::Message& from) final;
  2777. void MergeFrom(const ::google::protobuf::Message& from) final;
  2778. void CopyFrom(const NestedOptionType& from);
  2779. void MergeFrom(const NestedOptionType& from);
  2780. void Clear() final;
  2781. bool IsInitialized() const final;
  2782. size_t ByteSizeLong() const final;
  2783. bool MergePartialFromCodedStream(
  2784. ::google::protobuf::io::CodedInputStream* input) final;
  2785. void SerializeWithCachedSizes(
  2786. ::google::protobuf::io::CodedOutputStream* output) const final;
  2787. ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
  2788. bool deterministic, ::google::protobuf::uint8* target) const final;
  2789. int GetCachedSize() const final { return _cached_size_.Get(); }
  2790. private:
  2791. void SharedCtor();
  2792. void SharedDtor();
  2793. void SetCachedSize(int size) const final;
  2794. void InternalSwap(NestedOptionType* other);
  2795. private:
  2796. inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
  2797. return NULL;
  2798. }
  2799. inline void* MaybeArenaPtr() const {
  2800. return NULL;
  2801. }
  2802. public:
  2803. ::google::protobuf::Metadata GetMetadata() const final;
  2804. // nested types ----------------------------------------------------
  2805. typedef NestedOptionType_NestedMessage NestedMessage;
  2806. typedef NestedOptionType_NestedEnum NestedEnum;
  2807. static const NestedEnum NESTED_ENUM_VALUE =
  2808. NestedOptionType_NestedEnum_NESTED_ENUM_VALUE;
  2809. static inline bool NestedEnum_IsValid(int value) {
  2810. return NestedOptionType_NestedEnum_IsValid(value);
  2811. }
  2812. static const NestedEnum NestedEnum_MIN =
  2813. NestedOptionType_NestedEnum_NestedEnum_MIN;
  2814. static const NestedEnum NestedEnum_MAX =
  2815. NestedOptionType_NestedEnum_NestedEnum_MAX;
  2816. static const int NestedEnum_ARRAYSIZE =
  2817. NestedOptionType_NestedEnum_NestedEnum_ARRAYSIZE;
  2818. static inline const ::google::protobuf::EnumDescriptor*
  2819. NestedEnum_descriptor() {
  2820. return NestedOptionType_NestedEnum_descriptor();
  2821. }
  2822. static inline const ::std::string& NestedEnum_Name(NestedEnum value) {
  2823. return NestedOptionType_NestedEnum_Name(value);
  2824. }
  2825. static inline bool NestedEnum_Parse(const ::std::string& name,
  2826. NestedEnum* value) {
  2827. return NestedOptionType_NestedEnum_Parse(name, value);
  2828. }
  2829. // accessors -------------------------------------------------------
  2830. static const int kNestedExtensionFieldNumber = 7912573;
  2831. static ::google::protobuf::internal::ExtensionIdentifier< ::google::protobuf::FileOptions,
  2832. ::google::protobuf::internal::PrimitiveTypeTraits< ::google::protobuf::int32 >, 5, false >
  2833. nested_extension;
  2834. // @@protoc_insertion_point(class_scope:protobuf_unittest.NestedOptionType)
  2835. private:
  2836. ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
  2837. ::google::protobuf::internal::HasBits<1> _has_bits_;
  2838. mutable ::google::protobuf::internal::CachedSize _cached_size_;
  2839. friend struct ::protobuf_google_2fprotobuf_2funittest_5fcustom_5foptions_2eproto::TableStruct;
  2840. };
  2841. // -------------------------------------------------------------------
  2842. class OldOptionType : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:protobuf_unittest.OldOptionType) */ {
  2843. public:
  2844. OldOptionType();
  2845. virtual ~OldOptionType();
  2846. OldOptionType(const OldOptionType& from);
  2847. inline OldOptionType& operator=(const OldOptionType& from) {
  2848. CopyFrom(from);
  2849. return *this;
  2850. }
  2851. #if LANG_CXX11
  2852. OldOptionType(OldOptionType&& from) noexcept
  2853. : OldOptionType() {
  2854. *this = ::std::move(from);
  2855. }
  2856. inline OldOptionType& operator=(OldOptionType&& from) noexcept {
  2857. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  2858. if (this != &from) InternalSwap(&from);
  2859. } else {
  2860. CopyFrom(from);
  2861. }
  2862. return *this;
  2863. }
  2864. #endif
  2865. inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
  2866. return _internal_metadata_.unknown_fields();
  2867. }
  2868. inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
  2869. return _internal_metadata_.mutable_unknown_fields();
  2870. }
  2871. static const ::google::protobuf::Descriptor* descriptor();
  2872. static const OldOptionType& default_instance();
  2873. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  2874. static inline const OldOptionType* internal_default_instance() {
  2875. return reinterpret_cast<const OldOptionType*>(
  2876. &_OldOptionType_default_instance_);
  2877. }
  2878. static constexpr int kIndexInFileMessages =
  2879. 25;
  2880. void Swap(OldOptionType* other);
  2881. friend void swap(OldOptionType& a, OldOptionType& b) {
  2882. a.Swap(&b);
  2883. }
  2884. // implements Message ----------------------------------------------
  2885. inline OldOptionType* New() const final {
  2886. return CreateMaybeMessage<OldOptionType>(NULL);
  2887. }
  2888. OldOptionType* New(::google::protobuf::Arena* arena) const final {
  2889. return CreateMaybeMessage<OldOptionType>(arena);
  2890. }
  2891. void CopyFrom(const ::google::protobuf::Message& from) final;
  2892. void MergeFrom(const ::google::protobuf::Message& from) final;
  2893. void CopyFrom(const OldOptionType& from);
  2894. void MergeFrom(const OldOptionType& from);
  2895. void Clear() final;
  2896. bool IsInitialized() const final;
  2897. size_t ByteSizeLong() const final;
  2898. bool MergePartialFromCodedStream(
  2899. ::google::protobuf::io::CodedInputStream* input) final;
  2900. void SerializeWithCachedSizes(
  2901. ::google::protobuf::io::CodedOutputStream* output) const final;
  2902. ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
  2903. bool deterministic, ::google::protobuf::uint8* target) const final;
  2904. int GetCachedSize() const final { return _cached_size_.Get(); }
  2905. private:
  2906. void SharedCtor();
  2907. void SharedDtor();
  2908. void SetCachedSize(int size) const final;
  2909. void InternalSwap(OldOptionType* other);
  2910. private:
  2911. inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
  2912. return NULL;
  2913. }
  2914. inline void* MaybeArenaPtr() const {
  2915. return NULL;
  2916. }
  2917. public:
  2918. ::google::protobuf::Metadata GetMetadata() const final;
  2919. // nested types ----------------------------------------------------
  2920. typedef OldOptionType_TestEnum TestEnum;
  2921. static const TestEnum OLD_VALUE =
  2922. OldOptionType_TestEnum_OLD_VALUE;
  2923. static inline bool TestEnum_IsValid(int value) {
  2924. return OldOptionType_TestEnum_IsValid(value);
  2925. }
  2926. static const TestEnum TestEnum_MIN =
  2927. OldOptionType_TestEnum_TestEnum_MIN;
  2928. static const TestEnum TestEnum_MAX =
  2929. OldOptionType_TestEnum_TestEnum_MAX;
  2930. static const int TestEnum_ARRAYSIZE =
  2931. OldOptionType_TestEnum_TestEnum_ARRAYSIZE;
  2932. static inline const ::google::protobuf::EnumDescriptor*
  2933. TestEnum_descriptor() {
  2934. return OldOptionType_TestEnum_descriptor();
  2935. }
  2936. static inline const ::std::string& TestEnum_Name(TestEnum value) {
  2937. return OldOptionType_TestEnum_Name(value);
  2938. }
  2939. static inline bool TestEnum_Parse(const ::std::string& name,
  2940. TestEnum* value) {
  2941. return OldOptionType_TestEnum_Parse(name, value);
  2942. }
  2943. // accessors -------------------------------------------------------
  2944. // required .protobuf_unittest.OldOptionType.TestEnum value = 1;
  2945. bool has_value() const;
  2946. void clear_value();
  2947. static const int kValueFieldNumber = 1;
  2948. ::protobuf_unittest::OldOptionType_TestEnum value() const;
  2949. void set_value(::protobuf_unittest::OldOptionType_TestEnum value);
  2950. // @@protoc_insertion_point(class_scope:protobuf_unittest.OldOptionType)
  2951. private:
  2952. void set_has_value();
  2953. void clear_has_value();
  2954. ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
  2955. ::google::protobuf::internal::HasBits<1> _has_bits_;
  2956. mutable ::google::protobuf::internal::CachedSize _cached_size_;
  2957. int value_;
  2958. friend struct ::protobuf_google_2fprotobuf_2funittest_5fcustom_5foptions_2eproto::TableStruct;
  2959. };
  2960. // -------------------------------------------------------------------
  2961. class NewOptionType : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:protobuf_unittest.NewOptionType) */ {
  2962. public:
  2963. NewOptionType();
  2964. virtual ~NewOptionType();
  2965. NewOptionType(const NewOptionType& from);
  2966. inline NewOptionType& operator=(const NewOptionType& from) {
  2967. CopyFrom(from);
  2968. return *this;
  2969. }
  2970. #if LANG_CXX11
  2971. NewOptionType(NewOptionType&& from) noexcept
  2972. : NewOptionType() {
  2973. *this = ::std::move(from);
  2974. }
  2975. inline NewOptionType& operator=(NewOptionType&& from) noexcept {
  2976. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  2977. if (this != &from) InternalSwap(&from);
  2978. } else {
  2979. CopyFrom(from);
  2980. }
  2981. return *this;
  2982. }
  2983. #endif
  2984. inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
  2985. return _internal_metadata_.unknown_fields();
  2986. }
  2987. inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
  2988. return _internal_metadata_.mutable_unknown_fields();
  2989. }
  2990. static const ::google::protobuf::Descriptor* descriptor();
  2991. static const NewOptionType& default_instance();
  2992. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  2993. static inline const NewOptionType* internal_default_instance() {
  2994. return reinterpret_cast<const NewOptionType*>(
  2995. &_NewOptionType_default_instance_);
  2996. }
  2997. static constexpr int kIndexInFileMessages =
  2998. 26;
  2999. void Swap(NewOptionType* other);
  3000. friend void swap(NewOptionType& a, NewOptionType& b) {
  3001. a.Swap(&b);
  3002. }
  3003. // implements Message ----------------------------------------------
  3004. inline NewOptionType* New() const final {
  3005. return CreateMaybeMessage<NewOptionType>(NULL);
  3006. }
  3007. NewOptionType* New(::google::protobuf::Arena* arena) const final {
  3008. return CreateMaybeMessage<NewOptionType>(arena);
  3009. }
  3010. void CopyFrom(const ::google::protobuf::Message& from) final;
  3011. void MergeFrom(const ::google::protobuf::Message& from) final;
  3012. void CopyFrom(const NewOptionType& from);
  3013. void MergeFrom(const NewOptionType& from);
  3014. void Clear() final;
  3015. bool IsInitialized() const final;
  3016. size_t ByteSizeLong() const final;
  3017. bool MergePartialFromCodedStream(
  3018. ::google::protobuf::io::CodedInputStream* input) final;
  3019. void SerializeWithCachedSizes(
  3020. ::google::protobuf::io::CodedOutputStream* output) const final;
  3021. ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
  3022. bool deterministic, ::google::protobuf::uint8* target) const final;
  3023. int GetCachedSize() const final { return _cached_size_.Get(); }
  3024. private:
  3025. void SharedCtor();
  3026. void SharedDtor();
  3027. void SetCachedSize(int size) const final;
  3028. void InternalSwap(NewOptionType* other);
  3029. private:
  3030. inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
  3031. return NULL;
  3032. }
  3033. inline void* MaybeArenaPtr() const {
  3034. return NULL;
  3035. }
  3036. public:
  3037. ::google::protobuf::Metadata GetMetadata() const final;
  3038. // nested types ----------------------------------------------------
  3039. typedef NewOptionType_TestEnum TestEnum;
  3040. static const TestEnum OLD_VALUE =
  3041. NewOptionType_TestEnum_OLD_VALUE;
  3042. static const TestEnum NEW_VALUE =
  3043. NewOptionType_TestEnum_NEW_VALUE;
  3044. static inline bool TestEnum_IsValid(int value) {
  3045. return NewOptionType_TestEnum_IsValid(value);
  3046. }
  3047. static const TestEnum TestEnum_MIN =
  3048. NewOptionType_TestEnum_TestEnum_MIN;
  3049. static const TestEnum TestEnum_MAX =
  3050. NewOptionType_TestEnum_TestEnum_MAX;
  3051. static const int TestEnum_ARRAYSIZE =
  3052. NewOptionType_TestEnum_TestEnum_ARRAYSIZE;
  3053. static inline const ::google::protobuf::EnumDescriptor*
  3054. TestEnum_descriptor() {
  3055. return NewOptionType_TestEnum_descriptor();
  3056. }
  3057. static inline const ::std::string& TestEnum_Name(TestEnum value) {
  3058. return NewOptionType_TestEnum_Name(value);
  3059. }
  3060. static inline bool TestEnum_Parse(const ::std::string& name,
  3061. TestEnum* value) {
  3062. return NewOptionType_TestEnum_Parse(name, value);
  3063. }
  3064. // accessors -------------------------------------------------------
  3065. // required .protobuf_unittest.NewOptionType.TestEnum value = 1;
  3066. bool has_value() const;
  3067. void clear_value();
  3068. static const int kValueFieldNumber = 1;
  3069. ::protobuf_unittest::NewOptionType_TestEnum value() const;
  3070. void set_value(::protobuf_unittest::NewOptionType_TestEnum value);
  3071. // @@protoc_insertion_point(class_scope:protobuf_unittest.NewOptionType)
  3072. private:
  3073. void set_has_value();
  3074. void clear_has_value();
  3075. ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
  3076. ::google::protobuf::internal::HasBits<1> _has_bits_;
  3077. mutable ::google::protobuf::internal::CachedSize _cached_size_;
  3078. int value_;
  3079. friend struct ::protobuf_google_2fprotobuf_2funittest_5fcustom_5foptions_2eproto::TableStruct;
  3080. };
  3081. // -------------------------------------------------------------------
  3082. class TestMessageWithRequiredEnumOption : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:protobuf_unittest.TestMessageWithRequiredEnumOption) */ {
  3083. public:
  3084. TestMessageWithRequiredEnumOption();
  3085. virtual ~TestMessageWithRequiredEnumOption();
  3086. TestMessageWithRequiredEnumOption(const TestMessageWithRequiredEnumOption& from);
  3087. inline TestMessageWithRequiredEnumOption& operator=(const TestMessageWithRequiredEnumOption& from) {
  3088. CopyFrom(from);
  3089. return *this;
  3090. }
  3091. #if LANG_CXX11
  3092. TestMessageWithRequiredEnumOption(TestMessageWithRequiredEnumOption&& from) noexcept
  3093. : TestMessageWithRequiredEnumOption() {
  3094. *this = ::std::move(from);
  3095. }
  3096. inline TestMessageWithRequiredEnumOption& operator=(TestMessageWithRequiredEnumOption&& from) noexcept {
  3097. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  3098. if (this != &from) InternalSwap(&from);
  3099. } else {
  3100. CopyFrom(from);
  3101. }
  3102. return *this;
  3103. }
  3104. #endif
  3105. inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
  3106. return _internal_metadata_.unknown_fields();
  3107. }
  3108. inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
  3109. return _internal_metadata_.mutable_unknown_fields();
  3110. }
  3111. static const ::google::protobuf::Descriptor* descriptor();
  3112. static const TestMessageWithRequiredEnumOption& default_instance();
  3113. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  3114. static inline const TestMessageWithRequiredEnumOption* internal_default_instance() {
  3115. return reinterpret_cast<const TestMessageWithRequiredEnumOption*>(
  3116. &_TestMessageWithRequiredEnumOption_default_instance_);
  3117. }
  3118. static constexpr int kIndexInFileMessages =
  3119. 27;
  3120. void Swap(TestMessageWithRequiredEnumOption* other);
  3121. friend void swap(TestMessageWithRequiredEnumOption& a, TestMessageWithRequiredEnumOption& b) {
  3122. a.Swap(&b);
  3123. }
  3124. // implements Message ----------------------------------------------
  3125. inline TestMessageWithRequiredEnumOption* New() const final {
  3126. return CreateMaybeMessage<TestMessageWithRequiredEnumOption>(NULL);
  3127. }
  3128. TestMessageWithRequiredEnumOption* New(::google::protobuf::Arena* arena) const final {
  3129. return CreateMaybeMessage<TestMessageWithRequiredEnumOption>(arena);
  3130. }
  3131. void CopyFrom(const ::google::protobuf::Message& from) final;
  3132. void MergeFrom(const ::google::protobuf::Message& from) final;
  3133. void CopyFrom(const TestMessageWithRequiredEnumOption& from);
  3134. void MergeFrom(const TestMessageWithRequiredEnumOption& from);
  3135. void Clear() final;
  3136. bool IsInitialized() const final;
  3137. size_t ByteSizeLong() const final;
  3138. bool MergePartialFromCodedStream(
  3139. ::google::protobuf::io::CodedInputStream* input) final;
  3140. void SerializeWithCachedSizes(
  3141. ::google::protobuf::io::CodedOutputStream* output) const final;
  3142. ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
  3143. bool deterministic, ::google::protobuf::uint8* target) const final;
  3144. int GetCachedSize() const final { return _cached_size_.Get(); }
  3145. private:
  3146. void SharedCtor();
  3147. void SharedDtor();
  3148. void SetCachedSize(int size) const final;
  3149. void InternalSwap(TestMessageWithRequiredEnumOption* other);
  3150. private:
  3151. inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
  3152. return NULL;
  3153. }
  3154. inline void* MaybeArenaPtr() const {
  3155. return NULL;
  3156. }
  3157. public:
  3158. ::google::protobuf::Metadata GetMetadata() const final;
  3159. // nested types ----------------------------------------------------
  3160. // accessors -------------------------------------------------------
  3161. // @@protoc_insertion_point(class_scope:protobuf_unittest.TestMessageWithRequiredEnumOption)
  3162. private:
  3163. ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
  3164. ::google::protobuf::internal::HasBits<1> _has_bits_;
  3165. mutable ::google::protobuf::internal::CachedSize _cached_size_;
  3166. friend struct ::protobuf_google_2fprotobuf_2funittest_5fcustom_5foptions_2eproto::TableStruct;
  3167. };
  3168. // ===================================================================
  3169. class TestServiceWithCustomOptions_Stub;
  3170. class TestServiceWithCustomOptions : public ::google::protobuf::Service {
  3171. protected:
  3172. // This class should be treated as an abstract interface.
  3173. inline TestServiceWithCustomOptions() {};
  3174. public:
  3175. virtual ~TestServiceWithCustomOptions();
  3176. typedef TestServiceWithCustomOptions_Stub Stub;
  3177. static const ::google::protobuf::ServiceDescriptor* descriptor();
  3178. virtual void Foo(::google::protobuf::RpcController* controller,
  3179. const ::protobuf_unittest::CustomOptionFooRequest* request,
  3180. ::protobuf_unittest::CustomOptionFooResponse* response,
  3181. ::google::protobuf::Closure* done);
  3182. // implements Service ----------------------------------------------
  3183. const ::google::protobuf::ServiceDescriptor* GetDescriptor();
  3184. void CallMethod(const ::google::protobuf::MethodDescriptor* method,
  3185. ::google::protobuf::RpcController* controller,
  3186. const ::google::protobuf::Message* request,
  3187. ::google::protobuf::Message* response,
  3188. ::google::protobuf::Closure* done);
  3189. const ::google::protobuf::Message& GetRequestPrototype(
  3190. const ::google::protobuf::MethodDescriptor* method) const;
  3191. const ::google::protobuf::Message& GetResponsePrototype(
  3192. const ::google::protobuf::MethodDescriptor* method) const;
  3193. private:
  3194. GOOGLE_DISALLOW_EVIL_CONSTRUCTORS(TestServiceWithCustomOptions);
  3195. };
  3196. class TestServiceWithCustomOptions_Stub : public TestServiceWithCustomOptions {
  3197. public:
  3198. TestServiceWithCustomOptions_Stub(::google::protobuf::RpcChannel* channel);
  3199. TestServiceWithCustomOptions_Stub(::google::protobuf::RpcChannel* channel,
  3200. ::google::protobuf::Service::ChannelOwnership ownership);
  3201. ~TestServiceWithCustomOptions_Stub();
  3202. inline ::google::protobuf::RpcChannel* channel() { return channel_; }
  3203. // implements TestServiceWithCustomOptions ------------------------------------------
  3204. void Foo(::google::protobuf::RpcController* controller,
  3205. const ::protobuf_unittest::CustomOptionFooRequest* request,
  3206. ::protobuf_unittest::CustomOptionFooResponse* response,
  3207. ::google::protobuf::Closure* done);
  3208. private:
  3209. ::google::protobuf::RpcChannel* channel_;
  3210. bool owns_channel_;
  3211. GOOGLE_DISALLOW_EVIL_CONSTRUCTORS(TestServiceWithCustomOptions_Stub);
  3212. };
  3213. // -------------------------------------------------------------------
  3214. class AggregateService_Stub;
  3215. class AggregateService : public ::google::protobuf::Service {
  3216. protected:
  3217. // This class should be treated as an abstract interface.
  3218. inline AggregateService() {};
  3219. public:
  3220. virtual ~AggregateService();
  3221. typedef AggregateService_Stub Stub;
  3222. static const ::google::protobuf::ServiceDescriptor* descriptor();
  3223. virtual void Method(::google::protobuf::RpcController* controller,
  3224. const ::protobuf_unittest::AggregateMessage* request,
  3225. ::protobuf_unittest::AggregateMessage* response,
  3226. ::google::protobuf::Closure* done);
  3227. // implements Service ----------------------------------------------
  3228. const ::google::protobuf::ServiceDescriptor* GetDescriptor();
  3229. void CallMethod(const ::google::protobuf::MethodDescriptor* method,
  3230. ::google::protobuf::RpcController* controller,
  3231. const ::google::protobuf::Message* request,
  3232. ::google::protobuf::Message* response,
  3233. ::google::protobuf::Closure* done);
  3234. const ::google::protobuf::Message& GetRequestPrototype(
  3235. const ::google::protobuf::MethodDescriptor* method) const;
  3236. const ::google::protobuf::Message& GetResponsePrototype(
  3237. const ::google::protobuf::MethodDescriptor* method) const;
  3238. private:
  3239. GOOGLE_DISALLOW_EVIL_CONSTRUCTORS(AggregateService);
  3240. };
  3241. class AggregateService_Stub : public AggregateService {
  3242. public:
  3243. AggregateService_Stub(::google::protobuf::RpcChannel* channel);
  3244. AggregateService_Stub(::google::protobuf::RpcChannel* channel,
  3245. ::google::protobuf::Service::ChannelOwnership ownership);
  3246. ~AggregateService_Stub();
  3247. inline ::google::protobuf::RpcChannel* channel() { return channel_; }
  3248. // implements AggregateService ------------------------------------------
  3249. void Method(::google::protobuf::RpcController* controller,
  3250. const ::protobuf_unittest::AggregateMessage* request,
  3251. ::protobuf_unittest::AggregateMessage* response,
  3252. ::google::protobuf::Closure* done);
  3253. private:
  3254. ::google::protobuf::RpcChannel* channel_;
  3255. bool owns_channel_;
  3256. GOOGLE_DISALLOW_EVIL_CONSTRUCTORS(AggregateService_Stub);
  3257. };
  3258. // ===================================================================
  3259. static const int kFileOpt1FieldNumber = 7736974;
  3260. extern ::google::protobuf::internal::ExtensionIdentifier< ::google::protobuf::FileOptions,
  3261. ::google::protobuf::internal::PrimitiveTypeTraits< ::google::protobuf::uint64 >, 4, false >
  3262. file_opt1;
  3263. static const int kMessageOpt1FieldNumber = 7739036;
  3264. extern ::google::protobuf::internal::ExtensionIdentifier< ::google::protobuf::MessageOptions,
  3265. ::google::protobuf::internal::PrimitiveTypeTraits< ::google::protobuf::int32 >, 5, false >
  3266. message_opt1;
  3267. static const int kFieldOpt1FieldNumber = 7740936;
  3268. extern ::google::protobuf::internal::ExtensionIdentifier< ::google::protobuf::FieldOptions,
  3269. ::google::protobuf::internal::PrimitiveTypeTraits< ::google::protobuf::uint64 >, 6, false >
  3270. field_opt1;
  3271. static const int kFieldOpt2FieldNumber = 7753913;
  3272. extern ::google::protobuf::internal::ExtensionIdentifier< ::google::protobuf::FieldOptions,
  3273. ::google::protobuf::internal::PrimitiveTypeTraits< ::google::protobuf::int32 >, 5, false >
  3274. field_opt2;
  3275. static const int kOneofOpt1FieldNumber = 7740111;
  3276. extern ::google::protobuf::internal::ExtensionIdentifier< ::google::protobuf::OneofOptions,
  3277. ::google::protobuf::internal::PrimitiveTypeTraits< ::google::protobuf::int32 >, 5, false >
  3278. oneof_opt1;
  3279. static const int kEnumOpt1FieldNumber = 7753576;
  3280. extern ::google::protobuf::internal::ExtensionIdentifier< ::google::protobuf::EnumOptions,
  3281. ::google::protobuf::internal::PrimitiveTypeTraits< ::google::protobuf::int32 >, 15, false >
  3282. enum_opt1;
  3283. static const int kEnumValueOpt1FieldNumber = 1560678;
  3284. extern ::google::protobuf::internal::ExtensionIdentifier< ::google::protobuf::EnumValueOptions,
  3285. ::google::protobuf::internal::PrimitiveTypeTraits< ::google::protobuf::int32 >, 5, false >
  3286. enum_value_opt1;
  3287. static const int kServiceOpt1FieldNumber = 7887650;
  3288. extern ::google::protobuf::internal::ExtensionIdentifier< ::google::protobuf::ServiceOptions,
  3289. ::google::protobuf::internal::PrimitiveTypeTraits< ::google::protobuf::int64 >, 18, false >
  3290. service_opt1;
  3291. static const int kMethodOpt1FieldNumber = 7890860;
  3292. extern ::google::protobuf::internal::ExtensionIdentifier< ::google::protobuf::MethodOptions,
  3293. ::google::protobuf::internal::EnumTypeTraits< ::protobuf_unittest::MethodOpt1, ::protobuf_unittest::MethodOpt1_IsValid>, 14, false >
  3294. method_opt1;
  3295. static const int kBoolOptFieldNumber = 7706090;
  3296. extern ::google::protobuf::internal::ExtensionIdentifier< ::google::protobuf::MessageOptions,
  3297. ::google::protobuf::internal::PrimitiveTypeTraits< bool >, 8, false >
  3298. bool_opt;
  3299. static const int kInt32OptFieldNumber = 7705709;
  3300. extern ::google::protobuf::internal::ExtensionIdentifier< ::google::protobuf::MessageOptions,
  3301. ::google::protobuf::internal::PrimitiveTypeTraits< ::google::protobuf::int32 >, 5, false >
  3302. int32_opt;
  3303. static const int kInt64OptFieldNumber = 7705542;
  3304. extern ::google::protobuf::internal::ExtensionIdentifier< ::google::protobuf::MessageOptions,
  3305. ::google::protobuf::internal::PrimitiveTypeTraits< ::google::protobuf::int64 >, 3, false >
  3306. int64_opt;
  3307. static const int kUint32OptFieldNumber = 7704880;
  3308. extern ::google::protobuf::internal::ExtensionIdentifier< ::google::protobuf::MessageOptions,
  3309. ::google::protobuf::internal::PrimitiveTypeTraits< ::google::protobuf::uint32 >, 13, false >
  3310. uint32_opt;
  3311. static const int kUint64OptFieldNumber = 7702367;
  3312. extern ::google::protobuf::internal::ExtensionIdentifier< ::google::protobuf::MessageOptions,
  3313. ::google::protobuf::internal::PrimitiveTypeTraits< ::google::protobuf::uint64 >, 4, false >
  3314. uint64_opt;
  3315. static const int kSint32OptFieldNumber = 7701568;
  3316. extern ::google::protobuf::internal::ExtensionIdentifier< ::google::protobuf::MessageOptions,
  3317. ::google::protobuf::internal::PrimitiveTypeTraits< ::google::protobuf::int32 >, 17, false >
  3318. sint32_opt;
  3319. static const int kSint64OptFieldNumber = 7700863;
  3320. extern ::google::protobuf::internal::ExtensionIdentifier< ::google::protobuf::MessageOptions,
  3321. ::google::protobuf::internal::PrimitiveTypeTraits< ::google::protobuf::int64 >, 18, false >
  3322. sint64_opt;
  3323. static const int kFixed32OptFieldNumber = 7700307;
  3324. extern ::google::protobuf::internal::ExtensionIdentifier< ::google::protobuf::MessageOptions,
  3325. ::google::protobuf::internal::PrimitiveTypeTraits< ::google::protobuf::uint32 >, 7, false >
  3326. fixed32_opt;
  3327. static const int kFixed64OptFieldNumber = 7700194;
  3328. extern ::google::protobuf::internal::ExtensionIdentifier< ::google::protobuf::MessageOptions,
  3329. ::google::protobuf::internal::PrimitiveTypeTraits< ::google::protobuf::uint64 >, 6, false >
  3330. fixed64_opt;
  3331. static const int kSfixed32OptFieldNumber = 7698645;
  3332. extern ::google::protobuf::internal::ExtensionIdentifier< ::google::protobuf::MessageOptions,
  3333. ::google::protobuf::internal::PrimitiveTypeTraits< ::google::protobuf::int32 >, 15, false >
  3334. sfixed32_opt;
  3335. static const int kSfixed64OptFieldNumber = 7685475;
  3336. extern ::google::protobuf::internal::ExtensionIdentifier< ::google::protobuf::MessageOptions,
  3337. ::google::protobuf::internal::PrimitiveTypeTraits< ::google::protobuf::int64 >, 16, false >
  3338. sfixed64_opt;
  3339. static const int kFloatOptFieldNumber = 7675390;
  3340. extern ::google::protobuf::internal::ExtensionIdentifier< ::google::protobuf::MessageOptions,
  3341. ::google::protobuf::internal::PrimitiveTypeTraits< float >, 2, false >
  3342. float_opt;
  3343. static const int kDoubleOptFieldNumber = 7673293;
  3344. extern ::google::protobuf::internal::ExtensionIdentifier< ::google::protobuf::MessageOptions,
  3345. ::google::protobuf::internal::PrimitiveTypeTraits< double >, 1, false >
  3346. double_opt;
  3347. static const int kStringOptFieldNumber = 7673285;
  3348. extern ::google::protobuf::internal::ExtensionIdentifier< ::google::protobuf::MessageOptions,
  3349. ::google::protobuf::internal::StringTypeTraits, 9, false >
  3350. string_opt;
  3351. static const int kBytesOptFieldNumber = 7673238;
  3352. extern ::google::protobuf::internal::ExtensionIdentifier< ::google::protobuf::MessageOptions,
  3353. ::google::protobuf::internal::StringTypeTraits, 12, false >
  3354. bytes_opt;
  3355. static const int kEnumOptFieldNumber = 7673233;
  3356. extern ::google::protobuf::internal::ExtensionIdentifier< ::google::protobuf::MessageOptions,
  3357. ::google::protobuf::internal::EnumTypeTraits< ::protobuf_unittest::DummyMessageContainingEnum_TestEnumType, ::protobuf_unittest::DummyMessageContainingEnum_TestEnumType_IsValid>, 14, false >
  3358. enum_opt;
  3359. static const int kMessageTypeOptFieldNumber = 7665967;
  3360. extern ::google::protobuf::internal::ExtensionIdentifier< ::google::protobuf::MessageOptions,
  3361. ::google::protobuf::internal::MessageTypeTraits< ::protobuf_unittest::DummyMessageInvalidAsOptionType >, 11, false >
  3362. message_type_opt;
  3363. static const int kQuuxFieldNumber = 7663707;
  3364. extern ::google::protobuf::internal::ExtensionIdentifier< ::protobuf_unittest::ComplexOptionType1,
  3365. ::google::protobuf::internal::PrimitiveTypeTraits< ::google::protobuf::int32 >, 5, false >
  3366. quux;
  3367. static const int kCorgeFieldNumber = 7663442;
  3368. extern ::google::protobuf::internal::ExtensionIdentifier< ::protobuf_unittest::ComplexOptionType1,
  3369. ::google::protobuf::internal::MessageTypeTraits< ::protobuf_unittest::ComplexOptionType3 >, 11, false >
  3370. corge;
  3371. static const int kGraultFieldNumber = 7650927;
  3372. extern ::google::protobuf::internal::ExtensionIdentifier< ::protobuf_unittest::ComplexOptionType2,
  3373. ::google::protobuf::internal::PrimitiveTypeTraits< ::google::protobuf::int32 >, 5, false >
  3374. grault;
  3375. static const int kGarplyFieldNumber = 7649992;
  3376. extern ::google::protobuf::internal::ExtensionIdentifier< ::protobuf_unittest::ComplexOptionType2,
  3377. ::google::protobuf::internal::MessageTypeTraits< ::protobuf_unittest::ComplexOptionType1 >, 11, false >
  3378. garply;
  3379. static const int kComplexOpt1FieldNumber = 7646756;
  3380. extern ::google::protobuf::internal::ExtensionIdentifier< ::google::protobuf::MessageOptions,
  3381. ::google::protobuf::internal::MessageTypeTraits< ::protobuf_unittest::ComplexOptionType1 >, 11, false >
  3382. complex_opt1;
  3383. static const int kComplexOpt2FieldNumber = 7636949;
  3384. extern ::google::protobuf::internal::ExtensionIdentifier< ::google::protobuf::MessageOptions,
  3385. ::google::protobuf::internal::MessageTypeTraits< ::protobuf_unittest::ComplexOptionType2 >, 11, false >
  3386. complex_opt2;
  3387. static const int kComplexOpt3FieldNumber = 7636463;
  3388. extern ::google::protobuf::internal::ExtensionIdentifier< ::google::protobuf::MessageOptions,
  3389. ::google::protobuf::internal::MessageTypeTraits< ::protobuf_unittest::ComplexOptionType3 >, 11, false >
  3390. complex_opt3;
  3391. static const int kComplexopt6FieldNumber = 7595468;
  3392. extern ::google::protobuf::internal::ExtensionIdentifier< ::google::protobuf::MessageOptions,
  3393. ::google::protobuf::internal::MessageTypeTraits< ::protobuf_unittest::ComplexOpt6 >, 10, false >
  3394. complexopt6;
  3395. static const int kFileoptFieldNumber = 15478479;
  3396. extern ::google::protobuf::internal::ExtensionIdentifier< ::google::protobuf::FileOptions,
  3397. ::google::protobuf::internal::MessageTypeTraits< ::protobuf_unittest::Aggregate >, 11, false >
  3398. fileopt;
  3399. static const int kMsgoptFieldNumber = 15480088;
  3400. extern ::google::protobuf::internal::ExtensionIdentifier< ::google::protobuf::MessageOptions,
  3401. ::google::protobuf::internal::MessageTypeTraits< ::protobuf_unittest::Aggregate >, 11, false >
  3402. msgopt;
  3403. static const int kFieldoptFieldNumber = 15481374;
  3404. extern ::google::protobuf::internal::ExtensionIdentifier< ::google::protobuf::FieldOptions,
  3405. ::google::protobuf::internal::MessageTypeTraits< ::protobuf_unittest::Aggregate >, 11, false >
  3406. fieldopt;
  3407. static const int kEnumoptFieldNumber = 15483218;
  3408. extern ::google::protobuf::internal::ExtensionIdentifier< ::google::protobuf::EnumOptions,
  3409. ::google::protobuf::internal::MessageTypeTraits< ::protobuf_unittest::Aggregate >, 11, false >
  3410. enumopt;
  3411. static const int kEnumvaloptFieldNumber = 15486921;
  3412. extern ::google::protobuf::internal::ExtensionIdentifier< ::google::protobuf::EnumValueOptions,
  3413. ::google::protobuf::internal::MessageTypeTraits< ::protobuf_unittest::Aggregate >, 11, false >
  3414. enumvalopt;
  3415. static const int kServiceoptFieldNumber = 15497145;
  3416. extern ::google::protobuf::internal::ExtensionIdentifier< ::google::protobuf::ServiceOptions,
  3417. ::google::protobuf::internal::MessageTypeTraits< ::protobuf_unittest::Aggregate >, 11, false >
  3418. serviceopt;
  3419. static const int kMethodoptFieldNumber = 15512713;
  3420. extern ::google::protobuf::internal::ExtensionIdentifier< ::google::protobuf::MethodOptions,
  3421. ::google::protobuf::internal::MessageTypeTraits< ::protobuf_unittest::Aggregate >, 11, false >
  3422. methodopt;
  3423. static const int kRequiredEnumOptFieldNumber = 106161807;
  3424. extern ::google::protobuf::internal::ExtensionIdentifier< ::google::protobuf::MessageOptions,
  3425. ::google::protobuf::internal::MessageTypeTraits< ::protobuf_unittest::OldOptionType >, 11, false >
  3426. required_enum_opt;
  3427. // ===================================================================
  3428. #ifdef __GNUC__
  3429. #pragma GCC diagnostic push
  3430. #pragma GCC diagnostic ignored "-Wstrict-aliasing"
  3431. #endif // __GNUC__
  3432. // TestMessageWithCustomOptions
  3433. // optional string field1 = 1 [ctype = CORD, (.protobuf_unittest.field_opt1) = 8765432109];
  3434. inline bool TestMessageWithCustomOptions::has_field1() const {
  3435. return (_has_bits_[0] & 0x00000001u) != 0;
  3436. }
  3437. inline void TestMessageWithCustomOptions::set_has_field1() {
  3438. _has_bits_[0] |= 0x00000001u;
  3439. }
  3440. inline void TestMessageWithCustomOptions::clear_has_field1() {
  3441. _has_bits_[0] &= ~0x00000001u;
  3442. }
  3443. inline void TestMessageWithCustomOptions::clear_field1() {
  3444. field1_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  3445. clear_has_field1();
  3446. }
  3447. inline const ::std::string& TestMessageWithCustomOptions::field1() const {
  3448. // @@protoc_insertion_point(field_get:protobuf_unittest.TestMessageWithCustomOptions.field1)
  3449. return field1_.GetNoArena();
  3450. }
  3451. inline void TestMessageWithCustomOptions::set_field1(const ::std::string& value) {
  3452. set_has_field1();
  3453. field1_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
  3454. // @@protoc_insertion_point(field_set:protobuf_unittest.TestMessageWithCustomOptions.field1)
  3455. }
  3456. #if LANG_CXX11
  3457. inline void TestMessageWithCustomOptions::set_field1(::std::string&& value) {
  3458. set_has_field1();
  3459. field1_.SetNoArena(
  3460. &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
  3461. // @@protoc_insertion_point(field_set_rvalue:protobuf_unittest.TestMessageWithCustomOptions.field1)
  3462. }
  3463. #endif
  3464. inline void TestMessageWithCustomOptions::set_field1(const char* value) {
  3465. GOOGLE_DCHECK(value != NULL);
  3466. set_has_field1();
  3467. field1_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
  3468. // @@protoc_insertion_point(field_set_char:protobuf_unittest.TestMessageWithCustomOptions.field1)
  3469. }
  3470. inline void TestMessageWithCustomOptions::set_field1(const char* value, size_t size) {
  3471. set_has_field1();
  3472. field1_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  3473. ::std::string(reinterpret_cast<const char*>(value), size));
  3474. // @@protoc_insertion_point(field_set_pointer:protobuf_unittest.TestMessageWithCustomOptions.field1)
  3475. }
  3476. inline ::std::string* TestMessageWithCustomOptions::mutable_field1() {
  3477. set_has_field1();
  3478. // @@protoc_insertion_point(field_mutable:protobuf_unittest.TestMessageWithCustomOptions.field1)
  3479. return field1_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  3480. }
  3481. inline ::std::string* TestMessageWithCustomOptions::release_field1() {
  3482. // @@protoc_insertion_point(field_release:protobuf_unittest.TestMessageWithCustomOptions.field1)
  3483. if (!has_field1()) {
  3484. return NULL;
  3485. }
  3486. clear_has_field1();
  3487. return field1_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  3488. }
  3489. inline void TestMessageWithCustomOptions::set_allocated_field1(::std::string* field1) {
  3490. if (field1 != NULL) {
  3491. set_has_field1();
  3492. } else {
  3493. clear_has_field1();
  3494. }
  3495. field1_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), field1);
  3496. // @@protoc_insertion_point(field_set_allocated:protobuf_unittest.TestMessageWithCustomOptions.field1)
  3497. }
  3498. // optional int32 oneof_field = 2;
  3499. inline bool TestMessageWithCustomOptions::has_oneof_field() const {
  3500. return AnOneof_case() == kOneofField;
  3501. }
  3502. inline void TestMessageWithCustomOptions::set_has_oneof_field() {
  3503. _oneof_case_[0] = kOneofField;
  3504. }
  3505. inline void TestMessageWithCustomOptions::clear_oneof_field() {
  3506. if (has_oneof_field()) {
  3507. AnOneof_.oneof_field_ = 0;
  3508. clear_has_AnOneof();
  3509. }
  3510. }
  3511. inline ::google::protobuf::int32 TestMessageWithCustomOptions::oneof_field() const {
  3512. // @@protoc_insertion_point(field_get:protobuf_unittest.TestMessageWithCustomOptions.oneof_field)
  3513. if (has_oneof_field()) {
  3514. return AnOneof_.oneof_field_;
  3515. }
  3516. return 0;
  3517. }
  3518. inline void TestMessageWithCustomOptions::set_oneof_field(::google::protobuf::int32 value) {
  3519. if (!has_oneof_field()) {
  3520. clear_AnOneof();
  3521. set_has_oneof_field();
  3522. }
  3523. AnOneof_.oneof_field_ = value;
  3524. // @@protoc_insertion_point(field_set:protobuf_unittest.TestMessageWithCustomOptions.oneof_field)
  3525. }
  3526. inline bool TestMessageWithCustomOptions::has_AnOneof() const {
  3527. return AnOneof_case() != ANONEOF_NOT_SET;
  3528. }
  3529. inline void TestMessageWithCustomOptions::clear_has_AnOneof() {
  3530. _oneof_case_[0] = ANONEOF_NOT_SET;
  3531. }
  3532. inline TestMessageWithCustomOptions::AnOneofCase TestMessageWithCustomOptions::AnOneof_case() const {
  3533. return TestMessageWithCustomOptions::AnOneofCase(_oneof_case_[0]);
  3534. }
  3535. // -------------------------------------------------------------------
  3536. // CustomOptionFooRequest
  3537. // -------------------------------------------------------------------
  3538. // CustomOptionFooResponse
  3539. // -------------------------------------------------------------------
  3540. // CustomOptionFooClientMessage
  3541. // -------------------------------------------------------------------
  3542. // CustomOptionFooServerMessage
  3543. // -------------------------------------------------------------------
  3544. // DummyMessageContainingEnum
  3545. // -------------------------------------------------------------------
  3546. // DummyMessageInvalidAsOptionType
  3547. // -------------------------------------------------------------------
  3548. // CustomOptionMinIntegerValues
  3549. // -------------------------------------------------------------------
  3550. // CustomOptionMaxIntegerValues
  3551. // -------------------------------------------------------------------
  3552. // CustomOptionOtherValues
  3553. // -------------------------------------------------------------------
  3554. // SettingRealsFromPositiveInts
  3555. // -------------------------------------------------------------------
  3556. // SettingRealsFromNegativeInts
  3557. // -------------------------------------------------------------------
  3558. // ComplexOptionType1
  3559. // optional int32 foo = 1;
  3560. inline bool ComplexOptionType1::has_foo() const {
  3561. return (_has_bits_[0] & 0x00000001u) != 0;
  3562. }
  3563. inline void ComplexOptionType1::set_has_foo() {
  3564. _has_bits_[0] |= 0x00000001u;
  3565. }
  3566. inline void ComplexOptionType1::clear_has_foo() {
  3567. _has_bits_[0] &= ~0x00000001u;
  3568. }
  3569. inline void ComplexOptionType1::clear_foo() {
  3570. foo_ = 0;
  3571. clear_has_foo();
  3572. }
  3573. inline ::google::protobuf::int32 ComplexOptionType1::foo() const {
  3574. // @@protoc_insertion_point(field_get:protobuf_unittest.ComplexOptionType1.foo)
  3575. return foo_;
  3576. }
  3577. inline void ComplexOptionType1::set_foo(::google::protobuf::int32 value) {
  3578. set_has_foo();
  3579. foo_ = value;
  3580. // @@protoc_insertion_point(field_set:protobuf_unittest.ComplexOptionType1.foo)
  3581. }
  3582. // optional int32 foo2 = 2;
  3583. inline bool ComplexOptionType1::has_foo2() const {
  3584. return (_has_bits_[0] & 0x00000002u) != 0;
  3585. }
  3586. inline void ComplexOptionType1::set_has_foo2() {
  3587. _has_bits_[0] |= 0x00000002u;
  3588. }
  3589. inline void ComplexOptionType1::clear_has_foo2() {
  3590. _has_bits_[0] &= ~0x00000002u;
  3591. }
  3592. inline void ComplexOptionType1::clear_foo2() {
  3593. foo2_ = 0;
  3594. clear_has_foo2();
  3595. }
  3596. inline ::google::protobuf::int32 ComplexOptionType1::foo2() const {
  3597. // @@protoc_insertion_point(field_get:protobuf_unittest.ComplexOptionType1.foo2)
  3598. return foo2_;
  3599. }
  3600. inline void ComplexOptionType1::set_foo2(::google::protobuf::int32 value) {
  3601. set_has_foo2();
  3602. foo2_ = value;
  3603. // @@protoc_insertion_point(field_set:protobuf_unittest.ComplexOptionType1.foo2)
  3604. }
  3605. // optional int32 foo3 = 3;
  3606. inline bool ComplexOptionType1::has_foo3() const {
  3607. return (_has_bits_[0] & 0x00000004u) != 0;
  3608. }
  3609. inline void ComplexOptionType1::set_has_foo3() {
  3610. _has_bits_[0] |= 0x00000004u;
  3611. }
  3612. inline void ComplexOptionType1::clear_has_foo3() {
  3613. _has_bits_[0] &= ~0x00000004u;
  3614. }
  3615. inline void ComplexOptionType1::clear_foo3() {
  3616. foo3_ = 0;
  3617. clear_has_foo3();
  3618. }
  3619. inline ::google::protobuf::int32 ComplexOptionType1::foo3() const {
  3620. // @@protoc_insertion_point(field_get:protobuf_unittest.ComplexOptionType1.foo3)
  3621. return foo3_;
  3622. }
  3623. inline void ComplexOptionType1::set_foo3(::google::protobuf::int32 value) {
  3624. set_has_foo3();
  3625. foo3_ = value;
  3626. // @@protoc_insertion_point(field_set:protobuf_unittest.ComplexOptionType1.foo3)
  3627. }
  3628. // repeated int32 foo4 = 4;
  3629. inline int ComplexOptionType1::foo4_size() const {
  3630. return foo4_.size();
  3631. }
  3632. inline void ComplexOptionType1::clear_foo4() {
  3633. foo4_.Clear();
  3634. }
  3635. inline ::google::protobuf::int32 ComplexOptionType1::foo4(int index) const {
  3636. // @@protoc_insertion_point(field_get:protobuf_unittest.ComplexOptionType1.foo4)
  3637. return foo4_.Get(index);
  3638. }
  3639. inline void ComplexOptionType1::set_foo4(int index, ::google::protobuf::int32 value) {
  3640. foo4_.Set(index, value);
  3641. // @@protoc_insertion_point(field_set:protobuf_unittest.ComplexOptionType1.foo4)
  3642. }
  3643. inline void ComplexOptionType1::add_foo4(::google::protobuf::int32 value) {
  3644. foo4_.Add(value);
  3645. // @@protoc_insertion_point(field_add:protobuf_unittest.ComplexOptionType1.foo4)
  3646. }
  3647. inline const ::google::protobuf::RepeatedField< ::google::protobuf::int32 >&
  3648. ComplexOptionType1::foo4() const {
  3649. // @@protoc_insertion_point(field_list:protobuf_unittest.ComplexOptionType1.foo4)
  3650. return foo4_;
  3651. }
  3652. inline ::google::protobuf::RepeatedField< ::google::protobuf::int32 >*
  3653. ComplexOptionType1::mutable_foo4() {
  3654. // @@protoc_insertion_point(field_mutable_list:protobuf_unittest.ComplexOptionType1.foo4)
  3655. return &foo4_;
  3656. }
  3657. // -------------------------------------------------------------------
  3658. // ComplexOptionType2_ComplexOptionType4
  3659. // optional int32 waldo = 1;
  3660. inline bool ComplexOptionType2_ComplexOptionType4::has_waldo() const {
  3661. return (_has_bits_[0] & 0x00000001u) != 0;
  3662. }
  3663. inline void ComplexOptionType2_ComplexOptionType4::set_has_waldo() {
  3664. _has_bits_[0] |= 0x00000001u;
  3665. }
  3666. inline void ComplexOptionType2_ComplexOptionType4::clear_has_waldo() {
  3667. _has_bits_[0] &= ~0x00000001u;
  3668. }
  3669. inline void ComplexOptionType2_ComplexOptionType4::clear_waldo() {
  3670. waldo_ = 0;
  3671. clear_has_waldo();
  3672. }
  3673. inline ::google::protobuf::int32 ComplexOptionType2_ComplexOptionType4::waldo() const {
  3674. // @@protoc_insertion_point(field_get:protobuf_unittest.ComplexOptionType2.ComplexOptionType4.waldo)
  3675. return waldo_;
  3676. }
  3677. inline void ComplexOptionType2_ComplexOptionType4::set_waldo(::google::protobuf::int32 value) {
  3678. set_has_waldo();
  3679. waldo_ = value;
  3680. // @@protoc_insertion_point(field_set:protobuf_unittest.ComplexOptionType2.ComplexOptionType4.waldo)
  3681. }
  3682. // -------------------------------------------------------------------
  3683. // ComplexOptionType2
  3684. // optional .protobuf_unittest.ComplexOptionType1 bar = 1;
  3685. inline bool ComplexOptionType2::has_bar() const {
  3686. return (_has_bits_[0] & 0x00000001u) != 0;
  3687. }
  3688. inline void ComplexOptionType2::set_has_bar() {
  3689. _has_bits_[0] |= 0x00000001u;
  3690. }
  3691. inline void ComplexOptionType2::clear_has_bar() {
  3692. _has_bits_[0] &= ~0x00000001u;
  3693. }
  3694. inline void ComplexOptionType2::clear_bar() {
  3695. if (bar_ != NULL) bar_->Clear();
  3696. clear_has_bar();
  3697. }
  3698. inline const ::protobuf_unittest::ComplexOptionType1& ComplexOptionType2::_internal_bar() const {
  3699. return *bar_;
  3700. }
  3701. inline const ::protobuf_unittest::ComplexOptionType1& ComplexOptionType2::bar() const {
  3702. const ::protobuf_unittest::ComplexOptionType1* p = bar_;
  3703. // @@protoc_insertion_point(field_get:protobuf_unittest.ComplexOptionType2.bar)
  3704. return p != NULL ? *p : *reinterpret_cast<const ::protobuf_unittest::ComplexOptionType1*>(
  3705. &::protobuf_unittest::_ComplexOptionType1_default_instance_);
  3706. }
  3707. inline ::protobuf_unittest::ComplexOptionType1* ComplexOptionType2::release_bar() {
  3708. // @@protoc_insertion_point(field_release:protobuf_unittest.ComplexOptionType2.bar)
  3709. clear_has_bar();
  3710. ::protobuf_unittest::ComplexOptionType1* temp = bar_;
  3711. bar_ = NULL;
  3712. return temp;
  3713. }
  3714. inline ::protobuf_unittest::ComplexOptionType1* ComplexOptionType2::mutable_bar() {
  3715. set_has_bar();
  3716. if (bar_ == NULL) {
  3717. auto* p = CreateMaybeMessage<::protobuf_unittest::ComplexOptionType1>(GetArenaNoVirtual());
  3718. bar_ = p;
  3719. }
  3720. // @@protoc_insertion_point(field_mutable:protobuf_unittest.ComplexOptionType2.bar)
  3721. return bar_;
  3722. }
  3723. inline void ComplexOptionType2::set_allocated_bar(::protobuf_unittest::ComplexOptionType1* bar) {
  3724. ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
  3725. if (message_arena == NULL) {
  3726. delete bar_;
  3727. }
  3728. if (bar) {
  3729. ::google::protobuf::Arena* submessage_arena = NULL;
  3730. if (message_arena != submessage_arena) {
  3731. bar = ::google::protobuf::internal::GetOwnedMessage(
  3732. message_arena, bar, submessage_arena);
  3733. }
  3734. set_has_bar();
  3735. } else {
  3736. clear_has_bar();
  3737. }
  3738. bar_ = bar;
  3739. // @@protoc_insertion_point(field_set_allocated:protobuf_unittest.ComplexOptionType2.bar)
  3740. }
  3741. // optional int32 baz = 2;
  3742. inline bool ComplexOptionType2::has_baz() const {
  3743. return (_has_bits_[0] & 0x00000004u) != 0;
  3744. }
  3745. inline void ComplexOptionType2::set_has_baz() {
  3746. _has_bits_[0] |= 0x00000004u;
  3747. }
  3748. inline void ComplexOptionType2::clear_has_baz() {
  3749. _has_bits_[0] &= ~0x00000004u;
  3750. }
  3751. inline void ComplexOptionType2::clear_baz() {
  3752. baz_ = 0;
  3753. clear_has_baz();
  3754. }
  3755. inline ::google::protobuf::int32 ComplexOptionType2::baz() const {
  3756. // @@protoc_insertion_point(field_get:protobuf_unittest.ComplexOptionType2.baz)
  3757. return baz_;
  3758. }
  3759. inline void ComplexOptionType2::set_baz(::google::protobuf::int32 value) {
  3760. set_has_baz();
  3761. baz_ = value;
  3762. // @@protoc_insertion_point(field_set:protobuf_unittest.ComplexOptionType2.baz)
  3763. }
  3764. // optional .protobuf_unittest.ComplexOptionType2.ComplexOptionType4 fred = 3;
  3765. inline bool ComplexOptionType2::has_fred() const {
  3766. return (_has_bits_[0] & 0x00000002u) != 0;
  3767. }
  3768. inline void ComplexOptionType2::set_has_fred() {
  3769. _has_bits_[0] |= 0x00000002u;
  3770. }
  3771. inline void ComplexOptionType2::clear_has_fred() {
  3772. _has_bits_[0] &= ~0x00000002u;
  3773. }
  3774. inline void ComplexOptionType2::clear_fred() {
  3775. if (fred_ != NULL) fred_->Clear();
  3776. clear_has_fred();
  3777. }
  3778. inline const ::protobuf_unittest::ComplexOptionType2_ComplexOptionType4& ComplexOptionType2::_internal_fred() const {
  3779. return *fred_;
  3780. }
  3781. inline const ::protobuf_unittest::ComplexOptionType2_ComplexOptionType4& ComplexOptionType2::fred() const {
  3782. const ::protobuf_unittest::ComplexOptionType2_ComplexOptionType4* p = fred_;
  3783. // @@protoc_insertion_point(field_get:protobuf_unittest.ComplexOptionType2.fred)
  3784. return p != NULL ? *p : *reinterpret_cast<const ::protobuf_unittest::ComplexOptionType2_ComplexOptionType4*>(
  3785. &::protobuf_unittest::_ComplexOptionType2_ComplexOptionType4_default_instance_);
  3786. }
  3787. inline ::protobuf_unittest::ComplexOptionType2_ComplexOptionType4* ComplexOptionType2::release_fred() {
  3788. // @@protoc_insertion_point(field_release:protobuf_unittest.ComplexOptionType2.fred)
  3789. clear_has_fred();
  3790. ::protobuf_unittest::ComplexOptionType2_ComplexOptionType4* temp = fred_;
  3791. fred_ = NULL;
  3792. return temp;
  3793. }
  3794. inline ::protobuf_unittest::ComplexOptionType2_ComplexOptionType4* ComplexOptionType2::mutable_fred() {
  3795. set_has_fred();
  3796. if (fred_ == NULL) {
  3797. auto* p = CreateMaybeMessage<::protobuf_unittest::ComplexOptionType2_ComplexOptionType4>(GetArenaNoVirtual());
  3798. fred_ = p;
  3799. }
  3800. // @@protoc_insertion_point(field_mutable:protobuf_unittest.ComplexOptionType2.fred)
  3801. return fred_;
  3802. }
  3803. inline void ComplexOptionType2::set_allocated_fred(::protobuf_unittest::ComplexOptionType2_ComplexOptionType4* fred) {
  3804. ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
  3805. if (message_arena == NULL) {
  3806. delete fred_;
  3807. }
  3808. if (fred) {
  3809. ::google::protobuf::Arena* submessage_arena = NULL;
  3810. if (message_arena != submessage_arena) {
  3811. fred = ::google::protobuf::internal::GetOwnedMessage(
  3812. message_arena, fred, submessage_arena);
  3813. }
  3814. set_has_fred();
  3815. } else {
  3816. clear_has_fred();
  3817. }
  3818. fred_ = fred;
  3819. // @@protoc_insertion_point(field_set_allocated:protobuf_unittest.ComplexOptionType2.fred)
  3820. }
  3821. // repeated .protobuf_unittest.ComplexOptionType2.ComplexOptionType4 barney = 4;
  3822. inline int ComplexOptionType2::barney_size() const {
  3823. return barney_.size();
  3824. }
  3825. inline void ComplexOptionType2::clear_barney() {
  3826. barney_.Clear();
  3827. }
  3828. inline ::protobuf_unittest::ComplexOptionType2_ComplexOptionType4* ComplexOptionType2::mutable_barney(int index) {
  3829. // @@protoc_insertion_point(field_mutable:protobuf_unittest.ComplexOptionType2.barney)
  3830. return barney_.Mutable(index);
  3831. }
  3832. inline ::google::protobuf::RepeatedPtrField< ::protobuf_unittest::ComplexOptionType2_ComplexOptionType4 >*
  3833. ComplexOptionType2::mutable_barney() {
  3834. // @@protoc_insertion_point(field_mutable_list:protobuf_unittest.ComplexOptionType2.barney)
  3835. return &barney_;
  3836. }
  3837. inline const ::protobuf_unittest::ComplexOptionType2_ComplexOptionType4& ComplexOptionType2::barney(int index) const {
  3838. // @@protoc_insertion_point(field_get:protobuf_unittest.ComplexOptionType2.barney)
  3839. return barney_.Get(index);
  3840. }
  3841. inline ::protobuf_unittest::ComplexOptionType2_ComplexOptionType4* ComplexOptionType2::add_barney() {
  3842. // @@protoc_insertion_point(field_add:protobuf_unittest.ComplexOptionType2.barney)
  3843. return barney_.Add();
  3844. }
  3845. inline const ::google::protobuf::RepeatedPtrField< ::protobuf_unittest::ComplexOptionType2_ComplexOptionType4 >&
  3846. ComplexOptionType2::barney() const {
  3847. // @@protoc_insertion_point(field_list:protobuf_unittest.ComplexOptionType2.barney)
  3848. return barney_;
  3849. }
  3850. // -------------------------------------------------------------------
  3851. // ComplexOptionType3_ComplexOptionType5
  3852. // optional int32 plugh = 3;
  3853. inline bool ComplexOptionType3_ComplexOptionType5::has_plugh() const {
  3854. return (_has_bits_[0] & 0x00000001u) != 0;
  3855. }
  3856. inline void ComplexOptionType3_ComplexOptionType5::set_has_plugh() {
  3857. _has_bits_[0] |= 0x00000001u;
  3858. }
  3859. inline void ComplexOptionType3_ComplexOptionType5::clear_has_plugh() {
  3860. _has_bits_[0] &= ~0x00000001u;
  3861. }
  3862. inline void ComplexOptionType3_ComplexOptionType5::clear_plugh() {
  3863. plugh_ = 0;
  3864. clear_has_plugh();
  3865. }
  3866. inline ::google::protobuf::int32 ComplexOptionType3_ComplexOptionType5::plugh() const {
  3867. // @@protoc_insertion_point(field_get:protobuf_unittest.ComplexOptionType3.ComplexOptionType5.plugh)
  3868. return plugh_;
  3869. }
  3870. inline void ComplexOptionType3_ComplexOptionType5::set_plugh(::google::protobuf::int32 value) {
  3871. set_has_plugh();
  3872. plugh_ = value;
  3873. // @@protoc_insertion_point(field_set:protobuf_unittest.ComplexOptionType3.ComplexOptionType5.plugh)
  3874. }
  3875. // -------------------------------------------------------------------
  3876. // ComplexOptionType3
  3877. // optional int32 qux = 1;
  3878. inline bool ComplexOptionType3::has_qux() const {
  3879. return (_has_bits_[0] & 0x00000002u) != 0;
  3880. }
  3881. inline void ComplexOptionType3::set_has_qux() {
  3882. _has_bits_[0] |= 0x00000002u;
  3883. }
  3884. inline void ComplexOptionType3::clear_has_qux() {
  3885. _has_bits_[0] &= ~0x00000002u;
  3886. }
  3887. inline void ComplexOptionType3::clear_qux() {
  3888. qux_ = 0;
  3889. clear_has_qux();
  3890. }
  3891. inline ::google::protobuf::int32 ComplexOptionType3::qux() const {
  3892. // @@protoc_insertion_point(field_get:protobuf_unittest.ComplexOptionType3.qux)
  3893. return qux_;
  3894. }
  3895. inline void ComplexOptionType3::set_qux(::google::protobuf::int32 value) {
  3896. set_has_qux();
  3897. qux_ = value;
  3898. // @@protoc_insertion_point(field_set:protobuf_unittest.ComplexOptionType3.qux)
  3899. }
  3900. // optional group ComplexOptionType5 = 2 { ... };
  3901. inline bool ComplexOptionType3::has_complexoptiontype5() const {
  3902. return (_has_bits_[0] & 0x00000001u) != 0;
  3903. }
  3904. inline void ComplexOptionType3::set_has_complexoptiontype5() {
  3905. _has_bits_[0] |= 0x00000001u;
  3906. }
  3907. inline void ComplexOptionType3::clear_has_complexoptiontype5() {
  3908. _has_bits_[0] &= ~0x00000001u;
  3909. }
  3910. inline void ComplexOptionType3::clear_complexoptiontype5() {
  3911. if (complexoptiontype5_ != NULL) complexoptiontype5_->Clear();
  3912. clear_has_complexoptiontype5();
  3913. }
  3914. inline const ::protobuf_unittest::ComplexOptionType3_ComplexOptionType5& ComplexOptionType3::_internal_complexoptiontype5() const {
  3915. return *complexoptiontype5_;
  3916. }
  3917. inline const ::protobuf_unittest::ComplexOptionType3_ComplexOptionType5& ComplexOptionType3::complexoptiontype5() const {
  3918. const ::protobuf_unittest::ComplexOptionType3_ComplexOptionType5* p = complexoptiontype5_;
  3919. // @@protoc_insertion_point(field_get:protobuf_unittest.ComplexOptionType3.complexoptiontype5)
  3920. return p != NULL ? *p : *reinterpret_cast<const ::protobuf_unittest::ComplexOptionType3_ComplexOptionType5*>(
  3921. &::protobuf_unittest::_ComplexOptionType3_ComplexOptionType5_default_instance_);
  3922. }
  3923. inline ::protobuf_unittest::ComplexOptionType3_ComplexOptionType5* ComplexOptionType3::release_complexoptiontype5() {
  3924. // @@protoc_insertion_point(field_release:protobuf_unittest.ComplexOptionType3.complexoptiontype5)
  3925. clear_has_complexoptiontype5();
  3926. ::protobuf_unittest::ComplexOptionType3_ComplexOptionType5* temp = complexoptiontype5_;
  3927. complexoptiontype5_ = NULL;
  3928. return temp;
  3929. }
  3930. inline ::protobuf_unittest::ComplexOptionType3_ComplexOptionType5* ComplexOptionType3::mutable_complexoptiontype5() {
  3931. set_has_complexoptiontype5();
  3932. if (complexoptiontype5_ == NULL) {
  3933. auto* p = CreateMaybeMessage<::protobuf_unittest::ComplexOptionType3_ComplexOptionType5>(GetArenaNoVirtual());
  3934. complexoptiontype5_ = p;
  3935. }
  3936. // @@protoc_insertion_point(field_mutable:protobuf_unittest.ComplexOptionType3.complexoptiontype5)
  3937. return complexoptiontype5_;
  3938. }
  3939. inline void ComplexOptionType3::set_allocated_complexoptiontype5(::protobuf_unittest::ComplexOptionType3_ComplexOptionType5* complexoptiontype5) {
  3940. ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
  3941. if (message_arena == NULL) {
  3942. delete complexoptiontype5_;
  3943. }
  3944. if (complexoptiontype5) {
  3945. ::google::protobuf::Arena* submessage_arena = NULL;
  3946. if (message_arena != submessage_arena) {
  3947. complexoptiontype5 = ::google::protobuf::internal::GetOwnedMessage(
  3948. message_arena, complexoptiontype5, submessage_arena);
  3949. }
  3950. set_has_complexoptiontype5();
  3951. } else {
  3952. clear_has_complexoptiontype5();
  3953. }
  3954. complexoptiontype5_ = complexoptiontype5;
  3955. // @@protoc_insertion_point(field_set_allocated:protobuf_unittest.ComplexOptionType3.complexoptiontype5)
  3956. }
  3957. // -------------------------------------------------------------------
  3958. // ComplexOpt6
  3959. // optional int32 xyzzy = 7593951;
  3960. inline bool ComplexOpt6::has_xyzzy() const {
  3961. return (_has_bits_[0] & 0x00000001u) != 0;
  3962. }
  3963. inline void ComplexOpt6::set_has_xyzzy() {
  3964. _has_bits_[0] |= 0x00000001u;
  3965. }
  3966. inline void ComplexOpt6::clear_has_xyzzy() {
  3967. _has_bits_[0] &= ~0x00000001u;
  3968. }
  3969. inline void ComplexOpt6::clear_xyzzy() {
  3970. xyzzy_ = 0;
  3971. clear_has_xyzzy();
  3972. }
  3973. inline ::google::protobuf::int32 ComplexOpt6::xyzzy() const {
  3974. // @@protoc_insertion_point(field_get:protobuf_unittest.ComplexOpt6.xyzzy)
  3975. return xyzzy_;
  3976. }
  3977. inline void ComplexOpt6::set_xyzzy(::google::protobuf::int32 value) {
  3978. set_has_xyzzy();
  3979. xyzzy_ = value;
  3980. // @@protoc_insertion_point(field_set:protobuf_unittest.ComplexOpt6.xyzzy)
  3981. }
  3982. // -------------------------------------------------------------------
  3983. // VariousComplexOptions
  3984. // -------------------------------------------------------------------
  3985. // AggregateMessageSet
  3986. // -------------------------------------------------------------------
  3987. // AggregateMessageSetElement
  3988. // optional string s = 1;
  3989. inline bool AggregateMessageSetElement::has_s() const {
  3990. return (_has_bits_[0] & 0x00000001u) != 0;
  3991. }
  3992. inline void AggregateMessageSetElement::set_has_s() {
  3993. _has_bits_[0] |= 0x00000001u;
  3994. }
  3995. inline void AggregateMessageSetElement::clear_has_s() {
  3996. _has_bits_[0] &= ~0x00000001u;
  3997. }
  3998. inline void AggregateMessageSetElement::clear_s() {
  3999. s_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  4000. clear_has_s();
  4001. }
  4002. inline const ::std::string& AggregateMessageSetElement::s() const {
  4003. // @@protoc_insertion_point(field_get:protobuf_unittest.AggregateMessageSetElement.s)
  4004. return s_.GetNoArena();
  4005. }
  4006. inline void AggregateMessageSetElement::set_s(const ::std::string& value) {
  4007. set_has_s();
  4008. s_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
  4009. // @@protoc_insertion_point(field_set:protobuf_unittest.AggregateMessageSetElement.s)
  4010. }
  4011. #if LANG_CXX11
  4012. inline void AggregateMessageSetElement::set_s(::std::string&& value) {
  4013. set_has_s();
  4014. s_.SetNoArena(
  4015. &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
  4016. // @@protoc_insertion_point(field_set_rvalue:protobuf_unittest.AggregateMessageSetElement.s)
  4017. }
  4018. #endif
  4019. inline void AggregateMessageSetElement::set_s(const char* value) {
  4020. GOOGLE_DCHECK(value != NULL);
  4021. set_has_s();
  4022. s_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
  4023. // @@protoc_insertion_point(field_set_char:protobuf_unittest.AggregateMessageSetElement.s)
  4024. }
  4025. inline void AggregateMessageSetElement::set_s(const char* value, size_t size) {
  4026. set_has_s();
  4027. s_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  4028. ::std::string(reinterpret_cast<const char*>(value), size));
  4029. // @@protoc_insertion_point(field_set_pointer:protobuf_unittest.AggregateMessageSetElement.s)
  4030. }
  4031. inline ::std::string* AggregateMessageSetElement::mutable_s() {
  4032. set_has_s();
  4033. // @@protoc_insertion_point(field_mutable:protobuf_unittest.AggregateMessageSetElement.s)
  4034. return s_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  4035. }
  4036. inline ::std::string* AggregateMessageSetElement::release_s() {
  4037. // @@protoc_insertion_point(field_release:protobuf_unittest.AggregateMessageSetElement.s)
  4038. if (!has_s()) {
  4039. return NULL;
  4040. }
  4041. clear_has_s();
  4042. return s_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  4043. }
  4044. inline void AggregateMessageSetElement::set_allocated_s(::std::string* s) {
  4045. if (s != NULL) {
  4046. set_has_s();
  4047. } else {
  4048. clear_has_s();
  4049. }
  4050. s_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), s);
  4051. // @@protoc_insertion_point(field_set_allocated:protobuf_unittest.AggregateMessageSetElement.s)
  4052. }
  4053. // -------------------------------------------------------------------
  4054. // Aggregate
  4055. // optional int32 i = 1;
  4056. inline bool Aggregate::has_i() const {
  4057. return (_has_bits_[0] & 0x00000010u) != 0;
  4058. }
  4059. inline void Aggregate::set_has_i() {
  4060. _has_bits_[0] |= 0x00000010u;
  4061. }
  4062. inline void Aggregate::clear_has_i() {
  4063. _has_bits_[0] &= ~0x00000010u;
  4064. }
  4065. inline void Aggregate::clear_i() {
  4066. i_ = 0;
  4067. clear_has_i();
  4068. }
  4069. inline ::google::protobuf::int32 Aggregate::i() const {
  4070. // @@protoc_insertion_point(field_get:protobuf_unittest.Aggregate.i)
  4071. return i_;
  4072. }
  4073. inline void Aggregate::set_i(::google::protobuf::int32 value) {
  4074. set_has_i();
  4075. i_ = value;
  4076. // @@protoc_insertion_point(field_set:protobuf_unittest.Aggregate.i)
  4077. }
  4078. // optional string s = 2;
  4079. inline bool Aggregate::has_s() const {
  4080. return (_has_bits_[0] & 0x00000001u) != 0;
  4081. }
  4082. inline void Aggregate::set_has_s() {
  4083. _has_bits_[0] |= 0x00000001u;
  4084. }
  4085. inline void Aggregate::clear_has_s() {
  4086. _has_bits_[0] &= ~0x00000001u;
  4087. }
  4088. inline void Aggregate::clear_s() {
  4089. s_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  4090. clear_has_s();
  4091. }
  4092. inline const ::std::string& Aggregate::s() const {
  4093. // @@protoc_insertion_point(field_get:protobuf_unittest.Aggregate.s)
  4094. return s_.GetNoArena();
  4095. }
  4096. inline void Aggregate::set_s(const ::std::string& value) {
  4097. set_has_s();
  4098. s_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
  4099. // @@protoc_insertion_point(field_set:protobuf_unittest.Aggregate.s)
  4100. }
  4101. #if LANG_CXX11
  4102. inline void Aggregate::set_s(::std::string&& value) {
  4103. set_has_s();
  4104. s_.SetNoArena(
  4105. &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
  4106. // @@protoc_insertion_point(field_set_rvalue:protobuf_unittest.Aggregate.s)
  4107. }
  4108. #endif
  4109. inline void Aggregate::set_s(const char* value) {
  4110. GOOGLE_DCHECK(value != NULL);
  4111. set_has_s();
  4112. s_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
  4113. // @@protoc_insertion_point(field_set_char:protobuf_unittest.Aggregate.s)
  4114. }
  4115. inline void Aggregate::set_s(const char* value, size_t size) {
  4116. set_has_s();
  4117. s_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  4118. ::std::string(reinterpret_cast<const char*>(value), size));
  4119. // @@protoc_insertion_point(field_set_pointer:protobuf_unittest.Aggregate.s)
  4120. }
  4121. inline ::std::string* Aggregate::mutable_s() {
  4122. set_has_s();
  4123. // @@protoc_insertion_point(field_mutable:protobuf_unittest.Aggregate.s)
  4124. return s_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  4125. }
  4126. inline ::std::string* Aggregate::release_s() {
  4127. // @@protoc_insertion_point(field_release:protobuf_unittest.Aggregate.s)
  4128. if (!has_s()) {
  4129. return NULL;
  4130. }
  4131. clear_has_s();
  4132. return s_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  4133. }
  4134. inline void Aggregate::set_allocated_s(::std::string* s) {
  4135. if (s != NULL) {
  4136. set_has_s();
  4137. } else {
  4138. clear_has_s();
  4139. }
  4140. s_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), s);
  4141. // @@protoc_insertion_point(field_set_allocated:protobuf_unittest.Aggregate.s)
  4142. }
  4143. // optional .protobuf_unittest.Aggregate sub = 3;
  4144. inline bool Aggregate::has_sub() const {
  4145. return (_has_bits_[0] & 0x00000002u) != 0;
  4146. }
  4147. inline void Aggregate::set_has_sub() {
  4148. _has_bits_[0] |= 0x00000002u;
  4149. }
  4150. inline void Aggregate::clear_has_sub() {
  4151. _has_bits_[0] &= ~0x00000002u;
  4152. }
  4153. inline void Aggregate::clear_sub() {
  4154. if (sub_ != NULL) sub_->Clear();
  4155. clear_has_sub();
  4156. }
  4157. inline const ::protobuf_unittest::Aggregate& Aggregate::_internal_sub() const {
  4158. return *sub_;
  4159. }
  4160. inline const ::protobuf_unittest::Aggregate& Aggregate::sub() const {
  4161. const ::protobuf_unittest::Aggregate* p = sub_;
  4162. // @@protoc_insertion_point(field_get:protobuf_unittest.Aggregate.sub)
  4163. return p != NULL ? *p : *reinterpret_cast<const ::protobuf_unittest::Aggregate*>(
  4164. &::protobuf_unittest::_Aggregate_default_instance_);
  4165. }
  4166. inline ::protobuf_unittest::Aggregate* Aggregate::release_sub() {
  4167. // @@protoc_insertion_point(field_release:protobuf_unittest.Aggregate.sub)
  4168. clear_has_sub();
  4169. ::protobuf_unittest::Aggregate* temp = sub_;
  4170. sub_ = NULL;
  4171. return temp;
  4172. }
  4173. inline ::protobuf_unittest::Aggregate* Aggregate::mutable_sub() {
  4174. set_has_sub();
  4175. if (sub_ == NULL) {
  4176. auto* p = CreateMaybeMessage<::protobuf_unittest::Aggregate>(GetArenaNoVirtual());
  4177. sub_ = p;
  4178. }
  4179. // @@protoc_insertion_point(field_mutable:protobuf_unittest.Aggregate.sub)
  4180. return sub_;
  4181. }
  4182. inline void Aggregate::set_allocated_sub(::protobuf_unittest::Aggregate* sub) {
  4183. ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
  4184. if (message_arena == NULL) {
  4185. delete sub_;
  4186. }
  4187. if (sub) {
  4188. ::google::protobuf::Arena* submessage_arena = NULL;
  4189. if (message_arena != submessage_arena) {
  4190. sub = ::google::protobuf::internal::GetOwnedMessage(
  4191. message_arena, sub, submessage_arena);
  4192. }
  4193. set_has_sub();
  4194. } else {
  4195. clear_has_sub();
  4196. }
  4197. sub_ = sub;
  4198. // @@protoc_insertion_point(field_set_allocated:protobuf_unittest.Aggregate.sub)
  4199. }
  4200. // optional .google.protobuf.FileOptions file = 4;
  4201. inline bool Aggregate::has_file() const {
  4202. return (_has_bits_[0] & 0x00000004u) != 0;
  4203. }
  4204. inline void Aggregate::set_has_file() {
  4205. _has_bits_[0] |= 0x00000004u;
  4206. }
  4207. inline void Aggregate::clear_has_file() {
  4208. _has_bits_[0] &= ~0x00000004u;
  4209. }
  4210. inline const ::google::protobuf::FileOptions& Aggregate::_internal_file() const {
  4211. return *file_;
  4212. }
  4213. inline const ::google::protobuf::FileOptions& Aggregate::file() const {
  4214. const ::google::protobuf::FileOptions* p = file_;
  4215. // @@protoc_insertion_point(field_get:protobuf_unittest.Aggregate.file)
  4216. return p != NULL ? *p : *reinterpret_cast<const ::google::protobuf::FileOptions*>(
  4217. &::google::protobuf::_FileOptions_default_instance_);
  4218. }
  4219. inline ::google::protobuf::FileOptions* Aggregate::release_file() {
  4220. // @@protoc_insertion_point(field_release:protobuf_unittest.Aggregate.file)
  4221. clear_has_file();
  4222. ::google::protobuf::FileOptions* temp = file_;
  4223. file_ = NULL;
  4224. return temp;
  4225. }
  4226. inline ::google::protobuf::FileOptions* Aggregate::mutable_file() {
  4227. set_has_file();
  4228. if (file_ == NULL) {
  4229. auto* p = CreateMaybeMessage<::google::protobuf::FileOptions>(GetArenaNoVirtual());
  4230. file_ = p;
  4231. }
  4232. // @@protoc_insertion_point(field_mutable:protobuf_unittest.Aggregate.file)
  4233. return file_;
  4234. }
  4235. inline void Aggregate::set_allocated_file(::google::protobuf::FileOptions* file) {
  4236. ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
  4237. if (message_arena == NULL) {
  4238. delete reinterpret_cast< ::google::protobuf::MessageLite*>(file_);
  4239. }
  4240. if (file) {
  4241. ::google::protobuf::Arena* submessage_arena =
  4242. reinterpret_cast<::google::protobuf::MessageLite*>(file)->GetArena();
  4243. if (message_arena != submessage_arena) {
  4244. file = ::google::protobuf::internal::GetOwnedMessage(
  4245. message_arena, file, submessage_arena);
  4246. }
  4247. set_has_file();
  4248. } else {
  4249. clear_has_file();
  4250. }
  4251. file_ = file;
  4252. // @@protoc_insertion_point(field_set_allocated:protobuf_unittest.Aggregate.file)
  4253. }
  4254. // optional .protobuf_unittest.AggregateMessageSet mset = 5;
  4255. inline bool Aggregate::has_mset() const {
  4256. return (_has_bits_[0] & 0x00000008u) != 0;
  4257. }
  4258. inline void Aggregate::set_has_mset() {
  4259. _has_bits_[0] |= 0x00000008u;
  4260. }
  4261. inline void Aggregate::clear_has_mset() {
  4262. _has_bits_[0] &= ~0x00000008u;
  4263. }
  4264. inline void Aggregate::clear_mset() {
  4265. if (mset_ != NULL) mset_->Clear();
  4266. clear_has_mset();
  4267. }
  4268. inline const ::protobuf_unittest::AggregateMessageSet& Aggregate::_internal_mset() const {
  4269. return *mset_;
  4270. }
  4271. inline const ::protobuf_unittest::AggregateMessageSet& Aggregate::mset() const {
  4272. const ::protobuf_unittest::AggregateMessageSet* p = mset_;
  4273. // @@protoc_insertion_point(field_get:protobuf_unittest.Aggregate.mset)
  4274. return p != NULL ? *p : *reinterpret_cast<const ::protobuf_unittest::AggregateMessageSet*>(
  4275. &::protobuf_unittest::_AggregateMessageSet_default_instance_);
  4276. }
  4277. inline ::protobuf_unittest::AggregateMessageSet* Aggregate::release_mset() {
  4278. // @@protoc_insertion_point(field_release:protobuf_unittest.Aggregate.mset)
  4279. clear_has_mset();
  4280. ::protobuf_unittest::AggregateMessageSet* temp = mset_;
  4281. mset_ = NULL;
  4282. return temp;
  4283. }
  4284. inline ::protobuf_unittest::AggregateMessageSet* Aggregate::mutable_mset() {
  4285. set_has_mset();
  4286. if (mset_ == NULL) {
  4287. auto* p = CreateMaybeMessage<::protobuf_unittest::AggregateMessageSet>(GetArenaNoVirtual());
  4288. mset_ = p;
  4289. }
  4290. // @@protoc_insertion_point(field_mutable:protobuf_unittest.Aggregate.mset)
  4291. return mset_;
  4292. }
  4293. inline void Aggregate::set_allocated_mset(::protobuf_unittest::AggregateMessageSet* mset) {
  4294. ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
  4295. if (message_arena == NULL) {
  4296. delete mset_;
  4297. }
  4298. if (mset) {
  4299. ::google::protobuf::Arena* submessage_arena = NULL;
  4300. if (message_arena != submessage_arena) {
  4301. mset = ::google::protobuf::internal::GetOwnedMessage(
  4302. message_arena, mset, submessage_arena);
  4303. }
  4304. set_has_mset();
  4305. } else {
  4306. clear_has_mset();
  4307. }
  4308. mset_ = mset;
  4309. // @@protoc_insertion_point(field_set_allocated:protobuf_unittest.Aggregate.mset)
  4310. }
  4311. // -------------------------------------------------------------------
  4312. // AggregateMessage
  4313. // optional int32 fieldname = 1 [(.protobuf_unittest.fieldopt) = {
  4314. inline bool AggregateMessage::has_fieldname() const {
  4315. return (_has_bits_[0] & 0x00000001u) != 0;
  4316. }
  4317. inline void AggregateMessage::set_has_fieldname() {
  4318. _has_bits_[0] |= 0x00000001u;
  4319. }
  4320. inline void AggregateMessage::clear_has_fieldname() {
  4321. _has_bits_[0] &= ~0x00000001u;
  4322. }
  4323. inline void AggregateMessage::clear_fieldname() {
  4324. fieldname_ = 0;
  4325. clear_has_fieldname();
  4326. }
  4327. inline ::google::protobuf::int32 AggregateMessage::fieldname() const {
  4328. // @@protoc_insertion_point(field_get:protobuf_unittest.AggregateMessage.fieldname)
  4329. return fieldname_;
  4330. }
  4331. inline void AggregateMessage::set_fieldname(::google::protobuf::int32 value) {
  4332. set_has_fieldname();
  4333. fieldname_ = value;
  4334. // @@protoc_insertion_point(field_set:protobuf_unittest.AggregateMessage.fieldname)
  4335. }
  4336. // -------------------------------------------------------------------
  4337. // NestedOptionType_NestedMessage
  4338. // optional int32 nested_field = 1 [(.protobuf_unittest.field_opt1) = 1002];
  4339. inline bool NestedOptionType_NestedMessage::has_nested_field() const {
  4340. return (_has_bits_[0] & 0x00000001u) != 0;
  4341. }
  4342. inline void NestedOptionType_NestedMessage::set_has_nested_field() {
  4343. _has_bits_[0] |= 0x00000001u;
  4344. }
  4345. inline void NestedOptionType_NestedMessage::clear_has_nested_field() {
  4346. _has_bits_[0] &= ~0x00000001u;
  4347. }
  4348. inline void NestedOptionType_NestedMessage::clear_nested_field() {
  4349. nested_field_ = 0;
  4350. clear_has_nested_field();
  4351. }
  4352. inline ::google::protobuf::int32 NestedOptionType_NestedMessage::nested_field() const {
  4353. // @@protoc_insertion_point(field_get:protobuf_unittest.NestedOptionType.NestedMessage.nested_field)
  4354. return nested_field_;
  4355. }
  4356. inline void NestedOptionType_NestedMessage::set_nested_field(::google::protobuf::int32 value) {
  4357. set_has_nested_field();
  4358. nested_field_ = value;
  4359. // @@protoc_insertion_point(field_set:protobuf_unittest.NestedOptionType.NestedMessage.nested_field)
  4360. }
  4361. // -------------------------------------------------------------------
  4362. // NestedOptionType
  4363. // -------------------------------------------------------------------
  4364. // OldOptionType
  4365. // required .protobuf_unittest.OldOptionType.TestEnum value = 1;
  4366. inline bool OldOptionType::has_value() const {
  4367. return (_has_bits_[0] & 0x00000001u) != 0;
  4368. }
  4369. inline void OldOptionType::set_has_value() {
  4370. _has_bits_[0] |= 0x00000001u;
  4371. }
  4372. inline void OldOptionType::clear_has_value() {
  4373. _has_bits_[0] &= ~0x00000001u;
  4374. }
  4375. inline void OldOptionType::clear_value() {
  4376. value_ = 0;
  4377. clear_has_value();
  4378. }
  4379. inline ::protobuf_unittest::OldOptionType_TestEnum OldOptionType::value() const {
  4380. // @@protoc_insertion_point(field_get:protobuf_unittest.OldOptionType.value)
  4381. return static_cast< ::protobuf_unittest::OldOptionType_TestEnum >(value_);
  4382. }
  4383. inline void OldOptionType::set_value(::protobuf_unittest::OldOptionType_TestEnum value) {
  4384. assert(::protobuf_unittest::OldOptionType_TestEnum_IsValid(value));
  4385. set_has_value();
  4386. value_ = value;
  4387. // @@protoc_insertion_point(field_set:protobuf_unittest.OldOptionType.value)
  4388. }
  4389. // -------------------------------------------------------------------
  4390. // NewOptionType
  4391. // required .protobuf_unittest.NewOptionType.TestEnum value = 1;
  4392. inline bool NewOptionType::has_value() const {
  4393. return (_has_bits_[0] & 0x00000001u) != 0;
  4394. }
  4395. inline void NewOptionType::set_has_value() {
  4396. _has_bits_[0] |= 0x00000001u;
  4397. }
  4398. inline void NewOptionType::clear_has_value() {
  4399. _has_bits_[0] &= ~0x00000001u;
  4400. }
  4401. inline void NewOptionType::clear_value() {
  4402. value_ = 0;
  4403. clear_has_value();
  4404. }
  4405. inline ::protobuf_unittest::NewOptionType_TestEnum NewOptionType::value() const {
  4406. // @@protoc_insertion_point(field_get:protobuf_unittest.NewOptionType.value)
  4407. return static_cast< ::protobuf_unittest::NewOptionType_TestEnum >(value_);
  4408. }
  4409. inline void NewOptionType::set_value(::protobuf_unittest::NewOptionType_TestEnum value) {
  4410. assert(::protobuf_unittest::NewOptionType_TestEnum_IsValid(value));
  4411. set_has_value();
  4412. value_ = value;
  4413. // @@protoc_insertion_point(field_set:protobuf_unittest.NewOptionType.value)
  4414. }
  4415. // -------------------------------------------------------------------
  4416. // TestMessageWithRequiredEnumOption
  4417. #ifdef __GNUC__
  4418. #pragma GCC diagnostic pop
  4419. #endif // __GNUC__
  4420. // -------------------------------------------------------------------
  4421. // -------------------------------------------------------------------
  4422. // -------------------------------------------------------------------
  4423. // -------------------------------------------------------------------
  4424. // -------------------------------------------------------------------
  4425. // -------------------------------------------------------------------
  4426. // -------------------------------------------------------------------
  4427. // -------------------------------------------------------------------
  4428. // -------------------------------------------------------------------
  4429. // -------------------------------------------------------------------
  4430. // -------------------------------------------------------------------
  4431. // -------------------------------------------------------------------
  4432. // -------------------------------------------------------------------
  4433. // -------------------------------------------------------------------
  4434. // -------------------------------------------------------------------
  4435. // -------------------------------------------------------------------
  4436. // -------------------------------------------------------------------
  4437. // -------------------------------------------------------------------
  4438. // -------------------------------------------------------------------
  4439. // -------------------------------------------------------------------
  4440. // -------------------------------------------------------------------
  4441. // -------------------------------------------------------------------
  4442. // -------------------------------------------------------------------
  4443. // -------------------------------------------------------------------
  4444. // -------------------------------------------------------------------
  4445. // -------------------------------------------------------------------
  4446. // -------------------------------------------------------------------
  4447. // @@protoc_insertion_point(namespace_scope)
  4448. } // namespace protobuf_unittest
  4449. namespace google {
  4450. namespace protobuf {
  4451. template <> struct is_proto_enum< ::protobuf_unittest::TestMessageWithCustomOptions_AnEnum> : ::std::true_type {};
  4452. template <>
  4453. inline const EnumDescriptor* GetEnumDescriptor< ::protobuf_unittest::TestMessageWithCustomOptions_AnEnum>() {
  4454. return ::protobuf_unittest::TestMessageWithCustomOptions_AnEnum_descriptor();
  4455. }
  4456. template <> struct is_proto_enum< ::protobuf_unittest::DummyMessageContainingEnum_TestEnumType> : ::std::true_type {};
  4457. template <>
  4458. inline const EnumDescriptor* GetEnumDescriptor< ::protobuf_unittest::DummyMessageContainingEnum_TestEnumType>() {
  4459. return ::protobuf_unittest::DummyMessageContainingEnum_TestEnumType_descriptor();
  4460. }
  4461. template <> struct is_proto_enum< ::protobuf_unittest::NestedOptionType_NestedEnum> : ::std::true_type {};
  4462. template <>
  4463. inline const EnumDescriptor* GetEnumDescriptor< ::protobuf_unittest::NestedOptionType_NestedEnum>() {
  4464. return ::protobuf_unittest::NestedOptionType_NestedEnum_descriptor();
  4465. }
  4466. template <> struct is_proto_enum< ::protobuf_unittest::OldOptionType_TestEnum> : ::std::true_type {};
  4467. template <>
  4468. inline const EnumDescriptor* GetEnumDescriptor< ::protobuf_unittest::OldOptionType_TestEnum>() {
  4469. return ::protobuf_unittest::OldOptionType_TestEnum_descriptor();
  4470. }
  4471. template <> struct is_proto_enum< ::protobuf_unittest::NewOptionType_TestEnum> : ::std::true_type {};
  4472. template <>
  4473. inline const EnumDescriptor* GetEnumDescriptor< ::protobuf_unittest::NewOptionType_TestEnum>() {
  4474. return ::protobuf_unittest::NewOptionType_TestEnum_descriptor();
  4475. }
  4476. template <> struct is_proto_enum< ::protobuf_unittest::MethodOpt1> : ::std::true_type {};
  4477. template <>
  4478. inline const EnumDescriptor* GetEnumDescriptor< ::protobuf_unittest::MethodOpt1>() {
  4479. return ::protobuf_unittest::MethodOpt1_descriptor();
  4480. }
  4481. template <> struct is_proto_enum< ::protobuf_unittest::AggregateEnum> : ::std::true_type {};
  4482. template <>
  4483. inline const EnumDescriptor* GetEnumDescriptor< ::protobuf_unittest::AggregateEnum>() {
  4484. return ::protobuf_unittest::AggregateEnum_descriptor();
  4485. }
  4486. } // namespace protobuf
  4487. } // namespace google
  4488. // @@protoc_insertion_point(global_scope)
  4489. #endif // PROTOBUF_INCLUDED_google_2fprotobuf_2funittest_5fcustom_5foptions_2eproto