map_proto2_unittest.pb.h 91 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116
  1. // Generated by the protocol buffer compiler. DO NOT EDIT!
  2. // source: google/protobuf/map_proto2_unittest.proto
  3. #ifndef PROTOBUF_INCLUDED_google_2fprotobuf_2fmap_5fproto2_5funittest_2eproto
  4. #define PROTOBUF_INCLUDED_google_2fprotobuf_2fmap_5fproto2_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_import.pb.h>
  33. // @@protoc_insertion_point(includes)
  34. #define PROTOBUF_INTERNAL_EXPORT_protobuf_google_2fprotobuf_2fmap_5fproto2_5funittest_2eproto
  35. namespace protobuf_google_2fprotobuf_2fmap_5fproto2_5funittest_2eproto {
  36. // Internal implementation detail -- do not use these members.
  37. struct TableStruct {
  38. static const ::google::protobuf::internal::ParseTableField entries[];
  39. static const ::google::protobuf::internal::AuxillaryParseTableField aux[];
  40. static const ::google::protobuf::internal::ParseTable schema[24];
  41. static const ::google::protobuf::internal::FieldMetadata field_metadata[];
  42. static const ::google::protobuf::internal::SerializationTable serialization_table[];
  43. static const ::google::protobuf::uint32 offsets[];
  44. };
  45. void AddDescriptors();
  46. } // namespace protobuf_google_2fprotobuf_2fmap_5fproto2_5funittest_2eproto
  47. namespace protobuf_unittest {
  48. class TestEnumMap;
  49. class TestEnumMapDefaultTypeInternal;
  50. extern TestEnumMapDefaultTypeInternal _TestEnumMap_default_instance_;
  51. class TestEnumMapPlusExtra;
  52. class TestEnumMapPlusExtraDefaultTypeInternal;
  53. extern TestEnumMapPlusExtraDefaultTypeInternal _TestEnumMapPlusExtra_default_instance_;
  54. class TestEnumMapPlusExtra_KnownMapFieldEntry_DoNotUse;
  55. class TestEnumMapPlusExtra_KnownMapFieldEntry_DoNotUseDefaultTypeInternal;
  56. extern TestEnumMapPlusExtra_KnownMapFieldEntry_DoNotUseDefaultTypeInternal _TestEnumMapPlusExtra_KnownMapFieldEntry_DoNotUse_default_instance_;
  57. class TestEnumMapPlusExtra_UnknownMapFieldEntry_DoNotUse;
  58. class TestEnumMapPlusExtra_UnknownMapFieldEntry_DoNotUseDefaultTypeInternal;
  59. extern TestEnumMapPlusExtra_UnknownMapFieldEntry_DoNotUseDefaultTypeInternal _TestEnumMapPlusExtra_UnknownMapFieldEntry_DoNotUse_default_instance_;
  60. class TestEnumMap_KnownMapFieldEntry_DoNotUse;
  61. class TestEnumMap_KnownMapFieldEntry_DoNotUseDefaultTypeInternal;
  62. extern TestEnumMap_KnownMapFieldEntry_DoNotUseDefaultTypeInternal _TestEnumMap_KnownMapFieldEntry_DoNotUse_default_instance_;
  63. class TestEnumMap_UnknownMapFieldEntry_DoNotUse;
  64. class TestEnumMap_UnknownMapFieldEntry_DoNotUseDefaultTypeInternal;
  65. extern TestEnumMap_UnknownMapFieldEntry_DoNotUseDefaultTypeInternal _TestEnumMap_UnknownMapFieldEntry_DoNotUse_default_instance_;
  66. class TestImportEnumMap;
  67. class TestImportEnumMapDefaultTypeInternal;
  68. extern TestImportEnumMapDefaultTypeInternal _TestImportEnumMap_default_instance_;
  69. class TestImportEnumMap_ImportEnumAmpEntry_DoNotUse;
  70. class TestImportEnumMap_ImportEnumAmpEntry_DoNotUseDefaultTypeInternal;
  71. extern TestImportEnumMap_ImportEnumAmpEntry_DoNotUseDefaultTypeInternal _TestImportEnumMap_ImportEnumAmpEntry_DoNotUse_default_instance_;
  72. class TestIntIntMap;
  73. class TestIntIntMapDefaultTypeInternal;
  74. extern TestIntIntMapDefaultTypeInternal _TestIntIntMap_default_instance_;
  75. class TestIntIntMap_MEntry_DoNotUse;
  76. class TestIntIntMap_MEntry_DoNotUseDefaultTypeInternal;
  77. extern TestIntIntMap_MEntry_DoNotUseDefaultTypeInternal _TestIntIntMap_MEntry_DoNotUse_default_instance_;
  78. class TestMaps;
  79. class TestMapsDefaultTypeInternal;
  80. extern TestMapsDefaultTypeInternal _TestMaps_default_instance_;
  81. class TestMaps_MBoolEntry_DoNotUse;
  82. class TestMaps_MBoolEntry_DoNotUseDefaultTypeInternal;
  83. extern TestMaps_MBoolEntry_DoNotUseDefaultTypeInternal _TestMaps_MBoolEntry_DoNotUse_default_instance_;
  84. class TestMaps_MFixed32Entry_DoNotUse;
  85. class TestMaps_MFixed32Entry_DoNotUseDefaultTypeInternal;
  86. extern TestMaps_MFixed32Entry_DoNotUseDefaultTypeInternal _TestMaps_MFixed32Entry_DoNotUse_default_instance_;
  87. class TestMaps_MFixed64Entry_DoNotUse;
  88. class TestMaps_MFixed64Entry_DoNotUseDefaultTypeInternal;
  89. extern TestMaps_MFixed64Entry_DoNotUseDefaultTypeInternal _TestMaps_MFixed64Entry_DoNotUse_default_instance_;
  90. class TestMaps_MInt32Entry_DoNotUse;
  91. class TestMaps_MInt32Entry_DoNotUseDefaultTypeInternal;
  92. extern TestMaps_MInt32Entry_DoNotUseDefaultTypeInternal _TestMaps_MInt32Entry_DoNotUse_default_instance_;
  93. class TestMaps_MInt64Entry_DoNotUse;
  94. class TestMaps_MInt64Entry_DoNotUseDefaultTypeInternal;
  95. extern TestMaps_MInt64Entry_DoNotUseDefaultTypeInternal _TestMaps_MInt64Entry_DoNotUse_default_instance_;
  96. class TestMaps_MSfixed32Entry_DoNotUse;
  97. class TestMaps_MSfixed32Entry_DoNotUseDefaultTypeInternal;
  98. extern TestMaps_MSfixed32Entry_DoNotUseDefaultTypeInternal _TestMaps_MSfixed32Entry_DoNotUse_default_instance_;
  99. class TestMaps_MSfixed64Entry_DoNotUse;
  100. class TestMaps_MSfixed64Entry_DoNotUseDefaultTypeInternal;
  101. extern TestMaps_MSfixed64Entry_DoNotUseDefaultTypeInternal _TestMaps_MSfixed64Entry_DoNotUse_default_instance_;
  102. class TestMaps_MSint32Entry_DoNotUse;
  103. class TestMaps_MSint32Entry_DoNotUseDefaultTypeInternal;
  104. extern TestMaps_MSint32Entry_DoNotUseDefaultTypeInternal _TestMaps_MSint32Entry_DoNotUse_default_instance_;
  105. class TestMaps_MSint64Entry_DoNotUse;
  106. class TestMaps_MSint64Entry_DoNotUseDefaultTypeInternal;
  107. extern TestMaps_MSint64Entry_DoNotUseDefaultTypeInternal _TestMaps_MSint64Entry_DoNotUse_default_instance_;
  108. class TestMaps_MStringEntry_DoNotUse;
  109. class TestMaps_MStringEntry_DoNotUseDefaultTypeInternal;
  110. extern TestMaps_MStringEntry_DoNotUseDefaultTypeInternal _TestMaps_MStringEntry_DoNotUse_default_instance_;
  111. class TestMaps_MUint32Entry_DoNotUse;
  112. class TestMaps_MUint32Entry_DoNotUseDefaultTypeInternal;
  113. extern TestMaps_MUint32Entry_DoNotUseDefaultTypeInternal _TestMaps_MUint32Entry_DoNotUse_default_instance_;
  114. class TestMaps_MUint64Entry_DoNotUse;
  115. class TestMaps_MUint64Entry_DoNotUseDefaultTypeInternal;
  116. extern TestMaps_MUint64Entry_DoNotUseDefaultTypeInternal _TestMaps_MUint64Entry_DoNotUse_default_instance_;
  117. class TestSubmessageMaps;
  118. class TestSubmessageMapsDefaultTypeInternal;
  119. extern TestSubmessageMapsDefaultTypeInternal _TestSubmessageMaps_default_instance_;
  120. } // namespace protobuf_unittest
  121. namespace google {
  122. namespace protobuf {
  123. template<> ::protobuf_unittest::TestEnumMap* Arena::CreateMaybeMessage<::protobuf_unittest::TestEnumMap>(Arena*);
  124. template<> ::protobuf_unittest::TestEnumMapPlusExtra* Arena::CreateMaybeMessage<::protobuf_unittest::TestEnumMapPlusExtra>(Arena*);
  125. template<> ::protobuf_unittest::TestEnumMapPlusExtra_KnownMapFieldEntry_DoNotUse* Arena::CreateMaybeMessage<::protobuf_unittest::TestEnumMapPlusExtra_KnownMapFieldEntry_DoNotUse>(Arena*);
  126. template<> ::protobuf_unittest::TestEnumMapPlusExtra_UnknownMapFieldEntry_DoNotUse* Arena::CreateMaybeMessage<::protobuf_unittest::TestEnumMapPlusExtra_UnknownMapFieldEntry_DoNotUse>(Arena*);
  127. template<> ::protobuf_unittest::TestEnumMap_KnownMapFieldEntry_DoNotUse* Arena::CreateMaybeMessage<::protobuf_unittest::TestEnumMap_KnownMapFieldEntry_DoNotUse>(Arena*);
  128. template<> ::protobuf_unittest::TestEnumMap_UnknownMapFieldEntry_DoNotUse* Arena::CreateMaybeMessage<::protobuf_unittest::TestEnumMap_UnknownMapFieldEntry_DoNotUse>(Arena*);
  129. template<> ::protobuf_unittest::TestImportEnumMap* Arena::CreateMaybeMessage<::protobuf_unittest::TestImportEnumMap>(Arena*);
  130. template<> ::protobuf_unittest::TestImportEnumMap_ImportEnumAmpEntry_DoNotUse* Arena::CreateMaybeMessage<::protobuf_unittest::TestImportEnumMap_ImportEnumAmpEntry_DoNotUse>(Arena*);
  131. template<> ::protobuf_unittest::TestIntIntMap* Arena::CreateMaybeMessage<::protobuf_unittest::TestIntIntMap>(Arena*);
  132. template<> ::protobuf_unittest::TestIntIntMap_MEntry_DoNotUse* Arena::CreateMaybeMessage<::protobuf_unittest::TestIntIntMap_MEntry_DoNotUse>(Arena*);
  133. template<> ::protobuf_unittest::TestMaps* Arena::CreateMaybeMessage<::protobuf_unittest::TestMaps>(Arena*);
  134. template<> ::protobuf_unittest::TestMaps_MBoolEntry_DoNotUse* Arena::CreateMaybeMessage<::protobuf_unittest::TestMaps_MBoolEntry_DoNotUse>(Arena*);
  135. template<> ::protobuf_unittest::TestMaps_MFixed32Entry_DoNotUse* Arena::CreateMaybeMessage<::protobuf_unittest::TestMaps_MFixed32Entry_DoNotUse>(Arena*);
  136. template<> ::protobuf_unittest::TestMaps_MFixed64Entry_DoNotUse* Arena::CreateMaybeMessage<::protobuf_unittest::TestMaps_MFixed64Entry_DoNotUse>(Arena*);
  137. template<> ::protobuf_unittest::TestMaps_MInt32Entry_DoNotUse* Arena::CreateMaybeMessage<::protobuf_unittest::TestMaps_MInt32Entry_DoNotUse>(Arena*);
  138. template<> ::protobuf_unittest::TestMaps_MInt64Entry_DoNotUse* Arena::CreateMaybeMessage<::protobuf_unittest::TestMaps_MInt64Entry_DoNotUse>(Arena*);
  139. template<> ::protobuf_unittest::TestMaps_MSfixed32Entry_DoNotUse* Arena::CreateMaybeMessage<::protobuf_unittest::TestMaps_MSfixed32Entry_DoNotUse>(Arena*);
  140. template<> ::protobuf_unittest::TestMaps_MSfixed64Entry_DoNotUse* Arena::CreateMaybeMessage<::protobuf_unittest::TestMaps_MSfixed64Entry_DoNotUse>(Arena*);
  141. template<> ::protobuf_unittest::TestMaps_MSint32Entry_DoNotUse* Arena::CreateMaybeMessage<::protobuf_unittest::TestMaps_MSint32Entry_DoNotUse>(Arena*);
  142. template<> ::protobuf_unittest::TestMaps_MSint64Entry_DoNotUse* Arena::CreateMaybeMessage<::protobuf_unittest::TestMaps_MSint64Entry_DoNotUse>(Arena*);
  143. template<> ::protobuf_unittest::TestMaps_MStringEntry_DoNotUse* Arena::CreateMaybeMessage<::protobuf_unittest::TestMaps_MStringEntry_DoNotUse>(Arena*);
  144. template<> ::protobuf_unittest::TestMaps_MUint32Entry_DoNotUse* Arena::CreateMaybeMessage<::protobuf_unittest::TestMaps_MUint32Entry_DoNotUse>(Arena*);
  145. template<> ::protobuf_unittest::TestMaps_MUint64Entry_DoNotUse* Arena::CreateMaybeMessage<::protobuf_unittest::TestMaps_MUint64Entry_DoNotUse>(Arena*);
  146. template<> ::protobuf_unittest::TestSubmessageMaps* Arena::CreateMaybeMessage<::protobuf_unittest::TestSubmessageMaps>(Arena*);
  147. } // namespace protobuf
  148. } // namespace google
  149. namespace protobuf_unittest {
  150. enum Proto2MapEnum {
  151. PROTO2_MAP_ENUM_FOO = 0,
  152. PROTO2_MAP_ENUM_BAR = 1,
  153. PROTO2_MAP_ENUM_BAZ = 2
  154. };
  155. bool Proto2MapEnum_IsValid(int value);
  156. const Proto2MapEnum Proto2MapEnum_MIN = PROTO2_MAP_ENUM_FOO;
  157. const Proto2MapEnum Proto2MapEnum_MAX = PROTO2_MAP_ENUM_BAZ;
  158. const int Proto2MapEnum_ARRAYSIZE = Proto2MapEnum_MAX + 1;
  159. const ::google::protobuf::EnumDescriptor* Proto2MapEnum_descriptor();
  160. inline const ::std::string& Proto2MapEnum_Name(Proto2MapEnum value) {
  161. return ::google::protobuf::internal::NameOfEnum(
  162. Proto2MapEnum_descriptor(), value);
  163. }
  164. inline bool Proto2MapEnum_Parse(
  165. const ::std::string& name, Proto2MapEnum* value) {
  166. return ::google::protobuf::internal::ParseNamedEnum<Proto2MapEnum>(
  167. Proto2MapEnum_descriptor(), name, value);
  168. }
  169. enum Proto2MapEnumPlusExtra {
  170. E_PROTO2_MAP_ENUM_FOO = 0,
  171. E_PROTO2_MAP_ENUM_BAR = 1,
  172. E_PROTO2_MAP_ENUM_BAZ = 2,
  173. E_PROTO2_MAP_ENUM_EXTRA = 3
  174. };
  175. bool Proto2MapEnumPlusExtra_IsValid(int value);
  176. const Proto2MapEnumPlusExtra Proto2MapEnumPlusExtra_MIN = E_PROTO2_MAP_ENUM_FOO;
  177. const Proto2MapEnumPlusExtra Proto2MapEnumPlusExtra_MAX = E_PROTO2_MAP_ENUM_EXTRA;
  178. const int Proto2MapEnumPlusExtra_ARRAYSIZE = Proto2MapEnumPlusExtra_MAX + 1;
  179. const ::google::protobuf::EnumDescriptor* Proto2MapEnumPlusExtra_descriptor();
  180. inline const ::std::string& Proto2MapEnumPlusExtra_Name(Proto2MapEnumPlusExtra value) {
  181. return ::google::protobuf::internal::NameOfEnum(
  182. Proto2MapEnumPlusExtra_descriptor(), value);
  183. }
  184. inline bool Proto2MapEnumPlusExtra_Parse(
  185. const ::std::string& name, Proto2MapEnumPlusExtra* value) {
  186. return ::google::protobuf::internal::ParseNamedEnum<Proto2MapEnumPlusExtra>(
  187. Proto2MapEnumPlusExtra_descriptor(), name, value);
  188. }
  189. // ===================================================================
  190. class TestEnumMap_KnownMapFieldEntry_DoNotUse : public ::google::protobuf::internal::MapEntry<TestEnumMap_KnownMapFieldEntry_DoNotUse,
  191. ::google::protobuf::int32, ::protobuf_unittest::Proto2MapEnum,
  192. ::google::protobuf::internal::WireFormatLite::TYPE_INT32,
  193. ::google::protobuf::internal::WireFormatLite::TYPE_ENUM,
  194. 0 > {
  195. public:
  196. typedef ::google::protobuf::internal::MapEntry<TestEnumMap_KnownMapFieldEntry_DoNotUse,
  197. ::google::protobuf::int32, ::protobuf_unittest::Proto2MapEnum,
  198. ::google::protobuf::internal::WireFormatLite::TYPE_INT32,
  199. ::google::protobuf::internal::WireFormatLite::TYPE_ENUM,
  200. 0 > SuperType;
  201. TestEnumMap_KnownMapFieldEntry_DoNotUse();
  202. TestEnumMap_KnownMapFieldEntry_DoNotUse(::google::protobuf::Arena* arena);
  203. void MergeFrom(const TestEnumMap_KnownMapFieldEntry_DoNotUse& other);
  204. static const TestEnumMap_KnownMapFieldEntry_DoNotUse* internal_default_instance() { return reinterpret_cast<const TestEnumMap_KnownMapFieldEntry_DoNotUse*>(&_TestEnumMap_KnownMapFieldEntry_DoNotUse_default_instance_); }
  205. void MergeFrom(const ::google::protobuf::Message& other) final;
  206. ::google::protobuf::Metadata GetMetadata() const;
  207. };
  208. // -------------------------------------------------------------------
  209. class TestEnumMap_UnknownMapFieldEntry_DoNotUse : public ::google::protobuf::internal::MapEntry<TestEnumMap_UnknownMapFieldEntry_DoNotUse,
  210. ::google::protobuf::int32, ::protobuf_unittest::Proto2MapEnum,
  211. ::google::protobuf::internal::WireFormatLite::TYPE_INT32,
  212. ::google::protobuf::internal::WireFormatLite::TYPE_ENUM,
  213. 0 > {
  214. public:
  215. typedef ::google::protobuf::internal::MapEntry<TestEnumMap_UnknownMapFieldEntry_DoNotUse,
  216. ::google::protobuf::int32, ::protobuf_unittest::Proto2MapEnum,
  217. ::google::protobuf::internal::WireFormatLite::TYPE_INT32,
  218. ::google::protobuf::internal::WireFormatLite::TYPE_ENUM,
  219. 0 > SuperType;
  220. TestEnumMap_UnknownMapFieldEntry_DoNotUse();
  221. TestEnumMap_UnknownMapFieldEntry_DoNotUse(::google::protobuf::Arena* arena);
  222. void MergeFrom(const TestEnumMap_UnknownMapFieldEntry_DoNotUse& other);
  223. static const TestEnumMap_UnknownMapFieldEntry_DoNotUse* internal_default_instance() { return reinterpret_cast<const TestEnumMap_UnknownMapFieldEntry_DoNotUse*>(&_TestEnumMap_UnknownMapFieldEntry_DoNotUse_default_instance_); }
  224. void MergeFrom(const ::google::protobuf::Message& other) final;
  225. ::google::protobuf::Metadata GetMetadata() const;
  226. };
  227. // -------------------------------------------------------------------
  228. class TestEnumMap : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:protobuf_unittest.TestEnumMap) */ {
  229. public:
  230. TestEnumMap();
  231. virtual ~TestEnumMap();
  232. TestEnumMap(const TestEnumMap& from);
  233. inline TestEnumMap& operator=(const TestEnumMap& from) {
  234. CopyFrom(from);
  235. return *this;
  236. }
  237. #if LANG_CXX11
  238. TestEnumMap(TestEnumMap&& from) noexcept
  239. : TestEnumMap() {
  240. *this = ::std::move(from);
  241. }
  242. inline TestEnumMap& operator=(TestEnumMap&& from) noexcept {
  243. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  244. if (this != &from) InternalSwap(&from);
  245. } else {
  246. CopyFrom(from);
  247. }
  248. return *this;
  249. }
  250. #endif
  251. inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
  252. return _internal_metadata_.unknown_fields();
  253. }
  254. inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
  255. return _internal_metadata_.mutable_unknown_fields();
  256. }
  257. inline ::google::protobuf::Arena* GetArena() const final {
  258. return GetArenaNoVirtual();
  259. }
  260. inline void* GetMaybeArenaPointer() const final {
  261. return MaybeArenaPtr();
  262. }
  263. static const ::google::protobuf::Descriptor* descriptor();
  264. static const TestEnumMap& default_instance();
  265. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  266. static inline const TestEnumMap* internal_default_instance() {
  267. return reinterpret_cast<const TestEnumMap*>(
  268. &_TestEnumMap_default_instance_);
  269. }
  270. static constexpr int kIndexInFileMessages =
  271. 2;
  272. void UnsafeArenaSwap(TestEnumMap* other);
  273. void Swap(TestEnumMap* other);
  274. friend void swap(TestEnumMap& a, TestEnumMap& b) {
  275. a.Swap(&b);
  276. }
  277. // implements Message ----------------------------------------------
  278. inline TestEnumMap* New() const final {
  279. return CreateMaybeMessage<TestEnumMap>(NULL);
  280. }
  281. TestEnumMap* New(::google::protobuf::Arena* arena) const final {
  282. return CreateMaybeMessage<TestEnumMap>(arena);
  283. }
  284. void CopyFrom(const ::google::protobuf::Message& from) final;
  285. void MergeFrom(const ::google::protobuf::Message& from) final;
  286. void CopyFrom(const TestEnumMap& from);
  287. void MergeFrom(const TestEnumMap& from);
  288. void Clear() final;
  289. bool IsInitialized() const final;
  290. size_t ByteSizeLong() const final;
  291. bool MergePartialFromCodedStream(
  292. ::google::protobuf::io::CodedInputStream* input) final;
  293. void SerializeWithCachedSizes(
  294. ::google::protobuf::io::CodedOutputStream* output) const final;
  295. ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
  296. bool deterministic, ::google::protobuf::uint8* target) const final;
  297. int GetCachedSize() const final { return _cached_size_.Get(); }
  298. private:
  299. void SharedCtor();
  300. void SharedDtor();
  301. void SetCachedSize(int size) const final;
  302. void InternalSwap(TestEnumMap* other);
  303. protected:
  304. explicit TestEnumMap(::google::protobuf::Arena* arena);
  305. private:
  306. static void ArenaDtor(void* object);
  307. inline void RegisterArenaDtor(::google::protobuf::Arena* arena);
  308. private:
  309. inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
  310. return _internal_metadata_.arena();
  311. }
  312. inline void* MaybeArenaPtr() const {
  313. return _internal_metadata_.raw_arena_ptr();
  314. }
  315. public:
  316. ::google::protobuf::Metadata GetMetadata() const final;
  317. // nested types ----------------------------------------------------
  318. // accessors -------------------------------------------------------
  319. // map<int32, .protobuf_unittest.Proto2MapEnum> known_map_field = 101;
  320. int known_map_field_size() const;
  321. void clear_known_map_field();
  322. static const int kKnownMapFieldFieldNumber = 101;
  323. const ::google::protobuf::Map< ::google::protobuf::int32, ::protobuf_unittest::Proto2MapEnum >&
  324. known_map_field() const;
  325. ::google::protobuf::Map< ::google::protobuf::int32, ::protobuf_unittest::Proto2MapEnum >*
  326. mutable_known_map_field();
  327. // map<int32, .protobuf_unittest.Proto2MapEnum> unknown_map_field = 102;
  328. int unknown_map_field_size() const;
  329. void clear_unknown_map_field();
  330. static const int kUnknownMapFieldFieldNumber = 102;
  331. const ::google::protobuf::Map< ::google::protobuf::int32, ::protobuf_unittest::Proto2MapEnum >&
  332. unknown_map_field() const;
  333. ::google::protobuf::Map< ::google::protobuf::int32, ::protobuf_unittest::Proto2MapEnum >*
  334. mutable_unknown_map_field();
  335. // @@protoc_insertion_point(class_scope:protobuf_unittest.TestEnumMap)
  336. private:
  337. ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
  338. template <typename T> friend class ::google::protobuf::Arena::InternalHelper;
  339. typedef void InternalArenaConstructable_;
  340. typedef void DestructorSkippable_;
  341. ::google::protobuf::internal::HasBits<1> _has_bits_;
  342. mutable ::google::protobuf::internal::CachedSize _cached_size_;
  343. ::google::protobuf::internal::MapField<
  344. TestEnumMap_KnownMapFieldEntry_DoNotUse,
  345. ::google::protobuf::int32, ::protobuf_unittest::Proto2MapEnum,
  346. ::google::protobuf::internal::WireFormatLite::TYPE_INT32,
  347. ::google::protobuf::internal::WireFormatLite::TYPE_ENUM,
  348. 0 > known_map_field_;
  349. ::google::protobuf::internal::MapField<
  350. TestEnumMap_UnknownMapFieldEntry_DoNotUse,
  351. ::google::protobuf::int32, ::protobuf_unittest::Proto2MapEnum,
  352. ::google::protobuf::internal::WireFormatLite::TYPE_INT32,
  353. ::google::protobuf::internal::WireFormatLite::TYPE_ENUM,
  354. 0 > unknown_map_field_;
  355. friend struct ::protobuf_google_2fprotobuf_2fmap_5fproto2_5funittest_2eproto::TableStruct;
  356. };
  357. // -------------------------------------------------------------------
  358. class TestEnumMapPlusExtra_KnownMapFieldEntry_DoNotUse : public ::google::protobuf::internal::MapEntry<TestEnumMapPlusExtra_KnownMapFieldEntry_DoNotUse,
  359. ::google::protobuf::int32, ::protobuf_unittest::Proto2MapEnumPlusExtra,
  360. ::google::protobuf::internal::WireFormatLite::TYPE_INT32,
  361. ::google::protobuf::internal::WireFormatLite::TYPE_ENUM,
  362. 0 > {
  363. public:
  364. typedef ::google::protobuf::internal::MapEntry<TestEnumMapPlusExtra_KnownMapFieldEntry_DoNotUse,
  365. ::google::protobuf::int32, ::protobuf_unittest::Proto2MapEnumPlusExtra,
  366. ::google::protobuf::internal::WireFormatLite::TYPE_INT32,
  367. ::google::protobuf::internal::WireFormatLite::TYPE_ENUM,
  368. 0 > SuperType;
  369. TestEnumMapPlusExtra_KnownMapFieldEntry_DoNotUse();
  370. TestEnumMapPlusExtra_KnownMapFieldEntry_DoNotUse(::google::protobuf::Arena* arena);
  371. void MergeFrom(const TestEnumMapPlusExtra_KnownMapFieldEntry_DoNotUse& other);
  372. static const TestEnumMapPlusExtra_KnownMapFieldEntry_DoNotUse* internal_default_instance() { return reinterpret_cast<const TestEnumMapPlusExtra_KnownMapFieldEntry_DoNotUse*>(&_TestEnumMapPlusExtra_KnownMapFieldEntry_DoNotUse_default_instance_); }
  373. void MergeFrom(const ::google::protobuf::Message& other) final;
  374. ::google::protobuf::Metadata GetMetadata() const;
  375. };
  376. // -------------------------------------------------------------------
  377. class TestEnumMapPlusExtra_UnknownMapFieldEntry_DoNotUse : public ::google::protobuf::internal::MapEntry<TestEnumMapPlusExtra_UnknownMapFieldEntry_DoNotUse,
  378. ::google::protobuf::int32, ::protobuf_unittest::Proto2MapEnumPlusExtra,
  379. ::google::protobuf::internal::WireFormatLite::TYPE_INT32,
  380. ::google::protobuf::internal::WireFormatLite::TYPE_ENUM,
  381. 0 > {
  382. public:
  383. typedef ::google::protobuf::internal::MapEntry<TestEnumMapPlusExtra_UnknownMapFieldEntry_DoNotUse,
  384. ::google::protobuf::int32, ::protobuf_unittest::Proto2MapEnumPlusExtra,
  385. ::google::protobuf::internal::WireFormatLite::TYPE_INT32,
  386. ::google::protobuf::internal::WireFormatLite::TYPE_ENUM,
  387. 0 > SuperType;
  388. TestEnumMapPlusExtra_UnknownMapFieldEntry_DoNotUse();
  389. TestEnumMapPlusExtra_UnknownMapFieldEntry_DoNotUse(::google::protobuf::Arena* arena);
  390. void MergeFrom(const TestEnumMapPlusExtra_UnknownMapFieldEntry_DoNotUse& other);
  391. static const TestEnumMapPlusExtra_UnknownMapFieldEntry_DoNotUse* internal_default_instance() { return reinterpret_cast<const TestEnumMapPlusExtra_UnknownMapFieldEntry_DoNotUse*>(&_TestEnumMapPlusExtra_UnknownMapFieldEntry_DoNotUse_default_instance_); }
  392. void MergeFrom(const ::google::protobuf::Message& other) final;
  393. ::google::protobuf::Metadata GetMetadata() const;
  394. };
  395. // -------------------------------------------------------------------
  396. class TestEnumMapPlusExtra : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:protobuf_unittest.TestEnumMapPlusExtra) */ {
  397. public:
  398. TestEnumMapPlusExtra();
  399. virtual ~TestEnumMapPlusExtra();
  400. TestEnumMapPlusExtra(const TestEnumMapPlusExtra& from);
  401. inline TestEnumMapPlusExtra& operator=(const TestEnumMapPlusExtra& from) {
  402. CopyFrom(from);
  403. return *this;
  404. }
  405. #if LANG_CXX11
  406. TestEnumMapPlusExtra(TestEnumMapPlusExtra&& from) noexcept
  407. : TestEnumMapPlusExtra() {
  408. *this = ::std::move(from);
  409. }
  410. inline TestEnumMapPlusExtra& operator=(TestEnumMapPlusExtra&& from) noexcept {
  411. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  412. if (this != &from) InternalSwap(&from);
  413. } else {
  414. CopyFrom(from);
  415. }
  416. return *this;
  417. }
  418. #endif
  419. inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
  420. return _internal_metadata_.unknown_fields();
  421. }
  422. inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
  423. return _internal_metadata_.mutable_unknown_fields();
  424. }
  425. inline ::google::protobuf::Arena* GetArena() const final {
  426. return GetArenaNoVirtual();
  427. }
  428. inline void* GetMaybeArenaPointer() const final {
  429. return MaybeArenaPtr();
  430. }
  431. static const ::google::protobuf::Descriptor* descriptor();
  432. static const TestEnumMapPlusExtra& default_instance();
  433. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  434. static inline const TestEnumMapPlusExtra* internal_default_instance() {
  435. return reinterpret_cast<const TestEnumMapPlusExtra*>(
  436. &_TestEnumMapPlusExtra_default_instance_);
  437. }
  438. static constexpr int kIndexInFileMessages =
  439. 5;
  440. void UnsafeArenaSwap(TestEnumMapPlusExtra* other);
  441. void Swap(TestEnumMapPlusExtra* other);
  442. friend void swap(TestEnumMapPlusExtra& a, TestEnumMapPlusExtra& b) {
  443. a.Swap(&b);
  444. }
  445. // implements Message ----------------------------------------------
  446. inline TestEnumMapPlusExtra* New() const final {
  447. return CreateMaybeMessage<TestEnumMapPlusExtra>(NULL);
  448. }
  449. TestEnumMapPlusExtra* New(::google::protobuf::Arena* arena) const final {
  450. return CreateMaybeMessage<TestEnumMapPlusExtra>(arena);
  451. }
  452. void CopyFrom(const ::google::protobuf::Message& from) final;
  453. void MergeFrom(const ::google::protobuf::Message& from) final;
  454. void CopyFrom(const TestEnumMapPlusExtra& from);
  455. void MergeFrom(const TestEnumMapPlusExtra& from);
  456. void Clear() final;
  457. bool IsInitialized() const final;
  458. size_t ByteSizeLong() const final;
  459. bool MergePartialFromCodedStream(
  460. ::google::protobuf::io::CodedInputStream* input) final;
  461. void SerializeWithCachedSizes(
  462. ::google::protobuf::io::CodedOutputStream* output) const final;
  463. ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
  464. bool deterministic, ::google::protobuf::uint8* target) const final;
  465. int GetCachedSize() const final { return _cached_size_.Get(); }
  466. private:
  467. void SharedCtor();
  468. void SharedDtor();
  469. void SetCachedSize(int size) const final;
  470. void InternalSwap(TestEnumMapPlusExtra* other);
  471. protected:
  472. explicit TestEnumMapPlusExtra(::google::protobuf::Arena* arena);
  473. private:
  474. static void ArenaDtor(void* object);
  475. inline void RegisterArenaDtor(::google::protobuf::Arena* arena);
  476. private:
  477. inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
  478. return _internal_metadata_.arena();
  479. }
  480. inline void* MaybeArenaPtr() const {
  481. return _internal_metadata_.raw_arena_ptr();
  482. }
  483. public:
  484. ::google::protobuf::Metadata GetMetadata() const final;
  485. // nested types ----------------------------------------------------
  486. // accessors -------------------------------------------------------
  487. // map<int32, .protobuf_unittest.Proto2MapEnumPlusExtra> known_map_field = 101;
  488. int known_map_field_size() const;
  489. void clear_known_map_field();
  490. static const int kKnownMapFieldFieldNumber = 101;
  491. const ::google::protobuf::Map< ::google::protobuf::int32, ::protobuf_unittest::Proto2MapEnumPlusExtra >&
  492. known_map_field() const;
  493. ::google::protobuf::Map< ::google::protobuf::int32, ::protobuf_unittest::Proto2MapEnumPlusExtra >*
  494. mutable_known_map_field();
  495. // map<int32, .protobuf_unittest.Proto2MapEnumPlusExtra> unknown_map_field = 102;
  496. int unknown_map_field_size() const;
  497. void clear_unknown_map_field();
  498. static const int kUnknownMapFieldFieldNumber = 102;
  499. const ::google::protobuf::Map< ::google::protobuf::int32, ::protobuf_unittest::Proto2MapEnumPlusExtra >&
  500. unknown_map_field() const;
  501. ::google::protobuf::Map< ::google::protobuf::int32, ::protobuf_unittest::Proto2MapEnumPlusExtra >*
  502. mutable_unknown_map_field();
  503. // @@protoc_insertion_point(class_scope:protobuf_unittest.TestEnumMapPlusExtra)
  504. private:
  505. ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
  506. template <typename T> friend class ::google::protobuf::Arena::InternalHelper;
  507. typedef void InternalArenaConstructable_;
  508. typedef void DestructorSkippable_;
  509. ::google::protobuf::internal::HasBits<1> _has_bits_;
  510. mutable ::google::protobuf::internal::CachedSize _cached_size_;
  511. ::google::protobuf::internal::MapField<
  512. TestEnumMapPlusExtra_KnownMapFieldEntry_DoNotUse,
  513. ::google::protobuf::int32, ::protobuf_unittest::Proto2MapEnumPlusExtra,
  514. ::google::protobuf::internal::WireFormatLite::TYPE_INT32,
  515. ::google::protobuf::internal::WireFormatLite::TYPE_ENUM,
  516. 0 > known_map_field_;
  517. ::google::protobuf::internal::MapField<
  518. TestEnumMapPlusExtra_UnknownMapFieldEntry_DoNotUse,
  519. ::google::protobuf::int32, ::protobuf_unittest::Proto2MapEnumPlusExtra,
  520. ::google::protobuf::internal::WireFormatLite::TYPE_INT32,
  521. ::google::protobuf::internal::WireFormatLite::TYPE_ENUM,
  522. 0 > unknown_map_field_;
  523. friend struct ::protobuf_google_2fprotobuf_2fmap_5fproto2_5funittest_2eproto::TableStruct;
  524. };
  525. // -------------------------------------------------------------------
  526. class TestImportEnumMap_ImportEnumAmpEntry_DoNotUse : public ::google::protobuf::internal::MapEntry<TestImportEnumMap_ImportEnumAmpEntry_DoNotUse,
  527. ::google::protobuf::int32, ::protobuf_unittest_import::ImportEnumForMap,
  528. ::google::protobuf::internal::WireFormatLite::TYPE_INT32,
  529. ::google::protobuf::internal::WireFormatLite::TYPE_ENUM,
  530. 0 > {
  531. public:
  532. typedef ::google::protobuf::internal::MapEntry<TestImportEnumMap_ImportEnumAmpEntry_DoNotUse,
  533. ::google::protobuf::int32, ::protobuf_unittest_import::ImportEnumForMap,
  534. ::google::protobuf::internal::WireFormatLite::TYPE_INT32,
  535. ::google::protobuf::internal::WireFormatLite::TYPE_ENUM,
  536. 0 > SuperType;
  537. TestImportEnumMap_ImportEnumAmpEntry_DoNotUse();
  538. TestImportEnumMap_ImportEnumAmpEntry_DoNotUse(::google::protobuf::Arena* arena);
  539. void MergeFrom(const TestImportEnumMap_ImportEnumAmpEntry_DoNotUse& other);
  540. static const TestImportEnumMap_ImportEnumAmpEntry_DoNotUse* internal_default_instance() { return reinterpret_cast<const TestImportEnumMap_ImportEnumAmpEntry_DoNotUse*>(&_TestImportEnumMap_ImportEnumAmpEntry_DoNotUse_default_instance_); }
  541. void MergeFrom(const ::google::protobuf::Message& other) final;
  542. ::google::protobuf::Metadata GetMetadata() const;
  543. };
  544. // -------------------------------------------------------------------
  545. class TestImportEnumMap : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:protobuf_unittest.TestImportEnumMap) */ {
  546. public:
  547. TestImportEnumMap();
  548. virtual ~TestImportEnumMap();
  549. TestImportEnumMap(const TestImportEnumMap& from);
  550. inline TestImportEnumMap& operator=(const TestImportEnumMap& from) {
  551. CopyFrom(from);
  552. return *this;
  553. }
  554. #if LANG_CXX11
  555. TestImportEnumMap(TestImportEnumMap&& from) noexcept
  556. : TestImportEnumMap() {
  557. *this = ::std::move(from);
  558. }
  559. inline TestImportEnumMap& operator=(TestImportEnumMap&& from) noexcept {
  560. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  561. if (this != &from) InternalSwap(&from);
  562. } else {
  563. CopyFrom(from);
  564. }
  565. return *this;
  566. }
  567. #endif
  568. inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
  569. return _internal_metadata_.unknown_fields();
  570. }
  571. inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
  572. return _internal_metadata_.mutable_unknown_fields();
  573. }
  574. inline ::google::protobuf::Arena* GetArena() const final {
  575. return GetArenaNoVirtual();
  576. }
  577. inline void* GetMaybeArenaPointer() const final {
  578. return MaybeArenaPtr();
  579. }
  580. static const ::google::protobuf::Descriptor* descriptor();
  581. static const TestImportEnumMap& default_instance();
  582. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  583. static inline const TestImportEnumMap* internal_default_instance() {
  584. return reinterpret_cast<const TestImportEnumMap*>(
  585. &_TestImportEnumMap_default_instance_);
  586. }
  587. static constexpr int kIndexInFileMessages =
  588. 7;
  589. void UnsafeArenaSwap(TestImportEnumMap* other);
  590. void Swap(TestImportEnumMap* other);
  591. friend void swap(TestImportEnumMap& a, TestImportEnumMap& b) {
  592. a.Swap(&b);
  593. }
  594. // implements Message ----------------------------------------------
  595. inline TestImportEnumMap* New() const final {
  596. return CreateMaybeMessage<TestImportEnumMap>(NULL);
  597. }
  598. TestImportEnumMap* New(::google::protobuf::Arena* arena) const final {
  599. return CreateMaybeMessage<TestImportEnumMap>(arena);
  600. }
  601. void CopyFrom(const ::google::protobuf::Message& from) final;
  602. void MergeFrom(const ::google::protobuf::Message& from) final;
  603. void CopyFrom(const TestImportEnumMap& from);
  604. void MergeFrom(const TestImportEnumMap& from);
  605. void Clear() final;
  606. bool IsInitialized() const final;
  607. size_t ByteSizeLong() const final;
  608. bool MergePartialFromCodedStream(
  609. ::google::protobuf::io::CodedInputStream* input) final;
  610. void SerializeWithCachedSizes(
  611. ::google::protobuf::io::CodedOutputStream* output) const final;
  612. ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
  613. bool deterministic, ::google::protobuf::uint8* target) const final;
  614. int GetCachedSize() const final { return _cached_size_.Get(); }
  615. private:
  616. void SharedCtor();
  617. void SharedDtor();
  618. void SetCachedSize(int size) const final;
  619. void InternalSwap(TestImportEnumMap* other);
  620. protected:
  621. explicit TestImportEnumMap(::google::protobuf::Arena* arena);
  622. private:
  623. static void ArenaDtor(void* object);
  624. inline void RegisterArenaDtor(::google::protobuf::Arena* arena);
  625. private:
  626. inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
  627. return _internal_metadata_.arena();
  628. }
  629. inline void* MaybeArenaPtr() const {
  630. return _internal_metadata_.raw_arena_ptr();
  631. }
  632. public:
  633. ::google::protobuf::Metadata GetMetadata() const final;
  634. // nested types ----------------------------------------------------
  635. // accessors -------------------------------------------------------
  636. // map<int32, .protobuf_unittest_import.ImportEnumForMap> import_enum_amp = 1;
  637. int import_enum_amp_size() const;
  638. void clear_import_enum_amp();
  639. static const int kImportEnumAmpFieldNumber = 1;
  640. const ::google::protobuf::Map< ::google::protobuf::int32, ::protobuf_unittest_import::ImportEnumForMap >&
  641. import_enum_amp() const;
  642. ::google::protobuf::Map< ::google::protobuf::int32, ::protobuf_unittest_import::ImportEnumForMap >*
  643. mutable_import_enum_amp();
  644. // @@protoc_insertion_point(class_scope:protobuf_unittest.TestImportEnumMap)
  645. private:
  646. ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
  647. template <typename T> friend class ::google::protobuf::Arena::InternalHelper;
  648. typedef void InternalArenaConstructable_;
  649. typedef void DestructorSkippable_;
  650. ::google::protobuf::internal::HasBits<1> _has_bits_;
  651. mutable ::google::protobuf::internal::CachedSize _cached_size_;
  652. ::google::protobuf::internal::MapField<
  653. TestImportEnumMap_ImportEnumAmpEntry_DoNotUse,
  654. ::google::protobuf::int32, ::protobuf_unittest_import::ImportEnumForMap,
  655. ::google::protobuf::internal::WireFormatLite::TYPE_INT32,
  656. ::google::protobuf::internal::WireFormatLite::TYPE_ENUM,
  657. 0 > import_enum_amp_;
  658. friend struct ::protobuf_google_2fprotobuf_2fmap_5fproto2_5funittest_2eproto::TableStruct;
  659. };
  660. // -------------------------------------------------------------------
  661. class TestIntIntMap_MEntry_DoNotUse : public ::google::protobuf::internal::MapEntry<TestIntIntMap_MEntry_DoNotUse,
  662. ::google::protobuf::int32, ::google::protobuf::int32,
  663. ::google::protobuf::internal::WireFormatLite::TYPE_INT32,
  664. ::google::protobuf::internal::WireFormatLite::TYPE_INT32,
  665. 0 > {
  666. public:
  667. typedef ::google::protobuf::internal::MapEntry<TestIntIntMap_MEntry_DoNotUse,
  668. ::google::protobuf::int32, ::google::protobuf::int32,
  669. ::google::protobuf::internal::WireFormatLite::TYPE_INT32,
  670. ::google::protobuf::internal::WireFormatLite::TYPE_INT32,
  671. 0 > SuperType;
  672. TestIntIntMap_MEntry_DoNotUse();
  673. TestIntIntMap_MEntry_DoNotUse(::google::protobuf::Arena* arena);
  674. void MergeFrom(const TestIntIntMap_MEntry_DoNotUse& other);
  675. static const TestIntIntMap_MEntry_DoNotUse* internal_default_instance() { return reinterpret_cast<const TestIntIntMap_MEntry_DoNotUse*>(&_TestIntIntMap_MEntry_DoNotUse_default_instance_); }
  676. void MergeFrom(const ::google::protobuf::Message& other) final;
  677. ::google::protobuf::Metadata GetMetadata() const;
  678. };
  679. // -------------------------------------------------------------------
  680. class TestIntIntMap : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:protobuf_unittest.TestIntIntMap) */ {
  681. public:
  682. TestIntIntMap();
  683. virtual ~TestIntIntMap();
  684. TestIntIntMap(const TestIntIntMap& from);
  685. inline TestIntIntMap& operator=(const TestIntIntMap& from) {
  686. CopyFrom(from);
  687. return *this;
  688. }
  689. #if LANG_CXX11
  690. TestIntIntMap(TestIntIntMap&& from) noexcept
  691. : TestIntIntMap() {
  692. *this = ::std::move(from);
  693. }
  694. inline TestIntIntMap& operator=(TestIntIntMap&& from) noexcept {
  695. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  696. if (this != &from) InternalSwap(&from);
  697. } else {
  698. CopyFrom(from);
  699. }
  700. return *this;
  701. }
  702. #endif
  703. inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
  704. return _internal_metadata_.unknown_fields();
  705. }
  706. inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
  707. return _internal_metadata_.mutable_unknown_fields();
  708. }
  709. inline ::google::protobuf::Arena* GetArena() const final {
  710. return GetArenaNoVirtual();
  711. }
  712. inline void* GetMaybeArenaPointer() const final {
  713. return MaybeArenaPtr();
  714. }
  715. static const ::google::protobuf::Descriptor* descriptor();
  716. static const TestIntIntMap& default_instance();
  717. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  718. static inline const TestIntIntMap* internal_default_instance() {
  719. return reinterpret_cast<const TestIntIntMap*>(
  720. &_TestIntIntMap_default_instance_);
  721. }
  722. static constexpr int kIndexInFileMessages =
  723. 9;
  724. void UnsafeArenaSwap(TestIntIntMap* other);
  725. void Swap(TestIntIntMap* other);
  726. friend void swap(TestIntIntMap& a, TestIntIntMap& b) {
  727. a.Swap(&b);
  728. }
  729. // implements Message ----------------------------------------------
  730. inline TestIntIntMap* New() const final {
  731. return CreateMaybeMessage<TestIntIntMap>(NULL);
  732. }
  733. TestIntIntMap* New(::google::protobuf::Arena* arena) const final {
  734. return CreateMaybeMessage<TestIntIntMap>(arena);
  735. }
  736. void CopyFrom(const ::google::protobuf::Message& from) final;
  737. void MergeFrom(const ::google::protobuf::Message& from) final;
  738. void CopyFrom(const TestIntIntMap& from);
  739. void MergeFrom(const TestIntIntMap& from);
  740. void Clear() final;
  741. bool IsInitialized() const final;
  742. size_t ByteSizeLong() const final;
  743. bool MergePartialFromCodedStream(
  744. ::google::protobuf::io::CodedInputStream* input) final;
  745. void SerializeWithCachedSizes(
  746. ::google::protobuf::io::CodedOutputStream* output) const final;
  747. ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
  748. bool deterministic, ::google::protobuf::uint8* target) const final;
  749. int GetCachedSize() const final { return _cached_size_.Get(); }
  750. private:
  751. void SharedCtor();
  752. void SharedDtor();
  753. void SetCachedSize(int size) const final;
  754. void InternalSwap(TestIntIntMap* other);
  755. protected:
  756. explicit TestIntIntMap(::google::protobuf::Arena* arena);
  757. private:
  758. static void ArenaDtor(void* object);
  759. inline void RegisterArenaDtor(::google::protobuf::Arena* arena);
  760. private:
  761. inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
  762. return _internal_metadata_.arena();
  763. }
  764. inline void* MaybeArenaPtr() const {
  765. return _internal_metadata_.raw_arena_ptr();
  766. }
  767. public:
  768. ::google::protobuf::Metadata GetMetadata() const final;
  769. // nested types ----------------------------------------------------
  770. // accessors -------------------------------------------------------
  771. // map<int32, int32> m = 1;
  772. int m_size() const;
  773. void clear_m();
  774. static const int kMFieldNumber = 1;
  775. const ::google::protobuf::Map< ::google::protobuf::int32, ::google::protobuf::int32 >&
  776. m() const;
  777. ::google::protobuf::Map< ::google::protobuf::int32, ::google::protobuf::int32 >*
  778. mutable_m();
  779. // @@protoc_insertion_point(class_scope:protobuf_unittest.TestIntIntMap)
  780. private:
  781. ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
  782. template <typename T> friend class ::google::protobuf::Arena::InternalHelper;
  783. typedef void InternalArenaConstructable_;
  784. typedef void DestructorSkippable_;
  785. ::google::protobuf::internal::HasBits<1> _has_bits_;
  786. mutable ::google::protobuf::internal::CachedSize _cached_size_;
  787. ::google::protobuf::internal::MapField<
  788. TestIntIntMap_MEntry_DoNotUse,
  789. ::google::protobuf::int32, ::google::protobuf::int32,
  790. ::google::protobuf::internal::WireFormatLite::TYPE_INT32,
  791. ::google::protobuf::internal::WireFormatLite::TYPE_INT32,
  792. 0 > m_;
  793. friend struct ::protobuf_google_2fprotobuf_2fmap_5fproto2_5funittest_2eproto::TableStruct;
  794. };
  795. // -------------------------------------------------------------------
  796. class TestMaps_MInt32Entry_DoNotUse : public ::google::protobuf::internal::MapEntry<TestMaps_MInt32Entry_DoNotUse,
  797. ::google::protobuf::int32, ::protobuf_unittest::TestIntIntMap,
  798. ::google::protobuf::internal::WireFormatLite::TYPE_INT32,
  799. ::google::protobuf::internal::WireFormatLite::TYPE_MESSAGE,
  800. 0 > {
  801. public:
  802. typedef ::google::protobuf::internal::MapEntry<TestMaps_MInt32Entry_DoNotUse,
  803. ::google::protobuf::int32, ::protobuf_unittest::TestIntIntMap,
  804. ::google::protobuf::internal::WireFormatLite::TYPE_INT32,
  805. ::google::protobuf::internal::WireFormatLite::TYPE_MESSAGE,
  806. 0 > SuperType;
  807. TestMaps_MInt32Entry_DoNotUse();
  808. TestMaps_MInt32Entry_DoNotUse(::google::protobuf::Arena* arena);
  809. void MergeFrom(const TestMaps_MInt32Entry_DoNotUse& other);
  810. static const TestMaps_MInt32Entry_DoNotUse* internal_default_instance() { return reinterpret_cast<const TestMaps_MInt32Entry_DoNotUse*>(&_TestMaps_MInt32Entry_DoNotUse_default_instance_); }
  811. void MergeFrom(const ::google::protobuf::Message& other) final;
  812. ::google::protobuf::Metadata GetMetadata() const;
  813. };
  814. // -------------------------------------------------------------------
  815. class TestMaps_MInt64Entry_DoNotUse : public ::google::protobuf::internal::MapEntry<TestMaps_MInt64Entry_DoNotUse,
  816. ::google::protobuf::int64, ::protobuf_unittest::TestIntIntMap,
  817. ::google::protobuf::internal::WireFormatLite::TYPE_INT64,
  818. ::google::protobuf::internal::WireFormatLite::TYPE_MESSAGE,
  819. 0 > {
  820. public:
  821. typedef ::google::protobuf::internal::MapEntry<TestMaps_MInt64Entry_DoNotUse,
  822. ::google::protobuf::int64, ::protobuf_unittest::TestIntIntMap,
  823. ::google::protobuf::internal::WireFormatLite::TYPE_INT64,
  824. ::google::protobuf::internal::WireFormatLite::TYPE_MESSAGE,
  825. 0 > SuperType;
  826. TestMaps_MInt64Entry_DoNotUse();
  827. TestMaps_MInt64Entry_DoNotUse(::google::protobuf::Arena* arena);
  828. void MergeFrom(const TestMaps_MInt64Entry_DoNotUse& other);
  829. static const TestMaps_MInt64Entry_DoNotUse* internal_default_instance() { return reinterpret_cast<const TestMaps_MInt64Entry_DoNotUse*>(&_TestMaps_MInt64Entry_DoNotUse_default_instance_); }
  830. void MergeFrom(const ::google::protobuf::Message& other) final;
  831. ::google::protobuf::Metadata GetMetadata() const;
  832. };
  833. // -------------------------------------------------------------------
  834. class TestMaps_MUint32Entry_DoNotUse : public ::google::protobuf::internal::MapEntry<TestMaps_MUint32Entry_DoNotUse,
  835. ::google::protobuf::uint32, ::protobuf_unittest::TestIntIntMap,
  836. ::google::protobuf::internal::WireFormatLite::TYPE_UINT32,
  837. ::google::protobuf::internal::WireFormatLite::TYPE_MESSAGE,
  838. 0 > {
  839. public:
  840. typedef ::google::protobuf::internal::MapEntry<TestMaps_MUint32Entry_DoNotUse,
  841. ::google::protobuf::uint32, ::protobuf_unittest::TestIntIntMap,
  842. ::google::protobuf::internal::WireFormatLite::TYPE_UINT32,
  843. ::google::protobuf::internal::WireFormatLite::TYPE_MESSAGE,
  844. 0 > SuperType;
  845. TestMaps_MUint32Entry_DoNotUse();
  846. TestMaps_MUint32Entry_DoNotUse(::google::protobuf::Arena* arena);
  847. void MergeFrom(const TestMaps_MUint32Entry_DoNotUse& other);
  848. static const TestMaps_MUint32Entry_DoNotUse* internal_default_instance() { return reinterpret_cast<const TestMaps_MUint32Entry_DoNotUse*>(&_TestMaps_MUint32Entry_DoNotUse_default_instance_); }
  849. void MergeFrom(const ::google::protobuf::Message& other) final;
  850. ::google::protobuf::Metadata GetMetadata() const;
  851. };
  852. // -------------------------------------------------------------------
  853. class TestMaps_MUint64Entry_DoNotUse : public ::google::protobuf::internal::MapEntry<TestMaps_MUint64Entry_DoNotUse,
  854. ::google::protobuf::uint64, ::protobuf_unittest::TestIntIntMap,
  855. ::google::protobuf::internal::WireFormatLite::TYPE_UINT64,
  856. ::google::protobuf::internal::WireFormatLite::TYPE_MESSAGE,
  857. 0 > {
  858. public:
  859. typedef ::google::protobuf::internal::MapEntry<TestMaps_MUint64Entry_DoNotUse,
  860. ::google::protobuf::uint64, ::protobuf_unittest::TestIntIntMap,
  861. ::google::protobuf::internal::WireFormatLite::TYPE_UINT64,
  862. ::google::protobuf::internal::WireFormatLite::TYPE_MESSAGE,
  863. 0 > SuperType;
  864. TestMaps_MUint64Entry_DoNotUse();
  865. TestMaps_MUint64Entry_DoNotUse(::google::protobuf::Arena* arena);
  866. void MergeFrom(const TestMaps_MUint64Entry_DoNotUse& other);
  867. static const TestMaps_MUint64Entry_DoNotUse* internal_default_instance() { return reinterpret_cast<const TestMaps_MUint64Entry_DoNotUse*>(&_TestMaps_MUint64Entry_DoNotUse_default_instance_); }
  868. void MergeFrom(const ::google::protobuf::Message& other) final;
  869. ::google::protobuf::Metadata GetMetadata() const;
  870. };
  871. // -------------------------------------------------------------------
  872. class TestMaps_MSint32Entry_DoNotUse : public ::google::protobuf::internal::MapEntry<TestMaps_MSint32Entry_DoNotUse,
  873. ::google::protobuf::int32, ::protobuf_unittest::TestIntIntMap,
  874. ::google::protobuf::internal::WireFormatLite::TYPE_SINT32,
  875. ::google::protobuf::internal::WireFormatLite::TYPE_MESSAGE,
  876. 0 > {
  877. public:
  878. typedef ::google::protobuf::internal::MapEntry<TestMaps_MSint32Entry_DoNotUse,
  879. ::google::protobuf::int32, ::protobuf_unittest::TestIntIntMap,
  880. ::google::protobuf::internal::WireFormatLite::TYPE_SINT32,
  881. ::google::protobuf::internal::WireFormatLite::TYPE_MESSAGE,
  882. 0 > SuperType;
  883. TestMaps_MSint32Entry_DoNotUse();
  884. TestMaps_MSint32Entry_DoNotUse(::google::protobuf::Arena* arena);
  885. void MergeFrom(const TestMaps_MSint32Entry_DoNotUse& other);
  886. static const TestMaps_MSint32Entry_DoNotUse* internal_default_instance() { return reinterpret_cast<const TestMaps_MSint32Entry_DoNotUse*>(&_TestMaps_MSint32Entry_DoNotUse_default_instance_); }
  887. void MergeFrom(const ::google::protobuf::Message& other) final;
  888. ::google::protobuf::Metadata GetMetadata() const;
  889. };
  890. // -------------------------------------------------------------------
  891. class TestMaps_MSint64Entry_DoNotUse : public ::google::protobuf::internal::MapEntry<TestMaps_MSint64Entry_DoNotUse,
  892. ::google::protobuf::int64, ::protobuf_unittest::TestIntIntMap,
  893. ::google::protobuf::internal::WireFormatLite::TYPE_SINT64,
  894. ::google::protobuf::internal::WireFormatLite::TYPE_MESSAGE,
  895. 0 > {
  896. public:
  897. typedef ::google::protobuf::internal::MapEntry<TestMaps_MSint64Entry_DoNotUse,
  898. ::google::protobuf::int64, ::protobuf_unittest::TestIntIntMap,
  899. ::google::protobuf::internal::WireFormatLite::TYPE_SINT64,
  900. ::google::protobuf::internal::WireFormatLite::TYPE_MESSAGE,
  901. 0 > SuperType;
  902. TestMaps_MSint64Entry_DoNotUse();
  903. TestMaps_MSint64Entry_DoNotUse(::google::protobuf::Arena* arena);
  904. void MergeFrom(const TestMaps_MSint64Entry_DoNotUse& other);
  905. static const TestMaps_MSint64Entry_DoNotUse* internal_default_instance() { return reinterpret_cast<const TestMaps_MSint64Entry_DoNotUse*>(&_TestMaps_MSint64Entry_DoNotUse_default_instance_); }
  906. void MergeFrom(const ::google::protobuf::Message& other) final;
  907. ::google::protobuf::Metadata GetMetadata() const;
  908. };
  909. // -------------------------------------------------------------------
  910. class TestMaps_MFixed32Entry_DoNotUse : public ::google::protobuf::internal::MapEntry<TestMaps_MFixed32Entry_DoNotUse,
  911. ::google::protobuf::uint32, ::protobuf_unittest::TestIntIntMap,
  912. ::google::protobuf::internal::WireFormatLite::TYPE_FIXED32,
  913. ::google::protobuf::internal::WireFormatLite::TYPE_MESSAGE,
  914. 0 > {
  915. public:
  916. typedef ::google::protobuf::internal::MapEntry<TestMaps_MFixed32Entry_DoNotUse,
  917. ::google::protobuf::uint32, ::protobuf_unittest::TestIntIntMap,
  918. ::google::protobuf::internal::WireFormatLite::TYPE_FIXED32,
  919. ::google::protobuf::internal::WireFormatLite::TYPE_MESSAGE,
  920. 0 > SuperType;
  921. TestMaps_MFixed32Entry_DoNotUse();
  922. TestMaps_MFixed32Entry_DoNotUse(::google::protobuf::Arena* arena);
  923. void MergeFrom(const TestMaps_MFixed32Entry_DoNotUse& other);
  924. static const TestMaps_MFixed32Entry_DoNotUse* internal_default_instance() { return reinterpret_cast<const TestMaps_MFixed32Entry_DoNotUse*>(&_TestMaps_MFixed32Entry_DoNotUse_default_instance_); }
  925. void MergeFrom(const ::google::protobuf::Message& other) final;
  926. ::google::protobuf::Metadata GetMetadata() const;
  927. };
  928. // -------------------------------------------------------------------
  929. class TestMaps_MFixed64Entry_DoNotUse : public ::google::protobuf::internal::MapEntry<TestMaps_MFixed64Entry_DoNotUse,
  930. ::google::protobuf::uint64, ::protobuf_unittest::TestIntIntMap,
  931. ::google::protobuf::internal::WireFormatLite::TYPE_FIXED64,
  932. ::google::protobuf::internal::WireFormatLite::TYPE_MESSAGE,
  933. 0 > {
  934. public:
  935. typedef ::google::protobuf::internal::MapEntry<TestMaps_MFixed64Entry_DoNotUse,
  936. ::google::protobuf::uint64, ::protobuf_unittest::TestIntIntMap,
  937. ::google::protobuf::internal::WireFormatLite::TYPE_FIXED64,
  938. ::google::protobuf::internal::WireFormatLite::TYPE_MESSAGE,
  939. 0 > SuperType;
  940. TestMaps_MFixed64Entry_DoNotUse();
  941. TestMaps_MFixed64Entry_DoNotUse(::google::protobuf::Arena* arena);
  942. void MergeFrom(const TestMaps_MFixed64Entry_DoNotUse& other);
  943. static const TestMaps_MFixed64Entry_DoNotUse* internal_default_instance() { return reinterpret_cast<const TestMaps_MFixed64Entry_DoNotUse*>(&_TestMaps_MFixed64Entry_DoNotUse_default_instance_); }
  944. void MergeFrom(const ::google::protobuf::Message& other) final;
  945. ::google::protobuf::Metadata GetMetadata() const;
  946. };
  947. // -------------------------------------------------------------------
  948. class TestMaps_MSfixed32Entry_DoNotUse : public ::google::protobuf::internal::MapEntry<TestMaps_MSfixed32Entry_DoNotUse,
  949. ::google::protobuf::int32, ::protobuf_unittest::TestIntIntMap,
  950. ::google::protobuf::internal::WireFormatLite::TYPE_SFIXED32,
  951. ::google::protobuf::internal::WireFormatLite::TYPE_MESSAGE,
  952. 0 > {
  953. public:
  954. typedef ::google::protobuf::internal::MapEntry<TestMaps_MSfixed32Entry_DoNotUse,
  955. ::google::protobuf::int32, ::protobuf_unittest::TestIntIntMap,
  956. ::google::protobuf::internal::WireFormatLite::TYPE_SFIXED32,
  957. ::google::protobuf::internal::WireFormatLite::TYPE_MESSAGE,
  958. 0 > SuperType;
  959. TestMaps_MSfixed32Entry_DoNotUse();
  960. TestMaps_MSfixed32Entry_DoNotUse(::google::protobuf::Arena* arena);
  961. void MergeFrom(const TestMaps_MSfixed32Entry_DoNotUse& other);
  962. static const TestMaps_MSfixed32Entry_DoNotUse* internal_default_instance() { return reinterpret_cast<const TestMaps_MSfixed32Entry_DoNotUse*>(&_TestMaps_MSfixed32Entry_DoNotUse_default_instance_); }
  963. void MergeFrom(const ::google::protobuf::Message& other) final;
  964. ::google::protobuf::Metadata GetMetadata() const;
  965. };
  966. // -------------------------------------------------------------------
  967. class TestMaps_MSfixed64Entry_DoNotUse : public ::google::protobuf::internal::MapEntry<TestMaps_MSfixed64Entry_DoNotUse,
  968. ::google::protobuf::int64, ::protobuf_unittest::TestIntIntMap,
  969. ::google::protobuf::internal::WireFormatLite::TYPE_SFIXED64,
  970. ::google::protobuf::internal::WireFormatLite::TYPE_MESSAGE,
  971. 0 > {
  972. public:
  973. typedef ::google::protobuf::internal::MapEntry<TestMaps_MSfixed64Entry_DoNotUse,
  974. ::google::protobuf::int64, ::protobuf_unittest::TestIntIntMap,
  975. ::google::protobuf::internal::WireFormatLite::TYPE_SFIXED64,
  976. ::google::protobuf::internal::WireFormatLite::TYPE_MESSAGE,
  977. 0 > SuperType;
  978. TestMaps_MSfixed64Entry_DoNotUse();
  979. TestMaps_MSfixed64Entry_DoNotUse(::google::protobuf::Arena* arena);
  980. void MergeFrom(const TestMaps_MSfixed64Entry_DoNotUse& other);
  981. static const TestMaps_MSfixed64Entry_DoNotUse* internal_default_instance() { return reinterpret_cast<const TestMaps_MSfixed64Entry_DoNotUse*>(&_TestMaps_MSfixed64Entry_DoNotUse_default_instance_); }
  982. void MergeFrom(const ::google::protobuf::Message& other) final;
  983. ::google::protobuf::Metadata GetMetadata() const;
  984. };
  985. // -------------------------------------------------------------------
  986. class TestMaps_MBoolEntry_DoNotUse : public ::google::protobuf::internal::MapEntry<TestMaps_MBoolEntry_DoNotUse,
  987. bool, ::protobuf_unittest::TestIntIntMap,
  988. ::google::protobuf::internal::WireFormatLite::TYPE_BOOL,
  989. ::google::protobuf::internal::WireFormatLite::TYPE_MESSAGE,
  990. 0 > {
  991. public:
  992. typedef ::google::protobuf::internal::MapEntry<TestMaps_MBoolEntry_DoNotUse,
  993. bool, ::protobuf_unittest::TestIntIntMap,
  994. ::google::protobuf::internal::WireFormatLite::TYPE_BOOL,
  995. ::google::protobuf::internal::WireFormatLite::TYPE_MESSAGE,
  996. 0 > SuperType;
  997. TestMaps_MBoolEntry_DoNotUse();
  998. TestMaps_MBoolEntry_DoNotUse(::google::protobuf::Arena* arena);
  999. void MergeFrom(const TestMaps_MBoolEntry_DoNotUse& other);
  1000. static const TestMaps_MBoolEntry_DoNotUse* internal_default_instance() { return reinterpret_cast<const TestMaps_MBoolEntry_DoNotUse*>(&_TestMaps_MBoolEntry_DoNotUse_default_instance_); }
  1001. void MergeFrom(const ::google::protobuf::Message& other) final;
  1002. ::google::protobuf::Metadata GetMetadata() const;
  1003. };
  1004. // -------------------------------------------------------------------
  1005. class TestMaps_MStringEntry_DoNotUse : public ::google::protobuf::internal::MapEntry<TestMaps_MStringEntry_DoNotUse,
  1006. ::std::string, ::protobuf_unittest::TestIntIntMap,
  1007. ::google::protobuf::internal::WireFormatLite::TYPE_STRING,
  1008. ::google::protobuf::internal::WireFormatLite::TYPE_MESSAGE,
  1009. 0 > {
  1010. public:
  1011. typedef ::google::protobuf::internal::MapEntry<TestMaps_MStringEntry_DoNotUse,
  1012. ::std::string, ::protobuf_unittest::TestIntIntMap,
  1013. ::google::protobuf::internal::WireFormatLite::TYPE_STRING,
  1014. ::google::protobuf::internal::WireFormatLite::TYPE_MESSAGE,
  1015. 0 > SuperType;
  1016. TestMaps_MStringEntry_DoNotUse();
  1017. TestMaps_MStringEntry_DoNotUse(::google::protobuf::Arena* arena);
  1018. void MergeFrom(const TestMaps_MStringEntry_DoNotUse& other);
  1019. static const TestMaps_MStringEntry_DoNotUse* internal_default_instance() { return reinterpret_cast<const TestMaps_MStringEntry_DoNotUse*>(&_TestMaps_MStringEntry_DoNotUse_default_instance_); }
  1020. void MergeFrom(const ::google::protobuf::Message& other) final;
  1021. ::google::protobuf::Metadata GetMetadata() const;
  1022. };
  1023. // -------------------------------------------------------------------
  1024. class TestMaps : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:protobuf_unittest.TestMaps) */ {
  1025. public:
  1026. TestMaps();
  1027. virtual ~TestMaps();
  1028. TestMaps(const TestMaps& from);
  1029. inline TestMaps& operator=(const TestMaps& from) {
  1030. CopyFrom(from);
  1031. return *this;
  1032. }
  1033. #if LANG_CXX11
  1034. TestMaps(TestMaps&& from) noexcept
  1035. : TestMaps() {
  1036. *this = ::std::move(from);
  1037. }
  1038. inline TestMaps& operator=(TestMaps&& from) noexcept {
  1039. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  1040. if (this != &from) InternalSwap(&from);
  1041. } else {
  1042. CopyFrom(from);
  1043. }
  1044. return *this;
  1045. }
  1046. #endif
  1047. inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
  1048. return _internal_metadata_.unknown_fields();
  1049. }
  1050. inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
  1051. return _internal_metadata_.mutable_unknown_fields();
  1052. }
  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 TestMaps& default_instance();
  1061. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  1062. static inline const TestMaps* internal_default_instance() {
  1063. return reinterpret_cast<const TestMaps*>(
  1064. &_TestMaps_default_instance_);
  1065. }
  1066. static constexpr int kIndexInFileMessages =
  1067. 22;
  1068. void UnsafeArenaSwap(TestMaps* other);
  1069. void Swap(TestMaps* other);
  1070. friend void swap(TestMaps& a, TestMaps& b) {
  1071. a.Swap(&b);
  1072. }
  1073. // implements Message ----------------------------------------------
  1074. inline TestMaps* New() const final {
  1075. return CreateMaybeMessage<TestMaps>(NULL);
  1076. }
  1077. TestMaps* New(::google::protobuf::Arena* arena) const final {
  1078. return CreateMaybeMessage<TestMaps>(arena);
  1079. }
  1080. void CopyFrom(const ::google::protobuf::Message& from) final;
  1081. void MergeFrom(const ::google::protobuf::Message& from) final;
  1082. void CopyFrom(const TestMaps& from);
  1083. void MergeFrom(const TestMaps& 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(TestMaps* other);
  1099. protected:
  1100. explicit TestMaps(::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. // map<int32, .protobuf_unittest.TestIntIntMap> m_int32 = 1;
  1116. int m_int32_size() const;
  1117. void clear_m_int32();
  1118. static const int kMInt32FieldNumber = 1;
  1119. const ::google::protobuf::Map< ::google::protobuf::int32, ::protobuf_unittest::TestIntIntMap >&
  1120. m_int32() const;
  1121. ::google::protobuf::Map< ::google::protobuf::int32, ::protobuf_unittest::TestIntIntMap >*
  1122. mutable_m_int32();
  1123. // map<int64, .protobuf_unittest.TestIntIntMap> m_int64 = 2;
  1124. int m_int64_size() const;
  1125. void clear_m_int64();
  1126. static const int kMInt64FieldNumber = 2;
  1127. const ::google::protobuf::Map< ::google::protobuf::int64, ::protobuf_unittest::TestIntIntMap >&
  1128. m_int64() const;
  1129. ::google::protobuf::Map< ::google::protobuf::int64, ::protobuf_unittest::TestIntIntMap >*
  1130. mutable_m_int64();
  1131. // map<uint32, .protobuf_unittest.TestIntIntMap> m_uint32 = 3;
  1132. int m_uint32_size() const;
  1133. void clear_m_uint32();
  1134. static const int kMUint32FieldNumber = 3;
  1135. const ::google::protobuf::Map< ::google::protobuf::uint32, ::protobuf_unittest::TestIntIntMap >&
  1136. m_uint32() const;
  1137. ::google::protobuf::Map< ::google::protobuf::uint32, ::protobuf_unittest::TestIntIntMap >*
  1138. mutable_m_uint32();
  1139. // map<uint64, .protobuf_unittest.TestIntIntMap> m_uint64 = 4;
  1140. int m_uint64_size() const;
  1141. void clear_m_uint64();
  1142. static const int kMUint64FieldNumber = 4;
  1143. const ::google::protobuf::Map< ::google::protobuf::uint64, ::protobuf_unittest::TestIntIntMap >&
  1144. m_uint64() const;
  1145. ::google::protobuf::Map< ::google::protobuf::uint64, ::protobuf_unittest::TestIntIntMap >*
  1146. mutable_m_uint64();
  1147. // map<sint32, .protobuf_unittest.TestIntIntMap> m_sint32 = 5;
  1148. int m_sint32_size() const;
  1149. void clear_m_sint32();
  1150. static const int kMSint32FieldNumber = 5;
  1151. const ::google::protobuf::Map< ::google::protobuf::int32, ::protobuf_unittest::TestIntIntMap >&
  1152. m_sint32() const;
  1153. ::google::protobuf::Map< ::google::protobuf::int32, ::protobuf_unittest::TestIntIntMap >*
  1154. mutable_m_sint32();
  1155. // map<sint64, .protobuf_unittest.TestIntIntMap> m_sint64 = 6;
  1156. int m_sint64_size() const;
  1157. void clear_m_sint64();
  1158. static const int kMSint64FieldNumber = 6;
  1159. const ::google::protobuf::Map< ::google::protobuf::int64, ::protobuf_unittest::TestIntIntMap >&
  1160. m_sint64() const;
  1161. ::google::protobuf::Map< ::google::protobuf::int64, ::protobuf_unittest::TestIntIntMap >*
  1162. mutable_m_sint64();
  1163. // map<fixed32, .protobuf_unittest.TestIntIntMap> m_fixed32 = 7;
  1164. int m_fixed32_size() const;
  1165. void clear_m_fixed32();
  1166. static const int kMFixed32FieldNumber = 7;
  1167. const ::google::protobuf::Map< ::google::protobuf::uint32, ::protobuf_unittest::TestIntIntMap >&
  1168. m_fixed32() const;
  1169. ::google::protobuf::Map< ::google::protobuf::uint32, ::protobuf_unittest::TestIntIntMap >*
  1170. mutable_m_fixed32();
  1171. // map<fixed64, .protobuf_unittest.TestIntIntMap> m_fixed64 = 8;
  1172. int m_fixed64_size() const;
  1173. void clear_m_fixed64();
  1174. static const int kMFixed64FieldNumber = 8;
  1175. const ::google::protobuf::Map< ::google::protobuf::uint64, ::protobuf_unittest::TestIntIntMap >&
  1176. m_fixed64() const;
  1177. ::google::protobuf::Map< ::google::protobuf::uint64, ::protobuf_unittest::TestIntIntMap >*
  1178. mutable_m_fixed64();
  1179. // map<sfixed32, .protobuf_unittest.TestIntIntMap> m_sfixed32 = 9;
  1180. int m_sfixed32_size() const;
  1181. void clear_m_sfixed32();
  1182. static const int kMSfixed32FieldNumber = 9;
  1183. const ::google::protobuf::Map< ::google::protobuf::int32, ::protobuf_unittest::TestIntIntMap >&
  1184. m_sfixed32() const;
  1185. ::google::protobuf::Map< ::google::protobuf::int32, ::protobuf_unittest::TestIntIntMap >*
  1186. mutable_m_sfixed32();
  1187. // map<sfixed64, .protobuf_unittest.TestIntIntMap> m_sfixed64 = 10;
  1188. int m_sfixed64_size() const;
  1189. void clear_m_sfixed64();
  1190. static const int kMSfixed64FieldNumber = 10;
  1191. const ::google::protobuf::Map< ::google::protobuf::int64, ::protobuf_unittest::TestIntIntMap >&
  1192. m_sfixed64() const;
  1193. ::google::protobuf::Map< ::google::protobuf::int64, ::protobuf_unittest::TestIntIntMap >*
  1194. mutable_m_sfixed64();
  1195. // map<bool, .protobuf_unittest.TestIntIntMap> m_bool = 11;
  1196. int m_bool_size() const;
  1197. void clear_m_bool();
  1198. static const int kMBoolFieldNumber = 11;
  1199. const ::google::protobuf::Map< bool, ::protobuf_unittest::TestIntIntMap >&
  1200. m_bool() const;
  1201. ::google::protobuf::Map< bool, ::protobuf_unittest::TestIntIntMap >*
  1202. mutable_m_bool();
  1203. // map<string, .protobuf_unittest.TestIntIntMap> m_string = 12;
  1204. int m_string_size() const;
  1205. void clear_m_string();
  1206. static const int kMStringFieldNumber = 12;
  1207. const ::google::protobuf::Map< ::std::string, ::protobuf_unittest::TestIntIntMap >&
  1208. m_string() const;
  1209. ::google::protobuf::Map< ::std::string, ::protobuf_unittest::TestIntIntMap >*
  1210. mutable_m_string();
  1211. // @@protoc_insertion_point(class_scope:protobuf_unittest.TestMaps)
  1212. private:
  1213. ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
  1214. template <typename T> friend class ::google::protobuf::Arena::InternalHelper;
  1215. typedef void InternalArenaConstructable_;
  1216. typedef void DestructorSkippable_;
  1217. ::google::protobuf::internal::HasBits<1> _has_bits_;
  1218. mutable ::google::protobuf::internal::CachedSize _cached_size_;
  1219. ::google::protobuf::internal::MapField<
  1220. TestMaps_MInt32Entry_DoNotUse,
  1221. ::google::protobuf::int32, ::protobuf_unittest::TestIntIntMap,
  1222. ::google::protobuf::internal::WireFormatLite::TYPE_INT32,
  1223. ::google::protobuf::internal::WireFormatLite::TYPE_MESSAGE,
  1224. 0 > m_int32_;
  1225. ::google::protobuf::internal::MapField<
  1226. TestMaps_MInt64Entry_DoNotUse,
  1227. ::google::protobuf::int64, ::protobuf_unittest::TestIntIntMap,
  1228. ::google::protobuf::internal::WireFormatLite::TYPE_INT64,
  1229. ::google::protobuf::internal::WireFormatLite::TYPE_MESSAGE,
  1230. 0 > m_int64_;
  1231. ::google::protobuf::internal::MapField<
  1232. TestMaps_MUint32Entry_DoNotUse,
  1233. ::google::protobuf::uint32, ::protobuf_unittest::TestIntIntMap,
  1234. ::google::protobuf::internal::WireFormatLite::TYPE_UINT32,
  1235. ::google::protobuf::internal::WireFormatLite::TYPE_MESSAGE,
  1236. 0 > m_uint32_;
  1237. ::google::protobuf::internal::MapField<
  1238. TestMaps_MUint64Entry_DoNotUse,
  1239. ::google::protobuf::uint64, ::protobuf_unittest::TestIntIntMap,
  1240. ::google::protobuf::internal::WireFormatLite::TYPE_UINT64,
  1241. ::google::protobuf::internal::WireFormatLite::TYPE_MESSAGE,
  1242. 0 > m_uint64_;
  1243. ::google::protobuf::internal::MapField<
  1244. TestMaps_MSint32Entry_DoNotUse,
  1245. ::google::protobuf::int32, ::protobuf_unittest::TestIntIntMap,
  1246. ::google::protobuf::internal::WireFormatLite::TYPE_SINT32,
  1247. ::google::protobuf::internal::WireFormatLite::TYPE_MESSAGE,
  1248. 0 > m_sint32_;
  1249. ::google::protobuf::internal::MapField<
  1250. TestMaps_MSint64Entry_DoNotUse,
  1251. ::google::protobuf::int64, ::protobuf_unittest::TestIntIntMap,
  1252. ::google::protobuf::internal::WireFormatLite::TYPE_SINT64,
  1253. ::google::protobuf::internal::WireFormatLite::TYPE_MESSAGE,
  1254. 0 > m_sint64_;
  1255. ::google::protobuf::internal::MapField<
  1256. TestMaps_MFixed32Entry_DoNotUse,
  1257. ::google::protobuf::uint32, ::protobuf_unittest::TestIntIntMap,
  1258. ::google::protobuf::internal::WireFormatLite::TYPE_FIXED32,
  1259. ::google::protobuf::internal::WireFormatLite::TYPE_MESSAGE,
  1260. 0 > m_fixed32_;
  1261. ::google::protobuf::internal::MapField<
  1262. TestMaps_MFixed64Entry_DoNotUse,
  1263. ::google::protobuf::uint64, ::protobuf_unittest::TestIntIntMap,
  1264. ::google::protobuf::internal::WireFormatLite::TYPE_FIXED64,
  1265. ::google::protobuf::internal::WireFormatLite::TYPE_MESSAGE,
  1266. 0 > m_fixed64_;
  1267. ::google::protobuf::internal::MapField<
  1268. TestMaps_MSfixed32Entry_DoNotUse,
  1269. ::google::protobuf::int32, ::protobuf_unittest::TestIntIntMap,
  1270. ::google::protobuf::internal::WireFormatLite::TYPE_SFIXED32,
  1271. ::google::protobuf::internal::WireFormatLite::TYPE_MESSAGE,
  1272. 0 > m_sfixed32_;
  1273. ::google::protobuf::internal::MapField<
  1274. TestMaps_MSfixed64Entry_DoNotUse,
  1275. ::google::protobuf::int64, ::protobuf_unittest::TestIntIntMap,
  1276. ::google::protobuf::internal::WireFormatLite::TYPE_SFIXED64,
  1277. ::google::protobuf::internal::WireFormatLite::TYPE_MESSAGE,
  1278. 0 > m_sfixed64_;
  1279. ::google::protobuf::internal::MapField<
  1280. TestMaps_MBoolEntry_DoNotUse,
  1281. bool, ::protobuf_unittest::TestIntIntMap,
  1282. ::google::protobuf::internal::WireFormatLite::TYPE_BOOL,
  1283. ::google::protobuf::internal::WireFormatLite::TYPE_MESSAGE,
  1284. 0 > m_bool_;
  1285. ::google::protobuf::internal::MapField<
  1286. TestMaps_MStringEntry_DoNotUse,
  1287. ::std::string, ::protobuf_unittest::TestIntIntMap,
  1288. ::google::protobuf::internal::WireFormatLite::TYPE_STRING,
  1289. ::google::protobuf::internal::WireFormatLite::TYPE_MESSAGE,
  1290. 0 > m_string_;
  1291. friend struct ::protobuf_google_2fprotobuf_2fmap_5fproto2_5funittest_2eproto::TableStruct;
  1292. };
  1293. // -------------------------------------------------------------------
  1294. class TestSubmessageMaps : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:protobuf_unittest.TestSubmessageMaps) */ {
  1295. public:
  1296. TestSubmessageMaps();
  1297. virtual ~TestSubmessageMaps();
  1298. TestSubmessageMaps(const TestSubmessageMaps& from);
  1299. inline TestSubmessageMaps& operator=(const TestSubmessageMaps& from) {
  1300. CopyFrom(from);
  1301. return *this;
  1302. }
  1303. #if LANG_CXX11
  1304. TestSubmessageMaps(TestSubmessageMaps&& from) noexcept
  1305. : TestSubmessageMaps() {
  1306. *this = ::std::move(from);
  1307. }
  1308. inline TestSubmessageMaps& operator=(TestSubmessageMaps&& from) noexcept {
  1309. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  1310. if (this != &from) InternalSwap(&from);
  1311. } else {
  1312. CopyFrom(from);
  1313. }
  1314. return *this;
  1315. }
  1316. #endif
  1317. inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
  1318. return _internal_metadata_.unknown_fields();
  1319. }
  1320. inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
  1321. return _internal_metadata_.mutable_unknown_fields();
  1322. }
  1323. inline ::google::protobuf::Arena* GetArena() const final {
  1324. return GetArenaNoVirtual();
  1325. }
  1326. inline void* GetMaybeArenaPointer() const final {
  1327. return MaybeArenaPtr();
  1328. }
  1329. static const ::google::protobuf::Descriptor* descriptor();
  1330. static const TestSubmessageMaps& default_instance();
  1331. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  1332. static inline const TestSubmessageMaps* internal_default_instance() {
  1333. return reinterpret_cast<const TestSubmessageMaps*>(
  1334. &_TestSubmessageMaps_default_instance_);
  1335. }
  1336. static constexpr int kIndexInFileMessages =
  1337. 23;
  1338. void UnsafeArenaSwap(TestSubmessageMaps* other);
  1339. void Swap(TestSubmessageMaps* other);
  1340. friend void swap(TestSubmessageMaps& a, TestSubmessageMaps& b) {
  1341. a.Swap(&b);
  1342. }
  1343. // implements Message ----------------------------------------------
  1344. inline TestSubmessageMaps* New() const final {
  1345. return CreateMaybeMessage<TestSubmessageMaps>(NULL);
  1346. }
  1347. TestSubmessageMaps* New(::google::protobuf::Arena* arena) const final {
  1348. return CreateMaybeMessage<TestSubmessageMaps>(arena);
  1349. }
  1350. void CopyFrom(const ::google::protobuf::Message& from) final;
  1351. void MergeFrom(const ::google::protobuf::Message& from) final;
  1352. void CopyFrom(const TestSubmessageMaps& from);
  1353. void MergeFrom(const TestSubmessageMaps& from);
  1354. void Clear() final;
  1355. bool IsInitialized() const final;
  1356. size_t ByteSizeLong() const final;
  1357. bool MergePartialFromCodedStream(
  1358. ::google::protobuf::io::CodedInputStream* input) final;
  1359. void SerializeWithCachedSizes(
  1360. ::google::protobuf::io::CodedOutputStream* output) const final;
  1361. ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
  1362. bool deterministic, ::google::protobuf::uint8* target) const final;
  1363. int GetCachedSize() const final { return _cached_size_.Get(); }
  1364. private:
  1365. void SharedCtor();
  1366. void SharedDtor();
  1367. void SetCachedSize(int size) const final;
  1368. void InternalSwap(TestSubmessageMaps* other);
  1369. protected:
  1370. explicit TestSubmessageMaps(::google::protobuf::Arena* arena);
  1371. private:
  1372. static void ArenaDtor(void* object);
  1373. inline void RegisterArenaDtor(::google::protobuf::Arena* arena);
  1374. private:
  1375. inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
  1376. return _internal_metadata_.arena();
  1377. }
  1378. inline void* MaybeArenaPtr() const {
  1379. return _internal_metadata_.raw_arena_ptr();
  1380. }
  1381. public:
  1382. ::google::protobuf::Metadata GetMetadata() const final;
  1383. // nested types ----------------------------------------------------
  1384. // accessors -------------------------------------------------------
  1385. // optional .protobuf_unittest.TestMaps m = 1;
  1386. bool has_m() const;
  1387. void clear_m();
  1388. static const int kMFieldNumber = 1;
  1389. private:
  1390. const ::protobuf_unittest::TestMaps& _internal_m() const;
  1391. public:
  1392. const ::protobuf_unittest::TestMaps& m() const;
  1393. ::protobuf_unittest::TestMaps* release_m();
  1394. ::protobuf_unittest::TestMaps* mutable_m();
  1395. void set_allocated_m(::protobuf_unittest::TestMaps* m);
  1396. void unsafe_arena_set_allocated_m(
  1397. ::protobuf_unittest::TestMaps* m);
  1398. ::protobuf_unittest::TestMaps* unsafe_arena_release_m();
  1399. // @@protoc_insertion_point(class_scope:protobuf_unittest.TestSubmessageMaps)
  1400. private:
  1401. void set_has_m();
  1402. void clear_has_m();
  1403. ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
  1404. template <typename T> friend class ::google::protobuf::Arena::InternalHelper;
  1405. typedef void InternalArenaConstructable_;
  1406. typedef void DestructorSkippable_;
  1407. ::google::protobuf::internal::HasBits<1> _has_bits_;
  1408. mutable ::google::protobuf::internal::CachedSize _cached_size_;
  1409. ::protobuf_unittest::TestMaps* m_;
  1410. friend struct ::protobuf_google_2fprotobuf_2fmap_5fproto2_5funittest_2eproto::TableStruct;
  1411. };
  1412. // ===================================================================
  1413. // ===================================================================
  1414. #ifdef __GNUC__
  1415. #pragma GCC diagnostic push
  1416. #pragma GCC diagnostic ignored "-Wstrict-aliasing"
  1417. #endif // __GNUC__
  1418. // -------------------------------------------------------------------
  1419. // -------------------------------------------------------------------
  1420. // TestEnumMap
  1421. // map<int32, .protobuf_unittest.Proto2MapEnum> known_map_field = 101;
  1422. inline int TestEnumMap::known_map_field_size() const {
  1423. return known_map_field_.size();
  1424. }
  1425. inline void TestEnumMap::clear_known_map_field() {
  1426. known_map_field_.Clear();
  1427. }
  1428. inline const ::google::protobuf::Map< ::google::protobuf::int32, ::protobuf_unittest::Proto2MapEnum >&
  1429. TestEnumMap::known_map_field() const {
  1430. // @@protoc_insertion_point(field_map:protobuf_unittest.TestEnumMap.known_map_field)
  1431. return known_map_field_.GetMap();
  1432. }
  1433. inline ::google::protobuf::Map< ::google::protobuf::int32, ::protobuf_unittest::Proto2MapEnum >*
  1434. TestEnumMap::mutable_known_map_field() {
  1435. // @@protoc_insertion_point(field_mutable_map:protobuf_unittest.TestEnumMap.known_map_field)
  1436. return known_map_field_.MutableMap();
  1437. }
  1438. // map<int32, .protobuf_unittest.Proto2MapEnum> unknown_map_field = 102;
  1439. inline int TestEnumMap::unknown_map_field_size() const {
  1440. return unknown_map_field_.size();
  1441. }
  1442. inline void TestEnumMap::clear_unknown_map_field() {
  1443. unknown_map_field_.Clear();
  1444. }
  1445. inline const ::google::protobuf::Map< ::google::protobuf::int32, ::protobuf_unittest::Proto2MapEnum >&
  1446. TestEnumMap::unknown_map_field() const {
  1447. // @@protoc_insertion_point(field_map:protobuf_unittest.TestEnumMap.unknown_map_field)
  1448. return unknown_map_field_.GetMap();
  1449. }
  1450. inline ::google::protobuf::Map< ::google::protobuf::int32, ::protobuf_unittest::Proto2MapEnum >*
  1451. TestEnumMap::mutable_unknown_map_field() {
  1452. // @@protoc_insertion_point(field_mutable_map:protobuf_unittest.TestEnumMap.unknown_map_field)
  1453. return unknown_map_field_.MutableMap();
  1454. }
  1455. // -------------------------------------------------------------------
  1456. // -------------------------------------------------------------------
  1457. // -------------------------------------------------------------------
  1458. // TestEnumMapPlusExtra
  1459. // map<int32, .protobuf_unittest.Proto2MapEnumPlusExtra> known_map_field = 101;
  1460. inline int TestEnumMapPlusExtra::known_map_field_size() const {
  1461. return known_map_field_.size();
  1462. }
  1463. inline void TestEnumMapPlusExtra::clear_known_map_field() {
  1464. known_map_field_.Clear();
  1465. }
  1466. inline const ::google::protobuf::Map< ::google::protobuf::int32, ::protobuf_unittest::Proto2MapEnumPlusExtra >&
  1467. TestEnumMapPlusExtra::known_map_field() const {
  1468. // @@protoc_insertion_point(field_map:protobuf_unittest.TestEnumMapPlusExtra.known_map_field)
  1469. return known_map_field_.GetMap();
  1470. }
  1471. inline ::google::protobuf::Map< ::google::protobuf::int32, ::protobuf_unittest::Proto2MapEnumPlusExtra >*
  1472. TestEnumMapPlusExtra::mutable_known_map_field() {
  1473. // @@protoc_insertion_point(field_mutable_map:protobuf_unittest.TestEnumMapPlusExtra.known_map_field)
  1474. return known_map_field_.MutableMap();
  1475. }
  1476. // map<int32, .protobuf_unittest.Proto2MapEnumPlusExtra> unknown_map_field = 102;
  1477. inline int TestEnumMapPlusExtra::unknown_map_field_size() const {
  1478. return unknown_map_field_.size();
  1479. }
  1480. inline void TestEnumMapPlusExtra::clear_unknown_map_field() {
  1481. unknown_map_field_.Clear();
  1482. }
  1483. inline const ::google::protobuf::Map< ::google::protobuf::int32, ::protobuf_unittest::Proto2MapEnumPlusExtra >&
  1484. TestEnumMapPlusExtra::unknown_map_field() const {
  1485. // @@protoc_insertion_point(field_map:protobuf_unittest.TestEnumMapPlusExtra.unknown_map_field)
  1486. return unknown_map_field_.GetMap();
  1487. }
  1488. inline ::google::protobuf::Map< ::google::protobuf::int32, ::protobuf_unittest::Proto2MapEnumPlusExtra >*
  1489. TestEnumMapPlusExtra::mutable_unknown_map_field() {
  1490. // @@protoc_insertion_point(field_mutable_map:protobuf_unittest.TestEnumMapPlusExtra.unknown_map_field)
  1491. return unknown_map_field_.MutableMap();
  1492. }
  1493. // -------------------------------------------------------------------
  1494. // -------------------------------------------------------------------
  1495. // TestImportEnumMap
  1496. // map<int32, .protobuf_unittest_import.ImportEnumForMap> import_enum_amp = 1;
  1497. inline int TestImportEnumMap::import_enum_amp_size() const {
  1498. return import_enum_amp_.size();
  1499. }
  1500. inline void TestImportEnumMap::clear_import_enum_amp() {
  1501. import_enum_amp_.Clear();
  1502. }
  1503. inline const ::google::protobuf::Map< ::google::protobuf::int32, ::protobuf_unittest_import::ImportEnumForMap >&
  1504. TestImportEnumMap::import_enum_amp() const {
  1505. // @@protoc_insertion_point(field_map:protobuf_unittest.TestImportEnumMap.import_enum_amp)
  1506. return import_enum_amp_.GetMap();
  1507. }
  1508. inline ::google::protobuf::Map< ::google::protobuf::int32, ::protobuf_unittest_import::ImportEnumForMap >*
  1509. TestImportEnumMap::mutable_import_enum_amp() {
  1510. // @@protoc_insertion_point(field_mutable_map:protobuf_unittest.TestImportEnumMap.import_enum_amp)
  1511. return import_enum_amp_.MutableMap();
  1512. }
  1513. // -------------------------------------------------------------------
  1514. // -------------------------------------------------------------------
  1515. // TestIntIntMap
  1516. // map<int32, int32> m = 1;
  1517. inline int TestIntIntMap::m_size() const {
  1518. return m_.size();
  1519. }
  1520. inline void TestIntIntMap::clear_m() {
  1521. m_.Clear();
  1522. }
  1523. inline const ::google::protobuf::Map< ::google::protobuf::int32, ::google::protobuf::int32 >&
  1524. TestIntIntMap::m() const {
  1525. // @@protoc_insertion_point(field_map:protobuf_unittest.TestIntIntMap.m)
  1526. return m_.GetMap();
  1527. }
  1528. inline ::google::protobuf::Map< ::google::protobuf::int32, ::google::protobuf::int32 >*
  1529. TestIntIntMap::mutable_m() {
  1530. // @@protoc_insertion_point(field_mutable_map:protobuf_unittest.TestIntIntMap.m)
  1531. return m_.MutableMap();
  1532. }
  1533. // -------------------------------------------------------------------
  1534. // -------------------------------------------------------------------
  1535. // -------------------------------------------------------------------
  1536. // -------------------------------------------------------------------
  1537. // -------------------------------------------------------------------
  1538. // -------------------------------------------------------------------
  1539. // -------------------------------------------------------------------
  1540. // -------------------------------------------------------------------
  1541. // -------------------------------------------------------------------
  1542. // -------------------------------------------------------------------
  1543. // -------------------------------------------------------------------
  1544. // -------------------------------------------------------------------
  1545. // -------------------------------------------------------------------
  1546. // TestMaps
  1547. // map<int32, .protobuf_unittest.TestIntIntMap> m_int32 = 1;
  1548. inline int TestMaps::m_int32_size() const {
  1549. return m_int32_.size();
  1550. }
  1551. inline void TestMaps::clear_m_int32() {
  1552. m_int32_.Clear();
  1553. }
  1554. inline const ::google::protobuf::Map< ::google::protobuf::int32, ::protobuf_unittest::TestIntIntMap >&
  1555. TestMaps::m_int32() const {
  1556. // @@protoc_insertion_point(field_map:protobuf_unittest.TestMaps.m_int32)
  1557. return m_int32_.GetMap();
  1558. }
  1559. inline ::google::protobuf::Map< ::google::protobuf::int32, ::protobuf_unittest::TestIntIntMap >*
  1560. TestMaps::mutable_m_int32() {
  1561. // @@protoc_insertion_point(field_mutable_map:protobuf_unittest.TestMaps.m_int32)
  1562. return m_int32_.MutableMap();
  1563. }
  1564. // map<int64, .protobuf_unittest.TestIntIntMap> m_int64 = 2;
  1565. inline int TestMaps::m_int64_size() const {
  1566. return m_int64_.size();
  1567. }
  1568. inline void TestMaps::clear_m_int64() {
  1569. m_int64_.Clear();
  1570. }
  1571. inline const ::google::protobuf::Map< ::google::protobuf::int64, ::protobuf_unittest::TestIntIntMap >&
  1572. TestMaps::m_int64() const {
  1573. // @@protoc_insertion_point(field_map:protobuf_unittest.TestMaps.m_int64)
  1574. return m_int64_.GetMap();
  1575. }
  1576. inline ::google::protobuf::Map< ::google::protobuf::int64, ::protobuf_unittest::TestIntIntMap >*
  1577. TestMaps::mutable_m_int64() {
  1578. // @@protoc_insertion_point(field_mutable_map:protobuf_unittest.TestMaps.m_int64)
  1579. return m_int64_.MutableMap();
  1580. }
  1581. // map<uint32, .protobuf_unittest.TestIntIntMap> m_uint32 = 3;
  1582. inline int TestMaps::m_uint32_size() const {
  1583. return m_uint32_.size();
  1584. }
  1585. inline void TestMaps::clear_m_uint32() {
  1586. m_uint32_.Clear();
  1587. }
  1588. inline const ::google::protobuf::Map< ::google::protobuf::uint32, ::protobuf_unittest::TestIntIntMap >&
  1589. TestMaps::m_uint32() const {
  1590. // @@protoc_insertion_point(field_map:protobuf_unittest.TestMaps.m_uint32)
  1591. return m_uint32_.GetMap();
  1592. }
  1593. inline ::google::protobuf::Map< ::google::protobuf::uint32, ::protobuf_unittest::TestIntIntMap >*
  1594. TestMaps::mutable_m_uint32() {
  1595. // @@protoc_insertion_point(field_mutable_map:protobuf_unittest.TestMaps.m_uint32)
  1596. return m_uint32_.MutableMap();
  1597. }
  1598. // map<uint64, .protobuf_unittest.TestIntIntMap> m_uint64 = 4;
  1599. inline int TestMaps::m_uint64_size() const {
  1600. return m_uint64_.size();
  1601. }
  1602. inline void TestMaps::clear_m_uint64() {
  1603. m_uint64_.Clear();
  1604. }
  1605. inline const ::google::protobuf::Map< ::google::protobuf::uint64, ::protobuf_unittest::TestIntIntMap >&
  1606. TestMaps::m_uint64() const {
  1607. // @@protoc_insertion_point(field_map:protobuf_unittest.TestMaps.m_uint64)
  1608. return m_uint64_.GetMap();
  1609. }
  1610. inline ::google::protobuf::Map< ::google::protobuf::uint64, ::protobuf_unittest::TestIntIntMap >*
  1611. TestMaps::mutable_m_uint64() {
  1612. // @@protoc_insertion_point(field_mutable_map:protobuf_unittest.TestMaps.m_uint64)
  1613. return m_uint64_.MutableMap();
  1614. }
  1615. // map<sint32, .protobuf_unittest.TestIntIntMap> m_sint32 = 5;
  1616. inline int TestMaps::m_sint32_size() const {
  1617. return m_sint32_.size();
  1618. }
  1619. inline void TestMaps::clear_m_sint32() {
  1620. m_sint32_.Clear();
  1621. }
  1622. inline const ::google::protobuf::Map< ::google::protobuf::int32, ::protobuf_unittest::TestIntIntMap >&
  1623. TestMaps::m_sint32() const {
  1624. // @@protoc_insertion_point(field_map:protobuf_unittest.TestMaps.m_sint32)
  1625. return m_sint32_.GetMap();
  1626. }
  1627. inline ::google::protobuf::Map< ::google::protobuf::int32, ::protobuf_unittest::TestIntIntMap >*
  1628. TestMaps::mutable_m_sint32() {
  1629. // @@protoc_insertion_point(field_mutable_map:protobuf_unittest.TestMaps.m_sint32)
  1630. return m_sint32_.MutableMap();
  1631. }
  1632. // map<sint64, .protobuf_unittest.TestIntIntMap> m_sint64 = 6;
  1633. inline int TestMaps::m_sint64_size() const {
  1634. return m_sint64_.size();
  1635. }
  1636. inline void TestMaps::clear_m_sint64() {
  1637. m_sint64_.Clear();
  1638. }
  1639. inline const ::google::protobuf::Map< ::google::protobuf::int64, ::protobuf_unittest::TestIntIntMap >&
  1640. TestMaps::m_sint64() const {
  1641. // @@protoc_insertion_point(field_map:protobuf_unittest.TestMaps.m_sint64)
  1642. return m_sint64_.GetMap();
  1643. }
  1644. inline ::google::protobuf::Map< ::google::protobuf::int64, ::protobuf_unittest::TestIntIntMap >*
  1645. TestMaps::mutable_m_sint64() {
  1646. // @@protoc_insertion_point(field_mutable_map:protobuf_unittest.TestMaps.m_sint64)
  1647. return m_sint64_.MutableMap();
  1648. }
  1649. // map<fixed32, .protobuf_unittest.TestIntIntMap> m_fixed32 = 7;
  1650. inline int TestMaps::m_fixed32_size() const {
  1651. return m_fixed32_.size();
  1652. }
  1653. inline void TestMaps::clear_m_fixed32() {
  1654. m_fixed32_.Clear();
  1655. }
  1656. inline const ::google::protobuf::Map< ::google::protobuf::uint32, ::protobuf_unittest::TestIntIntMap >&
  1657. TestMaps::m_fixed32() const {
  1658. // @@protoc_insertion_point(field_map:protobuf_unittest.TestMaps.m_fixed32)
  1659. return m_fixed32_.GetMap();
  1660. }
  1661. inline ::google::protobuf::Map< ::google::protobuf::uint32, ::protobuf_unittest::TestIntIntMap >*
  1662. TestMaps::mutable_m_fixed32() {
  1663. // @@protoc_insertion_point(field_mutable_map:protobuf_unittest.TestMaps.m_fixed32)
  1664. return m_fixed32_.MutableMap();
  1665. }
  1666. // map<fixed64, .protobuf_unittest.TestIntIntMap> m_fixed64 = 8;
  1667. inline int TestMaps::m_fixed64_size() const {
  1668. return m_fixed64_.size();
  1669. }
  1670. inline void TestMaps::clear_m_fixed64() {
  1671. m_fixed64_.Clear();
  1672. }
  1673. inline const ::google::protobuf::Map< ::google::protobuf::uint64, ::protobuf_unittest::TestIntIntMap >&
  1674. TestMaps::m_fixed64() const {
  1675. // @@protoc_insertion_point(field_map:protobuf_unittest.TestMaps.m_fixed64)
  1676. return m_fixed64_.GetMap();
  1677. }
  1678. inline ::google::protobuf::Map< ::google::protobuf::uint64, ::protobuf_unittest::TestIntIntMap >*
  1679. TestMaps::mutable_m_fixed64() {
  1680. // @@protoc_insertion_point(field_mutable_map:protobuf_unittest.TestMaps.m_fixed64)
  1681. return m_fixed64_.MutableMap();
  1682. }
  1683. // map<sfixed32, .protobuf_unittest.TestIntIntMap> m_sfixed32 = 9;
  1684. inline int TestMaps::m_sfixed32_size() const {
  1685. return m_sfixed32_.size();
  1686. }
  1687. inline void TestMaps::clear_m_sfixed32() {
  1688. m_sfixed32_.Clear();
  1689. }
  1690. inline const ::google::protobuf::Map< ::google::protobuf::int32, ::protobuf_unittest::TestIntIntMap >&
  1691. TestMaps::m_sfixed32() const {
  1692. // @@protoc_insertion_point(field_map:protobuf_unittest.TestMaps.m_sfixed32)
  1693. return m_sfixed32_.GetMap();
  1694. }
  1695. inline ::google::protobuf::Map< ::google::protobuf::int32, ::protobuf_unittest::TestIntIntMap >*
  1696. TestMaps::mutable_m_sfixed32() {
  1697. // @@protoc_insertion_point(field_mutable_map:protobuf_unittest.TestMaps.m_sfixed32)
  1698. return m_sfixed32_.MutableMap();
  1699. }
  1700. // map<sfixed64, .protobuf_unittest.TestIntIntMap> m_sfixed64 = 10;
  1701. inline int TestMaps::m_sfixed64_size() const {
  1702. return m_sfixed64_.size();
  1703. }
  1704. inline void TestMaps::clear_m_sfixed64() {
  1705. m_sfixed64_.Clear();
  1706. }
  1707. inline const ::google::protobuf::Map< ::google::protobuf::int64, ::protobuf_unittest::TestIntIntMap >&
  1708. TestMaps::m_sfixed64() const {
  1709. // @@protoc_insertion_point(field_map:protobuf_unittest.TestMaps.m_sfixed64)
  1710. return m_sfixed64_.GetMap();
  1711. }
  1712. inline ::google::protobuf::Map< ::google::protobuf::int64, ::protobuf_unittest::TestIntIntMap >*
  1713. TestMaps::mutable_m_sfixed64() {
  1714. // @@protoc_insertion_point(field_mutable_map:protobuf_unittest.TestMaps.m_sfixed64)
  1715. return m_sfixed64_.MutableMap();
  1716. }
  1717. // map<bool, .protobuf_unittest.TestIntIntMap> m_bool = 11;
  1718. inline int TestMaps::m_bool_size() const {
  1719. return m_bool_.size();
  1720. }
  1721. inline void TestMaps::clear_m_bool() {
  1722. m_bool_.Clear();
  1723. }
  1724. inline const ::google::protobuf::Map< bool, ::protobuf_unittest::TestIntIntMap >&
  1725. TestMaps::m_bool() const {
  1726. // @@protoc_insertion_point(field_map:protobuf_unittest.TestMaps.m_bool)
  1727. return m_bool_.GetMap();
  1728. }
  1729. inline ::google::protobuf::Map< bool, ::protobuf_unittest::TestIntIntMap >*
  1730. TestMaps::mutable_m_bool() {
  1731. // @@protoc_insertion_point(field_mutable_map:protobuf_unittest.TestMaps.m_bool)
  1732. return m_bool_.MutableMap();
  1733. }
  1734. // map<string, .protobuf_unittest.TestIntIntMap> m_string = 12;
  1735. inline int TestMaps::m_string_size() const {
  1736. return m_string_.size();
  1737. }
  1738. inline void TestMaps::clear_m_string() {
  1739. m_string_.Clear();
  1740. }
  1741. inline const ::google::protobuf::Map< ::std::string, ::protobuf_unittest::TestIntIntMap >&
  1742. TestMaps::m_string() const {
  1743. // @@protoc_insertion_point(field_map:protobuf_unittest.TestMaps.m_string)
  1744. return m_string_.GetMap();
  1745. }
  1746. inline ::google::protobuf::Map< ::std::string, ::protobuf_unittest::TestIntIntMap >*
  1747. TestMaps::mutable_m_string() {
  1748. // @@protoc_insertion_point(field_mutable_map:protobuf_unittest.TestMaps.m_string)
  1749. return m_string_.MutableMap();
  1750. }
  1751. // -------------------------------------------------------------------
  1752. // TestSubmessageMaps
  1753. // optional .protobuf_unittest.TestMaps m = 1;
  1754. inline bool TestSubmessageMaps::has_m() const {
  1755. return (_has_bits_[0] & 0x00000001u) != 0;
  1756. }
  1757. inline void TestSubmessageMaps::set_has_m() {
  1758. _has_bits_[0] |= 0x00000001u;
  1759. }
  1760. inline void TestSubmessageMaps::clear_has_m() {
  1761. _has_bits_[0] &= ~0x00000001u;
  1762. }
  1763. inline void TestSubmessageMaps::clear_m() {
  1764. if (m_ != NULL) m_->Clear();
  1765. clear_has_m();
  1766. }
  1767. inline const ::protobuf_unittest::TestMaps& TestSubmessageMaps::_internal_m() const {
  1768. return *m_;
  1769. }
  1770. inline const ::protobuf_unittest::TestMaps& TestSubmessageMaps::m() const {
  1771. const ::protobuf_unittest::TestMaps* p = m_;
  1772. // @@protoc_insertion_point(field_get:protobuf_unittest.TestSubmessageMaps.m)
  1773. return p != NULL ? *p : *reinterpret_cast<const ::protobuf_unittest::TestMaps*>(
  1774. &::protobuf_unittest::_TestMaps_default_instance_);
  1775. }
  1776. inline ::protobuf_unittest::TestMaps* TestSubmessageMaps::release_m() {
  1777. // @@protoc_insertion_point(field_release:protobuf_unittest.TestSubmessageMaps.m)
  1778. clear_has_m();
  1779. ::protobuf_unittest::TestMaps* temp = m_;
  1780. if (GetArenaNoVirtual() != NULL) {
  1781. temp = ::google::protobuf::internal::DuplicateIfNonNull(temp);
  1782. }
  1783. m_ = NULL;
  1784. return temp;
  1785. }
  1786. inline ::protobuf_unittest::TestMaps* TestSubmessageMaps::unsafe_arena_release_m() {
  1787. // @@protoc_insertion_point(field_unsafe_arena_release:protobuf_unittest.TestSubmessageMaps.m)
  1788. clear_has_m();
  1789. ::protobuf_unittest::TestMaps* temp = m_;
  1790. m_ = NULL;
  1791. return temp;
  1792. }
  1793. inline ::protobuf_unittest::TestMaps* TestSubmessageMaps::mutable_m() {
  1794. set_has_m();
  1795. if (m_ == NULL) {
  1796. auto* p = CreateMaybeMessage<::protobuf_unittest::TestMaps>(GetArenaNoVirtual());
  1797. m_ = p;
  1798. }
  1799. // @@protoc_insertion_point(field_mutable:protobuf_unittest.TestSubmessageMaps.m)
  1800. return m_;
  1801. }
  1802. inline void TestSubmessageMaps::set_allocated_m(::protobuf_unittest::TestMaps* m) {
  1803. ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
  1804. if (message_arena == NULL) {
  1805. delete m_;
  1806. }
  1807. if (m) {
  1808. ::google::protobuf::Arena* submessage_arena =
  1809. ::google::protobuf::Arena::GetArena(m);
  1810. if (message_arena != submessage_arena) {
  1811. m = ::google::protobuf::internal::GetOwnedMessage(
  1812. message_arena, m, submessage_arena);
  1813. }
  1814. set_has_m();
  1815. } else {
  1816. clear_has_m();
  1817. }
  1818. m_ = m;
  1819. // @@protoc_insertion_point(field_set_allocated:protobuf_unittest.TestSubmessageMaps.m)
  1820. }
  1821. #ifdef __GNUC__
  1822. #pragma GCC diagnostic pop
  1823. #endif // __GNUC__
  1824. // -------------------------------------------------------------------
  1825. // -------------------------------------------------------------------
  1826. // -------------------------------------------------------------------
  1827. // -------------------------------------------------------------------
  1828. // -------------------------------------------------------------------
  1829. // -------------------------------------------------------------------
  1830. // -------------------------------------------------------------------
  1831. // -------------------------------------------------------------------
  1832. // -------------------------------------------------------------------
  1833. // -------------------------------------------------------------------
  1834. // -------------------------------------------------------------------
  1835. // -------------------------------------------------------------------
  1836. // -------------------------------------------------------------------
  1837. // -------------------------------------------------------------------
  1838. // -------------------------------------------------------------------
  1839. // -------------------------------------------------------------------
  1840. // -------------------------------------------------------------------
  1841. // -------------------------------------------------------------------
  1842. // -------------------------------------------------------------------
  1843. // -------------------------------------------------------------------
  1844. // -------------------------------------------------------------------
  1845. // -------------------------------------------------------------------
  1846. // -------------------------------------------------------------------
  1847. // @@protoc_insertion_point(namespace_scope)
  1848. } // namespace protobuf_unittest
  1849. namespace google {
  1850. namespace protobuf {
  1851. template <> struct is_proto_enum< ::protobuf_unittest::Proto2MapEnum> : ::std::true_type {};
  1852. template <>
  1853. inline const EnumDescriptor* GetEnumDescriptor< ::protobuf_unittest::Proto2MapEnum>() {
  1854. return ::protobuf_unittest::Proto2MapEnum_descriptor();
  1855. }
  1856. template <> struct is_proto_enum< ::protobuf_unittest::Proto2MapEnumPlusExtra> : ::std::true_type {};
  1857. template <>
  1858. inline const EnumDescriptor* GetEnumDescriptor< ::protobuf_unittest::Proto2MapEnumPlusExtra>() {
  1859. return ::protobuf_unittest::Proto2MapEnumPlusExtra_descriptor();
  1860. }
  1861. } // namespace protobuf
  1862. } // namespace google
  1863. // @@protoc_insertion_point(global_scope)
  1864. #endif // PROTOBUF_INCLUDED_google_2fprotobuf_2fmap_5fproto2_5funittest_2eproto