unittest_lazy_dependencies.pb.cc 36 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907
  1. // Generated by the protocol buffer compiler. DO NOT EDIT!
  2. // source: google/protobuf/unittest_lazy_dependencies.proto
  3. #include <google/protobuf/unittest_lazy_dependencies.pb.h>
  4. #include <algorithm>
  5. #include <google/protobuf/stubs/common.h>
  6. #include <google/protobuf/stubs/port.h>
  7. #include <google/protobuf/io/coded_stream.h>
  8. #include <google/protobuf/wire_format_lite_inl.h>
  9. #include <google/protobuf/descriptor.h>
  10. #include <google/protobuf/generated_message_reflection.h>
  11. #include <google/protobuf/reflection_ops.h>
  12. #include <google/protobuf/wire_format.h>
  13. // This is a temporary google only hack
  14. #ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
  15. #include "third_party/protobuf/version.h"
  16. #endif
  17. // @@protoc_insertion_point(includes)
  18. namespace protobuf_google_2fprotobuf_2funittest_5flazy_5fdependencies_5fcustom_5foption_2eproto {
  19. extern PROTOBUF_INTERNAL_EXPORT_protobuf_google_2fprotobuf_2funittest_5flazy_5fdependencies_5fcustom_5foption_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_LazyMessage;
  20. } // namespace protobuf_google_2fprotobuf_2funittest_5flazy_5fdependencies_5fcustom_5foption_2eproto
  21. namespace protobuf_unittest {
  22. namespace lazy_imports {
  23. class ImportedMessageDefaultTypeInternal {
  24. public:
  25. ::google::protobuf::internal::ExplicitlyConstructed<ImportedMessage>
  26. _instance;
  27. } _ImportedMessage_default_instance_;
  28. class MessageCustomOptionDefaultTypeInternal {
  29. public:
  30. ::google::protobuf::internal::ExplicitlyConstructed<MessageCustomOption>
  31. _instance;
  32. } _MessageCustomOption_default_instance_;
  33. class MessageCustomOption2DefaultTypeInternal {
  34. public:
  35. ::google::protobuf::internal::ExplicitlyConstructed<MessageCustomOption2>
  36. _instance;
  37. } _MessageCustomOption2_default_instance_;
  38. } // namespace lazy_imports
  39. } // namespace protobuf_unittest
  40. namespace protobuf_google_2fprotobuf_2funittest_5flazy_5fdependencies_2eproto {
  41. static void InitDefaultsImportedMessage() {
  42. GOOGLE_PROTOBUF_VERIFY_VERSION;
  43. {
  44. void* ptr = &::protobuf_unittest::lazy_imports::_ImportedMessage_default_instance_;
  45. new (ptr) ::protobuf_unittest::lazy_imports::ImportedMessage();
  46. ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
  47. }
  48. ::protobuf_unittest::lazy_imports::ImportedMessage::InitAsDefaultInstance();
  49. }
  50. ::google::protobuf::internal::SCCInfo<1> scc_info_ImportedMessage =
  51. {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsImportedMessage}, {
  52. &protobuf_google_2fprotobuf_2funittest_5flazy_5fdependencies_5fcustom_5foption_2eproto::scc_info_LazyMessage.base,}};
  53. static void InitDefaultsMessageCustomOption() {
  54. GOOGLE_PROTOBUF_VERIFY_VERSION;
  55. {
  56. void* ptr = &::protobuf_unittest::lazy_imports::_MessageCustomOption_default_instance_;
  57. new (ptr) ::protobuf_unittest::lazy_imports::MessageCustomOption();
  58. ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
  59. }
  60. ::protobuf_unittest::lazy_imports::MessageCustomOption::InitAsDefaultInstance();
  61. }
  62. ::google::protobuf::internal::SCCInfo<0> scc_info_MessageCustomOption =
  63. {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsMessageCustomOption}, {}};
  64. static void InitDefaultsMessageCustomOption2() {
  65. GOOGLE_PROTOBUF_VERIFY_VERSION;
  66. {
  67. void* ptr = &::protobuf_unittest::lazy_imports::_MessageCustomOption2_default_instance_;
  68. new (ptr) ::protobuf_unittest::lazy_imports::MessageCustomOption2();
  69. ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
  70. }
  71. ::protobuf_unittest::lazy_imports::MessageCustomOption2::InitAsDefaultInstance();
  72. }
  73. ::google::protobuf::internal::SCCInfo<0> scc_info_MessageCustomOption2 =
  74. {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsMessageCustomOption2}, {}};
  75. void InitDefaults() {
  76. ::google::protobuf::internal::InitSCC(&scc_info_ImportedMessage.base);
  77. ::google::protobuf::internal::InitSCC(&scc_info_MessageCustomOption.base);
  78. ::google::protobuf::internal::InitSCC(&scc_info_MessageCustomOption2.base);
  79. }
  80. ::google::protobuf::Metadata file_level_metadata[3];
  81. const ::google::protobuf::uint32 TableStruct::offsets[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
  82. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::lazy_imports::ImportedMessage, _has_bits_),
  83. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::lazy_imports::ImportedMessage, _internal_metadata_),
  84. ~0u, // no _extensions_
  85. ~0u, // no _oneof_case_
  86. ~0u, // no _weak_field_map_
  87. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::lazy_imports::ImportedMessage, lazy_message_),
  88. 0,
  89. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::lazy_imports::MessageCustomOption, _has_bits_),
  90. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::lazy_imports::MessageCustomOption, _internal_metadata_),
  91. ~0u, // no _extensions_
  92. ~0u, // no _oneof_case_
  93. ~0u, // no _weak_field_map_
  94. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::lazy_imports::MessageCustomOption2, _has_bits_),
  95. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::lazy_imports::MessageCustomOption2, _internal_metadata_),
  96. ~0u, // no _extensions_
  97. ~0u, // no _oneof_case_
  98. ~0u, // no _weak_field_map_
  99. };
  100. static const ::google::protobuf::internal::MigrationSchema schemas[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
  101. { 0, 6, sizeof(::protobuf_unittest::lazy_imports::ImportedMessage)},
  102. { 7, 12, sizeof(::protobuf_unittest::lazy_imports::MessageCustomOption)},
  103. { 12, 17, sizeof(::protobuf_unittest::lazy_imports::MessageCustomOption2)},
  104. };
  105. static ::google::protobuf::Message const * const file_default_instances[] = {
  106. reinterpret_cast<const ::google::protobuf::Message*>(&::protobuf_unittest::lazy_imports::_ImportedMessage_default_instance_),
  107. reinterpret_cast<const ::google::protobuf::Message*>(&::protobuf_unittest::lazy_imports::_MessageCustomOption_default_instance_),
  108. reinterpret_cast<const ::google::protobuf::Message*>(&::protobuf_unittest::lazy_imports::_MessageCustomOption2_default_instance_),
  109. };
  110. void protobuf_AssignDescriptors() {
  111. AddDescriptors();
  112. AssignDescriptors(
  113. "google/protobuf/unittest_lazy_dependencies.proto", schemas, file_default_instances, TableStruct::offsets,
  114. file_level_metadata, NULL, NULL);
  115. }
  116. void protobuf_AssignDescriptorsOnce() {
  117. static ::google::protobuf::internal::once_flag once;
  118. ::google::protobuf::internal::call_once(once, protobuf_AssignDescriptors);
  119. }
  120. void protobuf_RegisterTypes(const ::std::string&) GOOGLE_PROTOBUF_ATTRIBUTE_COLD;
  121. void protobuf_RegisterTypes(const ::std::string&) {
  122. protobuf_AssignDescriptorsOnce();
  123. ::google::protobuf::internal::RegisterAllTypes(file_level_metadata, 3);
  124. }
  125. void AddDescriptorsImpl() {
  126. InitDefaults();
  127. static const char descriptor[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
  128. "\n0google/protobuf/unittest_lazy_dependen"
  129. "cies.proto\022\036protobuf_unittest.lazy_impor"
  130. "ts\032>google/protobuf/unittest_lazy_depend"
  131. "encies_custom_option.proto\"T\n\017ImportedMe"
  132. "ssage\022A\n\014lazy_message\030\001 \001(\0132+.protobuf_u"
  133. "nittest.lazy_imports.LazyMessage\"\025\n\023Mess"
  134. "ageCustomOption\"\036\n\024MessageCustomOption2:"
  135. "\006\370\376\331\220\004\000B(B\030UnittestLazyImportsProtoH\001\200\001\001"
  136. "\210\001\001\220\001\001\370\001\001"
  137. };
  138. ::google::protobuf::DescriptorPool::InternalAddGeneratedFile(
  139. descriptor, 329);
  140. ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile(
  141. "google/protobuf/unittest_lazy_dependencies.proto", &protobuf_RegisterTypes);
  142. ::protobuf_google_2fprotobuf_2funittest_5flazy_5fdependencies_5fcustom_5foption_2eproto::AddDescriptors();
  143. }
  144. void AddDescriptors() {
  145. static ::google::protobuf::internal::once_flag once;
  146. ::google::protobuf::internal::call_once(once, AddDescriptorsImpl);
  147. }
  148. // Force AddDescriptors() to be called at dynamic initialization time.
  149. struct StaticDescriptorInitializer {
  150. StaticDescriptorInitializer() {
  151. AddDescriptors();
  152. }
  153. } static_descriptor_initializer;
  154. } // namespace protobuf_google_2fprotobuf_2funittest_5flazy_5fdependencies_2eproto
  155. namespace protobuf_unittest {
  156. namespace lazy_imports {
  157. // ===================================================================
  158. void ImportedMessage::InitAsDefaultInstance() {
  159. ::protobuf_unittest::lazy_imports::_ImportedMessage_default_instance_._instance.get_mutable()->lazy_message_ = const_cast< ::protobuf_unittest::lazy_imports::LazyMessage*>(
  160. ::protobuf_unittest::lazy_imports::LazyMessage::internal_default_instance());
  161. }
  162. void ImportedMessage::unsafe_arena_set_allocated_lazy_message(
  163. ::protobuf_unittest::lazy_imports::LazyMessage* lazy_message) {
  164. if (GetArenaNoVirtual() == NULL) {
  165. delete lazy_message_;
  166. }
  167. lazy_message_ = lazy_message;
  168. if (lazy_message) {
  169. set_has_lazy_message();
  170. } else {
  171. clear_has_lazy_message();
  172. }
  173. // @@protoc_insertion_point(field_unsafe_arena_set_allocated:protobuf_unittest.lazy_imports.ImportedMessage.lazy_message)
  174. }
  175. void ImportedMessage::clear_lazy_message() {
  176. if (lazy_message_ != NULL) lazy_message_->Clear();
  177. clear_has_lazy_message();
  178. }
  179. #if !defined(_MSC_VER) || _MSC_VER >= 1900
  180. const int ImportedMessage::kLazyMessageFieldNumber;
  181. #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
  182. ImportedMessage::ImportedMessage()
  183. : ::google::protobuf::Message(), _internal_metadata_(NULL) {
  184. ::google::protobuf::internal::InitSCC(
  185. &protobuf_google_2fprotobuf_2funittest_5flazy_5fdependencies_2eproto::scc_info_ImportedMessage.base);
  186. SharedCtor();
  187. // @@protoc_insertion_point(constructor:protobuf_unittest.lazy_imports.ImportedMessage)
  188. }
  189. ImportedMessage::ImportedMessage(::google::protobuf::Arena* arena)
  190. : ::google::protobuf::Message(),
  191. _internal_metadata_(arena) {
  192. ::google::protobuf::internal::InitSCC(&protobuf_google_2fprotobuf_2funittest_5flazy_5fdependencies_2eproto::scc_info_ImportedMessage.base);
  193. SharedCtor();
  194. RegisterArenaDtor(arena);
  195. // @@protoc_insertion_point(arena_constructor:protobuf_unittest.lazy_imports.ImportedMessage)
  196. }
  197. ImportedMessage::ImportedMessage(const ImportedMessage& from)
  198. : ::google::protobuf::Message(),
  199. _internal_metadata_(NULL),
  200. _has_bits_(from._has_bits_) {
  201. _internal_metadata_.MergeFrom(from._internal_metadata_);
  202. if (from.has_lazy_message()) {
  203. lazy_message_ = new ::protobuf_unittest::lazy_imports::LazyMessage(*from.lazy_message_);
  204. } else {
  205. lazy_message_ = NULL;
  206. }
  207. // @@protoc_insertion_point(copy_constructor:protobuf_unittest.lazy_imports.ImportedMessage)
  208. }
  209. void ImportedMessage::SharedCtor() {
  210. lazy_message_ = NULL;
  211. }
  212. ImportedMessage::~ImportedMessage() {
  213. // @@protoc_insertion_point(destructor:protobuf_unittest.lazy_imports.ImportedMessage)
  214. SharedDtor();
  215. }
  216. void ImportedMessage::SharedDtor() {
  217. GOOGLE_DCHECK(GetArenaNoVirtual() == NULL);
  218. if (this != internal_default_instance()) delete lazy_message_;
  219. }
  220. void ImportedMessage::ArenaDtor(void* object) {
  221. ImportedMessage* _this = reinterpret_cast< ImportedMessage* >(object);
  222. (void)_this;
  223. }
  224. void ImportedMessage::RegisterArenaDtor(::google::protobuf::Arena* arena) {
  225. }
  226. void ImportedMessage::SetCachedSize(int size) const {
  227. _cached_size_.Set(size);
  228. }
  229. const ::google::protobuf::Descriptor* ImportedMessage::descriptor() {
  230. ::protobuf_google_2fprotobuf_2funittest_5flazy_5fdependencies_2eproto::protobuf_AssignDescriptorsOnce();
  231. return ::protobuf_google_2fprotobuf_2funittest_5flazy_5fdependencies_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
  232. }
  233. const ImportedMessage& ImportedMessage::default_instance() {
  234. ::google::protobuf::internal::InitSCC(&protobuf_google_2fprotobuf_2funittest_5flazy_5fdependencies_2eproto::scc_info_ImportedMessage.base);
  235. return *internal_default_instance();
  236. }
  237. void ImportedMessage::Clear() {
  238. // @@protoc_insertion_point(message_clear_start:protobuf_unittest.lazy_imports.ImportedMessage)
  239. ::google::protobuf::uint32 cached_has_bits = 0;
  240. // Prevent compiler warnings about cached_has_bits being unused
  241. (void) cached_has_bits;
  242. cached_has_bits = _has_bits_[0];
  243. if (cached_has_bits & 0x00000001u) {
  244. GOOGLE_DCHECK(lazy_message_ != NULL);
  245. lazy_message_->Clear();
  246. }
  247. _has_bits_.Clear();
  248. _internal_metadata_.Clear();
  249. }
  250. bool ImportedMessage::MergePartialFromCodedStream(
  251. ::google::protobuf::io::CodedInputStream* input) {
  252. #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
  253. ::google::protobuf::uint32 tag;
  254. // @@protoc_insertion_point(parse_start:protobuf_unittest.lazy_imports.ImportedMessage)
  255. for (;;) {
  256. ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
  257. tag = p.first;
  258. if (!p.second) goto handle_unusual;
  259. switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
  260. // optional .protobuf_unittest.lazy_imports.LazyMessage lazy_message = 1;
  261. case 1: {
  262. if (static_cast< ::google::protobuf::uint8>(tag) ==
  263. static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
  264. DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
  265. input, mutable_lazy_message()));
  266. } else {
  267. goto handle_unusual;
  268. }
  269. break;
  270. }
  271. default: {
  272. handle_unusual:
  273. if (tag == 0) {
  274. goto success;
  275. }
  276. DO_(::google::protobuf::internal::WireFormat::SkipField(
  277. input, tag, _internal_metadata_.mutable_unknown_fields()));
  278. break;
  279. }
  280. }
  281. }
  282. success:
  283. // @@protoc_insertion_point(parse_success:protobuf_unittest.lazy_imports.ImportedMessage)
  284. return true;
  285. failure:
  286. // @@protoc_insertion_point(parse_failure:protobuf_unittest.lazy_imports.ImportedMessage)
  287. return false;
  288. #undef DO_
  289. }
  290. void ImportedMessage::SerializeWithCachedSizes(
  291. ::google::protobuf::io::CodedOutputStream* output) const {
  292. // @@protoc_insertion_point(serialize_start:protobuf_unittest.lazy_imports.ImportedMessage)
  293. ::google::protobuf::uint32 cached_has_bits = 0;
  294. (void) cached_has_bits;
  295. cached_has_bits = _has_bits_[0];
  296. // optional .protobuf_unittest.lazy_imports.LazyMessage lazy_message = 1;
  297. if (cached_has_bits & 0x00000001u) {
  298. ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
  299. 1, this->_internal_lazy_message(), output);
  300. }
  301. if (_internal_metadata_.have_unknown_fields()) {
  302. ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
  303. _internal_metadata_.unknown_fields(), output);
  304. }
  305. // @@protoc_insertion_point(serialize_end:protobuf_unittest.lazy_imports.ImportedMessage)
  306. }
  307. ::google::protobuf::uint8* ImportedMessage::InternalSerializeWithCachedSizesToArray(
  308. bool deterministic, ::google::protobuf::uint8* target) const {
  309. (void)deterministic; // Unused
  310. // @@protoc_insertion_point(serialize_to_array_start:protobuf_unittest.lazy_imports.ImportedMessage)
  311. ::google::protobuf::uint32 cached_has_bits = 0;
  312. (void) cached_has_bits;
  313. cached_has_bits = _has_bits_[0];
  314. // optional .protobuf_unittest.lazy_imports.LazyMessage lazy_message = 1;
  315. if (cached_has_bits & 0x00000001u) {
  316. target = ::google::protobuf::internal::WireFormatLite::
  317. InternalWriteMessageToArray(
  318. 1, this->_internal_lazy_message(), deterministic, target);
  319. }
  320. if (_internal_metadata_.have_unknown_fields()) {
  321. target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
  322. _internal_metadata_.unknown_fields(), target);
  323. }
  324. // @@protoc_insertion_point(serialize_to_array_end:protobuf_unittest.lazy_imports.ImportedMessage)
  325. return target;
  326. }
  327. size_t ImportedMessage::ByteSizeLong() const {
  328. // @@protoc_insertion_point(message_byte_size_start:protobuf_unittest.lazy_imports.ImportedMessage)
  329. size_t total_size = 0;
  330. if (_internal_metadata_.have_unknown_fields()) {
  331. total_size +=
  332. ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
  333. _internal_metadata_.unknown_fields());
  334. }
  335. // optional .protobuf_unittest.lazy_imports.LazyMessage lazy_message = 1;
  336. if (has_lazy_message()) {
  337. total_size += 1 +
  338. ::google::protobuf::internal::WireFormatLite::MessageSize(
  339. *lazy_message_);
  340. }
  341. int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
  342. SetCachedSize(cached_size);
  343. return total_size;
  344. }
  345. void ImportedMessage::MergeFrom(const ::google::protobuf::Message& from) {
  346. // @@protoc_insertion_point(generalized_merge_from_start:protobuf_unittest.lazy_imports.ImportedMessage)
  347. GOOGLE_DCHECK_NE(&from, this);
  348. const ImportedMessage* source =
  349. ::google::protobuf::internal::DynamicCastToGenerated<const ImportedMessage>(
  350. &from);
  351. if (source == NULL) {
  352. // @@protoc_insertion_point(generalized_merge_from_cast_fail:protobuf_unittest.lazy_imports.ImportedMessage)
  353. ::google::protobuf::internal::ReflectionOps::Merge(from, this);
  354. } else {
  355. // @@protoc_insertion_point(generalized_merge_from_cast_success:protobuf_unittest.lazy_imports.ImportedMessage)
  356. MergeFrom(*source);
  357. }
  358. }
  359. void ImportedMessage::MergeFrom(const ImportedMessage& from) {
  360. // @@protoc_insertion_point(class_specific_merge_from_start:protobuf_unittest.lazy_imports.ImportedMessage)
  361. GOOGLE_DCHECK_NE(&from, this);
  362. _internal_metadata_.MergeFrom(from._internal_metadata_);
  363. ::google::protobuf::uint32 cached_has_bits = 0;
  364. (void) cached_has_bits;
  365. if (from.has_lazy_message()) {
  366. mutable_lazy_message()->::protobuf_unittest::lazy_imports::LazyMessage::MergeFrom(from.lazy_message());
  367. }
  368. }
  369. void ImportedMessage::CopyFrom(const ::google::protobuf::Message& from) {
  370. // @@protoc_insertion_point(generalized_copy_from_start:protobuf_unittest.lazy_imports.ImportedMessage)
  371. if (&from == this) return;
  372. Clear();
  373. MergeFrom(from);
  374. }
  375. void ImportedMessage::CopyFrom(const ImportedMessage& from) {
  376. // @@protoc_insertion_point(class_specific_copy_from_start:protobuf_unittest.lazy_imports.ImportedMessage)
  377. if (&from == this) return;
  378. Clear();
  379. MergeFrom(from);
  380. }
  381. bool ImportedMessage::IsInitialized() const {
  382. return true;
  383. }
  384. void ImportedMessage::Swap(ImportedMessage* other) {
  385. if (other == this) return;
  386. if (GetArenaNoVirtual() == other->GetArenaNoVirtual()) {
  387. InternalSwap(other);
  388. } else {
  389. ImportedMessage* temp = New(GetArenaNoVirtual());
  390. temp->MergeFrom(*other);
  391. other->CopyFrom(*this);
  392. InternalSwap(temp);
  393. if (GetArenaNoVirtual() == NULL) {
  394. delete temp;
  395. }
  396. }
  397. }
  398. void ImportedMessage::UnsafeArenaSwap(ImportedMessage* other) {
  399. if (other == this) return;
  400. GOOGLE_DCHECK(GetArenaNoVirtual() == other->GetArenaNoVirtual());
  401. InternalSwap(other);
  402. }
  403. void ImportedMessage::InternalSwap(ImportedMessage* other) {
  404. using std::swap;
  405. swap(lazy_message_, other->lazy_message_);
  406. swap(_has_bits_[0], other->_has_bits_[0]);
  407. _internal_metadata_.Swap(&other->_internal_metadata_);
  408. }
  409. ::google::protobuf::Metadata ImportedMessage::GetMetadata() const {
  410. protobuf_google_2fprotobuf_2funittest_5flazy_5fdependencies_2eproto::protobuf_AssignDescriptorsOnce();
  411. return ::protobuf_google_2fprotobuf_2funittest_5flazy_5fdependencies_2eproto::file_level_metadata[kIndexInFileMessages];
  412. }
  413. // ===================================================================
  414. void MessageCustomOption::InitAsDefaultInstance() {
  415. }
  416. #if !defined(_MSC_VER) || _MSC_VER >= 1900
  417. #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
  418. MessageCustomOption::MessageCustomOption()
  419. : ::google::protobuf::Message(), _internal_metadata_(NULL) {
  420. ::google::protobuf::internal::InitSCC(
  421. &protobuf_google_2fprotobuf_2funittest_5flazy_5fdependencies_2eproto::scc_info_MessageCustomOption.base);
  422. SharedCtor();
  423. // @@protoc_insertion_point(constructor:protobuf_unittest.lazy_imports.MessageCustomOption)
  424. }
  425. MessageCustomOption::MessageCustomOption(::google::protobuf::Arena* arena)
  426. : ::google::protobuf::Message(),
  427. _internal_metadata_(arena) {
  428. ::google::protobuf::internal::InitSCC(&protobuf_google_2fprotobuf_2funittest_5flazy_5fdependencies_2eproto::scc_info_MessageCustomOption.base);
  429. SharedCtor();
  430. RegisterArenaDtor(arena);
  431. // @@protoc_insertion_point(arena_constructor:protobuf_unittest.lazy_imports.MessageCustomOption)
  432. }
  433. MessageCustomOption::MessageCustomOption(const MessageCustomOption& from)
  434. : ::google::protobuf::Message(),
  435. _internal_metadata_(NULL),
  436. _has_bits_(from._has_bits_) {
  437. _internal_metadata_.MergeFrom(from._internal_metadata_);
  438. // @@protoc_insertion_point(copy_constructor:protobuf_unittest.lazy_imports.MessageCustomOption)
  439. }
  440. void MessageCustomOption::SharedCtor() {
  441. }
  442. MessageCustomOption::~MessageCustomOption() {
  443. // @@protoc_insertion_point(destructor:protobuf_unittest.lazy_imports.MessageCustomOption)
  444. SharedDtor();
  445. }
  446. void MessageCustomOption::SharedDtor() {
  447. GOOGLE_DCHECK(GetArenaNoVirtual() == NULL);
  448. }
  449. void MessageCustomOption::ArenaDtor(void* object) {
  450. MessageCustomOption* _this = reinterpret_cast< MessageCustomOption* >(object);
  451. (void)_this;
  452. }
  453. void MessageCustomOption::RegisterArenaDtor(::google::protobuf::Arena* arena) {
  454. }
  455. void MessageCustomOption::SetCachedSize(int size) const {
  456. _cached_size_.Set(size);
  457. }
  458. const ::google::protobuf::Descriptor* MessageCustomOption::descriptor() {
  459. ::protobuf_google_2fprotobuf_2funittest_5flazy_5fdependencies_2eproto::protobuf_AssignDescriptorsOnce();
  460. return ::protobuf_google_2fprotobuf_2funittest_5flazy_5fdependencies_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
  461. }
  462. const MessageCustomOption& MessageCustomOption::default_instance() {
  463. ::google::protobuf::internal::InitSCC(&protobuf_google_2fprotobuf_2funittest_5flazy_5fdependencies_2eproto::scc_info_MessageCustomOption.base);
  464. return *internal_default_instance();
  465. }
  466. void MessageCustomOption::Clear() {
  467. // @@protoc_insertion_point(message_clear_start:protobuf_unittest.lazy_imports.MessageCustomOption)
  468. ::google::protobuf::uint32 cached_has_bits = 0;
  469. // Prevent compiler warnings about cached_has_bits being unused
  470. (void) cached_has_bits;
  471. _has_bits_.Clear();
  472. _internal_metadata_.Clear();
  473. }
  474. bool MessageCustomOption::MergePartialFromCodedStream(
  475. ::google::protobuf::io::CodedInputStream* input) {
  476. #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
  477. ::google::protobuf::uint32 tag;
  478. // @@protoc_insertion_point(parse_start:protobuf_unittest.lazy_imports.MessageCustomOption)
  479. for (;;) {
  480. ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
  481. tag = p.first;
  482. if (!p.second) goto handle_unusual;
  483. handle_unusual:
  484. if (tag == 0) {
  485. goto success;
  486. }
  487. DO_(::google::protobuf::internal::WireFormat::SkipField(
  488. input, tag, _internal_metadata_.mutable_unknown_fields()));
  489. }
  490. success:
  491. // @@protoc_insertion_point(parse_success:protobuf_unittest.lazy_imports.MessageCustomOption)
  492. return true;
  493. failure:
  494. // @@protoc_insertion_point(parse_failure:protobuf_unittest.lazy_imports.MessageCustomOption)
  495. return false;
  496. #undef DO_
  497. }
  498. void MessageCustomOption::SerializeWithCachedSizes(
  499. ::google::protobuf::io::CodedOutputStream* output) const {
  500. // @@protoc_insertion_point(serialize_start:protobuf_unittest.lazy_imports.MessageCustomOption)
  501. ::google::protobuf::uint32 cached_has_bits = 0;
  502. (void) cached_has_bits;
  503. if (_internal_metadata_.have_unknown_fields()) {
  504. ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
  505. _internal_metadata_.unknown_fields(), output);
  506. }
  507. // @@protoc_insertion_point(serialize_end:protobuf_unittest.lazy_imports.MessageCustomOption)
  508. }
  509. ::google::protobuf::uint8* MessageCustomOption::InternalSerializeWithCachedSizesToArray(
  510. bool deterministic, ::google::protobuf::uint8* target) const {
  511. (void)deterministic; // Unused
  512. // @@protoc_insertion_point(serialize_to_array_start:protobuf_unittest.lazy_imports.MessageCustomOption)
  513. ::google::protobuf::uint32 cached_has_bits = 0;
  514. (void) cached_has_bits;
  515. if (_internal_metadata_.have_unknown_fields()) {
  516. target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
  517. _internal_metadata_.unknown_fields(), target);
  518. }
  519. // @@protoc_insertion_point(serialize_to_array_end:protobuf_unittest.lazy_imports.MessageCustomOption)
  520. return target;
  521. }
  522. size_t MessageCustomOption::ByteSizeLong() const {
  523. // @@protoc_insertion_point(message_byte_size_start:protobuf_unittest.lazy_imports.MessageCustomOption)
  524. size_t total_size = 0;
  525. if (_internal_metadata_.have_unknown_fields()) {
  526. total_size +=
  527. ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
  528. _internal_metadata_.unknown_fields());
  529. }
  530. int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
  531. SetCachedSize(cached_size);
  532. return total_size;
  533. }
  534. void MessageCustomOption::MergeFrom(const ::google::protobuf::Message& from) {
  535. // @@protoc_insertion_point(generalized_merge_from_start:protobuf_unittest.lazy_imports.MessageCustomOption)
  536. GOOGLE_DCHECK_NE(&from, this);
  537. const MessageCustomOption* source =
  538. ::google::protobuf::internal::DynamicCastToGenerated<const MessageCustomOption>(
  539. &from);
  540. if (source == NULL) {
  541. // @@protoc_insertion_point(generalized_merge_from_cast_fail:protobuf_unittest.lazy_imports.MessageCustomOption)
  542. ::google::protobuf::internal::ReflectionOps::Merge(from, this);
  543. } else {
  544. // @@protoc_insertion_point(generalized_merge_from_cast_success:protobuf_unittest.lazy_imports.MessageCustomOption)
  545. MergeFrom(*source);
  546. }
  547. }
  548. void MessageCustomOption::MergeFrom(const MessageCustomOption& from) {
  549. // @@protoc_insertion_point(class_specific_merge_from_start:protobuf_unittest.lazy_imports.MessageCustomOption)
  550. GOOGLE_DCHECK_NE(&from, this);
  551. _internal_metadata_.MergeFrom(from._internal_metadata_);
  552. ::google::protobuf::uint32 cached_has_bits = 0;
  553. (void) cached_has_bits;
  554. }
  555. void MessageCustomOption::CopyFrom(const ::google::protobuf::Message& from) {
  556. // @@protoc_insertion_point(generalized_copy_from_start:protobuf_unittest.lazy_imports.MessageCustomOption)
  557. if (&from == this) return;
  558. Clear();
  559. MergeFrom(from);
  560. }
  561. void MessageCustomOption::CopyFrom(const MessageCustomOption& from) {
  562. // @@protoc_insertion_point(class_specific_copy_from_start:protobuf_unittest.lazy_imports.MessageCustomOption)
  563. if (&from == this) return;
  564. Clear();
  565. MergeFrom(from);
  566. }
  567. bool MessageCustomOption::IsInitialized() const {
  568. return true;
  569. }
  570. void MessageCustomOption::Swap(MessageCustomOption* other) {
  571. if (other == this) return;
  572. if (GetArenaNoVirtual() == other->GetArenaNoVirtual()) {
  573. InternalSwap(other);
  574. } else {
  575. MessageCustomOption* temp = New(GetArenaNoVirtual());
  576. temp->MergeFrom(*other);
  577. other->CopyFrom(*this);
  578. InternalSwap(temp);
  579. if (GetArenaNoVirtual() == NULL) {
  580. delete temp;
  581. }
  582. }
  583. }
  584. void MessageCustomOption::UnsafeArenaSwap(MessageCustomOption* other) {
  585. if (other == this) return;
  586. GOOGLE_DCHECK(GetArenaNoVirtual() == other->GetArenaNoVirtual());
  587. InternalSwap(other);
  588. }
  589. void MessageCustomOption::InternalSwap(MessageCustomOption* other) {
  590. using std::swap;
  591. swap(_has_bits_[0], other->_has_bits_[0]);
  592. _internal_metadata_.Swap(&other->_internal_metadata_);
  593. }
  594. ::google::protobuf::Metadata MessageCustomOption::GetMetadata() const {
  595. protobuf_google_2fprotobuf_2funittest_5flazy_5fdependencies_2eproto::protobuf_AssignDescriptorsOnce();
  596. return ::protobuf_google_2fprotobuf_2funittest_5flazy_5fdependencies_2eproto::file_level_metadata[kIndexInFileMessages];
  597. }
  598. // ===================================================================
  599. void MessageCustomOption2::InitAsDefaultInstance() {
  600. }
  601. #if !defined(_MSC_VER) || _MSC_VER >= 1900
  602. #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
  603. MessageCustomOption2::MessageCustomOption2()
  604. : ::google::protobuf::Message(), _internal_metadata_(NULL) {
  605. ::google::protobuf::internal::InitSCC(
  606. &protobuf_google_2fprotobuf_2funittest_5flazy_5fdependencies_2eproto::scc_info_MessageCustomOption2.base);
  607. SharedCtor();
  608. // @@protoc_insertion_point(constructor:protobuf_unittest.lazy_imports.MessageCustomOption2)
  609. }
  610. MessageCustomOption2::MessageCustomOption2(::google::protobuf::Arena* arena)
  611. : ::google::protobuf::Message(),
  612. _internal_metadata_(arena) {
  613. ::google::protobuf::internal::InitSCC(&protobuf_google_2fprotobuf_2funittest_5flazy_5fdependencies_2eproto::scc_info_MessageCustomOption2.base);
  614. SharedCtor();
  615. RegisterArenaDtor(arena);
  616. // @@protoc_insertion_point(arena_constructor:protobuf_unittest.lazy_imports.MessageCustomOption2)
  617. }
  618. MessageCustomOption2::MessageCustomOption2(const MessageCustomOption2& from)
  619. : ::google::protobuf::Message(),
  620. _internal_metadata_(NULL),
  621. _has_bits_(from._has_bits_) {
  622. _internal_metadata_.MergeFrom(from._internal_metadata_);
  623. // @@protoc_insertion_point(copy_constructor:protobuf_unittest.lazy_imports.MessageCustomOption2)
  624. }
  625. void MessageCustomOption2::SharedCtor() {
  626. }
  627. MessageCustomOption2::~MessageCustomOption2() {
  628. // @@protoc_insertion_point(destructor:protobuf_unittest.lazy_imports.MessageCustomOption2)
  629. SharedDtor();
  630. }
  631. void MessageCustomOption2::SharedDtor() {
  632. GOOGLE_DCHECK(GetArenaNoVirtual() == NULL);
  633. }
  634. void MessageCustomOption2::ArenaDtor(void* object) {
  635. MessageCustomOption2* _this = reinterpret_cast< MessageCustomOption2* >(object);
  636. (void)_this;
  637. }
  638. void MessageCustomOption2::RegisterArenaDtor(::google::protobuf::Arena* arena) {
  639. }
  640. void MessageCustomOption2::SetCachedSize(int size) const {
  641. _cached_size_.Set(size);
  642. }
  643. const ::google::protobuf::Descriptor* MessageCustomOption2::descriptor() {
  644. ::protobuf_google_2fprotobuf_2funittest_5flazy_5fdependencies_2eproto::protobuf_AssignDescriptorsOnce();
  645. return ::protobuf_google_2fprotobuf_2funittest_5flazy_5fdependencies_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
  646. }
  647. const MessageCustomOption2& MessageCustomOption2::default_instance() {
  648. ::google::protobuf::internal::InitSCC(&protobuf_google_2fprotobuf_2funittest_5flazy_5fdependencies_2eproto::scc_info_MessageCustomOption2.base);
  649. return *internal_default_instance();
  650. }
  651. void MessageCustomOption2::Clear() {
  652. // @@protoc_insertion_point(message_clear_start:protobuf_unittest.lazy_imports.MessageCustomOption2)
  653. ::google::protobuf::uint32 cached_has_bits = 0;
  654. // Prevent compiler warnings about cached_has_bits being unused
  655. (void) cached_has_bits;
  656. _has_bits_.Clear();
  657. _internal_metadata_.Clear();
  658. }
  659. bool MessageCustomOption2::MergePartialFromCodedStream(
  660. ::google::protobuf::io::CodedInputStream* input) {
  661. #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
  662. ::google::protobuf::uint32 tag;
  663. // @@protoc_insertion_point(parse_start:protobuf_unittest.lazy_imports.MessageCustomOption2)
  664. for (;;) {
  665. ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
  666. tag = p.first;
  667. if (!p.second) goto handle_unusual;
  668. handle_unusual:
  669. if (tag == 0) {
  670. goto success;
  671. }
  672. DO_(::google::protobuf::internal::WireFormat::SkipField(
  673. input, tag, _internal_metadata_.mutable_unknown_fields()));
  674. }
  675. success:
  676. // @@protoc_insertion_point(parse_success:protobuf_unittest.lazy_imports.MessageCustomOption2)
  677. return true;
  678. failure:
  679. // @@protoc_insertion_point(parse_failure:protobuf_unittest.lazy_imports.MessageCustomOption2)
  680. return false;
  681. #undef DO_
  682. }
  683. void MessageCustomOption2::SerializeWithCachedSizes(
  684. ::google::protobuf::io::CodedOutputStream* output) const {
  685. // @@protoc_insertion_point(serialize_start:protobuf_unittest.lazy_imports.MessageCustomOption2)
  686. ::google::protobuf::uint32 cached_has_bits = 0;
  687. (void) cached_has_bits;
  688. if (_internal_metadata_.have_unknown_fields()) {
  689. ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
  690. _internal_metadata_.unknown_fields(), output);
  691. }
  692. // @@protoc_insertion_point(serialize_end:protobuf_unittest.lazy_imports.MessageCustomOption2)
  693. }
  694. ::google::protobuf::uint8* MessageCustomOption2::InternalSerializeWithCachedSizesToArray(
  695. bool deterministic, ::google::protobuf::uint8* target) const {
  696. (void)deterministic; // Unused
  697. // @@protoc_insertion_point(serialize_to_array_start:protobuf_unittest.lazy_imports.MessageCustomOption2)
  698. ::google::protobuf::uint32 cached_has_bits = 0;
  699. (void) cached_has_bits;
  700. if (_internal_metadata_.have_unknown_fields()) {
  701. target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
  702. _internal_metadata_.unknown_fields(), target);
  703. }
  704. // @@protoc_insertion_point(serialize_to_array_end:protobuf_unittest.lazy_imports.MessageCustomOption2)
  705. return target;
  706. }
  707. size_t MessageCustomOption2::ByteSizeLong() const {
  708. // @@protoc_insertion_point(message_byte_size_start:protobuf_unittest.lazy_imports.MessageCustomOption2)
  709. size_t total_size = 0;
  710. if (_internal_metadata_.have_unknown_fields()) {
  711. total_size +=
  712. ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
  713. _internal_metadata_.unknown_fields());
  714. }
  715. int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
  716. SetCachedSize(cached_size);
  717. return total_size;
  718. }
  719. void MessageCustomOption2::MergeFrom(const ::google::protobuf::Message& from) {
  720. // @@protoc_insertion_point(generalized_merge_from_start:protobuf_unittest.lazy_imports.MessageCustomOption2)
  721. GOOGLE_DCHECK_NE(&from, this);
  722. const MessageCustomOption2* source =
  723. ::google::protobuf::internal::DynamicCastToGenerated<const MessageCustomOption2>(
  724. &from);
  725. if (source == NULL) {
  726. // @@protoc_insertion_point(generalized_merge_from_cast_fail:protobuf_unittest.lazy_imports.MessageCustomOption2)
  727. ::google::protobuf::internal::ReflectionOps::Merge(from, this);
  728. } else {
  729. // @@protoc_insertion_point(generalized_merge_from_cast_success:protobuf_unittest.lazy_imports.MessageCustomOption2)
  730. MergeFrom(*source);
  731. }
  732. }
  733. void MessageCustomOption2::MergeFrom(const MessageCustomOption2& from) {
  734. // @@protoc_insertion_point(class_specific_merge_from_start:protobuf_unittest.lazy_imports.MessageCustomOption2)
  735. GOOGLE_DCHECK_NE(&from, this);
  736. _internal_metadata_.MergeFrom(from._internal_metadata_);
  737. ::google::protobuf::uint32 cached_has_bits = 0;
  738. (void) cached_has_bits;
  739. }
  740. void MessageCustomOption2::CopyFrom(const ::google::protobuf::Message& from) {
  741. // @@protoc_insertion_point(generalized_copy_from_start:protobuf_unittest.lazy_imports.MessageCustomOption2)
  742. if (&from == this) return;
  743. Clear();
  744. MergeFrom(from);
  745. }
  746. void MessageCustomOption2::CopyFrom(const MessageCustomOption2& from) {
  747. // @@protoc_insertion_point(class_specific_copy_from_start:protobuf_unittest.lazy_imports.MessageCustomOption2)
  748. if (&from == this) return;
  749. Clear();
  750. MergeFrom(from);
  751. }
  752. bool MessageCustomOption2::IsInitialized() const {
  753. return true;
  754. }
  755. void MessageCustomOption2::Swap(MessageCustomOption2* other) {
  756. if (other == this) return;
  757. if (GetArenaNoVirtual() == other->GetArenaNoVirtual()) {
  758. InternalSwap(other);
  759. } else {
  760. MessageCustomOption2* temp = New(GetArenaNoVirtual());
  761. temp->MergeFrom(*other);
  762. other->CopyFrom(*this);
  763. InternalSwap(temp);
  764. if (GetArenaNoVirtual() == NULL) {
  765. delete temp;
  766. }
  767. }
  768. }
  769. void MessageCustomOption2::UnsafeArenaSwap(MessageCustomOption2* other) {
  770. if (other == this) return;
  771. GOOGLE_DCHECK(GetArenaNoVirtual() == other->GetArenaNoVirtual());
  772. InternalSwap(other);
  773. }
  774. void MessageCustomOption2::InternalSwap(MessageCustomOption2* other) {
  775. using std::swap;
  776. swap(_has_bits_[0], other->_has_bits_[0]);
  777. _internal_metadata_.Swap(&other->_internal_metadata_);
  778. }
  779. ::google::protobuf::Metadata MessageCustomOption2::GetMetadata() const {
  780. protobuf_google_2fprotobuf_2funittest_5flazy_5fdependencies_2eproto::protobuf_AssignDescriptorsOnce();
  781. return ::protobuf_google_2fprotobuf_2funittest_5flazy_5fdependencies_2eproto::file_level_metadata[kIndexInFileMessages];
  782. }
  783. // @@protoc_insertion_point(namespace_scope)
  784. } // namespace lazy_imports
  785. } // namespace protobuf_unittest
  786. namespace google {
  787. namespace protobuf {
  788. template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::protobuf_unittest::lazy_imports::ImportedMessage* Arena::CreateMaybeMessage< ::protobuf_unittest::lazy_imports::ImportedMessage >(Arena* arena) {
  789. return Arena::CreateMessageInternal< ::protobuf_unittest::lazy_imports::ImportedMessage >(arena);
  790. }
  791. template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::protobuf_unittest::lazy_imports::MessageCustomOption* Arena::CreateMaybeMessage< ::protobuf_unittest::lazy_imports::MessageCustomOption >(Arena* arena) {
  792. return Arena::CreateMessageInternal< ::protobuf_unittest::lazy_imports::MessageCustomOption >(arena);
  793. }
  794. template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::protobuf_unittest::lazy_imports::MessageCustomOption2* Arena::CreateMaybeMessage< ::protobuf_unittest::lazy_imports::MessageCustomOption2 >(Arena* arena) {
  795. return Arena::CreateMessageInternal< ::protobuf_unittest::lazy_imports::MessageCustomOption2 >(arena);
  796. }
  797. } // namespace protobuf
  798. } // namespace google
  799. // @@protoc_insertion_point(global_scope)