map_unittest.pb.h 189 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045
  1. // Generated by the protocol buffer compiler. DO NOT EDIT!
  2. // source: google/protobuf/map_unittest.proto
  3. #ifndef PROTOBUF_INCLUDED_google_2fprotobuf_2fmap_5funittest_2eproto
  4. #define PROTOBUF_INCLUDED_google_2fprotobuf_2fmap_5funittest_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. #include <google/protobuf/unittest.pb.h>
  33. #include <google/protobuf/unittest_no_arena.pb.h>
  34. // @@protoc_insertion_point(includes)
  35. #define PROTOBUF_INTERNAL_EXPORT_protobuf_google_2fprotobuf_2fmap_5funittest_2eproto
  36. namespace protobuf_google_2fprotobuf_2fmap_5funittest_2eproto {
  37. // Internal implementation detail -- do not use these members.
  38. struct TableStruct {
  39. static const ::google::protobuf::internal::ParseTableField entries[];
  40. static const ::google::protobuf::internal::AuxillaryParseTableField aux[];
  41. static const ::google::protobuf::internal::ParseTable schema[53];
  42. static const ::google::protobuf::internal::FieldMetadata field_metadata[];
  43. static const ::google::protobuf::internal::SerializationTable serialization_table[];
  44. static const ::google::protobuf::uint32 offsets[];
  45. };
  46. void AddDescriptors();
  47. } // namespace protobuf_google_2fprotobuf_2fmap_5funittest_2eproto
  48. namespace protobuf_unittest {
  49. class MessageContainingEnumCalledType;
  50. class MessageContainingEnumCalledTypeDefaultTypeInternal;
  51. extern MessageContainingEnumCalledTypeDefaultTypeInternal _MessageContainingEnumCalledType_default_instance_;
  52. class MessageContainingEnumCalledType_TypeEntry_DoNotUse;
  53. class MessageContainingEnumCalledType_TypeEntry_DoNotUseDefaultTypeInternal;
  54. extern MessageContainingEnumCalledType_TypeEntry_DoNotUseDefaultTypeInternal _MessageContainingEnumCalledType_TypeEntry_DoNotUse_default_instance_;
  55. class MessageContainingMapCalledEntry;
  56. class MessageContainingMapCalledEntryDefaultTypeInternal;
  57. extern MessageContainingMapCalledEntryDefaultTypeInternal _MessageContainingMapCalledEntry_default_instance_;
  58. class MessageContainingMapCalledEntry_EntryEntry_DoNotUse;
  59. class MessageContainingMapCalledEntry_EntryEntry_DoNotUseDefaultTypeInternal;
  60. extern MessageContainingMapCalledEntry_EntryEntry_DoNotUseDefaultTypeInternal _MessageContainingMapCalledEntry_EntryEntry_DoNotUse_default_instance_;
  61. class TestArenaMap;
  62. class TestArenaMapDefaultTypeInternal;
  63. extern TestArenaMapDefaultTypeInternal _TestArenaMap_default_instance_;
  64. class TestArenaMap_MapBoolBoolEntry_DoNotUse;
  65. class TestArenaMap_MapBoolBoolEntry_DoNotUseDefaultTypeInternal;
  66. extern TestArenaMap_MapBoolBoolEntry_DoNotUseDefaultTypeInternal _TestArenaMap_MapBoolBoolEntry_DoNotUse_default_instance_;
  67. class TestArenaMap_MapFixed32Fixed32Entry_DoNotUse;
  68. class TestArenaMap_MapFixed32Fixed32Entry_DoNotUseDefaultTypeInternal;
  69. extern TestArenaMap_MapFixed32Fixed32Entry_DoNotUseDefaultTypeInternal _TestArenaMap_MapFixed32Fixed32Entry_DoNotUse_default_instance_;
  70. class TestArenaMap_MapFixed64Fixed64Entry_DoNotUse;
  71. class TestArenaMap_MapFixed64Fixed64Entry_DoNotUseDefaultTypeInternal;
  72. extern TestArenaMap_MapFixed64Fixed64Entry_DoNotUseDefaultTypeInternal _TestArenaMap_MapFixed64Fixed64Entry_DoNotUse_default_instance_;
  73. class TestArenaMap_MapInt32BytesEntry_DoNotUse;
  74. class TestArenaMap_MapInt32BytesEntry_DoNotUseDefaultTypeInternal;
  75. extern TestArenaMap_MapInt32BytesEntry_DoNotUseDefaultTypeInternal _TestArenaMap_MapInt32BytesEntry_DoNotUse_default_instance_;
  76. class TestArenaMap_MapInt32DoubleEntry_DoNotUse;
  77. class TestArenaMap_MapInt32DoubleEntry_DoNotUseDefaultTypeInternal;
  78. extern TestArenaMap_MapInt32DoubleEntry_DoNotUseDefaultTypeInternal _TestArenaMap_MapInt32DoubleEntry_DoNotUse_default_instance_;
  79. class TestArenaMap_MapInt32EnumEntry_DoNotUse;
  80. class TestArenaMap_MapInt32EnumEntry_DoNotUseDefaultTypeInternal;
  81. extern TestArenaMap_MapInt32EnumEntry_DoNotUseDefaultTypeInternal _TestArenaMap_MapInt32EnumEntry_DoNotUse_default_instance_;
  82. class TestArenaMap_MapInt32FloatEntry_DoNotUse;
  83. class TestArenaMap_MapInt32FloatEntry_DoNotUseDefaultTypeInternal;
  84. extern TestArenaMap_MapInt32FloatEntry_DoNotUseDefaultTypeInternal _TestArenaMap_MapInt32FloatEntry_DoNotUse_default_instance_;
  85. class TestArenaMap_MapInt32ForeignMessageEntry_DoNotUse;
  86. class TestArenaMap_MapInt32ForeignMessageEntry_DoNotUseDefaultTypeInternal;
  87. extern TestArenaMap_MapInt32ForeignMessageEntry_DoNotUseDefaultTypeInternal _TestArenaMap_MapInt32ForeignMessageEntry_DoNotUse_default_instance_;
  88. class TestArenaMap_MapInt32ForeignMessageNoArenaEntry_DoNotUse;
  89. class TestArenaMap_MapInt32ForeignMessageNoArenaEntry_DoNotUseDefaultTypeInternal;
  90. extern TestArenaMap_MapInt32ForeignMessageNoArenaEntry_DoNotUseDefaultTypeInternal _TestArenaMap_MapInt32ForeignMessageNoArenaEntry_DoNotUse_default_instance_;
  91. class TestArenaMap_MapInt32Int32Entry_DoNotUse;
  92. class TestArenaMap_MapInt32Int32Entry_DoNotUseDefaultTypeInternal;
  93. extern TestArenaMap_MapInt32Int32Entry_DoNotUseDefaultTypeInternal _TestArenaMap_MapInt32Int32Entry_DoNotUse_default_instance_;
  94. class TestArenaMap_MapInt64Int64Entry_DoNotUse;
  95. class TestArenaMap_MapInt64Int64Entry_DoNotUseDefaultTypeInternal;
  96. extern TestArenaMap_MapInt64Int64Entry_DoNotUseDefaultTypeInternal _TestArenaMap_MapInt64Int64Entry_DoNotUse_default_instance_;
  97. class TestArenaMap_MapSfixed32Sfixed32Entry_DoNotUse;
  98. class TestArenaMap_MapSfixed32Sfixed32Entry_DoNotUseDefaultTypeInternal;
  99. extern TestArenaMap_MapSfixed32Sfixed32Entry_DoNotUseDefaultTypeInternal _TestArenaMap_MapSfixed32Sfixed32Entry_DoNotUse_default_instance_;
  100. class TestArenaMap_MapSfixed64Sfixed64Entry_DoNotUse;
  101. class TestArenaMap_MapSfixed64Sfixed64Entry_DoNotUseDefaultTypeInternal;
  102. extern TestArenaMap_MapSfixed64Sfixed64Entry_DoNotUseDefaultTypeInternal _TestArenaMap_MapSfixed64Sfixed64Entry_DoNotUse_default_instance_;
  103. class TestArenaMap_MapSint32Sint32Entry_DoNotUse;
  104. class TestArenaMap_MapSint32Sint32Entry_DoNotUseDefaultTypeInternal;
  105. extern TestArenaMap_MapSint32Sint32Entry_DoNotUseDefaultTypeInternal _TestArenaMap_MapSint32Sint32Entry_DoNotUse_default_instance_;
  106. class TestArenaMap_MapSint64Sint64Entry_DoNotUse;
  107. class TestArenaMap_MapSint64Sint64Entry_DoNotUseDefaultTypeInternal;
  108. extern TestArenaMap_MapSint64Sint64Entry_DoNotUseDefaultTypeInternal _TestArenaMap_MapSint64Sint64Entry_DoNotUse_default_instance_;
  109. class TestArenaMap_MapStringStringEntry_DoNotUse;
  110. class TestArenaMap_MapStringStringEntry_DoNotUseDefaultTypeInternal;
  111. extern TestArenaMap_MapStringStringEntry_DoNotUseDefaultTypeInternal _TestArenaMap_MapStringStringEntry_DoNotUse_default_instance_;
  112. class TestArenaMap_MapUint32Uint32Entry_DoNotUse;
  113. class TestArenaMap_MapUint32Uint32Entry_DoNotUseDefaultTypeInternal;
  114. extern TestArenaMap_MapUint32Uint32Entry_DoNotUseDefaultTypeInternal _TestArenaMap_MapUint32Uint32Entry_DoNotUse_default_instance_;
  115. class TestArenaMap_MapUint64Uint64Entry_DoNotUse;
  116. class TestArenaMap_MapUint64Uint64Entry_DoNotUseDefaultTypeInternal;
  117. extern TestArenaMap_MapUint64Uint64Entry_DoNotUseDefaultTypeInternal _TestArenaMap_MapUint64Uint64Entry_DoNotUse_default_instance_;
  118. class TestMap;
  119. class TestMapDefaultTypeInternal;
  120. extern TestMapDefaultTypeInternal _TestMap_default_instance_;
  121. class TestMapSubmessage;
  122. class TestMapSubmessageDefaultTypeInternal;
  123. extern TestMapSubmessageDefaultTypeInternal _TestMapSubmessage_default_instance_;
  124. class TestMap_MapBoolBoolEntry_DoNotUse;
  125. class TestMap_MapBoolBoolEntry_DoNotUseDefaultTypeInternal;
  126. extern TestMap_MapBoolBoolEntry_DoNotUseDefaultTypeInternal _TestMap_MapBoolBoolEntry_DoNotUse_default_instance_;
  127. class TestMap_MapFixed32Fixed32Entry_DoNotUse;
  128. class TestMap_MapFixed32Fixed32Entry_DoNotUseDefaultTypeInternal;
  129. extern TestMap_MapFixed32Fixed32Entry_DoNotUseDefaultTypeInternal _TestMap_MapFixed32Fixed32Entry_DoNotUse_default_instance_;
  130. class TestMap_MapFixed64Fixed64Entry_DoNotUse;
  131. class TestMap_MapFixed64Fixed64Entry_DoNotUseDefaultTypeInternal;
  132. extern TestMap_MapFixed64Fixed64Entry_DoNotUseDefaultTypeInternal _TestMap_MapFixed64Fixed64Entry_DoNotUse_default_instance_;
  133. class TestMap_MapInt32AllTypesEntry_DoNotUse;
  134. class TestMap_MapInt32AllTypesEntry_DoNotUseDefaultTypeInternal;
  135. extern TestMap_MapInt32AllTypesEntry_DoNotUseDefaultTypeInternal _TestMap_MapInt32AllTypesEntry_DoNotUse_default_instance_;
  136. class TestMap_MapInt32BytesEntry_DoNotUse;
  137. class TestMap_MapInt32BytesEntry_DoNotUseDefaultTypeInternal;
  138. extern TestMap_MapInt32BytesEntry_DoNotUseDefaultTypeInternal _TestMap_MapInt32BytesEntry_DoNotUse_default_instance_;
  139. class TestMap_MapInt32DoubleEntry_DoNotUse;
  140. class TestMap_MapInt32DoubleEntry_DoNotUseDefaultTypeInternal;
  141. extern TestMap_MapInt32DoubleEntry_DoNotUseDefaultTypeInternal _TestMap_MapInt32DoubleEntry_DoNotUse_default_instance_;
  142. class TestMap_MapInt32EnumEntry_DoNotUse;
  143. class TestMap_MapInt32EnumEntry_DoNotUseDefaultTypeInternal;
  144. extern TestMap_MapInt32EnumEntry_DoNotUseDefaultTypeInternal _TestMap_MapInt32EnumEntry_DoNotUse_default_instance_;
  145. class TestMap_MapInt32FloatEntry_DoNotUse;
  146. class TestMap_MapInt32FloatEntry_DoNotUseDefaultTypeInternal;
  147. extern TestMap_MapInt32FloatEntry_DoNotUseDefaultTypeInternal _TestMap_MapInt32FloatEntry_DoNotUse_default_instance_;
  148. class TestMap_MapInt32ForeignMessageEntry_DoNotUse;
  149. class TestMap_MapInt32ForeignMessageEntry_DoNotUseDefaultTypeInternal;
  150. extern TestMap_MapInt32ForeignMessageEntry_DoNotUseDefaultTypeInternal _TestMap_MapInt32ForeignMessageEntry_DoNotUse_default_instance_;
  151. class TestMap_MapInt32Int32Entry_DoNotUse;
  152. class TestMap_MapInt32Int32Entry_DoNotUseDefaultTypeInternal;
  153. extern TestMap_MapInt32Int32Entry_DoNotUseDefaultTypeInternal _TestMap_MapInt32Int32Entry_DoNotUse_default_instance_;
  154. class TestMap_MapInt64Int64Entry_DoNotUse;
  155. class TestMap_MapInt64Int64Entry_DoNotUseDefaultTypeInternal;
  156. extern TestMap_MapInt64Int64Entry_DoNotUseDefaultTypeInternal _TestMap_MapInt64Int64Entry_DoNotUse_default_instance_;
  157. class TestMap_MapSfixed32Sfixed32Entry_DoNotUse;
  158. class TestMap_MapSfixed32Sfixed32Entry_DoNotUseDefaultTypeInternal;
  159. extern TestMap_MapSfixed32Sfixed32Entry_DoNotUseDefaultTypeInternal _TestMap_MapSfixed32Sfixed32Entry_DoNotUse_default_instance_;
  160. class TestMap_MapSfixed64Sfixed64Entry_DoNotUse;
  161. class TestMap_MapSfixed64Sfixed64Entry_DoNotUseDefaultTypeInternal;
  162. extern TestMap_MapSfixed64Sfixed64Entry_DoNotUseDefaultTypeInternal _TestMap_MapSfixed64Sfixed64Entry_DoNotUse_default_instance_;
  163. class TestMap_MapSint32Sint32Entry_DoNotUse;
  164. class TestMap_MapSint32Sint32Entry_DoNotUseDefaultTypeInternal;
  165. extern TestMap_MapSint32Sint32Entry_DoNotUseDefaultTypeInternal _TestMap_MapSint32Sint32Entry_DoNotUse_default_instance_;
  166. class TestMap_MapSint64Sint64Entry_DoNotUse;
  167. class TestMap_MapSint64Sint64Entry_DoNotUseDefaultTypeInternal;
  168. extern TestMap_MapSint64Sint64Entry_DoNotUseDefaultTypeInternal _TestMap_MapSint64Sint64Entry_DoNotUse_default_instance_;
  169. class TestMap_MapStringForeignMessageEntry_DoNotUse;
  170. class TestMap_MapStringForeignMessageEntry_DoNotUseDefaultTypeInternal;
  171. extern TestMap_MapStringForeignMessageEntry_DoNotUseDefaultTypeInternal _TestMap_MapStringForeignMessageEntry_DoNotUse_default_instance_;
  172. class TestMap_MapStringStringEntry_DoNotUse;
  173. class TestMap_MapStringStringEntry_DoNotUseDefaultTypeInternal;
  174. extern TestMap_MapStringStringEntry_DoNotUseDefaultTypeInternal _TestMap_MapStringStringEntry_DoNotUse_default_instance_;
  175. class TestMap_MapUint32Uint32Entry_DoNotUse;
  176. class TestMap_MapUint32Uint32Entry_DoNotUseDefaultTypeInternal;
  177. extern TestMap_MapUint32Uint32Entry_DoNotUseDefaultTypeInternal _TestMap_MapUint32Uint32Entry_DoNotUse_default_instance_;
  178. class TestMap_MapUint64Uint64Entry_DoNotUse;
  179. class TestMap_MapUint64Uint64Entry_DoNotUseDefaultTypeInternal;
  180. extern TestMap_MapUint64Uint64Entry_DoNotUseDefaultTypeInternal _TestMap_MapUint64Uint64Entry_DoNotUse_default_instance_;
  181. class TestMessageMap;
  182. class TestMessageMapDefaultTypeInternal;
  183. extern TestMessageMapDefaultTypeInternal _TestMessageMap_default_instance_;
  184. class TestMessageMap_MapInt32MessageEntry_DoNotUse;
  185. class TestMessageMap_MapInt32MessageEntry_DoNotUseDefaultTypeInternal;
  186. extern TestMessageMap_MapInt32MessageEntry_DoNotUseDefaultTypeInternal _TestMessageMap_MapInt32MessageEntry_DoNotUse_default_instance_;
  187. class TestRecursiveMapMessage;
  188. class TestRecursiveMapMessageDefaultTypeInternal;
  189. extern TestRecursiveMapMessageDefaultTypeInternal _TestRecursiveMapMessage_default_instance_;
  190. class TestRecursiveMapMessage_AEntry_DoNotUse;
  191. class TestRecursiveMapMessage_AEntry_DoNotUseDefaultTypeInternal;
  192. extern TestRecursiveMapMessage_AEntry_DoNotUseDefaultTypeInternal _TestRecursiveMapMessage_AEntry_DoNotUse_default_instance_;
  193. class TestRequiredMessageMap;
  194. class TestRequiredMessageMapDefaultTypeInternal;
  195. extern TestRequiredMessageMapDefaultTypeInternal _TestRequiredMessageMap_default_instance_;
  196. class TestRequiredMessageMap_MapFieldEntry_DoNotUse;
  197. class TestRequiredMessageMap_MapFieldEntry_DoNotUseDefaultTypeInternal;
  198. extern TestRequiredMessageMap_MapFieldEntry_DoNotUseDefaultTypeInternal _TestRequiredMessageMap_MapFieldEntry_DoNotUse_default_instance_;
  199. class TestSameTypeMap;
  200. class TestSameTypeMapDefaultTypeInternal;
  201. extern TestSameTypeMapDefaultTypeInternal _TestSameTypeMap_default_instance_;
  202. class TestSameTypeMap_Map1Entry_DoNotUse;
  203. class TestSameTypeMap_Map1Entry_DoNotUseDefaultTypeInternal;
  204. extern TestSameTypeMap_Map1Entry_DoNotUseDefaultTypeInternal _TestSameTypeMap_Map1Entry_DoNotUse_default_instance_;
  205. class TestSameTypeMap_Map2Entry_DoNotUse;
  206. class TestSameTypeMap_Map2Entry_DoNotUseDefaultTypeInternal;
  207. extern TestSameTypeMap_Map2Entry_DoNotUseDefaultTypeInternal _TestSameTypeMap_Map2Entry_DoNotUse_default_instance_;
  208. } // namespace protobuf_unittest
  209. namespace google {
  210. namespace protobuf {
  211. template<> ::protobuf_unittest::MessageContainingEnumCalledType* Arena::CreateMaybeMessage<::protobuf_unittest::MessageContainingEnumCalledType>(Arena*);
  212. template<> ::protobuf_unittest::MessageContainingEnumCalledType_TypeEntry_DoNotUse* Arena::CreateMaybeMessage<::protobuf_unittest::MessageContainingEnumCalledType_TypeEntry_DoNotUse>(Arena*);
  213. template<> ::protobuf_unittest::MessageContainingMapCalledEntry* Arena::CreateMaybeMessage<::protobuf_unittest::MessageContainingMapCalledEntry>(Arena*);
  214. template<> ::protobuf_unittest::MessageContainingMapCalledEntry_EntryEntry_DoNotUse* Arena::CreateMaybeMessage<::protobuf_unittest::MessageContainingMapCalledEntry_EntryEntry_DoNotUse>(Arena*);
  215. template<> ::protobuf_unittest::TestArenaMap* Arena::CreateMaybeMessage<::protobuf_unittest::TestArenaMap>(Arena*);
  216. template<> ::protobuf_unittest::TestArenaMap_MapBoolBoolEntry_DoNotUse* Arena::CreateMaybeMessage<::protobuf_unittest::TestArenaMap_MapBoolBoolEntry_DoNotUse>(Arena*);
  217. template<> ::protobuf_unittest::TestArenaMap_MapFixed32Fixed32Entry_DoNotUse* Arena::CreateMaybeMessage<::protobuf_unittest::TestArenaMap_MapFixed32Fixed32Entry_DoNotUse>(Arena*);
  218. template<> ::protobuf_unittest::TestArenaMap_MapFixed64Fixed64Entry_DoNotUse* Arena::CreateMaybeMessage<::protobuf_unittest::TestArenaMap_MapFixed64Fixed64Entry_DoNotUse>(Arena*);
  219. template<> ::protobuf_unittest::TestArenaMap_MapInt32BytesEntry_DoNotUse* Arena::CreateMaybeMessage<::protobuf_unittest::TestArenaMap_MapInt32BytesEntry_DoNotUse>(Arena*);
  220. template<> ::protobuf_unittest::TestArenaMap_MapInt32DoubleEntry_DoNotUse* Arena::CreateMaybeMessage<::protobuf_unittest::TestArenaMap_MapInt32DoubleEntry_DoNotUse>(Arena*);
  221. template<> ::protobuf_unittest::TestArenaMap_MapInt32EnumEntry_DoNotUse* Arena::CreateMaybeMessage<::protobuf_unittest::TestArenaMap_MapInt32EnumEntry_DoNotUse>(Arena*);
  222. template<> ::protobuf_unittest::TestArenaMap_MapInt32FloatEntry_DoNotUse* Arena::CreateMaybeMessage<::protobuf_unittest::TestArenaMap_MapInt32FloatEntry_DoNotUse>(Arena*);
  223. template<> ::protobuf_unittest::TestArenaMap_MapInt32ForeignMessageEntry_DoNotUse* Arena::CreateMaybeMessage<::protobuf_unittest::TestArenaMap_MapInt32ForeignMessageEntry_DoNotUse>(Arena*);
  224. template<> ::protobuf_unittest::TestArenaMap_MapInt32ForeignMessageNoArenaEntry_DoNotUse* Arena::CreateMaybeMessage<::protobuf_unittest::TestArenaMap_MapInt32ForeignMessageNoArenaEntry_DoNotUse>(Arena*);
  225. template<> ::protobuf_unittest::TestArenaMap_MapInt32Int32Entry_DoNotUse* Arena::CreateMaybeMessage<::protobuf_unittest::TestArenaMap_MapInt32Int32Entry_DoNotUse>(Arena*);
  226. template<> ::protobuf_unittest::TestArenaMap_MapInt64Int64Entry_DoNotUse* Arena::CreateMaybeMessage<::protobuf_unittest::TestArenaMap_MapInt64Int64Entry_DoNotUse>(Arena*);
  227. template<> ::protobuf_unittest::TestArenaMap_MapSfixed32Sfixed32Entry_DoNotUse* Arena::CreateMaybeMessage<::protobuf_unittest::TestArenaMap_MapSfixed32Sfixed32Entry_DoNotUse>(Arena*);
  228. template<> ::protobuf_unittest::TestArenaMap_MapSfixed64Sfixed64Entry_DoNotUse* Arena::CreateMaybeMessage<::protobuf_unittest::TestArenaMap_MapSfixed64Sfixed64Entry_DoNotUse>(Arena*);
  229. template<> ::protobuf_unittest::TestArenaMap_MapSint32Sint32Entry_DoNotUse* Arena::CreateMaybeMessage<::protobuf_unittest::TestArenaMap_MapSint32Sint32Entry_DoNotUse>(Arena*);
  230. template<> ::protobuf_unittest::TestArenaMap_MapSint64Sint64Entry_DoNotUse* Arena::CreateMaybeMessage<::protobuf_unittest::TestArenaMap_MapSint64Sint64Entry_DoNotUse>(Arena*);
  231. template<> ::protobuf_unittest::TestArenaMap_MapStringStringEntry_DoNotUse* Arena::CreateMaybeMessage<::protobuf_unittest::TestArenaMap_MapStringStringEntry_DoNotUse>(Arena*);
  232. template<> ::protobuf_unittest::TestArenaMap_MapUint32Uint32Entry_DoNotUse* Arena::CreateMaybeMessage<::protobuf_unittest::TestArenaMap_MapUint32Uint32Entry_DoNotUse>(Arena*);
  233. template<> ::protobuf_unittest::TestArenaMap_MapUint64Uint64Entry_DoNotUse* Arena::CreateMaybeMessage<::protobuf_unittest::TestArenaMap_MapUint64Uint64Entry_DoNotUse>(Arena*);
  234. template<> ::protobuf_unittest::TestMap* Arena::CreateMaybeMessage<::protobuf_unittest::TestMap>(Arena*);
  235. template<> ::protobuf_unittest::TestMapSubmessage* Arena::CreateMaybeMessage<::protobuf_unittest::TestMapSubmessage>(Arena*);
  236. template<> ::protobuf_unittest::TestMap_MapBoolBoolEntry_DoNotUse* Arena::CreateMaybeMessage<::protobuf_unittest::TestMap_MapBoolBoolEntry_DoNotUse>(Arena*);
  237. template<> ::protobuf_unittest::TestMap_MapFixed32Fixed32Entry_DoNotUse* Arena::CreateMaybeMessage<::protobuf_unittest::TestMap_MapFixed32Fixed32Entry_DoNotUse>(Arena*);
  238. template<> ::protobuf_unittest::TestMap_MapFixed64Fixed64Entry_DoNotUse* Arena::CreateMaybeMessage<::protobuf_unittest::TestMap_MapFixed64Fixed64Entry_DoNotUse>(Arena*);
  239. template<> ::protobuf_unittest::TestMap_MapInt32AllTypesEntry_DoNotUse* Arena::CreateMaybeMessage<::protobuf_unittest::TestMap_MapInt32AllTypesEntry_DoNotUse>(Arena*);
  240. template<> ::protobuf_unittest::TestMap_MapInt32BytesEntry_DoNotUse* Arena::CreateMaybeMessage<::protobuf_unittest::TestMap_MapInt32BytesEntry_DoNotUse>(Arena*);
  241. template<> ::protobuf_unittest::TestMap_MapInt32DoubleEntry_DoNotUse* Arena::CreateMaybeMessage<::protobuf_unittest::TestMap_MapInt32DoubleEntry_DoNotUse>(Arena*);
  242. template<> ::protobuf_unittest::TestMap_MapInt32EnumEntry_DoNotUse* Arena::CreateMaybeMessage<::protobuf_unittest::TestMap_MapInt32EnumEntry_DoNotUse>(Arena*);
  243. template<> ::protobuf_unittest::TestMap_MapInt32FloatEntry_DoNotUse* Arena::CreateMaybeMessage<::protobuf_unittest::TestMap_MapInt32FloatEntry_DoNotUse>(Arena*);
  244. template<> ::protobuf_unittest::TestMap_MapInt32ForeignMessageEntry_DoNotUse* Arena::CreateMaybeMessage<::protobuf_unittest::TestMap_MapInt32ForeignMessageEntry_DoNotUse>(Arena*);
  245. template<> ::protobuf_unittest::TestMap_MapInt32Int32Entry_DoNotUse* Arena::CreateMaybeMessage<::protobuf_unittest::TestMap_MapInt32Int32Entry_DoNotUse>(Arena*);
  246. template<> ::protobuf_unittest::TestMap_MapInt64Int64Entry_DoNotUse* Arena::CreateMaybeMessage<::protobuf_unittest::TestMap_MapInt64Int64Entry_DoNotUse>(Arena*);
  247. template<> ::protobuf_unittest::TestMap_MapSfixed32Sfixed32Entry_DoNotUse* Arena::CreateMaybeMessage<::protobuf_unittest::TestMap_MapSfixed32Sfixed32Entry_DoNotUse>(Arena*);
  248. template<> ::protobuf_unittest::TestMap_MapSfixed64Sfixed64Entry_DoNotUse* Arena::CreateMaybeMessage<::protobuf_unittest::TestMap_MapSfixed64Sfixed64Entry_DoNotUse>(Arena*);
  249. template<> ::protobuf_unittest::TestMap_MapSint32Sint32Entry_DoNotUse* Arena::CreateMaybeMessage<::protobuf_unittest::TestMap_MapSint32Sint32Entry_DoNotUse>(Arena*);
  250. template<> ::protobuf_unittest::TestMap_MapSint64Sint64Entry_DoNotUse* Arena::CreateMaybeMessage<::protobuf_unittest::TestMap_MapSint64Sint64Entry_DoNotUse>(Arena*);
  251. template<> ::protobuf_unittest::TestMap_MapStringForeignMessageEntry_DoNotUse* Arena::CreateMaybeMessage<::protobuf_unittest::TestMap_MapStringForeignMessageEntry_DoNotUse>(Arena*);
  252. template<> ::protobuf_unittest::TestMap_MapStringStringEntry_DoNotUse* Arena::CreateMaybeMessage<::protobuf_unittest::TestMap_MapStringStringEntry_DoNotUse>(Arena*);
  253. template<> ::protobuf_unittest::TestMap_MapUint32Uint32Entry_DoNotUse* Arena::CreateMaybeMessage<::protobuf_unittest::TestMap_MapUint32Uint32Entry_DoNotUse>(Arena*);
  254. template<> ::protobuf_unittest::TestMap_MapUint64Uint64Entry_DoNotUse* Arena::CreateMaybeMessage<::protobuf_unittest::TestMap_MapUint64Uint64Entry_DoNotUse>(Arena*);
  255. template<> ::protobuf_unittest::TestMessageMap* Arena::CreateMaybeMessage<::protobuf_unittest::TestMessageMap>(Arena*);
  256. template<> ::protobuf_unittest::TestMessageMap_MapInt32MessageEntry_DoNotUse* Arena::CreateMaybeMessage<::protobuf_unittest::TestMessageMap_MapInt32MessageEntry_DoNotUse>(Arena*);
  257. template<> ::protobuf_unittest::TestRecursiveMapMessage* Arena::CreateMaybeMessage<::protobuf_unittest::TestRecursiveMapMessage>(Arena*);
  258. template<> ::protobuf_unittest::TestRecursiveMapMessage_AEntry_DoNotUse* Arena::CreateMaybeMessage<::protobuf_unittest::TestRecursiveMapMessage_AEntry_DoNotUse>(Arena*);
  259. template<> ::protobuf_unittest::TestRequiredMessageMap* Arena::CreateMaybeMessage<::protobuf_unittest::TestRequiredMessageMap>(Arena*);
  260. template<> ::protobuf_unittest::TestRequiredMessageMap_MapFieldEntry_DoNotUse* Arena::CreateMaybeMessage<::protobuf_unittest::TestRequiredMessageMap_MapFieldEntry_DoNotUse>(Arena*);
  261. template<> ::protobuf_unittest::TestSameTypeMap* Arena::CreateMaybeMessage<::protobuf_unittest::TestSameTypeMap>(Arena*);
  262. template<> ::protobuf_unittest::TestSameTypeMap_Map1Entry_DoNotUse* Arena::CreateMaybeMessage<::protobuf_unittest::TestSameTypeMap_Map1Entry_DoNotUse>(Arena*);
  263. template<> ::protobuf_unittest::TestSameTypeMap_Map2Entry_DoNotUse* Arena::CreateMaybeMessage<::protobuf_unittest::TestSameTypeMap_Map2Entry_DoNotUse>(Arena*);
  264. } // namespace protobuf
  265. } // namespace google
  266. namespace protobuf_unittest {
  267. enum MessageContainingEnumCalledType_Type {
  268. MessageContainingEnumCalledType_Type_TYPE_FOO = 0,
  269. MessageContainingEnumCalledType_Type_MessageContainingEnumCalledType_Type_INT_MIN_SENTINEL_DO_NOT_USE_ = ::google::protobuf::kint32min,
  270. MessageContainingEnumCalledType_Type_MessageContainingEnumCalledType_Type_INT_MAX_SENTINEL_DO_NOT_USE_ = ::google::protobuf::kint32max
  271. };
  272. bool MessageContainingEnumCalledType_Type_IsValid(int value);
  273. const MessageContainingEnumCalledType_Type MessageContainingEnumCalledType_Type_Type_MIN = MessageContainingEnumCalledType_Type_TYPE_FOO;
  274. const MessageContainingEnumCalledType_Type MessageContainingEnumCalledType_Type_Type_MAX = MessageContainingEnumCalledType_Type_TYPE_FOO;
  275. const int MessageContainingEnumCalledType_Type_Type_ARRAYSIZE = MessageContainingEnumCalledType_Type_Type_MAX + 1;
  276. const ::google::protobuf::EnumDescriptor* MessageContainingEnumCalledType_Type_descriptor();
  277. inline const ::std::string& MessageContainingEnumCalledType_Type_Name(MessageContainingEnumCalledType_Type value) {
  278. return ::google::protobuf::internal::NameOfEnum(
  279. MessageContainingEnumCalledType_Type_descriptor(), value);
  280. }
  281. inline bool MessageContainingEnumCalledType_Type_Parse(
  282. const ::std::string& name, MessageContainingEnumCalledType_Type* value) {
  283. return ::google::protobuf::internal::ParseNamedEnum<MessageContainingEnumCalledType_Type>(
  284. MessageContainingEnumCalledType_Type_descriptor(), name, value);
  285. }
  286. enum MapEnum {
  287. MAP_ENUM_FOO = 0,
  288. MAP_ENUM_BAR = 1,
  289. MAP_ENUM_BAZ = 2,
  290. MapEnum_INT_MIN_SENTINEL_DO_NOT_USE_ = ::google::protobuf::kint32min,
  291. MapEnum_INT_MAX_SENTINEL_DO_NOT_USE_ = ::google::protobuf::kint32max
  292. };
  293. bool MapEnum_IsValid(int value);
  294. const MapEnum MapEnum_MIN = MAP_ENUM_FOO;
  295. const MapEnum MapEnum_MAX = MAP_ENUM_BAZ;
  296. const int MapEnum_ARRAYSIZE = MapEnum_MAX + 1;
  297. const ::google::protobuf::EnumDescriptor* MapEnum_descriptor();
  298. inline const ::std::string& MapEnum_Name(MapEnum value) {
  299. return ::google::protobuf::internal::NameOfEnum(
  300. MapEnum_descriptor(), value);
  301. }
  302. inline bool MapEnum_Parse(
  303. const ::std::string& name, MapEnum* value) {
  304. return ::google::protobuf::internal::ParseNamedEnum<MapEnum>(
  305. MapEnum_descriptor(), name, value);
  306. }
  307. // ===================================================================
  308. class TestMap_MapInt32Int32Entry_DoNotUse : public ::google::protobuf::internal::MapEntry<TestMap_MapInt32Int32Entry_DoNotUse,
  309. ::google::protobuf::int32, ::google::protobuf::int32,
  310. ::google::protobuf::internal::WireFormatLite::TYPE_INT32,
  311. ::google::protobuf::internal::WireFormatLite::TYPE_INT32,
  312. 0 > {
  313. public:
  314. typedef ::google::protobuf::internal::MapEntry<TestMap_MapInt32Int32Entry_DoNotUse,
  315. ::google::protobuf::int32, ::google::protobuf::int32,
  316. ::google::protobuf::internal::WireFormatLite::TYPE_INT32,
  317. ::google::protobuf::internal::WireFormatLite::TYPE_INT32,
  318. 0 > SuperType;
  319. TestMap_MapInt32Int32Entry_DoNotUse();
  320. TestMap_MapInt32Int32Entry_DoNotUse(::google::protobuf::Arena* arena);
  321. void MergeFrom(const TestMap_MapInt32Int32Entry_DoNotUse& other);
  322. static const TestMap_MapInt32Int32Entry_DoNotUse* internal_default_instance() { return reinterpret_cast<const TestMap_MapInt32Int32Entry_DoNotUse*>(&_TestMap_MapInt32Int32Entry_DoNotUse_default_instance_); }
  323. void MergeFrom(const ::google::protobuf::Message& other) final;
  324. ::google::protobuf::Metadata GetMetadata() const;
  325. };
  326. // -------------------------------------------------------------------
  327. class TestMap_MapInt64Int64Entry_DoNotUse : public ::google::protobuf::internal::MapEntry<TestMap_MapInt64Int64Entry_DoNotUse,
  328. ::google::protobuf::int64, ::google::protobuf::int64,
  329. ::google::protobuf::internal::WireFormatLite::TYPE_INT64,
  330. ::google::protobuf::internal::WireFormatLite::TYPE_INT64,
  331. 0 > {
  332. public:
  333. typedef ::google::protobuf::internal::MapEntry<TestMap_MapInt64Int64Entry_DoNotUse,
  334. ::google::protobuf::int64, ::google::protobuf::int64,
  335. ::google::protobuf::internal::WireFormatLite::TYPE_INT64,
  336. ::google::protobuf::internal::WireFormatLite::TYPE_INT64,
  337. 0 > SuperType;
  338. TestMap_MapInt64Int64Entry_DoNotUse();
  339. TestMap_MapInt64Int64Entry_DoNotUse(::google::protobuf::Arena* arena);
  340. void MergeFrom(const TestMap_MapInt64Int64Entry_DoNotUse& other);
  341. static const TestMap_MapInt64Int64Entry_DoNotUse* internal_default_instance() { return reinterpret_cast<const TestMap_MapInt64Int64Entry_DoNotUse*>(&_TestMap_MapInt64Int64Entry_DoNotUse_default_instance_); }
  342. void MergeFrom(const ::google::protobuf::Message& other) final;
  343. ::google::protobuf::Metadata GetMetadata() const;
  344. };
  345. // -------------------------------------------------------------------
  346. class TestMap_MapUint32Uint32Entry_DoNotUse : public ::google::protobuf::internal::MapEntry<TestMap_MapUint32Uint32Entry_DoNotUse,
  347. ::google::protobuf::uint32, ::google::protobuf::uint32,
  348. ::google::protobuf::internal::WireFormatLite::TYPE_UINT32,
  349. ::google::protobuf::internal::WireFormatLite::TYPE_UINT32,
  350. 0 > {
  351. public:
  352. typedef ::google::protobuf::internal::MapEntry<TestMap_MapUint32Uint32Entry_DoNotUse,
  353. ::google::protobuf::uint32, ::google::protobuf::uint32,
  354. ::google::protobuf::internal::WireFormatLite::TYPE_UINT32,
  355. ::google::protobuf::internal::WireFormatLite::TYPE_UINT32,
  356. 0 > SuperType;
  357. TestMap_MapUint32Uint32Entry_DoNotUse();
  358. TestMap_MapUint32Uint32Entry_DoNotUse(::google::protobuf::Arena* arena);
  359. void MergeFrom(const TestMap_MapUint32Uint32Entry_DoNotUse& other);
  360. static const TestMap_MapUint32Uint32Entry_DoNotUse* internal_default_instance() { return reinterpret_cast<const TestMap_MapUint32Uint32Entry_DoNotUse*>(&_TestMap_MapUint32Uint32Entry_DoNotUse_default_instance_); }
  361. void MergeFrom(const ::google::protobuf::Message& other) final;
  362. ::google::protobuf::Metadata GetMetadata() const;
  363. };
  364. // -------------------------------------------------------------------
  365. class TestMap_MapUint64Uint64Entry_DoNotUse : public ::google::protobuf::internal::MapEntry<TestMap_MapUint64Uint64Entry_DoNotUse,
  366. ::google::protobuf::uint64, ::google::protobuf::uint64,
  367. ::google::protobuf::internal::WireFormatLite::TYPE_UINT64,
  368. ::google::protobuf::internal::WireFormatLite::TYPE_UINT64,
  369. 0 > {
  370. public:
  371. typedef ::google::protobuf::internal::MapEntry<TestMap_MapUint64Uint64Entry_DoNotUse,
  372. ::google::protobuf::uint64, ::google::protobuf::uint64,
  373. ::google::protobuf::internal::WireFormatLite::TYPE_UINT64,
  374. ::google::protobuf::internal::WireFormatLite::TYPE_UINT64,
  375. 0 > SuperType;
  376. TestMap_MapUint64Uint64Entry_DoNotUse();
  377. TestMap_MapUint64Uint64Entry_DoNotUse(::google::protobuf::Arena* arena);
  378. void MergeFrom(const TestMap_MapUint64Uint64Entry_DoNotUse& other);
  379. static const TestMap_MapUint64Uint64Entry_DoNotUse* internal_default_instance() { return reinterpret_cast<const TestMap_MapUint64Uint64Entry_DoNotUse*>(&_TestMap_MapUint64Uint64Entry_DoNotUse_default_instance_); }
  380. void MergeFrom(const ::google::protobuf::Message& other) final;
  381. ::google::protobuf::Metadata GetMetadata() const;
  382. };
  383. // -------------------------------------------------------------------
  384. class TestMap_MapSint32Sint32Entry_DoNotUse : public ::google::protobuf::internal::MapEntry<TestMap_MapSint32Sint32Entry_DoNotUse,
  385. ::google::protobuf::int32, ::google::protobuf::int32,
  386. ::google::protobuf::internal::WireFormatLite::TYPE_SINT32,
  387. ::google::protobuf::internal::WireFormatLite::TYPE_SINT32,
  388. 0 > {
  389. public:
  390. typedef ::google::protobuf::internal::MapEntry<TestMap_MapSint32Sint32Entry_DoNotUse,
  391. ::google::protobuf::int32, ::google::protobuf::int32,
  392. ::google::protobuf::internal::WireFormatLite::TYPE_SINT32,
  393. ::google::protobuf::internal::WireFormatLite::TYPE_SINT32,
  394. 0 > SuperType;
  395. TestMap_MapSint32Sint32Entry_DoNotUse();
  396. TestMap_MapSint32Sint32Entry_DoNotUse(::google::protobuf::Arena* arena);
  397. void MergeFrom(const TestMap_MapSint32Sint32Entry_DoNotUse& other);
  398. static const TestMap_MapSint32Sint32Entry_DoNotUse* internal_default_instance() { return reinterpret_cast<const TestMap_MapSint32Sint32Entry_DoNotUse*>(&_TestMap_MapSint32Sint32Entry_DoNotUse_default_instance_); }
  399. void MergeFrom(const ::google::protobuf::Message& other) final;
  400. ::google::protobuf::Metadata GetMetadata() const;
  401. };
  402. // -------------------------------------------------------------------
  403. class TestMap_MapSint64Sint64Entry_DoNotUse : public ::google::protobuf::internal::MapEntry<TestMap_MapSint64Sint64Entry_DoNotUse,
  404. ::google::protobuf::int64, ::google::protobuf::int64,
  405. ::google::protobuf::internal::WireFormatLite::TYPE_SINT64,
  406. ::google::protobuf::internal::WireFormatLite::TYPE_SINT64,
  407. 0 > {
  408. public:
  409. typedef ::google::protobuf::internal::MapEntry<TestMap_MapSint64Sint64Entry_DoNotUse,
  410. ::google::protobuf::int64, ::google::protobuf::int64,
  411. ::google::protobuf::internal::WireFormatLite::TYPE_SINT64,
  412. ::google::protobuf::internal::WireFormatLite::TYPE_SINT64,
  413. 0 > SuperType;
  414. TestMap_MapSint64Sint64Entry_DoNotUse();
  415. TestMap_MapSint64Sint64Entry_DoNotUse(::google::protobuf::Arena* arena);
  416. void MergeFrom(const TestMap_MapSint64Sint64Entry_DoNotUse& other);
  417. static const TestMap_MapSint64Sint64Entry_DoNotUse* internal_default_instance() { return reinterpret_cast<const TestMap_MapSint64Sint64Entry_DoNotUse*>(&_TestMap_MapSint64Sint64Entry_DoNotUse_default_instance_); }
  418. void MergeFrom(const ::google::protobuf::Message& other) final;
  419. ::google::protobuf::Metadata GetMetadata() const;
  420. };
  421. // -------------------------------------------------------------------
  422. class TestMap_MapFixed32Fixed32Entry_DoNotUse : public ::google::protobuf::internal::MapEntry<TestMap_MapFixed32Fixed32Entry_DoNotUse,
  423. ::google::protobuf::uint32, ::google::protobuf::uint32,
  424. ::google::protobuf::internal::WireFormatLite::TYPE_FIXED32,
  425. ::google::protobuf::internal::WireFormatLite::TYPE_FIXED32,
  426. 0 > {
  427. public:
  428. typedef ::google::protobuf::internal::MapEntry<TestMap_MapFixed32Fixed32Entry_DoNotUse,
  429. ::google::protobuf::uint32, ::google::protobuf::uint32,
  430. ::google::protobuf::internal::WireFormatLite::TYPE_FIXED32,
  431. ::google::protobuf::internal::WireFormatLite::TYPE_FIXED32,
  432. 0 > SuperType;
  433. TestMap_MapFixed32Fixed32Entry_DoNotUse();
  434. TestMap_MapFixed32Fixed32Entry_DoNotUse(::google::protobuf::Arena* arena);
  435. void MergeFrom(const TestMap_MapFixed32Fixed32Entry_DoNotUse& other);
  436. static const TestMap_MapFixed32Fixed32Entry_DoNotUse* internal_default_instance() { return reinterpret_cast<const TestMap_MapFixed32Fixed32Entry_DoNotUse*>(&_TestMap_MapFixed32Fixed32Entry_DoNotUse_default_instance_); }
  437. void MergeFrom(const ::google::protobuf::Message& other) final;
  438. ::google::protobuf::Metadata GetMetadata() const;
  439. };
  440. // -------------------------------------------------------------------
  441. class TestMap_MapFixed64Fixed64Entry_DoNotUse : public ::google::protobuf::internal::MapEntry<TestMap_MapFixed64Fixed64Entry_DoNotUse,
  442. ::google::protobuf::uint64, ::google::protobuf::uint64,
  443. ::google::protobuf::internal::WireFormatLite::TYPE_FIXED64,
  444. ::google::protobuf::internal::WireFormatLite::TYPE_FIXED64,
  445. 0 > {
  446. public:
  447. typedef ::google::protobuf::internal::MapEntry<TestMap_MapFixed64Fixed64Entry_DoNotUse,
  448. ::google::protobuf::uint64, ::google::protobuf::uint64,
  449. ::google::protobuf::internal::WireFormatLite::TYPE_FIXED64,
  450. ::google::protobuf::internal::WireFormatLite::TYPE_FIXED64,
  451. 0 > SuperType;
  452. TestMap_MapFixed64Fixed64Entry_DoNotUse();
  453. TestMap_MapFixed64Fixed64Entry_DoNotUse(::google::protobuf::Arena* arena);
  454. void MergeFrom(const TestMap_MapFixed64Fixed64Entry_DoNotUse& other);
  455. static const TestMap_MapFixed64Fixed64Entry_DoNotUse* internal_default_instance() { return reinterpret_cast<const TestMap_MapFixed64Fixed64Entry_DoNotUse*>(&_TestMap_MapFixed64Fixed64Entry_DoNotUse_default_instance_); }
  456. void MergeFrom(const ::google::protobuf::Message& other) final;
  457. ::google::protobuf::Metadata GetMetadata() const;
  458. };
  459. // -------------------------------------------------------------------
  460. class TestMap_MapSfixed32Sfixed32Entry_DoNotUse : public ::google::protobuf::internal::MapEntry<TestMap_MapSfixed32Sfixed32Entry_DoNotUse,
  461. ::google::protobuf::int32, ::google::protobuf::int32,
  462. ::google::protobuf::internal::WireFormatLite::TYPE_SFIXED32,
  463. ::google::protobuf::internal::WireFormatLite::TYPE_SFIXED32,
  464. 0 > {
  465. public:
  466. typedef ::google::protobuf::internal::MapEntry<TestMap_MapSfixed32Sfixed32Entry_DoNotUse,
  467. ::google::protobuf::int32, ::google::protobuf::int32,
  468. ::google::protobuf::internal::WireFormatLite::TYPE_SFIXED32,
  469. ::google::protobuf::internal::WireFormatLite::TYPE_SFIXED32,
  470. 0 > SuperType;
  471. TestMap_MapSfixed32Sfixed32Entry_DoNotUse();
  472. TestMap_MapSfixed32Sfixed32Entry_DoNotUse(::google::protobuf::Arena* arena);
  473. void MergeFrom(const TestMap_MapSfixed32Sfixed32Entry_DoNotUse& other);
  474. static const TestMap_MapSfixed32Sfixed32Entry_DoNotUse* internal_default_instance() { return reinterpret_cast<const TestMap_MapSfixed32Sfixed32Entry_DoNotUse*>(&_TestMap_MapSfixed32Sfixed32Entry_DoNotUse_default_instance_); }
  475. void MergeFrom(const ::google::protobuf::Message& other) final;
  476. ::google::protobuf::Metadata GetMetadata() const;
  477. };
  478. // -------------------------------------------------------------------
  479. class TestMap_MapSfixed64Sfixed64Entry_DoNotUse : public ::google::protobuf::internal::MapEntry<TestMap_MapSfixed64Sfixed64Entry_DoNotUse,
  480. ::google::protobuf::int64, ::google::protobuf::int64,
  481. ::google::protobuf::internal::WireFormatLite::TYPE_SFIXED64,
  482. ::google::protobuf::internal::WireFormatLite::TYPE_SFIXED64,
  483. 0 > {
  484. public:
  485. typedef ::google::protobuf::internal::MapEntry<TestMap_MapSfixed64Sfixed64Entry_DoNotUse,
  486. ::google::protobuf::int64, ::google::protobuf::int64,
  487. ::google::protobuf::internal::WireFormatLite::TYPE_SFIXED64,
  488. ::google::protobuf::internal::WireFormatLite::TYPE_SFIXED64,
  489. 0 > SuperType;
  490. TestMap_MapSfixed64Sfixed64Entry_DoNotUse();
  491. TestMap_MapSfixed64Sfixed64Entry_DoNotUse(::google::protobuf::Arena* arena);
  492. void MergeFrom(const TestMap_MapSfixed64Sfixed64Entry_DoNotUse& other);
  493. static const TestMap_MapSfixed64Sfixed64Entry_DoNotUse* internal_default_instance() { return reinterpret_cast<const TestMap_MapSfixed64Sfixed64Entry_DoNotUse*>(&_TestMap_MapSfixed64Sfixed64Entry_DoNotUse_default_instance_); }
  494. void MergeFrom(const ::google::protobuf::Message& other) final;
  495. ::google::protobuf::Metadata GetMetadata() const;
  496. };
  497. // -------------------------------------------------------------------
  498. class TestMap_MapInt32FloatEntry_DoNotUse : public ::google::protobuf::internal::MapEntry<TestMap_MapInt32FloatEntry_DoNotUse,
  499. ::google::protobuf::int32, float,
  500. ::google::protobuf::internal::WireFormatLite::TYPE_INT32,
  501. ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT,
  502. 0 > {
  503. public:
  504. typedef ::google::protobuf::internal::MapEntry<TestMap_MapInt32FloatEntry_DoNotUse,
  505. ::google::protobuf::int32, float,
  506. ::google::protobuf::internal::WireFormatLite::TYPE_INT32,
  507. ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT,
  508. 0 > SuperType;
  509. TestMap_MapInt32FloatEntry_DoNotUse();
  510. TestMap_MapInt32FloatEntry_DoNotUse(::google::protobuf::Arena* arena);
  511. void MergeFrom(const TestMap_MapInt32FloatEntry_DoNotUse& other);
  512. static const TestMap_MapInt32FloatEntry_DoNotUse* internal_default_instance() { return reinterpret_cast<const TestMap_MapInt32FloatEntry_DoNotUse*>(&_TestMap_MapInt32FloatEntry_DoNotUse_default_instance_); }
  513. void MergeFrom(const ::google::protobuf::Message& other) final;
  514. ::google::protobuf::Metadata GetMetadata() const;
  515. };
  516. // -------------------------------------------------------------------
  517. class TestMap_MapInt32DoubleEntry_DoNotUse : public ::google::protobuf::internal::MapEntry<TestMap_MapInt32DoubleEntry_DoNotUse,
  518. ::google::protobuf::int32, double,
  519. ::google::protobuf::internal::WireFormatLite::TYPE_INT32,
  520. ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE,
  521. 0 > {
  522. public:
  523. typedef ::google::protobuf::internal::MapEntry<TestMap_MapInt32DoubleEntry_DoNotUse,
  524. ::google::protobuf::int32, double,
  525. ::google::protobuf::internal::WireFormatLite::TYPE_INT32,
  526. ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE,
  527. 0 > SuperType;
  528. TestMap_MapInt32DoubleEntry_DoNotUse();
  529. TestMap_MapInt32DoubleEntry_DoNotUse(::google::protobuf::Arena* arena);
  530. void MergeFrom(const TestMap_MapInt32DoubleEntry_DoNotUse& other);
  531. static const TestMap_MapInt32DoubleEntry_DoNotUse* internal_default_instance() { return reinterpret_cast<const TestMap_MapInt32DoubleEntry_DoNotUse*>(&_TestMap_MapInt32DoubleEntry_DoNotUse_default_instance_); }
  532. void MergeFrom(const ::google::protobuf::Message& other) final;
  533. ::google::protobuf::Metadata GetMetadata() const;
  534. };
  535. // -------------------------------------------------------------------
  536. class TestMap_MapBoolBoolEntry_DoNotUse : public ::google::protobuf::internal::MapEntry<TestMap_MapBoolBoolEntry_DoNotUse,
  537. bool, bool,
  538. ::google::protobuf::internal::WireFormatLite::TYPE_BOOL,
  539. ::google::protobuf::internal::WireFormatLite::TYPE_BOOL,
  540. 0 > {
  541. public:
  542. typedef ::google::protobuf::internal::MapEntry<TestMap_MapBoolBoolEntry_DoNotUse,
  543. bool, bool,
  544. ::google::protobuf::internal::WireFormatLite::TYPE_BOOL,
  545. ::google::protobuf::internal::WireFormatLite::TYPE_BOOL,
  546. 0 > SuperType;
  547. TestMap_MapBoolBoolEntry_DoNotUse();
  548. TestMap_MapBoolBoolEntry_DoNotUse(::google::protobuf::Arena* arena);
  549. void MergeFrom(const TestMap_MapBoolBoolEntry_DoNotUse& other);
  550. static const TestMap_MapBoolBoolEntry_DoNotUse* internal_default_instance() { return reinterpret_cast<const TestMap_MapBoolBoolEntry_DoNotUse*>(&_TestMap_MapBoolBoolEntry_DoNotUse_default_instance_); }
  551. void MergeFrom(const ::google::protobuf::Message& other) final;
  552. ::google::protobuf::Metadata GetMetadata() const;
  553. };
  554. // -------------------------------------------------------------------
  555. class TestMap_MapStringStringEntry_DoNotUse : public ::google::protobuf::internal::MapEntry<TestMap_MapStringStringEntry_DoNotUse,
  556. ::std::string, ::std::string,
  557. ::google::protobuf::internal::WireFormatLite::TYPE_STRING,
  558. ::google::protobuf::internal::WireFormatLite::TYPE_STRING,
  559. 0 > {
  560. public:
  561. typedef ::google::protobuf::internal::MapEntry<TestMap_MapStringStringEntry_DoNotUse,
  562. ::std::string, ::std::string,
  563. ::google::protobuf::internal::WireFormatLite::TYPE_STRING,
  564. ::google::protobuf::internal::WireFormatLite::TYPE_STRING,
  565. 0 > SuperType;
  566. TestMap_MapStringStringEntry_DoNotUse();
  567. TestMap_MapStringStringEntry_DoNotUse(::google::protobuf::Arena* arena);
  568. void MergeFrom(const TestMap_MapStringStringEntry_DoNotUse& other);
  569. static const TestMap_MapStringStringEntry_DoNotUse* internal_default_instance() { return reinterpret_cast<const TestMap_MapStringStringEntry_DoNotUse*>(&_TestMap_MapStringStringEntry_DoNotUse_default_instance_); }
  570. void MergeFrom(const ::google::protobuf::Message& other) final;
  571. ::google::protobuf::Metadata GetMetadata() const;
  572. };
  573. // -------------------------------------------------------------------
  574. class TestMap_MapInt32BytesEntry_DoNotUse : public ::google::protobuf::internal::MapEntry<TestMap_MapInt32BytesEntry_DoNotUse,
  575. ::google::protobuf::int32, ::std::string,
  576. ::google::protobuf::internal::WireFormatLite::TYPE_INT32,
  577. ::google::protobuf::internal::WireFormatLite::TYPE_BYTES,
  578. 0 > {
  579. public:
  580. typedef ::google::protobuf::internal::MapEntry<TestMap_MapInt32BytesEntry_DoNotUse,
  581. ::google::protobuf::int32, ::std::string,
  582. ::google::protobuf::internal::WireFormatLite::TYPE_INT32,
  583. ::google::protobuf::internal::WireFormatLite::TYPE_BYTES,
  584. 0 > SuperType;
  585. TestMap_MapInt32BytesEntry_DoNotUse();
  586. TestMap_MapInt32BytesEntry_DoNotUse(::google::protobuf::Arena* arena);
  587. void MergeFrom(const TestMap_MapInt32BytesEntry_DoNotUse& other);
  588. static const TestMap_MapInt32BytesEntry_DoNotUse* internal_default_instance() { return reinterpret_cast<const TestMap_MapInt32BytesEntry_DoNotUse*>(&_TestMap_MapInt32BytesEntry_DoNotUse_default_instance_); }
  589. void MergeFrom(const ::google::protobuf::Message& other) final;
  590. ::google::protobuf::Metadata GetMetadata() const;
  591. };
  592. // -------------------------------------------------------------------
  593. class TestMap_MapInt32EnumEntry_DoNotUse : public ::google::protobuf::internal::MapEntry<TestMap_MapInt32EnumEntry_DoNotUse,
  594. ::google::protobuf::int32, ::protobuf_unittest::MapEnum,
  595. ::google::protobuf::internal::WireFormatLite::TYPE_INT32,
  596. ::google::protobuf::internal::WireFormatLite::TYPE_ENUM,
  597. 0 > {
  598. public:
  599. typedef ::google::protobuf::internal::MapEntry<TestMap_MapInt32EnumEntry_DoNotUse,
  600. ::google::protobuf::int32, ::protobuf_unittest::MapEnum,
  601. ::google::protobuf::internal::WireFormatLite::TYPE_INT32,
  602. ::google::protobuf::internal::WireFormatLite::TYPE_ENUM,
  603. 0 > SuperType;
  604. TestMap_MapInt32EnumEntry_DoNotUse();
  605. TestMap_MapInt32EnumEntry_DoNotUse(::google::protobuf::Arena* arena);
  606. void MergeFrom(const TestMap_MapInt32EnumEntry_DoNotUse& other);
  607. static const TestMap_MapInt32EnumEntry_DoNotUse* internal_default_instance() { return reinterpret_cast<const TestMap_MapInt32EnumEntry_DoNotUse*>(&_TestMap_MapInt32EnumEntry_DoNotUse_default_instance_); }
  608. void MergeFrom(const ::google::protobuf::Message& other) final;
  609. ::google::protobuf::Metadata GetMetadata() const;
  610. };
  611. // -------------------------------------------------------------------
  612. class TestMap_MapInt32ForeignMessageEntry_DoNotUse : public ::google::protobuf::internal::MapEntry<TestMap_MapInt32ForeignMessageEntry_DoNotUse,
  613. ::google::protobuf::int32, ::protobuf_unittest::ForeignMessage,
  614. ::google::protobuf::internal::WireFormatLite::TYPE_INT32,
  615. ::google::protobuf::internal::WireFormatLite::TYPE_MESSAGE,
  616. 0 > {
  617. public:
  618. typedef ::google::protobuf::internal::MapEntry<TestMap_MapInt32ForeignMessageEntry_DoNotUse,
  619. ::google::protobuf::int32, ::protobuf_unittest::ForeignMessage,
  620. ::google::protobuf::internal::WireFormatLite::TYPE_INT32,
  621. ::google::protobuf::internal::WireFormatLite::TYPE_MESSAGE,
  622. 0 > SuperType;
  623. TestMap_MapInt32ForeignMessageEntry_DoNotUse();
  624. TestMap_MapInt32ForeignMessageEntry_DoNotUse(::google::protobuf::Arena* arena);
  625. void MergeFrom(const TestMap_MapInt32ForeignMessageEntry_DoNotUse& other);
  626. static const TestMap_MapInt32ForeignMessageEntry_DoNotUse* internal_default_instance() { return reinterpret_cast<const TestMap_MapInt32ForeignMessageEntry_DoNotUse*>(&_TestMap_MapInt32ForeignMessageEntry_DoNotUse_default_instance_); }
  627. void MergeFrom(const ::google::protobuf::Message& other) final;
  628. ::google::protobuf::Metadata GetMetadata() const;
  629. };
  630. // -------------------------------------------------------------------
  631. class TestMap_MapStringForeignMessageEntry_DoNotUse : public ::google::protobuf::internal::MapEntry<TestMap_MapStringForeignMessageEntry_DoNotUse,
  632. ::std::string, ::protobuf_unittest::ForeignMessage,
  633. ::google::protobuf::internal::WireFormatLite::TYPE_STRING,
  634. ::google::protobuf::internal::WireFormatLite::TYPE_MESSAGE,
  635. 0 > {
  636. public:
  637. typedef ::google::protobuf::internal::MapEntry<TestMap_MapStringForeignMessageEntry_DoNotUse,
  638. ::std::string, ::protobuf_unittest::ForeignMessage,
  639. ::google::protobuf::internal::WireFormatLite::TYPE_STRING,
  640. ::google::protobuf::internal::WireFormatLite::TYPE_MESSAGE,
  641. 0 > SuperType;
  642. TestMap_MapStringForeignMessageEntry_DoNotUse();
  643. TestMap_MapStringForeignMessageEntry_DoNotUse(::google::protobuf::Arena* arena);
  644. void MergeFrom(const TestMap_MapStringForeignMessageEntry_DoNotUse& other);
  645. static const TestMap_MapStringForeignMessageEntry_DoNotUse* internal_default_instance() { return reinterpret_cast<const TestMap_MapStringForeignMessageEntry_DoNotUse*>(&_TestMap_MapStringForeignMessageEntry_DoNotUse_default_instance_); }
  646. void MergeFrom(const ::google::protobuf::Message& other) final;
  647. ::google::protobuf::Metadata GetMetadata() const;
  648. };
  649. // -------------------------------------------------------------------
  650. class TestMap_MapInt32AllTypesEntry_DoNotUse : public ::google::protobuf::internal::MapEntry<TestMap_MapInt32AllTypesEntry_DoNotUse,
  651. ::google::protobuf::int32, ::protobuf_unittest::TestAllTypes,
  652. ::google::protobuf::internal::WireFormatLite::TYPE_INT32,
  653. ::google::protobuf::internal::WireFormatLite::TYPE_MESSAGE,
  654. 0 > {
  655. public:
  656. typedef ::google::protobuf::internal::MapEntry<TestMap_MapInt32AllTypesEntry_DoNotUse,
  657. ::google::protobuf::int32, ::protobuf_unittest::TestAllTypes,
  658. ::google::protobuf::internal::WireFormatLite::TYPE_INT32,
  659. ::google::protobuf::internal::WireFormatLite::TYPE_MESSAGE,
  660. 0 > SuperType;
  661. TestMap_MapInt32AllTypesEntry_DoNotUse();
  662. TestMap_MapInt32AllTypesEntry_DoNotUse(::google::protobuf::Arena* arena);
  663. void MergeFrom(const TestMap_MapInt32AllTypesEntry_DoNotUse& other);
  664. static const TestMap_MapInt32AllTypesEntry_DoNotUse* internal_default_instance() { return reinterpret_cast<const TestMap_MapInt32AllTypesEntry_DoNotUse*>(&_TestMap_MapInt32AllTypesEntry_DoNotUse_default_instance_); }
  665. void MergeFrom(const ::google::protobuf::Message& other) final;
  666. ::google::protobuf::Metadata GetMetadata() const;
  667. };
  668. // -------------------------------------------------------------------
  669. class TestMap : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:protobuf_unittest.TestMap) */ {
  670. public:
  671. TestMap();
  672. virtual ~TestMap();
  673. TestMap(const TestMap& from);
  674. inline TestMap& operator=(const TestMap& from) {
  675. CopyFrom(from);
  676. return *this;
  677. }
  678. #if LANG_CXX11
  679. TestMap(TestMap&& from) noexcept
  680. : TestMap() {
  681. *this = ::std::move(from);
  682. }
  683. inline TestMap& operator=(TestMap&& from) noexcept {
  684. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  685. if (this != &from) InternalSwap(&from);
  686. } else {
  687. CopyFrom(from);
  688. }
  689. return *this;
  690. }
  691. #endif
  692. inline ::google::protobuf::Arena* GetArena() const final {
  693. return GetArenaNoVirtual();
  694. }
  695. inline void* GetMaybeArenaPointer() const final {
  696. return MaybeArenaPtr();
  697. }
  698. static const ::google::protobuf::Descriptor* descriptor();
  699. static const TestMap& default_instance();
  700. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  701. static inline const TestMap* internal_default_instance() {
  702. return reinterpret_cast<const TestMap*>(
  703. &_TestMap_default_instance_);
  704. }
  705. static constexpr int kIndexInFileMessages =
  706. 19;
  707. void UnsafeArenaSwap(TestMap* other);
  708. void Swap(TestMap* other);
  709. friend void swap(TestMap& a, TestMap& b) {
  710. a.Swap(&b);
  711. }
  712. // implements Message ----------------------------------------------
  713. inline TestMap* New() const final {
  714. return CreateMaybeMessage<TestMap>(NULL);
  715. }
  716. TestMap* New(::google::protobuf::Arena* arena) const final {
  717. return CreateMaybeMessage<TestMap>(arena);
  718. }
  719. void CopyFrom(const ::google::protobuf::Message& from) final;
  720. void MergeFrom(const ::google::protobuf::Message& from) final;
  721. void CopyFrom(const TestMap& from);
  722. void MergeFrom(const TestMap& from);
  723. void Clear() final;
  724. bool IsInitialized() const final;
  725. size_t ByteSizeLong() const final;
  726. bool MergePartialFromCodedStream(
  727. ::google::protobuf::io::CodedInputStream* input) final;
  728. void SerializeWithCachedSizes(
  729. ::google::protobuf::io::CodedOutputStream* output) const final;
  730. ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
  731. bool deterministic, ::google::protobuf::uint8* target) const final;
  732. int GetCachedSize() const final { return _cached_size_.Get(); }
  733. private:
  734. void SharedCtor();
  735. void SharedDtor();
  736. void SetCachedSize(int size) const final;
  737. void InternalSwap(TestMap* other);
  738. protected:
  739. explicit TestMap(::google::protobuf::Arena* arena);
  740. private:
  741. static void ArenaDtor(void* object);
  742. inline void RegisterArenaDtor(::google::protobuf::Arena* arena);
  743. private:
  744. inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
  745. return _internal_metadata_.arena();
  746. }
  747. inline void* MaybeArenaPtr() const {
  748. return _internal_metadata_.raw_arena_ptr();
  749. }
  750. public:
  751. ::google::protobuf::Metadata GetMetadata() const final;
  752. // nested types ----------------------------------------------------
  753. // accessors -------------------------------------------------------
  754. // map<int32, int32> map_int32_int32 = 1;
  755. int map_int32_int32_size() const;
  756. void clear_map_int32_int32();
  757. static const int kMapInt32Int32FieldNumber = 1;
  758. const ::google::protobuf::Map< ::google::protobuf::int32, ::google::protobuf::int32 >&
  759. map_int32_int32() const;
  760. ::google::protobuf::Map< ::google::protobuf::int32, ::google::protobuf::int32 >*
  761. mutable_map_int32_int32();
  762. // map<int64, int64> map_int64_int64 = 2;
  763. int map_int64_int64_size() const;
  764. void clear_map_int64_int64();
  765. static const int kMapInt64Int64FieldNumber = 2;
  766. const ::google::protobuf::Map< ::google::protobuf::int64, ::google::protobuf::int64 >&
  767. map_int64_int64() const;
  768. ::google::protobuf::Map< ::google::protobuf::int64, ::google::protobuf::int64 >*
  769. mutable_map_int64_int64();
  770. // map<uint32, uint32> map_uint32_uint32 = 3;
  771. int map_uint32_uint32_size() const;
  772. void clear_map_uint32_uint32();
  773. static const int kMapUint32Uint32FieldNumber = 3;
  774. const ::google::protobuf::Map< ::google::protobuf::uint32, ::google::protobuf::uint32 >&
  775. map_uint32_uint32() const;
  776. ::google::protobuf::Map< ::google::protobuf::uint32, ::google::protobuf::uint32 >*
  777. mutable_map_uint32_uint32();
  778. // map<uint64, uint64> map_uint64_uint64 = 4;
  779. int map_uint64_uint64_size() const;
  780. void clear_map_uint64_uint64();
  781. static const int kMapUint64Uint64FieldNumber = 4;
  782. const ::google::protobuf::Map< ::google::protobuf::uint64, ::google::protobuf::uint64 >&
  783. map_uint64_uint64() const;
  784. ::google::protobuf::Map< ::google::protobuf::uint64, ::google::protobuf::uint64 >*
  785. mutable_map_uint64_uint64();
  786. // map<sint32, sint32> map_sint32_sint32 = 5;
  787. int map_sint32_sint32_size() const;
  788. void clear_map_sint32_sint32();
  789. static const int kMapSint32Sint32FieldNumber = 5;
  790. const ::google::protobuf::Map< ::google::protobuf::int32, ::google::protobuf::int32 >&
  791. map_sint32_sint32() const;
  792. ::google::protobuf::Map< ::google::protobuf::int32, ::google::protobuf::int32 >*
  793. mutable_map_sint32_sint32();
  794. // map<sint64, sint64> map_sint64_sint64 = 6;
  795. int map_sint64_sint64_size() const;
  796. void clear_map_sint64_sint64();
  797. static const int kMapSint64Sint64FieldNumber = 6;
  798. const ::google::protobuf::Map< ::google::protobuf::int64, ::google::protobuf::int64 >&
  799. map_sint64_sint64() const;
  800. ::google::protobuf::Map< ::google::protobuf::int64, ::google::protobuf::int64 >*
  801. mutable_map_sint64_sint64();
  802. // map<fixed32, fixed32> map_fixed32_fixed32 = 7;
  803. int map_fixed32_fixed32_size() const;
  804. void clear_map_fixed32_fixed32();
  805. static const int kMapFixed32Fixed32FieldNumber = 7;
  806. const ::google::protobuf::Map< ::google::protobuf::uint32, ::google::protobuf::uint32 >&
  807. map_fixed32_fixed32() const;
  808. ::google::protobuf::Map< ::google::protobuf::uint32, ::google::protobuf::uint32 >*
  809. mutable_map_fixed32_fixed32();
  810. // map<fixed64, fixed64> map_fixed64_fixed64 = 8;
  811. int map_fixed64_fixed64_size() const;
  812. void clear_map_fixed64_fixed64();
  813. static const int kMapFixed64Fixed64FieldNumber = 8;
  814. const ::google::protobuf::Map< ::google::protobuf::uint64, ::google::protobuf::uint64 >&
  815. map_fixed64_fixed64() const;
  816. ::google::protobuf::Map< ::google::protobuf::uint64, ::google::protobuf::uint64 >*
  817. mutable_map_fixed64_fixed64();
  818. // map<sfixed32, sfixed32> map_sfixed32_sfixed32 = 9;
  819. int map_sfixed32_sfixed32_size() const;
  820. void clear_map_sfixed32_sfixed32();
  821. static const int kMapSfixed32Sfixed32FieldNumber = 9;
  822. const ::google::protobuf::Map< ::google::protobuf::int32, ::google::protobuf::int32 >&
  823. map_sfixed32_sfixed32() const;
  824. ::google::protobuf::Map< ::google::protobuf::int32, ::google::protobuf::int32 >*
  825. mutable_map_sfixed32_sfixed32();
  826. // map<sfixed64, sfixed64> map_sfixed64_sfixed64 = 10;
  827. int map_sfixed64_sfixed64_size() const;
  828. void clear_map_sfixed64_sfixed64();
  829. static const int kMapSfixed64Sfixed64FieldNumber = 10;
  830. const ::google::protobuf::Map< ::google::protobuf::int64, ::google::protobuf::int64 >&
  831. map_sfixed64_sfixed64() const;
  832. ::google::protobuf::Map< ::google::protobuf::int64, ::google::protobuf::int64 >*
  833. mutable_map_sfixed64_sfixed64();
  834. // map<int32, float> map_int32_float = 11;
  835. int map_int32_float_size() const;
  836. void clear_map_int32_float();
  837. static const int kMapInt32FloatFieldNumber = 11;
  838. const ::google::protobuf::Map< ::google::protobuf::int32, float >&
  839. map_int32_float() const;
  840. ::google::protobuf::Map< ::google::protobuf::int32, float >*
  841. mutable_map_int32_float();
  842. // map<int32, double> map_int32_double = 12;
  843. int map_int32_double_size() const;
  844. void clear_map_int32_double();
  845. static const int kMapInt32DoubleFieldNumber = 12;
  846. const ::google::protobuf::Map< ::google::protobuf::int32, double >&
  847. map_int32_double() const;
  848. ::google::protobuf::Map< ::google::protobuf::int32, double >*
  849. mutable_map_int32_double();
  850. // map<bool, bool> map_bool_bool = 13;
  851. int map_bool_bool_size() const;
  852. void clear_map_bool_bool();
  853. static const int kMapBoolBoolFieldNumber = 13;
  854. const ::google::protobuf::Map< bool, bool >&
  855. map_bool_bool() const;
  856. ::google::protobuf::Map< bool, bool >*
  857. mutable_map_bool_bool();
  858. // map<string, string> map_string_string = 14;
  859. int map_string_string_size() const;
  860. void clear_map_string_string();
  861. static const int kMapStringStringFieldNumber = 14;
  862. const ::google::protobuf::Map< ::std::string, ::std::string >&
  863. map_string_string() const;
  864. ::google::protobuf::Map< ::std::string, ::std::string >*
  865. mutable_map_string_string();
  866. // map<int32, bytes> map_int32_bytes = 15;
  867. int map_int32_bytes_size() const;
  868. void clear_map_int32_bytes();
  869. static const int kMapInt32BytesFieldNumber = 15;
  870. const ::google::protobuf::Map< ::google::protobuf::int32, ::std::string >&
  871. map_int32_bytes() const;
  872. ::google::protobuf::Map< ::google::protobuf::int32, ::std::string >*
  873. mutable_map_int32_bytes();
  874. // map<int32, .protobuf_unittest.MapEnum> map_int32_enum = 16;
  875. int map_int32_enum_size() const;
  876. void clear_map_int32_enum();
  877. static const int kMapInt32EnumFieldNumber = 16;
  878. const ::google::protobuf::Map< ::google::protobuf::int32, ::protobuf_unittest::MapEnum >&
  879. map_int32_enum() const;
  880. ::google::protobuf::Map< ::google::protobuf::int32, ::protobuf_unittest::MapEnum >*
  881. mutable_map_int32_enum();
  882. // map<int32, .protobuf_unittest.ForeignMessage> map_int32_foreign_message = 17;
  883. int map_int32_foreign_message_size() const;
  884. void clear_map_int32_foreign_message();
  885. static const int kMapInt32ForeignMessageFieldNumber = 17;
  886. const ::google::protobuf::Map< ::google::protobuf::int32, ::protobuf_unittest::ForeignMessage >&
  887. map_int32_foreign_message() const;
  888. ::google::protobuf::Map< ::google::protobuf::int32, ::protobuf_unittest::ForeignMessage >*
  889. mutable_map_int32_foreign_message();
  890. // map<string, .protobuf_unittest.ForeignMessage> map_string_foreign_message = 18;
  891. int map_string_foreign_message_size() const;
  892. void clear_map_string_foreign_message();
  893. static const int kMapStringForeignMessageFieldNumber = 18;
  894. const ::google::protobuf::Map< ::std::string, ::protobuf_unittest::ForeignMessage >&
  895. map_string_foreign_message() const;
  896. ::google::protobuf::Map< ::std::string, ::protobuf_unittest::ForeignMessage >*
  897. mutable_map_string_foreign_message();
  898. // map<int32, .protobuf_unittest.TestAllTypes> map_int32_all_types = 19;
  899. int map_int32_all_types_size() const;
  900. void clear_map_int32_all_types();
  901. static const int kMapInt32AllTypesFieldNumber = 19;
  902. const ::google::protobuf::Map< ::google::protobuf::int32, ::protobuf_unittest::TestAllTypes >&
  903. map_int32_all_types() const;
  904. ::google::protobuf::Map< ::google::protobuf::int32, ::protobuf_unittest::TestAllTypes >*
  905. mutable_map_int32_all_types();
  906. // @@protoc_insertion_point(class_scope:protobuf_unittest.TestMap)
  907. private:
  908. ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
  909. template <typename T> friend class ::google::protobuf::Arena::InternalHelper;
  910. typedef void InternalArenaConstructable_;
  911. typedef void DestructorSkippable_;
  912. ::google::protobuf::internal::MapField<
  913. TestMap_MapInt32Int32Entry_DoNotUse,
  914. ::google::protobuf::int32, ::google::protobuf::int32,
  915. ::google::protobuf::internal::WireFormatLite::TYPE_INT32,
  916. ::google::protobuf::internal::WireFormatLite::TYPE_INT32,
  917. 0 > map_int32_int32_;
  918. ::google::protobuf::internal::MapField<
  919. TestMap_MapInt64Int64Entry_DoNotUse,
  920. ::google::protobuf::int64, ::google::protobuf::int64,
  921. ::google::protobuf::internal::WireFormatLite::TYPE_INT64,
  922. ::google::protobuf::internal::WireFormatLite::TYPE_INT64,
  923. 0 > map_int64_int64_;
  924. ::google::protobuf::internal::MapField<
  925. TestMap_MapUint32Uint32Entry_DoNotUse,
  926. ::google::protobuf::uint32, ::google::protobuf::uint32,
  927. ::google::protobuf::internal::WireFormatLite::TYPE_UINT32,
  928. ::google::protobuf::internal::WireFormatLite::TYPE_UINT32,
  929. 0 > map_uint32_uint32_;
  930. ::google::protobuf::internal::MapField<
  931. TestMap_MapUint64Uint64Entry_DoNotUse,
  932. ::google::protobuf::uint64, ::google::protobuf::uint64,
  933. ::google::protobuf::internal::WireFormatLite::TYPE_UINT64,
  934. ::google::protobuf::internal::WireFormatLite::TYPE_UINT64,
  935. 0 > map_uint64_uint64_;
  936. ::google::protobuf::internal::MapField<
  937. TestMap_MapSint32Sint32Entry_DoNotUse,
  938. ::google::protobuf::int32, ::google::protobuf::int32,
  939. ::google::protobuf::internal::WireFormatLite::TYPE_SINT32,
  940. ::google::protobuf::internal::WireFormatLite::TYPE_SINT32,
  941. 0 > map_sint32_sint32_;
  942. ::google::protobuf::internal::MapField<
  943. TestMap_MapSint64Sint64Entry_DoNotUse,
  944. ::google::protobuf::int64, ::google::protobuf::int64,
  945. ::google::protobuf::internal::WireFormatLite::TYPE_SINT64,
  946. ::google::protobuf::internal::WireFormatLite::TYPE_SINT64,
  947. 0 > map_sint64_sint64_;
  948. ::google::protobuf::internal::MapField<
  949. TestMap_MapFixed32Fixed32Entry_DoNotUse,
  950. ::google::protobuf::uint32, ::google::protobuf::uint32,
  951. ::google::protobuf::internal::WireFormatLite::TYPE_FIXED32,
  952. ::google::protobuf::internal::WireFormatLite::TYPE_FIXED32,
  953. 0 > map_fixed32_fixed32_;
  954. ::google::protobuf::internal::MapField<
  955. TestMap_MapFixed64Fixed64Entry_DoNotUse,
  956. ::google::protobuf::uint64, ::google::protobuf::uint64,
  957. ::google::protobuf::internal::WireFormatLite::TYPE_FIXED64,
  958. ::google::protobuf::internal::WireFormatLite::TYPE_FIXED64,
  959. 0 > map_fixed64_fixed64_;
  960. ::google::protobuf::internal::MapField<
  961. TestMap_MapSfixed32Sfixed32Entry_DoNotUse,
  962. ::google::protobuf::int32, ::google::protobuf::int32,
  963. ::google::protobuf::internal::WireFormatLite::TYPE_SFIXED32,
  964. ::google::protobuf::internal::WireFormatLite::TYPE_SFIXED32,
  965. 0 > map_sfixed32_sfixed32_;
  966. ::google::protobuf::internal::MapField<
  967. TestMap_MapSfixed64Sfixed64Entry_DoNotUse,
  968. ::google::protobuf::int64, ::google::protobuf::int64,
  969. ::google::protobuf::internal::WireFormatLite::TYPE_SFIXED64,
  970. ::google::protobuf::internal::WireFormatLite::TYPE_SFIXED64,
  971. 0 > map_sfixed64_sfixed64_;
  972. ::google::protobuf::internal::MapField<
  973. TestMap_MapInt32FloatEntry_DoNotUse,
  974. ::google::protobuf::int32, float,
  975. ::google::protobuf::internal::WireFormatLite::TYPE_INT32,
  976. ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT,
  977. 0 > map_int32_float_;
  978. ::google::protobuf::internal::MapField<
  979. TestMap_MapInt32DoubleEntry_DoNotUse,
  980. ::google::protobuf::int32, double,
  981. ::google::protobuf::internal::WireFormatLite::TYPE_INT32,
  982. ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE,
  983. 0 > map_int32_double_;
  984. ::google::protobuf::internal::MapField<
  985. TestMap_MapBoolBoolEntry_DoNotUse,
  986. bool, bool,
  987. ::google::protobuf::internal::WireFormatLite::TYPE_BOOL,
  988. ::google::protobuf::internal::WireFormatLite::TYPE_BOOL,
  989. 0 > map_bool_bool_;
  990. ::google::protobuf::internal::MapField<
  991. TestMap_MapStringStringEntry_DoNotUse,
  992. ::std::string, ::std::string,
  993. ::google::protobuf::internal::WireFormatLite::TYPE_STRING,
  994. ::google::protobuf::internal::WireFormatLite::TYPE_STRING,
  995. 0 > map_string_string_;
  996. ::google::protobuf::internal::MapField<
  997. TestMap_MapInt32BytesEntry_DoNotUse,
  998. ::google::protobuf::int32, ::std::string,
  999. ::google::protobuf::internal::WireFormatLite::TYPE_INT32,
  1000. ::google::protobuf::internal::WireFormatLite::TYPE_BYTES,
  1001. 0 > map_int32_bytes_;
  1002. ::google::protobuf::internal::MapField<
  1003. TestMap_MapInt32EnumEntry_DoNotUse,
  1004. ::google::protobuf::int32, ::protobuf_unittest::MapEnum,
  1005. ::google::protobuf::internal::WireFormatLite::TYPE_INT32,
  1006. ::google::protobuf::internal::WireFormatLite::TYPE_ENUM,
  1007. 0 > map_int32_enum_;
  1008. ::google::protobuf::internal::MapField<
  1009. TestMap_MapInt32ForeignMessageEntry_DoNotUse,
  1010. ::google::protobuf::int32, ::protobuf_unittest::ForeignMessage,
  1011. ::google::protobuf::internal::WireFormatLite::TYPE_INT32,
  1012. ::google::protobuf::internal::WireFormatLite::TYPE_MESSAGE,
  1013. 0 > map_int32_foreign_message_;
  1014. ::google::protobuf::internal::MapField<
  1015. TestMap_MapStringForeignMessageEntry_DoNotUse,
  1016. ::std::string, ::protobuf_unittest::ForeignMessage,
  1017. ::google::protobuf::internal::WireFormatLite::TYPE_STRING,
  1018. ::google::protobuf::internal::WireFormatLite::TYPE_MESSAGE,
  1019. 0 > map_string_foreign_message_;
  1020. ::google::protobuf::internal::MapField<
  1021. TestMap_MapInt32AllTypesEntry_DoNotUse,
  1022. ::google::protobuf::int32, ::protobuf_unittest::TestAllTypes,
  1023. ::google::protobuf::internal::WireFormatLite::TYPE_INT32,
  1024. ::google::protobuf::internal::WireFormatLite::TYPE_MESSAGE,
  1025. 0 > map_int32_all_types_;
  1026. mutable ::google::protobuf::internal::CachedSize _cached_size_;
  1027. friend struct ::protobuf_google_2fprotobuf_2fmap_5funittest_2eproto::TableStruct;
  1028. };
  1029. // -------------------------------------------------------------------
  1030. class TestMapSubmessage : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:protobuf_unittest.TestMapSubmessage) */ {
  1031. public:
  1032. TestMapSubmessage();
  1033. virtual ~TestMapSubmessage();
  1034. TestMapSubmessage(const TestMapSubmessage& from);
  1035. inline TestMapSubmessage& operator=(const TestMapSubmessage& from) {
  1036. CopyFrom(from);
  1037. return *this;
  1038. }
  1039. #if LANG_CXX11
  1040. TestMapSubmessage(TestMapSubmessage&& from) noexcept
  1041. : TestMapSubmessage() {
  1042. *this = ::std::move(from);
  1043. }
  1044. inline TestMapSubmessage& operator=(TestMapSubmessage&& from) noexcept {
  1045. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  1046. if (this != &from) InternalSwap(&from);
  1047. } else {
  1048. CopyFrom(from);
  1049. }
  1050. return *this;
  1051. }
  1052. #endif
  1053. inline ::google::protobuf::Arena* GetArena() const final {
  1054. return GetArenaNoVirtual();
  1055. }
  1056. inline void* GetMaybeArenaPointer() const final {
  1057. return MaybeArenaPtr();
  1058. }
  1059. static const ::google::protobuf::Descriptor* descriptor();
  1060. static const TestMapSubmessage& default_instance();
  1061. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  1062. static inline const TestMapSubmessage* internal_default_instance() {
  1063. return reinterpret_cast<const TestMapSubmessage*>(
  1064. &_TestMapSubmessage_default_instance_);
  1065. }
  1066. static constexpr int kIndexInFileMessages =
  1067. 20;
  1068. void UnsafeArenaSwap(TestMapSubmessage* other);
  1069. void Swap(TestMapSubmessage* other);
  1070. friend void swap(TestMapSubmessage& a, TestMapSubmessage& b) {
  1071. a.Swap(&b);
  1072. }
  1073. // implements Message ----------------------------------------------
  1074. inline TestMapSubmessage* New() const final {
  1075. return CreateMaybeMessage<TestMapSubmessage>(NULL);
  1076. }
  1077. TestMapSubmessage* New(::google::protobuf::Arena* arena) const final {
  1078. return CreateMaybeMessage<TestMapSubmessage>(arena);
  1079. }
  1080. void CopyFrom(const ::google::protobuf::Message& from) final;
  1081. void MergeFrom(const ::google::protobuf::Message& from) final;
  1082. void CopyFrom(const TestMapSubmessage& from);
  1083. void MergeFrom(const TestMapSubmessage& from);
  1084. void Clear() final;
  1085. bool IsInitialized() const final;
  1086. size_t ByteSizeLong() const final;
  1087. bool MergePartialFromCodedStream(
  1088. ::google::protobuf::io::CodedInputStream* input) final;
  1089. void SerializeWithCachedSizes(
  1090. ::google::protobuf::io::CodedOutputStream* output) const final;
  1091. ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
  1092. bool deterministic, ::google::protobuf::uint8* target) const final;
  1093. int GetCachedSize() const final { return _cached_size_.Get(); }
  1094. private:
  1095. void SharedCtor();
  1096. void SharedDtor();
  1097. void SetCachedSize(int size) const final;
  1098. void InternalSwap(TestMapSubmessage* other);
  1099. protected:
  1100. explicit TestMapSubmessage(::google::protobuf::Arena* arena);
  1101. private:
  1102. static void ArenaDtor(void* object);
  1103. inline void RegisterArenaDtor(::google::protobuf::Arena* arena);
  1104. private:
  1105. inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
  1106. return _internal_metadata_.arena();
  1107. }
  1108. inline void* MaybeArenaPtr() const {
  1109. return _internal_metadata_.raw_arena_ptr();
  1110. }
  1111. public:
  1112. ::google::protobuf::Metadata GetMetadata() const final;
  1113. // nested types ----------------------------------------------------
  1114. // accessors -------------------------------------------------------
  1115. // .protobuf_unittest.TestMap test_map = 1;
  1116. bool has_test_map() const;
  1117. void clear_test_map();
  1118. static const int kTestMapFieldNumber = 1;
  1119. private:
  1120. const ::protobuf_unittest::TestMap& _internal_test_map() const;
  1121. public:
  1122. const ::protobuf_unittest::TestMap& test_map() const;
  1123. ::protobuf_unittest::TestMap* release_test_map();
  1124. ::protobuf_unittest::TestMap* mutable_test_map();
  1125. void set_allocated_test_map(::protobuf_unittest::TestMap* test_map);
  1126. void unsafe_arena_set_allocated_test_map(
  1127. ::protobuf_unittest::TestMap* test_map);
  1128. ::protobuf_unittest::TestMap* unsafe_arena_release_test_map();
  1129. // @@protoc_insertion_point(class_scope:protobuf_unittest.TestMapSubmessage)
  1130. private:
  1131. ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
  1132. template <typename T> friend class ::google::protobuf::Arena::InternalHelper;
  1133. typedef void InternalArenaConstructable_;
  1134. typedef void DestructorSkippable_;
  1135. ::protobuf_unittest::TestMap* test_map_;
  1136. mutable ::google::protobuf::internal::CachedSize _cached_size_;
  1137. friend struct ::protobuf_google_2fprotobuf_2fmap_5funittest_2eproto::TableStruct;
  1138. };
  1139. // -------------------------------------------------------------------
  1140. class TestMessageMap_MapInt32MessageEntry_DoNotUse : public ::google::protobuf::internal::MapEntry<TestMessageMap_MapInt32MessageEntry_DoNotUse,
  1141. ::google::protobuf::int32, ::protobuf_unittest::TestAllTypes,
  1142. ::google::protobuf::internal::WireFormatLite::TYPE_INT32,
  1143. ::google::protobuf::internal::WireFormatLite::TYPE_MESSAGE,
  1144. 0 > {
  1145. public:
  1146. typedef ::google::protobuf::internal::MapEntry<TestMessageMap_MapInt32MessageEntry_DoNotUse,
  1147. ::google::protobuf::int32, ::protobuf_unittest::TestAllTypes,
  1148. ::google::protobuf::internal::WireFormatLite::TYPE_INT32,
  1149. ::google::protobuf::internal::WireFormatLite::TYPE_MESSAGE,
  1150. 0 > SuperType;
  1151. TestMessageMap_MapInt32MessageEntry_DoNotUse();
  1152. TestMessageMap_MapInt32MessageEntry_DoNotUse(::google::protobuf::Arena* arena);
  1153. void MergeFrom(const TestMessageMap_MapInt32MessageEntry_DoNotUse& other);
  1154. static const TestMessageMap_MapInt32MessageEntry_DoNotUse* internal_default_instance() { return reinterpret_cast<const TestMessageMap_MapInt32MessageEntry_DoNotUse*>(&_TestMessageMap_MapInt32MessageEntry_DoNotUse_default_instance_); }
  1155. void MergeFrom(const ::google::protobuf::Message& other) final;
  1156. ::google::protobuf::Metadata GetMetadata() const;
  1157. };
  1158. // -------------------------------------------------------------------
  1159. class TestMessageMap : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:protobuf_unittest.TestMessageMap) */ {
  1160. public:
  1161. TestMessageMap();
  1162. virtual ~TestMessageMap();
  1163. TestMessageMap(const TestMessageMap& from);
  1164. inline TestMessageMap& operator=(const TestMessageMap& from) {
  1165. CopyFrom(from);
  1166. return *this;
  1167. }
  1168. #if LANG_CXX11
  1169. TestMessageMap(TestMessageMap&& from) noexcept
  1170. : TestMessageMap() {
  1171. *this = ::std::move(from);
  1172. }
  1173. inline TestMessageMap& operator=(TestMessageMap&& from) noexcept {
  1174. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  1175. if (this != &from) InternalSwap(&from);
  1176. } else {
  1177. CopyFrom(from);
  1178. }
  1179. return *this;
  1180. }
  1181. #endif
  1182. inline ::google::protobuf::Arena* GetArena() const final {
  1183. return GetArenaNoVirtual();
  1184. }
  1185. inline void* GetMaybeArenaPointer() const final {
  1186. return MaybeArenaPtr();
  1187. }
  1188. static const ::google::protobuf::Descriptor* descriptor();
  1189. static const TestMessageMap& default_instance();
  1190. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  1191. static inline const TestMessageMap* internal_default_instance() {
  1192. return reinterpret_cast<const TestMessageMap*>(
  1193. &_TestMessageMap_default_instance_);
  1194. }
  1195. static constexpr int kIndexInFileMessages =
  1196. 22;
  1197. void UnsafeArenaSwap(TestMessageMap* other);
  1198. void Swap(TestMessageMap* other);
  1199. friend void swap(TestMessageMap& a, TestMessageMap& b) {
  1200. a.Swap(&b);
  1201. }
  1202. // implements Message ----------------------------------------------
  1203. inline TestMessageMap* New() const final {
  1204. return CreateMaybeMessage<TestMessageMap>(NULL);
  1205. }
  1206. TestMessageMap* New(::google::protobuf::Arena* arena) const final {
  1207. return CreateMaybeMessage<TestMessageMap>(arena);
  1208. }
  1209. void CopyFrom(const ::google::protobuf::Message& from) final;
  1210. void MergeFrom(const ::google::protobuf::Message& from) final;
  1211. void CopyFrom(const TestMessageMap& from);
  1212. void MergeFrom(const TestMessageMap& from);
  1213. void Clear() final;
  1214. bool IsInitialized() const final;
  1215. size_t ByteSizeLong() const final;
  1216. bool MergePartialFromCodedStream(
  1217. ::google::protobuf::io::CodedInputStream* input) final;
  1218. void SerializeWithCachedSizes(
  1219. ::google::protobuf::io::CodedOutputStream* output) const final;
  1220. ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
  1221. bool deterministic, ::google::protobuf::uint8* target) const final;
  1222. int GetCachedSize() const final { return _cached_size_.Get(); }
  1223. private:
  1224. void SharedCtor();
  1225. void SharedDtor();
  1226. void SetCachedSize(int size) const final;
  1227. void InternalSwap(TestMessageMap* other);
  1228. protected:
  1229. explicit TestMessageMap(::google::protobuf::Arena* arena);
  1230. private:
  1231. static void ArenaDtor(void* object);
  1232. inline void RegisterArenaDtor(::google::protobuf::Arena* arena);
  1233. private:
  1234. inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
  1235. return _internal_metadata_.arena();
  1236. }
  1237. inline void* MaybeArenaPtr() const {
  1238. return _internal_metadata_.raw_arena_ptr();
  1239. }
  1240. public:
  1241. ::google::protobuf::Metadata GetMetadata() const final;
  1242. // nested types ----------------------------------------------------
  1243. // accessors -------------------------------------------------------
  1244. // map<int32, .protobuf_unittest.TestAllTypes> map_int32_message = 1;
  1245. int map_int32_message_size() const;
  1246. void clear_map_int32_message();
  1247. static const int kMapInt32MessageFieldNumber = 1;
  1248. const ::google::protobuf::Map< ::google::protobuf::int32, ::protobuf_unittest::TestAllTypes >&
  1249. map_int32_message() const;
  1250. ::google::protobuf::Map< ::google::protobuf::int32, ::protobuf_unittest::TestAllTypes >*
  1251. mutable_map_int32_message();
  1252. // @@protoc_insertion_point(class_scope:protobuf_unittest.TestMessageMap)
  1253. private:
  1254. ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
  1255. template <typename T> friend class ::google::protobuf::Arena::InternalHelper;
  1256. typedef void InternalArenaConstructable_;
  1257. typedef void DestructorSkippable_;
  1258. ::google::protobuf::internal::MapField<
  1259. TestMessageMap_MapInt32MessageEntry_DoNotUse,
  1260. ::google::protobuf::int32, ::protobuf_unittest::TestAllTypes,
  1261. ::google::protobuf::internal::WireFormatLite::TYPE_INT32,
  1262. ::google::protobuf::internal::WireFormatLite::TYPE_MESSAGE,
  1263. 0 > map_int32_message_;
  1264. mutable ::google::protobuf::internal::CachedSize _cached_size_;
  1265. friend struct ::protobuf_google_2fprotobuf_2fmap_5funittest_2eproto::TableStruct;
  1266. };
  1267. // -------------------------------------------------------------------
  1268. class TestSameTypeMap_Map1Entry_DoNotUse : public ::google::protobuf::internal::MapEntry<TestSameTypeMap_Map1Entry_DoNotUse,
  1269. ::google::protobuf::int32, ::google::protobuf::int32,
  1270. ::google::protobuf::internal::WireFormatLite::TYPE_INT32,
  1271. ::google::protobuf::internal::WireFormatLite::TYPE_INT32,
  1272. 0 > {
  1273. public:
  1274. typedef ::google::protobuf::internal::MapEntry<TestSameTypeMap_Map1Entry_DoNotUse,
  1275. ::google::protobuf::int32, ::google::protobuf::int32,
  1276. ::google::protobuf::internal::WireFormatLite::TYPE_INT32,
  1277. ::google::protobuf::internal::WireFormatLite::TYPE_INT32,
  1278. 0 > SuperType;
  1279. TestSameTypeMap_Map1Entry_DoNotUse();
  1280. TestSameTypeMap_Map1Entry_DoNotUse(::google::protobuf::Arena* arena);
  1281. void MergeFrom(const TestSameTypeMap_Map1Entry_DoNotUse& other);
  1282. static const TestSameTypeMap_Map1Entry_DoNotUse* internal_default_instance() { return reinterpret_cast<const TestSameTypeMap_Map1Entry_DoNotUse*>(&_TestSameTypeMap_Map1Entry_DoNotUse_default_instance_); }
  1283. void MergeFrom(const ::google::protobuf::Message& other) final;
  1284. ::google::protobuf::Metadata GetMetadata() const;
  1285. };
  1286. // -------------------------------------------------------------------
  1287. class TestSameTypeMap_Map2Entry_DoNotUse : public ::google::protobuf::internal::MapEntry<TestSameTypeMap_Map2Entry_DoNotUse,
  1288. ::google::protobuf::int32, ::google::protobuf::int32,
  1289. ::google::protobuf::internal::WireFormatLite::TYPE_INT32,
  1290. ::google::protobuf::internal::WireFormatLite::TYPE_INT32,
  1291. 0 > {
  1292. public:
  1293. typedef ::google::protobuf::internal::MapEntry<TestSameTypeMap_Map2Entry_DoNotUse,
  1294. ::google::protobuf::int32, ::google::protobuf::int32,
  1295. ::google::protobuf::internal::WireFormatLite::TYPE_INT32,
  1296. ::google::protobuf::internal::WireFormatLite::TYPE_INT32,
  1297. 0 > SuperType;
  1298. TestSameTypeMap_Map2Entry_DoNotUse();
  1299. TestSameTypeMap_Map2Entry_DoNotUse(::google::protobuf::Arena* arena);
  1300. void MergeFrom(const TestSameTypeMap_Map2Entry_DoNotUse& other);
  1301. static const TestSameTypeMap_Map2Entry_DoNotUse* internal_default_instance() { return reinterpret_cast<const TestSameTypeMap_Map2Entry_DoNotUse*>(&_TestSameTypeMap_Map2Entry_DoNotUse_default_instance_); }
  1302. void MergeFrom(const ::google::protobuf::Message& other) final;
  1303. ::google::protobuf::Metadata GetMetadata() const;
  1304. };
  1305. // -------------------------------------------------------------------
  1306. class TestSameTypeMap : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:protobuf_unittest.TestSameTypeMap) */ {
  1307. public:
  1308. TestSameTypeMap();
  1309. virtual ~TestSameTypeMap();
  1310. TestSameTypeMap(const TestSameTypeMap& from);
  1311. inline TestSameTypeMap& operator=(const TestSameTypeMap& from) {
  1312. CopyFrom(from);
  1313. return *this;
  1314. }
  1315. #if LANG_CXX11
  1316. TestSameTypeMap(TestSameTypeMap&& from) noexcept
  1317. : TestSameTypeMap() {
  1318. *this = ::std::move(from);
  1319. }
  1320. inline TestSameTypeMap& operator=(TestSameTypeMap&& from) noexcept {
  1321. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  1322. if (this != &from) InternalSwap(&from);
  1323. } else {
  1324. CopyFrom(from);
  1325. }
  1326. return *this;
  1327. }
  1328. #endif
  1329. inline ::google::protobuf::Arena* GetArena() const final {
  1330. return GetArenaNoVirtual();
  1331. }
  1332. inline void* GetMaybeArenaPointer() const final {
  1333. return MaybeArenaPtr();
  1334. }
  1335. static const ::google::protobuf::Descriptor* descriptor();
  1336. static const TestSameTypeMap& default_instance();
  1337. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  1338. static inline const TestSameTypeMap* internal_default_instance() {
  1339. return reinterpret_cast<const TestSameTypeMap*>(
  1340. &_TestSameTypeMap_default_instance_);
  1341. }
  1342. static constexpr int kIndexInFileMessages =
  1343. 25;
  1344. void UnsafeArenaSwap(TestSameTypeMap* other);
  1345. void Swap(TestSameTypeMap* other);
  1346. friend void swap(TestSameTypeMap& a, TestSameTypeMap& b) {
  1347. a.Swap(&b);
  1348. }
  1349. // implements Message ----------------------------------------------
  1350. inline TestSameTypeMap* New() const final {
  1351. return CreateMaybeMessage<TestSameTypeMap>(NULL);
  1352. }
  1353. TestSameTypeMap* New(::google::protobuf::Arena* arena) const final {
  1354. return CreateMaybeMessage<TestSameTypeMap>(arena);
  1355. }
  1356. void CopyFrom(const ::google::protobuf::Message& from) final;
  1357. void MergeFrom(const ::google::protobuf::Message& from) final;
  1358. void CopyFrom(const TestSameTypeMap& from);
  1359. void MergeFrom(const TestSameTypeMap& from);
  1360. void Clear() final;
  1361. bool IsInitialized() const final;
  1362. size_t ByteSizeLong() const final;
  1363. bool MergePartialFromCodedStream(
  1364. ::google::protobuf::io::CodedInputStream* input) final;
  1365. void SerializeWithCachedSizes(
  1366. ::google::protobuf::io::CodedOutputStream* output) const final;
  1367. ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
  1368. bool deterministic, ::google::protobuf::uint8* target) const final;
  1369. int GetCachedSize() const final { return _cached_size_.Get(); }
  1370. private:
  1371. void SharedCtor();
  1372. void SharedDtor();
  1373. void SetCachedSize(int size) const final;
  1374. void InternalSwap(TestSameTypeMap* other);
  1375. protected:
  1376. explicit TestSameTypeMap(::google::protobuf::Arena* arena);
  1377. private:
  1378. static void ArenaDtor(void* object);
  1379. inline void RegisterArenaDtor(::google::protobuf::Arena* arena);
  1380. private:
  1381. inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
  1382. return _internal_metadata_.arena();
  1383. }
  1384. inline void* MaybeArenaPtr() const {
  1385. return _internal_metadata_.raw_arena_ptr();
  1386. }
  1387. public:
  1388. ::google::protobuf::Metadata GetMetadata() const final;
  1389. // nested types ----------------------------------------------------
  1390. // accessors -------------------------------------------------------
  1391. // map<int32, int32> map1 = 1;
  1392. int map1_size() const;
  1393. void clear_map1();
  1394. static const int kMap1FieldNumber = 1;
  1395. const ::google::protobuf::Map< ::google::protobuf::int32, ::google::protobuf::int32 >&
  1396. map1() const;
  1397. ::google::protobuf::Map< ::google::protobuf::int32, ::google::protobuf::int32 >*
  1398. mutable_map1();
  1399. // map<int32, int32> map2 = 2;
  1400. int map2_size() const;
  1401. void clear_map2();
  1402. static const int kMap2FieldNumber = 2;
  1403. const ::google::protobuf::Map< ::google::protobuf::int32, ::google::protobuf::int32 >&
  1404. map2() const;
  1405. ::google::protobuf::Map< ::google::protobuf::int32, ::google::protobuf::int32 >*
  1406. mutable_map2();
  1407. // @@protoc_insertion_point(class_scope:protobuf_unittest.TestSameTypeMap)
  1408. private:
  1409. ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
  1410. template <typename T> friend class ::google::protobuf::Arena::InternalHelper;
  1411. typedef void InternalArenaConstructable_;
  1412. typedef void DestructorSkippable_;
  1413. ::google::protobuf::internal::MapField<
  1414. TestSameTypeMap_Map1Entry_DoNotUse,
  1415. ::google::protobuf::int32, ::google::protobuf::int32,
  1416. ::google::protobuf::internal::WireFormatLite::TYPE_INT32,
  1417. ::google::protobuf::internal::WireFormatLite::TYPE_INT32,
  1418. 0 > map1_;
  1419. ::google::protobuf::internal::MapField<
  1420. TestSameTypeMap_Map2Entry_DoNotUse,
  1421. ::google::protobuf::int32, ::google::protobuf::int32,
  1422. ::google::protobuf::internal::WireFormatLite::TYPE_INT32,
  1423. ::google::protobuf::internal::WireFormatLite::TYPE_INT32,
  1424. 0 > map2_;
  1425. mutable ::google::protobuf::internal::CachedSize _cached_size_;
  1426. friend struct ::protobuf_google_2fprotobuf_2fmap_5funittest_2eproto::TableStruct;
  1427. };
  1428. // -------------------------------------------------------------------
  1429. class TestRequiredMessageMap_MapFieldEntry_DoNotUse : public ::google::protobuf::internal::MapEntry<TestRequiredMessageMap_MapFieldEntry_DoNotUse,
  1430. ::google::protobuf::int32, ::protobuf_unittest::TestRequired,
  1431. ::google::protobuf::internal::WireFormatLite::TYPE_INT32,
  1432. ::google::protobuf::internal::WireFormatLite::TYPE_MESSAGE,
  1433. 0 > {
  1434. public:
  1435. typedef ::google::protobuf::internal::MapEntry<TestRequiredMessageMap_MapFieldEntry_DoNotUse,
  1436. ::google::protobuf::int32, ::protobuf_unittest::TestRequired,
  1437. ::google::protobuf::internal::WireFormatLite::TYPE_INT32,
  1438. ::google::protobuf::internal::WireFormatLite::TYPE_MESSAGE,
  1439. 0 > SuperType;
  1440. TestRequiredMessageMap_MapFieldEntry_DoNotUse();
  1441. TestRequiredMessageMap_MapFieldEntry_DoNotUse(::google::protobuf::Arena* arena);
  1442. void MergeFrom(const TestRequiredMessageMap_MapFieldEntry_DoNotUse& other);
  1443. static const TestRequiredMessageMap_MapFieldEntry_DoNotUse* internal_default_instance() { return reinterpret_cast<const TestRequiredMessageMap_MapFieldEntry_DoNotUse*>(&_TestRequiredMessageMap_MapFieldEntry_DoNotUse_default_instance_); }
  1444. void MergeFrom(const ::google::protobuf::Message& other) final;
  1445. ::google::protobuf::Metadata GetMetadata() const;
  1446. };
  1447. // -------------------------------------------------------------------
  1448. class TestRequiredMessageMap : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:protobuf_unittest.TestRequiredMessageMap) */ {
  1449. public:
  1450. TestRequiredMessageMap();
  1451. virtual ~TestRequiredMessageMap();
  1452. TestRequiredMessageMap(const TestRequiredMessageMap& from);
  1453. inline TestRequiredMessageMap& operator=(const TestRequiredMessageMap& from) {
  1454. CopyFrom(from);
  1455. return *this;
  1456. }
  1457. #if LANG_CXX11
  1458. TestRequiredMessageMap(TestRequiredMessageMap&& from) noexcept
  1459. : TestRequiredMessageMap() {
  1460. *this = ::std::move(from);
  1461. }
  1462. inline TestRequiredMessageMap& operator=(TestRequiredMessageMap&& from) noexcept {
  1463. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  1464. if (this != &from) InternalSwap(&from);
  1465. } else {
  1466. CopyFrom(from);
  1467. }
  1468. return *this;
  1469. }
  1470. #endif
  1471. inline ::google::protobuf::Arena* GetArena() const final {
  1472. return GetArenaNoVirtual();
  1473. }
  1474. inline void* GetMaybeArenaPointer() const final {
  1475. return MaybeArenaPtr();
  1476. }
  1477. static const ::google::protobuf::Descriptor* descriptor();
  1478. static const TestRequiredMessageMap& default_instance();
  1479. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  1480. static inline const TestRequiredMessageMap* internal_default_instance() {
  1481. return reinterpret_cast<const TestRequiredMessageMap*>(
  1482. &_TestRequiredMessageMap_default_instance_);
  1483. }
  1484. static constexpr int kIndexInFileMessages =
  1485. 27;
  1486. void UnsafeArenaSwap(TestRequiredMessageMap* other);
  1487. void Swap(TestRequiredMessageMap* other);
  1488. friend void swap(TestRequiredMessageMap& a, TestRequiredMessageMap& b) {
  1489. a.Swap(&b);
  1490. }
  1491. // implements Message ----------------------------------------------
  1492. inline TestRequiredMessageMap* New() const final {
  1493. return CreateMaybeMessage<TestRequiredMessageMap>(NULL);
  1494. }
  1495. TestRequiredMessageMap* New(::google::protobuf::Arena* arena) const final {
  1496. return CreateMaybeMessage<TestRequiredMessageMap>(arena);
  1497. }
  1498. void CopyFrom(const ::google::protobuf::Message& from) final;
  1499. void MergeFrom(const ::google::protobuf::Message& from) final;
  1500. void CopyFrom(const TestRequiredMessageMap& from);
  1501. void MergeFrom(const TestRequiredMessageMap& from);
  1502. void Clear() final;
  1503. bool IsInitialized() const final;
  1504. size_t ByteSizeLong() const final;
  1505. bool MergePartialFromCodedStream(
  1506. ::google::protobuf::io::CodedInputStream* input) final;
  1507. void SerializeWithCachedSizes(
  1508. ::google::protobuf::io::CodedOutputStream* output) const final;
  1509. ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
  1510. bool deterministic, ::google::protobuf::uint8* target) const final;
  1511. int GetCachedSize() const final { return _cached_size_.Get(); }
  1512. private:
  1513. void SharedCtor();
  1514. void SharedDtor();
  1515. void SetCachedSize(int size) const final;
  1516. void InternalSwap(TestRequiredMessageMap* other);
  1517. protected:
  1518. explicit TestRequiredMessageMap(::google::protobuf::Arena* arena);
  1519. private:
  1520. static void ArenaDtor(void* object);
  1521. inline void RegisterArenaDtor(::google::protobuf::Arena* arena);
  1522. private:
  1523. inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
  1524. return _internal_metadata_.arena();
  1525. }
  1526. inline void* MaybeArenaPtr() const {
  1527. return _internal_metadata_.raw_arena_ptr();
  1528. }
  1529. public:
  1530. ::google::protobuf::Metadata GetMetadata() const final;
  1531. // nested types ----------------------------------------------------
  1532. // accessors -------------------------------------------------------
  1533. // map<int32, .protobuf_unittest.TestRequired> map_field = 1;
  1534. int map_field_size() const;
  1535. void clear_map_field();
  1536. static const int kMapFieldFieldNumber = 1;
  1537. const ::google::protobuf::Map< ::google::protobuf::int32, ::protobuf_unittest::TestRequired >&
  1538. map_field() const;
  1539. ::google::protobuf::Map< ::google::protobuf::int32, ::protobuf_unittest::TestRequired >*
  1540. mutable_map_field();
  1541. // @@protoc_insertion_point(class_scope:protobuf_unittest.TestRequiredMessageMap)
  1542. private:
  1543. ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
  1544. template <typename T> friend class ::google::protobuf::Arena::InternalHelper;
  1545. typedef void InternalArenaConstructable_;
  1546. typedef void DestructorSkippable_;
  1547. ::google::protobuf::internal::MapField<
  1548. TestRequiredMessageMap_MapFieldEntry_DoNotUse,
  1549. ::google::protobuf::int32, ::protobuf_unittest::TestRequired,
  1550. ::google::protobuf::internal::WireFormatLite::TYPE_INT32,
  1551. ::google::protobuf::internal::WireFormatLite::TYPE_MESSAGE,
  1552. 0 > map_field_;
  1553. mutable ::google::protobuf::internal::CachedSize _cached_size_;
  1554. friend struct ::protobuf_google_2fprotobuf_2fmap_5funittest_2eproto::TableStruct;
  1555. };
  1556. // -------------------------------------------------------------------
  1557. class TestArenaMap_MapInt32Int32Entry_DoNotUse : public ::google::protobuf::internal::MapEntry<TestArenaMap_MapInt32Int32Entry_DoNotUse,
  1558. ::google::protobuf::int32, ::google::protobuf::int32,
  1559. ::google::protobuf::internal::WireFormatLite::TYPE_INT32,
  1560. ::google::protobuf::internal::WireFormatLite::TYPE_INT32,
  1561. 0 > {
  1562. public:
  1563. typedef ::google::protobuf::internal::MapEntry<TestArenaMap_MapInt32Int32Entry_DoNotUse,
  1564. ::google::protobuf::int32, ::google::protobuf::int32,
  1565. ::google::protobuf::internal::WireFormatLite::TYPE_INT32,
  1566. ::google::protobuf::internal::WireFormatLite::TYPE_INT32,
  1567. 0 > SuperType;
  1568. TestArenaMap_MapInt32Int32Entry_DoNotUse();
  1569. TestArenaMap_MapInt32Int32Entry_DoNotUse(::google::protobuf::Arena* arena);
  1570. void MergeFrom(const TestArenaMap_MapInt32Int32Entry_DoNotUse& other);
  1571. static const TestArenaMap_MapInt32Int32Entry_DoNotUse* internal_default_instance() { return reinterpret_cast<const TestArenaMap_MapInt32Int32Entry_DoNotUse*>(&_TestArenaMap_MapInt32Int32Entry_DoNotUse_default_instance_); }
  1572. void MergeFrom(const ::google::protobuf::Message& other) final;
  1573. ::google::protobuf::Metadata GetMetadata() const;
  1574. };
  1575. // -------------------------------------------------------------------
  1576. class TestArenaMap_MapInt64Int64Entry_DoNotUse : public ::google::protobuf::internal::MapEntry<TestArenaMap_MapInt64Int64Entry_DoNotUse,
  1577. ::google::protobuf::int64, ::google::protobuf::int64,
  1578. ::google::protobuf::internal::WireFormatLite::TYPE_INT64,
  1579. ::google::protobuf::internal::WireFormatLite::TYPE_INT64,
  1580. 0 > {
  1581. public:
  1582. typedef ::google::protobuf::internal::MapEntry<TestArenaMap_MapInt64Int64Entry_DoNotUse,
  1583. ::google::protobuf::int64, ::google::protobuf::int64,
  1584. ::google::protobuf::internal::WireFormatLite::TYPE_INT64,
  1585. ::google::protobuf::internal::WireFormatLite::TYPE_INT64,
  1586. 0 > SuperType;
  1587. TestArenaMap_MapInt64Int64Entry_DoNotUse();
  1588. TestArenaMap_MapInt64Int64Entry_DoNotUse(::google::protobuf::Arena* arena);
  1589. void MergeFrom(const TestArenaMap_MapInt64Int64Entry_DoNotUse& other);
  1590. static const TestArenaMap_MapInt64Int64Entry_DoNotUse* internal_default_instance() { return reinterpret_cast<const TestArenaMap_MapInt64Int64Entry_DoNotUse*>(&_TestArenaMap_MapInt64Int64Entry_DoNotUse_default_instance_); }
  1591. void MergeFrom(const ::google::protobuf::Message& other) final;
  1592. ::google::protobuf::Metadata GetMetadata() const;
  1593. };
  1594. // -------------------------------------------------------------------
  1595. class TestArenaMap_MapUint32Uint32Entry_DoNotUse : public ::google::protobuf::internal::MapEntry<TestArenaMap_MapUint32Uint32Entry_DoNotUse,
  1596. ::google::protobuf::uint32, ::google::protobuf::uint32,
  1597. ::google::protobuf::internal::WireFormatLite::TYPE_UINT32,
  1598. ::google::protobuf::internal::WireFormatLite::TYPE_UINT32,
  1599. 0 > {
  1600. public:
  1601. typedef ::google::protobuf::internal::MapEntry<TestArenaMap_MapUint32Uint32Entry_DoNotUse,
  1602. ::google::protobuf::uint32, ::google::protobuf::uint32,
  1603. ::google::protobuf::internal::WireFormatLite::TYPE_UINT32,
  1604. ::google::protobuf::internal::WireFormatLite::TYPE_UINT32,
  1605. 0 > SuperType;
  1606. TestArenaMap_MapUint32Uint32Entry_DoNotUse();
  1607. TestArenaMap_MapUint32Uint32Entry_DoNotUse(::google::protobuf::Arena* arena);
  1608. void MergeFrom(const TestArenaMap_MapUint32Uint32Entry_DoNotUse& other);
  1609. static const TestArenaMap_MapUint32Uint32Entry_DoNotUse* internal_default_instance() { return reinterpret_cast<const TestArenaMap_MapUint32Uint32Entry_DoNotUse*>(&_TestArenaMap_MapUint32Uint32Entry_DoNotUse_default_instance_); }
  1610. void MergeFrom(const ::google::protobuf::Message& other) final;
  1611. ::google::protobuf::Metadata GetMetadata() const;
  1612. };
  1613. // -------------------------------------------------------------------
  1614. class TestArenaMap_MapUint64Uint64Entry_DoNotUse : public ::google::protobuf::internal::MapEntry<TestArenaMap_MapUint64Uint64Entry_DoNotUse,
  1615. ::google::protobuf::uint64, ::google::protobuf::uint64,
  1616. ::google::protobuf::internal::WireFormatLite::TYPE_UINT64,
  1617. ::google::protobuf::internal::WireFormatLite::TYPE_UINT64,
  1618. 0 > {
  1619. public:
  1620. typedef ::google::protobuf::internal::MapEntry<TestArenaMap_MapUint64Uint64Entry_DoNotUse,
  1621. ::google::protobuf::uint64, ::google::protobuf::uint64,
  1622. ::google::protobuf::internal::WireFormatLite::TYPE_UINT64,
  1623. ::google::protobuf::internal::WireFormatLite::TYPE_UINT64,
  1624. 0 > SuperType;
  1625. TestArenaMap_MapUint64Uint64Entry_DoNotUse();
  1626. TestArenaMap_MapUint64Uint64Entry_DoNotUse(::google::protobuf::Arena* arena);
  1627. void MergeFrom(const TestArenaMap_MapUint64Uint64Entry_DoNotUse& other);
  1628. static const TestArenaMap_MapUint64Uint64Entry_DoNotUse* internal_default_instance() { return reinterpret_cast<const TestArenaMap_MapUint64Uint64Entry_DoNotUse*>(&_TestArenaMap_MapUint64Uint64Entry_DoNotUse_default_instance_); }
  1629. void MergeFrom(const ::google::protobuf::Message& other) final;
  1630. ::google::protobuf::Metadata GetMetadata() const;
  1631. };
  1632. // -------------------------------------------------------------------
  1633. class TestArenaMap_MapSint32Sint32Entry_DoNotUse : public ::google::protobuf::internal::MapEntry<TestArenaMap_MapSint32Sint32Entry_DoNotUse,
  1634. ::google::protobuf::int32, ::google::protobuf::int32,
  1635. ::google::protobuf::internal::WireFormatLite::TYPE_SINT32,
  1636. ::google::protobuf::internal::WireFormatLite::TYPE_SINT32,
  1637. 0 > {
  1638. public:
  1639. typedef ::google::protobuf::internal::MapEntry<TestArenaMap_MapSint32Sint32Entry_DoNotUse,
  1640. ::google::protobuf::int32, ::google::protobuf::int32,
  1641. ::google::protobuf::internal::WireFormatLite::TYPE_SINT32,
  1642. ::google::protobuf::internal::WireFormatLite::TYPE_SINT32,
  1643. 0 > SuperType;
  1644. TestArenaMap_MapSint32Sint32Entry_DoNotUse();
  1645. TestArenaMap_MapSint32Sint32Entry_DoNotUse(::google::protobuf::Arena* arena);
  1646. void MergeFrom(const TestArenaMap_MapSint32Sint32Entry_DoNotUse& other);
  1647. static const TestArenaMap_MapSint32Sint32Entry_DoNotUse* internal_default_instance() { return reinterpret_cast<const TestArenaMap_MapSint32Sint32Entry_DoNotUse*>(&_TestArenaMap_MapSint32Sint32Entry_DoNotUse_default_instance_); }
  1648. void MergeFrom(const ::google::protobuf::Message& other) final;
  1649. ::google::protobuf::Metadata GetMetadata() const;
  1650. };
  1651. // -------------------------------------------------------------------
  1652. class TestArenaMap_MapSint64Sint64Entry_DoNotUse : public ::google::protobuf::internal::MapEntry<TestArenaMap_MapSint64Sint64Entry_DoNotUse,
  1653. ::google::protobuf::int64, ::google::protobuf::int64,
  1654. ::google::protobuf::internal::WireFormatLite::TYPE_SINT64,
  1655. ::google::protobuf::internal::WireFormatLite::TYPE_SINT64,
  1656. 0 > {
  1657. public:
  1658. typedef ::google::protobuf::internal::MapEntry<TestArenaMap_MapSint64Sint64Entry_DoNotUse,
  1659. ::google::protobuf::int64, ::google::protobuf::int64,
  1660. ::google::protobuf::internal::WireFormatLite::TYPE_SINT64,
  1661. ::google::protobuf::internal::WireFormatLite::TYPE_SINT64,
  1662. 0 > SuperType;
  1663. TestArenaMap_MapSint64Sint64Entry_DoNotUse();
  1664. TestArenaMap_MapSint64Sint64Entry_DoNotUse(::google::protobuf::Arena* arena);
  1665. void MergeFrom(const TestArenaMap_MapSint64Sint64Entry_DoNotUse& other);
  1666. static const TestArenaMap_MapSint64Sint64Entry_DoNotUse* internal_default_instance() { return reinterpret_cast<const TestArenaMap_MapSint64Sint64Entry_DoNotUse*>(&_TestArenaMap_MapSint64Sint64Entry_DoNotUse_default_instance_); }
  1667. void MergeFrom(const ::google::protobuf::Message& other) final;
  1668. ::google::protobuf::Metadata GetMetadata() const;
  1669. };
  1670. // -------------------------------------------------------------------
  1671. class TestArenaMap_MapFixed32Fixed32Entry_DoNotUse : public ::google::protobuf::internal::MapEntry<TestArenaMap_MapFixed32Fixed32Entry_DoNotUse,
  1672. ::google::protobuf::uint32, ::google::protobuf::uint32,
  1673. ::google::protobuf::internal::WireFormatLite::TYPE_FIXED32,
  1674. ::google::protobuf::internal::WireFormatLite::TYPE_FIXED32,
  1675. 0 > {
  1676. public:
  1677. typedef ::google::protobuf::internal::MapEntry<TestArenaMap_MapFixed32Fixed32Entry_DoNotUse,
  1678. ::google::protobuf::uint32, ::google::protobuf::uint32,
  1679. ::google::protobuf::internal::WireFormatLite::TYPE_FIXED32,
  1680. ::google::protobuf::internal::WireFormatLite::TYPE_FIXED32,
  1681. 0 > SuperType;
  1682. TestArenaMap_MapFixed32Fixed32Entry_DoNotUse();
  1683. TestArenaMap_MapFixed32Fixed32Entry_DoNotUse(::google::protobuf::Arena* arena);
  1684. void MergeFrom(const TestArenaMap_MapFixed32Fixed32Entry_DoNotUse& other);
  1685. static const TestArenaMap_MapFixed32Fixed32Entry_DoNotUse* internal_default_instance() { return reinterpret_cast<const TestArenaMap_MapFixed32Fixed32Entry_DoNotUse*>(&_TestArenaMap_MapFixed32Fixed32Entry_DoNotUse_default_instance_); }
  1686. void MergeFrom(const ::google::protobuf::Message& other) final;
  1687. ::google::protobuf::Metadata GetMetadata() const;
  1688. };
  1689. // -------------------------------------------------------------------
  1690. class TestArenaMap_MapFixed64Fixed64Entry_DoNotUse : public ::google::protobuf::internal::MapEntry<TestArenaMap_MapFixed64Fixed64Entry_DoNotUse,
  1691. ::google::protobuf::uint64, ::google::protobuf::uint64,
  1692. ::google::protobuf::internal::WireFormatLite::TYPE_FIXED64,
  1693. ::google::protobuf::internal::WireFormatLite::TYPE_FIXED64,
  1694. 0 > {
  1695. public:
  1696. typedef ::google::protobuf::internal::MapEntry<TestArenaMap_MapFixed64Fixed64Entry_DoNotUse,
  1697. ::google::protobuf::uint64, ::google::protobuf::uint64,
  1698. ::google::protobuf::internal::WireFormatLite::TYPE_FIXED64,
  1699. ::google::protobuf::internal::WireFormatLite::TYPE_FIXED64,
  1700. 0 > SuperType;
  1701. TestArenaMap_MapFixed64Fixed64Entry_DoNotUse();
  1702. TestArenaMap_MapFixed64Fixed64Entry_DoNotUse(::google::protobuf::Arena* arena);
  1703. void MergeFrom(const TestArenaMap_MapFixed64Fixed64Entry_DoNotUse& other);
  1704. static const TestArenaMap_MapFixed64Fixed64Entry_DoNotUse* internal_default_instance() { return reinterpret_cast<const TestArenaMap_MapFixed64Fixed64Entry_DoNotUse*>(&_TestArenaMap_MapFixed64Fixed64Entry_DoNotUse_default_instance_); }
  1705. void MergeFrom(const ::google::protobuf::Message& other) final;
  1706. ::google::protobuf::Metadata GetMetadata() const;
  1707. };
  1708. // -------------------------------------------------------------------
  1709. class TestArenaMap_MapSfixed32Sfixed32Entry_DoNotUse : public ::google::protobuf::internal::MapEntry<TestArenaMap_MapSfixed32Sfixed32Entry_DoNotUse,
  1710. ::google::protobuf::int32, ::google::protobuf::int32,
  1711. ::google::protobuf::internal::WireFormatLite::TYPE_SFIXED32,
  1712. ::google::protobuf::internal::WireFormatLite::TYPE_SFIXED32,
  1713. 0 > {
  1714. public:
  1715. typedef ::google::protobuf::internal::MapEntry<TestArenaMap_MapSfixed32Sfixed32Entry_DoNotUse,
  1716. ::google::protobuf::int32, ::google::protobuf::int32,
  1717. ::google::protobuf::internal::WireFormatLite::TYPE_SFIXED32,
  1718. ::google::protobuf::internal::WireFormatLite::TYPE_SFIXED32,
  1719. 0 > SuperType;
  1720. TestArenaMap_MapSfixed32Sfixed32Entry_DoNotUse();
  1721. TestArenaMap_MapSfixed32Sfixed32Entry_DoNotUse(::google::protobuf::Arena* arena);
  1722. void MergeFrom(const TestArenaMap_MapSfixed32Sfixed32Entry_DoNotUse& other);
  1723. static const TestArenaMap_MapSfixed32Sfixed32Entry_DoNotUse* internal_default_instance() { return reinterpret_cast<const TestArenaMap_MapSfixed32Sfixed32Entry_DoNotUse*>(&_TestArenaMap_MapSfixed32Sfixed32Entry_DoNotUse_default_instance_); }
  1724. void MergeFrom(const ::google::protobuf::Message& other) final;
  1725. ::google::protobuf::Metadata GetMetadata() const;
  1726. };
  1727. // -------------------------------------------------------------------
  1728. class TestArenaMap_MapSfixed64Sfixed64Entry_DoNotUse : public ::google::protobuf::internal::MapEntry<TestArenaMap_MapSfixed64Sfixed64Entry_DoNotUse,
  1729. ::google::protobuf::int64, ::google::protobuf::int64,
  1730. ::google::protobuf::internal::WireFormatLite::TYPE_SFIXED64,
  1731. ::google::protobuf::internal::WireFormatLite::TYPE_SFIXED64,
  1732. 0 > {
  1733. public:
  1734. typedef ::google::protobuf::internal::MapEntry<TestArenaMap_MapSfixed64Sfixed64Entry_DoNotUse,
  1735. ::google::protobuf::int64, ::google::protobuf::int64,
  1736. ::google::protobuf::internal::WireFormatLite::TYPE_SFIXED64,
  1737. ::google::protobuf::internal::WireFormatLite::TYPE_SFIXED64,
  1738. 0 > SuperType;
  1739. TestArenaMap_MapSfixed64Sfixed64Entry_DoNotUse();
  1740. TestArenaMap_MapSfixed64Sfixed64Entry_DoNotUse(::google::protobuf::Arena* arena);
  1741. void MergeFrom(const TestArenaMap_MapSfixed64Sfixed64Entry_DoNotUse& other);
  1742. static const TestArenaMap_MapSfixed64Sfixed64Entry_DoNotUse* internal_default_instance() { return reinterpret_cast<const TestArenaMap_MapSfixed64Sfixed64Entry_DoNotUse*>(&_TestArenaMap_MapSfixed64Sfixed64Entry_DoNotUse_default_instance_); }
  1743. void MergeFrom(const ::google::protobuf::Message& other) final;
  1744. ::google::protobuf::Metadata GetMetadata() const;
  1745. };
  1746. // -------------------------------------------------------------------
  1747. class TestArenaMap_MapInt32FloatEntry_DoNotUse : public ::google::protobuf::internal::MapEntry<TestArenaMap_MapInt32FloatEntry_DoNotUse,
  1748. ::google::protobuf::int32, float,
  1749. ::google::protobuf::internal::WireFormatLite::TYPE_INT32,
  1750. ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT,
  1751. 0 > {
  1752. public:
  1753. typedef ::google::protobuf::internal::MapEntry<TestArenaMap_MapInt32FloatEntry_DoNotUse,
  1754. ::google::protobuf::int32, float,
  1755. ::google::protobuf::internal::WireFormatLite::TYPE_INT32,
  1756. ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT,
  1757. 0 > SuperType;
  1758. TestArenaMap_MapInt32FloatEntry_DoNotUse();
  1759. TestArenaMap_MapInt32FloatEntry_DoNotUse(::google::protobuf::Arena* arena);
  1760. void MergeFrom(const TestArenaMap_MapInt32FloatEntry_DoNotUse& other);
  1761. static const TestArenaMap_MapInt32FloatEntry_DoNotUse* internal_default_instance() { return reinterpret_cast<const TestArenaMap_MapInt32FloatEntry_DoNotUse*>(&_TestArenaMap_MapInt32FloatEntry_DoNotUse_default_instance_); }
  1762. void MergeFrom(const ::google::protobuf::Message& other) final;
  1763. ::google::protobuf::Metadata GetMetadata() const;
  1764. };
  1765. // -------------------------------------------------------------------
  1766. class TestArenaMap_MapInt32DoubleEntry_DoNotUse : public ::google::protobuf::internal::MapEntry<TestArenaMap_MapInt32DoubleEntry_DoNotUse,
  1767. ::google::protobuf::int32, double,
  1768. ::google::protobuf::internal::WireFormatLite::TYPE_INT32,
  1769. ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE,
  1770. 0 > {
  1771. public:
  1772. typedef ::google::protobuf::internal::MapEntry<TestArenaMap_MapInt32DoubleEntry_DoNotUse,
  1773. ::google::protobuf::int32, double,
  1774. ::google::protobuf::internal::WireFormatLite::TYPE_INT32,
  1775. ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE,
  1776. 0 > SuperType;
  1777. TestArenaMap_MapInt32DoubleEntry_DoNotUse();
  1778. TestArenaMap_MapInt32DoubleEntry_DoNotUse(::google::protobuf::Arena* arena);
  1779. void MergeFrom(const TestArenaMap_MapInt32DoubleEntry_DoNotUse& other);
  1780. static const TestArenaMap_MapInt32DoubleEntry_DoNotUse* internal_default_instance() { return reinterpret_cast<const TestArenaMap_MapInt32DoubleEntry_DoNotUse*>(&_TestArenaMap_MapInt32DoubleEntry_DoNotUse_default_instance_); }
  1781. void MergeFrom(const ::google::protobuf::Message& other) final;
  1782. ::google::protobuf::Metadata GetMetadata() const;
  1783. };
  1784. // -------------------------------------------------------------------
  1785. class TestArenaMap_MapBoolBoolEntry_DoNotUse : public ::google::protobuf::internal::MapEntry<TestArenaMap_MapBoolBoolEntry_DoNotUse,
  1786. bool, bool,
  1787. ::google::protobuf::internal::WireFormatLite::TYPE_BOOL,
  1788. ::google::protobuf::internal::WireFormatLite::TYPE_BOOL,
  1789. 0 > {
  1790. public:
  1791. typedef ::google::protobuf::internal::MapEntry<TestArenaMap_MapBoolBoolEntry_DoNotUse,
  1792. bool, bool,
  1793. ::google::protobuf::internal::WireFormatLite::TYPE_BOOL,
  1794. ::google::protobuf::internal::WireFormatLite::TYPE_BOOL,
  1795. 0 > SuperType;
  1796. TestArenaMap_MapBoolBoolEntry_DoNotUse();
  1797. TestArenaMap_MapBoolBoolEntry_DoNotUse(::google::protobuf::Arena* arena);
  1798. void MergeFrom(const TestArenaMap_MapBoolBoolEntry_DoNotUse& other);
  1799. static const TestArenaMap_MapBoolBoolEntry_DoNotUse* internal_default_instance() { return reinterpret_cast<const TestArenaMap_MapBoolBoolEntry_DoNotUse*>(&_TestArenaMap_MapBoolBoolEntry_DoNotUse_default_instance_); }
  1800. void MergeFrom(const ::google::protobuf::Message& other) final;
  1801. ::google::protobuf::Metadata GetMetadata() const;
  1802. };
  1803. // -------------------------------------------------------------------
  1804. class TestArenaMap_MapStringStringEntry_DoNotUse : public ::google::protobuf::internal::MapEntry<TestArenaMap_MapStringStringEntry_DoNotUse,
  1805. ::std::string, ::std::string,
  1806. ::google::protobuf::internal::WireFormatLite::TYPE_STRING,
  1807. ::google::protobuf::internal::WireFormatLite::TYPE_STRING,
  1808. 0 > {
  1809. public:
  1810. typedef ::google::protobuf::internal::MapEntry<TestArenaMap_MapStringStringEntry_DoNotUse,
  1811. ::std::string, ::std::string,
  1812. ::google::protobuf::internal::WireFormatLite::TYPE_STRING,
  1813. ::google::protobuf::internal::WireFormatLite::TYPE_STRING,
  1814. 0 > SuperType;
  1815. TestArenaMap_MapStringStringEntry_DoNotUse();
  1816. TestArenaMap_MapStringStringEntry_DoNotUse(::google::protobuf::Arena* arena);
  1817. void MergeFrom(const TestArenaMap_MapStringStringEntry_DoNotUse& other);
  1818. static const TestArenaMap_MapStringStringEntry_DoNotUse* internal_default_instance() { return reinterpret_cast<const TestArenaMap_MapStringStringEntry_DoNotUse*>(&_TestArenaMap_MapStringStringEntry_DoNotUse_default_instance_); }
  1819. void MergeFrom(const ::google::protobuf::Message& other) final;
  1820. ::google::protobuf::Metadata GetMetadata() const;
  1821. };
  1822. // -------------------------------------------------------------------
  1823. class TestArenaMap_MapInt32BytesEntry_DoNotUse : public ::google::protobuf::internal::MapEntry<TestArenaMap_MapInt32BytesEntry_DoNotUse,
  1824. ::google::protobuf::int32, ::std::string,
  1825. ::google::protobuf::internal::WireFormatLite::TYPE_INT32,
  1826. ::google::protobuf::internal::WireFormatLite::TYPE_BYTES,
  1827. 0 > {
  1828. public:
  1829. typedef ::google::protobuf::internal::MapEntry<TestArenaMap_MapInt32BytesEntry_DoNotUse,
  1830. ::google::protobuf::int32, ::std::string,
  1831. ::google::protobuf::internal::WireFormatLite::TYPE_INT32,
  1832. ::google::protobuf::internal::WireFormatLite::TYPE_BYTES,
  1833. 0 > SuperType;
  1834. TestArenaMap_MapInt32BytesEntry_DoNotUse();
  1835. TestArenaMap_MapInt32BytesEntry_DoNotUse(::google::protobuf::Arena* arena);
  1836. void MergeFrom(const TestArenaMap_MapInt32BytesEntry_DoNotUse& other);
  1837. static const TestArenaMap_MapInt32BytesEntry_DoNotUse* internal_default_instance() { return reinterpret_cast<const TestArenaMap_MapInt32BytesEntry_DoNotUse*>(&_TestArenaMap_MapInt32BytesEntry_DoNotUse_default_instance_); }
  1838. void MergeFrom(const ::google::protobuf::Message& other) final;
  1839. ::google::protobuf::Metadata GetMetadata() const;
  1840. };
  1841. // -------------------------------------------------------------------
  1842. class TestArenaMap_MapInt32EnumEntry_DoNotUse : public ::google::protobuf::internal::MapEntry<TestArenaMap_MapInt32EnumEntry_DoNotUse,
  1843. ::google::protobuf::int32, ::protobuf_unittest::MapEnum,
  1844. ::google::protobuf::internal::WireFormatLite::TYPE_INT32,
  1845. ::google::protobuf::internal::WireFormatLite::TYPE_ENUM,
  1846. 0 > {
  1847. public:
  1848. typedef ::google::protobuf::internal::MapEntry<TestArenaMap_MapInt32EnumEntry_DoNotUse,
  1849. ::google::protobuf::int32, ::protobuf_unittest::MapEnum,
  1850. ::google::protobuf::internal::WireFormatLite::TYPE_INT32,
  1851. ::google::protobuf::internal::WireFormatLite::TYPE_ENUM,
  1852. 0 > SuperType;
  1853. TestArenaMap_MapInt32EnumEntry_DoNotUse();
  1854. TestArenaMap_MapInt32EnumEntry_DoNotUse(::google::protobuf::Arena* arena);
  1855. void MergeFrom(const TestArenaMap_MapInt32EnumEntry_DoNotUse& other);
  1856. static const TestArenaMap_MapInt32EnumEntry_DoNotUse* internal_default_instance() { return reinterpret_cast<const TestArenaMap_MapInt32EnumEntry_DoNotUse*>(&_TestArenaMap_MapInt32EnumEntry_DoNotUse_default_instance_); }
  1857. void MergeFrom(const ::google::protobuf::Message& other) final;
  1858. ::google::protobuf::Metadata GetMetadata() const;
  1859. };
  1860. // -------------------------------------------------------------------
  1861. class TestArenaMap_MapInt32ForeignMessageEntry_DoNotUse : public ::google::protobuf::internal::MapEntry<TestArenaMap_MapInt32ForeignMessageEntry_DoNotUse,
  1862. ::google::protobuf::int32, ::protobuf_unittest::ForeignMessage,
  1863. ::google::protobuf::internal::WireFormatLite::TYPE_INT32,
  1864. ::google::protobuf::internal::WireFormatLite::TYPE_MESSAGE,
  1865. 0 > {
  1866. public:
  1867. typedef ::google::protobuf::internal::MapEntry<TestArenaMap_MapInt32ForeignMessageEntry_DoNotUse,
  1868. ::google::protobuf::int32, ::protobuf_unittest::ForeignMessage,
  1869. ::google::protobuf::internal::WireFormatLite::TYPE_INT32,
  1870. ::google::protobuf::internal::WireFormatLite::TYPE_MESSAGE,
  1871. 0 > SuperType;
  1872. TestArenaMap_MapInt32ForeignMessageEntry_DoNotUse();
  1873. TestArenaMap_MapInt32ForeignMessageEntry_DoNotUse(::google::protobuf::Arena* arena);
  1874. void MergeFrom(const TestArenaMap_MapInt32ForeignMessageEntry_DoNotUse& other);
  1875. static const TestArenaMap_MapInt32ForeignMessageEntry_DoNotUse* internal_default_instance() { return reinterpret_cast<const TestArenaMap_MapInt32ForeignMessageEntry_DoNotUse*>(&_TestArenaMap_MapInt32ForeignMessageEntry_DoNotUse_default_instance_); }
  1876. void MergeFrom(const ::google::protobuf::Message& other) final;
  1877. ::google::protobuf::Metadata GetMetadata() const;
  1878. };
  1879. // -------------------------------------------------------------------
  1880. class TestArenaMap_MapInt32ForeignMessageNoArenaEntry_DoNotUse : public ::google::protobuf::internal::MapEntry<TestArenaMap_MapInt32ForeignMessageNoArenaEntry_DoNotUse,
  1881. ::google::protobuf::int32, ::protobuf_unittest_no_arena::ForeignMessage,
  1882. ::google::protobuf::internal::WireFormatLite::TYPE_INT32,
  1883. ::google::protobuf::internal::WireFormatLite::TYPE_MESSAGE,
  1884. 0 > {
  1885. public:
  1886. typedef ::google::protobuf::internal::MapEntry<TestArenaMap_MapInt32ForeignMessageNoArenaEntry_DoNotUse,
  1887. ::google::protobuf::int32, ::protobuf_unittest_no_arena::ForeignMessage,
  1888. ::google::protobuf::internal::WireFormatLite::TYPE_INT32,
  1889. ::google::protobuf::internal::WireFormatLite::TYPE_MESSAGE,
  1890. 0 > SuperType;
  1891. TestArenaMap_MapInt32ForeignMessageNoArenaEntry_DoNotUse();
  1892. TestArenaMap_MapInt32ForeignMessageNoArenaEntry_DoNotUse(::google::protobuf::Arena* arena);
  1893. void MergeFrom(const TestArenaMap_MapInt32ForeignMessageNoArenaEntry_DoNotUse& other);
  1894. static const TestArenaMap_MapInt32ForeignMessageNoArenaEntry_DoNotUse* internal_default_instance() { return reinterpret_cast<const TestArenaMap_MapInt32ForeignMessageNoArenaEntry_DoNotUse*>(&_TestArenaMap_MapInt32ForeignMessageNoArenaEntry_DoNotUse_default_instance_); }
  1895. void MergeFrom(const ::google::protobuf::Message& other) final;
  1896. ::google::protobuf::Metadata GetMetadata() const;
  1897. };
  1898. // -------------------------------------------------------------------
  1899. class TestArenaMap : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:protobuf_unittest.TestArenaMap) */ {
  1900. public:
  1901. TestArenaMap();
  1902. virtual ~TestArenaMap();
  1903. TestArenaMap(const TestArenaMap& from);
  1904. inline TestArenaMap& operator=(const TestArenaMap& from) {
  1905. CopyFrom(from);
  1906. return *this;
  1907. }
  1908. #if LANG_CXX11
  1909. TestArenaMap(TestArenaMap&& from) noexcept
  1910. : TestArenaMap() {
  1911. *this = ::std::move(from);
  1912. }
  1913. inline TestArenaMap& operator=(TestArenaMap&& from) noexcept {
  1914. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  1915. if (this != &from) InternalSwap(&from);
  1916. } else {
  1917. CopyFrom(from);
  1918. }
  1919. return *this;
  1920. }
  1921. #endif
  1922. inline ::google::protobuf::Arena* GetArena() const final {
  1923. return GetArenaNoVirtual();
  1924. }
  1925. inline void* GetMaybeArenaPointer() const final {
  1926. return MaybeArenaPtr();
  1927. }
  1928. static const ::google::protobuf::Descriptor* descriptor();
  1929. static const TestArenaMap& default_instance();
  1930. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  1931. static inline const TestArenaMap* internal_default_instance() {
  1932. return reinterpret_cast<const TestArenaMap*>(
  1933. &_TestArenaMap_default_instance_);
  1934. }
  1935. static constexpr int kIndexInFileMessages =
  1936. 46;
  1937. void UnsafeArenaSwap(TestArenaMap* other);
  1938. void Swap(TestArenaMap* other);
  1939. friend void swap(TestArenaMap& a, TestArenaMap& b) {
  1940. a.Swap(&b);
  1941. }
  1942. // implements Message ----------------------------------------------
  1943. inline TestArenaMap* New() const final {
  1944. return CreateMaybeMessage<TestArenaMap>(NULL);
  1945. }
  1946. TestArenaMap* New(::google::protobuf::Arena* arena) const final {
  1947. return CreateMaybeMessage<TestArenaMap>(arena);
  1948. }
  1949. void CopyFrom(const ::google::protobuf::Message& from) final;
  1950. void MergeFrom(const ::google::protobuf::Message& from) final;
  1951. void CopyFrom(const TestArenaMap& from);
  1952. void MergeFrom(const TestArenaMap& from);
  1953. void Clear() final;
  1954. bool IsInitialized() const final;
  1955. size_t ByteSizeLong() const final;
  1956. bool MergePartialFromCodedStream(
  1957. ::google::protobuf::io::CodedInputStream* input) final;
  1958. void SerializeWithCachedSizes(
  1959. ::google::protobuf::io::CodedOutputStream* output) const final;
  1960. ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
  1961. bool deterministic, ::google::protobuf::uint8* target) const final;
  1962. int GetCachedSize() const final { return _cached_size_.Get(); }
  1963. private:
  1964. void SharedCtor();
  1965. void SharedDtor();
  1966. void SetCachedSize(int size) const final;
  1967. void InternalSwap(TestArenaMap* other);
  1968. protected:
  1969. explicit TestArenaMap(::google::protobuf::Arena* arena);
  1970. private:
  1971. static void ArenaDtor(void* object);
  1972. inline void RegisterArenaDtor(::google::protobuf::Arena* arena);
  1973. private:
  1974. inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
  1975. return _internal_metadata_.arena();
  1976. }
  1977. inline void* MaybeArenaPtr() const {
  1978. return _internal_metadata_.raw_arena_ptr();
  1979. }
  1980. public:
  1981. ::google::protobuf::Metadata GetMetadata() const final;
  1982. // nested types ----------------------------------------------------
  1983. // accessors -------------------------------------------------------
  1984. // map<int32, int32> map_int32_int32 = 1;
  1985. int map_int32_int32_size() const;
  1986. void clear_map_int32_int32();
  1987. static const int kMapInt32Int32FieldNumber = 1;
  1988. const ::google::protobuf::Map< ::google::protobuf::int32, ::google::protobuf::int32 >&
  1989. map_int32_int32() const;
  1990. ::google::protobuf::Map< ::google::protobuf::int32, ::google::protobuf::int32 >*
  1991. mutable_map_int32_int32();
  1992. // map<int64, int64> map_int64_int64 = 2;
  1993. int map_int64_int64_size() const;
  1994. void clear_map_int64_int64();
  1995. static const int kMapInt64Int64FieldNumber = 2;
  1996. const ::google::protobuf::Map< ::google::protobuf::int64, ::google::protobuf::int64 >&
  1997. map_int64_int64() const;
  1998. ::google::protobuf::Map< ::google::protobuf::int64, ::google::protobuf::int64 >*
  1999. mutable_map_int64_int64();
  2000. // map<uint32, uint32> map_uint32_uint32 = 3;
  2001. int map_uint32_uint32_size() const;
  2002. void clear_map_uint32_uint32();
  2003. static const int kMapUint32Uint32FieldNumber = 3;
  2004. const ::google::protobuf::Map< ::google::protobuf::uint32, ::google::protobuf::uint32 >&
  2005. map_uint32_uint32() const;
  2006. ::google::protobuf::Map< ::google::protobuf::uint32, ::google::protobuf::uint32 >*
  2007. mutable_map_uint32_uint32();
  2008. // map<uint64, uint64> map_uint64_uint64 = 4;
  2009. int map_uint64_uint64_size() const;
  2010. void clear_map_uint64_uint64();
  2011. static const int kMapUint64Uint64FieldNumber = 4;
  2012. const ::google::protobuf::Map< ::google::protobuf::uint64, ::google::protobuf::uint64 >&
  2013. map_uint64_uint64() const;
  2014. ::google::protobuf::Map< ::google::protobuf::uint64, ::google::protobuf::uint64 >*
  2015. mutable_map_uint64_uint64();
  2016. // map<sint32, sint32> map_sint32_sint32 = 5;
  2017. int map_sint32_sint32_size() const;
  2018. void clear_map_sint32_sint32();
  2019. static const int kMapSint32Sint32FieldNumber = 5;
  2020. const ::google::protobuf::Map< ::google::protobuf::int32, ::google::protobuf::int32 >&
  2021. map_sint32_sint32() const;
  2022. ::google::protobuf::Map< ::google::protobuf::int32, ::google::protobuf::int32 >*
  2023. mutable_map_sint32_sint32();
  2024. // map<sint64, sint64> map_sint64_sint64 = 6;
  2025. int map_sint64_sint64_size() const;
  2026. void clear_map_sint64_sint64();
  2027. static const int kMapSint64Sint64FieldNumber = 6;
  2028. const ::google::protobuf::Map< ::google::protobuf::int64, ::google::protobuf::int64 >&
  2029. map_sint64_sint64() const;
  2030. ::google::protobuf::Map< ::google::protobuf::int64, ::google::protobuf::int64 >*
  2031. mutable_map_sint64_sint64();
  2032. // map<fixed32, fixed32> map_fixed32_fixed32 = 7;
  2033. int map_fixed32_fixed32_size() const;
  2034. void clear_map_fixed32_fixed32();
  2035. static const int kMapFixed32Fixed32FieldNumber = 7;
  2036. const ::google::protobuf::Map< ::google::protobuf::uint32, ::google::protobuf::uint32 >&
  2037. map_fixed32_fixed32() const;
  2038. ::google::protobuf::Map< ::google::protobuf::uint32, ::google::protobuf::uint32 >*
  2039. mutable_map_fixed32_fixed32();
  2040. // map<fixed64, fixed64> map_fixed64_fixed64 = 8;
  2041. int map_fixed64_fixed64_size() const;
  2042. void clear_map_fixed64_fixed64();
  2043. static const int kMapFixed64Fixed64FieldNumber = 8;
  2044. const ::google::protobuf::Map< ::google::protobuf::uint64, ::google::protobuf::uint64 >&
  2045. map_fixed64_fixed64() const;
  2046. ::google::protobuf::Map< ::google::protobuf::uint64, ::google::protobuf::uint64 >*
  2047. mutable_map_fixed64_fixed64();
  2048. // map<sfixed32, sfixed32> map_sfixed32_sfixed32 = 9;
  2049. int map_sfixed32_sfixed32_size() const;
  2050. void clear_map_sfixed32_sfixed32();
  2051. static const int kMapSfixed32Sfixed32FieldNumber = 9;
  2052. const ::google::protobuf::Map< ::google::protobuf::int32, ::google::protobuf::int32 >&
  2053. map_sfixed32_sfixed32() const;
  2054. ::google::protobuf::Map< ::google::protobuf::int32, ::google::protobuf::int32 >*
  2055. mutable_map_sfixed32_sfixed32();
  2056. // map<sfixed64, sfixed64> map_sfixed64_sfixed64 = 10;
  2057. int map_sfixed64_sfixed64_size() const;
  2058. void clear_map_sfixed64_sfixed64();
  2059. static const int kMapSfixed64Sfixed64FieldNumber = 10;
  2060. const ::google::protobuf::Map< ::google::protobuf::int64, ::google::protobuf::int64 >&
  2061. map_sfixed64_sfixed64() const;
  2062. ::google::protobuf::Map< ::google::protobuf::int64, ::google::protobuf::int64 >*
  2063. mutable_map_sfixed64_sfixed64();
  2064. // map<int32, float> map_int32_float = 11;
  2065. int map_int32_float_size() const;
  2066. void clear_map_int32_float();
  2067. static const int kMapInt32FloatFieldNumber = 11;
  2068. const ::google::protobuf::Map< ::google::protobuf::int32, float >&
  2069. map_int32_float() const;
  2070. ::google::protobuf::Map< ::google::protobuf::int32, float >*
  2071. mutable_map_int32_float();
  2072. // map<int32, double> map_int32_double = 12;
  2073. int map_int32_double_size() const;
  2074. void clear_map_int32_double();
  2075. static const int kMapInt32DoubleFieldNumber = 12;
  2076. const ::google::protobuf::Map< ::google::protobuf::int32, double >&
  2077. map_int32_double() const;
  2078. ::google::protobuf::Map< ::google::protobuf::int32, double >*
  2079. mutable_map_int32_double();
  2080. // map<bool, bool> map_bool_bool = 13;
  2081. int map_bool_bool_size() const;
  2082. void clear_map_bool_bool();
  2083. static const int kMapBoolBoolFieldNumber = 13;
  2084. const ::google::protobuf::Map< bool, bool >&
  2085. map_bool_bool() const;
  2086. ::google::protobuf::Map< bool, bool >*
  2087. mutable_map_bool_bool();
  2088. // map<string, string> map_string_string = 14;
  2089. int map_string_string_size() const;
  2090. void clear_map_string_string();
  2091. static const int kMapStringStringFieldNumber = 14;
  2092. const ::google::protobuf::Map< ::std::string, ::std::string >&
  2093. map_string_string() const;
  2094. ::google::protobuf::Map< ::std::string, ::std::string >*
  2095. mutable_map_string_string();
  2096. // map<int32, bytes> map_int32_bytes = 15;
  2097. int map_int32_bytes_size() const;
  2098. void clear_map_int32_bytes();
  2099. static const int kMapInt32BytesFieldNumber = 15;
  2100. const ::google::protobuf::Map< ::google::protobuf::int32, ::std::string >&
  2101. map_int32_bytes() const;
  2102. ::google::protobuf::Map< ::google::protobuf::int32, ::std::string >*
  2103. mutable_map_int32_bytes();
  2104. // map<int32, .protobuf_unittest.MapEnum> map_int32_enum = 16;
  2105. int map_int32_enum_size() const;
  2106. void clear_map_int32_enum();
  2107. static const int kMapInt32EnumFieldNumber = 16;
  2108. const ::google::protobuf::Map< ::google::protobuf::int32, ::protobuf_unittest::MapEnum >&
  2109. map_int32_enum() const;
  2110. ::google::protobuf::Map< ::google::protobuf::int32, ::protobuf_unittest::MapEnum >*
  2111. mutable_map_int32_enum();
  2112. // map<int32, .protobuf_unittest.ForeignMessage> map_int32_foreign_message = 17;
  2113. int map_int32_foreign_message_size() const;
  2114. void clear_map_int32_foreign_message();
  2115. static const int kMapInt32ForeignMessageFieldNumber = 17;
  2116. const ::google::protobuf::Map< ::google::protobuf::int32, ::protobuf_unittest::ForeignMessage >&
  2117. map_int32_foreign_message() const;
  2118. ::google::protobuf::Map< ::google::protobuf::int32, ::protobuf_unittest::ForeignMessage >*
  2119. mutable_map_int32_foreign_message();
  2120. // map<int32, .protobuf_unittest_no_arena.ForeignMessage> map_int32_foreign_message_no_arena = 18;
  2121. int map_int32_foreign_message_no_arena_size() const;
  2122. void clear_map_int32_foreign_message_no_arena();
  2123. static const int kMapInt32ForeignMessageNoArenaFieldNumber = 18;
  2124. const ::google::protobuf::Map< ::google::protobuf::int32, ::protobuf_unittest_no_arena::ForeignMessage >&
  2125. map_int32_foreign_message_no_arena() const;
  2126. ::google::protobuf::Map< ::google::protobuf::int32, ::protobuf_unittest_no_arena::ForeignMessage >*
  2127. mutable_map_int32_foreign_message_no_arena();
  2128. // @@protoc_insertion_point(class_scope:protobuf_unittest.TestArenaMap)
  2129. private:
  2130. ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
  2131. template <typename T> friend class ::google::protobuf::Arena::InternalHelper;
  2132. typedef void InternalArenaConstructable_;
  2133. typedef void DestructorSkippable_;
  2134. ::google::protobuf::internal::MapField<
  2135. TestArenaMap_MapInt32Int32Entry_DoNotUse,
  2136. ::google::protobuf::int32, ::google::protobuf::int32,
  2137. ::google::protobuf::internal::WireFormatLite::TYPE_INT32,
  2138. ::google::protobuf::internal::WireFormatLite::TYPE_INT32,
  2139. 0 > map_int32_int32_;
  2140. ::google::protobuf::internal::MapField<
  2141. TestArenaMap_MapInt64Int64Entry_DoNotUse,
  2142. ::google::protobuf::int64, ::google::protobuf::int64,
  2143. ::google::protobuf::internal::WireFormatLite::TYPE_INT64,
  2144. ::google::protobuf::internal::WireFormatLite::TYPE_INT64,
  2145. 0 > map_int64_int64_;
  2146. ::google::protobuf::internal::MapField<
  2147. TestArenaMap_MapUint32Uint32Entry_DoNotUse,
  2148. ::google::protobuf::uint32, ::google::protobuf::uint32,
  2149. ::google::protobuf::internal::WireFormatLite::TYPE_UINT32,
  2150. ::google::protobuf::internal::WireFormatLite::TYPE_UINT32,
  2151. 0 > map_uint32_uint32_;
  2152. ::google::protobuf::internal::MapField<
  2153. TestArenaMap_MapUint64Uint64Entry_DoNotUse,
  2154. ::google::protobuf::uint64, ::google::protobuf::uint64,
  2155. ::google::protobuf::internal::WireFormatLite::TYPE_UINT64,
  2156. ::google::protobuf::internal::WireFormatLite::TYPE_UINT64,
  2157. 0 > map_uint64_uint64_;
  2158. ::google::protobuf::internal::MapField<
  2159. TestArenaMap_MapSint32Sint32Entry_DoNotUse,
  2160. ::google::protobuf::int32, ::google::protobuf::int32,
  2161. ::google::protobuf::internal::WireFormatLite::TYPE_SINT32,
  2162. ::google::protobuf::internal::WireFormatLite::TYPE_SINT32,
  2163. 0 > map_sint32_sint32_;
  2164. ::google::protobuf::internal::MapField<
  2165. TestArenaMap_MapSint64Sint64Entry_DoNotUse,
  2166. ::google::protobuf::int64, ::google::protobuf::int64,
  2167. ::google::protobuf::internal::WireFormatLite::TYPE_SINT64,
  2168. ::google::protobuf::internal::WireFormatLite::TYPE_SINT64,
  2169. 0 > map_sint64_sint64_;
  2170. ::google::protobuf::internal::MapField<
  2171. TestArenaMap_MapFixed32Fixed32Entry_DoNotUse,
  2172. ::google::protobuf::uint32, ::google::protobuf::uint32,
  2173. ::google::protobuf::internal::WireFormatLite::TYPE_FIXED32,
  2174. ::google::protobuf::internal::WireFormatLite::TYPE_FIXED32,
  2175. 0 > map_fixed32_fixed32_;
  2176. ::google::protobuf::internal::MapField<
  2177. TestArenaMap_MapFixed64Fixed64Entry_DoNotUse,
  2178. ::google::protobuf::uint64, ::google::protobuf::uint64,
  2179. ::google::protobuf::internal::WireFormatLite::TYPE_FIXED64,
  2180. ::google::protobuf::internal::WireFormatLite::TYPE_FIXED64,
  2181. 0 > map_fixed64_fixed64_;
  2182. ::google::protobuf::internal::MapField<
  2183. TestArenaMap_MapSfixed32Sfixed32Entry_DoNotUse,
  2184. ::google::protobuf::int32, ::google::protobuf::int32,
  2185. ::google::protobuf::internal::WireFormatLite::TYPE_SFIXED32,
  2186. ::google::protobuf::internal::WireFormatLite::TYPE_SFIXED32,
  2187. 0 > map_sfixed32_sfixed32_;
  2188. ::google::protobuf::internal::MapField<
  2189. TestArenaMap_MapSfixed64Sfixed64Entry_DoNotUse,
  2190. ::google::protobuf::int64, ::google::protobuf::int64,
  2191. ::google::protobuf::internal::WireFormatLite::TYPE_SFIXED64,
  2192. ::google::protobuf::internal::WireFormatLite::TYPE_SFIXED64,
  2193. 0 > map_sfixed64_sfixed64_;
  2194. ::google::protobuf::internal::MapField<
  2195. TestArenaMap_MapInt32FloatEntry_DoNotUse,
  2196. ::google::protobuf::int32, float,
  2197. ::google::protobuf::internal::WireFormatLite::TYPE_INT32,
  2198. ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT,
  2199. 0 > map_int32_float_;
  2200. ::google::protobuf::internal::MapField<
  2201. TestArenaMap_MapInt32DoubleEntry_DoNotUse,
  2202. ::google::protobuf::int32, double,
  2203. ::google::protobuf::internal::WireFormatLite::TYPE_INT32,
  2204. ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE,
  2205. 0 > map_int32_double_;
  2206. ::google::protobuf::internal::MapField<
  2207. TestArenaMap_MapBoolBoolEntry_DoNotUse,
  2208. bool, bool,
  2209. ::google::protobuf::internal::WireFormatLite::TYPE_BOOL,
  2210. ::google::protobuf::internal::WireFormatLite::TYPE_BOOL,
  2211. 0 > map_bool_bool_;
  2212. ::google::protobuf::internal::MapField<
  2213. TestArenaMap_MapStringStringEntry_DoNotUse,
  2214. ::std::string, ::std::string,
  2215. ::google::protobuf::internal::WireFormatLite::TYPE_STRING,
  2216. ::google::protobuf::internal::WireFormatLite::TYPE_STRING,
  2217. 0 > map_string_string_;
  2218. ::google::protobuf::internal::MapField<
  2219. TestArenaMap_MapInt32BytesEntry_DoNotUse,
  2220. ::google::protobuf::int32, ::std::string,
  2221. ::google::protobuf::internal::WireFormatLite::TYPE_INT32,
  2222. ::google::protobuf::internal::WireFormatLite::TYPE_BYTES,
  2223. 0 > map_int32_bytes_;
  2224. ::google::protobuf::internal::MapField<
  2225. TestArenaMap_MapInt32EnumEntry_DoNotUse,
  2226. ::google::protobuf::int32, ::protobuf_unittest::MapEnum,
  2227. ::google::protobuf::internal::WireFormatLite::TYPE_INT32,
  2228. ::google::protobuf::internal::WireFormatLite::TYPE_ENUM,
  2229. 0 > map_int32_enum_;
  2230. ::google::protobuf::internal::MapField<
  2231. TestArenaMap_MapInt32ForeignMessageEntry_DoNotUse,
  2232. ::google::protobuf::int32, ::protobuf_unittest::ForeignMessage,
  2233. ::google::protobuf::internal::WireFormatLite::TYPE_INT32,
  2234. ::google::protobuf::internal::WireFormatLite::TYPE_MESSAGE,
  2235. 0 > map_int32_foreign_message_;
  2236. ::google::protobuf::internal::MapField<
  2237. TestArenaMap_MapInt32ForeignMessageNoArenaEntry_DoNotUse,
  2238. ::google::protobuf::int32, ::protobuf_unittest_no_arena::ForeignMessage,
  2239. ::google::protobuf::internal::WireFormatLite::TYPE_INT32,
  2240. ::google::protobuf::internal::WireFormatLite::TYPE_MESSAGE,
  2241. 0 > map_int32_foreign_message_no_arena_;
  2242. mutable ::google::protobuf::internal::CachedSize _cached_size_;
  2243. friend struct ::protobuf_google_2fprotobuf_2fmap_5funittest_2eproto::TableStruct;
  2244. };
  2245. // -------------------------------------------------------------------
  2246. class MessageContainingEnumCalledType_TypeEntry_DoNotUse : public ::google::protobuf::internal::MapEntry<MessageContainingEnumCalledType_TypeEntry_DoNotUse,
  2247. ::std::string, ::protobuf_unittest::MessageContainingEnumCalledType,
  2248. ::google::protobuf::internal::WireFormatLite::TYPE_STRING,
  2249. ::google::protobuf::internal::WireFormatLite::TYPE_MESSAGE,
  2250. 0 > {
  2251. public:
  2252. typedef ::google::protobuf::internal::MapEntry<MessageContainingEnumCalledType_TypeEntry_DoNotUse,
  2253. ::std::string, ::protobuf_unittest::MessageContainingEnumCalledType,
  2254. ::google::protobuf::internal::WireFormatLite::TYPE_STRING,
  2255. ::google::protobuf::internal::WireFormatLite::TYPE_MESSAGE,
  2256. 0 > SuperType;
  2257. MessageContainingEnumCalledType_TypeEntry_DoNotUse();
  2258. MessageContainingEnumCalledType_TypeEntry_DoNotUse(::google::protobuf::Arena* arena);
  2259. void MergeFrom(const MessageContainingEnumCalledType_TypeEntry_DoNotUse& other);
  2260. static const MessageContainingEnumCalledType_TypeEntry_DoNotUse* internal_default_instance() { return reinterpret_cast<const MessageContainingEnumCalledType_TypeEntry_DoNotUse*>(&_MessageContainingEnumCalledType_TypeEntry_DoNotUse_default_instance_); }
  2261. void MergeFrom(const ::google::protobuf::Message& other) final;
  2262. ::google::protobuf::Metadata GetMetadata() const;
  2263. };
  2264. // -------------------------------------------------------------------
  2265. class MessageContainingEnumCalledType : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:protobuf_unittest.MessageContainingEnumCalledType) */ {
  2266. public:
  2267. MessageContainingEnumCalledType();
  2268. virtual ~MessageContainingEnumCalledType();
  2269. MessageContainingEnumCalledType(const MessageContainingEnumCalledType& from);
  2270. inline MessageContainingEnumCalledType& operator=(const MessageContainingEnumCalledType& from) {
  2271. CopyFrom(from);
  2272. return *this;
  2273. }
  2274. #if LANG_CXX11
  2275. MessageContainingEnumCalledType(MessageContainingEnumCalledType&& from) noexcept
  2276. : MessageContainingEnumCalledType() {
  2277. *this = ::std::move(from);
  2278. }
  2279. inline MessageContainingEnumCalledType& operator=(MessageContainingEnumCalledType&& from) noexcept {
  2280. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  2281. if (this != &from) InternalSwap(&from);
  2282. } else {
  2283. CopyFrom(from);
  2284. }
  2285. return *this;
  2286. }
  2287. #endif
  2288. inline ::google::protobuf::Arena* GetArena() const final {
  2289. return GetArenaNoVirtual();
  2290. }
  2291. inline void* GetMaybeArenaPointer() const final {
  2292. return MaybeArenaPtr();
  2293. }
  2294. static const ::google::protobuf::Descriptor* descriptor();
  2295. static const MessageContainingEnumCalledType& default_instance();
  2296. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  2297. static inline const MessageContainingEnumCalledType* internal_default_instance() {
  2298. return reinterpret_cast<const MessageContainingEnumCalledType*>(
  2299. &_MessageContainingEnumCalledType_default_instance_);
  2300. }
  2301. static constexpr int kIndexInFileMessages =
  2302. 48;
  2303. void UnsafeArenaSwap(MessageContainingEnumCalledType* other);
  2304. void Swap(MessageContainingEnumCalledType* other);
  2305. friend void swap(MessageContainingEnumCalledType& a, MessageContainingEnumCalledType& b) {
  2306. a.Swap(&b);
  2307. }
  2308. // implements Message ----------------------------------------------
  2309. inline MessageContainingEnumCalledType* New() const final {
  2310. return CreateMaybeMessage<MessageContainingEnumCalledType>(NULL);
  2311. }
  2312. MessageContainingEnumCalledType* New(::google::protobuf::Arena* arena) const final {
  2313. return CreateMaybeMessage<MessageContainingEnumCalledType>(arena);
  2314. }
  2315. void CopyFrom(const ::google::protobuf::Message& from) final;
  2316. void MergeFrom(const ::google::protobuf::Message& from) final;
  2317. void CopyFrom(const MessageContainingEnumCalledType& from);
  2318. void MergeFrom(const MessageContainingEnumCalledType& from);
  2319. void Clear() final;
  2320. bool IsInitialized() const final;
  2321. size_t ByteSizeLong() const final;
  2322. bool MergePartialFromCodedStream(
  2323. ::google::protobuf::io::CodedInputStream* input) final;
  2324. void SerializeWithCachedSizes(
  2325. ::google::protobuf::io::CodedOutputStream* output) const final;
  2326. ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
  2327. bool deterministic, ::google::protobuf::uint8* target) const final;
  2328. int GetCachedSize() const final { return _cached_size_.Get(); }
  2329. private:
  2330. void SharedCtor();
  2331. void SharedDtor();
  2332. void SetCachedSize(int size) const final;
  2333. void InternalSwap(MessageContainingEnumCalledType* other);
  2334. protected:
  2335. explicit MessageContainingEnumCalledType(::google::protobuf::Arena* arena);
  2336. private:
  2337. static void ArenaDtor(void* object);
  2338. inline void RegisterArenaDtor(::google::protobuf::Arena* arena);
  2339. private:
  2340. inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
  2341. return _internal_metadata_.arena();
  2342. }
  2343. inline void* MaybeArenaPtr() const {
  2344. return _internal_metadata_.raw_arena_ptr();
  2345. }
  2346. public:
  2347. ::google::protobuf::Metadata GetMetadata() const final;
  2348. // nested types ----------------------------------------------------
  2349. typedef MessageContainingEnumCalledType_Type Type;
  2350. static const Type TYPE_FOO =
  2351. MessageContainingEnumCalledType_Type_TYPE_FOO;
  2352. static inline bool Type_IsValid(int value) {
  2353. return MessageContainingEnumCalledType_Type_IsValid(value);
  2354. }
  2355. static const Type Type_MIN =
  2356. MessageContainingEnumCalledType_Type_Type_MIN;
  2357. static const Type Type_MAX =
  2358. MessageContainingEnumCalledType_Type_Type_MAX;
  2359. static const int Type_ARRAYSIZE =
  2360. MessageContainingEnumCalledType_Type_Type_ARRAYSIZE;
  2361. static inline const ::google::protobuf::EnumDescriptor*
  2362. Type_descriptor() {
  2363. return MessageContainingEnumCalledType_Type_descriptor();
  2364. }
  2365. static inline const ::std::string& Type_Name(Type value) {
  2366. return MessageContainingEnumCalledType_Type_Name(value);
  2367. }
  2368. static inline bool Type_Parse(const ::std::string& name,
  2369. Type* value) {
  2370. return MessageContainingEnumCalledType_Type_Parse(name, value);
  2371. }
  2372. // accessors -------------------------------------------------------
  2373. // map<string, .protobuf_unittest.MessageContainingEnumCalledType> type = 1;
  2374. int type_size() const;
  2375. void clear_type();
  2376. static const int kTypeFieldNumber = 1;
  2377. const ::google::protobuf::Map< ::std::string, ::protobuf_unittest::MessageContainingEnumCalledType >&
  2378. type() const;
  2379. ::google::protobuf::Map< ::std::string, ::protobuf_unittest::MessageContainingEnumCalledType >*
  2380. mutable_type();
  2381. // @@protoc_insertion_point(class_scope:protobuf_unittest.MessageContainingEnumCalledType)
  2382. private:
  2383. ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
  2384. template <typename T> friend class ::google::protobuf::Arena::InternalHelper;
  2385. typedef void InternalArenaConstructable_;
  2386. typedef void DestructorSkippable_;
  2387. ::google::protobuf::internal::MapField<
  2388. MessageContainingEnumCalledType_TypeEntry_DoNotUse,
  2389. ::std::string, ::protobuf_unittest::MessageContainingEnumCalledType,
  2390. ::google::protobuf::internal::WireFormatLite::TYPE_STRING,
  2391. ::google::protobuf::internal::WireFormatLite::TYPE_MESSAGE,
  2392. 0 > type_;
  2393. mutable ::google::protobuf::internal::CachedSize _cached_size_;
  2394. friend struct ::protobuf_google_2fprotobuf_2fmap_5funittest_2eproto::TableStruct;
  2395. };
  2396. // -------------------------------------------------------------------
  2397. class MessageContainingMapCalledEntry_EntryEntry_DoNotUse : public ::google::protobuf::internal::MapEntry<MessageContainingMapCalledEntry_EntryEntry_DoNotUse,
  2398. ::google::protobuf::int32, ::google::protobuf::int32,
  2399. ::google::protobuf::internal::WireFormatLite::TYPE_INT32,
  2400. ::google::protobuf::internal::WireFormatLite::TYPE_INT32,
  2401. 0 > {
  2402. public:
  2403. typedef ::google::protobuf::internal::MapEntry<MessageContainingMapCalledEntry_EntryEntry_DoNotUse,
  2404. ::google::protobuf::int32, ::google::protobuf::int32,
  2405. ::google::protobuf::internal::WireFormatLite::TYPE_INT32,
  2406. ::google::protobuf::internal::WireFormatLite::TYPE_INT32,
  2407. 0 > SuperType;
  2408. MessageContainingMapCalledEntry_EntryEntry_DoNotUse();
  2409. MessageContainingMapCalledEntry_EntryEntry_DoNotUse(::google::protobuf::Arena* arena);
  2410. void MergeFrom(const MessageContainingMapCalledEntry_EntryEntry_DoNotUse& other);
  2411. static const MessageContainingMapCalledEntry_EntryEntry_DoNotUse* internal_default_instance() { return reinterpret_cast<const MessageContainingMapCalledEntry_EntryEntry_DoNotUse*>(&_MessageContainingMapCalledEntry_EntryEntry_DoNotUse_default_instance_); }
  2412. void MergeFrom(const ::google::protobuf::Message& other) final;
  2413. ::google::protobuf::Metadata GetMetadata() const;
  2414. };
  2415. // -------------------------------------------------------------------
  2416. class MessageContainingMapCalledEntry : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:protobuf_unittest.MessageContainingMapCalledEntry) */ {
  2417. public:
  2418. MessageContainingMapCalledEntry();
  2419. virtual ~MessageContainingMapCalledEntry();
  2420. MessageContainingMapCalledEntry(const MessageContainingMapCalledEntry& from);
  2421. inline MessageContainingMapCalledEntry& operator=(const MessageContainingMapCalledEntry& from) {
  2422. CopyFrom(from);
  2423. return *this;
  2424. }
  2425. #if LANG_CXX11
  2426. MessageContainingMapCalledEntry(MessageContainingMapCalledEntry&& from) noexcept
  2427. : MessageContainingMapCalledEntry() {
  2428. *this = ::std::move(from);
  2429. }
  2430. inline MessageContainingMapCalledEntry& operator=(MessageContainingMapCalledEntry&& from) noexcept {
  2431. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  2432. if (this != &from) InternalSwap(&from);
  2433. } else {
  2434. CopyFrom(from);
  2435. }
  2436. return *this;
  2437. }
  2438. #endif
  2439. inline ::google::protobuf::Arena* GetArena() const final {
  2440. return GetArenaNoVirtual();
  2441. }
  2442. inline void* GetMaybeArenaPointer() const final {
  2443. return MaybeArenaPtr();
  2444. }
  2445. static const ::google::protobuf::Descriptor* descriptor();
  2446. static const MessageContainingMapCalledEntry& default_instance();
  2447. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  2448. static inline const MessageContainingMapCalledEntry* internal_default_instance() {
  2449. return reinterpret_cast<const MessageContainingMapCalledEntry*>(
  2450. &_MessageContainingMapCalledEntry_default_instance_);
  2451. }
  2452. static constexpr int kIndexInFileMessages =
  2453. 50;
  2454. void UnsafeArenaSwap(MessageContainingMapCalledEntry* other);
  2455. void Swap(MessageContainingMapCalledEntry* other);
  2456. friend void swap(MessageContainingMapCalledEntry& a, MessageContainingMapCalledEntry& b) {
  2457. a.Swap(&b);
  2458. }
  2459. // implements Message ----------------------------------------------
  2460. inline MessageContainingMapCalledEntry* New() const final {
  2461. return CreateMaybeMessage<MessageContainingMapCalledEntry>(NULL);
  2462. }
  2463. MessageContainingMapCalledEntry* New(::google::protobuf::Arena* arena) const final {
  2464. return CreateMaybeMessage<MessageContainingMapCalledEntry>(arena);
  2465. }
  2466. void CopyFrom(const ::google::protobuf::Message& from) final;
  2467. void MergeFrom(const ::google::protobuf::Message& from) final;
  2468. void CopyFrom(const MessageContainingMapCalledEntry& from);
  2469. void MergeFrom(const MessageContainingMapCalledEntry& from);
  2470. void Clear() final;
  2471. bool IsInitialized() const final;
  2472. size_t ByteSizeLong() const final;
  2473. bool MergePartialFromCodedStream(
  2474. ::google::protobuf::io::CodedInputStream* input) final;
  2475. void SerializeWithCachedSizes(
  2476. ::google::protobuf::io::CodedOutputStream* output) const final;
  2477. ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
  2478. bool deterministic, ::google::protobuf::uint8* target) const final;
  2479. int GetCachedSize() const final { return _cached_size_.Get(); }
  2480. private:
  2481. void SharedCtor();
  2482. void SharedDtor();
  2483. void SetCachedSize(int size) const final;
  2484. void InternalSwap(MessageContainingMapCalledEntry* other);
  2485. protected:
  2486. explicit MessageContainingMapCalledEntry(::google::protobuf::Arena* arena);
  2487. private:
  2488. static void ArenaDtor(void* object);
  2489. inline void RegisterArenaDtor(::google::protobuf::Arena* arena);
  2490. private:
  2491. inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
  2492. return _internal_metadata_.arena();
  2493. }
  2494. inline void* MaybeArenaPtr() const {
  2495. return _internal_metadata_.raw_arena_ptr();
  2496. }
  2497. public:
  2498. ::google::protobuf::Metadata GetMetadata() const final;
  2499. // nested types ----------------------------------------------------
  2500. // accessors -------------------------------------------------------
  2501. // map<int32, int32> entry = 1;
  2502. int entry_size() const;
  2503. void clear_entry();
  2504. static const int kEntryFieldNumber = 1;
  2505. const ::google::protobuf::Map< ::google::protobuf::int32, ::google::protobuf::int32 >&
  2506. entry() const;
  2507. ::google::protobuf::Map< ::google::protobuf::int32, ::google::protobuf::int32 >*
  2508. mutable_entry();
  2509. // @@protoc_insertion_point(class_scope:protobuf_unittest.MessageContainingMapCalledEntry)
  2510. private:
  2511. ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
  2512. template <typename T> friend class ::google::protobuf::Arena::InternalHelper;
  2513. typedef void InternalArenaConstructable_;
  2514. typedef void DestructorSkippable_;
  2515. ::google::protobuf::internal::MapField<
  2516. MessageContainingMapCalledEntry_EntryEntry_DoNotUse,
  2517. ::google::protobuf::int32, ::google::protobuf::int32,
  2518. ::google::protobuf::internal::WireFormatLite::TYPE_INT32,
  2519. ::google::protobuf::internal::WireFormatLite::TYPE_INT32,
  2520. 0 > entry_;
  2521. mutable ::google::protobuf::internal::CachedSize _cached_size_;
  2522. friend struct ::protobuf_google_2fprotobuf_2fmap_5funittest_2eproto::TableStruct;
  2523. };
  2524. // -------------------------------------------------------------------
  2525. class TestRecursiveMapMessage_AEntry_DoNotUse : public ::google::protobuf::internal::MapEntry<TestRecursiveMapMessage_AEntry_DoNotUse,
  2526. ::std::string, ::protobuf_unittest::TestRecursiveMapMessage,
  2527. ::google::protobuf::internal::WireFormatLite::TYPE_STRING,
  2528. ::google::protobuf::internal::WireFormatLite::TYPE_MESSAGE,
  2529. 0 > {
  2530. public:
  2531. typedef ::google::protobuf::internal::MapEntry<TestRecursiveMapMessage_AEntry_DoNotUse,
  2532. ::std::string, ::protobuf_unittest::TestRecursiveMapMessage,
  2533. ::google::protobuf::internal::WireFormatLite::TYPE_STRING,
  2534. ::google::protobuf::internal::WireFormatLite::TYPE_MESSAGE,
  2535. 0 > SuperType;
  2536. TestRecursiveMapMessage_AEntry_DoNotUse();
  2537. TestRecursiveMapMessage_AEntry_DoNotUse(::google::protobuf::Arena* arena);
  2538. void MergeFrom(const TestRecursiveMapMessage_AEntry_DoNotUse& other);
  2539. static const TestRecursiveMapMessage_AEntry_DoNotUse* internal_default_instance() { return reinterpret_cast<const TestRecursiveMapMessage_AEntry_DoNotUse*>(&_TestRecursiveMapMessage_AEntry_DoNotUse_default_instance_); }
  2540. void MergeFrom(const ::google::protobuf::Message& other) final;
  2541. ::google::protobuf::Metadata GetMetadata() const;
  2542. };
  2543. // -------------------------------------------------------------------
  2544. class TestRecursiveMapMessage : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:protobuf_unittest.TestRecursiveMapMessage) */ {
  2545. public:
  2546. TestRecursiveMapMessage();
  2547. virtual ~TestRecursiveMapMessage();
  2548. TestRecursiveMapMessage(const TestRecursiveMapMessage& from);
  2549. inline TestRecursiveMapMessage& operator=(const TestRecursiveMapMessage& from) {
  2550. CopyFrom(from);
  2551. return *this;
  2552. }
  2553. #if LANG_CXX11
  2554. TestRecursiveMapMessage(TestRecursiveMapMessage&& from) noexcept
  2555. : TestRecursiveMapMessage() {
  2556. *this = ::std::move(from);
  2557. }
  2558. inline TestRecursiveMapMessage& operator=(TestRecursiveMapMessage&& from) noexcept {
  2559. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  2560. if (this != &from) InternalSwap(&from);
  2561. } else {
  2562. CopyFrom(from);
  2563. }
  2564. return *this;
  2565. }
  2566. #endif
  2567. inline ::google::protobuf::Arena* GetArena() const final {
  2568. return GetArenaNoVirtual();
  2569. }
  2570. inline void* GetMaybeArenaPointer() const final {
  2571. return MaybeArenaPtr();
  2572. }
  2573. static const ::google::protobuf::Descriptor* descriptor();
  2574. static const TestRecursiveMapMessage& default_instance();
  2575. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  2576. static inline const TestRecursiveMapMessage* internal_default_instance() {
  2577. return reinterpret_cast<const TestRecursiveMapMessage*>(
  2578. &_TestRecursiveMapMessage_default_instance_);
  2579. }
  2580. static constexpr int kIndexInFileMessages =
  2581. 52;
  2582. void UnsafeArenaSwap(TestRecursiveMapMessage* other);
  2583. void Swap(TestRecursiveMapMessage* other);
  2584. friend void swap(TestRecursiveMapMessage& a, TestRecursiveMapMessage& b) {
  2585. a.Swap(&b);
  2586. }
  2587. // implements Message ----------------------------------------------
  2588. inline TestRecursiveMapMessage* New() const final {
  2589. return CreateMaybeMessage<TestRecursiveMapMessage>(NULL);
  2590. }
  2591. TestRecursiveMapMessage* New(::google::protobuf::Arena* arena) const final {
  2592. return CreateMaybeMessage<TestRecursiveMapMessage>(arena);
  2593. }
  2594. void CopyFrom(const ::google::protobuf::Message& from) final;
  2595. void MergeFrom(const ::google::protobuf::Message& from) final;
  2596. void CopyFrom(const TestRecursiveMapMessage& from);
  2597. void MergeFrom(const TestRecursiveMapMessage& from);
  2598. void Clear() final;
  2599. bool IsInitialized() const final;
  2600. size_t ByteSizeLong() const final;
  2601. bool MergePartialFromCodedStream(
  2602. ::google::protobuf::io::CodedInputStream* input) final;
  2603. void SerializeWithCachedSizes(
  2604. ::google::protobuf::io::CodedOutputStream* output) const final;
  2605. ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
  2606. bool deterministic, ::google::protobuf::uint8* target) const final;
  2607. int GetCachedSize() const final { return _cached_size_.Get(); }
  2608. private:
  2609. void SharedCtor();
  2610. void SharedDtor();
  2611. void SetCachedSize(int size) const final;
  2612. void InternalSwap(TestRecursiveMapMessage* other);
  2613. protected:
  2614. explicit TestRecursiveMapMessage(::google::protobuf::Arena* arena);
  2615. private:
  2616. static void ArenaDtor(void* object);
  2617. inline void RegisterArenaDtor(::google::protobuf::Arena* arena);
  2618. private:
  2619. inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
  2620. return _internal_metadata_.arena();
  2621. }
  2622. inline void* MaybeArenaPtr() const {
  2623. return _internal_metadata_.raw_arena_ptr();
  2624. }
  2625. public:
  2626. ::google::protobuf::Metadata GetMetadata() const final;
  2627. // nested types ----------------------------------------------------
  2628. // accessors -------------------------------------------------------
  2629. // map<string, .protobuf_unittest.TestRecursiveMapMessage> a = 1;
  2630. int a_size() const;
  2631. void clear_a();
  2632. static const int kAFieldNumber = 1;
  2633. const ::google::protobuf::Map< ::std::string, ::protobuf_unittest::TestRecursiveMapMessage >&
  2634. a() const;
  2635. ::google::protobuf::Map< ::std::string, ::protobuf_unittest::TestRecursiveMapMessage >*
  2636. mutable_a();
  2637. // @@protoc_insertion_point(class_scope:protobuf_unittest.TestRecursiveMapMessage)
  2638. private:
  2639. ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
  2640. template <typename T> friend class ::google::protobuf::Arena::InternalHelper;
  2641. typedef void InternalArenaConstructable_;
  2642. typedef void DestructorSkippable_;
  2643. ::google::protobuf::internal::MapField<
  2644. TestRecursiveMapMessage_AEntry_DoNotUse,
  2645. ::std::string, ::protobuf_unittest::TestRecursiveMapMessage,
  2646. ::google::protobuf::internal::WireFormatLite::TYPE_STRING,
  2647. ::google::protobuf::internal::WireFormatLite::TYPE_MESSAGE,
  2648. 0 > a_;
  2649. mutable ::google::protobuf::internal::CachedSize _cached_size_;
  2650. friend struct ::protobuf_google_2fprotobuf_2fmap_5funittest_2eproto::TableStruct;
  2651. };
  2652. // ===================================================================
  2653. // ===================================================================
  2654. #ifdef __GNUC__
  2655. #pragma GCC diagnostic push
  2656. #pragma GCC diagnostic ignored "-Wstrict-aliasing"
  2657. #endif // __GNUC__
  2658. // -------------------------------------------------------------------
  2659. // -------------------------------------------------------------------
  2660. // -------------------------------------------------------------------
  2661. // -------------------------------------------------------------------
  2662. // -------------------------------------------------------------------
  2663. // -------------------------------------------------------------------
  2664. // -------------------------------------------------------------------
  2665. // -------------------------------------------------------------------
  2666. // -------------------------------------------------------------------
  2667. // -------------------------------------------------------------------
  2668. // -------------------------------------------------------------------
  2669. // -------------------------------------------------------------------
  2670. // -------------------------------------------------------------------
  2671. // -------------------------------------------------------------------
  2672. // -------------------------------------------------------------------
  2673. // -------------------------------------------------------------------
  2674. // -------------------------------------------------------------------
  2675. // -------------------------------------------------------------------
  2676. // -------------------------------------------------------------------
  2677. // TestMap
  2678. // map<int32, int32> map_int32_int32 = 1;
  2679. inline int TestMap::map_int32_int32_size() const {
  2680. return map_int32_int32_.size();
  2681. }
  2682. inline void TestMap::clear_map_int32_int32() {
  2683. map_int32_int32_.Clear();
  2684. }
  2685. inline const ::google::protobuf::Map< ::google::protobuf::int32, ::google::protobuf::int32 >&
  2686. TestMap::map_int32_int32() const {
  2687. // @@protoc_insertion_point(field_map:protobuf_unittest.TestMap.map_int32_int32)
  2688. return map_int32_int32_.GetMap();
  2689. }
  2690. inline ::google::protobuf::Map< ::google::protobuf::int32, ::google::protobuf::int32 >*
  2691. TestMap::mutable_map_int32_int32() {
  2692. // @@protoc_insertion_point(field_mutable_map:protobuf_unittest.TestMap.map_int32_int32)
  2693. return map_int32_int32_.MutableMap();
  2694. }
  2695. // map<int64, int64> map_int64_int64 = 2;
  2696. inline int TestMap::map_int64_int64_size() const {
  2697. return map_int64_int64_.size();
  2698. }
  2699. inline void TestMap::clear_map_int64_int64() {
  2700. map_int64_int64_.Clear();
  2701. }
  2702. inline const ::google::protobuf::Map< ::google::protobuf::int64, ::google::protobuf::int64 >&
  2703. TestMap::map_int64_int64() const {
  2704. // @@protoc_insertion_point(field_map:protobuf_unittest.TestMap.map_int64_int64)
  2705. return map_int64_int64_.GetMap();
  2706. }
  2707. inline ::google::protobuf::Map< ::google::protobuf::int64, ::google::protobuf::int64 >*
  2708. TestMap::mutable_map_int64_int64() {
  2709. // @@protoc_insertion_point(field_mutable_map:protobuf_unittest.TestMap.map_int64_int64)
  2710. return map_int64_int64_.MutableMap();
  2711. }
  2712. // map<uint32, uint32> map_uint32_uint32 = 3;
  2713. inline int TestMap::map_uint32_uint32_size() const {
  2714. return map_uint32_uint32_.size();
  2715. }
  2716. inline void TestMap::clear_map_uint32_uint32() {
  2717. map_uint32_uint32_.Clear();
  2718. }
  2719. inline const ::google::protobuf::Map< ::google::protobuf::uint32, ::google::protobuf::uint32 >&
  2720. TestMap::map_uint32_uint32() const {
  2721. // @@protoc_insertion_point(field_map:protobuf_unittest.TestMap.map_uint32_uint32)
  2722. return map_uint32_uint32_.GetMap();
  2723. }
  2724. inline ::google::protobuf::Map< ::google::protobuf::uint32, ::google::protobuf::uint32 >*
  2725. TestMap::mutable_map_uint32_uint32() {
  2726. // @@protoc_insertion_point(field_mutable_map:protobuf_unittest.TestMap.map_uint32_uint32)
  2727. return map_uint32_uint32_.MutableMap();
  2728. }
  2729. // map<uint64, uint64> map_uint64_uint64 = 4;
  2730. inline int TestMap::map_uint64_uint64_size() const {
  2731. return map_uint64_uint64_.size();
  2732. }
  2733. inline void TestMap::clear_map_uint64_uint64() {
  2734. map_uint64_uint64_.Clear();
  2735. }
  2736. inline const ::google::protobuf::Map< ::google::protobuf::uint64, ::google::protobuf::uint64 >&
  2737. TestMap::map_uint64_uint64() const {
  2738. // @@protoc_insertion_point(field_map:protobuf_unittest.TestMap.map_uint64_uint64)
  2739. return map_uint64_uint64_.GetMap();
  2740. }
  2741. inline ::google::protobuf::Map< ::google::protobuf::uint64, ::google::protobuf::uint64 >*
  2742. TestMap::mutable_map_uint64_uint64() {
  2743. // @@protoc_insertion_point(field_mutable_map:protobuf_unittest.TestMap.map_uint64_uint64)
  2744. return map_uint64_uint64_.MutableMap();
  2745. }
  2746. // map<sint32, sint32> map_sint32_sint32 = 5;
  2747. inline int TestMap::map_sint32_sint32_size() const {
  2748. return map_sint32_sint32_.size();
  2749. }
  2750. inline void TestMap::clear_map_sint32_sint32() {
  2751. map_sint32_sint32_.Clear();
  2752. }
  2753. inline const ::google::protobuf::Map< ::google::protobuf::int32, ::google::protobuf::int32 >&
  2754. TestMap::map_sint32_sint32() const {
  2755. // @@protoc_insertion_point(field_map:protobuf_unittest.TestMap.map_sint32_sint32)
  2756. return map_sint32_sint32_.GetMap();
  2757. }
  2758. inline ::google::protobuf::Map< ::google::protobuf::int32, ::google::protobuf::int32 >*
  2759. TestMap::mutable_map_sint32_sint32() {
  2760. // @@protoc_insertion_point(field_mutable_map:protobuf_unittest.TestMap.map_sint32_sint32)
  2761. return map_sint32_sint32_.MutableMap();
  2762. }
  2763. // map<sint64, sint64> map_sint64_sint64 = 6;
  2764. inline int TestMap::map_sint64_sint64_size() const {
  2765. return map_sint64_sint64_.size();
  2766. }
  2767. inline void TestMap::clear_map_sint64_sint64() {
  2768. map_sint64_sint64_.Clear();
  2769. }
  2770. inline const ::google::protobuf::Map< ::google::protobuf::int64, ::google::protobuf::int64 >&
  2771. TestMap::map_sint64_sint64() const {
  2772. // @@protoc_insertion_point(field_map:protobuf_unittest.TestMap.map_sint64_sint64)
  2773. return map_sint64_sint64_.GetMap();
  2774. }
  2775. inline ::google::protobuf::Map< ::google::protobuf::int64, ::google::protobuf::int64 >*
  2776. TestMap::mutable_map_sint64_sint64() {
  2777. // @@protoc_insertion_point(field_mutable_map:protobuf_unittest.TestMap.map_sint64_sint64)
  2778. return map_sint64_sint64_.MutableMap();
  2779. }
  2780. // map<fixed32, fixed32> map_fixed32_fixed32 = 7;
  2781. inline int TestMap::map_fixed32_fixed32_size() const {
  2782. return map_fixed32_fixed32_.size();
  2783. }
  2784. inline void TestMap::clear_map_fixed32_fixed32() {
  2785. map_fixed32_fixed32_.Clear();
  2786. }
  2787. inline const ::google::protobuf::Map< ::google::protobuf::uint32, ::google::protobuf::uint32 >&
  2788. TestMap::map_fixed32_fixed32() const {
  2789. // @@protoc_insertion_point(field_map:protobuf_unittest.TestMap.map_fixed32_fixed32)
  2790. return map_fixed32_fixed32_.GetMap();
  2791. }
  2792. inline ::google::protobuf::Map< ::google::protobuf::uint32, ::google::protobuf::uint32 >*
  2793. TestMap::mutable_map_fixed32_fixed32() {
  2794. // @@protoc_insertion_point(field_mutable_map:protobuf_unittest.TestMap.map_fixed32_fixed32)
  2795. return map_fixed32_fixed32_.MutableMap();
  2796. }
  2797. // map<fixed64, fixed64> map_fixed64_fixed64 = 8;
  2798. inline int TestMap::map_fixed64_fixed64_size() const {
  2799. return map_fixed64_fixed64_.size();
  2800. }
  2801. inline void TestMap::clear_map_fixed64_fixed64() {
  2802. map_fixed64_fixed64_.Clear();
  2803. }
  2804. inline const ::google::protobuf::Map< ::google::protobuf::uint64, ::google::protobuf::uint64 >&
  2805. TestMap::map_fixed64_fixed64() const {
  2806. // @@protoc_insertion_point(field_map:protobuf_unittest.TestMap.map_fixed64_fixed64)
  2807. return map_fixed64_fixed64_.GetMap();
  2808. }
  2809. inline ::google::protobuf::Map< ::google::protobuf::uint64, ::google::protobuf::uint64 >*
  2810. TestMap::mutable_map_fixed64_fixed64() {
  2811. // @@protoc_insertion_point(field_mutable_map:protobuf_unittest.TestMap.map_fixed64_fixed64)
  2812. return map_fixed64_fixed64_.MutableMap();
  2813. }
  2814. // map<sfixed32, sfixed32> map_sfixed32_sfixed32 = 9;
  2815. inline int TestMap::map_sfixed32_sfixed32_size() const {
  2816. return map_sfixed32_sfixed32_.size();
  2817. }
  2818. inline void TestMap::clear_map_sfixed32_sfixed32() {
  2819. map_sfixed32_sfixed32_.Clear();
  2820. }
  2821. inline const ::google::protobuf::Map< ::google::protobuf::int32, ::google::protobuf::int32 >&
  2822. TestMap::map_sfixed32_sfixed32() const {
  2823. // @@protoc_insertion_point(field_map:protobuf_unittest.TestMap.map_sfixed32_sfixed32)
  2824. return map_sfixed32_sfixed32_.GetMap();
  2825. }
  2826. inline ::google::protobuf::Map< ::google::protobuf::int32, ::google::protobuf::int32 >*
  2827. TestMap::mutable_map_sfixed32_sfixed32() {
  2828. // @@protoc_insertion_point(field_mutable_map:protobuf_unittest.TestMap.map_sfixed32_sfixed32)
  2829. return map_sfixed32_sfixed32_.MutableMap();
  2830. }
  2831. // map<sfixed64, sfixed64> map_sfixed64_sfixed64 = 10;
  2832. inline int TestMap::map_sfixed64_sfixed64_size() const {
  2833. return map_sfixed64_sfixed64_.size();
  2834. }
  2835. inline void TestMap::clear_map_sfixed64_sfixed64() {
  2836. map_sfixed64_sfixed64_.Clear();
  2837. }
  2838. inline const ::google::protobuf::Map< ::google::protobuf::int64, ::google::protobuf::int64 >&
  2839. TestMap::map_sfixed64_sfixed64() const {
  2840. // @@protoc_insertion_point(field_map:protobuf_unittest.TestMap.map_sfixed64_sfixed64)
  2841. return map_sfixed64_sfixed64_.GetMap();
  2842. }
  2843. inline ::google::protobuf::Map< ::google::protobuf::int64, ::google::protobuf::int64 >*
  2844. TestMap::mutable_map_sfixed64_sfixed64() {
  2845. // @@protoc_insertion_point(field_mutable_map:protobuf_unittest.TestMap.map_sfixed64_sfixed64)
  2846. return map_sfixed64_sfixed64_.MutableMap();
  2847. }
  2848. // map<int32, float> map_int32_float = 11;
  2849. inline int TestMap::map_int32_float_size() const {
  2850. return map_int32_float_.size();
  2851. }
  2852. inline void TestMap::clear_map_int32_float() {
  2853. map_int32_float_.Clear();
  2854. }
  2855. inline const ::google::protobuf::Map< ::google::protobuf::int32, float >&
  2856. TestMap::map_int32_float() const {
  2857. // @@protoc_insertion_point(field_map:protobuf_unittest.TestMap.map_int32_float)
  2858. return map_int32_float_.GetMap();
  2859. }
  2860. inline ::google::protobuf::Map< ::google::protobuf::int32, float >*
  2861. TestMap::mutable_map_int32_float() {
  2862. // @@protoc_insertion_point(field_mutable_map:protobuf_unittest.TestMap.map_int32_float)
  2863. return map_int32_float_.MutableMap();
  2864. }
  2865. // map<int32, double> map_int32_double = 12;
  2866. inline int TestMap::map_int32_double_size() const {
  2867. return map_int32_double_.size();
  2868. }
  2869. inline void TestMap::clear_map_int32_double() {
  2870. map_int32_double_.Clear();
  2871. }
  2872. inline const ::google::protobuf::Map< ::google::protobuf::int32, double >&
  2873. TestMap::map_int32_double() const {
  2874. // @@protoc_insertion_point(field_map:protobuf_unittest.TestMap.map_int32_double)
  2875. return map_int32_double_.GetMap();
  2876. }
  2877. inline ::google::protobuf::Map< ::google::protobuf::int32, double >*
  2878. TestMap::mutable_map_int32_double() {
  2879. // @@protoc_insertion_point(field_mutable_map:protobuf_unittest.TestMap.map_int32_double)
  2880. return map_int32_double_.MutableMap();
  2881. }
  2882. // map<bool, bool> map_bool_bool = 13;
  2883. inline int TestMap::map_bool_bool_size() const {
  2884. return map_bool_bool_.size();
  2885. }
  2886. inline void TestMap::clear_map_bool_bool() {
  2887. map_bool_bool_.Clear();
  2888. }
  2889. inline const ::google::protobuf::Map< bool, bool >&
  2890. TestMap::map_bool_bool() const {
  2891. // @@protoc_insertion_point(field_map:protobuf_unittest.TestMap.map_bool_bool)
  2892. return map_bool_bool_.GetMap();
  2893. }
  2894. inline ::google::protobuf::Map< bool, bool >*
  2895. TestMap::mutable_map_bool_bool() {
  2896. // @@protoc_insertion_point(field_mutable_map:protobuf_unittest.TestMap.map_bool_bool)
  2897. return map_bool_bool_.MutableMap();
  2898. }
  2899. // map<string, string> map_string_string = 14;
  2900. inline int TestMap::map_string_string_size() const {
  2901. return map_string_string_.size();
  2902. }
  2903. inline void TestMap::clear_map_string_string() {
  2904. map_string_string_.Clear();
  2905. }
  2906. inline const ::google::protobuf::Map< ::std::string, ::std::string >&
  2907. TestMap::map_string_string() const {
  2908. // @@protoc_insertion_point(field_map:protobuf_unittest.TestMap.map_string_string)
  2909. return map_string_string_.GetMap();
  2910. }
  2911. inline ::google::protobuf::Map< ::std::string, ::std::string >*
  2912. TestMap::mutable_map_string_string() {
  2913. // @@protoc_insertion_point(field_mutable_map:protobuf_unittest.TestMap.map_string_string)
  2914. return map_string_string_.MutableMap();
  2915. }
  2916. // map<int32, bytes> map_int32_bytes = 15;
  2917. inline int TestMap::map_int32_bytes_size() const {
  2918. return map_int32_bytes_.size();
  2919. }
  2920. inline void TestMap::clear_map_int32_bytes() {
  2921. map_int32_bytes_.Clear();
  2922. }
  2923. inline const ::google::protobuf::Map< ::google::protobuf::int32, ::std::string >&
  2924. TestMap::map_int32_bytes() const {
  2925. // @@protoc_insertion_point(field_map:protobuf_unittest.TestMap.map_int32_bytes)
  2926. return map_int32_bytes_.GetMap();
  2927. }
  2928. inline ::google::protobuf::Map< ::google::protobuf::int32, ::std::string >*
  2929. TestMap::mutable_map_int32_bytes() {
  2930. // @@protoc_insertion_point(field_mutable_map:protobuf_unittest.TestMap.map_int32_bytes)
  2931. return map_int32_bytes_.MutableMap();
  2932. }
  2933. // map<int32, .protobuf_unittest.MapEnum> map_int32_enum = 16;
  2934. inline int TestMap::map_int32_enum_size() const {
  2935. return map_int32_enum_.size();
  2936. }
  2937. inline void TestMap::clear_map_int32_enum() {
  2938. map_int32_enum_.Clear();
  2939. }
  2940. inline const ::google::protobuf::Map< ::google::protobuf::int32, ::protobuf_unittest::MapEnum >&
  2941. TestMap::map_int32_enum() const {
  2942. // @@protoc_insertion_point(field_map:protobuf_unittest.TestMap.map_int32_enum)
  2943. return map_int32_enum_.GetMap();
  2944. }
  2945. inline ::google::protobuf::Map< ::google::protobuf::int32, ::protobuf_unittest::MapEnum >*
  2946. TestMap::mutable_map_int32_enum() {
  2947. // @@protoc_insertion_point(field_mutable_map:protobuf_unittest.TestMap.map_int32_enum)
  2948. return map_int32_enum_.MutableMap();
  2949. }
  2950. // map<int32, .protobuf_unittest.ForeignMessage> map_int32_foreign_message = 17;
  2951. inline int TestMap::map_int32_foreign_message_size() const {
  2952. return map_int32_foreign_message_.size();
  2953. }
  2954. inline const ::google::protobuf::Map< ::google::protobuf::int32, ::protobuf_unittest::ForeignMessage >&
  2955. TestMap::map_int32_foreign_message() const {
  2956. // @@protoc_insertion_point(field_map:protobuf_unittest.TestMap.map_int32_foreign_message)
  2957. return map_int32_foreign_message_.GetMap();
  2958. }
  2959. inline ::google::protobuf::Map< ::google::protobuf::int32, ::protobuf_unittest::ForeignMessage >*
  2960. TestMap::mutable_map_int32_foreign_message() {
  2961. // @@protoc_insertion_point(field_mutable_map:protobuf_unittest.TestMap.map_int32_foreign_message)
  2962. return map_int32_foreign_message_.MutableMap();
  2963. }
  2964. // map<string, .protobuf_unittest.ForeignMessage> map_string_foreign_message = 18;
  2965. inline int TestMap::map_string_foreign_message_size() const {
  2966. return map_string_foreign_message_.size();
  2967. }
  2968. inline const ::google::protobuf::Map< ::std::string, ::protobuf_unittest::ForeignMessage >&
  2969. TestMap::map_string_foreign_message() const {
  2970. // @@protoc_insertion_point(field_map:protobuf_unittest.TestMap.map_string_foreign_message)
  2971. return map_string_foreign_message_.GetMap();
  2972. }
  2973. inline ::google::protobuf::Map< ::std::string, ::protobuf_unittest::ForeignMessage >*
  2974. TestMap::mutable_map_string_foreign_message() {
  2975. // @@protoc_insertion_point(field_mutable_map:protobuf_unittest.TestMap.map_string_foreign_message)
  2976. return map_string_foreign_message_.MutableMap();
  2977. }
  2978. // map<int32, .protobuf_unittest.TestAllTypes> map_int32_all_types = 19;
  2979. inline int TestMap::map_int32_all_types_size() const {
  2980. return map_int32_all_types_.size();
  2981. }
  2982. inline const ::google::protobuf::Map< ::google::protobuf::int32, ::protobuf_unittest::TestAllTypes >&
  2983. TestMap::map_int32_all_types() const {
  2984. // @@protoc_insertion_point(field_map:protobuf_unittest.TestMap.map_int32_all_types)
  2985. return map_int32_all_types_.GetMap();
  2986. }
  2987. inline ::google::protobuf::Map< ::google::protobuf::int32, ::protobuf_unittest::TestAllTypes >*
  2988. TestMap::mutable_map_int32_all_types() {
  2989. // @@protoc_insertion_point(field_mutable_map:protobuf_unittest.TestMap.map_int32_all_types)
  2990. return map_int32_all_types_.MutableMap();
  2991. }
  2992. // -------------------------------------------------------------------
  2993. // TestMapSubmessage
  2994. // .protobuf_unittest.TestMap test_map = 1;
  2995. inline bool TestMapSubmessage::has_test_map() const {
  2996. return this != internal_default_instance() && test_map_ != NULL;
  2997. }
  2998. inline void TestMapSubmessage::clear_test_map() {
  2999. if (GetArenaNoVirtual() == NULL && test_map_ != NULL) {
  3000. delete test_map_;
  3001. }
  3002. test_map_ = NULL;
  3003. }
  3004. inline const ::protobuf_unittest::TestMap& TestMapSubmessage::_internal_test_map() const {
  3005. return *test_map_;
  3006. }
  3007. inline const ::protobuf_unittest::TestMap& TestMapSubmessage::test_map() const {
  3008. const ::protobuf_unittest::TestMap* p = test_map_;
  3009. // @@protoc_insertion_point(field_get:protobuf_unittest.TestMapSubmessage.test_map)
  3010. return p != NULL ? *p : *reinterpret_cast<const ::protobuf_unittest::TestMap*>(
  3011. &::protobuf_unittest::_TestMap_default_instance_);
  3012. }
  3013. inline ::protobuf_unittest::TestMap* TestMapSubmessage::release_test_map() {
  3014. // @@protoc_insertion_point(field_release:protobuf_unittest.TestMapSubmessage.test_map)
  3015. ::protobuf_unittest::TestMap* temp = test_map_;
  3016. if (GetArenaNoVirtual() != NULL) {
  3017. temp = ::google::protobuf::internal::DuplicateIfNonNull(temp);
  3018. }
  3019. test_map_ = NULL;
  3020. return temp;
  3021. }
  3022. inline ::protobuf_unittest::TestMap* TestMapSubmessage::unsafe_arena_release_test_map() {
  3023. // @@protoc_insertion_point(field_unsafe_arena_release:protobuf_unittest.TestMapSubmessage.test_map)
  3024. ::protobuf_unittest::TestMap* temp = test_map_;
  3025. test_map_ = NULL;
  3026. return temp;
  3027. }
  3028. inline ::protobuf_unittest::TestMap* TestMapSubmessage::mutable_test_map() {
  3029. if (test_map_ == NULL) {
  3030. auto* p = CreateMaybeMessage<::protobuf_unittest::TestMap>(GetArenaNoVirtual());
  3031. test_map_ = p;
  3032. }
  3033. // @@protoc_insertion_point(field_mutable:protobuf_unittest.TestMapSubmessage.test_map)
  3034. return test_map_;
  3035. }
  3036. inline void TestMapSubmessage::set_allocated_test_map(::protobuf_unittest::TestMap* test_map) {
  3037. ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
  3038. if (message_arena == NULL) {
  3039. delete test_map_;
  3040. }
  3041. if (test_map) {
  3042. ::google::protobuf::Arena* submessage_arena =
  3043. ::google::protobuf::Arena::GetArena(test_map);
  3044. if (message_arena != submessage_arena) {
  3045. test_map = ::google::protobuf::internal::GetOwnedMessage(
  3046. message_arena, test_map, submessage_arena);
  3047. }
  3048. } else {
  3049. }
  3050. test_map_ = test_map;
  3051. // @@protoc_insertion_point(field_set_allocated:protobuf_unittest.TestMapSubmessage.test_map)
  3052. }
  3053. // -------------------------------------------------------------------
  3054. // -------------------------------------------------------------------
  3055. // TestMessageMap
  3056. // map<int32, .protobuf_unittest.TestAllTypes> map_int32_message = 1;
  3057. inline int TestMessageMap::map_int32_message_size() const {
  3058. return map_int32_message_.size();
  3059. }
  3060. inline const ::google::protobuf::Map< ::google::protobuf::int32, ::protobuf_unittest::TestAllTypes >&
  3061. TestMessageMap::map_int32_message() const {
  3062. // @@protoc_insertion_point(field_map:protobuf_unittest.TestMessageMap.map_int32_message)
  3063. return map_int32_message_.GetMap();
  3064. }
  3065. inline ::google::protobuf::Map< ::google::protobuf::int32, ::protobuf_unittest::TestAllTypes >*
  3066. TestMessageMap::mutable_map_int32_message() {
  3067. // @@protoc_insertion_point(field_mutable_map:protobuf_unittest.TestMessageMap.map_int32_message)
  3068. return map_int32_message_.MutableMap();
  3069. }
  3070. // -------------------------------------------------------------------
  3071. // -------------------------------------------------------------------
  3072. // -------------------------------------------------------------------
  3073. // TestSameTypeMap
  3074. // map<int32, int32> map1 = 1;
  3075. inline int TestSameTypeMap::map1_size() const {
  3076. return map1_.size();
  3077. }
  3078. inline void TestSameTypeMap::clear_map1() {
  3079. map1_.Clear();
  3080. }
  3081. inline const ::google::protobuf::Map< ::google::protobuf::int32, ::google::protobuf::int32 >&
  3082. TestSameTypeMap::map1() const {
  3083. // @@protoc_insertion_point(field_map:protobuf_unittest.TestSameTypeMap.map1)
  3084. return map1_.GetMap();
  3085. }
  3086. inline ::google::protobuf::Map< ::google::protobuf::int32, ::google::protobuf::int32 >*
  3087. TestSameTypeMap::mutable_map1() {
  3088. // @@protoc_insertion_point(field_mutable_map:protobuf_unittest.TestSameTypeMap.map1)
  3089. return map1_.MutableMap();
  3090. }
  3091. // map<int32, int32> map2 = 2;
  3092. inline int TestSameTypeMap::map2_size() const {
  3093. return map2_.size();
  3094. }
  3095. inline void TestSameTypeMap::clear_map2() {
  3096. map2_.Clear();
  3097. }
  3098. inline const ::google::protobuf::Map< ::google::protobuf::int32, ::google::protobuf::int32 >&
  3099. TestSameTypeMap::map2() const {
  3100. // @@protoc_insertion_point(field_map:protobuf_unittest.TestSameTypeMap.map2)
  3101. return map2_.GetMap();
  3102. }
  3103. inline ::google::protobuf::Map< ::google::protobuf::int32, ::google::protobuf::int32 >*
  3104. TestSameTypeMap::mutable_map2() {
  3105. // @@protoc_insertion_point(field_mutable_map:protobuf_unittest.TestSameTypeMap.map2)
  3106. return map2_.MutableMap();
  3107. }
  3108. // -------------------------------------------------------------------
  3109. // -------------------------------------------------------------------
  3110. // TestRequiredMessageMap
  3111. // map<int32, .protobuf_unittest.TestRequired> map_field = 1;
  3112. inline int TestRequiredMessageMap::map_field_size() const {
  3113. return map_field_.size();
  3114. }
  3115. inline const ::google::protobuf::Map< ::google::protobuf::int32, ::protobuf_unittest::TestRequired >&
  3116. TestRequiredMessageMap::map_field() const {
  3117. // @@protoc_insertion_point(field_map:protobuf_unittest.TestRequiredMessageMap.map_field)
  3118. return map_field_.GetMap();
  3119. }
  3120. inline ::google::protobuf::Map< ::google::protobuf::int32, ::protobuf_unittest::TestRequired >*
  3121. TestRequiredMessageMap::mutable_map_field() {
  3122. // @@protoc_insertion_point(field_mutable_map:protobuf_unittest.TestRequiredMessageMap.map_field)
  3123. return map_field_.MutableMap();
  3124. }
  3125. // -------------------------------------------------------------------
  3126. // -------------------------------------------------------------------
  3127. // -------------------------------------------------------------------
  3128. // -------------------------------------------------------------------
  3129. // -------------------------------------------------------------------
  3130. // -------------------------------------------------------------------
  3131. // -------------------------------------------------------------------
  3132. // -------------------------------------------------------------------
  3133. // -------------------------------------------------------------------
  3134. // -------------------------------------------------------------------
  3135. // -------------------------------------------------------------------
  3136. // -------------------------------------------------------------------
  3137. // -------------------------------------------------------------------
  3138. // -------------------------------------------------------------------
  3139. // -------------------------------------------------------------------
  3140. // -------------------------------------------------------------------
  3141. // -------------------------------------------------------------------
  3142. // -------------------------------------------------------------------
  3143. // -------------------------------------------------------------------
  3144. // TestArenaMap
  3145. // map<int32, int32> map_int32_int32 = 1;
  3146. inline int TestArenaMap::map_int32_int32_size() const {
  3147. return map_int32_int32_.size();
  3148. }
  3149. inline void TestArenaMap::clear_map_int32_int32() {
  3150. map_int32_int32_.Clear();
  3151. }
  3152. inline const ::google::protobuf::Map< ::google::protobuf::int32, ::google::protobuf::int32 >&
  3153. TestArenaMap::map_int32_int32() const {
  3154. // @@protoc_insertion_point(field_map:protobuf_unittest.TestArenaMap.map_int32_int32)
  3155. return map_int32_int32_.GetMap();
  3156. }
  3157. inline ::google::protobuf::Map< ::google::protobuf::int32, ::google::protobuf::int32 >*
  3158. TestArenaMap::mutable_map_int32_int32() {
  3159. // @@protoc_insertion_point(field_mutable_map:protobuf_unittest.TestArenaMap.map_int32_int32)
  3160. return map_int32_int32_.MutableMap();
  3161. }
  3162. // map<int64, int64> map_int64_int64 = 2;
  3163. inline int TestArenaMap::map_int64_int64_size() const {
  3164. return map_int64_int64_.size();
  3165. }
  3166. inline void TestArenaMap::clear_map_int64_int64() {
  3167. map_int64_int64_.Clear();
  3168. }
  3169. inline const ::google::protobuf::Map< ::google::protobuf::int64, ::google::protobuf::int64 >&
  3170. TestArenaMap::map_int64_int64() const {
  3171. // @@protoc_insertion_point(field_map:protobuf_unittest.TestArenaMap.map_int64_int64)
  3172. return map_int64_int64_.GetMap();
  3173. }
  3174. inline ::google::protobuf::Map< ::google::protobuf::int64, ::google::protobuf::int64 >*
  3175. TestArenaMap::mutable_map_int64_int64() {
  3176. // @@protoc_insertion_point(field_mutable_map:protobuf_unittest.TestArenaMap.map_int64_int64)
  3177. return map_int64_int64_.MutableMap();
  3178. }
  3179. // map<uint32, uint32> map_uint32_uint32 = 3;
  3180. inline int TestArenaMap::map_uint32_uint32_size() const {
  3181. return map_uint32_uint32_.size();
  3182. }
  3183. inline void TestArenaMap::clear_map_uint32_uint32() {
  3184. map_uint32_uint32_.Clear();
  3185. }
  3186. inline const ::google::protobuf::Map< ::google::protobuf::uint32, ::google::protobuf::uint32 >&
  3187. TestArenaMap::map_uint32_uint32() const {
  3188. // @@protoc_insertion_point(field_map:protobuf_unittest.TestArenaMap.map_uint32_uint32)
  3189. return map_uint32_uint32_.GetMap();
  3190. }
  3191. inline ::google::protobuf::Map< ::google::protobuf::uint32, ::google::protobuf::uint32 >*
  3192. TestArenaMap::mutable_map_uint32_uint32() {
  3193. // @@protoc_insertion_point(field_mutable_map:protobuf_unittest.TestArenaMap.map_uint32_uint32)
  3194. return map_uint32_uint32_.MutableMap();
  3195. }
  3196. // map<uint64, uint64> map_uint64_uint64 = 4;
  3197. inline int TestArenaMap::map_uint64_uint64_size() const {
  3198. return map_uint64_uint64_.size();
  3199. }
  3200. inline void TestArenaMap::clear_map_uint64_uint64() {
  3201. map_uint64_uint64_.Clear();
  3202. }
  3203. inline const ::google::protobuf::Map< ::google::protobuf::uint64, ::google::protobuf::uint64 >&
  3204. TestArenaMap::map_uint64_uint64() const {
  3205. // @@protoc_insertion_point(field_map:protobuf_unittest.TestArenaMap.map_uint64_uint64)
  3206. return map_uint64_uint64_.GetMap();
  3207. }
  3208. inline ::google::protobuf::Map< ::google::protobuf::uint64, ::google::protobuf::uint64 >*
  3209. TestArenaMap::mutable_map_uint64_uint64() {
  3210. // @@protoc_insertion_point(field_mutable_map:protobuf_unittest.TestArenaMap.map_uint64_uint64)
  3211. return map_uint64_uint64_.MutableMap();
  3212. }
  3213. // map<sint32, sint32> map_sint32_sint32 = 5;
  3214. inline int TestArenaMap::map_sint32_sint32_size() const {
  3215. return map_sint32_sint32_.size();
  3216. }
  3217. inline void TestArenaMap::clear_map_sint32_sint32() {
  3218. map_sint32_sint32_.Clear();
  3219. }
  3220. inline const ::google::protobuf::Map< ::google::protobuf::int32, ::google::protobuf::int32 >&
  3221. TestArenaMap::map_sint32_sint32() const {
  3222. // @@protoc_insertion_point(field_map:protobuf_unittest.TestArenaMap.map_sint32_sint32)
  3223. return map_sint32_sint32_.GetMap();
  3224. }
  3225. inline ::google::protobuf::Map< ::google::protobuf::int32, ::google::protobuf::int32 >*
  3226. TestArenaMap::mutable_map_sint32_sint32() {
  3227. // @@protoc_insertion_point(field_mutable_map:protobuf_unittest.TestArenaMap.map_sint32_sint32)
  3228. return map_sint32_sint32_.MutableMap();
  3229. }
  3230. // map<sint64, sint64> map_sint64_sint64 = 6;
  3231. inline int TestArenaMap::map_sint64_sint64_size() const {
  3232. return map_sint64_sint64_.size();
  3233. }
  3234. inline void TestArenaMap::clear_map_sint64_sint64() {
  3235. map_sint64_sint64_.Clear();
  3236. }
  3237. inline const ::google::protobuf::Map< ::google::protobuf::int64, ::google::protobuf::int64 >&
  3238. TestArenaMap::map_sint64_sint64() const {
  3239. // @@protoc_insertion_point(field_map:protobuf_unittest.TestArenaMap.map_sint64_sint64)
  3240. return map_sint64_sint64_.GetMap();
  3241. }
  3242. inline ::google::protobuf::Map< ::google::protobuf::int64, ::google::protobuf::int64 >*
  3243. TestArenaMap::mutable_map_sint64_sint64() {
  3244. // @@protoc_insertion_point(field_mutable_map:protobuf_unittest.TestArenaMap.map_sint64_sint64)
  3245. return map_sint64_sint64_.MutableMap();
  3246. }
  3247. // map<fixed32, fixed32> map_fixed32_fixed32 = 7;
  3248. inline int TestArenaMap::map_fixed32_fixed32_size() const {
  3249. return map_fixed32_fixed32_.size();
  3250. }
  3251. inline void TestArenaMap::clear_map_fixed32_fixed32() {
  3252. map_fixed32_fixed32_.Clear();
  3253. }
  3254. inline const ::google::protobuf::Map< ::google::protobuf::uint32, ::google::protobuf::uint32 >&
  3255. TestArenaMap::map_fixed32_fixed32() const {
  3256. // @@protoc_insertion_point(field_map:protobuf_unittest.TestArenaMap.map_fixed32_fixed32)
  3257. return map_fixed32_fixed32_.GetMap();
  3258. }
  3259. inline ::google::protobuf::Map< ::google::protobuf::uint32, ::google::protobuf::uint32 >*
  3260. TestArenaMap::mutable_map_fixed32_fixed32() {
  3261. // @@protoc_insertion_point(field_mutable_map:protobuf_unittest.TestArenaMap.map_fixed32_fixed32)
  3262. return map_fixed32_fixed32_.MutableMap();
  3263. }
  3264. // map<fixed64, fixed64> map_fixed64_fixed64 = 8;
  3265. inline int TestArenaMap::map_fixed64_fixed64_size() const {
  3266. return map_fixed64_fixed64_.size();
  3267. }
  3268. inline void TestArenaMap::clear_map_fixed64_fixed64() {
  3269. map_fixed64_fixed64_.Clear();
  3270. }
  3271. inline const ::google::protobuf::Map< ::google::protobuf::uint64, ::google::protobuf::uint64 >&
  3272. TestArenaMap::map_fixed64_fixed64() const {
  3273. // @@protoc_insertion_point(field_map:protobuf_unittest.TestArenaMap.map_fixed64_fixed64)
  3274. return map_fixed64_fixed64_.GetMap();
  3275. }
  3276. inline ::google::protobuf::Map< ::google::protobuf::uint64, ::google::protobuf::uint64 >*
  3277. TestArenaMap::mutable_map_fixed64_fixed64() {
  3278. // @@protoc_insertion_point(field_mutable_map:protobuf_unittest.TestArenaMap.map_fixed64_fixed64)
  3279. return map_fixed64_fixed64_.MutableMap();
  3280. }
  3281. // map<sfixed32, sfixed32> map_sfixed32_sfixed32 = 9;
  3282. inline int TestArenaMap::map_sfixed32_sfixed32_size() const {
  3283. return map_sfixed32_sfixed32_.size();
  3284. }
  3285. inline void TestArenaMap::clear_map_sfixed32_sfixed32() {
  3286. map_sfixed32_sfixed32_.Clear();
  3287. }
  3288. inline const ::google::protobuf::Map< ::google::protobuf::int32, ::google::protobuf::int32 >&
  3289. TestArenaMap::map_sfixed32_sfixed32() const {
  3290. // @@protoc_insertion_point(field_map:protobuf_unittest.TestArenaMap.map_sfixed32_sfixed32)
  3291. return map_sfixed32_sfixed32_.GetMap();
  3292. }
  3293. inline ::google::protobuf::Map< ::google::protobuf::int32, ::google::protobuf::int32 >*
  3294. TestArenaMap::mutable_map_sfixed32_sfixed32() {
  3295. // @@protoc_insertion_point(field_mutable_map:protobuf_unittest.TestArenaMap.map_sfixed32_sfixed32)
  3296. return map_sfixed32_sfixed32_.MutableMap();
  3297. }
  3298. // map<sfixed64, sfixed64> map_sfixed64_sfixed64 = 10;
  3299. inline int TestArenaMap::map_sfixed64_sfixed64_size() const {
  3300. return map_sfixed64_sfixed64_.size();
  3301. }
  3302. inline void TestArenaMap::clear_map_sfixed64_sfixed64() {
  3303. map_sfixed64_sfixed64_.Clear();
  3304. }
  3305. inline const ::google::protobuf::Map< ::google::protobuf::int64, ::google::protobuf::int64 >&
  3306. TestArenaMap::map_sfixed64_sfixed64() const {
  3307. // @@protoc_insertion_point(field_map:protobuf_unittest.TestArenaMap.map_sfixed64_sfixed64)
  3308. return map_sfixed64_sfixed64_.GetMap();
  3309. }
  3310. inline ::google::protobuf::Map< ::google::protobuf::int64, ::google::protobuf::int64 >*
  3311. TestArenaMap::mutable_map_sfixed64_sfixed64() {
  3312. // @@protoc_insertion_point(field_mutable_map:protobuf_unittest.TestArenaMap.map_sfixed64_sfixed64)
  3313. return map_sfixed64_sfixed64_.MutableMap();
  3314. }
  3315. // map<int32, float> map_int32_float = 11;
  3316. inline int TestArenaMap::map_int32_float_size() const {
  3317. return map_int32_float_.size();
  3318. }
  3319. inline void TestArenaMap::clear_map_int32_float() {
  3320. map_int32_float_.Clear();
  3321. }
  3322. inline const ::google::protobuf::Map< ::google::protobuf::int32, float >&
  3323. TestArenaMap::map_int32_float() const {
  3324. // @@protoc_insertion_point(field_map:protobuf_unittest.TestArenaMap.map_int32_float)
  3325. return map_int32_float_.GetMap();
  3326. }
  3327. inline ::google::protobuf::Map< ::google::protobuf::int32, float >*
  3328. TestArenaMap::mutable_map_int32_float() {
  3329. // @@protoc_insertion_point(field_mutable_map:protobuf_unittest.TestArenaMap.map_int32_float)
  3330. return map_int32_float_.MutableMap();
  3331. }
  3332. // map<int32, double> map_int32_double = 12;
  3333. inline int TestArenaMap::map_int32_double_size() const {
  3334. return map_int32_double_.size();
  3335. }
  3336. inline void TestArenaMap::clear_map_int32_double() {
  3337. map_int32_double_.Clear();
  3338. }
  3339. inline const ::google::protobuf::Map< ::google::protobuf::int32, double >&
  3340. TestArenaMap::map_int32_double() const {
  3341. // @@protoc_insertion_point(field_map:protobuf_unittest.TestArenaMap.map_int32_double)
  3342. return map_int32_double_.GetMap();
  3343. }
  3344. inline ::google::protobuf::Map< ::google::protobuf::int32, double >*
  3345. TestArenaMap::mutable_map_int32_double() {
  3346. // @@protoc_insertion_point(field_mutable_map:protobuf_unittest.TestArenaMap.map_int32_double)
  3347. return map_int32_double_.MutableMap();
  3348. }
  3349. // map<bool, bool> map_bool_bool = 13;
  3350. inline int TestArenaMap::map_bool_bool_size() const {
  3351. return map_bool_bool_.size();
  3352. }
  3353. inline void TestArenaMap::clear_map_bool_bool() {
  3354. map_bool_bool_.Clear();
  3355. }
  3356. inline const ::google::protobuf::Map< bool, bool >&
  3357. TestArenaMap::map_bool_bool() const {
  3358. // @@protoc_insertion_point(field_map:protobuf_unittest.TestArenaMap.map_bool_bool)
  3359. return map_bool_bool_.GetMap();
  3360. }
  3361. inline ::google::protobuf::Map< bool, bool >*
  3362. TestArenaMap::mutable_map_bool_bool() {
  3363. // @@protoc_insertion_point(field_mutable_map:protobuf_unittest.TestArenaMap.map_bool_bool)
  3364. return map_bool_bool_.MutableMap();
  3365. }
  3366. // map<string, string> map_string_string = 14;
  3367. inline int TestArenaMap::map_string_string_size() const {
  3368. return map_string_string_.size();
  3369. }
  3370. inline void TestArenaMap::clear_map_string_string() {
  3371. map_string_string_.Clear();
  3372. }
  3373. inline const ::google::protobuf::Map< ::std::string, ::std::string >&
  3374. TestArenaMap::map_string_string() const {
  3375. // @@protoc_insertion_point(field_map:protobuf_unittest.TestArenaMap.map_string_string)
  3376. return map_string_string_.GetMap();
  3377. }
  3378. inline ::google::protobuf::Map< ::std::string, ::std::string >*
  3379. TestArenaMap::mutable_map_string_string() {
  3380. // @@protoc_insertion_point(field_mutable_map:protobuf_unittest.TestArenaMap.map_string_string)
  3381. return map_string_string_.MutableMap();
  3382. }
  3383. // map<int32, bytes> map_int32_bytes = 15;
  3384. inline int TestArenaMap::map_int32_bytes_size() const {
  3385. return map_int32_bytes_.size();
  3386. }
  3387. inline void TestArenaMap::clear_map_int32_bytes() {
  3388. map_int32_bytes_.Clear();
  3389. }
  3390. inline const ::google::protobuf::Map< ::google::protobuf::int32, ::std::string >&
  3391. TestArenaMap::map_int32_bytes() const {
  3392. // @@protoc_insertion_point(field_map:protobuf_unittest.TestArenaMap.map_int32_bytes)
  3393. return map_int32_bytes_.GetMap();
  3394. }
  3395. inline ::google::protobuf::Map< ::google::protobuf::int32, ::std::string >*
  3396. TestArenaMap::mutable_map_int32_bytes() {
  3397. // @@protoc_insertion_point(field_mutable_map:protobuf_unittest.TestArenaMap.map_int32_bytes)
  3398. return map_int32_bytes_.MutableMap();
  3399. }
  3400. // map<int32, .protobuf_unittest.MapEnum> map_int32_enum = 16;
  3401. inline int TestArenaMap::map_int32_enum_size() const {
  3402. return map_int32_enum_.size();
  3403. }
  3404. inline void TestArenaMap::clear_map_int32_enum() {
  3405. map_int32_enum_.Clear();
  3406. }
  3407. inline const ::google::protobuf::Map< ::google::protobuf::int32, ::protobuf_unittest::MapEnum >&
  3408. TestArenaMap::map_int32_enum() const {
  3409. // @@protoc_insertion_point(field_map:protobuf_unittest.TestArenaMap.map_int32_enum)
  3410. return map_int32_enum_.GetMap();
  3411. }
  3412. inline ::google::protobuf::Map< ::google::protobuf::int32, ::protobuf_unittest::MapEnum >*
  3413. TestArenaMap::mutable_map_int32_enum() {
  3414. // @@protoc_insertion_point(field_mutable_map:protobuf_unittest.TestArenaMap.map_int32_enum)
  3415. return map_int32_enum_.MutableMap();
  3416. }
  3417. // map<int32, .protobuf_unittest.ForeignMessage> map_int32_foreign_message = 17;
  3418. inline int TestArenaMap::map_int32_foreign_message_size() const {
  3419. return map_int32_foreign_message_.size();
  3420. }
  3421. inline const ::google::protobuf::Map< ::google::protobuf::int32, ::protobuf_unittest::ForeignMessage >&
  3422. TestArenaMap::map_int32_foreign_message() const {
  3423. // @@protoc_insertion_point(field_map:protobuf_unittest.TestArenaMap.map_int32_foreign_message)
  3424. return map_int32_foreign_message_.GetMap();
  3425. }
  3426. inline ::google::protobuf::Map< ::google::protobuf::int32, ::protobuf_unittest::ForeignMessage >*
  3427. TestArenaMap::mutable_map_int32_foreign_message() {
  3428. // @@protoc_insertion_point(field_mutable_map:protobuf_unittest.TestArenaMap.map_int32_foreign_message)
  3429. return map_int32_foreign_message_.MutableMap();
  3430. }
  3431. // map<int32, .protobuf_unittest_no_arena.ForeignMessage> map_int32_foreign_message_no_arena = 18;
  3432. inline int TestArenaMap::map_int32_foreign_message_no_arena_size() const {
  3433. return map_int32_foreign_message_no_arena_.size();
  3434. }
  3435. inline const ::google::protobuf::Map< ::google::protobuf::int32, ::protobuf_unittest_no_arena::ForeignMessage >&
  3436. TestArenaMap::map_int32_foreign_message_no_arena() const {
  3437. // @@protoc_insertion_point(field_map:protobuf_unittest.TestArenaMap.map_int32_foreign_message_no_arena)
  3438. return map_int32_foreign_message_no_arena_.GetMap();
  3439. }
  3440. inline ::google::protobuf::Map< ::google::protobuf::int32, ::protobuf_unittest_no_arena::ForeignMessage >*
  3441. TestArenaMap::mutable_map_int32_foreign_message_no_arena() {
  3442. // @@protoc_insertion_point(field_mutable_map:protobuf_unittest.TestArenaMap.map_int32_foreign_message_no_arena)
  3443. return map_int32_foreign_message_no_arena_.MutableMap();
  3444. }
  3445. // -------------------------------------------------------------------
  3446. // -------------------------------------------------------------------
  3447. // MessageContainingEnumCalledType
  3448. // map<string, .protobuf_unittest.MessageContainingEnumCalledType> type = 1;
  3449. inline int MessageContainingEnumCalledType::type_size() const {
  3450. return type_.size();
  3451. }
  3452. inline void MessageContainingEnumCalledType::clear_type() {
  3453. type_.Clear();
  3454. }
  3455. inline const ::google::protobuf::Map< ::std::string, ::protobuf_unittest::MessageContainingEnumCalledType >&
  3456. MessageContainingEnumCalledType::type() const {
  3457. // @@protoc_insertion_point(field_map:protobuf_unittest.MessageContainingEnumCalledType.type)
  3458. return type_.GetMap();
  3459. }
  3460. inline ::google::protobuf::Map< ::std::string, ::protobuf_unittest::MessageContainingEnumCalledType >*
  3461. MessageContainingEnumCalledType::mutable_type() {
  3462. // @@protoc_insertion_point(field_mutable_map:protobuf_unittest.MessageContainingEnumCalledType.type)
  3463. return type_.MutableMap();
  3464. }
  3465. // -------------------------------------------------------------------
  3466. // -------------------------------------------------------------------
  3467. // MessageContainingMapCalledEntry
  3468. // map<int32, int32> entry = 1;
  3469. inline int MessageContainingMapCalledEntry::entry_size() const {
  3470. return entry_.size();
  3471. }
  3472. inline void MessageContainingMapCalledEntry::clear_entry() {
  3473. entry_.Clear();
  3474. }
  3475. inline const ::google::protobuf::Map< ::google::protobuf::int32, ::google::protobuf::int32 >&
  3476. MessageContainingMapCalledEntry::entry() const {
  3477. // @@protoc_insertion_point(field_map:protobuf_unittest.MessageContainingMapCalledEntry.entry)
  3478. return entry_.GetMap();
  3479. }
  3480. inline ::google::protobuf::Map< ::google::protobuf::int32, ::google::protobuf::int32 >*
  3481. MessageContainingMapCalledEntry::mutable_entry() {
  3482. // @@protoc_insertion_point(field_mutable_map:protobuf_unittest.MessageContainingMapCalledEntry.entry)
  3483. return entry_.MutableMap();
  3484. }
  3485. // -------------------------------------------------------------------
  3486. // -------------------------------------------------------------------
  3487. // TestRecursiveMapMessage
  3488. // map<string, .protobuf_unittest.TestRecursiveMapMessage> a = 1;
  3489. inline int TestRecursiveMapMessage::a_size() const {
  3490. return a_.size();
  3491. }
  3492. inline void TestRecursiveMapMessage::clear_a() {
  3493. a_.Clear();
  3494. }
  3495. inline const ::google::protobuf::Map< ::std::string, ::protobuf_unittest::TestRecursiveMapMessage >&
  3496. TestRecursiveMapMessage::a() const {
  3497. // @@protoc_insertion_point(field_map:protobuf_unittest.TestRecursiveMapMessage.a)
  3498. return a_.GetMap();
  3499. }
  3500. inline ::google::protobuf::Map< ::std::string, ::protobuf_unittest::TestRecursiveMapMessage >*
  3501. TestRecursiveMapMessage::mutable_a() {
  3502. // @@protoc_insertion_point(field_mutable_map:protobuf_unittest.TestRecursiveMapMessage.a)
  3503. return a_.MutableMap();
  3504. }
  3505. #ifdef __GNUC__
  3506. #pragma GCC diagnostic pop
  3507. #endif // __GNUC__
  3508. // -------------------------------------------------------------------
  3509. // -------------------------------------------------------------------
  3510. // -------------------------------------------------------------------
  3511. // -------------------------------------------------------------------
  3512. // -------------------------------------------------------------------
  3513. // -------------------------------------------------------------------
  3514. // -------------------------------------------------------------------
  3515. // -------------------------------------------------------------------
  3516. // -------------------------------------------------------------------
  3517. // -------------------------------------------------------------------
  3518. // -------------------------------------------------------------------
  3519. // -------------------------------------------------------------------
  3520. // -------------------------------------------------------------------
  3521. // -------------------------------------------------------------------
  3522. // -------------------------------------------------------------------
  3523. // -------------------------------------------------------------------
  3524. // -------------------------------------------------------------------
  3525. // -------------------------------------------------------------------
  3526. // -------------------------------------------------------------------
  3527. // -------------------------------------------------------------------
  3528. // -------------------------------------------------------------------
  3529. // -------------------------------------------------------------------
  3530. // -------------------------------------------------------------------
  3531. // -------------------------------------------------------------------
  3532. // -------------------------------------------------------------------
  3533. // -------------------------------------------------------------------
  3534. // -------------------------------------------------------------------
  3535. // -------------------------------------------------------------------
  3536. // -------------------------------------------------------------------
  3537. // -------------------------------------------------------------------
  3538. // -------------------------------------------------------------------
  3539. // -------------------------------------------------------------------
  3540. // -------------------------------------------------------------------
  3541. // -------------------------------------------------------------------
  3542. // -------------------------------------------------------------------
  3543. // -------------------------------------------------------------------
  3544. // -------------------------------------------------------------------
  3545. // -------------------------------------------------------------------
  3546. // -------------------------------------------------------------------
  3547. // -------------------------------------------------------------------
  3548. // -------------------------------------------------------------------
  3549. // -------------------------------------------------------------------
  3550. // -------------------------------------------------------------------
  3551. // -------------------------------------------------------------------
  3552. // -------------------------------------------------------------------
  3553. // -------------------------------------------------------------------
  3554. // -------------------------------------------------------------------
  3555. // -------------------------------------------------------------------
  3556. // -------------------------------------------------------------------
  3557. // -------------------------------------------------------------------
  3558. // -------------------------------------------------------------------
  3559. // -------------------------------------------------------------------
  3560. // @@protoc_insertion_point(namespace_scope)
  3561. } // namespace protobuf_unittest
  3562. namespace google {
  3563. namespace protobuf {
  3564. template <> struct is_proto_enum< ::protobuf_unittest::MessageContainingEnumCalledType_Type> : ::std::true_type {};
  3565. template <>
  3566. inline const EnumDescriptor* GetEnumDescriptor< ::protobuf_unittest::MessageContainingEnumCalledType_Type>() {
  3567. return ::protobuf_unittest::MessageContainingEnumCalledType_Type_descriptor();
  3568. }
  3569. template <> struct is_proto_enum< ::protobuf_unittest::MapEnum> : ::std::true_type {};
  3570. template <>
  3571. inline const EnumDescriptor* GetEnumDescriptor< ::protobuf_unittest::MapEnum>() {
  3572. return ::protobuf_unittest::MapEnum_descriptor();
  3573. }
  3574. } // namespace protobuf
  3575. } // namespace google
  3576. // @@protoc_insertion_point(global_scope)
  3577. #endif // PROTOBUF_INCLUDED_google_2fprotobuf_2fmap_5funittest_2eproto