field_mask.pb.h 70 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750
  1. // Generated by the protocol buffer compiler. DO NOT EDIT!
  2. // source: google/protobuf/util/internal/testdata/field_mask.proto
  3. #ifndef PROTOBUF_INCLUDED_google_2fprotobuf_2futil_2finternal_2ftestdata_2ffield_5fmask_2eproto
  4. #define PROTOBUF_INCLUDED_google_2fprotobuf_2futil_2finternal_2ftestdata_2ffield_5fmask_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/unknown_field_set.h>
  28. #include <google/protobuf/field_mask.pb.h>
  29. // @@protoc_insertion_point(includes)
  30. #define PROTOBUF_INTERNAL_EXPORT_protobuf_google_2fprotobuf_2futil_2finternal_2ftestdata_2ffield_5fmask_2eproto
  31. namespace protobuf_google_2fprotobuf_2futil_2finternal_2ftestdata_2ffield_5fmask_2eproto {
  32. // Internal implementation detail -- do not use these members.
  33. struct TableStruct {
  34. static const ::google::protobuf::internal::ParseTableField entries[];
  35. static const ::google::protobuf::internal::AuxillaryParseTableField aux[];
  36. static const ::google::protobuf::internal::ParseTable schema[4];
  37. static const ::google::protobuf::internal::FieldMetadata field_metadata[];
  38. static const ::google::protobuf::internal::SerializationTable serialization_table[];
  39. static const ::google::protobuf::uint32 offsets[];
  40. };
  41. void AddDescriptors();
  42. } // namespace protobuf_google_2fprotobuf_2futil_2finternal_2ftestdata_2ffield_5fmask_2eproto
  43. namespace google {
  44. namespace protobuf {
  45. namespace testing {
  46. class FieldMaskTest;
  47. class FieldMaskTestDefaultTypeInternal;
  48. extern FieldMaskTestDefaultTypeInternal _FieldMaskTest_default_instance_;
  49. class FieldMaskTestCases;
  50. class FieldMaskTestCasesDefaultTypeInternal;
  51. extern FieldMaskTestCasesDefaultTypeInternal _FieldMaskTestCases_default_instance_;
  52. class FieldMaskWrapper;
  53. class FieldMaskWrapperDefaultTypeInternal;
  54. extern FieldMaskWrapperDefaultTypeInternal _FieldMaskWrapper_default_instance_;
  55. class NestedFieldMask;
  56. class NestedFieldMaskDefaultTypeInternal;
  57. extern NestedFieldMaskDefaultTypeInternal _NestedFieldMask_default_instance_;
  58. } // namespace testing
  59. } // namespace protobuf
  60. } // namespace google
  61. namespace google {
  62. namespace protobuf {
  63. template<> ::google::protobuf::testing::FieldMaskTest* Arena::CreateMaybeMessage<::google::protobuf::testing::FieldMaskTest>(Arena*);
  64. template<> ::google::protobuf::testing::FieldMaskTestCases* Arena::CreateMaybeMessage<::google::protobuf::testing::FieldMaskTestCases>(Arena*);
  65. template<> ::google::protobuf::testing::FieldMaskWrapper* Arena::CreateMaybeMessage<::google::protobuf::testing::FieldMaskWrapper>(Arena*);
  66. template<> ::google::protobuf::testing::NestedFieldMask* Arena::CreateMaybeMessage<::google::protobuf::testing::NestedFieldMask>(Arena*);
  67. } // namespace protobuf
  68. } // namespace google
  69. namespace google {
  70. namespace protobuf {
  71. namespace testing {
  72. // ===================================================================
  73. class NestedFieldMask : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:google.protobuf.testing.NestedFieldMask) */ {
  74. public:
  75. NestedFieldMask();
  76. virtual ~NestedFieldMask();
  77. NestedFieldMask(const NestedFieldMask& from);
  78. inline NestedFieldMask& operator=(const NestedFieldMask& from) {
  79. CopyFrom(from);
  80. return *this;
  81. }
  82. #if LANG_CXX11
  83. NestedFieldMask(NestedFieldMask&& from) noexcept
  84. : NestedFieldMask() {
  85. *this = ::std::move(from);
  86. }
  87. inline NestedFieldMask& operator=(NestedFieldMask&& from) noexcept {
  88. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  89. if (this != &from) InternalSwap(&from);
  90. } else {
  91. CopyFrom(from);
  92. }
  93. return *this;
  94. }
  95. #endif
  96. static const ::google::protobuf::Descriptor* descriptor();
  97. static const NestedFieldMask& default_instance();
  98. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  99. static inline const NestedFieldMask* internal_default_instance() {
  100. return reinterpret_cast<const NestedFieldMask*>(
  101. &_NestedFieldMask_default_instance_);
  102. }
  103. static constexpr int kIndexInFileMessages =
  104. 0;
  105. void Swap(NestedFieldMask* other);
  106. friend void swap(NestedFieldMask& a, NestedFieldMask& b) {
  107. a.Swap(&b);
  108. }
  109. // implements Message ----------------------------------------------
  110. inline NestedFieldMask* New() const final {
  111. return CreateMaybeMessage<NestedFieldMask>(NULL);
  112. }
  113. NestedFieldMask* New(::google::protobuf::Arena* arena) const final {
  114. return CreateMaybeMessage<NestedFieldMask>(arena);
  115. }
  116. void CopyFrom(const ::google::protobuf::Message& from) final;
  117. void MergeFrom(const ::google::protobuf::Message& from) final;
  118. void CopyFrom(const NestedFieldMask& from);
  119. void MergeFrom(const NestedFieldMask& from);
  120. void Clear() final;
  121. bool IsInitialized() const final;
  122. size_t ByteSizeLong() const final;
  123. bool MergePartialFromCodedStream(
  124. ::google::protobuf::io::CodedInputStream* input) final;
  125. void SerializeWithCachedSizes(
  126. ::google::protobuf::io::CodedOutputStream* output) const final;
  127. ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
  128. bool deterministic, ::google::protobuf::uint8* target) const final;
  129. int GetCachedSize() const final { return _cached_size_.Get(); }
  130. private:
  131. void SharedCtor();
  132. void SharedDtor();
  133. void SetCachedSize(int size) const final;
  134. void InternalSwap(NestedFieldMask* other);
  135. private:
  136. inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
  137. return NULL;
  138. }
  139. inline void* MaybeArenaPtr() const {
  140. return NULL;
  141. }
  142. public:
  143. ::google::protobuf::Metadata GetMetadata() const final;
  144. // nested types ----------------------------------------------------
  145. // accessors -------------------------------------------------------
  146. // repeated .google.protobuf.FieldMask repeated_mask = 3;
  147. int repeated_mask_size() const;
  148. void clear_repeated_mask();
  149. static const int kRepeatedMaskFieldNumber = 3;
  150. ::google::protobuf::FieldMask* mutable_repeated_mask(int index);
  151. ::google::protobuf::RepeatedPtrField< ::google::protobuf::FieldMask >*
  152. mutable_repeated_mask();
  153. const ::google::protobuf::FieldMask& repeated_mask(int index) const;
  154. ::google::protobuf::FieldMask* add_repeated_mask();
  155. const ::google::protobuf::RepeatedPtrField< ::google::protobuf::FieldMask >&
  156. repeated_mask() const;
  157. // string data = 1;
  158. void clear_data();
  159. static const int kDataFieldNumber = 1;
  160. const ::std::string& data() const;
  161. void set_data(const ::std::string& value);
  162. #if LANG_CXX11
  163. void set_data(::std::string&& value);
  164. #endif
  165. void set_data(const char* value);
  166. void set_data(const char* value, size_t size);
  167. ::std::string* mutable_data();
  168. ::std::string* release_data();
  169. void set_allocated_data(::std::string* data);
  170. // .google.protobuf.FieldMask single_mask = 2;
  171. bool has_single_mask() const;
  172. void clear_single_mask();
  173. static const int kSingleMaskFieldNumber = 2;
  174. private:
  175. const ::google::protobuf::FieldMask& _internal_single_mask() const;
  176. public:
  177. const ::google::protobuf::FieldMask& single_mask() const;
  178. ::google::protobuf::FieldMask* release_single_mask();
  179. ::google::protobuf::FieldMask* mutable_single_mask();
  180. void set_allocated_single_mask(::google::protobuf::FieldMask* single_mask);
  181. // @@protoc_insertion_point(class_scope:google.protobuf.testing.NestedFieldMask)
  182. private:
  183. ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
  184. ::google::protobuf::RepeatedPtrField< ::google::protobuf::FieldMask > repeated_mask_;
  185. ::google::protobuf::internal::ArenaStringPtr data_;
  186. ::google::protobuf::FieldMask* single_mask_;
  187. mutable ::google::protobuf::internal::CachedSize _cached_size_;
  188. friend struct ::protobuf_google_2fprotobuf_2futil_2finternal_2ftestdata_2ffield_5fmask_2eproto::TableStruct;
  189. };
  190. // -------------------------------------------------------------------
  191. class FieldMaskTest : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:google.protobuf.testing.FieldMaskTest) */ {
  192. public:
  193. FieldMaskTest();
  194. virtual ~FieldMaskTest();
  195. FieldMaskTest(const FieldMaskTest& from);
  196. inline FieldMaskTest& operator=(const FieldMaskTest& from) {
  197. CopyFrom(from);
  198. return *this;
  199. }
  200. #if LANG_CXX11
  201. FieldMaskTest(FieldMaskTest&& from) noexcept
  202. : FieldMaskTest() {
  203. *this = ::std::move(from);
  204. }
  205. inline FieldMaskTest& operator=(FieldMaskTest&& from) noexcept {
  206. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  207. if (this != &from) InternalSwap(&from);
  208. } else {
  209. CopyFrom(from);
  210. }
  211. return *this;
  212. }
  213. #endif
  214. static const ::google::protobuf::Descriptor* descriptor();
  215. static const FieldMaskTest& default_instance();
  216. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  217. static inline const FieldMaskTest* internal_default_instance() {
  218. return reinterpret_cast<const FieldMaskTest*>(
  219. &_FieldMaskTest_default_instance_);
  220. }
  221. static constexpr int kIndexInFileMessages =
  222. 1;
  223. void Swap(FieldMaskTest* other);
  224. friend void swap(FieldMaskTest& a, FieldMaskTest& b) {
  225. a.Swap(&b);
  226. }
  227. // implements Message ----------------------------------------------
  228. inline FieldMaskTest* New() const final {
  229. return CreateMaybeMessage<FieldMaskTest>(NULL);
  230. }
  231. FieldMaskTest* New(::google::protobuf::Arena* arena) const final {
  232. return CreateMaybeMessage<FieldMaskTest>(arena);
  233. }
  234. void CopyFrom(const ::google::protobuf::Message& from) final;
  235. void MergeFrom(const ::google::protobuf::Message& from) final;
  236. void CopyFrom(const FieldMaskTest& from);
  237. void MergeFrom(const FieldMaskTest& from);
  238. void Clear() final;
  239. bool IsInitialized() const final;
  240. size_t ByteSizeLong() const final;
  241. bool MergePartialFromCodedStream(
  242. ::google::protobuf::io::CodedInputStream* input) final;
  243. void SerializeWithCachedSizes(
  244. ::google::protobuf::io::CodedOutputStream* output) const final;
  245. ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
  246. bool deterministic, ::google::protobuf::uint8* target) const final;
  247. int GetCachedSize() const final { return _cached_size_.Get(); }
  248. private:
  249. void SharedCtor();
  250. void SharedDtor();
  251. void SetCachedSize(int size) const final;
  252. void InternalSwap(FieldMaskTest* other);
  253. private:
  254. inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
  255. return NULL;
  256. }
  257. inline void* MaybeArenaPtr() const {
  258. return NULL;
  259. }
  260. public:
  261. ::google::protobuf::Metadata GetMetadata() const final;
  262. // nested types ----------------------------------------------------
  263. // accessors -------------------------------------------------------
  264. // repeated .google.protobuf.FieldMask repeated_mask = 3;
  265. int repeated_mask_size() const;
  266. void clear_repeated_mask();
  267. static const int kRepeatedMaskFieldNumber = 3;
  268. ::google::protobuf::FieldMask* mutable_repeated_mask(int index);
  269. ::google::protobuf::RepeatedPtrField< ::google::protobuf::FieldMask >*
  270. mutable_repeated_mask();
  271. const ::google::protobuf::FieldMask& repeated_mask(int index) const;
  272. ::google::protobuf::FieldMask* add_repeated_mask();
  273. const ::google::protobuf::RepeatedPtrField< ::google::protobuf::FieldMask >&
  274. repeated_mask() const;
  275. // repeated .google.protobuf.testing.NestedFieldMask nested_mask = 4;
  276. int nested_mask_size() const;
  277. void clear_nested_mask();
  278. static const int kNestedMaskFieldNumber = 4;
  279. ::google::protobuf::testing::NestedFieldMask* mutable_nested_mask(int index);
  280. ::google::protobuf::RepeatedPtrField< ::google::protobuf::testing::NestedFieldMask >*
  281. mutable_nested_mask();
  282. const ::google::protobuf::testing::NestedFieldMask& nested_mask(int index) const;
  283. ::google::protobuf::testing::NestedFieldMask* add_nested_mask();
  284. const ::google::protobuf::RepeatedPtrField< ::google::protobuf::testing::NestedFieldMask >&
  285. nested_mask() const;
  286. // string id = 1;
  287. void clear_id();
  288. static const int kIdFieldNumber = 1;
  289. const ::std::string& id() const;
  290. void set_id(const ::std::string& value);
  291. #if LANG_CXX11
  292. void set_id(::std::string&& value);
  293. #endif
  294. void set_id(const char* value);
  295. void set_id(const char* value, size_t size);
  296. ::std::string* mutable_id();
  297. ::std::string* release_id();
  298. void set_allocated_id(::std::string* id);
  299. // .google.protobuf.FieldMask single_mask = 2;
  300. bool has_single_mask() const;
  301. void clear_single_mask();
  302. static const int kSingleMaskFieldNumber = 2;
  303. private:
  304. const ::google::protobuf::FieldMask& _internal_single_mask() const;
  305. public:
  306. const ::google::protobuf::FieldMask& single_mask() const;
  307. ::google::protobuf::FieldMask* release_single_mask();
  308. ::google::protobuf::FieldMask* mutable_single_mask();
  309. void set_allocated_single_mask(::google::protobuf::FieldMask* single_mask);
  310. // @@protoc_insertion_point(class_scope:google.protobuf.testing.FieldMaskTest)
  311. private:
  312. ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
  313. ::google::protobuf::RepeatedPtrField< ::google::protobuf::FieldMask > repeated_mask_;
  314. ::google::protobuf::RepeatedPtrField< ::google::protobuf::testing::NestedFieldMask > nested_mask_;
  315. ::google::protobuf::internal::ArenaStringPtr id_;
  316. ::google::protobuf::FieldMask* single_mask_;
  317. mutable ::google::protobuf::internal::CachedSize _cached_size_;
  318. friend struct ::protobuf_google_2fprotobuf_2futil_2finternal_2ftestdata_2ffield_5fmask_2eproto::TableStruct;
  319. };
  320. // -------------------------------------------------------------------
  321. class FieldMaskTestCases : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:google.protobuf.testing.FieldMaskTestCases) */ {
  322. public:
  323. FieldMaskTestCases();
  324. virtual ~FieldMaskTestCases();
  325. FieldMaskTestCases(const FieldMaskTestCases& from);
  326. inline FieldMaskTestCases& operator=(const FieldMaskTestCases& from) {
  327. CopyFrom(from);
  328. return *this;
  329. }
  330. #if LANG_CXX11
  331. FieldMaskTestCases(FieldMaskTestCases&& from) noexcept
  332. : FieldMaskTestCases() {
  333. *this = ::std::move(from);
  334. }
  335. inline FieldMaskTestCases& operator=(FieldMaskTestCases&& from) noexcept {
  336. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  337. if (this != &from) InternalSwap(&from);
  338. } else {
  339. CopyFrom(from);
  340. }
  341. return *this;
  342. }
  343. #endif
  344. static const ::google::protobuf::Descriptor* descriptor();
  345. static const FieldMaskTestCases& default_instance();
  346. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  347. static inline const FieldMaskTestCases* internal_default_instance() {
  348. return reinterpret_cast<const FieldMaskTestCases*>(
  349. &_FieldMaskTestCases_default_instance_);
  350. }
  351. static constexpr int kIndexInFileMessages =
  352. 2;
  353. void Swap(FieldMaskTestCases* other);
  354. friend void swap(FieldMaskTestCases& a, FieldMaskTestCases& b) {
  355. a.Swap(&b);
  356. }
  357. // implements Message ----------------------------------------------
  358. inline FieldMaskTestCases* New() const final {
  359. return CreateMaybeMessage<FieldMaskTestCases>(NULL);
  360. }
  361. FieldMaskTestCases* New(::google::protobuf::Arena* arena) const final {
  362. return CreateMaybeMessage<FieldMaskTestCases>(arena);
  363. }
  364. void CopyFrom(const ::google::protobuf::Message& from) final;
  365. void MergeFrom(const ::google::protobuf::Message& from) final;
  366. void CopyFrom(const FieldMaskTestCases& from);
  367. void MergeFrom(const FieldMaskTestCases& from);
  368. void Clear() final;
  369. bool IsInitialized() const final;
  370. size_t ByteSizeLong() const final;
  371. bool MergePartialFromCodedStream(
  372. ::google::protobuf::io::CodedInputStream* input) final;
  373. void SerializeWithCachedSizes(
  374. ::google::protobuf::io::CodedOutputStream* output) const final;
  375. ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
  376. bool deterministic, ::google::protobuf::uint8* target) const final;
  377. int GetCachedSize() const final { return _cached_size_.Get(); }
  378. private:
  379. void SharedCtor();
  380. void SharedDtor();
  381. void SetCachedSize(int size) const final;
  382. void InternalSwap(FieldMaskTestCases* other);
  383. private:
  384. inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
  385. return NULL;
  386. }
  387. inline void* MaybeArenaPtr() const {
  388. return NULL;
  389. }
  390. public:
  391. ::google::protobuf::Metadata GetMetadata() const final;
  392. // nested types ----------------------------------------------------
  393. // accessors -------------------------------------------------------
  394. // .google.protobuf.testing.FieldMaskWrapper single_mask = 1;
  395. bool has_single_mask() const;
  396. void clear_single_mask();
  397. static const int kSingleMaskFieldNumber = 1;
  398. private:
  399. const ::google::protobuf::testing::FieldMaskWrapper& _internal_single_mask() const;
  400. public:
  401. const ::google::protobuf::testing::FieldMaskWrapper& single_mask() const;
  402. ::google::protobuf::testing::FieldMaskWrapper* release_single_mask();
  403. ::google::protobuf::testing::FieldMaskWrapper* mutable_single_mask();
  404. void set_allocated_single_mask(::google::protobuf::testing::FieldMaskWrapper* single_mask);
  405. // .google.protobuf.testing.FieldMaskWrapper multiple_mask = 2;
  406. bool has_multiple_mask() const;
  407. void clear_multiple_mask();
  408. static const int kMultipleMaskFieldNumber = 2;
  409. private:
  410. const ::google::protobuf::testing::FieldMaskWrapper& _internal_multiple_mask() const;
  411. public:
  412. const ::google::protobuf::testing::FieldMaskWrapper& multiple_mask() const;
  413. ::google::protobuf::testing::FieldMaskWrapper* release_multiple_mask();
  414. ::google::protobuf::testing::FieldMaskWrapper* mutable_multiple_mask();
  415. void set_allocated_multiple_mask(::google::protobuf::testing::FieldMaskWrapper* multiple_mask);
  416. // .google.protobuf.testing.FieldMaskWrapper snake_camel = 3;
  417. bool has_snake_camel() const;
  418. void clear_snake_camel();
  419. static const int kSnakeCamelFieldNumber = 3;
  420. private:
  421. const ::google::protobuf::testing::FieldMaskWrapper& _internal_snake_camel() const;
  422. public:
  423. const ::google::protobuf::testing::FieldMaskWrapper& snake_camel() const;
  424. ::google::protobuf::testing::FieldMaskWrapper* release_snake_camel();
  425. ::google::protobuf::testing::FieldMaskWrapper* mutable_snake_camel();
  426. void set_allocated_snake_camel(::google::protobuf::testing::FieldMaskWrapper* snake_camel);
  427. // .google.protobuf.testing.FieldMaskWrapper empty_field = 4;
  428. bool has_empty_field() const;
  429. void clear_empty_field();
  430. static const int kEmptyFieldFieldNumber = 4;
  431. private:
  432. const ::google::protobuf::testing::FieldMaskWrapper& _internal_empty_field() const;
  433. public:
  434. const ::google::protobuf::testing::FieldMaskWrapper& empty_field() const;
  435. ::google::protobuf::testing::FieldMaskWrapper* release_empty_field();
  436. ::google::protobuf::testing::FieldMaskWrapper* mutable_empty_field();
  437. void set_allocated_empty_field(::google::protobuf::testing::FieldMaskWrapper* empty_field);
  438. // .google.protobuf.testing.FieldMaskWrapper apiary_format1 = 5;
  439. bool has_apiary_format1() const;
  440. void clear_apiary_format1();
  441. static const int kApiaryFormat1FieldNumber = 5;
  442. private:
  443. const ::google::protobuf::testing::FieldMaskWrapper& _internal_apiary_format1() const;
  444. public:
  445. const ::google::protobuf::testing::FieldMaskWrapper& apiary_format1() const;
  446. ::google::protobuf::testing::FieldMaskWrapper* release_apiary_format1();
  447. ::google::protobuf::testing::FieldMaskWrapper* mutable_apiary_format1();
  448. void set_allocated_apiary_format1(::google::protobuf::testing::FieldMaskWrapper* apiary_format1);
  449. // .google.protobuf.testing.FieldMaskWrapper apiary_format2 = 6;
  450. bool has_apiary_format2() const;
  451. void clear_apiary_format2();
  452. static const int kApiaryFormat2FieldNumber = 6;
  453. private:
  454. const ::google::protobuf::testing::FieldMaskWrapper& _internal_apiary_format2() const;
  455. public:
  456. const ::google::protobuf::testing::FieldMaskWrapper& apiary_format2() const;
  457. ::google::protobuf::testing::FieldMaskWrapper* release_apiary_format2();
  458. ::google::protobuf::testing::FieldMaskWrapper* mutable_apiary_format2();
  459. void set_allocated_apiary_format2(::google::protobuf::testing::FieldMaskWrapper* apiary_format2);
  460. // .google.protobuf.testing.FieldMaskWrapper apiary_format3 = 7;
  461. bool has_apiary_format3() const;
  462. void clear_apiary_format3();
  463. static const int kApiaryFormat3FieldNumber = 7;
  464. private:
  465. const ::google::protobuf::testing::FieldMaskWrapper& _internal_apiary_format3() const;
  466. public:
  467. const ::google::protobuf::testing::FieldMaskWrapper& apiary_format3() const;
  468. ::google::protobuf::testing::FieldMaskWrapper* release_apiary_format3();
  469. ::google::protobuf::testing::FieldMaskWrapper* mutable_apiary_format3();
  470. void set_allocated_apiary_format3(::google::protobuf::testing::FieldMaskWrapper* apiary_format3);
  471. // .google.protobuf.testing.FieldMaskWrapper map_key1 = 8;
  472. bool has_map_key1() const;
  473. void clear_map_key1();
  474. static const int kMapKey1FieldNumber = 8;
  475. private:
  476. const ::google::protobuf::testing::FieldMaskWrapper& _internal_map_key1() const;
  477. public:
  478. const ::google::protobuf::testing::FieldMaskWrapper& map_key1() const;
  479. ::google::protobuf::testing::FieldMaskWrapper* release_map_key1();
  480. ::google::protobuf::testing::FieldMaskWrapper* mutable_map_key1();
  481. void set_allocated_map_key1(::google::protobuf::testing::FieldMaskWrapper* map_key1);
  482. // .google.protobuf.testing.FieldMaskWrapper map_key2 = 9;
  483. bool has_map_key2() const;
  484. void clear_map_key2();
  485. static const int kMapKey2FieldNumber = 9;
  486. private:
  487. const ::google::protobuf::testing::FieldMaskWrapper& _internal_map_key2() const;
  488. public:
  489. const ::google::protobuf::testing::FieldMaskWrapper& map_key2() const;
  490. ::google::protobuf::testing::FieldMaskWrapper* release_map_key2();
  491. ::google::protobuf::testing::FieldMaskWrapper* mutable_map_key2();
  492. void set_allocated_map_key2(::google::protobuf::testing::FieldMaskWrapper* map_key2);
  493. // .google.protobuf.testing.FieldMaskWrapper map_key3 = 10;
  494. bool has_map_key3() const;
  495. void clear_map_key3();
  496. static const int kMapKey3FieldNumber = 10;
  497. private:
  498. const ::google::protobuf::testing::FieldMaskWrapper& _internal_map_key3() const;
  499. public:
  500. const ::google::protobuf::testing::FieldMaskWrapper& map_key3() const;
  501. ::google::protobuf::testing::FieldMaskWrapper* release_map_key3();
  502. ::google::protobuf::testing::FieldMaskWrapper* mutable_map_key3();
  503. void set_allocated_map_key3(::google::protobuf::testing::FieldMaskWrapper* map_key3);
  504. // .google.protobuf.testing.FieldMaskWrapper map_key4 = 11;
  505. bool has_map_key4() const;
  506. void clear_map_key4();
  507. static const int kMapKey4FieldNumber = 11;
  508. private:
  509. const ::google::protobuf::testing::FieldMaskWrapper& _internal_map_key4() const;
  510. public:
  511. const ::google::protobuf::testing::FieldMaskWrapper& map_key4() const;
  512. ::google::protobuf::testing::FieldMaskWrapper* release_map_key4();
  513. ::google::protobuf::testing::FieldMaskWrapper* mutable_map_key4();
  514. void set_allocated_map_key4(::google::protobuf::testing::FieldMaskWrapper* map_key4);
  515. // .google.protobuf.testing.FieldMaskWrapper map_key5 = 12;
  516. bool has_map_key5() const;
  517. void clear_map_key5();
  518. static const int kMapKey5FieldNumber = 12;
  519. private:
  520. const ::google::protobuf::testing::FieldMaskWrapper& _internal_map_key5() const;
  521. public:
  522. const ::google::protobuf::testing::FieldMaskWrapper& map_key5() const;
  523. ::google::protobuf::testing::FieldMaskWrapper* release_map_key5();
  524. ::google::protobuf::testing::FieldMaskWrapper* mutable_map_key5();
  525. void set_allocated_map_key5(::google::protobuf::testing::FieldMaskWrapper* map_key5);
  526. // @@protoc_insertion_point(class_scope:google.protobuf.testing.FieldMaskTestCases)
  527. private:
  528. ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
  529. ::google::protobuf::testing::FieldMaskWrapper* single_mask_;
  530. ::google::protobuf::testing::FieldMaskWrapper* multiple_mask_;
  531. ::google::protobuf::testing::FieldMaskWrapper* snake_camel_;
  532. ::google::protobuf::testing::FieldMaskWrapper* empty_field_;
  533. ::google::protobuf::testing::FieldMaskWrapper* apiary_format1_;
  534. ::google::protobuf::testing::FieldMaskWrapper* apiary_format2_;
  535. ::google::protobuf::testing::FieldMaskWrapper* apiary_format3_;
  536. ::google::protobuf::testing::FieldMaskWrapper* map_key1_;
  537. ::google::protobuf::testing::FieldMaskWrapper* map_key2_;
  538. ::google::protobuf::testing::FieldMaskWrapper* map_key3_;
  539. ::google::protobuf::testing::FieldMaskWrapper* map_key4_;
  540. ::google::protobuf::testing::FieldMaskWrapper* map_key5_;
  541. mutable ::google::protobuf::internal::CachedSize _cached_size_;
  542. friend struct ::protobuf_google_2fprotobuf_2futil_2finternal_2ftestdata_2ffield_5fmask_2eproto::TableStruct;
  543. };
  544. // -------------------------------------------------------------------
  545. class FieldMaskWrapper : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:google.protobuf.testing.FieldMaskWrapper) */ {
  546. public:
  547. FieldMaskWrapper();
  548. virtual ~FieldMaskWrapper();
  549. FieldMaskWrapper(const FieldMaskWrapper& from);
  550. inline FieldMaskWrapper& operator=(const FieldMaskWrapper& from) {
  551. CopyFrom(from);
  552. return *this;
  553. }
  554. #if LANG_CXX11
  555. FieldMaskWrapper(FieldMaskWrapper&& from) noexcept
  556. : FieldMaskWrapper() {
  557. *this = ::std::move(from);
  558. }
  559. inline FieldMaskWrapper& operator=(FieldMaskWrapper&& 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. static const ::google::protobuf::Descriptor* descriptor();
  569. static const FieldMaskWrapper& default_instance();
  570. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  571. static inline const FieldMaskWrapper* internal_default_instance() {
  572. return reinterpret_cast<const FieldMaskWrapper*>(
  573. &_FieldMaskWrapper_default_instance_);
  574. }
  575. static constexpr int kIndexInFileMessages =
  576. 3;
  577. void Swap(FieldMaskWrapper* other);
  578. friend void swap(FieldMaskWrapper& a, FieldMaskWrapper& b) {
  579. a.Swap(&b);
  580. }
  581. // implements Message ----------------------------------------------
  582. inline FieldMaskWrapper* New() const final {
  583. return CreateMaybeMessage<FieldMaskWrapper>(NULL);
  584. }
  585. FieldMaskWrapper* New(::google::protobuf::Arena* arena) const final {
  586. return CreateMaybeMessage<FieldMaskWrapper>(arena);
  587. }
  588. void CopyFrom(const ::google::protobuf::Message& from) final;
  589. void MergeFrom(const ::google::protobuf::Message& from) final;
  590. void CopyFrom(const FieldMaskWrapper& from);
  591. void MergeFrom(const FieldMaskWrapper& from);
  592. void Clear() final;
  593. bool IsInitialized() const final;
  594. size_t ByteSizeLong() const final;
  595. bool MergePartialFromCodedStream(
  596. ::google::protobuf::io::CodedInputStream* input) final;
  597. void SerializeWithCachedSizes(
  598. ::google::protobuf::io::CodedOutputStream* output) const final;
  599. ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
  600. bool deterministic, ::google::protobuf::uint8* target) const final;
  601. int GetCachedSize() const final { return _cached_size_.Get(); }
  602. private:
  603. void SharedCtor();
  604. void SharedDtor();
  605. void SetCachedSize(int size) const final;
  606. void InternalSwap(FieldMaskWrapper* other);
  607. private:
  608. inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
  609. return NULL;
  610. }
  611. inline void* MaybeArenaPtr() const {
  612. return NULL;
  613. }
  614. public:
  615. ::google::protobuf::Metadata GetMetadata() const final;
  616. // nested types ----------------------------------------------------
  617. // accessors -------------------------------------------------------
  618. // .google.protobuf.FieldMask mask = 1;
  619. bool has_mask() const;
  620. void clear_mask();
  621. static const int kMaskFieldNumber = 1;
  622. private:
  623. const ::google::protobuf::FieldMask& _internal_mask() const;
  624. public:
  625. const ::google::protobuf::FieldMask& mask() const;
  626. ::google::protobuf::FieldMask* release_mask();
  627. ::google::protobuf::FieldMask* mutable_mask();
  628. void set_allocated_mask(::google::protobuf::FieldMask* mask);
  629. // @@protoc_insertion_point(class_scope:google.protobuf.testing.FieldMaskWrapper)
  630. private:
  631. ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
  632. ::google::protobuf::FieldMask* mask_;
  633. mutable ::google::protobuf::internal::CachedSize _cached_size_;
  634. friend struct ::protobuf_google_2fprotobuf_2futil_2finternal_2ftestdata_2ffield_5fmask_2eproto::TableStruct;
  635. };
  636. // ===================================================================
  637. // ===================================================================
  638. #ifdef __GNUC__
  639. #pragma GCC diagnostic push
  640. #pragma GCC diagnostic ignored "-Wstrict-aliasing"
  641. #endif // __GNUC__
  642. // NestedFieldMask
  643. // string data = 1;
  644. inline void NestedFieldMask::clear_data() {
  645. data_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  646. }
  647. inline const ::std::string& NestedFieldMask::data() const {
  648. // @@protoc_insertion_point(field_get:google.protobuf.testing.NestedFieldMask.data)
  649. return data_.GetNoArena();
  650. }
  651. inline void NestedFieldMask::set_data(const ::std::string& value) {
  652. data_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
  653. // @@protoc_insertion_point(field_set:google.protobuf.testing.NestedFieldMask.data)
  654. }
  655. #if LANG_CXX11
  656. inline void NestedFieldMask::set_data(::std::string&& value) {
  657. data_.SetNoArena(
  658. &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
  659. // @@protoc_insertion_point(field_set_rvalue:google.protobuf.testing.NestedFieldMask.data)
  660. }
  661. #endif
  662. inline void NestedFieldMask::set_data(const char* value) {
  663. GOOGLE_DCHECK(value != NULL);
  664. data_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
  665. // @@protoc_insertion_point(field_set_char:google.protobuf.testing.NestedFieldMask.data)
  666. }
  667. inline void NestedFieldMask::set_data(const char* value, size_t size) {
  668. data_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  669. ::std::string(reinterpret_cast<const char*>(value), size));
  670. // @@protoc_insertion_point(field_set_pointer:google.protobuf.testing.NestedFieldMask.data)
  671. }
  672. inline ::std::string* NestedFieldMask::mutable_data() {
  673. // @@protoc_insertion_point(field_mutable:google.protobuf.testing.NestedFieldMask.data)
  674. return data_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  675. }
  676. inline ::std::string* NestedFieldMask::release_data() {
  677. // @@protoc_insertion_point(field_release:google.protobuf.testing.NestedFieldMask.data)
  678. return data_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  679. }
  680. inline void NestedFieldMask::set_allocated_data(::std::string* data) {
  681. if (data != NULL) {
  682. } else {
  683. }
  684. data_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), data);
  685. // @@protoc_insertion_point(field_set_allocated:google.protobuf.testing.NestedFieldMask.data)
  686. }
  687. // .google.protobuf.FieldMask single_mask = 2;
  688. inline bool NestedFieldMask::has_single_mask() const {
  689. return this != internal_default_instance() && single_mask_ != NULL;
  690. }
  691. inline const ::google::protobuf::FieldMask& NestedFieldMask::_internal_single_mask() const {
  692. return *single_mask_;
  693. }
  694. inline const ::google::protobuf::FieldMask& NestedFieldMask::single_mask() const {
  695. const ::google::protobuf::FieldMask* p = single_mask_;
  696. // @@protoc_insertion_point(field_get:google.protobuf.testing.NestedFieldMask.single_mask)
  697. return p != NULL ? *p : *reinterpret_cast<const ::google::protobuf::FieldMask*>(
  698. &::google::protobuf::_FieldMask_default_instance_);
  699. }
  700. inline ::google::protobuf::FieldMask* NestedFieldMask::release_single_mask() {
  701. // @@protoc_insertion_point(field_release:google.protobuf.testing.NestedFieldMask.single_mask)
  702. ::google::protobuf::FieldMask* temp = single_mask_;
  703. single_mask_ = NULL;
  704. return temp;
  705. }
  706. inline ::google::protobuf::FieldMask* NestedFieldMask::mutable_single_mask() {
  707. if (single_mask_ == NULL) {
  708. auto* p = CreateMaybeMessage<::google::protobuf::FieldMask>(GetArenaNoVirtual());
  709. single_mask_ = p;
  710. }
  711. // @@protoc_insertion_point(field_mutable:google.protobuf.testing.NestedFieldMask.single_mask)
  712. return single_mask_;
  713. }
  714. inline void NestedFieldMask::set_allocated_single_mask(::google::protobuf::FieldMask* single_mask) {
  715. ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
  716. if (message_arena == NULL) {
  717. delete reinterpret_cast< ::google::protobuf::MessageLite*>(single_mask_);
  718. }
  719. if (single_mask) {
  720. ::google::protobuf::Arena* submessage_arena = NULL;
  721. if (message_arena != submessage_arena) {
  722. single_mask = ::google::protobuf::internal::GetOwnedMessage(
  723. message_arena, single_mask, submessage_arena);
  724. }
  725. } else {
  726. }
  727. single_mask_ = single_mask;
  728. // @@protoc_insertion_point(field_set_allocated:google.protobuf.testing.NestedFieldMask.single_mask)
  729. }
  730. // repeated .google.protobuf.FieldMask repeated_mask = 3;
  731. inline int NestedFieldMask::repeated_mask_size() const {
  732. return repeated_mask_.size();
  733. }
  734. inline ::google::protobuf::FieldMask* NestedFieldMask::mutable_repeated_mask(int index) {
  735. // @@protoc_insertion_point(field_mutable:google.protobuf.testing.NestedFieldMask.repeated_mask)
  736. return repeated_mask_.Mutable(index);
  737. }
  738. inline ::google::protobuf::RepeatedPtrField< ::google::protobuf::FieldMask >*
  739. NestedFieldMask::mutable_repeated_mask() {
  740. // @@protoc_insertion_point(field_mutable_list:google.protobuf.testing.NestedFieldMask.repeated_mask)
  741. return &repeated_mask_;
  742. }
  743. inline const ::google::protobuf::FieldMask& NestedFieldMask::repeated_mask(int index) const {
  744. // @@protoc_insertion_point(field_get:google.protobuf.testing.NestedFieldMask.repeated_mask)
  745. return repeated_mask_.Get(index);
  746. }
  747. inline ::google::protobuf::FieldMask* NestedFieldMask::add_repeated_mask() {
  748. // @@protoc_insertion_point(field_add:google.protobuf.testing.NestedFieldMask.repeated_mask)
  749. return repeated_mask_.Add();
  750. }
  751. inline const ::google::protobuf::RepeatedPtrField< ::google::protobuf::FieldMask >&
  752. NestedFieldMask::repeated_mask() const {
  753. // @@protoc_insertion_point(field_list:google.protobuf.testing.NestedFieldMask.repeated_mask)
  754. return repeated_mask_;
  755. }
  756. // -------------------------------------------------------------------
  757. // FieldMaskTest
  758. // string id = 1;
  759. inline void FieldMaskTest::clear_id() {
  760. id_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  761. }
  762. inline const ::std::string& FieldMaskTest::id() const {
  763. // @@protoc_insertion_point(field_get:google.protobuf.testing.FieldMaskTest.id)
  764. return id_.GetNoArena();
  765. }
  766. inline void FieldMaskTest::set_id(const ::std::string& value) {
  767. id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
  768. // @@protoc_insertion_point(field_set:google.protobuf.testing.FieldMaskTest.id)
  769. }
  770. #if LANG_CXX11
  771. inline void FieldMaskTest::set_id(::std::string&& value) {
  772. id_.SetNoArena(
  773. &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
  774. // @@protoc_insertion_point(field_set_rvalue:google.protobuf.testing.FieldMaskTest.id)
  775. }
  776. #endif
  777. inline void FieldMaskTest::set_id(const char* value) {
  778. GOOGLE_DCHECK(value != NULL);
  779. id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
  780. // @@protoc_insertion_point(field_set_char:google.protobuf.testing.FieldMaskTest.id)
  781. }
  782. inline void FieldMaskTest::set_id(const char* value, size_t size) {
  783. id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  784. ::std::string(reinterpret_cast<const char*>(value), size));
  785. // @@protoc_insertion_point(field_set_pointer:google.protobuf.testing.FieldMaskTest.id)
  786. }
  787. inline ::std::string* FieldMaskTest::mutable_id() {
  788. // @@protoc_insertion_point(field_mutable:google.protobuf.testing.FieldMaskTest.id)
  789. return id_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  790. }
  791. inline ::std::string* FieldMaskTest::release_id() {
  792. // @@protoc_insertion_point(field_release:google.protobuf.testing.FieldMaskTest.id)
  793. return id_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  794. }
  795. inline void FieldMaskTest::set_allocated_id(::std::string* id) {
  796. if (id != NULL) {
  797. } else {
  798. }
  799. id_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), id);
  800. // @@protoc_insertion_point(field_set_allocated:google.protobuf.testing.FieldMaskTest.id)
  801. }
  802. // .google.protobuf.FieldMask single_mask = 2;
  803. inline bool FieldMaskTest::has_single_mask() const {
  804. return this != internal_default_instance() && single_mask_ != NULL;
  805. }
  806. inline const ::google::protobuf::FieldMask& FieldMaskTest::_internal_single_mask() const {
  807. return *single_mask_;
  808. }
  809. inline const ::google::protobuf::FieldMask& FieldMaskTest::single_mask() const {
  810. const ::google::protobuf::FieldMask* p = single_mask_;
  811. // @@protoc_insertion_point(field_get:google.protobuf.testing.FieldMaskTest.single_mask)
  812. return p != NULL ? *p : *reinterpret_cast<const ::google::protobuf::FieldMask*>(
  813. &::google::protobuf::_FieldMask_default_instance_);
  814. }
  815. inline ::google::protobuf::FieldMask* FieldMaskTest::release_single_mask() {
  816. // @@protoc_insertion_point(field_release:google.protobuf.testing.FieldMaskTest.single_mask)
  817. ::google::protobuf::FieldMask* temp = single_mask_;
  818. single_mask_ = NULL;
  819. return temp;
  820. }
  821. inline ::google::protobuf::FieldMask* FieldMaskTest::mutable_single_mask() {
  822. if (single_mask_ == NULL) {
  823. auto* p = CreateMaybeMessage<::google::protobuf::FieldMask>(GetArenaNoVirtual());
  824. single_mask_ = p;
  825. }
  826. // @@protoc_insertion_point(field_mutable:google.protobuf.testing.FieldMaskTest.single_mask)
  827. return single_mask_;
  828. }
  829. inline void FieldMaskTest::set_allocated_single_mask(::google::protobuf::FieldMask* single_mask) {
  830. ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
  831. if (message_arena == NULL) {
  832. delete reinterpret_cast< ::google::protobuf::MessageLite*>(single_mask_);
  833. }
  834. if (single_mask) {
  835. ::google::protobuf::Arena* submessage_arena = NULL;
  836. if (message_arena != submessage_arena) {
  837. single_mask = ::google::protobuf::internal::GetOwnedMessage(
  838. message_arena, single_mask, submessage_arena);
  839. }
  840. } else {
  841. }
  842. single_mask_ = single_mask;
  843. // @@protoc_insertion_point(field_set_allocated:google.protobuf.testing.FieldMaskTest.single_mask)
  844. }
  845. // repeated .google.protobuf.FieldMask repeated_mask = 3;
  846. inline int FieldMaskTest::repeated_mask_size() const {
  847. return repeated_mask_.size();
  848. }
  849. inline ::google::protobuf::FieldMask* FieldMaskTest::mutable_repeated_mask(int index) {
  850. // @@protoc_insertion_point(field_mutable:google.protobuf.testing.FieldMaskTest.repeated_mask)
  851. return repeated_mask_.Mutable(index);
  852. }
  853. inline ::google::protobuf::RepeatedPtrField< ::google::protobuf::FieldMask >*
  854. FieldMaskTest::mutable_repeated_mask() {
  855. // @@protoc_insertion_point(field_mutable_list:google.protobuf.testing.FieldMaskTest.repeated_mask)
  856. return &repeated_mask_;
  857. }
  858. inline const ::google::protobuf::FieldMask& FieldMaskTest::repeated_mask(int index) const {
  859. // @@protoc_insertion_point(field_get:google.protobuf.testing.FieldMaskTest.repeated_mask)
  860. return repeated_mask_.Get(index);
  861. }
  862. inline ::google::protobuf::FieldMask* FieldMaskTest::add_repeated_mask() {
  863. // @@protoc_insertion_point(field_add:google.protobuf.testing.FieldMaskTest.repeated_mask)
  864. return repeated_mask_.Add();
  865. }
  866. inline const ::google::protobuf::RepeatedPtrField< ::google::protobuf::FieldMask >&
  867. FieldMaskTest::repeated_mask() const {
  868. // @@protoc_insertion_point(field_list:google.protobuf.testing.FieldMaskTest.repeated_mask)
  869. return repeated_mask_;
  870. }
  871. // repeated .google.protobuf.testing.NestedFieldMask nested_mask = 4;
  872. inline int FieldMaskTest::nested_mask_size() const {
  873. return nested_mask_.size();
  874. }
  875. inline void FieldMaskTest::clear_nested_mask() {
  876. nested_mask_.Clear();
  877. }
  878. inline ::google::protobuf::testing::NestedFieldMask* FieldMaskTest::mutable_nested_mask(int index) {
  879. // @@protoc_insertion_point(field_mutable:google.protobuf.testing.FieldMaskTest.nested_mask)
  880. return nested_mask_.Mutable(index);
  881. }
  882. inline ::google::protobuf::RepeatedPtrField< ::google::protobuf::testing::NestedFieldMask >*
  883. FieldMaskTest::mutable_nested_mask() {
  884. // @@protoc_insertion_point(field_mutable_list:google.protobuf.testing.FieldMaskTest.nested_mask)
  885. return &nested_mask_;
  886. }
  887. inline const ::google::protobuf::testing::NestedFieldMask& FieldMaskTest::nested_mask(int index) const {
  888. // @@protoc_insertion_point(field_get:google.protobuf.testing.FieldMaskTest.nested_mask)
  889. return nested_mask_.Get(index);
  890. }
  891. inline ::google::protobuf::testing::NestedFieldMask* FieldMaskTest::add_nested_mask() {
  892. // @@protoc_insertion_point(field_add:google.protobuf.testing.FieldMaskTest.nested_mask)
  893. return nested_mask_.Add();
  894. }
  895. inline const ::google::protobuf::RepeatedPtrField< ::google::protobuf::testing::NestedFieldMask >&
  896. FieldMaskTest::nested_mask() const {
  897. // @@protoc_insertion_point(field_list:google.protobuf.testing.FieldMaskTest.nested_mask)
  898. return nested_mask_;
  899. }
  900. // -------------------------------------------------------------------
  901. // FieldMaskTestCases
  902. // .google.protobuf.testing.FieldMaskWrapper single_mask = 1;
  903. inline bool FieldMaskTestCases::has_single_mask() const {
  904. return this != internal_default_instance() && single_mask_ != NULL;
  905. }
  906. inline void FieldMaskTestCases::clear_single_mask() {
  907. if (GetArenaNoVirtual() == NULL && single_mask_ != NULL) {
  908. delete single_mask_;
  909. }
  910. single_mask_ = NULL;
  911. }
  912. inline const ::google::protobuf::testing::FieldMaskWrapper& FieldMaskTestCases::_internal_single_mask() const {
  913. return *single_mask_;
  914. }
  915. inline const ::google::protobuf::testing::FieldMaskWrapper& FieldMaskTestCases::single_mask() const {
  916. const ::google::protobuf::testing::FieldMaskWrapper* p = single_mask_;
  917. // @@protoc_insertion_point(field_get:google.protobuf.testing.FieldMaskTestCases.single_mask)
  918. return p != NULL ? *p : *reinterpret_cast<const ::google::protobuf::testing::FieldMaskWrapper*>(
  919. &::google::protobuf::testing::_FieldMaskWrapper_default_instance_);
  920. }
  921. inline ::google::protobuf::testing::FieldMaskWrapper* FieldMaskTestCases::release_single_mask() {
  922. // @@protoc_insertion_point(field_release:google.protobuf.testing.FieldMaskTestCases.single_mask)
  923. ::google::protobuf::testing::FieldMaskWrapper* temp = single_mask_;
  924. single_mask_ = NULL;
  925. return temp;
  926. }
  927. inline ::google::protobuf::testing::FieldMaskWrapper* FieldMaskTestCases::mutable_single_mask() {
  928. if (single_mask_ == NULL) {
  929. auto* p = CreateMaybeMessage<::google::protobuf::testing::FieldMaskWrapper>(GetArenaNoVirtual());
  930. single_mask_ = p;
  931. }
  932. // @@protoc_insertion_point(field_mutable:google.protobuf.testing.FieldMaskTestCases.single_mask)
  933. return single_mask_;
  934. }
  935. inline void FieldMaskTestCases::set_allocated_single_mask(::google::protobuf::testing::FieldMaskWrapper* single_mask) {
  936. ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
  937. if (message_arena == NULL) {
  938. delete single_mask_;
  939. }
  940. if (single_mask) {
  941. ::google::protobuf::Arena* submessage_arena = NULL;
  942. if (message_arena != submessage_arena) {
  943. single_mask = ::google::protobuf::internal::GetOwnedMessage(
  944. message_arena, single_mask, submessage_arena);
  945. }
  946. } else {
  947. }
  948. single_mask_ = single_mask;
  949. // @@protoc_insertion_point(field_set_allocated:google.protobuf.testing.FieldMaskTestCases.single_mask)
  950. }
  951. // .google.protobuf.testing.FieldMaskWrapper multiple_mask = 2;
  952. inline bool FieldMaskTestCases::has_multiple_mask() const {
  953. return this != internal_default_instance() && multiple_mask_ != NULL;
  954. }
  955. inline void FieldMaskTestCases::clear_multiple_mask() {
  956. if (GetArenaNoVirtual() == NULL && multiple_mask_ != NULL) {
  957. delete multiple_mask_;
  958. }
  959. multiple_mask_ = NULL;
  960. }
  961. inline const ::google::protobuf::testing::FieldMaskWrapper& FieldMaskTestCases::_internal_multiple_mask() const {
  962. return *multiple_mask_;
  963. }
  964. inline const ::google::protobuf::testing::FieldMaskWrapper& FieldMaskTestCases::multiple_mask() const {
  965. const ::google::protobuf::testing::FieldMaskWrapper* p = multiple_mask_;
  966. // @@protoc_insertion_point(field_get:google.protobuf.testing.FieldMaskTestCases.multiple_mask)
  967. return p != NULL ? *p : *reinterpret_cast<const ::google::protobuf::testing::FieldMaskWrapper*>(
  968. &::google::protobuf::testing::_FieldMaskWrapper_default_instance_);
  969. }
  970. inline ::google::protobuf::testing::FieldMaskWrapper* FieldMaskTestCases::release_multiple_mask() {
  971. // @@protoc_insertion_point(field_release:google.protobuf.testing.FieldMaskTestCases.multiple_mask)
  972. ::google::protobuf::testing::FieldMaskWrapper* temp = multiple_mask_;
  973. multiple_mask_ = NULL;
  974. return temp;
  975. }
  976. inline ::google::protobuf::testing::FieldMaskWrapper* FieldMaskTestCases::mutable_multiple_mask() {
  977. if (multiple_mask_ == NULL) {
  978. auto* p = CreateMaybeMessage<::google::protobuf::testing::FieldMaskWrapper>(GetArenaNoVirtual());
  979. multiple_mask_ = p;
  980. }
  981. // @@protoc_insertion_point(field_mutable:google.protobuf.testing.FieldMaskTestCases.multiple_mask)
  982. return multiple_mask_;
  983. }
  984. inline void FieldMaskTestCases::set_allocated_multiple_mask(::google::protobuf::testing::FieldMaskWrapper* multiple_mask) {
  985. ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
  986. if (message_arena == NULL) {
  987. delete multiple_mask_;
  988. }
  989. if (multiple_mask) {
  990. ::google::protobuf::Arena* submessage_arena = NULL;
  991. if (message_arena != submessage_arena) {
  992. multiple_mask = ::google::protobuf::internal::GetOwnedMessage(
  993. message_arena, multiple_mask, submessage_arena);
  994. }
  995. } else {
  996. }
  997. multiple_mask_ = multiple_mask;
  998. // @@protoc_insertion_point(field_set_allocated:google.protobuf.testing.FieldMaskTestCases.multiple_mask)
  999. }
  1000. // .google.protobuf.testing.FieldMaskWrapper snake_camel = 3;
  1001. inline bool FieldMaskTestCases::has_snake_camel() const {
  1002. return this != internal_default_instance() && snake_camel_ != NULL;
  1003. }
  1004. inline void FieldMaskTestCases::clear_snake_camel() {
  1005. if (GetArenaNoVirtual() == NULL && snake_camel_ != NULL) {
  1006. delete snake_camel_;
  1007. }
  1008. snake_camel_ = NULL;
  1009. }
  1010. inline const ::google::protobuf::testing::FieldMaskWrapper& FieldMaskTestCases::_internal_snake_camel() const {
  1011. return *snake_camel_;
  1012. }
  1013. inline const ::google::protobuf::testing::FieldMaskWrapper& FieldMaskTestCases::snake_camel() const {
  1014. const ::google::protobuf::testing::FieldMaskWrapper* p = snake_camel_;
  1015. // @@protoc_insertion_point(field_get:google.protobuf.testing.FieldMaskTestCases.snake_camel)
  1016. return p != NULL ? *p : *reinterpret_cast<const ::google::protobuf::testing::FieldMaskWrapper*>(
  1017. &::google::protobuf::testing::_FieldMaskWrapper_default_instance_);
  1018. }
  1019. inline ::google::protobuf::testing::FieldMaskWrapper* FieldMaskTestCases::release_snake_camel() {
  1020. // @@protoc_insertion_point(field_release:google.protobuf.testing.FieldMaskTestCases.snake_camel)
  1021. ::google::protobuf::testing::FieldMaskWrapper* temp = snake_camel_;
  1022. snake_camel_ = NULL;
  1023. return temp;
  1024. }
  1025. inline ::google::protobuf::testing::FieldMaskWrapper* FieldMaskTestCases::mutable_snake_camel() {
  1026. if (snake_camel_ == NULL) {
  1027. auto* p = CreateMaybeMessage<::google::protobuf::testing::FieldMaskWrapper>(GetArenaNoVirtual());
  1028. snake_camel_ = p;
  1029. }
  1030. // @@protoc_insertion_point(field_mutable:google.protobuf.testing.FieldMaskTestCases.snake_camel)
  1031. return snake_camel_;
  1032. }
  1033. inline void FieldMaskTestCases::set_allocated_snake_camel(::google::protobuf::testing::FieldMaskWrapper* snake_camel) {
  1034. ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
  1035. if (message_arena == NULL) {
  1036. delete snake_camel_;
  1037. }
  1038. if (snake_camel) {
  1039. ::google::protobuf::Arena* submessage_arena = NULL;
  1040. if (message_arena != submessage_arena) {
  1041. snake_camel = ::google::protobuf::internal::GetOwnedMessage(
  1042. message_arena, snake_camel, submessage_arena);
  1043. }
  1044. } else {
  1045. }
  1046. snake_camel_ = snake_camel;
  1047. // @@protoc_insertion_point(field_set_allocated:google.protobuf.testing.FieldMaskTestCases.snake_camel)
  1048. }
  1049. // .google.protobuf.testing.FieldMaskWrapper empty_field = 4;
  1050. inline bool FieldMaskTestCases::has_empty_field() const {
  1051. return this != internal_default_instance() && empty_field_ != NULL;
  1052. }
  1053. inline void FieldMaskTestCases::clear_empty_field() {
  1054. if (GetArenaNoVirtual() == NULL && empty_field_ != NULL) {
  1055. delete empty_field_;
  1056. }
  1057. empty_field_ = NULL;
  1058. }
  1059. inline const ::google::protobuf::testing::FieldMaskWrapper& FieldMaskTestCases::_internal_empty_field() const {
  1060. return *empty_field_;
  1061. }
  1062. inline const ::google::protobuf::testing::FieldMaskWrapper& FieldMaskTestCases::empty_field() const {
  1063. const ::google::protobuf::testing::FieldMaskWrapper* p = empty_field_;
  1064. // @@protoc_insertion_point(field_get:google.protobuf.testing.FieldMaskTestCases.empty_field)
  1065. return p != NULL ? *p : *reinterpret_cast<const ::google::protobuf::testing::FieldMaskWrapper*>(
  1066. &::google::protobuf::testing::_FieldMaskWrapper_default_instance_);
  1067. }
  1068. inline ::google::protobuf::testing::FieldMaskWrapper* FieldMaskTestCases::release_empty_field() {
  1069. // @@protoc_insertion_point(field_release:google.protobuf.testing.FieldMaskTestCases.empty_field)
  1070. ::google::protobuf::testing::FieldMaskWrapper* temp = empty_field_;
  1071. empty_field_ = NULL;
  1072. return temp;
  1073. }
  1074. inline ::google::protobuf::testing::FieldMaskWrapper* FieldMaskTestCases::mutable_empty_field() {
  1075. if (empty_field_ == NULL) {
  1076. auto* p = CreateMaybeMessage<::google::protobuf::testing::FieldMaskWrapper>(GetArenaNoVirtual());
  1077. empty_field_ = p;
  1078. }
  1079. // @@protoc_insertion_point(field_mutable:google.protobuf.testing.FieldMaskTestCases.empty_field)
  1080. return empty_field_;
  1081. }
  1082. inline void FieldMaskTestCases::set_allocated_empty_field(::google::protobuf::testing::FieldMaskWrapper* empty_field) {
  1083. ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
  1084. if (message_arena == NULL) {
  1085. delete empty_field_;
  1086. }
  1087. if (empty_field) {
  1088. ::google::protobuf::Arena* submessage_arena = NULL;
  1089. if (message_arena != submessage_arena) {
  1090. empty_field = ::google::protobuf::internal::GetOwnedMessage(
  1091. message_arena, empty_field, submessage_arena);
  1092. }
  1093. } else {
  1094. }
  1095. empty_field_ = empty_field;
  1096. // @@protoc_insertion_point(field_set_allocated:google.protobuf.testing.FieldMaskTestCases.empty_field)
  1097. }
  1098. // .google.protobuf.testing.FieldMaskWrapper apiary_format1 = 5;
  1099. inline bool FieldMaskTestCases::has_apiary_format1() const {
  1100. return this != internal_default_instance() && apiary_format1_ != NULL;
  1101. }
  1102. inline void FieldMaskTestCases::clear_apiary_format1() {
  1103. if (GetArenaNoVirtual() == NULL && apiary_format1_ != NULL) {
  1104. delete apiary_format1_;
  1105. }
  1106. apiary_format1_ = NULL;
  1107. }
  1108. inline const ::google::protobuf::testing::FieldMaskWrapper& FieldMaskTestCases::_internal_apiary_format1() const {
  1109. return *apiary_format1_;
  1110. }
  1111. inline const ::google::protobuf::testing::FieldMaskWrapper& FieldMaskTestCases::apiary_format1() const {
  1112. const ::google::protobuf::testing::FieldMaskWrapper* p = apiary_format1_;
  1113. // @@protoc_insertion_point(field_get:google.protobuf.testing.FieldMaskTestCases.apiary_format1)
  1114. return p != NULL ? *p : *reinterpret_cast<const ::google::protobuf::testing::FieldMaskWrapper*>(
  1115. &::google::protobuf::testing::_FieldMaskWrapper_default_instance_);
  1116. }
  1117. inline ::google::protobuf::testing::FieldMaskWrapper* FieldMaskTestCases::release_apiary_format1() {
  1118. // @@protoc_insertion_point(field_release:google.protobuf.testing.FieldMaskTestCases.apiary_format1)
  1119. ::google::protobuf::testing::FieldMaskWrapper* temp = apiary_format1_;
  1120. apiary_format1_ = NULL;
  1121. return temp;
  1122. }
  1123. inline ::google::protobuf::testing::FieldMaskWrapper* FieldMaskTestCases::mutable_apiary_format1() {
  1124. if (apiary_format1_ == NULL) {
  1125. auto* p = CreateMaybeMessage<::google::protobuf::testing::FieldMaskWrapper>(GetArenaNoVirtual());
  1126. apiary_format1_ = p;
  1127. }
  1128. // @@protoc_insertion_point(field_mutable:google.protobuf.testing.FieldMaskTestCases.apiary_format1)
  1129. return apiary_format1_;
  1130. }
  1131. inline void FieldMaskTestCases::set_allocated_apiary_format1(::google::protobuf::testing::FieldMaskWrapper* apiary_format1) {
  1132. ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
  1133. if (message_arena == NULL) {
  1134. delete apiary_format1_;
  1135. }
  1136. if (apiary_format1) {
  1137. ::google::protobuf::Arena* submessage_arena = NULL;
  1138. if (message_arena != submessage_arena) {
  1139. apiary_format1 = ::google::protobuf::internal::GetOwnedMessage(
  1140. message_arena, apiary_format1, submessage_arena);
  1141. }
  1142. } else {
  1143. }
  1144. apiary_format1_ = apiary_format1;
  1145. // @@protoc_insertion_point(field_set_allocated:google.protobuf.testing.FieldMaskTestCases.apiary_format1)
  1146. }
  1147. // .google.protobuf.testing.FieldMaskWrapper apiary_format2 = 6;
  1148. inline bool FieldMaskTestCases::has_apiary_format2() const {
  1149. return this != internal_default_instance() && apiary_format2_ != NULL;
  1150. }
  1151. inline void FieldMaskTestCases::clear_apiary_format2() {
  1152. if (GetArenaNoVirtual() == NULL && apiary_format2_ != NULL) {
  1153. delete apiary_format2_;
  1154. }
  1155. apiary_format2_ = NULL;
  1156. }
  1157. inline const ::google::protobuf::testing::FieldMaskWrapper& FieldMaskTestCases::_internal_apiary_format2() const {
  1158. return *apiary_format2_;
  1159. }
  1160. inline const ::google::protobuf::testing::FieldMaskWrapper& FieldMaskTestCases::apiary_format2() const {
  1161. const ::google::protobuf::testing::FieldMaskWrapper* p = apiary_format2_;
  1162. // @@protoc_insertion_point(field_get:google.protobuf.testing.FieldMaskTestCases.apiary_format2)
  1163. return p != NULL ? *p : *reinterpret_cast<const ::google::protobuf::testing::FieldMaskWrapper*>(
  1164. &::google::protobuf::testing::_FieldMaskWrapper_default_instance_);
  1165. }
  1166. inline ::google::protobuf::testing::FieldMaskWrapper* FieldMaskTestCases::release_apiary_format2() {
  1167. // @@protoc_insertion_point(field_release:google.protobuf.testing.FieldMaskTestCases.apiary_format2)
  1168. ::google::protobuf::testing::FieldMaskWrapper* temp = apiary_format2_;
  1169. apiary_format2_ = NULL;
  1170. return temp;
  1171. }
  1172. inline ::google::protobuf::testing::FieldMaskWrapper* FieldMaskTestCases::mutable_apiary_format2() {
  1173. if (apiary_format2_ == NULL) {
  1174. auto* p = CreateMaybeMessage<::google::protobuf::testing::FieldMaskWrapper>(GetArenaNoVirtual());
  1175. apiary_format2_ = p;
  1176. }
  1177. // @@protoc_insertion_point(field_mutable:google.protobuf.testing.FieldMaskTestCases.apiary_format2)
  1178. return apiary_format2_;
  1179. }
  1180. inline void FieldMaskTestCases::set_allocated_apiary_format2(::google::protobuf::testing::FieldMaskWrapper* apiary_format2) {
  1181. ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
  1182. if (message_arena == NULL) {
  1183. delete apiary_format2_;
  1184. }
  1185. if (apiary_format2) {
  1186. ::google::protobuf::Arena* submessage_arena = NULL;
  1187. if (message_arena != submessage_arena) {
  1188. apiary_format2 = ::google::protobuf::internal::GetOwnedMessage(
  1189. message_arena, apiary_format2, submessage_arena);
  1190. }
  1191. } else {
  1192. }
  1193. apiary_format2_ = apiary_format2;
  1194. // @@protoc_insertion_point(field_set_allocated:google.protobuf.testing.FieldMaskTestCases.apiary_format2)
  1195. }
  1196. // .google.protobuf.testing.FieldMaskWrapper apiary_format3 = 7;
  1197. inline bool FieldMaskTestCases::has_apiary_format3() const {
  1198. return this != internal_default_instance() && apiary_format3_ != NULL;
  1199. }
  1200. inline void FieldMaskTestCases::clear_apiary_format3() {
  1201. if (GetArenaNoVirtual() == NULL && apiary_format3_ != NULL) {
  1202. delete apiary_format3_;
  1203. }
  1204. apiary_format3_ = NULL;
  1205. }
  1206. inline const ::google::protobuf::testing::FieldMaskWrapper& FieldMaskTestCases::_internal_apiary_format3() const {
  1207. return *apiary_format3_;
  1208. }
  1209. inline const ::google::protobuf::testing::FieldMaskWrapper& FieldMaskTestCases::apiary_format3() const {
  1210. const ::google::protobuf::testing::FieldMaskWrapper* p = apiary_format3_;
  1211. // @@protoc_insertion_point(field_get:google.protobuf.testing.FieldMaskTestCases.apiary_format3)
  1212. return p != NULL ? *p : *reinterpret_cast<const ::google::protobuf::testing::FieldMaskWrapper*>(
  1213. &::google::protobuf::testing::_FieldMaskWrapper_default_instance_);
  1214. }
  1215. inline ::google::protobuf::testing::FieldMaskWrapper* FieldMaskTestCases::release_apiary_format3() {
  1216. // @@protoc_insertion_point(field_release:google.protobuf.testing.FieldMaskTestCases.apiary_format3)
  1217. ::google::protobuf::testing::FieldMaskWrapper* temp = apiary_format3_;
  1218. apiary_format3_ = NULL;
  1219. return temp;
  1220. }
  1221. inline ::google::protobuf::testing::FieldMaskWrapper* FieldMaskTestCases::mutable_apiary_format3() {
  1222. if (apiary_format3_ == NULL) {
  1223. auto* p = CreateMaybeMessage<::google::protobuf::testing::FieldMaskWrapper>(GetArenaNoVirtual());
  1224. apiary_format3_ = p;
  1225. }
  1226. // @@protoc_insertion_point(field_mutable:google.protobuf.testing.FieldMaskTestCases.apiary_format3)
  1227. return apiary_format3_;
  1228. }
  1229. inline void FieldMaskTestCases::set_allocated_apiary_format3(::google::protobuf::testing::FieldMaskWrapper* apiary_format3) {
  1230. ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
  1231. if (message_arena == NULL) {
  1232. delete apiary_format3_;
  1233. }
  1234. if (apiary_format3) {
  1235. ::google::protobuf::Arena* submessage_arena = NULL;
  1236. if (message_arena != submessage_arena) {
  1237. apiary_format3 = ::google::protobuf::internal::GetOwnedMessage(
  1238. message_arena, apiary_format3, submessage_arena);
  1239. }
  1240. } else {
  1241. }
  1242. apiary_format3_ = apiary_format3;
  1243. // @@protoc_insertion_point(field_set_allocated:google.protobuf.testing.FieldMaskTestCases.apiary_format3)
  1244. }
  1245. // .google.protobuf.testing.FieldMaskWrapper map_key1 = 8;
  1246. inline bool FieldMaskTestCases::has_map_key1() const {
  1247. return this != internal_default_instance() && map_key1_ != NULL;
  1248. }
  1249. inline void FieldMaskTestCases::clear_map_key1() {
  1250. if (GetArenaNoVirtual() == NULL && map_key1_ != NULL) {
  1251. delete map_key1_;
  1252. }
  1253. map_key1_ = NULL;
  1254. }
  1255. inline const ::google::protobuf::testing::FieldMaskWrapper& FieldMaskTestCases::_internal_map_key1() const {
  1256. return *map_key1_;
  1257. }
  1258. inline const ::google::protobuf::testing::FieldMaskWrapper& FieldMaskTestCases::map_key1() const {
  1259. const ::google::protobuf::testing::FieldMaskWrapper* p = map_key1_;
  1260. // @@protoc_insertion_point(field_get:google.protobuf.testing.FieldMaskTestCases.map_key1)
  1261. return p != NULL ? *p : *reinterpret_cast<const ::google::protobuf::testing::FieldMaskWrapper*>(
  1262. &::google::protobuf::testing::_FieldMaskWrapper_default_instance_);
  1263. }
  1264. inline ::google::protobuf::testing::FieldMaskWrapper* FieldMaskTestCases::release_map_key1() {
  1265. // @@protoc_insertion_point(field_release:google.protobuf.testing.FieldMaskTestCases.map_key1)
  1266. ::google::protobuf::testing::FieldMaskWrapper* temp = map_key1_;
  1267. map_key1_ = NULL;
  1268. return temp;
  1269. }
  1270. inline ::google::protobuf::testing::FieldMaskWrapper* FieldMaskTestCases::mutable_map_key1() {
  1271. if (map_key1_ == NULL) {
  1272. auto* p = CreateMaybeMessage<::google::protobuf::testing::FieldMaskWrapper>(GetArenaNoVirtual());
  1273. map_key1_ = p;
  1274. }
  1275. // @@protoc_insertion_point(field_mutable:google.protobuf.testing.FieldMaskTestCases.map_key1)
  1276. return map_key1_;
  1277. }
  1278. inline void FieldMaskTestCases::set_allocated_map_key1(::google::protobuf::testing::FieldMaskWrapper* map_key1) {
  1279. ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
  1280. if (message_arena == NULL) {
  1281. delete map_key1_;
  1282. }
  1283. if (map_key1) {
  1284. ::google::protobuf::Arena* submessage_arena = NULL;
  1285. if (message_arena != submessage_arena) {
  1286. map_key1 = ::google::protobuf::internal::GetOwnedMessage(
  1287. message_arena, map_key1, submessage_arena);
  1288. }
  1289. } else {
  1290. }
  1291. map_key1_ = map_key1;
  1292. // @@protoc_insertion_point(field_set_allocated:google.protobuf.testing.FieldMaskTestCases.map_key1)
  1293. }
  1294. // .google.protobuf.testing.FieldMaskWrapper map_key2 = 9;
  1295. inline bool FieldMaskTestCases::has_map_key2() const {
  1296. return this != internal_default_instance() && map_key2_ != NULL;
  1297. }
  1298. inline void FieldMaskTestCases::clear_map_key2() {
  1299. if (GetArenaNoVirtual() == NULL && map_key2_ != NULL) {
  1300. delete map_key2_;
  1301. }
  1302. map_key2_ = NULL;
  1303. }
  1304. inline const ::google::protobuf::testing::FieldMaskWrapper& FieldMaskTestCases::_internal_map_key2() const {
  1305. return *map_key2_;
  1306. }
  1307. inline const ::google::protobuf::testing::FieldMaskWrapper& FieldMaskTestCases::map_key2() const {
  1308. const ::google::protobuf::testing::FieldMaskWrapper* p = map_key2_;
  1309. // @@protoc_insertion_point(field_get:google.protobuf.testing.FieldMaskTestCases.map_key2)
  1310. return p != NULL ? *p : *reinterpret_cast<const ::google::protobuf::testing::FieldMaskWrapper*>(
  1311. &::google::protobuf::testing::_FieldMaskWrapper_default_instance_);
  1312. }
  1313. inline ::google::protobuf::testing::FieldMaskWrapper* FieldMaskTestCases::release_map_key2() {
  1314. // @@protoc_insertion_point(field_release:google.protobuf.testing.FieldMaskTestCases.map_key2)
  1315. ::google::protobuf::testing::FieldMaskWrapper* temp = map_key2_;
  1316. map_key2_ = NULL;
  1317. return temp;
  1318. }
  1319. inline ::google::protobuf::testing::FieldMaskWrapper* FieldMaskTestCases::mutable_map_key2() {
  1320. if (map_key2_ == NULL) {
  1321. auto* p = CreateMaybeMessage<::google::protobuf::testing::FieldMaskWrapper>(GetArenaNoVirtual());
  1322. map_key2_ = p;
  1323. }
  1324. // @@protoc_insertion_point(field_mutable:google.protobuf.testing.FieldMaskTestCases.map_key2)
  1325. return map_key2_;
  1326. }
  1327. inline void FieldMaskTestCases::set_allocated_map_key2(::google::protobuf::testing::FieldMaskWrapper* map_key2) {
  1328. ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
  1329. if (message_arena == NULL) {
  1330. delete map_key2_;
  1331. }
  1332. if (map_key2) {
  1333. ::google::protobuf::Arena* submessage_arena = NULL;
  1334. if (message_arena != submessage_arena) {
  1335. map_key2 = ::google::protobuf::internal::GetOwnedMessage(
  1336. message_arena, map_key2, submessage_arena);
  1337. }
  1338. } else {
  1339. }
  1340. map_key2_ = map_key2;
  1341. // @@protoc_insertion_point(field_set_allocated:google.protobuf.testing.FieldMaskTestCases.map_key2)
  1342. }
  1343. // .google.protobuf.testing.FieldMaskWrapper map_key3 = 10;
  1344. inline bool FieldMaskTestCases::has_map_key3() const {
  1345. return this != internal_default_instance() && map_key3_ != NULL;
  1346. }
  1347. inline void FieldMaskTestCases::clear_map_key3() {
  1348. if (GetArenaNoVirtual() == NULL && map_key3_ != NULL) {
  1349. delete map_key3_;
  1350. }
  1351. map_key3_ = NULL;
  1352. }
  1353. inline const ::google::protobuf::testing::FieldMaskWrapper& FieldMaskTestCases::_internal_map_key3() const {
  1354. return *map_key3_;
  1355. }
  1356. inline const ::google::protobuf::testing::FieldMaskWrapper& FieldMaskTestCases::map_key3() const {
  1357. const ::google::protobuf::testing::FieldMaskWrapper* p = map_key3_;
  1358. // @@protoc_insertion_point(field_get:google.protobuf.testing.FieldMaskTestCases.map_key3)
  1359. return p != NULL ? *p : *reinterpret_cast<const ::google::protobuf::testing::FieldMaskWrapper*>(
  1360. &::google::protobuf::testing::_FieldMaskWrapper_default_instance_);
  1361. }
  1362. inline ::google::protobuf::testing::FieldMaskWrapper* FieldMaskTestCases::release_map_key3() {
  1363. // @@protoc_insertion_point(field_release:google.protobuf.testing.FieldMaskTestCases.map_key3)
  1364. ::google::protobuf::testing::FieldMaskWrapper* temp = map_key3_;
  1365. map_key3_ = NULL;
  1366. return temp;
  1367. }
  1368. inline ::google::protobuf::testing::FieldMaskWrapper* FieldMaskTestCases::mutable_map_key3() {
  1369. if (map_key3_ == NULL) {
  1370. auto* p = CreateMaybeMessage<::google::protobuf::testing::FieldMaskWrapper>(GetArenaNoVirtual());
  1371. map_key3_ = p;
  1372. }
  1373. // @@protoc_insertion_point(field_mutable:google.protobuf.testing.FieldMaskTestCases.map_key3)
  1374. return map_key3_;
  1375. }
  1376. inline void FieldMaskTestCases::set_allocated_map_key3(::google::protobuf::testing::FieldMaskWrapper* map_key3) {
  1377. ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
  1378. if (message_arena == NULL) {
  1379. delete map_key3_;
  1380. }
  1381. if (map_key3) {
  1382. ::google::protobuf::Arena* submessage_arena = NULL;
  1383. if (message_arena != submessage_arena) {
  1384. map_key3 = ::google::protobuf::internal::GetOwnedMessage(
  1385. message_arena, map_key3, submessage_arena);
  1386. }
  1387. } else {
  1388. }
  1389. map_key3_ = map_key3;
  1390. // @@protoc_insertion_point(field_set_allocated:google.protobuf.testing.FieldMaskTestCases.map_key3)
  1391. }
  1392. // .google.protobuf.testing.FieldMaskWrapper map_key4 = 11;
  1393. inline bool FieldMaskTestCases::has_map_key4() const {
  1394. return this != internal_default_instance() && map_key4_ != NULL;
  1395. }
  1396. inline void FieldMaskTestCases::clear_map_key4() {
  1397. if (GetArenaNoVirtual() == NULL && map_key4_ != NULL) {
  1398. delete map_key4_;
  1399. }
  1400. map_key4_ = NULL;
  1401. }
  1402. inline const ::google::protobuf::testing::FieldMaskWrapper& FieldMaskTestCases::_internal_map_key4() const {
  1403. return *map_key4_;
  1404. }
  1405. inline const ::google::protobuf::testing::FieldMaskWrapper& FieldMaskTestCases::map_key4() const {
  1406. const ::google::protobuf::testing::FieldMaskWrapper* p = map_key4_;
  1407. // @@protoc_insertion_point(field_get:google.protobuf.testing.FieldMaskTestCases.map_key4)
  1408. return p != NULL ? *p : *reinterpret_cast<const ::google::protobuf::testing::FieldMaskWrapper*>(
  1409. &::google::protobuf::testing::_FieldMaskWrapper_default_instance_);
  1410. }
  1411. inline ::google::protobuf::testing::FieldMaskWrapper* FieldMaskTestCases::release_map_key4() {
  1412. // @@protoc_insertion_point(field_release:google.protobuf.testing.FieldMaskTestCases.map_key4)
  1413. ::google::protobuf::testing::FieldMaskWrapper* temp = map_key4_;
  1414. map_key4_ = NULL;
  1415. return temp;
  1416. }
  1417. inline ::google::protobuf::testing::FieldMaskWrapper* FieldMaskTestCases::mutable_map_key4() {
  1418. if (map_key4_ == NULL) {
  1419. auto* p = CreateMaybeMessage<::google::protobuf::testing::FieldMaskWrapper>(GetArenaNoVirtual());
  1420. map_key4_ = p;
  1421. }
  1422. // @@protoc_insertion_point(field_mutable:google.protobuf.testing.FieldMaskTestCases.map_key4)
  1423. return map_key4_;
  1424. }
  1425. inline void FieldMaskTestCases::set_allocated_map_key4(::google::protobuf::testing::FieldMaskWrapper* map_key4) {
  1426. ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
  1427. if (message_arena == NULL) {
  1428. delete map_key4_;
  1429. }
  1430. if (map_key4) {
  1431. ::google::protobuf::Arena* submessage_arena = NULL;
  1432. if (message_arena != submessage_arena) {
  1433. map_key4 = ::google::protobuf::internal::GetOwnedMessage(
  1434. message_arena, map_key4, submessage_arena);
  1435. }
  1436. } else {
  1437. }
  1438. map_key4_ = map_key4;
  1439. // @@protoc_insertion_point(field_set_allocated:google.protobuf.testing.FieldMaskTestCases.map_key4)
  1440. }
  1441. // .google.protobuf.testing.FieldMaskWrapper map_key5 = 12;
  1442. inline bool FieldMaskTestCases::has_map_key5() const {
  1443. return this != internal_default_instance() && map_key5_ != NULL;
  1444. }
  1445. inline void FieldMaskTestCases::clear_map_key5() {
  1446. if (GetArenaNoVirtual() == NULL && map_key5_ != NULL) {
  1447. delete map_key5_;
  1448. }
  1449. map_key5_ = NULL;
  1450. }
  1451. inline const ::google::protobuf::testing::FieldMaskWrapper& FieldMaskTestCases::_internal_map_key5() const {
  1452. return *map_key5_;
  1453. }
  1454. inline const ::google::protobuf::testing::FieldMaskWrapper& FieldMaskTestCases::map_key5() const {
  1455. const ::google::protobuf::testing::FieldMaskWrapper* p = map_key5_;
  1456. // @@protoc_insertion_point(field_get:google.protobuf.testing.FieldMaskTestCases.map_key5)
  1457. return p != NULL ? *p : *reinterpret_cast<const ::google::protobuf::testing::FieldMaskWrapper*>(
  1458. &::google::protobuf::testing::_FieldMaskWrapper_default_instance_);
  1459. }
  1460. inline ::google::protobuf::testing::FieldMaskWrapper* FieldMaskTestCases::release_map_key5() {
  1461. // @@protoc_insertion_point(field_release:google.protobuf.testing.FieldMaskTestCases.map_key5)
  1462. ::google::protobuf::testing::FieldMaskWrapper* temp = map_key5_;
  1463. map_key5_ = NULL;
  1464. return temp;
  1465. }
  1466. inline ::google::protobuf::testing::FieldMaskWrapper* FieldMaskTestCases::mutable_map_key5() {
  1467. if (map_key5_ == NULL) {
  1468. auto* p = CreateMaybeMessage<::google::protobuf::testing::FieldMaskWrapper>(GetArenaNoVirtual());
  1469. map_key5_ = p;
  1470. }
  1471. // @@protoc_insertion_point(field_mutable:google.protobuf.testing.FieldMaskTestCases.map_key5)
  1472. return map_key5_;
  1473. }
  1474. inline void FieldMaskTestCases::set_allocated_map_key5(::google::protobuf::testing::FieldMaskWrapper* map_key5) {
  1475. ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
  1476. if (message_arena == NULL) {
  1477. delete map_key5_;
  1478. }
  1479. if (map_key5) {
  1480. ::google::protobuf::Arena* submessage_arena = NULL;
  1481. if (message_arena != submessage_arena) {
  1482. map_key5 = ::google::protobuf::internal::GetOwnedMessage(
  1483. message_arena, map_key5, submessage_arena);
  1484. }
  1485. } else {
  1486. }
  1487. map_key5_ = map_key5;
  1488. // @@protoc_insertion_point(field_set_allocated:google.protobuf.testing.FieldMaskTestCases.map_key5)
  1489. }
  1490. // -------------------------------------------------------------------
  1491. // FieldMaskWrapper
  1492. // .google.protobuf.FieldMask mask = 1;
  1493. inline bool FieldMaskWrapper::has_mask() const {
  1494. return this != internal_default_instance() && mask_ != NULL;
  1495. }
  1496. inline const ::google::protobuf::FieldMask& FieldMaskWrapper::_internal_mask() const {
  1497. return *mask_;
  1498. }
  1499. inline const ::google::protobuf::FieldMask& FieldMaskWrapper::mask() const {
  1500. const ::google::protobuf::FieldMask* p = mask_;
  1501. // @@protoc_insertion_point(field_get:google.protobuf.testing.FieldMaskWrapper.mask)
  1502. return p != NULL ? *p : *reinterpret_cast<const ::google::protobuf::FieldMask*>(
  1503. &::google::protobuf::_FieldMask_default_instance_);
  1504. }
  1505. inline ::google::protobuf::FieldMask* FieldMaskWrapper::release_mask() {
  1506. // @@protoc_insertion_point(field_release:google.protobuf.testing.FieldMaskWrapper.mask)
  1507. ::google::protobuf::FieldMask* temp = mask_;
  1508. mask_ = NULL;
  1509. return temp;
  1510. }
  1511. inline ::google::protobuf::FieldMask* FieldMaskWrapper::mutable_mask() {
  1512. if (mask_ == NULL) {
  1513. auto* p = CreateMaybeMessage<::google::protobuf::FieldMask>(GetArenaNoVirtual());
  1514. mask_ = p;
  1515. }
  1516. // @@protoc_insertion_point(field_mutable:google.protobuf.testing.FieldMaskWrapper.mask)
  1517. return mask_;
  1518. }
  1519. inline void FieldMaskWrapper::set_allocated_mask(::google::protobuf::FieldMask* mask) {
  1520. ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
  1521. if (message_arena == NULL) {
  1522. delete reinterpret_cast< ::google::protobuf::MessageLite*>(mask_);
  1523. }
  1524. if (mask) {
  1525. ::google::protobuf::Arena* submessage_arena = NULL;
  1526. if (message_arena != submessage_arena) {
  1527. mask = ::google::protobuf::internal::GetOwnedMessage(
  1528. message_arena, mask, submessage_arena);
  1529. }
  1530. } else {
  1531. }
  1532. mask_ = mask;
  1533. // @@protoc_insertion_point(field_set_allocated:google.protobuf.testing.FieldMaskWrapper.mask)
  1534. }
  1535. #ifdef __GNUC__
  1536. #pragma GCC diagnostic pop
  1537. #endif // __GNUC__
  1538. // -------------------------------------------------------------------
  1539. // -------------------------------------------------------------------
  1540. // -------------------------------------------------------------------
  1541. // @@protoc_insertion_point(namespace_scope)
  1542. } // namespace testing
  1543. } // namespace protobuf
  1544. } // namespace google
  1545. // @@protoc_insertion_point(global_scope)
  1546. #endif // PROTOBUF_INCLUDED_google_2fprotobuf_2futil_2finternal_2ftestdata_2ffield_5fmask_2eproto