maps.pb.h 186 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827
  1. // Generated by the protocol buffer compiler. DO NOT EDIT!
  2. // source: google/protobuf/util/internal/testdata/maps.proto
  3. #ifndef PROTOBUF_INCLUDED_google_2fprotobuf_2futil_2finternal_2ftestdata_2fmaps_2eproto
  4. #define PROTOBUF_INCLUDED_google_2fprotobuf_2futil_2finternal_2ftestdata_2fmaps_2eproto
  5. #include <string>
  6. #include <google/protobuf/stubs/common.h>
  7. #if GOOGLE_PROTOBUF_VERSION < 3006001
  8. #error This file was generated by a newer version of protoc which is
  9. #error incompatible with your Protocol Buffer headers. Please update
  10. #error your headers.
  11. #endif
  12. #if 3006001 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION
  13. #error This file was generated by an older version of protoc which is
  14. #error incompatible with your Protocol Buffer headers. Please
  15. #error regenerate this file with a newer version of protoc.
  16. #endif
  17. #include <google/protobuf/io/coded_stream.h>
  18. #include <google/protobuf/arena.h>
  19. #include <google/protobuf/arenastring.h>
  20. #include <google/protobuf/generated_message_table_driven.h>
  21. #include <google/protobuf/generated_message_util.h>
  22. #include <google/protobuf/inlined_string_field.h>
  23. #include <google/protobuf/metadata.h>
  24. #include <google/protobuf/message.h>
  25. #include <google/protobuf/repeated_field.h> // IWYU pragma: export
  26. #include <google/protobuf/extension_set.h> // IWYU pragma: export
  27. #include <google/protobuf/map.h> // IWYU pragma: export
  28. #include <google/protobuf/map_entry.h>
  29. #include <google/protobuf/map_field_inl.h>
  30. #include <google/protobuf/generated_enum_reflection.h>
  31. #include <google/protobuf/unknown_field_set.h>
  32. // @@protoc_insertion_point(includes)
  33. #define PROTOBUF_INTERNAL_EXPORT_protobuf_google_2fprotobuf_2futil_2finternal_2ftestdata_2fmaps_2eproto
  34. namespace protobuf_google_2fprotobuf_2futil_2finternal_2ftestdata_2fmaps_2eproto {
  35. // Internal implementation detail -- do not use these members.
  36. struct TableStruct {
  37. static const ::google::protobuf::internal::ParseTableField entries[];
  38. static const ::google::protobuf::internal::AuxillaryParseTableField aux[];
  39. static const ::google::protobuf::internal::ParseTable schema[30];
  40. static const ::google::protobuf::internal::FieldMetadata field_metadata[];
  41. static const ::google::protobuf::internal::SerializationTable serialization_table[];
  42. static const ::google::protobuf::uint32 offsets[];
  43. };
  44. void AddDescriptors();
  45. } // namespace protobuf_google_2fprotobuf_2futil_2finternal_2ftestdata_2fmaps_2eproto
  46. namespace google {
  47. namespace protobuf {
  48. namespace testing {
  49. class BoolToString;
  50. class BoolToStringDefaultTypeInternal;
  51. extern BoolToStringDefaultTypeInternal _BoolToString_default_instance_;
  52. class BoolToString_MapEntry_DoNotUse;
  53. class BoolToString_MapEntry_DoNotUseDefaultTypeInternal;
  54. extern BoolToString_MapEntry_DoNotUseDefaultTypeInternal _BoolToString_MapEntry_DoNotUse_default_instance_;
  55. class DummyRequest;
  56. class DummyRequestDefaultTypeInternal;
  57. extern DummyRequestDefaultTypeInternal _DummyRequest_default_instance_;
  58. class EmptyMap;
  59. class EmptyMapDefaultTypeInternal;
  60. extern EmptyMapDefaultTypeInternal _EmptyMap_default_instance_;
  61. class EmptyMap_MapEntry_DoNotUse;
  62. class EmptyMap_MapEntry_DoNotUseDefaultTypeInternal;
  63. extern EmptyMap_MapEntry_DoNotUseDefaultTypeInternal _EmptyMap_MapEntry_DoNotUse_default_instance_;
  64. class IntToString;
  65. class IntToStringDefaultTypeInternal;
  66. extern IntToStringDefaultTypeInternal _IntToString_default_instance_;
  67. class IntToString_MapEntry_DoNotUse;
  68. class IntToString_MapEntry_DoNotUseDefaultTypeInternal;
  69. extern IntToString_MapEntry_DoNotUseDefaultTypeInternal _IntToString_MapEntry_DoNotUse_default_instance_;
  70. class MapIn;
  71. class MapInDefaultTypeInternal;
  72. extern MapInDefaultTypeInternal _MapIn_default_instance_;
  73. class MapIn_MapInputEntry_DoNotUse;
  74. class MapIn_MapInputEntry_DoNotUseDefaultTypeInternal;
  75. extern MapIn_MapInputEntry_DoNotUseDefaultTypeInternal _MapIn_MapInputEntry_DoNotUse_default_instance_;
  76. class MapM;
  77. class MapMDefaultTypeInternal;
  78. extern MapMDefaultTypeInternal _MapM_default_instance_;
  79. class MapOfObjects;
  80. class MapOfObjectsDefaultTypeInternal;
  81. extern MapOfObjectsDefaultTypeInternal _MapOfObjects_default_instance_;
  82. class MapOfObjects_M;
  83. class MapOfObjects_MDefaultTypeInternal;
  84. extern MapOfObjects_MDefaultTypeInternal _MapOfObjects_M_default_instance_;
  85. class MapOfObjects_MapEntry_DoNotUse;
  86. class MapOfObjects_MapEntry_DoNotUseDefaultTypeInternal;
  87. extern MapOfObjects_MapEntry_DoNotUseDefaultTypeInternal _MapOfObjects_MapEntry_DoNotUse_default_instance_;
  88. class MapOut;
  89. class MapOutDefaultTypeInternal;
  90. extern MapOutDefaultTypeInternal _MapOut_default_instance_;
  91. class MapOutWireFormat;
  92. class MapOutWireFormatDefaultTypeInternal;
  93. extern MapOutWireFormatDefaultTypeInternal _MapOutWireFormat_default_instance_;
  94. class MapOutWireFormat_Map1Entry;
  95. class MapOutWireFormat_Map1EntryDefaultTypeInternal;
  96. extern MapOutWireFormat_Map1EntryDefaultTypeInternal _MapOutWireFormat_Map1Entry_default_instance_;
  97. class MapOutWireFormat_Map2Entry;
  98. class MapOutWireFormat_Map2EntryDefaultTypeInternal;
  99. extern MapOutWireFormat_Map2EntryDefaultTypeInternal _MapOutWireFormat_Map2Entry_default_instance_;
  100. class MapOutWireFormat_Map3Entry;
  101. class MapOutWireFormat_Map3EntryDefaultTypeInternal;
  102. extern MapOutWireFormat_Map3EntryDefaultTypeInternal _MapOutWireFormat_Map3Entry_default_instance_;
  103. class MapOutWireFormat_Map4Entry;
  104. class MapOutWireFormat_Map4EntryDefaultTypeInternal;
  105. extern MapOutWireFormat_Map4EntryDefaultTypeInternal _MapOutWireFormat_Map4Entry_default_instance_;
  106. class MapOut_Map1Entry_DoNotUse;
  107. class MapOut_Map1Entry_DoNotUseDefaultTypeInternal;
  108. extern MapOut_Map1Entry_DoNotUseDefaultTypeInternal _MapOut_Map1Entry_DoNotUse_default_instance_;
  109. class MapOut_Map2Entry_DoNotUse;
  110. class MapOut_Map2Entry_DoNotUseDefaultTypeInternal;
  111. extern MapOut_Map2Entry_DoNotUseDefaultTypeInternal _MapOut_Map2Entry_DoNotUse_default_instance_;
  112. class MapOut_Map3Entry_DoNotUse;
  113. class MapOut_Map3Entry_DoNotUseDefaultTypeInternal;
  114. extern MapOut_Map3Entry_DoNotUseDefaultTypeInternal _MapOut_Map3Entry_DoNotUse_default_instance_;
  115. class MapOut_Map4Entry_DoNotUse;
  116. class MapOut_Map4Entry_DoNotUseDefaultTypeInternal;
  117. extern MapOut_Map4Entry_DoNotUseDefaultTypeInternal _MapOut_Map4Entry_DoNotUse_default_instance_;
  118. class MapsTestCases;
  119. class MapsTestCasesDefaultTypeInternal;
  120. extern MapsTestCasesDefaultTypeInternal _MapsTestCases_default_instance_;
  121. class Mixed1;
  122. class Mixed1DefaultTypeInternal;
  123. extern Mixed1DefaultTypeInternal _Mixed1_default_instance_;
  124. class Mixed1_MapEntry_DoNotUse;
  125. class Mixed1_MapEntry_DoNotUseDefaultTypeInternal;
  126. extern Mixed1_MapEntry_DoNotUseDefaultTypeInternal _Mixed1_MapEntry_DoNotUse_default_instance_;
  127. class Mixed2;
  128. class Mixed2DefaultTypeInternal;
  129. extern Mixed2DefaultTypeInternal _Mixed2_default_instance_;
  130. class Mixed2_MapEntry_DoNotUse;
  131. class Mixed2_MapEntry_DoNotUseDefaultTypeInternal;
  132. extern Mixed2_MapEntry_DoNotUseDefaultTypeInternal _Mixed2_MapEntry_DoNotUse_default_instance_;
  133. class StringtoInt;
  134. class StringtoIntDefaultTypeInternal;
  135. extern StringtoIntDefaultTypeInternal _StringtoInt_default_instance_;
  136. class StringtoInt_MapEntry_DoNotUse;
  137. class StringtoInt_MapEntry_DoNotUseDefaultTypeInternal;
  138. extern StringtoInt_MapEntry_DoNotUseDefaultTypeInternal _StringtoInt_MapEntry_DoNotUse_default_instance_;
  139. } // namespace testing
  140. } // namespace protobuf
  141. } // namespace google
  142. namespace google {
  143. namespace protobuf {
  144. template<> ::google::protobuf::testing::BoolToString* Arena::CreateMaybeMessage<::google::protobuf::testing::BoolToString>(Arena*);
  145. template<> ::google::protobuf::testing::BoolToString_MapEntry_DoNotUse* Arena::CreateMaybeMessage<::google::protobuf::testing::BoolToString_MapEntry_DoNotUse>(Arena*);
  146. template<> ::google::protobuf::testing::DummyRequest* Arena::CreateMaybeMessage<::google::protobuf::testing::DummyRequest>(Arena*);
  147. template<> ::google::protobuf::testing::EmptyMap* Arena::CreateMaybeMessage<::google::protobuf::testing::EmptyMap>(Arena*);
  148. template<> ::google::protobuf::testing::EmptyMap_MapEntry_DoNotUse* Arena::CreateMaybeMessage<::google::protobuf::testing::EmptyMap_MapEntry_DoNotUse>(Arena*);
  149. template<> ::google::protobuf::testing::IntToString* Arena::CreateMaybeMessage<::google::protobuf::testing::IntToString>(Arena*);
  150. template<> ::google::protobuf::testing::IntToString_MapEntry_DoNotUse* Arena::CreateMaybeMessage<::google::protobuf::testing::IntToString_MapEntry_DoNotUse>(Arena*);
  151. template<> ::google::protobuf::testing::MapIn* Arena::CreateMaybeMessage<::google::protobuf::testing::MapIn>(Arena*);
  152. template<> ::google::protobuf::testing::MapIn_MapInputEntry_DoNotUse* Arena::CreateMaybeMessage<::google::protobuf::testing::MapIn_MapInputEntry_DoNotUse>(Arena*);
  153. template<> ::google::protobuf::testing::MapM* Arena::CreateMaybeMessage<::google::protobuf::testing::MapM>(Arena*);
  154. template<> ::google::protobuf::testing::MapOfObjects* Arena::CreateMaybeMessage<::google::protobuf::testing::MapOfObjects>(Arena*);
  155. template<> ::google::protobuf::testing::MapOfObjects_M* Arena::CreateMaybeMessage<::google::protobuf::testing::MapOfObjects_M>(Arena*);
  156. template<> ::google::protobuf::testing::MapOfObjects_MapEntry_DoNotUse* Arena::CreateMaybeMessage<::google::protobuf::testing::MapOfObjects_MapEntry_DoNotUse>(Arena*);
  157. template<> ::google::protobuf::testing::MapOut* Arena::CreateMaybeMessage<::google::protobuf::testing::MapOut>(Arena*);
  158. template<> ::google::protobuf::testing::MapOutWireFormat* Arena::CreateMaybeMessage<::google::protobuf::testing::MapOutWireFormat>(Arena*);
  159. template<> ::google::protobuf::testing::MapOutWireFormat_Map1Entry* Arena::CreateMaybeMessage<::google::protobuf::testing::MapOutWireFormat_Map1Entry>(Arena*);
  160. template<> ::google::protobuf::testing::MapOutWireFormat_Map2Entry* Arena::CreateMaybeMessage<::google::protobuf::testing::MapOutWireFormat_Map2Entry>(Arena*);
  161. template<> ::google::protobuf::testing::MapOutWireFormat_Map3Entry* Arena::CreateMaybeMessage<::google::protobuf::testing::MapOutWireFormat_Map3Entry>(Arena*);
  162. template<> ::google::protobuf::testing::MapOutWireFormat_Map4Entry* Arena::CreateMaybeMessage<::google::protobuf::testing::MapOutWireFormat_Map4Entry>(Arena*);
  163. template<> ::google::protobuf::testing::MapOut_Map1Entry_DoNotUse* Arena::CreateMaybeMessage<::google::protobuf::testing::MapOut_Map1Entry_DoNotUse>(Arena*);
  164. template<> ::google::protobuf::testing::MapOut_Map2Entry_DoNotUse* Arena::CreateMaybeMessage<::google::protobuf::testing::MapOut_Map2Entry_DoNotUse>(Arena*);
  165. template<> ::google::protobuf::testing::MapOut_Map3Entry_DoNotUse* Arena::CreateMaybeMessage<::google::protobuf::testing::MapOut_Map3Entry_DoNotUse>(Arena*);
  166. template<> ::google::protobuf::testing::MapOut_Map4Entry_DoNotUse* Arena::CreateMaybeMessage<::google::protobuf::testing::MapOut_Map4Entry_DoNotUse>(Arena*);
  167. template<> ::google::protobuf::testing::MapsTestCases* Arena::CreateMaybeMessage<::google::protobuf::testing::MapsTestCases>(Arena*);
  168. template<> ::google::protobuf::testing::Mixed1* Arena::CreateMaybeMessage<::google::protobuf::testing::Mixed1>(Arena*);
  169. template<> ::google::protobuf::testing::Mixed1_MapEntry_DoNotUse* Arena::CreateMaybeMessage<::google::protobuf::testing::Mixed1_MapEntry_DoNotUse>(Arena*);
  170. template<> ::google::protobuf::testing::Mixed2* Arena::CreateMaybeMessage<::google::protobuf::testing::Mixed2>(Arena*);
  171. template<> ::google::protobuf::testing::Mixed2_MapEntry_DoNotUse* Arena::CreateMaybeMessage<::google::protobuf::testing::Mixed2_MapEntry_DoNotUse>(Arena*);
  172. template<> ::google::protobuf::testing::StringtoInt* Arena::CreateMaybeMessage<::google::protobuf::testing::StringtoInt>(Arena*);
  173. template<> ::google::protobuf::testing::StringtoInt_MapEntry_DoNotUse* Arena::CreateMaybeMessage<::google::protobuf::testing::StringtoInt_MapEntry_DoNotUse>(Arena*);
  174. } // namespace protobuf
  175. } // namespace google
  176. namespace google {
  177. namespace protobuf {
  178. namespace testing {
  179. enum Mixed2_E {
  180. Mixed2_E_E0 = 0,
  181. Mixed2_E_E1 = 1,
  182. Mixed2_E_E2 = 2,
  183. Mixed2_E_E3 = 3,
  184. Mixed2_E_Mixed2_E_INT_MIN_SENTINEL_DO_NOT_USE_ = ::google::protobuf::kint32min,
  185. Mixed2_E_Mixed2_E_INT_MAX_SENTINEL_DO_NOT_USE_ = ::google::protobuf::kint32max
  186. };
  187. bool Mixed2_E_IsValid(int value);
  188. const Mixed2_E Mixed2_E_E_MIN = Mixed2_E_E0;
  189. const Mixed2_E Mixed2_E_E_MAX = Mixed2_E_E3;
  190. const int Mixed2_E_E_ARRAYSIZE = Mixed2_E_E_MAX + 1;
  191. const ::google::protobuf::EnumDescriptor* Mixed2_E_descriptor();
  192. inline const ::std::string& Mixed2_E_Name(Mixed2_E value) {
  193. return ::google::protobuf::internal::NameOfEnum(
  194. Mixed2_E_descriptor(), value);
  195. }
  196. inline bool Mixed2_E_Parse(
  197. const ::std::string& name, Mixed2_E* value) {
  198. return ::google::protobuf::internal::ParseNamedEnum<Mixed2_E>(
  199. Mixed2_E_descriptor(), name, value);
  200. }
  201. // ===================================================================
  202. class MapsTestCases : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:google.protobuf.testing.MapsTestCases) */ {
  203. public:
  204. MapsTestCases();
  205. virtual ~MapsTestCases();
  206. MapsTestCases(const MapsTestCases& from);
  207. inline MapsTestCases& operator=(const MapsTestCases& from) {
  208. CopyFrom(from);
  209. return *this;
  210. }
  211. #if LANG_CXX11
  212. MapsTestCases(MapsTestCases&& from) noexcept
  213. : MapsTestCases() {
  214. *this = ::std::move(from);
  215. }
  216. inline MapsTestCases& operator=(MapsTestCases&& from) noexcept {
  217. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  218. if (this != &from) InternalSwap(&from);
  219. } else {
  220. CopyFrom(from);
  221. }
  222. return *this;
  223. }
  224. #endif
  225. static const ::google::protobuf::Descriptor* descriptor();
  226. static const MapsTestCases& default_instance();
  227. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  228. static inline const MapsTestCases* internal_default_instance() {
  229. return reinterpret_cast<const MapsTestCases*>(
  230. &_MapsTestCases_default_instance_);
  231. }
  232. static constexpr int kIndexInFileMessages =
  233. 0;
  234. void Swap(MapsTestCases* other);
  235. friend void swap(MapsTestCases& a, MapsTestCases& b) {
  236. a.Swap(&b);
  237. }
  238. // implements Message ----------------------------------------------
  239. inline MapsTestCases* New() const final {
  240. return CreateMaybeMessage<MapsTestCases>(NULL);
  241. }
  242. MapsTestCases* New(::google::protobuf::Arena* arena) const final {
  243. return CreateMaybeMessage<MapsTestCases>(arena);
  244. }
  245. void CopyFrom(const ::google::protobuf::Message& from) final;
  246. void MergeFrom(const ::google::protobuf::Message& from) final;
  247. void CopyFrom(const MapsTestCases& from);
  248. void MergeFrom(const MapsTestCases& from);
  249. void Clear() final;
  250. bool IsInitialized() const final;
  251. size_t ByteSizeLong() const final;
  252. bool MergePartialFromCodedStream(
  253. ::google::protobuf::io::CodedInputStream* input) final;
  254. void SerializeWithCachedSizes(
  255. ::google::protobuf::io::CodedOutputStream* output) const final;
  256. ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
  257. bool deterministic, ::google::protobuf::uint8* target) const final;
  258. int GetCachedSize() const final { return _cached_size_.Get(); }
  259. private:
  260. void SharedCtor();
  261. void SharedDtor();
  262. void SetCachedSize(int size) const final;
  263. void InternalSwap(MapsTestCases* other);
  264. private:
  265. inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
  266. return NULL;
  267. }
  268. inline void* MaybeArenaPtr() const {
  269. return NULL;
  270. }
  271. public:
  272. ::google::protobuf::Metadata GetMetadata() const final;
  273. // nested types ----------------------------------------------------
  274. // accessors -------------------------------------------------------
  275. // .google.protobuf.testing.EmptyMap empty_map = 1;
  276. bool has_empty_map() const;
  277. void clear_empty_map();
  278. static const int kEmptyMapFieldNumber = 1;
  279. private:
  280. const ::google::protobuf::testing::EmptyMap& _internal_empty_map() const;
  281. public:
  282. const ::google::protobuf::testing::EmptyMap& empty_map() const;
  283. ::google::protobuf::testing::EmptyMap* release_empty_map();
  284. ::google::protobuf::testing::EmptyMap* mutable_empty_map();
  285. void set_allocated_empty_map(::google::protobuf::testing::EmptyMap* empty_map);
  286. // .google.protobuf.testing.StringtoInt string_to_int = 2;
  287. bool has_string_to_int() const;
  288. void clear_string_to_int();
  289. static const int kStringToIntFieldNumber = 2;
  290. private:
  291. const ::google::protobuf::testing::StringtoInt& _internal_string_to_int() const;
  292. public:
  293. const ::google::protobuf::testing::StringtoInt& string_to_int() const;
  294. ::google::protobuf::testing::StringtoInt* release_string_to_int();
  295. ::google::protobuf::testing::StringtoInt* mutable_string_to_int();
  296. void set_allocated_string_to_int(::google::protobuf::testing::StringtoInt* string_to_int);
  297. // .google.protobuf.testing.IntToString int_to_string = 3;
  298. bool has_int_to_string() const;
  299. void clear_int_to_string();
  300. static const int kIntToStringFieldNumber = 3;
  301. private:
  302. const ::google::protobuf::testing::IntToString& _internal_int_to_string() const;
  303. public:
  304. const ::google::protobuf::testing::IntToString& int_to_string() const;
  305. ::google::protobuf::testing::IntToString* release_int_to_string();
  306. ::google::protobuf::testing::IntToString* mutable_int_to_string();
  307. void set_allocated_int_to_string(::google::protobuf::testing::IntToString* int_to_string);
  308. // .google.protobuf.testing.Mixed1 mixed1 = 4;
  309. bool has_mixed1() const;
  310. void clear_mixed1();
  311. static const int kMixed1FieldNumber = 4;
  312. private:
  313. const ::google::protobuf::testing::Mixed1& _internal_mixed1() const;
  314. public:
  315. const ::google::protobuf::testing::Mixed1& mixed1() const;
  316. ::google::protobuf::testing::Mixed1* release_mixed1();
  317. ::google::protobuf::testing::Mixed1* mutable_mixed1();
  318. void set_allocated_mixed1(::google::protobuf::testing::Mixed1* mixed1);
  319. // .google.protobuf.testing.Mixed2 mixed2 = 5;
  320. bool has_mixed2() const;
  321. void clear_mixed2();
  322. static const int kMixed2FieldNumber = 5;
  323. private:
  324. const ::google::protobuf::testing::Mixed2& _internal_mixed2() const;
  325. public:
  326. const ::google::protobuf::testing::Mixed2& mixed2() const;
  327. ::google::protobuf::testing::Mixed2* release_mixed2();
  328. ::google::protobuf::testing::Mixed2* mutable_mixed2();
  329. void set_allocated_mixed2(::google::protobuf::testing::Mixed2* mixed2);
  330. // .google.protobuf.testing.MapOfObjects map_of_objects = 6;
  331. bool has_map_of_objects() const;
  332. void clear_map_of_objects();
  333. static const int kMapOfObjectsFieldNumber = 6;
  334. private:
  335. const ::google::protobuf::testing::MapOfObjects& _internal_map_of_objects() const;
  336. public:
  337. const ::google::protobuf::testing::MapOfObjects& map_of_objects() const;
  338. ::google::protobuf::testing::MapOfObjects* release_map_of_objects();
  339. ::google::protobuf::testing::MapOfObjects* mutable_map_of_objects();
  340. void set_allocated_map_of_objects(::google::protobuf::testing::MapOfObjects* map_of_objects);
  341. // .google.protobuf.testing.StringtoInt empty_key_string_to_int1 = 7;
  342. bool has_empty_key_string_to_int1() const;
  343. void clear_empty_key_string_to_int1();
  344. static const int kEmptyKeyStringToInt1FieldNumber = 7;
  345. private:
  346. const ::google::protobuf::testing::StringtoInt& _internal_empty_key_string_to_int1() const;
  347. public:
  348. const ::google::protobuf::testing::StringtoInt& empty_key_string_to_int1() const;
  349. ::google::protobuf::testing::StringtoInt* release_empty_key_string_to_int1();
  350. ::google::protobuf::testing::StringtoInt* mutable_empty_key_string_to_int1();
  351. void set_allocated_empty_key_string_to_int1(::google::protobuf::testing::StringtoInt* empty_key_string_to_int1);
  352. // .google.protobuf.testing.StringtoInt empty_key_string_to_int2 = 8;
  353. bool has_empty_key_string_to_int2() const;
  354. void clear_empty_key_string_to_int2();
  355. static const int kEmptyKeyStringToInt2FieldNumber = 8;
  356. private:
  357. const ::google::protobuf::testing::StringtoInt& _internal_empty_key_string_to_int2() const;
  358. public:
  359. const ::google::protobuf::testing::StringtoInt& empty_key_string_to_int2() const;
  360. ::google::protobuf::testing::StringtoInt* release_empty_key_string_to_int2();
  361. ::google::protobuf::testing::StringtoInt* mutable_empty_key_string_to_int2();
  362. void set_allocated_empty_key_string_to_int2(::google::protobuf::testing::StringtoInt* empty_key_string_to_int2);
  363. // .google.protobuf.testing.StringtoInt empty_key_string_to_int3 = 9;
  364. bool has_empty_key_string_to_int3() const;
  365. void clear_empty_key_string_to_int3();
  366. static const int kEmptyKeyStringToInt3FieldNumber = 9;
  367. private:
  368. const ::google::protobuf::testing::StringtoInt& _internal_empty_key_string_to_int3() const;
  369. public:
  370. const ::google::protobuf::testing::StringtoInt& empty_key_string_to_int3() const;
  371. ::google::protobuf::testing::StringtoInt* release_empty_key_string_to_int3();
  372. ::google::protobuf::testing::StringtoInt* mutable_empty_key_string_to_int3();
  373. void set_allocated_empty_key_string_to_int3(::google::protobuf::testing::StringtoInt* empty_key_string_to_int3);
  374. // .google.protobuf.testing.BoolToString empty_key_bool_to_string = 10;
  375. bool has_empty_key_bool_to_string() const;
  376. void clear_empty_key_bool_to_string();
  377. static const int kEmptyKeyBoolToStringFieldNumber = 10;
  378. private:
  379. const ::google::protobuf::testing::BoolToString& _internal_empty_key_bool_to_string() const;
  380. public:
  381. const ::google::protobuf::testing::BoolToString& empty_key_bool_to_string() const;
  382. ::google::protobuf::testing::BoolToString* release_empty_key_bool_to_string();
  383. ::google::protobuf::testing::BoolToString* mutable_empty_key_bool_to_string();
  384. void set_allocated_empty_key_bool_to_string(::google::protobuf::testing::BoolToString* empty_key_bool_to_string);
  385. // .google.protobuf.testing.IntToString empty_key_int_to_string = 11;
  386. bool has_empty_key_int_to_string() const;
  387. void clear_empty_key_int_to_string();
  388. static const int kEmptyKeyIntToStringFieldNumber = 11;
  389. private:
  390. const ::google::protobuf::testing::IntToString& _internal_empty_key_int_to_string() const;
  391. public:
  392. const ::google::protobuf::testing::IntToString& empty_key_int_to_string() const;
  393. ::google::protobuf::testing::IntToString* release_empty_key_int_to_string();
  394. ::google::protobuf::testing::IntToString* mutable_empty_key_int_to_string();
  395. void set_allocated_empty_key_int_to_string(::google::protobuf::testing::IntToString* empty_key_int_to_string);
  396. // .google.protobuf.testing.Mixed1 empty_key_mixed = 12;
  397. bool has_empty_key_mixed() const;
  398. void clear_empty_key_mixed();
  399. static const int kEmptyKeyMixedFieldNumber = 12;
  400. private:
  401. const ::google::protobuf::testing::Mixed1& _internal_empty_key_mixed() const;
  402. public:
  403. const ::google::protobuf::testing::Mixed1& empty_key_mixed() const;
  404. ::google::protobuf::testing::Mixed1* release_empty_key_mixed();
  405. ::google::protobuf::testing::Mixed1* mutable_empty_key_mixed();
  406. void set_allocated_empty_key_mixed(::google::protobuf::testing::Mixed1* empty_key_mixed);
  407. // .google.protobuf.testing.MapOfObjects empty_key_map_objects = 13;
  408. bool has_empty_key_map_objects() const;
  409. void clear_empty_key_map_objects();
  410. static const int kEmptyKeyMapObjectsFieldNumber = 13;
  411. private:
  412. const ::google::protobuf::testing::MapOfObjects& _internal_empty_key_map_objects() const;
  413. public:
  414. const ::google::protobuf::testing::MapOfObjects& empty_key_map_objects() const;
  415. ::google::protobuf::testing::MapOfObjects* release_empty_key_map_objects();
  416. ::google::protobuf::testing::MapOfObjects* mutable_empty_key_map_objects();
  417. void set_allocated_empty_key_map_objects(::google::protobuf::testing::MapOfObjects* empty_key_map_objects);
  418. // @@protoc_insertion_point(class_scope:google.protobuf.testing.MapsTestCases)
  419. private:
  420. ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
  421. ::google::protobuf::testing::EmptyMap* empty_map_;
  422. ::google::protobuf::testing::StringtoInt* string_to_int_;
  423. ::google::protobuf::testing::IntToString* int_to_string_;
  424. ::google::protobuf::testing::Mixed1* mixed1_;
  425. ::google::protobuf::testing::Mixed2* mixed2_;
  426. ::google::protobuf::testing::MapOfObjects* map_of_objects_;
  427. ::google::protobuf::testing::StringtoInt* empty_key_string_to_int1_;
  428. ::google::protobuf::testing::StringtoInt* empty_key_string_to_int2_;
  429. ::google::protobuf::testing::StringtoInt* empty_key_string_to_int3_;
  430. ::google::protobuf::testing::BoolToString* empty_key_bool_to_string_;
  431. ::google::protobuf::testing::IntToString* empty_key_int_to_string_;
  432. ::google::protobuf::testing::Mixed1* empty_key_mixed_;
  433. ::google::protobuf::testing::MapOfObjects* empty_key_map_objects_;
  434. mutable ::google::protobuf::internal::CachedSize _cached_size_;
  435. friend struct ::protobuf_google_2fprotobuf_2futil_2finternal_2ftestdata_2fmaps_2eproto::TableStruct;
  436. };
  437. // -------------------------------------------------------------------
  438. class EmptyMap_MapEntry_DoNotUse : public ::google::protobuf::internal::MapEntry<EmptyMap_MapEntry_DoNotUse,
  439. ::google::protobuf::int32, ::google::protobuf::int32,
  440. ::google::protobuf::internal::WireFormatLite::TYPE_INT32,
  441. ::google::protobuf::internal::WireFormatLite::TYPE_INT32,
  442. 0 > {
  443. public:
  444. typedef ::google::protobuf::internal::MapEntry<EmptyMap_MapEntry_DoNotUse,
  445. ::google::protobuf::int32, ::google::protobuf::int32,
  446. ::google::protobuf::internal::WireFormatLite::TYPE_INT32,
  447. ::google::protobuf::internal::WireFormatLite::TYPE_INT32,
  448. 0 > SuperType;
  449. EmptyMap_MapEntry_DoNotUse();
  450. EmptyMap_MapEntry_DoNotUse(::google::protobuf::Arena* arena);
  451. void MergeFrom(const EmptyMap_MapEntry_DoNotUse& other);
  452. static const EmptyMap_MapEntry_DoNotUse* internal_default_instance() { return reinterpret_cast<const EmptyMap_MapEntry_DoNotUse*>(&_EmptyMap_MapEntry_DoNotUse_default_instance_); }
  453. void MergeFrom(const ::google::protobuf::Message& other) final;
  454. ::google::protobuf::Metadata GetMetadata() const;
  455. };
  456. // -------------------------------------------------------------------
  457. class EmptyMap : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:google.protobuf.testing.EmptyMap) */ {
  458. public:
  459. EmptyMap();
  460. virtual ~EmptyMap();
  461. EmptyMap(const EmptyMap& from);
  462. inline EmptyMap& operator=(const EmptyMap& from) {
  463. CopyFrom(from);
  464. return *this;
  465. }
  466. #if LANG_CXX11
  467. EmptyMap(EmptyMap&& from) noexcept
  468. : EmptyMap() {
  469. *this = ::std::move(from);
  470. }
  471. inline EmptyMap& operator=(EmptyMap&& from) noexcept {
  472. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  473. if (this != &from) InternalSwap(&from);
  474. } else {
  475. CopyFrom(from);
  476. }
  477. return *this;
  478. }
  479. #endif
  480. static const ::google::protobuf::Descriptor* descriptor();
  481. static const EmptyMap& default_instance();
  482. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  483. static inline const EmptyMap* internal_default_instance() {
  484. return reinterpret_cast<const EmptyMap*>(
  485. &_EmptyMap_default_instance_);
  486. }
  487. static constexpr int kIndexInFileMessages =
  488. 2;
  489. void Swap(EmptyMap* other);
  490. friend void swap(EmptyMap& a, EmptyMap& b) {
  491. a.Swap(&b);
  492. }
  493. // implements Message ----------------------------------------------
  494. inline EmptyMap* New() const final {
  495. return CreateMaybeMessage<EmptyMap>(NULL);
  496. }
  497. EmptyMap* New(::google::protobuf::Arena* arena) const final {
  498. return CreateMaybeMessage<EmptyMap>(arena);
  499. }
  500. void CopyFrom(const ::google::protobuf::Message& from) final;
  501. void MergeFrom(const ::google::protobuf::Message& from) final;
  502. void CopyFrom(const EmptyMap& from);
  503. void MergeFrom(const EmptyMap& from);
  504. void Clear() final;
  505. bool IsInitialized() const final;
  506. size_t ByteSizeLong() const final;
  507. bool MergePartialFromCodedStream(
  508. ::google::protobuf::io::CodedInputStream* input) final;
  509. void SerializeWithCachedSizes(
  510. ::google::protobuf::io::CodedOutputStream* output) const final;
  511. ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
  512. bool deterministic, ::google::protobuf::uint8* target) const final;
  513. int GetCachedSize() const final { return _cached_size_.Get(); }
  514. private:
  515. void SharedCtor();
  516. void SharedDtor();
  517. void SetCachedSize(int size) const final;
  518. void InternalSwap(EmptyMap* other);
  519. private:
  520. inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
  521. return NULL;
  522. }
  523. inline void* MaybeArenaPtr() const {
  524. return NULL;
  525. }
  526. public:
  527. ::google::protobuf::Metadata GetMetadata() const final;
  528. // nested types ----------------------------------------------------
  529. // accessors -------------------------------------------------------
  530. // map<int32, int32> map = 1;
  531. int map_size() const;
  532. void clear_map();
  533. static const int kMapFieldNumber = 1;
  534. const ::google::protobuf::Map< ::google::protobuf::int32, ::google::protobuf::int32 >&
  535. map() const;
  536. ::google::protobuf::Map< ::google::protobuf::int32, ::google::protobuf::int32 >*
  537. mutable_map();
  538. // @@protoc_insertion_point(class_scope:google.protobuf.testing.EmptyMap)
  539. private:
  540. ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
  541. ::google::protobuf::internal::MapField<
  542. EmptyMap_MapEntry_DoNotUse,
  543. ::google::protobuf::int32, ::google::protobuf::int32,
  544. ::google::protobuf::internal::WireFormatLite::TYPE_INT32,
  545. ::google::protobuf::internal::WireFormatLite::TYPE_INT32,
  546. 0 > map_;
  547. mutable ::google::protobuf::internal::CachedSize _cached_size_;
  548. friend struct ::protobuf_google_2fprotobuf_2futil_2finternal_2ftestdata_2fmaps_2eproto::TableStruct;
  549. };
  550. // -------------------------------------------------------------------
  551. class StringtoInt_MapEntry_DoNotUse : public ::google::protobuf::internal::MapEntry<StringtoInt_MapEntry_DoNotUse,
  552. ::std::string, ::google::protobuf::int32,
  553. ::google::protobuf::internal::WireFormatLite::TYPE_STRING,
  554. ::google::protobuf::internal::WireFormatLite::TYPE_INT32,
  555. 0 > {
  556. public:
  557. typedef ::google::protobuf::internal::MapEntry<StringtoInt_MapEntry_DoNotUse,
  558. ::std::string, ::google::protobuf::int32,
  559. ::google::protobuf::internal::WireFormatLite::TYPE_STRING,
  560. ::google::protobuf::internal::WireFormatLite::TYPE_INT32,
  561. 0 > SuperType;
  562. StringtoInt_MapEntry_DoNotUse();
  563. StringtoInt_MapEntry_DoNotUse(::google::protobuf::Arena* arena);
  564. void MergeFrom(const StringtoInt_MapEntry_DoNotUse& other);
  565. static const StringtoInt_MapEntry_DoNotUse* internal_default_instance() { return reinterpret_cast<const StringtoInt_MapEntry_DoNotUse*>(&_StringtoInt_MapEntry_DoNotUse_default_instance_); }
  566. void MergeFrom(const ::google::protobuf::Message& other) final;
  567. ::google::protobuf::Metadata GetMetadata() const;
  568. };
  569. // -------------------------------------------------------------------
  570. class StringtoInt : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:google.protobuf.testing.StringtoInt) */ {
  571. public:
  572. StringtoInt();
  573. virtual ~StringtoInt();
  574. StringtoInt(const StringtoInt& from);
  575. inline StringtoInt& operator=(const StringtoInt& from) {
  576. CopyFrom(from);
  577. return *this;
  578. }
  579. #if LANG_CXX11
  580. StringtoInt(StringtoInt&& from) noexcept
  581. : StringtoInt() {
  582. *this = ::std::move(from);
  583. }
  584. inline StringtoInt& operator=(StringtoInt&& from) noexcept {
  585. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  586. if (this != &from) InternalSwap(&from);
  587. } else {
  588. CopyFrom(from);
  589. }
  590. return *this;
  591. }
  592. #endif
  593. static const ::google::protobuf::Descriptor* descriptor();
  594. static const StringtoInt& default_instance();
  595. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  596. static inline const StringtoInt* internal_default_instance() {
  597. return reinterpret_cast<const StringtoInt*>(
  598. &_StringtoInt_default_instance_);
  599. }
  600. static constexpr int kIndexInFileMessages =
  601. 4;
  602. void Swap(StringtoInt* other);
  603. friend void swap(StringtoInt& a, StringtoInt& b) {
  604. a.Swap(&b);
  605. }
  606. // implements Message ----------------------------------------------
  607. inline StringtoInt* New() const final {
  608. return CreateMaybeMessage<StringtoInt>(NULL);
  609. }
  610. StringtoInt* New(::google::protobuf::Arena* arena) const final {
  611. return CreateMaybeMessage<StringtoInt>(arena);
  612. }
  613. void CopyFrom(const ::google::protobuf::Message& from) final;
  614. void MergeFrom(const ::google::protobuf::Message& from) final;
  615. void CopyFrom(const StringtoInt& from);
  616. void MergeFrom(const StringtoInt& from);
  617. void Clear() final;
  618. bool IsInitialized() const final;
  619. size_t ByteSizeLong() const final;
  620. bool MergePartialFromCodedStream(
  621. ::google::protobuf::io::CodedInputStream* input) final;
  622. void SerializeWithCachedSizes(
  623. ::google::protobuf::io::CodedOutputStream* output) const final;
  624. ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
  625. bool deterministic, ::google::protobuf::uint8* target) const final;
  626. int GetCachedSize() const final { return _cached_size_.Get(); }
  627. private:
  628. void SharedCtor();
  629. void SharedDtor();
  630. void SetCachedSize(int size) const final;
  631. void InternalSwap(StringtoInt* other);
  632. private:
  633. inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
  634. return NULL;
  635. }
  636. inline void* MaybeArenaPtr() const {
  637. return NULL;
  638. }
  639. public:
  640. ::google::protobuf::Metadata GetMetadata() const final;
  641. // nested types ----------------------------------------------------
  642. // accessors -------------------------------------------------------
  643. // map<string, int32> map = 1;
  644. int map_size() const;
  645. void clear_map();
  646. static const int kMapFieldNumber = 1;
  647. const ::google::protobuf::Map< ::std::string, ::google::protobuf::int32 >&
  648. map() const;
  649. ::google::protobuf::Map< ::std::string, ::google::protobuf::int32 >*
  650. mutable_map();
  651. // @@protoc_insertion_point(class_scope:google.protobuf.testing.StringtoInt)
  652. private:
  653. ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
  654. ::google::protobuf::internal::MapField<
  655. StringtoInt_MapEntry_DoNotUse,
  656. ::std::string, ::google::protobuf::int32,
  657. ::google::protobuf::internal::WireFormatLite::TYPE_STRING,
  658. ::google::protobuf::internal::WireFormatLite::TYPE_INT32,
  659. 0 > map_;
  660. mutable ::google::protobuf::internal::CachedSize _cached_size_;
  661. friend struct ::protobuf_google_2fprotobuf_2futil_2finternal_2ftestdata_2fmaps_2eproto::TableStruct;
  662. };
  663. // -------------------------------------------------------------------
  664. class IntToString_MapEntry_DoNotUse : public ::google::protobuf::internal::MapEntry<IntToString_MapEntry_DoNotUse,
  665. ::google::protobuf::int32, ::std::string,
  666. ::google::protobuf::internal::WireFormatLite::TYPE_INT32,
  667. ::google::protobuf::internal::WireFormatLite::TYPE_STRING,
  668. 0 > {
  669. public:
  670. typedef ::google::protobuf::internal::MapEntry<IntToString_MapEntry_DoNotUse,
  671. ::google::protobuf::int32, ::std::string,
  672. ::google::protobuf::internal::WireFormatLite::TYPE_INT32,
  673. ::google::protobuf::internal::WireFormatLite::TYPE_STRING,
  674. 0 > SuperType;
  675. IntToString_MapEntry_DoNotUse();
  676. IntToString_MapEntry_DoNotUse(::google::protobuf::Arena* arena);
  677. void MergeFrom(const IntToString_MapEntry_DoNotUse& other);
  678. static const IntToString_MapEntry_DoNotUse* internal_default_instance() { return reinterpret_cast<const IntToString_MapEntry_DoNotUse*>(&_IntToString_MapEntry_DoNotUse_default_instance_); }
  679. void MergeFrom(const ::google::protobuf::Message& other) final;
  680. ::google::protobuf::Metadata GetMetadata() const;
  681. };
  682. // -------------------------------------------------------------------
  683. class IntToString : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:google.protobuf.testing.IntToString) */ {
  684. public:
  685. IntToString();
  686. virtual ~IntToString();
  687. IntToString(const IntToString& from);
  688. inline IntToString& operator=(const IntToString& from) {
  689. CopyFrom(from);
  690. return *this;
  691. }
  692. #if LANG_CXX11
  693. IntToString(IntToString&& from) noexcept
  694. : IntToString() {
  695. *this = ::std::move(from);
  696. }
  697. inline IntToString& operator=(IntToString&& from) noexcept {
  698. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  699. if (this != &from) InternalSwap(&from);
  700. } else {
  701. CopyFrom(from);
  702. }
  703. return *this;
  704. }
  705. #endif
  706. static const ::google::protobuf::Descriptor* descriptor();
  707. static const IntToString& default_instance();
  708. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  709. static inline const IntToString* internal_default_instance() {
  710. return reinterpret_cast<const IntToString*>(
  711. &_IntToString_default_instance_);
  712. }
  713. static constexpr int kIndexInFileMessages =
  714. 6;
  715. void Swap(IntToString* other);
  716. friend void swap(IntToString& a, IntToString& b) {
  717. a.Swap(&b);
  718. }
  719. // implements Message ----------------------------------------------
  720. inline IntToString* New() const final {
  721. return CreateMaybeMessage<IntToString>(NULL);
  722. }
  723. IntToString* New(::google::protobuf::Arena* arena) const final {
  724. return CreateMaybeMessage<IntToString>(arena);
  725. }
  726. void CopyFrom(const ::google::protobuf::Message& from) final;
  727. void MergeFrom(const ::google::protobuf::Message& from) final;
  728. void CopyFrom(const IntToString& from);
  729. void MergeFrom(const IntToString& from);
  730. void Clear() final;
  731. bool IsInitialized() const final;
  732. size_t ByteSizeLong() const final;
  733. bool MergePartialFromCodedStream(
  734. ::google::protobuf::io::CodedInputStream* input) final;
  735. void SerializeWithCachedSizes(
  736. ::google::protobuf::io::CodedOutputStream* output) const final;
  737. ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
  738. bool deterministic, ::google::protobuf::uint8* target) const final;
  739. int GetCachedSize() const final { return _cached_size_.Get(); }
  740. private:
  741. void SharedCtor();
  742. void SharedDtor();
  743. void SetCachedSize(int size) const final;
  744. void InternalSwap(IntToString* other);
  745. private:
  746. inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
  747. return NULL;
  748. }
  749. inline void* MaybeArenaPtr() const {
  750. return NULL;
  751. }
  752. public:
  753. ::google::protobuf::Metadata GetMetadata() const final;
  754. // nested types ----------------------------------------------------
  755. // accessors -------------------------------------------------------
  756. // map<int32, string> map = 1;
  757. int map_size() const;
  758. void clear_map();
  759. static const int kMapFieldNumber = 1;
  760. const ::google::protobuf::Map< ::google::protobuf::int32, ::std::string >&
  761. map() const;
  762. ::google::protobuf::Map< ::google::protobuf::int32, ::std::string >*
  763. mutable_map();
  764. // @@protoc_insertion_point(class_scope:google.protobuf.testing.IntToString)
  765. private:
  766. ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
  767. ::google::protobuf::internal::MapField<
  768. IntToString_MapEntry_DoNotUse,
  769. ::google::protobuf::int32, ::std::string,
  770. ::google::protobuf::internal::WireFormatLite::TYPE_INT32,
  771. ::google::protobuf::internal::WireFormatLite::TYPE_STRING,
  772. 0 > map_;
  773. mutable ::google::protobuf::internal::CachedSize _cached_size_;
  774. friend struct ::protobuf_google_2fprotobuf_2futil_2finternal_2ftestdata_2fmaps_2eproto::TableStruct;
  775. };
  776. // -------------------------------------------------------------------
  777. class BoolToString_MapEntry_DoNotUse : public ::google::protobuf::internal::MapEntry<BoolToString_MapEntry_DoNotUse,
  778. bool, ::std::string,
  779. ::google::protobuf::internal::WireFormatLite::TYPE_BOOL,
  780. ::google::protobuf::internal::WireFormatLite::TYPE_STRING,
  781. 0 > {
  782. public:
  783. typedef ::google::protobuf::internal::MapEntry<BoolToString_MapEntry_DoNotUse,
  784. bool, ::std::string,
  785. ::google::protobuf::internal::WireFormatLite::TYPE_BOOL,
  786. ::google::protobuf::internal::WireFormatLite::TYPE_STRING,
  787. 0 > SuperType;
  788. BoolToString_MapEntry_DoNotUse();
  789. BoolToString_MapEntry_DoNotUse(::google::protobuf::Arena* arena);
  790. void MergeFrom(const BoolToString_MapEntry_DoNotUse& other);
  791. static const BoolToString_MapEntry_DoNotUse* internal_default_instance() { return reinterpret_cast<const BoolToString_MapEntry_DoNotUse*>(&_BoolToString_MapEntry_DoNotUse_default_instance_); }
  792. void MergeFrom(const ::google::protobuf::Message& other) final;
  793. ::google::protobuf::Metadata GetMetadata() const;
  794. };
  795. // -------------------------------------------------------------------
  796. class BoolToString : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:google.protobuf.testing.BoolToString) */ {
  797. public:
  798. BoolToString();
  799. virtual ~BoolToString();
  800. BoolToString(const BoolToString& from);
  801. inline BoolToString& operator=(const BoolToString& from) {
  802. CopyFrom(from);
  803. return *this;
  804. }
  805. #if LANG_CXX11
  806. BoolToString(BoolToString&& from) noexcept
  807. : BoolToString() {
  808. *this = ::std::move(from);
  809. }
  810. inline BoolToString& operator=(BoolToString&& from) noexcept {
  811. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  812. if (this != &from) InternalSwap(&from);
  813. } else {
  814. CopyFrom(from);
  815. }
  816. return *this;
  817. }
  818. #endif
  819. static const ::google::protobuf::Descriptor* descriptor();
  820. static const BoolToString& default_instance();
  821. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  822. static inline const BoolToString* internal_default_instance() {
  823. return reinterpret_cast<const BoolToString*>(
  824. &_BoolToString_default_instance_);
  825. }
  826. static constexpr int kIndexInFileMessages =
  827. 8;
  828. void Swap(BoolToString* other);
  829. friend void swap(BoolToString& a, BoolToString& b) {
  830. a.Swap(&b);
  831. }
  832. // implements Message ----------------------------------------------
  833. inline BoolToString* New() const final {
  834. return CreateMaybeMessage<BoolToString>(NULL);
  835. }
  836. BoolToString* New(::google::protobuf::Arena* arena) const final {
  837. return CreateMaybeMessage<BoolToString>(arena);
  838. }
  839. void CopyFrom(const ::google::protobuf::Message& from) final;
  840. void MergeFrom(const ::google::protobuf::Message& from) final;
  841. void CopyFrom(const BoolToString& from);
  842. void MergeFrom(const BoolToString& from);
  843. void Clear() final;
  844. bool IsInitialized() const final;
  845. size_t ByteSizeLong() const final;
  846. bool MergePartialFromCodedStream(
  847. ::google::protobuf::io::CodedInputStream* input) final;
  848. void SerializeWithCachedSizes(
  849. ::google::protobuf::io::CodedOutputStream* output) const final;
  850. ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
  851. bool deterministic, ::google::protobuf::uint8* target) const final;
  852. int GetCachedSize() const final { return _cached_size_.Get(); }
  853. private:
  854. void SharedCtor();
  855. void SharedDtor();
  856. void SetCachedSize(int size) const final;
  857. void InternalSwap(BoolToString* other);
  858. private:
  859. inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
  860. return NULL;
  861. }
  862. inline void* MaybeArenaPtr() const {
  863. return NULL;
  864. }
  865. public:
  866. ::google::protobuf::Metadata GetMetadata() const final;
  867. // nested types ----------------------------------------------------
  868. // accessors -------------------------------------------------------
  869. // map<bool, string> map = 1;
  870. int map_size() const;
  871. void clear_map();
  872. static const int kMapFieldNumber = 1;
  873. const ::google::protobuf::Map< bool, ::std::string >&
  874. map() const;
  875. ::google::protobuf::Map< bool, ::std::string >*
  876. mutable_map();
  877. // @@protoc_insertion_point(class_scope:google.protobuf.testing.BoolToString)
  878. private:
  879. ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
  880. ::google::protobuf::internal::MapField<
  881. BoolToString_MapEntry_DoNotUse,
  882. bool, ::std::string,
  883. ::google::protobuf::internal::WireFormatLite::TYPE_BOOL,
  884. ::google::protobuf::internal::WireFormatLite::TYPE_STRING,
  885. 0 > map_;
  886. mutable ::google::protobuf::internal::CachedSize _cached_size_;
  887. friend struct ::protobuf_google_2fprotobuf_2futil_2finternal_2ftestdata_2fmaps_2eproto::TableStruct;
  888. };
  889. // -------------------------------------------------------------------
  890. class Mixed1_MapEntry_DoNotUse : public ::google::protobuf::internal::MapEntry<Mixed1_MapEntry_DoNotUse,
  891. ::std::string, float,
  892. ::google::protobuf::internal::WireFormatLite::TYPE_STRING,
  893. ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT,
  894. 0 > {
  895. public:
  896. typedef ::google::protobuf::internal::MapEntry<Mixed1_MapEntry_DoNotUse,
  897. ::std::string, float,
  898. ::google::protobuf::internal::WireFormatLite::TYPE_STRING,
  899. ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT,
  900. 0 > SuperType;
  901. Mixed1_MapEntry_DoNotUse();
  902. Mixed1_MapEntry_DoNotUse(::google::protobuf::Arena* arena);
  903. void MergeFrom(const Mixed1_MapEntry_DoNotUse& other);
  904. static const Mixed1_MapEntry_DoNotUse* internal_default_instance() { return reinterpret_cast<const Mixed1_MapEntry_DoNotUse*>(&_Mixed1_MapEntry_DoNotUse_default_instance_); }
  905. void MergeFrom(const ::google::protobuf::Message& other) final;
  906. ::google::protobuf::Metadata GetMetadata() const;
  907. };
  908. // -------------------------------------------------------------------
  909. class Mixed1 : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:google.protobuf.testing.Mixed1) */ {
  910. public:
  911. Mixed1();
  912. virtual ~Mixed1();
  913. Mixed1(const Mixed1& from);
  914. inline Mixed1& operator=(const Mixed1& from) {
  915. CopyFrom(from);
  916. return *this;
  917. }
  918. #if LANG_CXX11
  919. Mixed1(Mixed1&& from) noexcept
  920. : Mixed1() {
  921. *this = ::std::move(from);
  922. }
  923. inline Mixed1& operator=(Mixed1&& from) noexcept {
  924. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  925. if (this != &from) InternalSwap(&from);
  926. } else {
  927. CopyFrom(from);
  928. }
  929. return *this;
  930. }
  931. #endif
  932. static const ::google::protobuf::Descriptor* descriptor();
  933. static const Mixed1& default_instance();
  934. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  935. static inline const Mixed1* internal_default_instance() {
  936. return reinterpret_cast<const Mixed1*>(
  937. &_Mixed1_default_instance_);
  938. }
  939. static constexpr int kIndexInFileMessages =
  940. 10;
  941. void Swap(Mixed1* other);
  942. friend void swap(Mixed1& a, Mixed1& b) {
  943. a.Swap(&b);
  944. }
  945. // implements Message ----------------------------------------------
  946. inline Mixed1* New() const final {
  947. return CreateMaybeMessage<Mixed1>(NULL);
  948. }
  949. Mixed1* New(::google::protobuf::Arena* arena) const final {
  950. return CreateMaybeMessage<Mixed1>(arena);
  951. }
  952. void CopyFrom(const ::google::protobuf::Message& from) final;
  953. void MergeFrom(const ::google::protobuf::Message& from) final;
  954. void CopyFrom(const Mixed1& from);
  955. void MergeFrom(const Mixed1& from);
  956. void Clear() final;
  957. bool IsInitialized() const final;
  958. size_t ByteSizeLong() const final;
  959. bool MergePartialFromCodedStream(
  960. ::google::protobuf::io::CodedInputStream* input) final;
  961. void SerializeWithCachedSizes(
  962. ::google::protobuf::io::CodedOutputStream* output) const final;
  963. ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
  964. bool deterministic, ::google::protobuf::uint8* target) const final;
  965. int GetCachedSize() const final { return _cached_size_.Get(); }
  966. private:
  967. void SharedCtor();
  968. void SharedDtor();
  969. void SetCachedSize(int size) const final;
  970. void InternalSwap(Mixed1* other);
  971. private:
  972. inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
  973. return NULL;
  974. }
  975. inline void* MaybeArenaPtr() const {
  976. return NULL;
  977. }
  978. public:
  979. ::google::protobuf::Metadata GetMetadata() const final;
  980. // nested types ----------------------------------------------------
  981. // accessors -------------------------------------------------------
  982. // map<string, float> map = 2;
  983. int map_size() const;
  984. void clear_map();
  985. static const int kMapFieldNumber = 2;
  986. const ::google::protobuf::Map< ::std::string, float >&
  987. map() const;
  988. ::google::protobuf::Map< ::std::string, float >*
  989. mutable_map();
  990. // string msg = 1;
  991. void clear_msg();
  992. static const int kMsgFieldNumber = 1;
  993. const ::std::string& msg() const;
  994. void set_msg(const ::std::string& value);
  995. #if LANG_CXX11
  996. void set_msg(::std::string&& value);
  997. #endif
  998. void set_msg(const char* value);
  999. void set_msg(const char* value, size_t size);
  1000. ::std::string* mutable_msg();
  1001. ::std::string* release_msg();
  1002. void set_allocated_msg(::std::string* msg);
  1003. // @@protoc_insertion_point(class_scope:google.protobuf.testing.Mixed1)
  1004. private:
  1005. ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
  1006. ::google::protobuf::internal::MapField<
  1007. Mixed1_MapEntry_DoNotUse,
  1008. ::std::string, float,
  1009. ::google::protobuf::internal::WireFormatLite::TYPE_STRING,
  1010. ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT,
  1011. 0 > map_;
  1012. ::google::protobuf::internal::ArenaStringPtr msg_;
  1013. mutable ::google::protobuf::internal::CachedSize _cached_size_;
  1014. friend struct ::protobuf_google_2fprotobuf_2futil_2finternal_2ftestdata_2fmaps_2eproto::TableStruct;
  1015. };
  1016. // -------------------------------------------------------------------
  1017. class Mixed2_MapEntry_DoNotUse : public ::google::protobuf::internal::MapEntry<Mixed2_MapEntry_DoNotUse,
  1018. ::google::protobuf::int32, bool,
  1019. ::google::protobuf::internal::WireFormatLite::TYPE_INT32,
  1020. ::google::protobuf::internal::WireFormatLite::TYPE_BOOL,
  1021. 0 > {
  1022. public:
  1023. typedef ::google::protobuf::internal::MapEntry<Mixed2_MapEntry_DoNotUse,
  1024. ::google::protobuf::int32, bool,
  1025. ::google::protobuf::internal::WireFormatLite::TYPE_INT32,
  1026. ::google::protobuf::internal::WireFormatLite::TYPE_BOOL,
  1027. 0 > SuperType;
  1028. Mixed2_MapEntry_DoNotUse();
  1029. Mixed2_MapEntry_DoNotUse(::google::protobuf::Arena* arena);
  1030. void MergeFrom(const Mixed2_MapEntry_DoNotUse& other);
  1031. static const Mixed2_MapEntry_DoNotUse* internal_default_instance() { return reinterpret_cast<const Mixed2_MapEntry_DoNotUse*>(&_Mixed2_MapEntry_DoNotUse_default_instance_); }
  1032. void MergeFrom(const ::google::protobuf::Message& other) final;
  1033. ::google::protobuf::Metadata GetMetadata() const;
  1034. };
  1035. // -------------------------------------------------------------------
  1036. class Mixed2 : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:google.protobuf.testing.Mixed2) */ {
  1037. public:
  1038. Mixed2();
  1039. virtual ~Mixed2();
  1040. Mixed2(const Mixed2& from);
  1041. inline Mixed2& operator=(const Mixed2& from) {
  1042. CopyFrom(from);
  1043. return *this;
  1044. }
  1045. #if LANG_CXX11
  1046. Mixed2(Mixed2&& from) noexcept
  1047. : Mixed2() {
  1048. *this = ::std::move(from);
  1049. }
  1050. inline Mixed2& operator=(Mixed2&& from) noexcept {
  1051. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  1052. if (this != &from) InternalSwap(&from);
  1053. } else {
  1054. CopyFrom(from);
  1055. }
  1056. return *this;
  1057. }
  1058. #endif
  1059. static const ::google::protobuf::Descriptor* descriptor();
  1060. static const Mixed2& default_instance();
  1061. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  1062. static inline const Mixed2* internal_default_instance() {
  1063. return reinterpret_cast<const Mixed2*>(
  1064. &_Mixed2_default_instance_);
  1065. }
  1066. static constexpr int kIndexInFileMessages =
  1067. 12;
  1068. void Swap(Mixed2* other);
  1069. friend void swap(Mixed2& a, Mixed2& b) {
  1070. a.Swap(&b);
  1071. }
  1072. // implements Message ----------------------------------------------
  1073. inline Mixed2* New() const final {
  1074. return CreateMaybeMessage<Mixed2>(NULL);
  1075. }
  1076. Mixed2* New(::google::protobuf::Arena* arena) const final {
  1077. return CreateMaybeMessage<Mixed2>(arena);
  1078. }
  1079. void CopyFrom(const ::google::protobuf::Message& from) final;
  1080. void MergeFrom(const ::google::protobuf::Message& from) final;
  1081. void CopyFrom(const Mixed2& from);
  1082. void MergeFrom(const Mixed2& from);
  1083. void Clear() final;
  1084. bool IsInitialized() const final;
  1085. size_t ByteSizeLong() const final;
  1086. bool MergePartialFromCodedStream(
  1087. ::google::protobuf::io::CodedInputStream* input) final;
  1088. void SerializeWithCachedSizes(
  1089. ::google::protobuf::io::CodedOutputStream* output) const final;
  1090. ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
  1091. bool deterministic, ::google::protobuf::uint8* target) const final;
  1092. int GetCachedSize() const final { return _cached_size_.Get(); }
  1093. private:
  1094. void SharedCtor();
  1095. void SharedDtor();
  1096. void SetCachedSize(int size) const final;
  1097. void InternalSwap(Mixed2* other);
  1098. private:
  1099. inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
  1100. return NULL;
  1101. }
  1102. inline void* MaybeArenaPtr() const {
  1103. return NULL;
  1104. }
  1105. public:
  1106. ::google::protobuf::Metadata GetMetadata() const final;
  1107. // nested types ----------------------------------------------------
  1108. typedef Mixed2_E E;
  1109. static const E E0 =
  1110. Mixed2_E_E0;
  1111. static const E E1 =
  1112. Mixed2_E_E1;
  1113. static const E E2 =
  1114. Mixed2_E_E2;
  1115. static const E E3 =
  1116. Mixed2_E_E3;
  1117. static inline bool E_IsValid(int value) {
  1118. return Mixed2_E_IsValid(value);
  1119. }
  1120. static const E E_MIN =
  1121. Mixed2_E_E_MIN;
  1122. static const E E_MAX =
  1123. Mixed2_E_E_MAX;
  1124. static const int E_ARRAYSIZE =
  1125. Mixed2_E_E_ARRAYSIZE;
  1126. static inline const ::google::protobuf::EnumDescriptor*
  1127. E_descriptor() {
  1128. return Mixed2_E_descriptor();
  1129. }
  1130. static inline const ::std::string& E_Name(E value) {
  1131. return Mixed2_E_Name(value);
  1132. }
  1133. static inline bool E_Parse(const ::std::string& name,
  1134. E* value) {
  1135. return Mixed2_E_Parse(name, value);
  1136. }
  1137. // accessors -------------------------------------------------------
  1138. // map<int32, bool> map = 1;
  1139. int map_size() const;
  1140. void clear_map();
  1141. static const int kMapFieldNumber = 1;
  1142. const ::google::protobuf::Map< ::google::protobuf::int32, bool >&
  1143. map() const;
  1144. ::google::protobuf::Map< ::google::protobuf::int32, bool >*
  1145. mutable_map();
  1146. // .google.protobuf.testing.Mixed2.E ee = 2;
  1147. void clear_ee();
  1148. static const int kEeFieldNumber = 2;
  1149. ::google::protobuf::testing::Mixed2_E ee() const;
  1150. void set_ee(::google::protobuf::testing::Mixed2_E value);
  1151. // @@protoc_insertion_point(class_scope:google.protobuf.testing.Mixed2)
  1152. private:
  1153. ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
  1154. ::google::protobuf::internal::MapField<
  1155. Mixed2_MapEntry_DoNotUse,
  1156. ::google::protobuf::int32, bool,
  1157. ::google::protobuf::internal::WireFormatLite::TYPE_INT32,
  1158. ::google::protobuf::internal::WireFormatLite::TYPE_BOOL,
  1159. 0 > map_;
  1160. int ee_;
  1161. mutable ::google::protobuf::internal::CachedSize _cached_size_;
  1162. friend struct ::protobuf_google_2fprotobuf_2futil_2finternal_2ftestdata_2fmaps_2eproto::TableStruct;
  1163. };
  1164. // -------------------------------------------------------------------
  1165. class MapOfObjects_M : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:google.protobuf.testing.MapOfObjects.M) */ {
  1166. public:
  1167. MapOfObjects_M();
  1168. virtual ~MapOfObjects_M();
  1169. MapOfObjects_M(const MapOfObjects_M& from);
  1170. inline MapOfObjects_M& operator=(const MapOfObjects_M& from) {
  1171. CopyFrom(from);
  1172. return *this;
  1173. }
  1174. #if LANG_CXX11
  1175. MapOfObjects_M(MapOfObjects_M&& from) noexcept
  1176. : MapOfObjects_M() {
  1177. *this = ::std::move(from);
  1178. }
  1179. inline MapOfObjects_M& operator=(MapOfObjects_M&& from) noexcept {
  1180. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  1181. if (this != &from) InternalSwap(&from);
  1182. } else {
  1183. CopyFrom(from);
  1184. }
  1185. return *this;
  1186. }
  1187. #endif
  1188. static const ::google::protobuf::Descriptor* descriptor();
  1189. static const MapOfObjects_M& default_instance();
  1190. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  1191. static inline const MapOfObjects_M* internal_default_instance() {
  1192. return reinterpret_cast<const MapOfObjects_M*>(
  1193. &_MapOfObjects_M_default_instance_);
  1194. }
  1195. static constexpr int kIndexInFileMessages =
  1196. 13;
  1197. void Swap(MapOfObjects_M* other);
  1198. friend void swap(MapOfObjects_M& a, MapOfObjects_M& b) {
  1199. a.Swap(&b);
  1200. }
  1201. // implements Message ----------------------------------------------
  1202. inline MapOfObjects_M* New() const final {
  1203. return CreateMaybeMessage<MapOfObjects_M>(NULL);
  1204. }
  1205. MapOfObjects_M* New(::google::protobuf::Arena* arena) const final {
  1206. return CreateMaybeMessage<MapOfObjects_M>(arena);
  1207. }
  1208. void CopyFrom(const ::google::protobuf::Message& from) final;
  1209. void MergeFrom(const ::google::protobuf::Message& from) final;
  1210. void CopyFrom(const MapOfObjects_M& from);
  1211. void MergeFrom(const MapOfObjects_M& from);
  1212. void Clear() final;
  1213. bool IsInitialized() const final;
  1214. size_t ByteSizeLong() const final;
  1215. bool MergePartialFromCodedStream(
  1216. ::google::protobuf::io::CodedInputStream* input) final;
  1217. void SerializeWithCachedSizes(
  1218. ::google::protobuf::io::CodedOutputStream* output) const final;
  1219. ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
  1220. bool deterministic, ::google::protobuf::uint8* target) const final;
  1221. int GetCachedSize() const final { return _cached_size_.Get(); }
  1222. private:
  1223. void SharedCtor();
  1224. void SharedDtor();
  1225. void SetCachedSize(int size) const final;
  1226. void InternalSwap(MapOfObjects_M* other);
  1227. private:
  1228. inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
  1229. return NULL;
  1230. }
  1231. inline void* MaybeArenaPtr() const {
  1232. return NULL;
  1233. }
  1234. public:
  1235. ::google::protobuf::Metadata GetMetadata() const final;
  1236. // nested types ----------------------------------------------------
  1237. // accessors -------------------------------------------------------
  1238. // string inner_text = 1;
  1239. void clear_inner_text();
  1240. static const int kInnerTextFieldNumber = 1;
  1241. const ::std::string& inner_text() const;
  1242. void set_inner_text(const ::std::string& value);
  1243. #if LANG_CXX11
  1244. void set_inner_text(::std::string&& value);
  1245. #endif
  1246. void set_inner_text(const char* value);
  1247. void set_inner_text(const char* value, size_t size);
  1248. ::std::string* mutable_inner_text();
  1249. ::std::string* release_inner_text();
  1250. void set_allocated_inner_text(::std::string* inner_text);
  1251. // @@protoc_insertion_point(class_scope:google.protobuf.testing.MapOfObjects.M)
  1252. private:
  1253. ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
  1254. ::google::protobuf::internal::ArenaStringPtr inner_text_;
  1255. mutable ::google::protobuf::internal::CachedSize _cached_size_;
  1256. friend struct ::protobuf_google_2fprotobuf_2futil_2finternal_2ftestdata_2fmaps_2eproto::TableStruct;
  1257. };
  1258. // -------------------------------------------------------------------
  1259. class MapOfObjects_MapEntry_DoNotUse : public ::google::protobuf::internal::MapEntry<MapOfObjects_MapEntry_DoNotUse,
  1260. ::std::string, ::google::protobuf::testing::MapOfObjects_M,
  1261. ::google::protobuf::internal::WireFormatLite::TYPE_STRING,
  1262. ::google::protobuf::internal::WireFormatLite::TYPE_MESSAGE,
  1263. 0 > {
  1264. public:
  1265. typedef ::google::protobuf::internal::MapEntry<MapOfObjects_MapEntry_DoNotUse,
  1266. ::std::string, ::google::protobuf::testing::MapOfObjects_M,
  1267. ::google::protobuf::internal::WireFormatLite::TYPE_STRING,
  1268. ::google::protobuf::internal::WireFormatLite::TYPE_MESSAGE,
  1269. 0 > SuperType;
  1270. MapOfObjects_MapEntry_DoNotUse();
  1271. MapOfObjects_MapEntry_DoNotUse(::google::protobuf::Arena* arena);
  1272. void MergeFrom(const MapOfObjects_MapEntry_DoNotUse& other);
  1273. static const MapOfObjects_MapEntry_DoNotUse* internal_default_instance() { return reinterpret_cast<const MapOfObjects_MapEntry_DoNotUse*>(&_MapOfObjects_MapEntry_DoNotUse_default_instance_); }
  1274. void MergeFrom(const ::google::protobuf::Message& other) final;
  1275. ::google::protobuf::Metadata GetMetadata() const;
  1276. };
  1277. // -------------------------------------------------------------------
  1278. class MapOfObjects : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:google.protobuf.testing.MapOfObjects) */ {
  1279. public:
  1280. MapOfObjects();
  1281. virtual ~MapOfObjects();
  1282. MapOfObjects(const MapOfObjects& from);
  1283. inline MapOfObjects& operator=(const MapOfObjects& from) {
  1284. CopyFrom(from);
  1285. return *this;
  1286. }
  1287. #if LANG_CXX11
  1288. MapOfObjects(MapOfObjects&& from) noexcept
  1289. : MapOfObjects() {
  1290. *this = ::std::move(from);
  1291. }
  1292. inline MapOfObjects& operator=(MapOfObjects&& from) noexcept {
  1293. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  1294. if (this != &from) InternalSwap(&from);
  1295. } else {
  1296. CopyFrom(from);
  1297. }
  1298. return *this;
  1299. }
  1300. #endif
  1301. static const ::google::protobuf::Descriptor* descriptor();
  1302. static const MapOfObjects& default_instance();
  1303. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  1304. static inline const MapOfObjects* internal_default_instance() {
  1305. return reinterpret_cast<const MapOfObjects*>(
  1306. &_MapOfObjects_default_instance_);
  1307. }
  1308. static constexpr int kIndexInFileMessages =
  1309. 15;
  1310. void Swap(MapOfObjects* other);
  1311. friend void swap(MapOfObjects& a, MapOfObjects& b) {
  1312. a.Swap(&b);
  1313. }
  1314. // implements Message ----------------------------------------------
  1315. inline MapOfObjects* New() const final {
  1316. return CreateMaybeMessage<MapOfObjects>(NULL);
  1317. }
  1318. MapOfObjects* New(::google::protobuf::Arena* arena) const final {
  1319. return CreateMaybeMessage<MapOfObjects>(arena);
  1320. }
  1321. void CopyFrom(const ::google::protobuf::Message& from) final;
  1322. void MergeFrom(const ::google::protobuf::Message& from) final;
  1323. void CopyFrom(const MapOfObjects& from);
  1324. void MergeFrom(const MapOfObjects& from);
  1325. void Clear() final;
  1326. bool IsInitialized() const final;
  1327. size_t ByteSizeLong() const final;
  1328. bool MergePartialFromCodedStream(
  1329. ::google::protobuf::io::CodedInputStream* input) final;
  1330. void SerializeWithCachedSizes(
  1331. ::google::protobuf::io::CodedOutputStream* output) const final;
  1332. ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
  1333. bool deterministic, ::google::protobuf::uint8* target) const final;
  1334. int GetCachedSize() const final { return _cached_size_.Get(); }
  1335. private:
  1336. void SharedCtor();
  1337. void SharedDtor();
  1338. void SetCachedSize(int size) const final;
  1339. void InternalSwap(MapOfObjects* other);
  1340. private:
  1341. inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
  1342. return NULL;
  1343. }
  1344. inline void* MaybeArenaPtr() const {
  1345. return NULL;
  1346. }
  1347. public:
  1348. ::google::protobuf::Metadata GetMetadata() const final;
  1349. // nested types ----------------------------------------------------
  1350. typedef MapOfObjects_M M;
  1351. // accessors -------------------------------------------------------
  1352. // map<string, .google.protobuf.testing.MapOfObjects.M> map = 1;
  1353. int map_size() const;
  1354. void clear_map();
  1355. static const int kMapFieldNumber = 1;
  1356. const ::google::protobuf::Map< ::std::string, ::google::protobuf::testing::MapOfObjects_M >&
  1357. map() const;
  1358. ::google::protobuf::Map< ::std::string, ::google::protobuf::testing::MapOfObjects_M >*
  1359. mutable_map();
  1360. // @@protoc_insertion_point(class_scope:google.protobuf.testing.MapOfObjects)
  1361. private:
  1362. ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
  1363. ::google::protobuf::internal::MapField<
  1364. MapOfObjects_MapEntry_DoNotUse,
  1365. ::std::string, ::google::protobuf::testing::MapOfObjects_M,
  1366. ::google::protobuf::internal::WireFormatLite::TYPE_STRING,
  1367. ::google::protobuf::internal::WireFormatLite::TYPE_MESSAGE,
  1368. 0 > map_;
  1369. mutable ::google::protobuf::internal::CachedSize _cached_size_;
  1370. friend struct ::protobuf_google_2fprotobuf_2futil_2finternal_2ftestdata_2fmaps_2eproto::TableStruct;
  1371. };
  1372. // -------------------------------------------------------------------
  1373. class DummyRequest : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:google.protobuf.testing.DummyRequest) */ {
  1374. public:
  1375. DummyRequest();
  1376. virtual ~DummyRequest();
  1377. DummyRequest(const DummyRequest& from);
  1378. inline DummyRequest& operator=(const DummyRequest& from) {
  1379. CopyFrom(from);
  1380. return *this;
  1381. }
  1382. #if LANG_CXX11
  1383. DummyRequest(DummyRequest&& from) noexcept
  1384. : DummyRequest() {
  1385. *this = ::std::move(from);
  1386. }
  1387. inline DummyRequest& operator=(DummyRequest&& from) noexcept {
  1388. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  1389. if (this != &from) InternalSwap(&from);
  1390. } else {
  1391. CopyFrom(from);
  1392. }
  1393. return *this;
  1394. }
  1395. #endif
  1396. static const ::google::protobuf::Descriptor* descriptor();
  1397. static const DummyRequest& default_instance();
  1398. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  1399. static inline const DummyRequest* internal_default_instance() {
  1400. return reinterpret_cast<const DummyRequest*>(
  1401. &_DummyRequest_default_instance_);
  1402. }
  1403. static constexpr int kIndexInFileMessages =
  1404. 16;
  1405. void Swap(DummyRequest* other);
  1406. friend void swap(DummyRequest& a, DummyRequest& b) {
  1407. a.Swap(&b);
  1408. }
  1409. // implements Message ----------------------------------------------
  1410. inline DummyRequest* New() const final {
  1411. return CreateMaybeMessage<DummyRequest>(NULL);
  1412. }
  1413. DummyRequest* New(::google::protobuf::Arena* arena) const final {
  1414. return CreateMaybeMessage<DummyRequest>(arena);
  1415. }
  1416. void CopyFrom(const ::google::protobuf::Message& from) final;
  1417. void MergeFrom(const ::google::protobuf::Message& from) final;
  1418. void CopyFrom(const DummyRequest& from);
  1419. void MergeFrom(const DummyRequest& from);
  1420. void Clear() final;
  1421. bool IsInitialized() const final;
  1422. size_t ByteSizeLong() const final;
  1423. bool MergePartialFromCodedStream(
  1424. ::google::protobuf::io::CodedInputStream* input) final;
  1425. void SerializeWithCachedSizes(
  1426. ::google::protobuf::io::CodedOutputStream* output) const final;
  1427. ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
  1428. bool deterministic, ::google::protobuf::uint8* target) const final;
  1429. int GetCachedSize() const final { return _cached_size_.Get(); }
  1430. private:
  1431. void SharedCtor();
  1432. void SharedDtor();
  1433. void SetCachedSize(int size) const final;
  1434. void InternalSwap(DummyRequest* other);
  1435. private:
  1436. inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
  1437. return NULL;
  1438. }
  1439. inline void* MaybeArenaPtr() const {
  1440. return NULL;
  1441. }
  1442. public:
  1443. ::google::protobuf::Metadata GetMetadata() const final;
  1444. // nested types ----------------------------------------------------
  1445. // accessors -------------------------------------------------------
  1446. // @@protoc_insertion_point(class_scope:google.protobuf.testing.DummyRequest)
  1447. private:
  1448. ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
  1449. mutable ::google::protobuf::internal::CachedSize _cached_size_;
  1450. friend struct ::protobuf_google_2fprotobuf_2futil_2finternal_2ftestdata_2fmaps_2eproto::TableStruct;
  1451. };
  1452. // -------------------------------------------------------------------
  1453. class MapIn_MapInputEntry_DoNotUse : public ::google::protobuf::internal::MapEntry<MapIn_MapInputEntry_DoNotUse,
  1454. ::std::string, ::std::string,
  1455. ::google::protobuf::internal::WireFormatLite::TYPE_STRING,
  1456. ::google::protobuf::internal::WireFormatLite::TYPE_STRING,
  1457. 0 > {
  1458. public:
  1459. typedef ::google::protobuf::internal::MapEntry<MapIn_MapInputEntry_DoNotUse,
  1460. ::std::string, ::std::string,
  1461. ::google::protobuf::internal::WireFormatLite::TYPE_STRING,
  1462. ::google::protobuf::internal::WireFormatLite::TYPE_STRING,
  1463. 0 > SuperType;
  1464. MapIn_MapInputEntry_DoNotUse();
  1465. MapIn_MapInputEntry_DoNotUse(::google::protobuf::Arena* arena);
  1466. void MergeFrom(const MapIn_MapInputEntry_DoNotUse& other);
  1467. static const MapIn_MapInputEntry_DoNotUse* internal_default_instance() { return reinterpret_cast<const MapIn_MapInputEntry_DoNotUse*>(&_MapIn_MapInputEntry_DoNotUse_default_instance_); }
  1468. void MergeFrom(const ::google::protobuf::Message& other) final;
  1469. ::google::protobuf::Metadata GetMetadata() const;
  1470. };
  1471. // -------------------------------------------------------------------
  1472. class MapIn : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:google.protobuf.testing.MapIn) */ {
  1473. public:
  1474. MapIn();
  1475. virtual ~MapIn();
  1476. MapIn(const MapIn& from);
  1477. inline MapIn& operator=(const MapIn& from) {
  1478. CopyFrom(from);
  1479. return *this;
  1480. }
  1481. #if LANG_CXX11
  1482. MapIn(MapIn&& from) noexcept
  1483. : MapIn() {
  1484. *this = ::std::move(from);
  1485. }
  1486. inline MapIn& operator=(MapIn&& from) noexcept {
  1487. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  1488. if (this != &from) InternalSwap(&from);
  1489. } else {
  1490. CopyFrom(from);
  1491. }
  1492. return *this;
  1493. }
  1494. #endif
  1495. static const ::google::protobuf::Descriptor* descriptor();
  1496. static const MapIn& default_instance();
  1497. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  1498. static inline const MapIn* internal_default_instance() {
  1499. return reinterpret_cast<const MapIn*>(
  1500. &_MapIn_default_instance_);
  1501. }
  1502. static constexpr int kIndexInFileMessages =
  1503. 18;
  1504. void Swap(MapIn* other);
  1505. friend void swap(MapIn& a, MapIn& b) {
  1506. a.Swap(&b);
  1507. }
  1508. // implements Message ----------------------------------------------
  1509. inline MapIn* New() const final {
  1510. return CreateMaybeMessage<MapIn>(NULL);
  1511. }
  1512. MapIn* New(::google::protobuf::Arena* arena) const final {
  1513. return CreateMaybeMessage<MapIn>(arena);
  1514. }
  1515. void CopyFrom(const ::google::protobuf::Message& from) final;
  1516. void MergeFrom(const ::google::protobuf::Message& from) final;
  1517. void CopyFrom(const MapIn& from);
  1518. void MergeFrom(const MapIn& from);
  1519. void Clear() final;
  1520. bool IsInitialized() const final;
  1521. size_t ByteSizeLong() const final;
  1522. bool MergePartialFromCodedStream(
  1523. ::google::protobuf::io::CodedInputStream* input) final;
  1524. void SerializeWithCachedSizes(
  1525. ::google::protobuf::io::CodedOutputStream* output) const final;
  1526. ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
  1527. bool deterministic, ::google::protobuf::uint8* target) const final;
  1528. int GetCachedSize() const final { return _cached_size_.Get(); }
  1529. private:
  1530. void SharedCtor();
  1531. void SharedDtor();
  1532. void SetCachedSize(int size) const final;
  1533. void InternalSwap(MapIn* other);
  1534. private:
  1535. inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
  1536. return NULL;
  1537. }
  1538. inline void* MaybeArenaPtr() const {
  1539. return NULL;
  1540. }
  1541. public:
  1542. ::google::protobuf::Metadata GetMetadata() const final;
  1543. // nested types ----------------------------------------------------
  1544. // accessors -------------------------------------------------------
  1545. // repeated string things = 2;
  1546. int things_size() const;
  1547. void clear_things();
  1548. static const int kThingsFieldNumber = 2;
  1549. const ::std::string& things(int index) const;
  1550. ::std::string* mutable_things(int index);
  1551. void set_things(int index, const ::std::string& value);
  1552. #if LANG_CXX11
  1553. void set_things(int index, ::std::string&& value);
  1554. #endif
  1555. void set_things(int index, const char* value);
  1556. void set_things(int index, const char* value, size_t size);
  1557. ::std::string* add_things();
  1558. void add_things(const ::std::string& value);
  1559. #if LANG_CXX11
  1560. void add_things(::std::string&& value);
  1561. #endif
  1562. void add_things(const char* value);
  1563. void add_things(const char* value, size_t size);
  1564. const ::google::protobuf::RepeatedPtrField< ::std::string>& things() const;
  1565. ::google::protobuf::RepeatedPtrField< ::std::string>* mutable_things();
  1566. // map<string, string> map_input = 3;
  1567. int map_input_size() const;
  1568. void clear_map_input();
  1569. static const int kMapInputFieldNumber = 3;
  1570. const ::google::protobuf::Map< ::std::string, ::std::string >&
  1571. map_input() const;
  1572. ::google::protobuf::Map< ::std::string, ::std::string >*
  1573. mutable_map_input();
  1574. // string other = 1;
  1575. void clear_other();
  1576. static const int kOtherFieldNumber = 1;
  1577. const ::std::string& other() const;
  1578. void set_other(const ::std::string& value);
  1579. #if LANG_CXX11
  1580. void set_other(::std::string&& value);
  1581. #endif
  1582. void set_other(const char* value);
  1583. void set_other(const char* value, size_t size);
  1584. ::std::string* mutable_other();
  1585. ::std::string* release_other();
  1586. void set_allocated_other(::std::string* other);
  1587. // @@protoc_insertion_point(class_scope:google.protobuf.testing.MapIn)
  1588. private:
  1589. ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
  1590. ::google::protobuf::RepeatedPtrField< ::std::string> things_;
  1591. ::google::protobuf::internal::MapField<
  1592. MapIn_MapInputEntry_DoNotUse,
  1593. ::std::string, ::std::string,
  1594. ::google::protobuf::internal::WireFormatLite::TYPE_STRING,
  1595. ::google::protobuf::internal::WireFormatLite::TYPE_STRING,
  1596. 0 > map_input_;
  1597. ::google::protobuf::internal::ArenaStringPtr other_;
  1598. mutable ::google::protobuf::internal::CachedSize _cached_size_;
  1599. friend struct ::protobuf_google_2fprotobuf_2futil_2finternal_2ftestdata_2fmaps_2eproto::TableStruct;
  1600. };
  1601. // -------------------------------------------------------------------
  1602. class MapOut_Map1Entry_DoNotUse : public ::google::protobuf::internal::MapEntry<MapOut_Map1Entry_DoNotUse,
  1603. ::std::string, ::google::protobuf::testing::MapM,
  1604. ::google::protobuf::internal::WireFormatLite::TYPE_STRING,
  1605. ::google::protobuf::internal::WireFormatLite::TYPE_MESSAGE,
  1606. 0 > {
  1607. public:
  1608. typedef ::google::protobuf::internal::MapEntry<MapOut_Map1Entry_DoNotUse,
  1609. ::std::string, ::google::protobuf::testing::MapM,
  1610. ::google::protobuf::internal::WireFormatLite::TYPE_STRING,
  1611. ::google::protobuf::internal::WireFormatLite::TYPE_MESSAGE,
  1612. 0 > SuperType;
  1613. MapOut_Map1Entry_DoNotUse();
  1614. MapOut_Map1Entry_DoNotUse(::google::protobuf::Arena* arena);
  1615. void MergeFrom(const MapOut_Map1Entry_DoNotUse& other);
  1616. static const MapOut_Map1Entry_DoNotUse* internal_default_instance() { return reinterpret_cast<const MapOut_Map1Entry_DoNotUse*>(&_MapOut_Map1Entry_DoNotUse_default_instance_); }
  1617. void MergeFrom(const ::google::protobuf::Message& other) final;
  1618. ::google::protobuf::Metadata GetMetadata() const;
  1619. };
  1620. // -------------------------------------------------------------------
  1621. class MapOut_Map2Entry_DoNotUse : public ::google::protobuf::internal::MapEntry<MapOut_Map2Entry_DoNotUse,
  1622. ::std::string, ::google::protobuf::testing::MapOut,
  1623. ::google::protobuf::internal::WireFormatLite::TYPE_STRING,
  1624. ::google::protobuf::internal::WireFormatLite::TYPE_MESSAGE,
  1625. 0 > {
  1626. public:
  1627. typedef ::google::protobuf::internal::MapEntry<MapOut_Map2Entry_DoNotUse,
  1628. ::std::string, ::google::protobuf::testing::MapOut,
  1629. ::google::protobuf::internal::WireFormatLite::TYPE_STRING,
  1630. ::google::protobuf::internal::WireFormatLite::TYPE_MESSAGE,
  1631. 0 > SuperType;
  1632. MapOut_Map2Entry_DoNotUse();
  1633. MapOut_Map2Entry_DoNotUse(::google::protobuf::Arena* arena);
  1634. void MergeFrom(const MapOut_Map2Entry_DoNotUse& other);
  1635. static const MapOut_Map2Entry_DoNotUse* internal_default_instance() { return reinterpret_cast<const MapOut_Map2Entry_DoNotUse*>(&_MapOut_Map2Entry_DoNotUse_default_instance_); }
  1636. void MergeFrom(const ::google::protobuf::Message& other) final;
  1637. ::google::protobuf::Metadata GetMetadata() const;
  1638. };
  1639. // -------------------------------------------------------------------
  1640. class MapOut_Map3Entry_DoNotUse : public ::google::protobuf::internal::MapEntry<MapOut_Map3Entry_DoNotUse,
  1641. ::google::protobuf::int32, ::std::string,
  1642. ::google::protobuf::internal::WireFormatLite::TYPE_INT32,
  1643. ::google::protobuf::internal::WireFormatLite::TYPE_STRING,
  1644. 0 > {
  1645. public:
  1646. typedef ::google::protobuf::internal::MapEntry<MapOut_Map3Entry_DoNotUse,
  1647. ::google::protobuf::int32, ::std::string,
  1648. ::google::protobuf::internal::WireFormatLite::TYPE_INT32,
  1649. ::google::protobuf::internal::WireFormatLite::TYPE_STRING,
  1650. 0 > SuperType;
  1651. MapOut_Map3Entry_DoNotUse();
  1652. MapOut_Map3Entry_DoNotUse(::google::protobuf::Arena* arena);
  1653. void MergeFrom(const MapOut_Map3Entry_DoNotUse& other);
  1654. static const MapOut_Map3Entry_DoNotUse* internal_default_instance() { return reinterpret_cast<const MapOut_Map3Entry_DoNotUse*>(&_MapOut_Map3Entry_DoNotUse_default_instance_); }
  1655. void MergeFrom(const ::google::protobuf::Message& other) final;
  1656. ::google::protobuf::Metadata GetMetadata() const;
  1657. };
  1658. // -------------------------------------------------------------------
  1659. class MapOut_Map4Entry_DoNotUse : public ::google::protobuf::internal::MapEntry<MapOut_Map4Entry_DoNotUse,
  1660. bool, ::std::string,
  1661. ::google::protobuf::internal::WireFormatLite::TYPE_BOOL,
  1662. ::google::protobuf::internal::WireFormatLite::TYPE_STRING,
  1663. 0 > {
  1664. public:
  1665. typedef ::google::protobuf::internal::MapEntry<MapOut_Map4Entry_DoNotUse,
  1666. bool, ::std::string,
  1667. ::google::protobuf::internal::WireFormatLite::TYPE_BOOL,
  1668. ::google::protobuf::internal::WireFormatLite::TYPE_STRING,
  1669. 0 > SuperType;
  1670. MapOut_Map4Entry_DoNotUse();
  1671. MapOut_Map4Entry_DoNotUse(::google::protobuf::Arena* arena);
  1672. void MergeFrom(const MapOut_Map4Entry_DoNotUse& other);
  1673. static const MapOut_Map4Entry_DoNotUse* internal_default_instance() { return reinterpret_cast<const MapOut_Map4Entry_DoNotUse*>(&_MapOut_Map4Entry_DoNotUse_default_instance_); }
  1674. void MergeFrom(const ::google::protobuf::Message& other) final;
  1675. ::google::protobuf::Metadata GetMetadata() const;
  1676. };
  1677. // -------------------------------------------------------------------
  1678. class MapOut : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:google.protobuf.testing.MapOut) */ {
  1679. public:
  1680. MapOut();
  1681. virtual ~MapOut();
  1682. MapOut(const MapOut& from);
  1683. inline MapOut& operator=(const MapOut& from) {
  1684. CopyFrom(from);
  1685. return *this;
  1686. }
  1687. #if LANG_CXX11
  1688. MapOut(MapOut&& from) noexcept
  1689. : MapOut() {
  1690. *this = ::std::move(from);
  1691. }
  1692. inline MapOut& operator=(MapOut&& from) noexcept {
  1693. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  1694. if (this != &from) InternalSwap(&from);
  1695. } else {
  1696. CopyFrom(from);
  1697. }
  1698. return *this;
  1699. }
  1700. #endif
  1701. static const ::google::protobuf::Descriptor* descriptor();
  1702. static const MapOut& default_instance();
  1703. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  1704. static inline const MapOut* internal_default_instance() {
  1705. return reinterpret_cast<const MapOut*>(
  1706. &_MapOut_default_instance_);
  1707. }
  1708. static constexpr int kIndexInFileMessages =
  1709. 23;
  1710. void Swap(MapOut* other);
  1711. friend void swap(MapOut& a, MapOut& b) {
  1712. a.Swap(&b);
  1713. }
  1714. // implements Message ----------------------------------------------
  1715. inline MapOut* New() const final {
  1716. return CreateMaybeMessage<MapOut>(NULL);
  1717. }
  1718. MapOut* New(::google::protobuf::Arena* arena) const final {
  1719. return CreateMaybeMessage<MapOut>(arena);
  1720. }
  1721. void CopyFrom(const ::google::protobuf::Message& from) final;
  1722. void MergeFrom(const ::google::protobuf::Message& from) final;
  1723. void CopyFrom(const MapOut& from);
  1724. void MergeFrom(const MapOut& from);
  1725. void Clear() final;
  1726. bool IsInitialized() const final;
  1727. size_t ByteSizeLong() const final;
  1728. bool MergePartialFromCodedStream(
  1729. ::google::protobuf::io::CodedInputStream* input) final;
  1730. void SerializeWithCachedSizes(
  1731. ::google::protobuf::io::CodedOutputStream* output) const final;
  1732. ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
  1733. bool deterministic, ::google::protobuf::uint8* target) const final;
  1734. int GetCachedSize() const final { return _cached_size_.Get(); }
  1735. private:
  1736. void SharedCtor();
  1737. void SharedDtor();
  1738. void SetCachedSize(int size) const final;
  1739. void InternalSwap(MapOut* other);
  1740. private:
  1741. inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
  1742. return NULL;
  1743. }
  1744. inline void* MaybeArenaPtr() const {
  1745. return NULL;
  1746. }
  1747. public:
  1748. ::google::protobuf::Metadata GetMetadata() const final;
  1749. // nested types ----------------------------------------------------
  1750. // accessors -------------------------------------------------------
  1751. // map<string, .google.protobuf.testing.MapM> map1 = 1;
  1752. int map1_size() const;
  1753. void clear_map1();
  1754. static const int kMap1FieldNumber = 1;
  1755. const ::google::protobuf::Map< ::std::string, ::google::protobuf::testing::MapM >&
  1756. map1() const;
  1757. ::google::protobuf::Map< ::std::string, ::google::protobuf::testing::MapM >*
  1758. mutable_map1();
  1759. // map<string, .google.protobuf.testing.MapOut> map2 = 2;
  1760. int map2_size() const;
  1761. void clear_map2();
  1762. static const int kMap2FieldNumber = 2;
  1763. const ::google::protobuf::Map< ::std::string, ::google::protobuf::testing::MapOut >&
  1764. map2() const;
  1765. ::google::protobuf::Map< ::std::string, ::google::protobuf::testing::MapOut >*
  1766. mutable_map2();
  1767. // map<int32, string> map3 = 3;
  1768. int map3_size() const;
  1769. void clear_map3();
  1770. static const int kMap3FieldNumber = 3;
  1771. const ::google::protobuf::Map< ::google::protobuf::int32, ::std::string >&
  1772. map3() const;
  1773. ::google::protobuf::Map< ::google::protobuf::int32, ::std::string >*
  1774. mutable_map3();
  1775. // map<bool, string> map4 = 5;
  1776. int map4_size() const;
  1777. void clear_map4();
  1778. static const int kMap4FieldNumber = 5;
  1779. const ::google::protobuf::Map< bool, ::std::string >&
  1780. map4() const;
  1781. ::google::protobuf::Map< bool, ::std::string >*
  1782. mutable_map4();
  1783. // string bar = 4;
  1784. void clear_bar();
  1785. static const int kBarFieldNumber = 4;
  1786. const ::std::string& bar() const;
  1787. void set_bar(const ::std::string& value);
  1788. #if LANG_CXX11
  1789. void set_bar(::std::string&& value);
  1790. #endif
  1791. void set_bar(const char* value);
  1792. void set_bar(const char* value, size_t size);
  1793. ::std::string* mutable_bar();
  1794. ::std::string* release_bar();
  1795. void set_allocated_bar(::std::string* bar);
  1796. // @@protoc_insertion_point(class_scope:google.protobuf.testing.MapOut)
  1797. private:
  1798. ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
  1799. ::google::protobuf::internal::MapField<
  1800. MapOut_Map1Entry_DoNotUse,
  1801. ::std::string, ::google::protobuf::testing::MapM,
  1802. ::google::protobuf::internal::WireFormatLite::TYPE_STRING,
  1803. ::google::protobuf::internal::WireFormatLite::TYPE_MESSAGE,
  1804. 0 > map1_;
  1805. ::google::protobuf::internal::MapField<
  1806. MapOut_Map2Entry_DoNotUse,
  1807. ::std::string, ::google::protobuf::testing::MapOut,
  1808. ::google::protobuf::internal::WireFormatLite::TYPE_STRING,
  1809. ::google::protobuf::internal::WireFormatLite::TYPE_MESSAGE,
  1810. 0 > map2_;
  1811. ::google::protobuf::internal::MapField<
  1812. MapOut_Map3Entry_DoNotUse,
  1813. ::google::protobuf::int32, ::std::string,
  1814. ::google::protobuf::internal::WireFormatLite::TYPE_INT32,
  1815. ::google::protobuf::internal::WireFormatLite::TYPE_STRING,
  1816. 0 > map3_;
  1817. ::google::protobuf::internal::MapField<
  1818. MapOut_Map4Entry_DoNotUse,
  1819. bool, ::std::string,
  1820. ::google::protobuf::internal::WireFormatLite::TYPE_BOOL,
  1821. ::google::protobuf::internal::WireFormatLite::TYPE_STRING,
  1822. 0 > map4_;
  1823. ::google::protobuf::internal::ArenaStringPtr bar_;
  1824. mutable ::google::protobuf::internal::CachedSize _cached_size_;
  1825. friend struct ::protobuf_google_2fprotobuf_2futil_2finternal_2ftestdata_2fmaps_2eproto::TableStruct;
  1826. };
  1827. // -------------------------------------------------------------------
  1828. class MapOutWireFormat_Map1Entry : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:google.protobuf.testing.MapOutWireFormat.Map1Entry) */ {
  1829. public:
  1830. MapOutWireFormat_Map1Entry();
  1831. virtual ~MapOutWireFormat_Map1Entry();
  1832. MapOutWireFormat_Map1Entry(const MapOutWireFormat_Map1Entry& from);
  1833. inline MapOutWireFormat_Map1Entry& operator=(const MapOutWireFormat_Map1Entry& from) {
  1834. CopyFrom(from);
  1835. return *this;
  1836. }
  1837. #if LANG_CXX11
  1838. MapOutWireFormat_Map1Entry(MapOutWireFormat_Map1Entry&& from) noexcept
  1839. : MapOutWireFormat_Map1Entry() {
  1840. *this = ::std::move(from);
  1841. }
  1842. inline MapOutWireFormat_Map1Entry& operator=(MapOutWireFormat_Map1Entry&& from) noexcept {
  1843. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  1844. if (this != &from) InternalSwap(&from);
  1845. } else {
  1846. CopyFrom(from);
  1847. }
  1848. return *this;
  1849. }
  1850. #endif
  1851. static const ::google::protobuf::Descriptor* descriptor();
  1852. static const MapOutWireFormat_Map1Entry& default_instance();
  1853. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  1854. static inline const MapOutWireFormat_Map1Entry* internal_default_instance() {
  1855. return reinterpret_cast<const MapOutWireFormat_Map1Entry*>(
  1856. &_MapOutWireFormat_Map1Entry_default_instance_);
  1857. }
  1858. static constexpr int kIndexInFileMessages =
  1859. 24;
  1860. void Swap(MapOutWireFormat_Map1Entry* other);
  1861. friend void swap(MapOutWireFormat_Map1Entry& a, MapOutWireFormat_Map1Entry& b) {
  1862. a.Swap(&b);
  1863. }
  1864. // implements Message ----------------------------------------------
  1865. inline MapOutWireFormat_Map1Entry* New() const final {
  1866. return CreateMaybeMessage<MapOutWireFormat_Map1Entry>(NULL);
  1867. }
  1868. MapOutWireFormat_Map1Entry* New(::google::protobuf::Arena* arena) const final {
  1869. return CreateMaybeMessage<MapOutWireFormat_Map1Entry>(arena);
  1870. }
  1871. void CopyFrom(const ::google::protobuf::Message& from) final;
  1872. void MergeFrom(const ::google::protobuf::Message& from) final;
  1873. void CopyFrom(const MapOutWireFormat_Map1Entry& from);
  1874. void MergeFrom(const MapOutWireFormat_Map1Entry& from);
  1875. void Clear() final;
  1876. bool IsInitialized() const final;
  1877. size_t ByteSizeLong() const final;
  1878. bool MergePartialFromCodedStream(
  1879. ::google::protobuf::io::CodedInputStream* input) final;
  1880. void SerializeWithCachedSizes(
  1881. ::google::protobuf::io::CodedOutputStream* output) const final;
  1882. ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
  1883. bool deterministic, ::google::protobuf::uint8* target) const final;
  1884. int GetCachedSize() const final { return _cached_size_.Get(); }
  1885. private:
  1886. void SharedCtor();
  1887. void SharedDtor();
  1888. void SetCachedSize(int size) const final;
  1889. void InternalSwap(MapOutWireFormat_Map1Entry* other);
  1890. private:
  1891. inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
  1892. return NULL;
  1893. }
  1894. inline void* MaybeArenaPtr() const {
  1895. return NULL;
  1896. }
  1897. public:
  1898. ::google::protobuf::Metadata GetMetadata() const final;
  1899. // nested types ----------------------------------------------------
  1900. // accessors -------------------------------------------------------
  1901. // string key = 1;
  1902. void clear_key();
  1903. static const int kKeyFieldNumber = 1;
  1904. const ::std::string& key() const;
  1905. void set_key(const ::std::string& value);
  1906. #if LANG_CXX11
  1907. void set_key(::std::string&& value);
  1908. #endif
  1909. void set_key(const char* value);
  1910. void set_key(const char* value, size_t size);
  1911. ::std::string* mutable_key();
  1912. ::std::string* release_key();
  1913. void set_allocated_key(::std::string* key);
  1914. // .google.protobuf.testing.MapM value = 2;
  1915. bool has_value() const;
  1916. void clear_value();
  1917. static const int kValueFieldNumber = 2;
  1918. private:
  1919. const ::google::protobuf::testing::MapM& _internal_value() const;
  1920. public:
  1921. const ::google::protobuf::testing::MapM& value() const;
  1922. ::google::protobuf::testing::MapM* release_value();
  1923. ::google::protobuf::testing::MapM* mutable_value();
  1924. void set_allocated_value(::google::protobuf::testing::MapM* value);
  1925. // @@protoc_insertion_point(class_scope:google.protobuf.testing.MapOutWireFormat.Map1Entry)
  1926. private:
  1927. ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
  1928. ::google::protobuf::internal::ArenaStringPtr key_;
  1929. ::google::protobuf::testing::MapM* value_;
  1930. mutable ::google::protobuf::internal::CachedSize _cached_size_;
  1931. friend struct ::protobuf_google_2fprotobuf_2futil_2finternal_2ftestdata_2fmaps_2eproto::TableStruct;
  1932. };
  1933. // -------------------------------------------------------------------
  1934. class MapOutWireFormat_Map2Entry : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:google.protobuf.testing.MapOutWireFormat.Map2Entry) */ {
  1935. public:
  1936. MapOutWireFormat_Map2Entry();
  1937. virtual ~MapOutWireFormat_Map2Entry();
  1938. MapOutWireFormat_Map2Entry(const MapOutWireFormat_Map2Entry& from);
  1939. inline MapOutWireFormat_Map2Entry& operator=(const MapOutWireFormat_Map2Entry& from) {
  1940. CopyFrom(from);
  1941. return *this;
  1942. }
  1943. #if LANG_CXX11
  1944. MapOutWireFormat_Map2Entry(MapOutWireFormat_Map2Entry&& from) noexcept
  1945. : MapOutWireFormat_Map2Entry() {
  1946. *this = ::std::move(from);
  1947. }
  1948. inline MapOutWireFormat_Map2Entry& operator=(MapOutWireFormat_Map2Entry&& from) noexcept {
  1949. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  1950. if (this != &from) InternalSwap(&from);
  1951. } else {
  1952. CopyFrom(from);
  1953. }
  1954. return *this;
  1955. }
  1956. #endif
  1957. static const ::google::protobuf::Descriptor* descriptor();
  1958. static const MapOutWireFormat_Map2Entry& default_instance();
  1959. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  1960. static inline const MapOutWireFormat_Map2Entry* internal_default_instance() {
  1961. return reinterpret_cast<const MapOutWireFormat_Map2Entry*>(
  1962. &_MapOutWireFormat_Map2Entry_default_instance_);
  1963. }
  1964. static constexpr int kIndexInFileMessages =
  1965. 25;
  1966. void Swap(MapOutWireFormat_Map2Entry* other);
  1967. friend void swap(MapOutWireFormat_Map2Entry& a, MapOutWireFormat_Map2Entry& b) {
  1968. a.Swap(&b);
  1969. }
  1970. // implements Message ----------------------------------------------
  1971. inline MapOutWireFormat_Map2Entry* New() const final {
  1972. return CreateMaybeMessage<MapOutWireFormat_Map2Entry>(NULL);
  1973. }
  1974. MapOutWireFormat_Map2Entry* New(::google::protobuf::Arena* arena) const final {
  1975. return CreateMaybeMessage<MapOutWireFormat_Map2Entry>(arena);
  1976. }
  1977. void CopyFrom(const ::google::protobuf::Message& from) final;
  1978. void MergeFrom(const ::google::protobuf::Message& from) final;
  1979. void CopyFrom(const MapOutWireFormat_Map2Entry& from);
  1980. void MergeFrom(const MapOutWireFormat_Map2Entry& from);
  1981. void Clear() final;
  1982. bool IsInitialized() const final;
  1983. size_t ByteSizeLong() const final;
  1984. bool MergePartialFromCodedStream(
  1985. ::google::protobuf::io::CodedInputStream* input) final;
  1986. void SerializeWithCachedSizes(
  1987. ::google::protobuf::io::CodedOutputStream* output) const final;
  1988. ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
  1989. bool deterministic, ::google::protobuf::uint8* target) const final;
  1990. int GetCachedSize() const final { return _cached_size_.Get(); }
  1991. private:
  1992. void SharedCtor();
  1993. void SharedDtor();
  1994. void SetCachedSize(int size) const final;
  1995. void InternalSwap(MapOutWireFormat_Map2Entry* other);
  1996. private:
  1997. inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
  1998. return NULL;
  1999. }
  2000. inline void* MaybeArenaPtr() const {
  2001. return NULL;
  2002. }
  2003. public:
  2004. ::google::protobuf::Metadata GetMetadata() const final;
  2005. // nested types ----------------------------------------------------
  2006. // accessors -------------------------------------------------------
  2007. // string key = 1;
  2008. void clear_key();
  2009. static const int kKeyFieldNumber = 1;
  2010. const ::std::string& key() const;
  2011. void set_key(const ::std::string& value);
  2012. #if LANG_CXX11
  2013. void set_key(::std::string&& value);
  2014. #endif
  2015. void set_key(const char* value);
  2016. void set_key(const char* value, size_t size);
  2017. ::std::string* mutable_key();
  2018. ::std::string* release_key();
  2019. void set_allocated_key(::std::string* key);
  2020. // .google.protobuf.testing.MapOut value = 2;
  2021. bool has_value() const;
  2022. void clear_value();
  2023. static const int kValueFieldNumber = 2;
  2024. private:
  2025. const ::google::protobuf::testing::MapOut& _internal_value() const;
  2026. public:
  2027. const ::google::protobuf::testing::MapOut& value() const;
  2028. ::google::protobuf::testing::MapOut* release_value();
  2029. ::google::protobuf::testing::MapOut* mutable_value();
  2030. void set_allocated_value(::google::protobuf::testing::MapOut* value);
  2031. // @@protoc_insertion_point(class_scope:google.protobuf.testing.MapOutWireFormat.Map2Entry)
  2032. private:
  2033. ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
  2034. ::google::protobuf::internal::ArenaStringPtr key_;
  2035. ::google::protobuf::testing::MapOut* value_;
  2036. mutable ::google::protobuf::internal::CachedSize _cached_size_;
  2037. friend struct ::protobuf_google_2fprotobuf_2futil_2finternal_2ftestdata_2fmaps_2eproto::TableStruct;
  2038. };
  2039. // -------------------------------------------------------------------
  2040. class MapOutWireFormat_Map3Entry : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:google.protobuf.testing.MapOutWireFormat.Map3Entry) */ {
  2041. public:
  2042. MapOutWireFormat_Map3Entry();
  2043. virtual ~MapOutWireFormat_Map3Entry();
  2044. MapOutWireFormat_Map3Entry(const MapOutWireFormat_Map3Entry& from);
  2045. inline MapOutWireFormat_Map3Entry& operator=(const MapOutWireFormat_Map3Entry& from) {
  2046. CopyFrom(from);
  2047. return *this;
  2048. }
  2049. #if LANG_CXX11
  2050. MapOutWireFormat_Map3Entry(MapOutWireFormat_Map3Entry&& from) noexcept
  2051. : MapOutWireFormat_Map3Entry() {
  2052. *this = ::std::move(from);
  2053. }
  2054. inline MapOutWireFormat_Map3Entry& operator=(MapOutWireFormat_Map3Entry&& from) noexcept {
  2055. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  2056. if (this != &from) InternalSwap(&from);
  2057. } else {
  2058. CopyFrom(from);
  2059. }
  2060. return *this;
  2061. }
  2062. #endif
  2063. static const ::google::protobuf::Descriptor* descriptor();
  2064. static const MapOutWireFormat_Map3Entry& default_instance();
  2065. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  2066. static inline const MapOutWireFormat_Map3Entry* internal_default_instance() {
  2067. return reinterpret_cast<const MapOutWireFormat_Map3Entry*>(
  2068. &_MapOutWireFormat_Map3Entry_default_instance_);
  2069. }
  2070. static constexpr int kIndexInFileMessages =
  2071. 26;
  2072. void Swap(MapOutWireFormat_Map3Entry* other);
  2073. friend void swap(MapOutWireFormat_Map3Entry& a, MapOutWireFormat_Map3Entry& b) {
  2074. a.Swap(&b);
  2075. }
  2076. // implements Message ----------------------------------------------
  2077. inline MapOutWireFormat_Map3Entry* New() const final {
  2078. return CreateMaybeMessage<MapOutWireFormat_Map3Entry>(NULL);
  2079. }
  2080. MapOutWireFormat_Map3Entry* New(::google::protobuf::Arena* arena) const final {
  2081. return CreateMaybeMessage<MapOutWireFormat_Map3Entry>(arena);
  2082. }
  2083. void CopyFrom(const ::google::protobuf::Message& from) final;
  2084. void MergeFrom(const ::google::protobuf::Message& from) final;
  2085. void CopyFrom(const MapOutWireFormat_Map3Entry& from);
  2086. void MergeFrom(const MapOutWireFormat_Map3Entry& from);
  2087. void Clear() final;
  2088. bool IsInitialized() const final;
  2089. size_t ByteSizeLong() const final;
  2090. bool MergePartialFromCodedStream(
  2091. ::google::protobuf::io::CodedInputStream* input) final;
  2092. void SerializeWithCachedSizes(
  2093. ::google::protobuf::io::CodedOutputStream* output) const final;
  2094. ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
  2095. bool deterministic, ::google::protobuf::uint8* target) const final;
  2096. int GetCachedSize() const final { return _cached_size_.Get(); }
  2097. private:
  2098. void SharedCtor();
  2099. void SharedDtor();
  2100. void SetCachedSize(int size) const final;
  2101. void InternalSwap(MapOutWireFormat_Map3Entry* other);
  2102. private:
  2103. inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
  2104. return NULL;
  2105. }
  2106. inline void* MaybeArenaPtr() const {
  2107. return NULL;
  2108. }
  2109. public:
  2110. ::google::protobuf::Metadata GetMetadata() const final;
  2111. // nested types ----------------------------------------------------
  2112. // accessors -------------------------------------------------------
  2113. // string value = 2;
  2114. void clear_value();
  2115. static const int kValueFieldNumber = 2;
  2116. const ::std::string& value() const;
  2117. void set_value(const ::std::string& value);
  2118. #if LANG_CXX11
  2119. void set_value(::std::string&& value);
  2120. #endif
  2121. void set_value(const char* value);
  2122. void set_value(const char* value, size_t size);
  2123. ::std::string* mutable_value();
  2124. ::std::string* release_value();
  2125. void set_allocated_value(::std::string* value);
  2126. // int32 key = 1;
  2127. void clear_key();
  2128. static const int kKeyFieldNumber = 1;
  2129. ::google::protobuf::int32 key() const;
  2130. void set_key(::google::protobuf::int32 value);
  2131. // @@protoc_insertion_point(class_scope:google.protobuf.testing.MapOutWireFormat.Map3Entry)
  2132. private:
  2133. ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
  2134. ::google::protobuf::internal::ArenaStringPtr value_;
  2135. ::google::protobuf::int32 key_;
  2136. mutable ::google::protobuf::internal::CachedSize _cached_size_;
  2137. friend struct ::protobuf_google_2fprotobuf_2futil_2finternal_2ftestdata_2fmaps_2eproto::TableStruct;
  2138. };
  2139. // -------------------------------------------------------------------
  2140. class MapOutWireFormat_Map4Entry : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:google.protobuf.testing.MapOutWireFormat.Map4Entry) */ {
  2141. public:
  2142. MapOutWireFormat_Map4Entry();
  2143. virtual ~MapOutWireFormat_Map4Entry();
  2144. MapOutWireFormat_Map4Entry(const MapOutWireFormat_Map4Entry& from);
  2145. inline MapOutWireFormat_Map4Entry& operator=(const MapOutWireFormat_Map4Entry& from) {
  2146. CopyFrom(from);
  2147. return *this;
  2148. }
  2149. #if LANG_CXX11
  2150. MapOutWireFormat_Map4Entry(MapOutWireFormat_Map4Entry&& from) noexcept
  2151. : MapOutWireFormat_Map4Entry() {
  2152. *this = ::std::move(from);
  2153. }
  2154. inline MapOutWireFormat_Map4Entry& operator=(MapOutWireFormat_Map4Entry&& from) noexcept {
  2155. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  2156. if (this != &from) InternalSwap(&from);
  2157. } else {
  2158. CopyFrom(from);
  2159. }
  2160. return *this;
  2161. }
  2162. #endif
  2163. static const ::google::protobuf::Descriptor* descriptor();
  2164. static const MapOutWireFormat_Map4Entry& default_instance();
  2165. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  2166. static inline const MapOutWireFormat_Map4Entry* internal_default_instance() {
  2167. return reinterpret_cast<const MapOutWireFormat_Map4Entry*>(
  2168. &_MapOutWireFormat_Map4Entry_default_instance_);
  2169. }
  2170. static constexpr int kIndexInFileMessages =
  2171. 27;
  2172. void Swap(MapOutWireFormat_Map4Entry* other);
  2173. friend void swap(MapOutWireFormat_Map4Entry& a, MapOutWireFormat_Map4Entry& b) {
  2174. a.Swap(&b);
  2175. }
  2176. // implements Message ----------------------------------------------
  2177. inline MapOutWireFormat_Map4Entry* New() const final {
  2178. return CreateMaybeMessage<MapOutWireFormat_Map4Entry>(NULL);
  2179. }
  2180. MapOutWireFormat_Map4Entry* New(::google::protobuf::Arena* arena) const final {
  2181. return CreateMaybeMessage<MapOutWireFormat_Map4Entry>(arena);
  2182. }
  2183. void CopyFrom(const ::google::protobuf::Message& from) final;
  2184. void MergeFrom(const ::google::protobuf::Message& from) final;
  2185. void CopyFrom(const MapOutWireFormat_Map4Entry& from);
  2186. void MergeFrom(const MapOutWireFormat_Map4Entry& from);
  2187. void Clear() final;
  2188. bool IsInitialized() const final;
  2189. size_t ByteSizeLong() const final;
  2190. bool MergePartialFromCodedStream(
  2191. ::google::protobuf::io::CodedInputStream* input) final;
  2192. void SerializeWithCachedSizes(
  2193. ::google::protobuf::io::CodedOutputStream* output) const final;
  2194. ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
  2195. bool deterministic, ::google::protobuf::uint8* target) const final;
  2196. int GetCachedSize() const final { return _cached_size_.Get(); }
  2197. private:
  2198. void SharedCtor();
  2199. void SharedDtor();
  2200. void SetCachedSize(int size) const final;
  2201. void InternalSwap(MapOutWireFormat_Map4Entry* other);
  2202. private:
  2203. inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
  2204. return NULL;
  2205. }
  2206. inline void* MaybeArenaPtr() const {
  2207. return NULL;
  2208. }
  2209. public:
  2210. ::google::protobuf::Metadata GetMetadata() const final;
  2211. // nested types ----------------------------------------------------
  2212. // accessors -------------------------------------------------------
  2213. // string value = 2;
  2214. void clear_value();
  2215. static const int kValueFieldNumber = 2;
  2216. const ::std::string& value() const;
  2217. void set_value(const ::std::string& value);
  2218. #if LANG_CXX11
  2219. void set_value(::std::string&& value);
  2220. #endif
  2221. void set_value(const char* value);
  2222. void set_value(const char* value, size_t size);
  2223. ::std::string* mutable_value();
  2224. ::std::string* release_value();
  2225. void set_allocated_value(::std::string* value);
  2226. // bool key = 1;
  2227. void clear_key();
  2228. static const int kKeyFieldNumber = 1;
  2229. bool key() const;
  2230. void set_key(bool value);
  2231. // @@protoc_insertion_point(class_scope:google.protobuf.testing.MapOutWireFormat.Map4Entry)
  2232. private:
  2233. ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
  2234. ::google::protobuf::internal::ArenaStringPtr value_;
  2235. bool key_;
  2236. mutable ::google::protobuf::internal::CachedSize _cached_size_;
  2237. friend struct ::protobuf_google_2fprotobuf_2futil_2finternal_2ftestdata_2fmaps_2eproto::TableStruct;
  2238. };
  2239. // -------------------------------------------------------------------
  2240. class MapOutWireFormat : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:google.protobuf.testing.MapOutWireFormat) */ {
  2241. public:
  2242. MapOutWireFormat();
  2243. virtual ~MapOutWireFormat();
  2244. MapOutWireFormat(const MapOutWireFormat& from);
  2245. inline MapOutWireFormat& operator=(const MapOutWireFormat& from) {
  2246. CopyFrom(from);
  2247. return *this;
  2248. }
  2249. #if LANG_CXX11
  2250. MapOutWireFormat(MapOutWireFormat&& from) noexcept
  2251. : MapOutWireFormat() {
  2252. *this = ::std::move(from);
  2253. }
  2254. inline MapOutWireFormat& operator=(MapOutWireFormat&& from) noexcept {
  2255. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  2256. if (this != &from) InternalSwap(&from);
  2257. } else {
  2258. CopyFrom(from);
  2259. }
  2260. return *this;
  2261. }
  2262. #endif
  2263. static const ::google::protobuf::Descriptor* descriptor();
  2264. static const MapOutWireFormat& default_instance();
  2265. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  2266. static inline const MapOutWireFormat* internal_default_instance() {
  2267. return reinterpret_cast<const MapOutWireFormat*>(
  2268. &_MapOutWireFormat_default_instance_);
  2269. }
  2270. static constexpr int kIndexInFileMessages =
  2271. 28;
  2272. void Swap(MapOutWireFormat* other);
  2273. friend void swap(MapOutWireFormat& a, MapOutWireFormat& b) {
  2274. a.Swap(&b);
  2275. }
  2276. // implements Message ----------------------------------------------
  2277. inline MapOutWireFormat* New() const final {
  2278. return CreateMaybeMessage<MapOutWireFormat>(NULL);
  2279. }
  2280. MapOutWireFormat* New(::google::protobuf::Arena* arena) const final {
  2281. return CreateMaybeMessage<MapOutWireFormat>(arena);
  2282. }
  2283. void CopyFrom(const ::google::protobuf::Message& from) final;
  2284. void MergeFrom(const ::google::protobuf::Message& from) final;
  2285. void CopyFrom(const MapOutWireFormat& from);
  2286. void MergeFrom(const MapOutWireFormat& from);
  2287. void Clear() final;
  2288. bool IsInitialized() const final;
  2289. size_t ByteSizeLong() const final;
  2290. bool MergePartialFromCodedStream(
  2291. ::google::protobuf::io::CodedInputStream* input) final;
  2292. void SerializeWithCachedSizes(
  2293. ::google::protobuf::io::CodedOutputStream* output) const final;
  2294. ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
  2295. bool deterministic, ::google::protobuf::uint8* target) const final;
  2296. int GetCachedSize() const final { return _cached_size_.Get(); }
  2297. private:
  2298. void SharedCtor();
  2299. void SharedDtor();
  2300. void SetCachedSize(int size) const final;
  2301. void InternalSwap(MapOutWireFormat* other);
  2302. private:
  2303. inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
  2304. return NULL;
  2305. }
  2306. inline void* MaybeArenaPtr() const {
  2307. return NULL;
  2308. }
  2309. public:
  2310. ::google::protobuf::Metadata GetMetadata() const final;
  2311. // nested types ----------------------------------------------------
  2312. typedef MapOutWireFormat_Map1Entry Map1Entry;
  2313. typedef MapOutWireFormat_Map2Entry Map2Entry;
  2314. typedef MapOutWireFormat_Map3Entry Map3Entry;
  2315. typedef MapOutWireFormat_Map4Entry Map4Entry;
  2316. // accessors -------------------------------------------------------
  2317. // repeated .google.protobuf.testing.MapOutWireFormat.Map1Entry map1 = 1;
  2318. int map1_size() const;
  2319. void clear_map1();
  2320. static const int kMap1FieldNumber = 1;
  2321. ::google::protobuf::testing::MapOutWireFormat_Map1Entry* mutable_map1(int index);
  2322. ::google::protobuf::RepeatedPtrField< ::google::protobuf::testing::MapOutWireFormat_Map1Entry >*
  2323. mutable_map1();
  2324. const ::google::protobuf::testing::MapOutWireFormat_Map1Entry& map1(int index) const;
  2325. ::google::protobuf::testing::MapOutWireFormat_Map1Entry* add_map1();
  2326. const ::google::protobuf::RepeatedPtrField< ::google::protobuf::testing::MapOutWireFormat_Map1Entry >&
  2327. map1() const;
  2328. // repeated .google.protobuf.testing.MapOutWireFormat.Map2Entry map2 = 2;
  2329. int map2_size() const;
  2330. void clear_map2();
  2331. static const int kMap2FieldNumber = 2;
  2332. ::google::protobuf::testing::MapOutWireFormat_Map2Entry* mutable_map2(int index);
  2333. ::google::protobuf::RepeatedPtrField< ::google::protobuf::testing::MapOutWireFormat_Map2Entry >*
  2334. mutable_map2();
  2335. const ::google::protobuf::testing::MapOutWireFormat_Map2Entry& map2(int index) const;
  2336. ::google::protobuf::testing::MapOutWireFormat_Map2Entry* add_map2();
  2337. const ::google::protobuf::RepeatedPtrField< ::google::protobuf::testing::MapOutWireFormat_Map2Entry >&
  2338. map2() const;
  2339. // repeated .google.protobuf.testing.MapOutWireFormat.Map3Entry map3 = 3;
  2340. int map3_size() const;
  2341. void clear_map3();
  2342. static const int kMap3FieldNumber = 3;
  2343. ::google::protobuf::testing::MapOutWireFormat_Map3Entry* mutable_map3(int index);
  2344. ::google::protobuf::RepeatedPtrField< ::google::protobuf::testing::MapOutWireFormat_Map3Entry >*
  2345. mutable_map3();
  2346. const ::google::protobuf::testing::MapOutWireFormat_Map3Entry& map3(int index) const;
  2347. ::google::protobuf::testing::MapOutWireFormat_Map3Entry* add_map3();
  2348. const ::google::protobuf::RepeatedPtrField< ::google::protobuf::testing::MapOutWireFormat_Map3Entry >&
  2349. map3() const;
  2350. // repeated .google.protobuf.testing.MapOutWireFormat.Map4Entry map4 = 5;
  2351. int map4_size() const;
  2352. void clear_map4();
  2353. static const int kMap4FieldNumber = 5;
  2354. ::google::protobuf::testing::MapOutWireFormat_Map4Entry* mutable_map4(int index);
  2355. ::google::protobuf::RepeatedPtrField< ::google::protobuf::testing::MapOutWireFormat_Map4Entry >*
  2356. mutable_map4();
  2357. const ::google::protobuf::testing::MapOutWireFormat_Map4Entry& map4(int index) const;
  2358. ::google::protobuf::testing::MapOutWireFormat_Map4Entry* add_map4();
  2359. const ::google::protobuf::RepeatedPtrField< ::google::protobuf::testing::MapOutWireFormat_Map4Entry >&
  2360. map4() const;
  2361. // string bar = 4;
  2362. void clear_bar();
  2363. static const int kBarFieldNumber = 4;
  2364. const ::std::string& bar() const;
  2365. void set_bar(const ::std::string& value);
  2366. #if LANG_CXX11
  2367. void set_bar(::std::string&& value);
  2368. #endif
  2369. void set_bar(const char* value);
  2370. void set_bar(const char* value, size_t size);
  2371. ::std::string* mutable_bar();
  2372. ::std::string* release_bar();
  2373. void set_allocated_bar(::std::string* bar);
  2374. // @@protoc_insertion_point(class_scope:google.protobuf.testing.MapOutWireFormat)
  2375. private:
  2376. ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
  2377. ::google::protobuf::RepeatedPtrField< ::google::protobuf::testing::MapOutWireFormat_Map1Entry > map1_;
  2378. ::google::protobuf::RepeatedPtrField< ::google::protobuf::testing::MapOutWireFormat_Map2Entry > map2_;
  2379. ::google::protobuf::RepeatedPtrField< ::google::protobuf::testing::MapOutWireFormat_Map3Entry > map3_;
  2380. ::google::protobuf::RepeatedPtrField< ::google::protobuf::testing::MapOutWireFormat_Map4Entry > map4_;
  2381. ::google::protobuf::internal::ArenaStringPtr bar_;
  2382. mutable ::google::protobuf::internal::CachedSize _cached_size_;
  2383. friend struct ::protobuf_google_2fprotobuf_2futil_2finternal_2ftestdata_2fmaps_2eproto::TableStruct;
  2384. };
  2385. // -------------------------------------------------------------------
  2386. class MapM : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:google.protobuf.testing.MapM) */ {
  2387. public:
  2388. MapM();
  2389. virtual ~MapM();
  2390. MapM(const MapM& from);
  2391. inline MapM& operator=(const MapM& from) {
  2392. CopyFrom(from);
  2393. return *this;
  2394. }
  2395. #if LANG_CXX11
  2396. MapM(MapM&& from) noexcept
  2397. : MapM() {
  2398. *this = ::std::move(from);
  2399. }
  2400. inline MapM& operator=(MapM&& from) noexcept {
  2401. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  2402. if (this != &from) InternalSwap(&from);
  2403. } else {
  2404. CopyFrom(from);
  2405. }
  2406. return *this;
  2407. }
  2408. #endif
  2409. static const ::google::protobuf::Descriptor* descriptor();
  2410. static const MapM& default_instance();
  2411. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  2412. static inline const MapM* internal_default_instance() {
  2413. return reinterpret_cast<const MapM*>(
  2414. &_MapM_default_instance_);
  2415. }
  2416. static constexpr int kIndexInFileMessages =
  2417. 29;
  2418. void Swap(MapM* other);
  2419. friend void swap(MapM& a, MapM& b) {
  2420. a.Swap(&b);
  2421. }
  2422. // implements Message ----------------------------------------------
  2423. inline MapM* New() const final {
  2424. return CreateMaybeMessage<MapM>(NULL);
  2425. }
  2426. MapM* New(::google::protobuf::Arena* arena) const final {
  2427. return CreateMaybeMessage<MapM>(arena);
  2428. }
  2429. void CopyFrom(const ::google::protobuf::Message& from) final;
  2430. void MergeFrom(const ::google::protobuf::Message& from) final;
  2431. void CopyFrom(const MapM& from);
  2432. void MergeFrom(const MapM& from);
  2433. void Clear() final;
  2434. bool IsInitialized() const final;
  2435. size_t ByteSizeLong() const final;
  2436. bool MergePartialFromCodedStream(
  2437. ::google::protobuf::io::CodedInputStream* input) final;
  2438. void SerializeWithCachedSizes(
  2439. ::google::protobuf::io::CodedOutputStream* output) const final;
  2440. ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
  2441. bool deterministic, ::google::protobuf::uint8* target) const final;
  2442. int GetCachedSize() const final { return _cached_size_.Get(); }
  2443. private:
  2444. void SharedCtor();
  2445. void SharedDtor();
  2446. void SetCachedSize(int size) const final;
  2447. void InternalSwap(MapM* other);
  2448. private:
  2449. inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
  2450. return NULL;
  2451. }
  2452. inline void* MaybeArenaPtr() const {
  2453. return NULL;
  2454. }
  2455. public:
  2456. ::google::protobuf::Metadata GetMetadata() const final;
  2457. // nested types ----------------------------------------------------
  2458. // accessors -------------------------------------------------------
  2459. // string foo = 1;
  2460. void clear_foo();
  2461. static const int kFooFieldNumber = 1;
  2462. const ::std::string& foo() const;
  2463. void set_foo(const ::std::string& value);
  2464. #if LANG_CXX11
  2465. void set_foo(::std::string&& value);
  2466. #endif
  2467. void set_foo(const char* value);
  2468. void set_foo(const char* value, size_t size);
  2469. ::std::string* mutable_foo();
  2470. ::std::string* release_foo();
  2471. void set_allocated_foo(::std::string* foo);
  2472. // @@protoc_insertion_point(class_scope:google.protobuf.testing.MapM)
  2473. private:
  2474. ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
  2475. ::google::protobuf::internal::ArenaStringPtr foo_;
  2476. mutable ::google::protobuf::internal::CachedSize _cached_size_;
  2477. friend struct ::protobuf_google_2fprotobuf_2futil_2finternal_2ftestdata_2fmaps_2eproto::TableStruct;
  2478. };
  2479. // ===================================================================
  2480. // ===================================================================
  2481. #ifdef __GNUC__
  2482. #pragma GCC diagnostic push
  2483. #pragma GCC diagnostic ignored "-Wstrict-aliasing"
  2484. #endif // __GNUC__
  2485. // MapsTestCases
  2486. // .google.protobuf.testing.EmptyMap empty_map = 1;
  2487. inline bool MapsTestCases::has_empty_map() const {
  2488. return this != internal_default_instance() && empty_map_ != NULL;
  2489. }
  2490. inline void MapsTestCases::clear_empty_map() {
  2491. if (GetArenaNoVirtual() == NULL && empty_map_ != NULL) {
  2492. delete empty_map_;
  2493. }
  2494. empty_map_ = NULL;
  2495. }
  2496. inline const ::google::protobuf::testing::EmptyMap& MapsTestCases::_internal_empty_map() const {
  2497. return *empty_map_;
  2498. }
  2499. inline const ::google::protobuf::testing::EmptyMap& MapsTestCases::empty_map() const {
  2500. const ::google::protobuf::testing::EmptyMap* p = empty_map_;
  2501. // @@protoc_insertion_point(field_get:google.protobuf.testing.MapsTestCases.empty_map)
  2502. return p != NULL ? *p : *reinterpret_cast<const ::google::protobuf::testing::EmptyMap*>(
  2503. &::google::protobuf::testing::_EmptyMap_default_instance_);
  2504. }
  2505. inline ::google::protobuf::testing::EmptyMap* MapsTestCases::release_empty_map() {
  2506. // @@protoc_insertion_point(field_release:google.protobuf.testing.MapsTestCases.empty_map)
  2507. ::google::protobuf::testing::EmptyMap* temp = empty_map_;
  2508. empty_map_ = NULL;
  2509. return temp;
  2510. }
  2511. inline ::google::protobuf::testing::EmptyMap* MapsTestCases::mutable_empty_map() {
  2512. if (empty_map_ == NULL) {
  2513. auto* p = CreateMaybeMessage<::google::protobuf::testing::EmptyMap>(GetArenaNoVirtual());
  2514. empty_map_ = p;
  2515. }
  2516. // @@protoc_insertion_point(field_mutable:google.protobuf.testing.MapsTestCases.empty_map)
  2517. return empty_map_;
  2518. }
  2519. inline void MapsTestCases::set_allocated_empty_map(::google::protobuf::testing::EmptyMap* empty_map) {
  2520. ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
  2521. if (message_arena == NULL) {
  2522. delete empty_map_;
  2523. }
  2524. if (empty_map) {
  2525. ::google::protobuf::Arena* submessage_arena = NULL;
  2526. if (message_arena != submessage_arena) {
  2527. empty_map = ::google::protobuf::internal::GetOwnedMessage(
  2528. message_arena, empty_map, submessage_arena);
  2529. }
  2530. } else {
  2531. }
  2532. empty_map_ = empty_map;
  2533. // @@protoc_insertion_point(field_set_allocated:google.protobuf.testing.MapsTestCases.empty_map)
  2534. }
  2535. // .google.protobuf.testing.StringtoInt string_to_int = 2;
  2536. inline bool MapsTestCases::has_string_to_int() const {
  2537. return this != internal_default_instance() && string_to_int_ != NULL;
  2538. }
  2539. inline void MapsTestCases::clear_string_to_int() {
  2540. if (GetArenaNoVirtual() == NULL && string_to_int_ != NULL) {
  2541. delete string_to_int_;
  2542. }
  2543. string_to_int_ = NULL;
  2544. }
  2545. inline const ::google::protobuf::testing::StringtoInt& MapsTestCases::_internal_string_to_int() const {
  2546. return *string_to_int_;
  2547. }
  2548. inline const ::google::protobuf::testing::StringtoInt& MapsTestCases::string_to_int() const {
  2549. const ::google::protobuf::testing::StringtoInt* p = string_to_int_;
  2550. // @@protoc_insertion_point(field_get:google.protobuf.testing.MapsTestCases.string_to_int)
  2551. return p != NULL ? *p : *reinterpret_cast<const ::google::protobuf::testing::StringtoInt*>(
  2552. &::google::protobuf::testing::_StringtoInt_default_instance_);
  2553. }
  2554. inline ::google::protobuf::testing::StringtoInt* MapsTestCases::release_string_to_int() {
  2555. // @@protoc_insertion_point(field_release:google.protobuf.testing.MapsTestCases.string_to_int)
  2556. ::google::protobuf::testing::StringtoInt* temp = string_to_int_;
  2557. string_to_int_ = NULL;
  2558. return temp;
  2559. }
  2560. inline ::google::protobuf::testing::StringtoInt* MapsTestCases::mutable_string_to_int() {
  2561. if (string_to_int_ == NULL) {
  2562. auto* p = CreateMaybeMessage<::google::protobuf::testing::StringtoInt>(GetArenaNoVirtual());
  2563. string_to_int_ = p;
  2564. }
  2565. // @@protoc_insertion_point(field_mutable:google.protobuf.testing.MapsTestCases.string_to_int)
  2566. return string_to_int_;
  2567. }
  2568. inline void MapsTestCases::set_allocated_string_to_int(::google::protobuf::testing::StringtoInt* string_to_int) {
  2569. ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
  2570. if (message_arena == NULL) {
  2571. delete string_to_int_;
  2572. }
  2573. if (string_to_int) {
  2574. ::google::protobuf::Arena* submessage_arena = NULL;
  2575. if (message_arena != submessage_arena) {
  2576. string_to_int = ::google::protobuf::internal::GetOwnedMessage(
  2577. message_arena, string_to_int, submessage_arena);
  2578. }
  2579. } else {
  2580. }
  2581. string_to_int_ = string_to_int;
  2582. // @@protoc_insertion_point(field_set_allocated:google.protobuf.testing.MapsTestCases.string_to_int)
  2583. }
  2584. // .google.protobuf.testing.IntToString int_to_string = 3;
  2585. inline bool MapsTestCases::has_int_to_string() const {
  2586. return this != internal_default_instance() && int_to_string_ != NULL;
  2587. }
  2588. inline void MapsTestCases::clear_int_to_string() {
  2589. if (GetArenaNoVirtual() == NULL && int_to_string_ != NULL) {
  2590. delete int_to_string_;
  2591. }
  2592. int_to_string_ = NULL;
  2593. }
  2594. inline const ::google::protobuf::testing::IntToString& MapsTestCases::_internal_int_to_string() const {
  2595. return *int_to_string_;
  2596. }
  2597. inline const ::google::protobuf::testing::IntToString& MapsTestCases::int_to_string() const {
  2598. const ::google::protobuf::testing::IntToString* p = int_to_string_;
  2599. // @@protoc_insertion_point(field_get:google.protobuf.testing.MapsTestCases.int_to_string)
  2600. return p != NULL ? *p : *reinterpret_cast<const ::google::protobuf::testing::IntToString*>(
  2601. &::google::protobuf::testing::_IntToString_default_instance_);
  2602. }
  2603. inline ::google::protobuf::testing::IntToString* MapsTestCases::release_int_to_string() {
  2604. // @@protoc_insertion_point(field_release:google.protobuf.testing.MapsTestCases.int_to_string)
  2605. ::google::protobuf::testing::IntToString* temp = int_to_string_;
  2606. int_to_string_ = NULL;
  2607. return temp;
  2608. }
  2609. inline ::google::protobuf::testing::IntToString* MapsTestCases::mutable_int_to_string() {
  2610. if (int_to_string_ == NULL) {
  2611. auto* p = CreateMaybeMessage<::google::protobuf::testing::IntToString>(GetArenaNoVirtual());
  2612. int_to_string_ = p;
  2613. }
  2614. // @@protoc_insertion_point(field_mutable:google.protobuf.testing.MapsTestCases.int_to_string)
  2615. return int_to_string_;
  2616. }
  2617. inline void MapsTestCases::set_allocated_int_to_string(::google::protobuf::testing::IntToString* int_to_string) {
  2618. ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
  2619. if (message_arena == NULL) {
  2620. delete int_to_string_;
  2621. }
  2622. if (int_to_string) {
  2623. ::google::protobuf::Arena* submessage_arena = NULL;
  2624. if (message_arena != submessage_arena) {
  2625. int_to_string = ::google::protobuf::internal::GetOwnedMessage(
  2626. message_arena, int_to_string, submessage_arena);
  2627. }
  2628. } else {
  2629. }
  2630. int_to_string_ = int_to_string;
  2631. // @@protoc_insertion_point(field_set_allocated:google.protobuf.testing.MapsTestCases.int_to_string)
  2632. }
  2633. // .google.protobuf.testing.Mixed1 mixed1 = 4;
  2634. inline bool MapsTestCases::has_mixed1() const {
  2635. return this != internal_default_instance() && mixed1_ != NULL;
  2636. }
  2637. inline void MapsTestCases::clear_mixed1() {
  2638. if (GetArenaNoVirtual() == NULL && mixed1_ != NULL) {
  2639. delete mixed1_;
  2640. }
  2641. mixed1_ = NULL;
  2642. }
  2643. inline const ::google::protobuf::testing::Mixed1& MapsTestCases::_internal_mixed1() const {
  2644. return *mixed1_;
  2645. }
  2646. inline const ::google::protobuf::testing::Mixed1& MapsTestCases::mixed1() const {
  2647. const ::google::protobuf::testing::Mixed1* p = mixed1_;
  2648. // @@protoc_insertion_point(field_get:google.protobuf.testing.MapsTestCases.mixed1)
  2649. return p != NULL ? *p : *reinterpret_cast<const ::google::protobuf::testing::Mixed1*>(
  2650. &::google::protobuf::testing::_Mixed1_default_instance_);
  2651. }
  2652. inline ::google::protobuf::testing::Mixed1* MapsTestCases::release_mixed1() {
  2653. // @@protoc_insertion_point(field_release:google.protobuf.testing.MapsTestCases.mixed1)
  2654. ::google::protobuf::testing::Mixed1* temp = mixed1_;
  2655. mixed1_ = NULL;
  2656. return temp;
  2657. }
  2658. inline ::google::protobuf::testing::Mixed1* MapsTestCases::mutable_mixed1() {
  2659. if (mixed1_ == NULL) {
  2660. auto* p = CreateMaybeMessage<::google::protobuf::testing::Mixed1>(GetArenaNoVirtual());
  2661. mixed1_ = p;
  2662. }
  2663. // @@protoc_insertion_point(field_mutable:google.protobuf.testing.MapsTestCases.mixed1)
  2664. return mixed1_;
  2665. }
  2666. inline void MapsTestCases::set_allocated_mixed1(::google::protobuf::testing::Mixed1* mixed1) {
  2667. ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
  2668. if (message_arena == NULL) {
  2669. delete mixed1_;
  2670. }
  2671. if (mixed1) {
  2672. ::google::protobuf::Arena* submessage_arena = NULL;
  2673. if (message_arena != submessage_arena) {
  2674. mixed1 = ::google::protobuf::internal::GetOwnedMessage(
  2675. message_arena, mixed1, submessage_arena);
  2676. }
  2677. } else {
  2678. }
  2679. mixed1_ = mixed1;
  2680. // @@protoc_insertion_point(field_set_allocated:google.protobuf.testing.MapsTestCases.mixed1)
  2681. }
  2682. // .google.protobuf.testing.Mixed2 mixed2 = 5;
  2683. inline bool MapsTestCases::has_mixed2() const {
  2684. return this != internal_default_instance() && mixed2_ != NULL;
  2685. }
  2686. inline void MapsTestCases::clear_mixed2() {
  2687. if (GetArenaNoVirtual() == NULL && mixed2_ != NULL) {
  2688. delete mixed2_;
  2689. }
  2690. mixed2_ = NULL;
  2691. }
  2692. inline const ::google::protobuf::testing::Mixed2& MapsTestCases::_internal_mixed2() const {
  2693. return *mixed2_;
  2694. }
  2695. inline const ::google::protobuf::testing::Mixed2& MapsTestCases::mixed2() const {
  2696. const ::google::protobuf::testing::Mixed2* p = mixed2_;
  2697. // @@protoc_insertion_point(field_get:google.protobuf.testing.MapsTestCases.mixed2)
  2698. return p != NULL ? *p : *reinterpret_cast<const ::google::protobuf::testing::Mixed2*>(
  2699. &::google::protobuf::testing::_Mixed2_default_instance_);
  2700. }
  2701. inline ::google::protobuf::testing::Mixed2* MapsTestCases::release_mixed2() {
  2702. // @@protoc_insertion_point(field_release:google.protobuf.testing.MapsTestCases.mixed2)
  2703. ::google::protobuf::testing::Mixed2* temp = mixed2_;
  2704. mixed2_ = NULL;
  2705. return temp;
  2706. }
  2707. inline ::google::protobuf::testing::Mixed2* MapsTestCases::mutable_mixed2() {
  2708. if (mixed2_ == NULL) {
  2709. auto* p = CreateMaybeMessage<::google::protobuf::testing::Mixed2>(GetArenaNoVirtual());
  2710. mixed2_ = p;
  2711. }
  2712. // @@protoc_insertion_point(field_mutable:google.protobuf.testing.MapsTestCases.mixed2)
  2713. return mixed2_;
  2714. }
  2715. inline void MapsTestCases::set_allocated_mixed2(::google::protobuf::testing::Mixed2* mixed2) {
  2716. ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
  2717. if (message_arena == NULL) {
  2718. delete mixed2_;
  2719. }
  2720. if (mixed2) {
  2721. ::google::protobuf::Arena* submessage_arena = NULL;
  2722. if (message_arena != submessage_arena) {
  2723. mixed2 = ::google::protobuf::internal::GetOwnedMessage(
  2724. message_arena, mixed2, submessage_arena);
  2725. }
  2726. } else {
  2727. }
  2728. mixed2_ = mixed2;
  2729. // @@protoc_insertion_point(field_set_allocated:google.protobuf.testing.MapsTestCases.mixed2)
  2730. }
  2731. // .google.protobuf.testing.MapOfObjects map_of_objects = 6;
  2732. inline bool MapsTestCases::has_map_of_objects() const {
  2733. return this != internal_default_instance() && map_of_objects_ != NULL;
  2734. }
  2735. inline void MapsTestCases::clear_map_of_objects() {
  2736. if (GetArenaNoVirtual() == NULL && map_of_objects_ != NULL) {
  2737. delete map_of_objects_;
  2738. }
  2739. map_of_objects_ = NULL;
  2740. }
  2741. inline const ::google::protobuf::testing::MapOfObjects& MapsTestCases::_internal_map_of_objects() const {
  2742. return *map_of_objects_;
  2743. }
  2744. inline const ::google::protobuf::testing::MapOfObjects& MapsTestCases::map_of_objects() const {
  2745. const ::google::protobuf::testing::MapOfObjects* p = map_of_objects_;
  2746. // @@protoc_insertion_point(field_get:google.protobuf.testing.MapsTestCases.map_of_objects)
  2747. return p != NULL ? *p : *reinterpret_cast<const ::google::protobuf::testing::MapOfObjects*>(
  2748. &::google::protobuf::testing::_MapOfObjects_default_instance_);
  2749. }
  2750. inline ::google::protobuf::testing::MapOfObjects* MapsTestCases::release_map_of_objects() {
  2751. // @@protoc_insertion_point(field_release:google.protobuf.testing.MapsTestCases.map_of_objects)
  2752. ::google::protobuf::testing::MapOfObjects* temp = map_of_objects_;
  2753. map_of_objects_ = NULL;
  2754. return temp;
  2755. }
  2756. inline ::google::protobuf::testing::MapOfObjects* MapsTestCases::mutable_map_of_objects() {
  2757. if (map_of_objects_ == NULL) {
  2758. auto* p = CreateMaybeMessage<::google::protobuf::testing::MapOfObjects>(GetArenaNoVirtual());
  2759. map_of_objects_ = p;
  2760. }
  2761. // @@protoc_insertion_point(field_mutable:google.protobuf.testing.MapsTestCases.map_of_objects)
  2762. return map_of_objects_;
  2763. }
  2764. inline void MapsTestCases::set_allocated_map_of_objects(::google::protobuf::testing::MapOfObjects* map_of_objects) {
  2765. ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
  2766. if (message_arena == NULL) {
  2767. delete map_of_objects_;
  2768. }
  2769. if (map_of_objects) {
  2770. ::google::protobuf::Arena* submessage_arena = NULL;
  2771. if (message_arena != submessage_arena) {
  2772. map_of_objects = ::google::protobuf::internal::GetOwnedMessage(
  2773. message_arena, map_of_objects, submessage_arena);
  2774. }
  2775. } else {
  2776. }
  2777. map_of_objects_ = map_of_objects;
  2778. // @@protoc_insertion_point(field_set_allocated:google.protobuf.testing.MapsTestCases.map_of_objects)
  2779. }
  2780. // .google.protobuf.testing.StringtoInt empty_key_string_to_int1 = 7;
  2781. inline bool MapsTestCases::has_empty_key_string_to_int1() const {
  2782. return this != internal_default_instance() && empty_key_string_to_int1_ != NULL;
  2783. }
  2784. inline void MapsTestCases::clear_empty_key_string_to_int1() {
  2785. if (GetArenaNoVirtual() == NULL && empty_key_string_to_int1_ != NULL) {
  2786. delete empty_key_string_to_int1_;
  2787. }
  2788. empty_key_string_to_int1_ = NULL;
  2789. }
  2790. inline const ::google::protobuf::testing::StringtoInt& MapsTestCases::_internal_empty_key_string_to_int1() const {
  2791. return *empty_key_string_to_int1_;
  2792. }
  2793. inline const ::google::protobuf::testing::StringtoInt& MapsTestCases::empty_key_string_to_int1() const {
  2794. const ::google::protobuf::testing::StringtoInt* p = empty_key_string_to_int1_;
  2795. // @@protoc_insertion_point(field_get:google.protobuf.testing.MapsTestCases.empty_key_string_to_int1)
  2796. return p != NULL ? *p : *reinterpret_cast<const ::google::protobuf::testing::StringtoInt*>(
  2797. &::google::protobuf::testing::_StringtoInt_default_instance_);
  2798. }
  2799. inline ::google::protobuf::testing::StringtoInt* MapsTestCases::release_empty_key_string_to_int1() {
  2800. // @@protoc_insertion_point(field_release:google.protobuf.testing.MapsTestCases.empty_key_string_to_int1)
  2801. ::google::protobuf::testing::StringtoInt* temp = empty_key_string_to_int1_;
  2802. empty_key_string_to_int1_ = NULL;
  2803. return temp;
  2804. }
  2805. inline ::google::protobuf::testing::StringtoInt* MapsTestCases::mutable_empty_key_string_to_int1() {
  2806. if (empty_key_string_to_int1_ == NULL) {
  2807. auto* p = CreateMaybeMessage<::google::protobuf::testing::StringtoInt>(GetArenaNoVirtual());
  2808. empty_key_string_to_int1_ = p;
  2809. }
  2810. // @@protoc_insertion_point(field_mutable:google.protobuf.testing.MapsTestCases.empty_key_string_to_int1)
  2811. return empty_key_string_to_int1_;
  2812. }
  2813. inline void MapsTestCases::set_allocated_empty_key_string_to_int1(::google::protobuf::testing::StringtoInt* empty_key_string_to_int1) {
  2814. ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
  2815. if (message_arena == NULL) {
  2816. delete empty_key_string_to_int1_;
  2817. }
  2818. if (empty_key_string_to_int1) {
  2819. ::google::protobuf::Arena* submessage_arena = NULL;
  2820. if (message_arena != submessage_arena) {
  2821. empty_key_string_to_int1 = ::google::protobuf::internal::GetOwnedMessage(
  2822. message_arena, empty_key_string_to_int1, submessage_arena);
  2823. }
  2824. } else {
  2825. }
  2826. empty_key_string_to_int1_ = empty_key_string_to_int1;
  2827. // @@protoc_insertion_point(field_set_allocated:google.protobuf.testing.MapsTestCases.empty_key_string_to_int1)
  2828. }
  2829. // .google.protobuf.testing.StringtoInt empty_key_string_to_int2 = 8;
  2830. inline bool MapsTestCases::has_empty_key_string_to_int2() const {
  2831. return this != internal_default_instance() && empty_key_string_to_int2_ != NULL;
  2832. }
  2833. inline void MapsTestCases::clear_empty_key_string_to_int2() {
  2834. if (GetArenaNoVirtual() == NULL && empty_key_string_to_int2_ != NULL) {
  2835. delete empty_key_string_to_int2_;
  2836. }
  2837. empty_key_string_to_int2_ = NULL;
  2838. }
  2839. inline const ::google::protobuf::testing::StringtoInt& MapsTestCases::_internal_empty_key_string_to_int2() const {
  2840. return *empty_key_string_to_int2_;
  2841. }
  2842. inline const ::google::protobuf::testing::StringtoInt& MapsTestCases::empty_key_string_to_int2() const {
  2843. const ::google::protobuf::testing::StringtoInt* p = empty_key_string_to_int2_;
  2844. // @@protoc_insertion_point(field_get:google.protobuf.testing.MapsTestCases.empty_key_string_to_int2)
  2845. return p != NULL ? *p : *reinterpret_cast<const ::google::protobuf::testing::StringtoInt*>(
  2846. &::google::protobuf::testing::_StringtoInt_default_instance_);
  2847. }
  2848. inline ::google::protobuf::testing::StringtoInt* MapsTestCases::release_empty_key_string_to_int2() {
  2849. // @@protoc_insertion_point(field_release:google.protobuf.testing.MapsTestCases.empty_key_string_to_int2)
  2850. ::google::protobuf::testing::StringtoInt* temp = empty_key_string_to_int2_;
  2851. empty_key_string_to_int2_ = NULL;
  2852. return temp;
  2853. }
  2854. inline ::google::protobuf::testing::StringtoInt* MapsTestCases::mutable_empty_key_string_to_int2() {
  2855. if (empty_key_string_to_int2_ == NULL) {
  2856. auto* p = CreateMaybeMessage<::google::protobuf::testing::StringtoInt>(GetArenaNoVirtual());
  2857. empty_key_string_to_int2_ = p;
  2858. }
  2859. // @@protoc_insertion_point(field_mutable:google.protobuf.testing.MapsTestCases.empty_key_string_to_int2)
  2860. return empty_key_string_to_int2_;
  2861. }
  2862. inline void MapsTestCases::set_allocated_empty_key_string_to_int2(::google::protobuf::testing::StringtoInt* empty_key_string_to_int2) {
  2863. ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
  2864. if (message_arena == NULL) {
  2865. delete empty_key_string_to_int2_;
  2866. }
  2867. if (empty_key_string_to_int2) {
  2868. ::google::protobuf::Arena* submessage_arena = NULL;
  2869. if (message_arena != submessage_arena) {
  2870. empty_key_string_to_int2 = ::google::protobuf::internal::GetOwnedMessage(
  2871. message_arena, empty_key_string_to_int2, submessage_arena);
  2872. }
  2873. } else {
  2874. }
  2875. empty_key_string_to_int2_ = empty_key_string_to_int2;
  2876. // @@protoc_insertion_point(field_set_allocated:google.protobuf.testing.MapsTestCases.empty_key_string_to_int2)
  2877. }
  2878. // .google.protobuf.testing.StringtoInt empty_key_string_to_int3 = 9;
  2879. inline bool MapsTestCases::has_empty_key_string_to_int3() const {
  2880. return this != internal_default_instance() && empty_key_string_to_int3_ != NULL;
  2881. }
  2882. inline void MapsTestCases::clear_empty_key_string_to_int3() {
  2883. if (GetArenaNoVirtual() == NULL && empty_key_string_to_int3_ != NULL) {
  2884. delete empty_key_string_to_int3_;
  2885. }
  2886. empty_key_string_to_int3_ = NULL;
  2887. }
  2888. inline const ::google::protobuf::testing::StringtoInt& MapsTestCases::_internal_empty_key_string_to_int3() const {
  2889. return *empty_key_string_to_int3_;
  2890. }
  2891. inline const ::google::protobuf::testing::StringtoInt& MapsTestCases::empty_key_string_to_int3() const {
  2892. const ::google::protobuf::testing::StringtoInt* p = empty_key_string_to_int3_;
  2893. // @@protoc_insertion_point(field_get:google.protobuf.testing.MapsTestCases.empty_key_string_to_int3)
  2894. return p != NULL ? *p : *reinterpret_cast<const ::google::protobuf::testing::StringtoInt*>(
  2895. &::google::protobuf::testing::_StringtoInt_default_instance_);
  2896. }
  2897. inline ::google::protobuf::testing::StringtoInt* MapsTestCases::release_empty_key_string_to_int3() {
  2898. // @@protoc_insertion_point(field_release:google.protobuf.testing.MapsTestCases.empty_key_string_to_int3)
  2899. ::google::protobuf::testing::StringtoInt* temp = empty_key_string_to_int3_;
  2900. empty_key_string_to_int3_ = NULL;
  2901. return temp;
  2902. }
  2903. inline ::google::protobuf::testing::StringtoInt* MapsTestCases::mutable_empty_key_string_to_int3() {
  2904. if (empty_key_string_to_int3_ == NULL) {
  2905. auto* p = CreateMaybeMessage<::google::protobuf::testing::StringtoInt>(GetArenaNoVirtual());
  2906. empty_key_string_to_int3_ = p;
  2907. }
  2908. // @@protoc_insertion_point(field_mutable:google.protobuf.testing.MapsTestCases.empty_key_string_to_int3)
  2909. return empty_key_string_to_int3_;
  2910. }
  2911. inline void MapsTestCases::set_allocated_empty_key_string_to_int3(::google::protobuf::testing::StringtoInt* empty_key_string_to_int3) {
  2912. ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
  2913. if (message_arena == NULL) {
  2914. delete empty_key_string_to_int3_;
  2915. }
  2916. if (empty_key_string_to_int3) {
  2917. ::google::protobuf::Arena* submessage_arena = NULL;
  2918. if (message_arena != submessage_arena) {
  2919. empty_key_string_to_int3 = ::google::protobuf::internal::GetOwnedMessage(
  2920. message_arena, empty_key_string_to_int3, submessage_arena);
  2921. }
  2922. } else {
  2923. }
  2924. empty_key_string_to_int3_ = empty_key_string_to_int3;
  2925. // @@protoc_insertion_point(field_set_allocated:google.protobuf.testing.MapsTestCases.empty_key_string_to_int3)
  2926. }
  2927. // .google.protobuf.testing.BoolToString empty_key_bool_to_string = 10;
  2928. inline bool MapsTestCases::has_empty_key_bool_to_string() const {
  2929. return this != internal_default_instance() && empty_key_bool_to_string_ != NULL;
  2930. }
  2931. inline void MapsTestCases::clear_empty_key_bool_to_string() {
  2932. if (GetArenaNoVirtual() == NULL && empty_key_bool_to_string_ != NULL) {
  2933. delete empty_key_bool_to_string_;
  2934. }
  2935. empty_key_bool_to_string_ = NULL;
  2936. }
  2937. inline const ::google::protobuf::testing::BoolToString& MapsTestCases::_internal_empty_key_bool_to_string() const {
  2938. return *empty_key_bool_to_string_;
  2939. }
  2940. inline const ::google::protobuf::testing::BoolToString& MapsTestCases::empty_key_bool_to_string() const {
  2941. const ::google::protobuf::testing::BoolToString* p = empty_key_bool_to_string_;
  2942. // @@protoc_insertion_point(field_get:google.protobuf.testing.MapsTestCases.empty_key_bool_to_string)
  2943. return p != NULL ? *p : *reinterpret_cast<const ::google::protobuf::testing::BoolToString*>(
  2944. &::google::protobuf::testing::_BoolToString_default_instance_);
  2945. }
  2946. inline ::google::protobuf::testing::BoolToString* MapsTestCases::release_empty_key_bool_to_string() {
  2947. // @@protoc_insertion_point(field_release:google.protobuf.testing.MapsTestCases.empty_key_bool_to_string)
  2948. ::google::protobuf::testing::BoolToString* temp = empty_key_bool_to_string_;
  2949. empty_key_bool_to_string_ = NULL;
  2950. return temp;
  2951. }
  2952. inline ::google::protobuf::testing::BoolToString* MapsTestCases::mutable_empty_key_bool_to_string() {
  2953. if (empty_key_bool_to_string_ == NULL) {
  2954. auto* p = CreateMaybeMessage<::google::protobuf::testing::BoolToString>(GetArenaNoVirtual());
  2955. empty_key_bool_to_string_ = p;
  2956. }
  2957. // @@protoc_insertion_point(field_mutable:google.protobuf.testing.MapsTestCases.empty_key_bool_to_string)
  2958. return empty_key_bool_to_string_;
  2959. }
  2960. inline void MapsTestCases::set_allocated_empty_key_bool_to_string(::google::protobuf::testing::BoolToString* empty_key_bool_to_string) {
  2961. ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
  2962. if (message_arena == NULL) {
  2963. delete empty_key_bool_to_string_;
  2964. }
  2965. if (empty_key_bool_to_string) {
  2966. ::google::protobuf::Arena* submessage_arena = NULL;
  2967. if (message_arena != submessage_arena) {
  2968. empty_key_bool_to_string = ::google::protobuf::internal::GetOwnedMessage(
  2969. message_arena, empty_key_bool_to_string, submessage_arena);
  2970. }
  2971. } else {
  2972. }
  2973. empty_key_bool_to_string_ = empty_key_bool_to_string;
  2974. // @@protoc_insertion_point(field_set_allocated:google.protobuf.testing.MapsTestCases.empty_key_bool_to_string)
  2975. }
  2976. // .google.protobuf.testing.IntToString empty_key_int_to_string = 11;
  2977. inline bool MapsTestCases::has_empty_key_int_to_string() const {
  2978. return this != internal_default_instance() && empty_key_int_to_string_ != NULL;
  2979. }
  2980. inline void MapsTestCases::clear_empty_key_int_to_string() {
  2981. if (GetArenaNoVirtual() == NULL && empty_key_int_to_string_ != NULL) {
  2982. delete empty_key_int_to_string_;
  2983. }
  2984. empty_key_int_to_string_ = NULL;
  2985. }
  2986. inline const ::google::protobuf::testing::IntToString& MapsTestCases::_internal_empty_key_int_to_string() const {
  2987. return *empty_key_int_to_string_;
  2988. }
  2989. inline const ::google::protobuf::testing::IntToString& MapsTestCases::empty_key_int_to_string() const {
  2990. const ::google::protobuf::testing::IntToString* p = empty_key_int_to_string_;
  2991. // @@protoc_insertion_point(field_get:google.protobuf.testing.MapsTestCases.empty_key_int_to_string)
  2992. return p != NULL ? *p : *reinterpret_cast<const ::google::protobuf::testing::IntToString*>(
  2993. &::google::protobuf::testing::_IntToString_default_instance_);
  2994. }
  2995. inline ::google::protobuf::testing::IntToString* MapsTestCases::release_empty_key_int_to_string() {
  2996. // @@protoc_insertion_point(field_release:google.protobuf.testing.MapsTestCases.empty_key_int_to_string)
  2997. ::google::protobuf::testing::IntToString* temp = empty_key_int_to_string_;
  2998. empty_key_int_to_string_ = NULL;
  2999. return temp;
  3000. }
  3001. inline ::google::protobuf::testing::IntToString* MapsTestCases::mutable_empty_key_int_to_string() {
  3002. if (empty_key_int_to_string_ == NULL) {
  3003. auto* p = CreateMaybeMessage<::google::protobuf::testing::IntToString>(GetArenaNoVirtual());
  3004. empty_key_int_to_string_ = p;
  3005. }
  3006. // @@protoc_insertion_point(field_mutable:google.protobuf.testing.MapsTestCases.empty_key_int_to_string)
  3007. return empty_key_int_to_string_;
  3008. }
  3009. inline void MapsTestCases::set_allocated_empty_key_int_to_string(::google::protobuf::testing::IntToString* empty_key_int_to_string) {
  3010. ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
  3011. if (message_arena == NULL) {
  3012. delete empty_key_int_to_string_;
  3013. }
  3014. if (empty_key_int_to_string) {
  3015. ::google::protobuf::Arena* submessage_arena = NULL;
  3016. if (message_arena != submessage_arena) {
  3017. empty_key_int_to_string = ::google::protobuf::internal::GetOwnedMessage(
  3018. message_arena, empty_key_int_to_string, submessage_arena);
  3019. }
  3020. } else {
  3021. }
  3022. empty_key_int_to_string_ = empty_key_int_to_string;
  3023. // @@protoc_insertion_point(field_set_allocated:google.protobuf.testing.MapsTestCases.empty_key_int_to_string)
  3024. }
  3025. // .google.protobuf.testing.Mixed1 empty_key_mixed = 12;
  3026. inline bool MapsTestCases::has_empty_key_mixed() const {
  3027. return this != internal_default_instance() && empty_key_mixed_ != NULL;
  3028. }
  3029. inline void MapsTestCases::clear_empty_key_mixed() {
  3030. if (GetArenaNoVirtual() == NULL && empty_key_mixed_ != NULL) {
  3031. delete empty_key_mixed_;
  3032. }
  3033. empty_key_mixed_ = NULL;
  3034. }
  3035. inline const ::google::protobuf::testing::Mixed1& MapsTestCases::_internal_empty_key_mixed() const {
  3036. return *empty_key_mixed_;
  3037. }
  3038. inline const ::google::protobuf::testing::Mixed1& MapsTestCases::empty_key_mixed() const {
  3039. const ::google::protobuf::testing::Mixed1* p = empty_key_mixed_;
  3040. // @@protoc_insertion_point(field_get:google.protobuf.testing.MapsTestCases.empty_key_mixed)
  3041. return p != NULL ? *p : *reinterpret_cast<const ::google::protobuf::testing::Mixed1*>(
  3042. &::google::protobuf::testing::_Mixed1_default_instance_);
  3043. }
  3044. inline ::google::protobuf::testing::Mixed1* MapsTestCases::release_empty_key_mixed() {
  3045. // @@protoc_insertion_point(field_release:google.protobuf.testing.MapsTestCases.empty_key_mixed)
  3046. ::google::protobuf::testing::Mixed1* temp = empty_key_mixed_;
  3047. empty_key_mixed_ = NULL;
  3048. return temp;
  3049. }
  3050. inline ::google::protobuf::testing::Mixed1* MapsTestCases::mutable_empty_key_mixed() {
  3051. if (empty_key_mixed_ == NULL) {
  3052. auto* p = CreateMaybeMessage<::google::protobuf::testing::Mixed1>(GetArenaNoVirtual());
  3053. empty_key_mixed_ = p;
  3054. }
  3055. // @@protoc_insertion_point(field_mutable:google.protobuf.testing.MapsTestCases.empty_key_mixed)
  3056. return empty_key_mixed_;
  3057. }
  3058. inline void MapsTestCases::set_allocated_empty_key_mixed(::google::protobuf::testing::Mixed1* empty_key_mixed) {
  3059. ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
  3060. if (message_arena == NULL) {
  3061. delete empty_key_mixed_;
  3062. }
  3063. if (empty_key_mixed) {
  3064. ::google::protobuf::Arena* submessage_arena = NULL;
  3065. if (message_arena != submessage_arena) {
  3066. empty_key_mixed = ::google::protobuf::internal::GetOwnedMessage(
  3067. message_arena, empty_key_mixed, submessage_arena);
  3068. }
  3069. } else {
  3070. }
  3071. empty_key_mixed_ = empty_key_mixed;
  3072. // @@protoc_insertion_point(field_set_allocated:google.protobuf.testing.MapsTestCases.empty_key_mixed)
  3073. }
  3074. // .google.protobuf.testing.MapOfObjects empty_key_map_objects = 13;
  3075. inline bool MapsTestCases::has_empty_key_map_objects() const {
  3076. return this != internal_default_instance() && empty_key_map_objects_ != NULL;
  3077. }
  3078. inline void MapsTestCases::clear_empty_key_map_objects() {
  3079. if (GetArenaNoVirtual() == NULL && empty_key_map_objects_ != NULL) {
  3080. delete empty_key_map_objects_;
  3081. }
  3082. empty_key_map_objects_ = NULL;
  3083. }
  3084. inline const ::google::protobuf::testing::MapOfObjects& MapsTestCases::_internal_empty_key_map_objects() const {
  3085. return *empty_key_map_objects_;
  3086. }
  3087. inline const ::google::protobuf::testing::MapOfObjects& MapsTestCases::empty_key_map_objects() const {
  3088. const ::google::protobuf::testing::MapOfObjects* p = empty_key_map_objects_;
  3089. // @@protoc_insertion_point(field_get:google.protobuf.testing.MapsTestCases.empty_key_map_objects)
  3090. return p != NULL ? *p : *reinterpret_cast<const ::google::protobuf::testing::MapOfObjects*>(
  3091. &::google::protobuf::testing::_MapOfObjects_default_instance_);
  3092. }
  3093. inline ::google::protobuf::testing::MapOfObjects* MapsTestCases::release_empty_key_map_objects() {
  3094. // @@protoc_insertion_point(field_release:google.protobuf.testing.MapsTestCases.empty_key_map_objects)
  3095. ::google::protobuf::testing::MapOfObjects* temp = empty_key_map_objects_;
  3096. empty_key_map_objects_ = NULL;
  3097. return temp;
  3098. }
  3099. inline ::google::protobuf::testing::MapOfObjects* MapsTestCases::mutable_empty_key_map_objects() {
  3100. if (empty_key_map_objects_ == NULL) {
  3101. auto* p = CreateMaybeMessage<::google::protobuf::testing::MapOfObjects>(GetArenaNoVirtual());
  3102. empty_key_map_objects_ = p;
  3103. }
  3104. // @@protoc_insertion_point(field_mutable:google.protobuf.testing.MapsTestCases.empty_key_map_objects)
  3105. return empty_key_map_objects_;
  3106. }
  3107. inline void MapsTestCases::set_allocated_empty_key_map_objects(::google::protobuf::testing::MapOfObjects* empty_key_map_objects) {
  3108. ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
  3109. if (message_arena == NULL) {
  3110. delete empty_key_map_objects_;
  3111. }
  3112. if (empty_key_map_objects) {
  3113. ::google::protobuf::Arena* submessage_arena = NULL;
  3114. if (message_arena != submessage_arena) {
  3115. empty_key_map_objects = ::google::protobuf::internal::GetOwnedMessage(
  3116. message_arena, empty_key_map_objects, submessage_arena);
  3117. }
  3118. } else {
  3119. }
  3120. empty_key_map_objects_ = empty_key_map_objects;
  3121. // @@protoc_insertion_point(field_set_allocated:google.protobuf.testing.MapsTestCases.empty_key_map_objects)
  3122. }
  3123. // -------------------------------------------------------------------
  3124. // -------------------------------------------------------------------
  3125. // EmptyMap
  3126. // map<int32, int32> map = 1;
  3127. inline int EmptyMap::map_size() const {
  3128. return map_.size();
  3129. }
  3130. inline void EmptyMap::clear_map() {
  3131. map_.Clear();
  3132. }
  3133. inline const ::google::protobuf::Map< ::google::protobuf::int32, ::google::protobuf::int32 >&
  3134. EmptyMap::map() const {
  3135. // @@protoc_insertion_point(field_map:google.protobuf.testing.EmptyMap.map)
  3136. return map_.GetMap();
  3137. }
  3138. inline ::google::protobuf::Map< ::google::protobuf::int32, ::google::protobuf::int32 >*
  3139. EmptyMap::mutable_map() {
  3140. // @@protoc_insertion_point(field_mutable_map:google.protobuf.testing.EmptyMap.map)
  3141. return map_.MutableMap();
  3142. }
  3143. // -------------------------------------------------------------------
  3144. // -------------------------------------------------------------------
  3145. // StringtoInt
  3146. // map<string, int32> map = 1;
  3147. inline int StringtoInt::map_size() const {
  3148. return map_.size();
  3149. }
  3150. inline void StringtoInt::clear_map() {
  3151. map_.Clear();
  3152. }
  3153. inline const ::google::protobuf::Map< ::std::string, ::google::protobuf::int32 >&
  3154. StringtoInt::map() const {
  3155. // @@protoc_insertion_point(field_map:google.protobuf.testing.StringtoInt.map)
  3156. return map_.GetMap();
  3157. }
  3158. inline ::google::protobuf::Map< ::std::string, ::google::protobuf::int32 >*
  3159. StringtoInt::mutable_map() {
  3160. // @@protoc_insertion_point(field_mutable_map:google.protobuf.testing.StringtoInt.map)
  3161. return map_.MutableMap();
  3162. }
  3163. // -------------------------------------------------------------------
  3164. // -------------------------------------------------------------------
  3165. // IntToString
  3166. // map<int32, string> map = 1;
  3167. inline int IntToString::map_size() const {
  3168. return map_.size();
  3169. }
  3170. inline void IntToString::clear_map() {
  3171. map_.Clear();
  3172. }
  3173. inline const ::google::protobuf::Map< ::google::protobuf::int32, ::std::string >&
  3174. IntToString::map() const {
  3175. // @@protoc_insertion_point(field_map:google.protobuf.testing.IntToString.map)
  3176. return map_.GetMap();
  3177. }
  3178. inline ::google::protobuf::Map< ::google::protobuf::int32, ::std::string >*
  3179. IntToString::mutable_map() {
  3180. // @@protoc_insertion_point(field_mutable_map:google.protobuf.testing.IntToString.map)
  3181. return map_.MutableMap();
  3182. }
  3183. // -------------------------------------------------------------------
  3184. // -------------------------------------------------------------------
  3185. // BoolToString
  3186. // map<bool, string> map = 1;
  3187. inline int BoolToString::map_size() const {
  3188. return map_.size();
  3189. }
  3190. inline void BoolToString::clear_map() {
  3191. map_.Clear();
  3192. }
  3193. inline const ::google::protobuf::Map< bool, ::std::string >&
  3194. BoolToString::map() const {
  3195. // @@protoc_insertion_point(field_map:google.protobuf.testing.BoolToString.map)
  3196. return map_.GetMap();
  3197. }
  3198. inline ::google::protobuf::Map< bool, ::std::string >*
  3199. BoolToString::mutable_map() {
  3200. // @@protoc_insertion_point(field_mutable_map:google.protobuf.testing.BoolToString.map)
  3201. return map_.MutableMap();
  3202. }
  3203. // -------------------------------------------------------------------
  3204. // -------------------------------------------------------------------
  3205. // Mixed1
  3206. // string msg = 1;
  3207. inline void Mixed1::clear_msg() {
  3208. msg_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  3209. }
  3210. inline const ::std::string& Mixed1::msg() const {
  3211. // @@protoc_insertion_point(field_get:google.protobuf.testing.Mixed1.msg)
  3212. return msg_.GetNoArena();
  3213. }
  3214. inline void Mixed1::set_msg(const ::std::string& value) {
  3215. msg_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
  3216. // @@protoc_insertion_point(field_set:google.protobuf.testing.Mixed1.msg)
  3217. }
  3218. #if LANG_CXX11
  3219. inline void Mixed1::set_msg(::std::string&& value) {
  3220. msg_.SetNoArena(
  3221. &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
  3222. // @@protoc_insertion_point(field_set_rvalue:google.protobuf.testing.Mixed1.msg)
  3223. }
  3224. #endif
  3225. inline void Mixed1::set_msg(const char* value) {
  3226. GOOGLE_DCHECK(value != NULL);
  3227. msg_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
  3228. // @@protoc_insertion_point(field_set_char:google.protobuf.testing.Mixed1.msg)
  3229. }
  3230. inline void Mixed1::set_msg(const char* value, size_t size) {
  3231. msg_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  3232. ::std::string(reinterpret_cast<const char*>(value), size));
  3233. // @@protoc_insertion_point(field_set_pointer:google.protobuf.testing.Mixed1.msg)
  3234. }
  3235. inline ::std::string* Mixed1::mutable_msg() {
  3236. // @@protoc_insertion_point(field_mutable:google.protobuf.testing.Mixed1.msg)
  3237. return msg_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  3238. }
  3239. inline ::std::string* Mixed1::release_msg() {
  3240. // @@protoc_insertion_point(field_release:google.protobuf.testing.Mixed1.msg)
  3241. return msg_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  3242. }
  3243. inline void Mixed1::set_allocated_msg(::std::string* msg) {
  3244. if (msg != NULL) {
  3245. } else {
  3246. }
  3247. msg_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), msg);
  3248. // @@protoc_insertion_point(field_set_allocated:google.protobuf.testing.Mixed1.msg)
  3249. }
  3250. // map<string, float> map = 2;
  3251. inline int Mixed1::map_size() const {
  3252. return map_.size();
  3253. }
  3254. inline void Mixed1::clear_map() {
  3255. map_.Clear();
  3256. }
  3257. inline const ::google::protobuf::Map< ::std::string, float >&
  3258. Mixed1::map() const {
  3259. // @@protoc_insertion_point(field_map:google.protobuf.testing.Mixed1.map)
  3260. return map_.GetMap();
  3261. }
  3262. inline ::google::protobuf::Map< ::std::string, float >*
  3263. Mixed1::mutable_map() {
  3264. // @@protoc_insertion_point(field_mutable_map:google.protobuf.testing.Mixed1.map)
  3265. return map_.MutableMap();
  3266. }
  3267. // -------------------------------------------------------------------
  3268. // -------------------------------------------------------------------
  3269. // Mixed2
  3270. // map<int32, bool> map = 1;
  3271. inline int Mixed2::map_size() const {
  3272. return map_.size();
  3273. }
  3274. inline void Mixed2::clear_map() {
  3275. map_.Clear();
  3276. }
  3277. inline const ::google::protobuf::Map< ::google::protobuf::int32, bool >&
  3278. Mixed2::map() const {
  3279. // @@protoc_insertion_point(field_map:google.protobuf.testing.Mixed2.map)
  3280. return map_.GetMap();
  3281. }
  3282. inline ::google::protobuf::Map< ::google::protobuf::int32, bool >*
  3283. Mixed2::mutable_map() {
  3284. // @@protoc_insertion_point(field_mutable_map:google.protobuf.testing.Mixed2.map)
  3285. return map_.MutableMap();
  3286. }
  3287. // .google.protobuf.testing.Mixed2.E ee = 2;
  3288. inline void Mixed2::clear_ee() {
  3289. ee_ = 0;
  3290. }
  3291. inline ::google::protobuf::testing::Mixed2_E Mixed2::ee() const {
  3292. // @@protoc_insertion_point(field_get:google.protobuf.testing.Mixed2.ee)
  3293. return static_cast< ::google::protobuf::testing::Mixed2_E >(ee_);
  3294. }
  3295. inline void Mixed2::set_ee(::google::protobuf::testing::Mixed2_E value) {
  3296. ee_ = value;
  3297. // @@protoc_insertion_point(field_set:google.protobuf.testing.Mixed2.ee)
  3298. }
  3299. // -------------------------------------------------------------------
  3300. // MapOfObjects_M
  3301. // string inner_text = 1;
  3302. inline void MapOfObjects_M::clear_inner_text() {
  3303. inner_text_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  3304. }
  3305. inline const ::std::string& MapOfObjects_M::inner_text() const {
  3306. // @@protoc_insertion_point(field_get:google.protobuf.testing.MapOfObjects.M.inner_text)
  3307. return inner_text_.GetNoArena();
  3308. }
  3309. inline void MapOfObjects_M::set_inner_text(const ::std::string& value) {
  3310. inner_text_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
  3311. // @@protoc_insertion_point(field_set:google.protobuf.testing.MapOfObjects.M.inner_text)
  3312. }
  3313. #if LANG_CXX11
  3314. inline void MapOfObjects_M::set_inner_text(::std::string&& value) {
  3315. inner_text_.SetNoArena(
  3316. &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
  3317. // @@protoc_insertion_point(field_set_rvalue:google.protobuf.testing.MapOfObjects.M.inner_text)
  3318. }
  3319. #endif
  3320. inline void MapOfObjects_M::set_inner_text(const char* value) {
  3321. GOOGLE_DCHECK(value != NULL);
  3322. inner_text_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
  3323. // @@protoc_insertion_point(field_set_char:google.protobuf.testing.MapOfObjects.M.inner_text)
  3324. }
  3325. inline void MapOfObjects_M::set_inner_text(const char* value, size_t size) {
  3326. inner_text_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  3327. ::std::string(reinterpret_cast<const char*>(value), size));
  3328. // @@protoc_insertion_point(field_set_pointer:google.protobuf.testing.MapOfObjects.M.inner_text)
  3329. }
  3330. inline ::std::string* MapOfObjects_M::mutable_inner_text() {
  3331. // @@protoc_insertion_point(field_mutable:google.protobuf.testing.MapOfObjects.M.inner_text)
  3332. return inner_text_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  3333. }
  3334. inline ::std::string* MapOfObjects_M::release_inner_text() {
  3335. // @@protoc_insertion_point(field_release:google.protobuf.testing.MapOfObjects.M.inner_text)
  3336. return inner_text_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  3337. }
  3338. inline void MapOfObjects_M::set_allocated_inner_text(::std::string* inner_text) {
  3339. if (inner_text != NULL) {
  3340. } else {
  3341. }
  3342. inner_text_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), inner_text);
  3343. // @@protoc_insertion_point(field_set_allocated:google.protobuf.testing.MapOfObjects.M.inner_text)
  3344. }
  3345. // -------------------------------------------------------------------
  3346. // -------------------------------------------------------------------
  3347. // MapOfObjects
  3348. // map<string, .google.protobuf.testing.MapOfObjects.M> map = 1;
  3349. inline int MapOfObjects::map_size() const {
  3350. return map_.size();
  3351. }
  3352. inline void MapOfObjects::clear_map() {
  3353. map_.Clear();
  3354. }
  3355. inline const ::google::protobuf::Map< ::std::string, ::google::protobuf::testing::MapOfObjects_M >&
  3356. MapOfObjects::map() const {
  3357. // @@protoc_insertion_point(field_map:google.protobuf.testing.MapOfObjects.map)
  3358. return map_.GetMap();
  3359. }
  3360. inline ::google::protobuf::Map< ::std::string, ::google::protobuf::testing::MapOfObjects_M >*
  3361. MapOfObjects::mutable_map() {
  3362. // @@protoc_insertion_point(field_mutable_map:google.protobuf.testing.MapOfObjects.map)
  3363. return map_.MutableMap();
  3364. }
  3365. // -------------------------------------------------------------------
  3366. // DummyRequest
  3367. // -------------------------------------------------------------------
  3368. // -------------------------------------------------------------------
  3369. // MapIn
  3370. // string other = 1;
  3371. inline void MapIn::clear_other() {
  3372. other_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  3373. }
  3374. inline const ::std::string& MapIn::other() const {
  3375. // @@protoc_insertion_point(field_get:google.protobuf.testing.MapIn.other)
  3376. return other_.GetNoArena();
  3377. }
  3378. inline void MapIn::set_other(const ::std::string& value) {
  3379. other_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
  3380. // @@protoc_insertion_point(field_set:google.protobuf.testing.MapIn.other)
  3381. }
  3382. #if LANG_CXX11
  3383. inline void MapIn::set_other(::std::string&& value) {
  3384. other_.SetNoArena(
  3385. &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
  3386. // @@protoc_insertion_point(field_set_rvalue:google.protobuf.testing.MapIn.other)
  3387. }
  3388. #endif
  3389. inline void MapIn::set_other(const char* value) {
  3390. GOOGLE_DCHECK(value != NULL);
  3391. other_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
  3392. // @@protoc_insertion_point(field_set_char:google.protobuf.testing.MapIn.other)
  3393. }
  3394. inline void MapIn::set_other(const char* value, size_t size) {
  3395. other_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  3396. ::std::string(reinterpret_cast<const char*>(value), size));
  3397. // @@protoc_insertion_point(field_set_pointer:google.protobuf.testing.MapIn.other)
  3398. }
  3399. inline ::std::string* MapIn::mutable_other() {
  3400. // @@protoc_insertion_point(field_mutable:google.protobuf.testing.MapIn.other)
  3401. return other_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  3402. }
  3403. inline ::std::string* MapIn::release_other() {
  3404. // @@protoc_insertion_point(field_release:google.protobuf.testing.MapIn.other)
  3405. return other_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  3406. }
  3407. inline void MapIn::set_allocated_other(::std::string* other) {
  3408. if (other != NULL) {
  3409. } else {
  3410. }
  3411. other_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), other);
  3412. // @@protoc_insertion_point(field_set_allocated:google.protobuf.testing.MapIn.other)
  3413. }
  3414. // repeated string things = 2;
  3415. inline int MapIn::things_size() const {
  3416. return things_.size();
  3417. }
  3418. inline void MapIn::clear_things() {
  3419. things_.Clear();
  3420. }
  3421. inline const ::std::string& MapIn::things(int index) const {
  3422. // @@protoc_insertion_point(field_get:google.protobuf.testing.MapIn.things)
  3423. return things_.Get(index);
  3424. }
  3425. inline ::std::string* MapIn::mutable_things(int index) {
  3426. // @@protoc_insertion_point(field_mutable:google.protobuf.testing.MapIn.things)
  3427. return things_.Mutable(index);
  3428. }
  3429. inline void MapIn::set_things(int index, const ::std::string& value) {
  3430. // @@protoc_insertion_point(field_set:google.protobuf.testing.MapIn.things)
  3431. things_.Mutable(index)->assign(value);
  3432. }
  3433. #if LANG_CXX11
  3434. inline void MapIn::set_things(int index, ::std::string&& value) {
  3435. // @@protoc_insertion_point(field_set:google.protobuf.testing.MapIn.things)
  3436. things_.Mutable(index)->assign(std::move(value));
  3437. }
  3438. #endif
  3439. inline void MapIn::set_things(int index, const char* value) {
  3440. GOOGLE_DCHECK(value != NULL);
  3441. things_.Mutable(index)->assign(value);
  3442. // @@protoc_insertion_point(field_set_char:google.protobuf.testing.MapIn.things)
  3443. }
  3444. inline void MapIn::set_things(int index, const char* value, size_t size) {
  3445. things_.Mutable(index)->assign(
  3446. reinterpret_cast<const char*>(value), size);
  3447. // @@protoc_insertion_point(field_set_pointer:google.protobuf.testing.MapIn.things)
  3448. }
  3449. inline ::std::string* MapIn::add_things() {
  3450. // @@protoc_insertion_point(field_add_mutable:google.protobuf.testing.MapIn.things)
  3451. return things_.Add();
  3452. }
  3453. inline void MapIn::add_things(const ::std::string& value) {
  3454. things_.Add()->assign(value);
  3455. // @@protoc_insertion_point(field_add:google.protobuf.testing.MapIn.things)
  3456. }
  3457. #if LANG_CXX11
  3458. inline void MapIn::add_things(::std::string&& value) {
  3459. things_.Add(std::move(value));
  3460. // @@protoc_insertion_point(field_add:google.protobuf.testing.MapIn.things)
  3461. }
  3462. #endif
  3463. inline void MapIn::add_things(const char* value) {
  3464. GOOGLE_DCHECK(value != NULL);
  3465. things_.Add()->assign(value);
  3466. // @@protoc_insertion_point(field_add_char:google.protobuf.testing.MapIn.things)
  3467. }
  3468. inline void MapIn::add_things(const char* value, size_t size) {
  3469. things_.Add()->assign(reinterpret_cast<const char*>(value), size);
  3470. // @@protoc_insertion_point(field_add_pointer:google.protobuf.testing.MapIn.things)
  3471. }
  3472. inline const ::google::protobuf::RepeatedPtrField< ::std::string>&
  3473. MapIn::things() const {
  3474. // @@protoc_insertion_point(field_list:google.protobuf.testing.MapIn.things)
  3475. return things_;
  3476. }
  3477. inline ::google::protobuf::RepeatedPtrField< ::std::string>*
  3478. MapIn::mutable_things() {
  3479. // @@protoc_insertion_point(field_mutable_list:google.protobuf.testing.MapIn.things)
  3480. return &things_;
  3481. }
  3482. // map<string, string> map_input = 3;
  3483. inline int MapIn::map_input_size() const {
  3484. return map_input_.size();
  3485. }
  3486. inline void MapIn::clear_map_input() {
  3487. map_input_.Clear();
  3488. }
  3489. inline const ::google::protobuf::Map< ::std::string, ::std::string >&
  3490. MapIn::map_input() const {
  3491. // @@protoc_insertion_point(field_map:google.protobuf.testing.MapIn.map_input)
  3492. return map_input_.GetMap();
  3493. }
  3494. inline ::google::protobuf::Map< ::std::string, ::std::string >*
  3495. MapIn::mutable_map_input() {
  3496. // @@protoc_insertion_point(field_mutable_map:google.protobuf.testing.MapIn.map_input)
  3497. return map_input_.MutableMap();
  3498. }
  3499. // -------------------------------------------------------------------
  3500. // -------------------------------------------------------------------
  3501. // -------------------------------------------------------------------
  3502. // -------------------------------------------------------------------
  3503. // -------------------------------------------------------------------
  3504. // MapOut
  3505. // map<string, .google.protobuf.testing.MapM> map1 = 1;
  3506. inline int MapOut::map1_size() const {
  3507. return map1_.size();
  3508. }
  3509. inline void MapOut::clear_map1() {
  3510. map1_.Clear();
  3511. }
  3512. inline const ::google::protobuf::Map< ::std::string, ::google::protobuf::testing::MapM >&
  3513. MapOut::map1() const {
  3514. // @@protoc_insertion_point(field_map:google.protobuf.testing.MapOut.map1)
  3515. return map1_.GetMap();
  3516. }
  3517. inline ::google::protobuf::Map< ::std::string, ::google::protobuf::testing::MapM >*
  3518. MapOut::mutable_map1() {
  3519. // @@protoc_insertion_point(field_mutable_map:google.protobuf.testing.MapOut.map1)
  3520. return map1_.MutableMap();
  3521. }
  3522. // map<string, .google.protobuf.testing.MapOut> map2 = 2;
  3523. inline int MapOut::map2_size() const {
  3524. return map2_.size();
  3525. }
  3526. inline void MapOut::clear_map2() {
  3527. map2_.Clear();
  3528. }
  3529. inline const ::google::protobuf::Map< ::std::string, ::google::protobuf::testing::MapOut >&
  3530. MapOut::map2() const {
  3531. // @@protoc_insertion_point(field_map:google.protobuf.testing.MapOut.map2)
  3532. return map2_.GetMap();
  3533. }
  3534. inline ::google::protobuf::Map< ::std::string, ::google::protobuf::testing::MapOut >*
  3535. MapOut::mutable_map2() {
  3536. // @@protoc_insertion_point(field_mutable_map:google.protobuf.testing.MapOut.map2)
  3537. return map2_.MutableMap();
  3538. }
  3539. // map<int32, string> map3 = 3;
  3540. inline int MapOut::map3_size() const {
  3541. return map3_.size();
  3542. }
  3543. inline void MapOut::clear_map3() {
  3544. map3_.Clear();
  3545. }
  3546. inline const ::google::protobuf::Map< ::google::protobuf::int32, ::std::string >&
  3547. MapOut::map3() const {
  3548. // @@protoc_insertion_point(field_map:google.protobuf.testing.MapOut.map3)
  3549. return map3_.GetMap();
  3550. }
  3551. inline ::google::protobuf::Map< ::google::protobuf::int32, ::std::string >*
  3552. MapOut::mutable_map3() {
  3553. // @@protoc_insertion_point(field_mutable_map:google.protobuf.testing.MapOut.map3)
  3554. return map3_.MutableMap();
  3555. }
  3556. // map<bool, string> map4 = 5;
  3557. inline int MapOut::map4_size() const {
  3558. return map4_.size();
  3559. }
  3560. inline void MapOut::clear_map4() {
  3561. map4_.Clear();
  3562. }
  3563. inline const ::google::protobuf::Map< bool, ::std::string >&
  3564. MapOut::map4() const {
  3565. // @@protoc_insertion_point(field_map:google.protobuf.testing.MapOut.map4)
  3566. return map4_.GetMap();
  3567. }
  3568. inline ::google::protobuf::Map< bool, ::std::string >*
  3569. MapOut::mutable_map4() {
  3570. // @@protoc_insertion_point(field_mutable_map:google.protobuf.testing.MapOut.map4)
  3571. return map4_.MutableMap();
  3572. }
  3573. // string bar = 4;
  3574. inline void MapOut::clear_bar() {
  3575. bar_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  3576. }
  3577. inline const ::std::string& MapOut::bar() const {
  3578. // @@protoc_insertion_point(field_get:google.protobuf.testing.MapOut.bar)
  3579. return bar_.GetNoArena();
  3580. }
  3581. inline void MapOut::set_bar(const ::std::string& value) {
  3582. bar_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
  3583. // @@protoc_insertion_point(field_set:google.protobuf.testing.MapOut.bar)
  3584. }
  3585. #if LANG_CXX11
  3586. inline void MapOut::set_bar(::std::string&& value) {
  3587. bar_.SetNoArena(
  3588. &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
  3589. // @@protoc_insertion_point(field_set_rvalue:google.protobuf.testing.MapOut.bar)
  3590. }
  3591. #endif
  3592. inline void MapOut::set_bar(const char* value) {
  3593. GOOGLE_DCHECK(value != NULL);
  3594. bar_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
  3595. // @@protoc_insertion_point(field_set_char:google.protobuf.testing.MapOut.bar)
  3596. }
  3597. inline void MapOut::set_bar(const char* value, size_t size) {
  3598. bar_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  3599. ::std::string(reinterpret_cast<const char*>(value), size));
  3600. // @@protoc_insertion_point(field_set_pointer:google.protobuf.testing.MapOut.bar)
  3601. }
  3602. inline ::std::string* MapOut::mutable_bar() {
  3603. // @@protoc_insertion_point(field_mutable:google.protobuf.testing.MapOut.bar)
  3604. return bar_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  3605. }
  3606. inline ::std::string* MapOut::release_bar() {
  3607. // @@protoc_insertion_point(field_release:google.protobuf.testing.MapOut.bar)
  3608. return bar_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  3609. }
  3610. inline void MapOut::set_allocated_bar(::std::string* bar) {
  3611. if (bar != NULL) {
  3612. } else {
  3613. }
  3614. bar_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), bar);
  3615. // @@protoc_insertion_point(field_set_allocated:google.protobuf.testing.MapOut.bar)
  3616. }
  3617. // -------------------------------------------------------------------
  3618. // MapOutWireFormat_Map1Entry
  3619. // string key = 1;
  3620. inline void MapOutWireFormat_Map1Entry::clear_key() {
  3621. key_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  3622. }
  3623. inline const ::std::string& MapOutWireFormat_Map1Entry::key() const {
  3624. // @@protoc_insertion_point(field_get:google.protobuf.testing.MapOutWireFormat.Map1Entry.key)
  3625. return key_.GetNoArena();
  3626. }
  3627. inline void MapOutWireFormat_Map1Entry::set_key(const ::std::string& value) {
  3628. key_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
  3629. // @@protoc_insertion_point(field_set:google.protobuf.testing.MapOutWireFormat.Map1Entry.key)
  3630. }
  3631. #if LANG_CXX11
  3632. inline void MapOutWireFormat_Map1Entry::set_key(::std::string&& value) {
  3633. key_.SetNoArena(
  3634. &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
  3635. // @@protoc_insertion_point(field_set_rvalue:google.protobuf.testing.MapOutWireFormat.Map1Entry.key)
  3636. }
  3637. #endif
  3638. inline void MapOutWireFormat_Map1Entry::set_key(const char* value) {
  3639. GOOGLE_DCHECK(value != NULL);
  3640. key_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
  3641. // @@protoc_insertion_point(field_set_char:google.protobuf.testing.MapOutWireFormat.Map1Entry.key)
  3642. }
  3643. inline void MapOutWireFormat_Map1Entry::set_key(const char* value, size_t size) {
  3644. key_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  3645. ::std::string(reinterpret_cast<const char*>(value), size));
  3646. // @@protoc_insertion_point(field_set_pointer:google.protobuf.testing.MapOutWireFormat.Map1Entry.key)
  3647. }
  3648. inline ::std::string* MapOutWireFormat_Map1Entry::mutable_key() {
  3649. // @@protoc_insertion_point(field_mutable:google.protobuf.testing.MapOutWireFormat.Map1Entry.key)
  3650. return key_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  3651. }
  3652. inline ::std::string* MapOutWireFormat_Map1Entry::release_key() {
  3653. // @@protoc_insertion_point(field_release:google.protobuf.testing.MapOutWireFormat.Map1Entry.key)
  3654. return key_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  3655. }
  3656. inline void MapOutWireFormat_Map1Entry::set_allocated_key(::std::string* key) {
  3657. if (key != NULL) {
  3658. } else {
  3659. }
  3660. key_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), key);
  3661. // @@protoc_insertion_point(field_set_allocated:google.protobuf.testing.MapOutWireFormat.Map1Entry.key)
  3662. }
  3663. // .google.protobuf.testing.MapM value = 2;
  3664. inline bool MapOutWireFormat_Map1Entry::has_value() const {
  3665. return this != internal_default_instance() && value_ != NULL;
  3666. }
  3667. inline void MapOutWireFormat_Map1Entry::clear_value() {
  3668. if (GetArenaNoVirtual() == NULL && value_ != NULL) {
  3669. delete value_;
  3670. }
  3671. value_ = NULL;
  3672. }
  3673. inline const ::google::protobuf::testing::MapM& MapOutWireFormat_Map1Entry::_internal_value() const {
  3674. return *value_;
  3675. }
  3676. inline const ::google::protobuf::testing::MapM& MapOutWireFormat_Map1Entry::value() const {
  3677. const ::google::protobuf::testing::MapM* p = value_;
  3678. // @@protoc_insertion_point(field_get:google.protobuf.testing.MapOutWireFormat.Map1Entry.value)
  3679. return p != NULL ? *p : *reinterpret_cast<const ::google::protobuf::testing::MapM*>(
  3680. &::google::protobuf::testing::_MapM_default_instance_);
  3681. }
  3682. inline ::google::protobuf::testing::MapM* MapOutWireFormat_Map1Entry::release_value() {
  3683. // @@protoc_insertion_point(field_release:google.protobuf.testing.MapOutWireFormat.Map1Entry.value)
  3684. ::google::protobuf::testing::MapM* temp = value_;
  3685. value_ = NULL;
  3686. return temp;
  3687. }
  3688. inline ::google::protobuf::testing::MapM* MapOutWireFormat_Map1Entry::mutable_value() {
  3689. if (value_ == NULL) {
  3690. auto* p = CreateMaybeMessage<::google::protobuf::testing::MapM>(GetArenaNoVirtual());
  3691. value_ = p;
  3692. }
  3693. // @@protoc_insertion_point(field_mutable:google.protobuf.testing.MapOutWireFormat.Map1Entry.value)
  3694. return value_;
  3695. }
  3696. inline void MapOutWireFormat_Map1Entry::set_allocated_value(::google::protobuf::testing::MapM* value) {
  3697. ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
  3698. if (message_arena == NULL) {
  3699. delete value_;
  3700. }
  3701. if (value) {
  3702. ::google::protobuf::Arena* submessage_arena = NULL;
  3703. if (message_arena != submessage_arena) {
  3704. value = ::google::protobuf::internal::GetOwnedMessage(
  3705. message_arena, value, submessage_arena);
  3706. }
  3707. } else {
  3708. }
  3709. value_ = value;
  3710. // @@protoc_insertion_point(field_set_allocated:google.protobuf.testing.MapOutWireFormat.Map1Entry.value)
  3711. }
  3712. // -------------------------------------------------------------------
  3713. // MapOutWireFormat_Map2Entry
  3714. // string key = 1;
  3715. inline void MapOutWireFormat_Map2Entry::clear_key() {
  3716. key_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  3717. }
  3718. inline const ::std::string& MapOutWireFormat_Map2Entry::key() const {
  3719. // @@protoc_insertion_point(field_get:google.protobuf.testing.MapOutWireFormat.Map2Entry.key)
  3720. return key_.GetNoArena();
  3721. }
  3722. inline void MapOutWireFormat_Map2Entry::set_key(const ::std::string& value) {
  3723. key_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
  3724. // @@protoc_insertion_point(field_set:google.protobuf.testing.MapOutWireFormat.Map2Entry.key)
  3725. }
  3726. #if LANG_CXX11
  3727. inline void MapOutWireFormat_Map2Entry::set_key(::std::string&& value) {
  3728. key_.SetNoArena(
  3729. &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
  3730. // @@protoc_insertion_point(field_set_rvalue:google.protobuf.testing.MapOutWireFormat.Map2Entry.key)
  3731. }
  3732. #endif
  3733. inline void MapOutWireFormat_Map2Entry::set_key(const char* value) {
  3734. GOOGLE_DCHECK(value != NULL);
  3735. key_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
  3736. // @@protoc_insertion_point(field_set_char:google.protobuf.testing.MapOutWireFormat.Map2Entry.key)
  3737. }
  3738. inline void MapOutWireFormat_Map2Entry::set_key(const char* value, size_t size) {
  3739. key_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  3740. ::std::string(reinterpret_cast<const char*>(value), size));
  3741. // @@protoc_insertion_point(field_set_pointer:google.protobuf.testing.MapOutWireFormat.Map2Entry.key)
  3742. }
  3743. inline ::std::string* MapOutWireFormat_Map2Entry::mutable_key() {
  3744. // @@protoc_insertion_point(field_mutable:google.protobuf.testing.MapOutWireFormat.Map2Entry.key)
  3745. return key_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  3746. }
  3747. inline ::std::string* MapOutWireFormat_Map2Entry::release_key() {
  3748. // @@protoc_insertion_point(field_release:google.protobuf.testing.MapOutWireFormat.Map2Entry.key)
  3749. return key_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  3750. }
  3751. inline void MapOutWireFormat_Map2Entry::set_allocated_key(::std::string* key) {
  3752. if (key != NULL) {
  3753. } else {
  3754. }
  3755. key_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), key);
  3756. // @@protoc_insertion_point(field_set_allocated:google.protobuf.testing.MapOutWireFormat.Map2Entry.key)
  3757. }
  3758. // .google.protobuf.testing.MapOut value = 2;
  3759. inline bool MapOutWireFormat_Map2Entry::has_value() const {
  3760. return this != internal_default_instance() && value_ != NULL;
  3761. }
  3762. inline void MapOutWireFormat_Map2Entry::clear_value() {
  3763. if (GetArenaNoVirtual() == NULL && value_ != NULL) {
  3764. delete value_;
  3765. }
  3766. value_ = NULL;
  3767. }
  3768. inline const ::google::protobuf::testing::MapOut& MapOutWireFormat_Map2Entry::_internal_value() const {
  3769. return *value_;
  3770. }
  3771. inline const ::google::protobuf::testing::MapOut& MapOutWireFormat_Map2Entry::value() const {
  3772. const ::google::protobuf::testing::MapOut* p = value_;
  3773. // @@protoc_insertion_point(field_get:google.protobuf.testing.MapOutWireFormat.Map2Entry.value)
  3774. return p != NULL ? *p : *reinterpret_cast<const ::google::protobuf::testing::MapOut*>(
  3775. &::google::protobuf::testing::_MapOut_default_instance_);
  3776. }
  3777. inline ::google::protobuf::testing::MapOut* MapOutWireFormat_Map2Entry::release_value() {
  3778. // @@protoc_insertion_point(field_release:google.protobuf.testing.MapOutWireFormat.Map2Entry.value)
  3779. ::google::protobuf::testing::MapOut* temp = value_;
  3780. value_ = NULL;
  3781. return temp;
  3782. }
  3783. inline ::google::protobuf::testing::MapOut* MapOutWireFormat_Map2Entry::mutable_value() {
  3784. if (value_ == NULL) {
  3785. auto* p = CreateMaybeMessage<::google::protobuf::testing::MapOut>(GetArenaNoVirtual());
  3786. value_ = p;
  3787. }
  3788. // @@protoc_insertion_point(field_mutable:google.protobuf.testing.MapOutWireFormat.Map2Entry.value)
  3789. return value_;
  3790. }
  3791. inline void MapOutWireFormat_Map2Entry::set_allocated_value(::google::protobuf::testing::MapOut* value) {
  3792. ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
  3793. if (message_arena == NULL) {
  3794. delete value_;
  3795. }
  3796. if (value) {
  3797. ::google::protobuf::Arena* submessage_arena = NULL;
  3798. if (message_arena != submessage_arena) {
  3799. value = ::google::protobuf::internal::GetOwnedMessage(
  3800. message_arena, value, submessage_arena);
  3801. }
  3802. } else {
  3803. }
  3804. value_ = value;
  3805. // @@protoc_insertion_point(field_set_allocated:google.protobuf.testing.MapOutWireFormat.Map2Entry.value)
  3806. }
  3807. // -------------------------------------------------------------------
  3808. // MapOutWireFormat_Map3Entry
  3809. // int32 key = 1;
  3810. inline void MapOutWireFormat_Map3Entry::clear_key() {
  3811. key_ = 0;
  3812. }
  3813. inline ::google::protobuf::int32 MapOutWireFormat_Map3Entry::key() const {
  3814. // @@protoc_insertion_point(field_get:google.protobuf.testing.MapOutWireFormat.Map3Entry.key)
  3815. return key_;
  3816. }
  3817. inline void MapOutWireFormat_Map3Entry::set_key(::google::protobuf::int32 value) {
  3818. key_ = value;
  3819. // @@protoc_insertion_point(field_set:google.protobuf.testing.MapOutWireFormat.Map3Entry.key)
  3820. }
  3821. // string value = 2;
  3822. inline void MapOutWireFormat_Map3Entry::clear_value() {
  3823. value_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  3824. }
  3825. inline const ::std::string& MapOutWireFormat_Map3Entry::value() const {
  3826. // @@protoc_insertion_point(field_get:google.protobuf.testing.MapOutWireFormat.Map3Entry.value)
  3827. return value_.GetNoArena();
  3828. }
  3829. inline void MapOutWireFormat_Map3Entry::set_value(const ::std::string& value) {
  3830. value_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
  3831. // @@protoc_insertion_point(field_set:google.protobuf.testing.MapOutWireFormat.Map3Entry.value)
  3832. }
  3833. #if LANG_CXX11
  3834. inline void MapOutWireFormat_Map3Entry::set_value(::std::string&& value) {
  3835. value_.SetNoArena(
  3836. &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
  3837. // @@protoc_insertion_point(field_set_rvalue:google.protobuf.testing.MapOutWireFormat.Map3Entry.value)
  3838. }
  3839. #endif
  3840. inline void MapOutWireFormat_Map3Entry::set_value(const char* value) {
  3841. GOOGLE_DCHECK(value != NULL);
  3842. value_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
  3843. // @@protoc_insertion_point(field_set_char:google.protobuf.testing.MapOutWireFormat.Map3Entry.value)
  3844. }
  3845. inline void MapOutWireFormat_Map3Entry::set_value(const char* value, size_t size) {
  3846. value_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  3847. ::std::string(reinterpret_cast<const char*>(value), size));
  3848. // @@protoc_insertion_point(field_set_pointer:google.protobuf.testing.MapOutWireFormat.Map3Entry.value)
  3849. }
  3850. inline ::std::string* MapOutWireFormat_Map3Entry::mutable_value() {
  3851. // @@protoc_insertion_point(field_mutable:google.protobuf.testing.MapOutWireFormat.Map3Entry.value)
  3852. return value_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  3853. }
  3854. inline ::std::string* MapOutWireFormat_Map3Entry::release_value() {
  3855. // @@protoc_insertion_point(field_release:google.protobuf.testing.MapOutWireFormat.Map3Entry.value)
  3856. return value_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  3857. }
  3858. inline void MapOutWireFormat_Map3Entry::set_allocated_value(::std::string* value) {
  3859. if (value != NULL) {
  3860. } else {
  3861. }
  3862. value_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
  3863. // @@protoc_insertion_point(field_set_allocated:google.protobuf.testing.MapOutWireFormat.Map3Entry.value)
  3864. }
  3865. // -------------------------------------------------------------------
  3866. // MapOutWireFormat_Map4Entry
  3867. // bool key = 1;
  3868. inline void MapOutWireFormat_Map4Entry::clear_key() {
  3869. key_ = false;
  3870. }
  3871. inline bool MapOutWireFormat_Map4Entry::key() const {
  3872. // @@protoc_insertion_point(field_get:google.protobuf.testing.MapOutWireFormat.Map4Entry.key)
  3873. return key_;
  3874. }
  3875. inline void MapOutWireFormat_Map4Entry::set_key(bool value) {
  3876. key_ = value;
  3877. // @@protoc_insertion_point(field_set:google.protobuf.testing.MapOutWireFormat.Map4Entry.key)
  3878. }
  3879. // string value = 2;
  3880. inline void MapOutWireFormat_Map4Entry::clear_value() {
  3881. value_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  3882. }
  3883. inline const ::std::string& MapOutWireFormat_Map4Entry::value() const {
  3884. // @@protoc_insertion_point(field_get:google.protobuf.testing.MapOutWireFormat.Map4Entry.value)
  3885. return value_.GetNoArena();
  3886. }
  3887. inline void MapOutWireFormat_Map4Entry::set_value(const ::std::string& value) {
  3888. value_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
  3889. // @@protoc_insertion_point(field_set:google.protobuf.testing.MapOutWireFormat.Map4Entry.value)
  3890. }
  3891. #if LANG_CXX11
  3892. inline void MapOutWireFormat_Map4Entry::set_value(::std::string&& value) {
  3893. value_.SetNoArena(
  3894. &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
  3895. // @@protoc_insertion_point(field_set_rvalue:google.protobuf.testing.MapOutWireFormat.Map4Entry.value)
  3896. }
  3897. #endif
  3898. inline void MapOutWireFormat_Map4Entry::set_value(const char* value) {
  3899. GOOGLE_DCHECK(value != NULL);
  3900. value_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
  3901. // @@protoc_insertion_point(field_set_char:google.protobuf.testing.MapOutWireFormat.Map4Entry.value)
  3902. }
  3903. inline void MapOutWireFormat_Map4Entry::set_value(const char* value, size_t size) {
  3904. value_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  3905. ::std::string(reinterpret_cast<const char*>(value), size));
  3906. // @@protoc_insertion_point(field_set_pointer:google.protobuf.testing.MapOutWireFormat.Map4Entry.value)
  3907. }
  3908. inline ::std::string* MapOutWireFormat_Map4Entry::mutable_value() {
  3909. // @@protoc_insertion_point(field_mutable:google.protobuf.testing.MapOutWireFormat.Map4Entry.value)
  3910. return value_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  3911. }
  3912. inline ::std::string* MapOutWireFormat_Map4Entry::release_value() {
  3913. // @@protoc_insertion_point(field_release:google.protobuf.testing.MapOutWireFormat.Map4Entry.value)
  3914. return value_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  3915. }
  3916. inline void MapOutWireFormat_Map4Entry::set_allocated_value(::std::string* value) {
  3917. if (value != NULL) {
  3918. } else {
  3919. }
  3920. value_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
  3921. // @@protoc_insertion_point(field_set_allocated:google.protobuf.testing.MapOutWireFormat.Map4Entry.value)
  3922. }
  3923. // -------------------------------------------------------------------
  3924. // MapOutWireFormat
  3925. // repeated .google.protobuf.testing.MapOutWireFormat.Map1Entry map1 = 1;
  3926. inline int MapOutWireFormat::map1_size() const {
  3927. return map1_.size();
  3928. }
  3929. inline void MapOutWireFormat::clear_map1() {
  3930. map1_.Clear();
  3931. }
  3932. inline ::google::protobuf::testing::MapOutWireFormat_Map1Entry* MapOutWireFormat::mutable_map1(int index) {
  3933. // @@protoc_insertion_point(field_mutable:google.protobuf.testing.MapOutWireFormat.map1)
  3934. return map1_.Mutable(index);
  3935. }
  3936. inline ::google::protobuf::RepeatedPtrField< ::google::protobuf::testing::MapOutWireFormat_Map1Entry >*
  3937. MapOutWireFormat::mutable_map1() {
  3938. // @@protoc_insertion_point(field_mutable_list:google.protobuf.testing.MapOutWireFormat.map1)
  3939. return &map1_;
  3940. }
  3941. inline const ::google::protobuf::testing::MapOutWireFormat_Map1Entry& MapOutWireFormat::map1(int index) const {
  3942. // @@protoc_insertion_point(field_get:google.protobuf.testing.MapOutWireFormat.map1)
  3943. return map1_.Get(index);
  3944. }
  3945. inline ::google::protobuf::testing::MapOutWireFormat_Map1Entry* MapOutWireFormat::add_map1() {
  3946. // @@protoc_insertion_point(field_add:google.protobuf.testing.MapOutWireFormat.map1)
  3947. return map1_.Add();
  3948. }
  3949. inline const ::google::protobuf::RepeatedPtrField< ::google::protobuf::testing::MapOutWireFormat_Map1Entry >&
  3950. MapOutWireFormat::map1() const {
  3951. // @@protoc_insertion_point(field_list:google.protobuf.testing.MapOutWireFormat.map1)
  3952. return map1_;
  3953. }
  3954. // repeated .google.protobuf.testing.MapOutWireFormat.Map2Entry map2 = 2;
  3955. inline int MapOutWireFormat::map2_size() const {
  3956. return map2_.size();
  3957. }
  3958. inline void MapOutWireFormat::clear_map2() {
  3959. map2_.Clear();
  3960. }
  3961. inline ::google::protobuf::testing::MapOutWireFormat_Map2Entry* MapOutWireFormat::mutable_map2(int index) {
  3962. // @@protoc_insertion_point(field_mutable:google.protobuf.testing.MapOutWireFormat.map2)
  3963. return map2_.Mutable(index);
  3964. }
  3965. inline ::google::protobuf::RepeatedPtrField< ::google::protobuf::testing::MapOutWireFormat_Map2Entry >*
  3966. MapOutWireFormat::mutable_map2() {
  3967. // @@protoc_insertion_point(field_mutable_list:google.protobuf.testing.MapOutWireFormat.map2)
  3968. return &map2_;
  3969. }
  3970. inline const ::google::protobuf::testing::MapOutWireFormat_Map2Entry& MapOutWireFormat::map2(int index) const {
  3971. // @@protoc_insertion_point(field_get:google.protobuf.testing.MapOutWireFormat.map2)
  3972. return map2_.Get(index);
  3973. }
  3974. inline ::google::protobuf::testing::MapOutWireFormat_Map2Entry* MapOutWireFormat::add_map2() {
  3975. // @@protoc_insertion_point(field_add:google.protobuf.testing.MapOutWireFormat.map2)
  3976. return map2_.Add();
  3977. }
  3978. inline const ::google::protobuf::RepeatedPtrField< ::google::protobuf::testing::MapOutWireFormat_Map2Entry >&
  3979. MapOutWireFormat::map2() const {
  3980. // @@protoc_insertion_point(field_list:google.protobuf.testing.MapOutWireFormat.map2)
  3981. return map2_;
  3982. }
  3983. // repeated .google.protobuf.testing.MapOutWireFormat.Map3Entry map3 = 3;
  3984. inline int MapOutWireFormat::map3_size() const {
  3985. return map3_.size();
  3986. }
  3987. inline void MapOutWireFormat::clear_map3() {
  3988. map3_.Clear();
  3989. }
  3990. inline ::google::protobuf::testing::MapOutWireFormat_Map3Entry* MapOutWireFormat::mutable_map3(int index) {
  3991. // @@protoc_insertion_point(field_mutable:google.protobuf.testing.MapOutWireFormat.map3)
  3992. return map3_.Mutable(index);
  3993. }
  3994. inline ::google::protobuf::RepeatedPtrField< ::google::protobuf::testing::MapOutWireFormat_Map3Entry >*
  3995. MapOutWireFormat::mutable_map3() {
  3996. // @@protoc_insertion_point(field_mutable_list:google.protobuf.testing.MapOutWireFormat.map3)
  3997. return &map3_;
  3998. }
  3999. inline const ::google::protobuf::testing::MapOutWireFormat_Map3Entry& MapOutWireFormat::map3(int index) const {
  4000. // @@protoc_insertion_point(field_get:google.protobuf.testing.MapOutWireFormat.map3)
  4001. return map3_.Get(index);
  4002. }
  4003. inline ::google::protobuf::testing::MapOutWireFormat_Map3Entry* MapOutWireFormat::add_map3() {
  4004. // @@protoc_insertion_point(field_add:google.protobuf.testing.MapOutWireFormat.map3)
  4005. return map3_.Add();
  4006. }
  4007. inline const ::google::protobuf::RepeatedPtrField< ::google::protobuf::testing::MapOutWireFormat_Map3Entry >&
  4008. MapOutWireFormat::map3() const {
  4009. // @@protoc_insertion_point(field_list:google.protobuf.testing.MapOutWireFormat.map3)
  4010. return map3_;
  4011. }
  4012. // repeated .google.protobuf.testing.MapOutWireFormat.Map4Entry map4 = 5;
  4013. inline int MapOutWireFormat::map4_size() const {
  4014. return map4_.size();
  4015. }
  4016. inline void MapOutWireFormat::clear_map4() {
  4017. map4_.Clear();
  4018. }
  4019. inline ::google::protobuf::testing::MapOutWireFormat_Map4Entry* MapOutWireFormat::mutable_map4(int index) {
  4020. // @@protoc_insertion_point(field_mutable:google.protobuf.testing.MapOutWireFormat.map4)
  4021. return map4_.Mutable(index);
  4022. }
  4023. inline ::google::protobuf::RepeatedPtrField< ::google::protobuf::testing::MapOutWireFormat_Map4Entry >*
  4024. MapOutWireFormat::mutable_map4() {
  4025. // @@protoc_insertion_point(field_mutable_list:google.protobuf.testing.MapOutWireFormat.map4)
  4026. return &map4_;
  4027. }
  4028. inline const ::google::protobuf::testing::MapOutWireFormat_Map4Entry& MapOutWireFormat::map4(int index) const {
  4029. // @@protoc_insertion_point(field_get:google.protobuf.testing.MapOutWireFormat.map4)
  4030. return map4_.Get(index);
  4031. }
  4032. inline ::google::protobuf::testing::MapOutWireFormat_Map4Entry* MapOutWireFormat::add_map4() {
  4033. // @@protoc_insertion_point(field_add:google.protobuf.testing.MapOutWireFormat.map4)
  4034. return map4_.Add();
  4035. }
  4036. inline const ::google::protobuf::RepeatedPtrField< ::google::protobuf::testing::MapOutWireFormat_Map4Entry >&
  4037. MapOutWireFormat::map4() const {
  4038. // @@protoc_insertion_point(field_list:google.protobuf.testing.MapOutWireFormat.map4)
  4039. return map4_;
  4040. }
  4041. // string bar = 4;
  4042. inline void MapOutWireFormat::clear_bar() {
  4043. bar_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  4044. }
  4045. inline const ::std::string& MapOutWireFormat::bar() const {
  4046. // @@protoc_insertion_point(field_get:google.protobuf.testing.MapOutWireFormat.bar)
  4047. return bar_.GetNoArena();
  4048. }
  4049. inline void MapOutWireFormat::set_bar(const ::std::string& value) {
  4050. bar_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
  4051. // @@protoc_insertion_point(field_set:google.protobuf.testing.MapOutWireFormat.bar)
  4052. }
  4053. #if LANG_CXX11
  4054. inline void MapOutWireFormat::set_bar(::std::string&& value) {
  4055. bar_.SetNoArena(
  4056. &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
  4057. // @@protoc_insertion_point(field_set_rvalue:google.protobuf.testing.MapOutWireFormat.bar)
  4058. }
  4059. #endif
  4060. inline void MapOutWireFormat::set_bar(const char* value) {
  4061. GOOGLE_DCHECK(value != NULL);
  4062. bar_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
  4063. // @@protoc_insertion_point(field_set_char:google.protobuf.testing.MapOutWireFormat.bar)
  4064. }
  4065. inline void MapOutWireFormat::set_bar(const char* value, size_t size) {
  4066. bar_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  4067. ::std::string(reinterpret_cast<const char*>(value), size));
  4068. // @@protoc_insertion_point(field_set_pointer:google.protobuf.testing.MapOutWireFormat.bar)
  4069. }
  4070. inline ::std::string* MapOutWireFormat::mutable_bar() {
  4071. // @@protoc_insertion_point(field_mutable:google.protobuf.testing.MapOutWireFormat.bar)
  4072. return bar_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  4073. }
  4074. inline ::std::string* MapOutWireFormat::release_bar() {
  4075. // @@protoc_insertion_point(field_release:google.protobuf.testing.MapOutWireFormat.bar)
  4076. return bar_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  4077. }
  4078. inline void MapOutWireFormat::set_allocated_bar(::std::string* bar) {
  4079. if (bar != NULL) {
  4080. } else {
  4081. }
  4082. bar_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), bar);
  4083. // @@protoc_insertion_point(field_set_allocated:google.protobuf.testing.MapOutWireFormat.bar)
  4084. }
  4085. // -------------------------------------------------------------------
  4086. // MapM
  4087. // string foo = 1;
  4088. inline void MapM::clear_foo() {
  4089. foo_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  4090. }
  4091. inline const ::std::string& MapM::foo() const {
  4092. // @@protoc_insertion_point(field_get:google.protobuf.testing.MapM.foo)
  4093. return foo_.GetNoArena();
  4094. }
  4095. inline void MapM::set_foo(const ::std::string& value) {
  4096. foo_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
  4097. // @@protoc_insertion_point(field_set:google.protobuf.testing.MapM.foo)
  4098. }
  4099. #if LANG_CXX11
  4100. inline void MapM::set_foo(::std::string&& value) {
  4101. foo_.SetNoArena(
  4102. &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
  4103. // @@protoc_insertion_point(field_set_rvalue:google.protobuf.testing.MapM.foo)
  4104. }
  4105. #endif
  4106. inline void MapM::set_foo(const char* value) {
  4107. GOOGLE_DCHECK(value != NULL);
  4108. foo_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
  4109. // @@protoc_insertion_point(field_set_char:google.protobuf.testing.MapM.foo)
  4110. }
  4111. inline void MapM::set_foo(const char* value, size_t size) {
  4112. foo_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  4113. ::std::string(reinterpret_cast<const char*>(value), size));
  4114. // @@protoc_insertion_point(field_set_pointer:google.protobuf.testing.MapM.foo)
  4115. }
  4116. inline ::std::string* MapM::mutable_foo() {
  4117. // @@protoc_insertion_point(field_mutable:google.protobuf.testing.MapM.foo)
  4118. return foo_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  4119. }
  4120. inline ::std::string* MapM::release_foo() {
  4121. // @@protoc_insertion_point(field_release:google.protobuf.testing.MapM.foo)
  4122. return foo_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  4123. }
  4124. inline void MapM::set_allocated_foo(::std::string* foo) {
  4125. if (foo != NULL) {
  4126. } else {
  4127. }
  4128. foo_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), foo);
  4129. // @@protoc_insertion_point(field_set_allocated:google.protobuf.testing.MapM.foo)
  4130. }
  4131. #ifdef __GNUC__
  4132. #pragma GCC diagnostic pop
  4133. #endif // __GNUC__
  4134. // -------------------------------------------------------------------
  4135. // -------------------------------------------------------------------
  4136. // -------------------------------------------------------------------
  4137. // -------------------------------------------------------------------
  4138. // -------------------------------------------------------------------
  4139. // -------------------------------------------------------------------
  4140. // -------------------------------------------------------------------
  4141. // -------------------------------------------------------------------
  4142. // -------------------------------------------------------------------
  4143. // -------------------------------------------------------------------
  4144. // -------------------------------------------------------------------
  4145. // -------------------------------------------------------------------
  4146. // -------------------------------------------------------------------
  4147. // -------------------------------------------------------------------
  4148. // -------------------------------------------------------------------
  4149. // -------------------------------------------------------------------
  4150. // -------------------------------------------------------------------
  4151. // -------------------------------------------------------------------
  4152. // -------------------------------------------------------------------
  4153. // -------------------------------------------------------------------
  4154. // -------------------------------------------------------------------
  4155. // -------------------------------------------------------------------
  4156. // -------------------------------------------------------------------
  4157. // -------------------------------------------------------------------
  4158. // -------------------------------------------------------------------
  4159. // -------------------------------------------------------------------
  4160. // -------------------------------------------------------------------
  4161. // -------------------------------------------------------------------
  4162. // -------------------------------------------------------------------
  4163. // @@protoc_insertion_point(namespace_scope)
  4164. } // namespace testing
  4165. } // namespace protobuf
  4166. } // namespace google
  4167. namespace google {
  4168. namespace protobuf {
  4169. template <> struct is_proto_enum< ::google::protobuf::testing::Mixed2_E> : ::std::true_type {};
  4170. template <>
  4171. inline const EnumDescriptor* GetEnumDescriptor< ::google::protobuf::testing::Mixed2_E>() {
  4172. return ::google::protobuf::testing::Mixed2_E_descriptor();
  4173. }
  4174. } // namespace protobuf
  4175. } // namespace google
  4176. // @@protoc_insertion_point(global_scope)
  4177. #endif // PROTOBUF_INCLUDED_google_2fprotobuf_2futil_2finternal_2ftestdata_2fmaps_2eproto