unittest_lazy_dependencies.pb.h 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546
  1. // Generated by the protocol buffer compiler. DO NOT EDIT!
  2. // source: google/protobuf/unittest_lazy_dependencies.proto
  3. #ifndef PROTOBUF_INCLUDED_google_2fprotobuf_2funittest_5flazy_5fdependencies_2eproto
  4. #define PROTOBUF_INCLUDED_google_2fprotobuf_2funittest_5flazy_5fdependencies_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/unittest_lazy_dependencies_custom_option.pb.h>
  29. // @@protoc_insertion_point(includes)
  30. #define PROTOBUF_INTERNAL_EXPORT_protobuf_google_2fprotobuf_2funittest_5flazy_5fdependencies_2eproto
  31. namespace protobuf_google_2fprotobuf_2funittest_5flazy_5fdependencies_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[3];
  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_2funittest_5flazy_5fdependencies_2eproto
  43. namespace protobuf_unittest {
  44. namespace lazy_imports {
  45. class ImportedMessage;
  46. class ImportedMessageDefaultTypeInternal;
  47. extern ImportedMessageDefaultTypeInternal _ImportedMessage_default_instance_;
  48. class MessageCustomOption;
  49. class MessageCustomOptionDefaultTypeInternal;
  50. extern MessageCustomOptionDefaultTypeInternal _MessageCustomOption_default_instance_;
  51. class MessageCustomOption2;
  52. class MessageCustomOption2DefaultTypeInternal;
  53. extern MessageCustomOption2DefaultTypeInternal _MessageCustomOption2_default_instance_;
  54. } // namespace lazy_imports
  55. } // namespace protobuf_unittest
  56. namespace google {
  57. namespace protobuf {
  58. template<> ::protobuf_unittest::lazy_imports::ImportedMessage* Arena::CreateMaybeMessage<::protobuf_unittest::lazy_imports::ImportedMessage>(Arena*);
  59. template<> ::protobuf_unittest::lazy_imports::MessageCustomOption* Arena::CreateMaybeMessage<::protobuf_unittest::lazy_imports::MessageCustomOption>(Arena*);
  60. template<> ::protobuf_unittest::lazy_imports::MessageCustomOption2* Arena::CreateMaybeMessage<::protobuf_unittest::lazy_imports::MessageCustomOption2>(Arena*);
  61. } // namespace protobuf
  62. } // namespace google
  63. namespace protobuf_unittest {
  64. namespace lazy_imports {
  65. // ===================================================================
  66. class ImportedMessage : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:protobuf_unittest.lazy_imports.ImportedMessage) */ {
  67. public:
  68. ImportedMessage();
  69. virtual ~ImportedMessage();
  70. ImportedMessage(const ImportedMessage& from);
  71. inline ImportedMessage& operator=(const ImportedMessage& from) {
  72. CopyFrom(from);
  73. return *this;
  74. }
  75. #if LANG_CXX11
  76. ImportedMessage(ImportedMessage&& from) noexcept
  77. : ImportedMessage() {
  78. *this = ::std::move(from);
  79. }
  80. inline ImportedMessage& operator=(ImportedMessage&& from) noexcept {
  81. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  82. if (this != &from) InternalSwap(&from);
  83. } else {
  84. CopyFrom(from);
  85. }
  86. return *this;
  87. }
  88. #endif
  89. inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
  90. return _internal_metadata_.unknown_fields();
  91. }
  92. inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
  93. return _internal_metadata_.mutable_unknown_fields();
  94. }
  95. inline ::google::protobuf::Arena* GetArena() const final {
  96. return GetArenaNoVirtual();
  97. }
  98. inline void* GetMaybeArenaPointer() const final {
  99. return MaybeArenaPtr();
  100. }
  101. static const ::google::protobuf::Descriptor* descriptor();
  102. static const ImportedMessage& default_instance();
  103. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  104. static inline const ImportedMessage* internal_default_instance() {
  105. return reinterpret_cast<const ImportedMessage*>(
  106. &_ImportedMessage_default_instance_);
  107. }
  108. static constexpr int kIndexInFileMessages =
  109. 0;
  110. void UnsafeArenaSwap(ImportedMessage* other);
  111. void Swap(ImportedMessage* other);
  112. friend void swap(ImportedMessage& a, ImportedMessage& b) {
  113. a.Swap(&b);
  114. }
  115. // implements Message ----------------------------------------------
  116. inline ImportedMessage* New() const final {
  117. return CreateMaybeMessage<ImportedMessage>(NULL);
  118. }
  119. ImportedMessage* New(::google::protobuf::Arena* arena) const final {
  120. return CreateMaybeMessage<ImportedMessage>(arena);
  121. }
  122. void CopyFrom(const ::google::protobuf::Message& from) final;
  123. void MergeFrom(const ::google::protobuf::Message& from) final;
  124. void CopyFrom(const ImportedMessage& from);
  125. void MergeFrom(const ImportedMessage& from);
  126. void Clear() final;
  127. bool IsInitialized() const final;
  128. size_t ByteSizeLong() const final;
  129. bool MergePartialFromCodedStream(
  130. ::google::protobuf::io::CodedInputStream* input) final;
  131. void SerializeWithCachedSizes(
  132. ::google::protobuf::io::CodedOutputStream* output) const final;
  133. ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
  134. bool deterministic, ::google::protobuf::uint8* target) const final;
  135. int GetCachedSize() const final { return _cached_size_.Get(); }
  136. private:
  137. void SharedCtor();
  138. void SharedDtor();
  139. void SetCachedSize(int size) const final;
  140. void InternalSwap(ImportedMessage* other);
  141. protected:
  142. explicit ImportedMessage(::google::protobuf::Arena* arena);
  143. private:
  144. static void ArenaDtor(void* object);
  145. inline void RegisterArenaDtor(::google::protobuf::Arena* arena);
  146. private:
  147. inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
  148. return _internal_metadata_.arena();
  149. }
  150. inline void* MaybeArenaPtr() const {
  151. return _internal_metadata_.raw_arena_ptr();
  152. }
  153. public:
  154. ::google::protobuf::Metadata GetMetadata() const final;
  155. // nested types ----------------------------------------------------
  156. // accessors -------------------------------------------------------
  157. // optional .protobuf_unittest.lazy_imports.LazyMessage lazy_message = 1;
  158. bool has_lazy_message() const;
  159. void clear_lazy_message();
  160. static const int kLazyMessageFieldNumber = 1;
  161. private:
  162. const ::protobuf_unittest::lazy_imports::LazyMessage& _internal_lazy_message() const;
  163. public:
  164. const ::protobuf_unittest::lazy_imports::LazyMessage& lazy_message() const;
  165. ::protobuf_unittest::lazy_imports::LazyMessage* release_lazy_message();
  166. ::protobuf_unittest::lazy_imports::LazyMessage* mutable_lazy_message();
  167. void set_allocated_lazy_message(::protobuf_unittest::lazy_imports::LazyMessage* lazy_message);
  168. void unsafe_arena_set_allocated_lazy_message(
  169. ::protobuf_unittest::lazy_imports::LazyMessage* lazy_message);
  170. ::protobuf_unittest::lazy_imports::LazyMessage* unsafe_arena_release_lazy_message();
  171. // @@protoc_insertion_point(class_scope:protobuf_unittest.lazy_imports.ImportedMessage)
  172. private:
  173. void set_has_lazy_message();
  174. void clear_has_lazy_message();
  175. ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
  176. template <typename T> friend class ::google::protobuf::Arena::InternalHelper;
  177. typedef void InternalArenaConstructable_;
  178. typedef void DestructorSkippable_;
  179. ::google::protobuf::internal::HasBits<1> _has_bits_;
  180. mutable ::google::protobuf::internal::CachedSize _cached_size_;
  181. ::protobuf_unittest::lazy_imports::LazyMessage* lazy_message_;
  182. friend struct ::protobuf_google_2fprotobuf_2funittest_5flazy_5fdependencies_2eproto::TableStruct;
  183. };
  184. // -------------------------------------------------------------------
  185. class MessageCustomOption : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:protobuf_unittest.lazy_imports.MessageCustomOption) */ {
  186. public:
  187. MessageCustomOption();
  188. virtual ~MessageCustomOption();
  189. MessageCustomOption(const MessageCustomOption& from);
  190. inline MessageCustomOption& operator=(const MessageCustomOption& from) {
  191. CopyFrom(from);
  192. return *this;
  193. }
  194. #if LANG_CXX11
  195. MessageCustomOption(MessageCustomOption&& from) noexcept
  196. : MessageCustomOption() {
  197. *this = ::std::move(from);
  198. }
  199. inline MessageCustomOption& operator=(MessageCustomOption&& from) noexcept {
  200. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  201. if (this != &from) InternalSwap(&from);
  202. } else {
  203. CopyFrom(from);
  204. }
  205. return *this;
  206. }
  207. #endif
  208. inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
  209. return _internal_metadata_.unknown_fields();
  210. }
  211. inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
  212. return _internal_metadata_.mutable_unknown_fields();
  213. }
  214. inline ::google::protobuf::Arena* GetArena() const final {
  215. return GetArenaNoVirtual();
  216. }
  217. inline void* GetMaybeArenaPointer() const final {
  218. return MaybeArenaPtr();
  219. }
  220. static const ::google::protobuf::Descriptor* descriptor();
  221. static const MessageCustomOption& default_instance();
  222. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  223. static inline const MessageCustomOption* internal_default_instance() {
  224. return reinterpret_cast<const MessageCustomOption*>(
  225. &_MessageCustomOption_default_instance_);
  226. }
  227. static constexpr int kIndexInFileMessages =
  228. 1;
  229. void UnsafeArenaSwap(MessageCustomOption* other);
  230. void Swap(MessageCustomOption* other);
  231. friend void swap(MessageCustomOption& a, MessageCustomOption& b) {
  232. a.Swap(&b);
  233. }
  234. // implements Message ----------------------------------------------
  235. inline MessageCustomOption* New() const final {
  236. return CreateMaybeMessage<MessageCustomOption>(NULL);
  237. }
  238. MessageCustomOption* New(::google::protobuf::Arena* arena) const final {
  239. return CreateMaybeMessage<MessageCustomOption>(arena);
  240. }
  241. void CopyFrom(const ::google::protobuf::Message& from) final;
  242. void MergeFrom(const ::google::protobuf::Message& from) final;
  243. void CopyFrom(const MessageCustomOption& from);
  244. void MergeFrom(const MessageCustomOption& from);
  245. void Clear() final;
  246. bool IsInitialized() const final;
  247. size_t ByteSizeLong() const final;
  248. bool MergePartialFromCodedStream(
  249. ::google::protobuf::io::CodedInputStream* input) final;
  250. void SerializeWithCachedSizes(
  251. ::google::protobuf::io::CodedOutputStream* output) const final;
  252. ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
  253. bool deterministic, ::google::protobuf::uint8* target) const final;
  254. int GetCachedSize() const final { return _cached_size_.Get(); }
  255. private:
  256. void SharedCtor();
  257. void SharedDtor();
  258. void SetCachedSize(int size) const final;
  259. void InternalSwap(MessageCustomOption* other);
  260. protected:
  261. explicit MessageCustomOption(::google::protobuf::Arena* arena);
  262. private:
  263. static void ArenaDtor(void* object);
  264. inline void RegisterArenaDtor(::google::protobuf::Arena* arena);
  265. private:
  266. inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
  267. return _internal_metadata_.arena();
  268. }
  269. inline void* MaybeArenaPtr() const {
  270. return _internal_metadata_.raw_arena_ptr();
  271. }
  272. public:
  273. ::google::protobuf::Metadata GetMetadata() const final;
  274. // nested types ----------------------------------------------------
  275. // accessors -------------------------------------------------------
  276. // @@protoc_insertion_point(class_scope:protobuf_unittest.lazy_imports.MessageCustomOption)
  277. private:
  278. ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
  279. template <typename T> friend class ::google::protobuf::Arena::InternalHelper;
  280. typedef void InternalArenaConstructable_;
  281. typedef void DestructorSkippable_;
  282. ::google::protobuf::internal::HasBits<1> _has_bits_;
  283. mutable ::google::protobuf::internal::CachedSize _cached_size_;
  284. friend struct ::protobuf_google_2fprotobuf_2funittest_5flazy_5fdependencies_2eproto::TableStruct;
  285. };
  286. // -------------------------------------------------------------------
  287. class MessageCustomOption2 : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:protobuf_unittest.lazy_imports.MessageCustomOption2) */ {
  288. public:
  289. MessageCustomOption2();
  290. virtual ~MessageCustomOption2();
  291. MessageCustomOption2(const MessageCustomOption2& from);
  292. inline MessageCustomOption2& operator=(const MessageCustomOption2& from) {
  293. CopyFrom(from);
  294. return *this;
  295. }
  296. #if LANG_CXX11
  297. MessageCustomOption2(MessageCustomOption2&& from) noexcept
  298. : MessageCustomOption2() {
  299. *this = ::std::move(from);
  300. }
  301. inline MessageCustomOption2& operator=(MessageCustomOption2&& from) noexcept {
  302. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  303. if (this != &from) InternalSwap(&from);
  304. } else {
  305. CopyFrom(from);
  306. }
  307. return *this;
  308. }
  309. #endif
  310. inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
  311. return _internal_metadata_.unknown_fields();
  312. }
  313. inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
  314. return _internal_metadata_.mutable_unknown_fields();
  315. }
  316. inline ::google::protobuf::Arena* GetArena() const final {
  317. return GetArenaNoVirtual();
  318. }
  319. inline void* GetMaybeArenaPointer() const final {
  320. return MaybeArenaPtr();
  321. }
  322. static const ::google::protobuf::Descriptor* descriptor();
  323. static const MessageCustomOption2& default_instance();
  324. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  325. static inline const MessageCustomOption2* internal_default_instance() {
  326. return reinterpret_cast<const MessageCustomOption2*>(
  327. &_MessageCustomOption2_default_instance_);
  328. }
  329. static constexpr int kIndexInFileMessages =
  330. 2;
  331. void UnsafeArenaSwap(MessageCustomOption2* other);
  332. void Swap(MessageCustomOption2* other);
  333. friend void swap(MessageCustomOption2& a, MessageCustomOption2& b) {
  334. a.Swap(&b);
  335. }
  336. // implements Message ----------------------------------------------
  337. inline MessageCustomOption2* New() const final {
  338. return CreateMaybeMessage<MessageCustomOption2>(NULL);
  339. }
  340. MessageCustomOption2* New(::google::protobuf::Arena* arena) const final {
  341. return CreateMaybeMessage<MessageCustomOption2>(arena);
  342. }
  343. void CopyFrom(const ::google::protobuf::Message& from) final;
  344. void MergeFrom(const ::google::protobuf::Message& from) final;
  345. void CopyFrom(const MessageCustomOption2& from);
  346. void MergeFrom(const MessageCustomOption2& from);
  347. void Clear() final;
  348. bool IsInitialized() const final;
  349. size_t ByteSizeLong() const final;
  350. bool MergePartialFromCodedStream(
  351. ::google::protobuf::io::CodedInputStream* input) final;
  352. void SerializeWithCachedSizes(
  353. ::google::protobuf::io::CodedOutputStream* output) const final;
  354. ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
  355. bool deterministic, ::google::protobuf::uint8* target) const final;
  356. int GetCachedSize() const final { return _cached_size_.Get(); }
  357. private:
  358. void SharedCtor();
  359. void SharedDtor();
  360. void SetCachedSize(int size) const final;
  361. void InternalSwap(MessageCustomOption2* other);
  362. protected:
  363. explicit MessageCustomOption2(::google::protobuf::Arena* arena);
  364. private:
  365. static void ArenaDtor(void* object);
  366. inline void RegisterArenaDtor(::google::protobuf::Arena* arena);
  367. private:
  368. inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
  369. return _internal_metadata_.arena();
  370. }
  371. inline void* MaybeArenaPtr() const {
  372. return _internal_metadata_.raw_arena_ptr();
  373. }
  374. public:
  375. ::google::protobuf::Metadata GetMetadata() const final;
  376. // nested types ----------------------------------------------------
  377. // accessors -------------------------------------------------------
  378. // @@protoc_insertion_point(class_scope:protobuf_unittest.lazy_imports.MessageCustomOption2)
  379. private:
  380. ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
  381. template <typename T> friend class ::google::protobuf::Arena::InternalHelper;
  382. typedef void InternalArenaConstructable_;
  383. typedef void DestructorSkippable_;
  384. ::google::protobuf::internal::HasBits<1> _has_bits_;
  385. mutable ::google::protobuf::internal::CachedSize _cached_size_;
  386. friend struct ::protobuf_google_2fprotobuf_2funittest_5flazy_5fdependencies_2eproto::TableStruct;
  387. };
  388. // ===================================================================
  389. // ===================================================================
  390. #ifdef __GNUC__
  391. #pragma GCC diagnostic push
  392. #pragma GCC diagnostic ignored "-Wstrict-aliasing"
  393. #endif // __GNUC__
  394. // ImportedMessage
  395. // optional .protobuf_unittest.lazy_imports.LazyMessage lazy_message = 1;
  396. inline bool ImportedMessage::has_lazy_message() const {
  397. return (_has_bits_[0] & 0x00000001u) != 0;
  398. }
  399. inline void ImportedMessage::set_has_lazy_message() {
  400. _has_bits_[0] |= 0x00000001u;
  401. }
  402. inline void ImportedMessage::clear_has_lazy_message() {
  403. _has_bits_[0] &= ~0x00000001u;
  404. }
  405. inline const ::protobuf_unittest::lazy_imports::LazyMessage& ImportedMessage::_internal_lazy_message() const {
  406. return *lazy_message_;
  407. }
  408. inline const ::protobuf_unittest::lazy_imports::LazyMessage& ImportedMessage::lazy_message() const {
  409. const ::protobuf_unittest::lazy_imports::LazyMessage* p = lazy_message_;
  410. // @@protoc_insertion_point(field_get:protobuf_unittest.lazy_imports.ImportedMessage.lazy_message)
  411. return p != NULL ? *p : *reinterpret_cast<const ::protobuf_unittest::lazy_imports::LazyMessage*>(
  412. &::protobuf_unittest::lazy_imports::_LazyMessage_default_instance_);
  413. }
  414. inline ::protobuf_unittest::lazy_imports::LazyMessage* ImportedMessage::release_lazy_message() {
  415. // @@protoc_insertion_point(field_release:protobuf_unittest.lazy_imports.ImportedMessage.lazy_message)
  416. clear_has_lazy_message();
  417. ::protobuf_unittest::lazy_imports::LazyMessage* temp = lazy_message_;
  418. if (GetArenaNoVirtual() != NULL) {
  419. temp = ::google::protobuf::internal::DuplicateIfNonNull(temp);
  420. }
  421. lazy_message_ = NULL;
  422. return temp;
  423. }
  424. inline ::protobuf_unittest::lazy_imports::LazyMessage* ImportedMessage::unsafe_arena_release_lazy_message() {
  425. // @@protoc_insertion_point(field_unsafe_arena_release:protobuf_unittest.lazy_imports.ImportedMessage.lazy_message)
  426. clear_has_lazy_message();
  427. ::protobuf_unittest::lazy_imports::LazyMessage* temp = lazy_message_;
  428. lazy_message_ = NULL;
  429. return temp;
  430. }
  431. inline ::protobuf_unittest::lazy_imports::LazyMessage* ImportedMessage::mutable_lazy_message() {
  432. set_has_lazy_message();
  433. if (lazy_message_ == NULL) {
  434. auto* p = CreateMaybeMessage<::protobuf_unittest::lazy_imports::LazyMessage>(GetArenaNoVirtual());
  435. lazy_message_ = p;
  436. }
  437. // @@protoc_insertion_point(field_mutable:protobuf_unittest.lazy_imports.ImportedMessage.lazy_message)
  438. return lazy_message_;
  439. }
  440. inline void ImportedMessage::set_allocated_lazy_message(::protobuf_unittest::lazy_imports::LazyMessage* lazy_message) {
  441. ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
  442. if (message_arena == NULL) {
  443. delete reinterpret_cast< ::google::protobuf::MessageLite*>(lazy_message_);
  444. }
  445. if (lazy_message) {
  446. ::google::protobuf::Arena* submessage_arena =
  447. reinterpret_cast<::google::protobuf::MessageLite*>(lazy_message)->GetArena();
  448. if (message_arena != submessage_arena) {
  449. lazy_message = ::google::protobuf::internal::GetOwnedMessage(
  450. message_arena, lazy_message, submessage_arena);
  451. }
  452. set_has_lazy_message();
  453. } else {
  454. clear_has_lazy_message();
  455. }
  456. lazy_message_ = lazy_message;
  457. // @@protoc_insertion_point(field_set_allocated:protobuf_unittest.lazy_imports.ImportedMessage.lazy_message)
  458. }
  459. // -------------------------------------------------------------------
  460. // MessageCustomOption
  461. // -------------------------------------------------------------------
  462. // MessageCustomOption2
  463. #ifdef __GNUC__
  464. #pragma GCC diagnostic pop
  465. #endif // __GNUC__
  466. // -------------------------------------------------------------------
  467. // -------------------------------------------------------------------
  468. // @@protoc_insertion_point(namespace_scope)
  469. } // namespace lazy_imports
  470. } // namespace protobuf_unittest
  471. // @@protoc_insertion_point(global_scope)
  472. #endif // PROTOBUF_INCLUDED_google_2fprotobuf_2funittest_5flazy_5fdependencies_2eproto