// Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/protobuf/unittest_lazy_dependencies.proto #include #include #include #include #include #include #include #include #include #include // This is a temporary google only hack #ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS #include "third_party/protobuf/version.h" #endif // @@protoc_insertion_point(includes) namespace protobuf_google_2fprotobuf_2funittest_5flazy_5fdependencies_5fcustom_5foption_2eproto { extern PROTOBUF_INTERNAL_EXPORT_protobuf_google_2fprotobuf_2funittest_5flazy_5fdependencies_5fcustom_5foption_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_LazyMessage; } // namespace protobuf_google_2fprotobuf_2funittest_5flazy_5fdependencies_5fcustom_5foption_2eproto namespace protobuf_unittest { namespace lazy_imports { class ImportedMessageDefaultTypeInternal { public: ::google::protobuf::internal::ExplicitlyConstructed _instance; } _ImportedMessage_default_instance_; class MessageCustomOptionDefaultTypeInternal { public: ::google::protobuf::internal::ExplicitlyConstructed _instance; } _MessageCustomOption_default_instance_; class MessageCustomOption2DefaultTypeInternal { public: ::google::protobuf::internal::ExplicitlyConstructed _instance; } _MessageCustomOption2_default_instance_; } // namespace lazy_imports } // namespace protobuf_unittest namespace protobuf_google_2fprotobuf_2funittest_5flazy_5fdependencies_2eproto { static void InitDefaultsImportedMessage() { GOOGLE_PROTOBUF_VERIFY_VERSION; { void* ptr = &::protobuf_unittest::lazy_imports::_ImportedMessage_default_instance_; new (ptr) ::protobuf_unittest::lazy_imports::ImportedMessage(); ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); } ::protobuf_unittest::lazy_imports::ImportedMessage::InitAsDefaultInstance(); } ::google::protobuf::internal::SCCInfo<1> scc_info_ImportedMessage = {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsImportedMessage}, { &protobuf_google_2fprotobuf_2funittest_5flazy_5fdependencies_5fcustom_5foption_2eproto::scc_info_LazyMessage.base,}}; static void InitDefaultsMessageCustomOption() { GOOGLE_PROTOBUF_VERIFY_VERSION; { void* ptr = &::protobuf_unittest::lazy_imports::_MessageCustomOption_default_instance_; new (ptr) ::protobuf_unittest::lazy_imports::MessageCustomOption(); ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); } ::protobuf_unittest::lazy_imports::MessageCustomOption::InitAsDefaultInstance(); } ::google::protobuf::internal::SCCInfo<0> scc_info_MessageCustomOption = {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsMessageCustomOption}, {}}; static void InitDefaultsMessageCustomOption2() { GOOGLE_PROTOBUF_VERIFY_VERSION; { void* ptr = &::protobuf_unittest::lazy_imports::_MessageCustomOption2_default_instance_; new (ptr) ::protobuf_unittest::lazy_imports::MessageCustomOption2(); ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); } ::protobuf_unittest::lazy_imports::MessageCustomOption2::InitAsDefaultInstance(); } ::google::protobuf::internal::SCCInfo<0> scc_info_MessageCustomOption2 = {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsMessageCustomOption2}, {}}; void InitDefaults() { ::google::protobuf::internal::InitSCC(&scc_info_ImportedMessage.base); ::google::protobuf::internal::InitSCC(&scc_info_MessageCustomOption.base); ::google::protobuf::internal::InitSCC(&scc_info_MessageCustomOption2.base); } ::google::protobuf::Metadata file_level_metadata[3]; const ::google::protobuf::uint32 TableStruct::offsets[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = { GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::lazy_imports::ImportedMessage, _has_bits_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::lazy_imports::ImportedMessage, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::lazy_imports::ImportedMessage, lazy_message_), 0, GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::lazy_imports::MessageCustomOption, _has_bits_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::lazy_imports::MessageCustomOption, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::lazy_imports::MessageCustomOption2, _has_bits_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest::lazy_imports::MessageCustomOption2, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ }; static const ::google::protobuf::internal::MigrationSchema schemas[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = { { 0, 6, sizeof(::protobuf_unittest::lazy_imports::ImportedMessage)}, { 7, 12, sizeof(::protobuf_unittest::lazy_imports::MessageCustomOption)}, { 12, 17, sizeof(::protobuf_unittest::lazy_imports::MessageCustomOption2)}, }; static ::google::protobuf::Message const * const file_default_instances[] = { reinterpret_cast(&::protobuf_unittest::lazy_imports::_ImportedMessage_default_instance_), reinterpret_cast(&::protobuf_unittest::lazy_imports::_MessageCustomOption_default_instance_), reinterpret_cast(&::protobuf_unittest::lazy_imports::_MessageCustomOption2_default_instance_), }; void protobuf_AssignDescriptors() { AddDescriptors(); AssignDescriptors( "google/protobuf/unittest_lazy_dependencies.proto", schemas, file_default_instances, TableStruct::offsets, file_level_metadata, NULL, NULL); } void protobuf_AssignDescriptorsOnce() { static ::google::protobuf::internal::once_flag once; ::google::protobuf::internal::call_once(once, protobuf_AssignDescriptors); } void protobuf_RegisterTypes(const ::std::string&) GOOGLE_PROTOBUF_ATTRIBUTE_COLD; void protobuf_RegisterTypes(const ::std::string&) { protobuf_AssignDescriptorsOnce(); ::google::protobuf::internal::RegisterAllTypes(file_level_metadata, 3); } void AddDescriptorsImpl() { InitDefaults(); static const char descriptor[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = { "\n0google/protobuf/unittest_lazy_dependen" "cies.proto\022\036protobuf_unittest.lazy_impor" "ts\032>google/protobuf/unittest_lazy_depend" "encies_custom_option.proto\"T\n\017ImportedMe" "ssage\022A\n\014lazy_message\030\001 \001(\0132+.protobuf_u" "nittest.lazy_imports.LazyMessage\"\025\n\023Mess" "ageCustomOption\"\036\n\024MessageCustomOption2:" "\006\370\376\331\220\004\000B(B\030UnittestLazyImportsProtoH\001\200\001\001" "\210\001\001\220\001\001\370\001\001" }; ::google::protobuf::DescriptorPool::InternalAddGeneratedFile( descriptor, 329); ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile( "google/protobuf/unittest_lazy_dependencies.proto", &protobuf_RegisterTypes); ::protobuf_google_2fprotobuf_2funittest_5flazy_5fdependencies_5fcustom_5foption_2eproto::AddDescriptors(); } void AddDescriptors() { static ::google::protobuf::internal::once_flag once; ::google::protobuf::internal::call_once(once, AddDescriptorsImpl); } // Force AddDescriptors() to be called at dynamic initialization time. struct StaticDescriptorInitializer { StaticDescriptorInitializer() { AddDescriptors(); } } static_descriptor_initializer; } // namespace protobuf_google_2fprotobuf_2funittest_5flazy_5fdependencies_2eproto namespace protobuf_unittest { namespace lazy_imports { // =================================================================== void ImportedMessage::InitAsDefaultInstance() { ::protobuf_unittest::lazy_imports::_ImportedMessage_default_instance_._instance.get_mutable()->lazy_message_ = const_cast< ::protobuf_unittest::lazy_imports::LazyMessage*>( ::protobuf_unittest::lazy_imports::LazyMessage::internal_default_instance()); } void ImportedMessage::unsafe_arena_set_allocated_lazy_message( ::protobuf_unittest::lazy_imports::LazyMessage* lazy_message) { if (GetArenaNoVirtual() == NULL) { delete lazy_message_; } lazy_message_ = lazy_message; if (lazy_message) { set_has_lazy_message(); } else { clear_has_lazy_message(); } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:protobuf_unittest.lazy_imports.ImportedMessage.lazy_message) } void ImportedMessage::clear_lazy_message() { if (lazy_message_ != NULL) lazy_message_->Clear(); clear_has_lazy_message(); } #if !defined(_MSC_VER) || _MSC_VER >= 1900 const int ImportedMessage::kLazyMessageFieldNumber; #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 ImportedMessage::ImportedMessage() : ::google::protobuf::Message(), _internal_metadata_(NULL) { ::google::protobuf::internal::InitSCC( &protobuf_google_2fprotobuf_2funittest_5flazy_5fdependencies_2eproto::scc_info_ImportedMessage.base); SharedCtor(); // @@protoc_insertion_point(constructor:protobuf_unittest.lazy_imports.ImportedMessage) } ImportedMessage::ImportedMessage(::google::protobuf::Arena* arena) : ::google::protobuf::Message(), _internal_metadata_(arena) { ::google::protobuf::internal::InitSCC(&protobuf_google_2fprotobuf_2funittest_5flazy_5fdependencies_2eproto::scc_info_ImportedMessage.base); SharedCtor(); RegisterArenaDtor(arena); // @@protoc_insertion_point(arena_constructor:protobuf_unittest.lazy_imports.ImportedMessage) } ImportedMessage::ImportedMessage(const ImportedMessage& from) : ::google::protobuf::Message(), _internal_metadata_(NULL), _has_bits_(from._has_bits_) { _internal_metadata_.MergeFrom(from._internal_metadata_); if (from.has_lazy_message()) { lazy_message_ = new ::protobuf_unittest::lazy_imports::LazyMessage(*from.lazy_message_); } else { lazy_message_ = NULL; } // @@protoc_insertion_point(copy_constructor:protobuf_unittest.lazy_imports.ImportedMessage) } void ImportedMessage::SharedCtor() { lazy_message_ = NULL; } ImportedMessage::~ImportedMessage() { // @@protoc_insertion_point(destructor:protobuf_unittest.lazy_imports.ImportedMessage) SharedDtor(); } void ImportedMessage::SharedDtor() { GOOGLE_DCHECK(GetArenaNoVirtual() == NULL); if (this != internal_default_instance()) delete lazy_message_; } void ImportedMessage::ArenaDtor(void* object) { ImportedMessage* _this = reinterpret_cast< ImportedMessage* >(object); (void)_this; } void ImportedMessage::RegisterArenaDtor(::google::protobuf::Arena* arena) { } void ImportedMessage::SetCachedSize(int size) const { _cached_size_.Set(size); } const ::google::protobuf::Descriptor* ImportedMessage::descriptor() { ::protobuf_google_2fprotobuf_2funittest_5flazy_5fdependencies_2eproto::protobuf_AssignDescriptorsOnce(); return ::protobuf_google_2fprotobuf_2funittest_5flazy_5fdependencies_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; } const ImportedMessage& ImportedMessage::default_instance() { ::google::protobuf::internal::InitSCC(&protobuf_google_2fprotobuf_2funittest_5flazy_5fdependencies_2eproto::scc_info_ImportedMessage.base); return *internal_default_instance(); } void ImportedMessage::Clear() { // @@protoc_insertion_point(message_clear_start:protobuf_unittest.lazy_imports.ImportedMessage) ::google::protobuf::uint32 cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; cached_has_bits = _has_bits_[0]; if (cached_has_bits & 0x00000001u) { GOOGLE_DCHECK(lazy_message_ != NULL); lazy_message_->Clear(); } _has_bits_.Clear(); _internal_metadata_.Clear(); } bool ImportedMessage::MergePartialFromCodedStream( ::google::protobuf::io::CodedInputStream* input) { #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure ::google::protobuf::uint32 tag; // @@protoc_insertion_point(parse_start:protobuf_unittest.lazy_imports.ImportedMessage) for (;;) { ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); tag = p.first; if (!p.second) goto handle_unusual; switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { // optional .protobuf_unittest.lazy_imports.LazyMessage lazy_message = 1; case 1: { if (static_cast< ::google::protobuf::uint8>(tag) == static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( input, mutable_lazy_message())); } else { goto handle_unusual; } break; } default: { handle_unusual: if (tag == 0) { goto success; } DO_(::google::protobuf::internal::WireFormat::SkipField( input, tag, _internal_metadata_.mutable_unknown_fields())); break; } } } success: // @@protoc_insertion_point(parse_success:protobuf_unittest.lazy_imports.ImportedMessage) return true; failure: // @@protoc_insertion_point(parse_failure:protobuf_unittest.lazy_imports.ImportedMessage) return false; #undef DO_ } void ImportedMessage::SerializeWithCachedSizes( ::google::protobuf::io::CodedOutputStream* output) const { // @@protoc_insertion_point(serialize_start:protobuf_unittest.lazy_imports.ImportedMessage) ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; cached_has_bits = _has_bits_[0]; // optional .protobuf_unittest.lazy_imports.LazyMessage lazy_message = 1; if (cached_has_bits & 0x00000001u) { ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( 1, this->_internal_lazy_message(), output); } if (_internal_metadata_.have_unknown_fields()) { ::google::protobuf::internal::WireFormat::SerializeUnknownFields( _internal_metadata_.unknown_fields(), output); } // @@protoc_insertion_point(serialize_end:protobuf_unittest.lazy_imports.ImportedMessage) } ::google::protobuf::uint8* ImportedMessage::InternalSerializeWithCachedSizesToArray( bool deterministic, ::google::protobuf::uint8* target) const { (void)deterministic; // Unused // @@protoc_insertion_point(serialize_to_array_start:protobuf_unittest.lazy_imports.ImportedMessage) ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; cached_has_bits = _has_bits_[0]; // optional .protobuf_unittest.lazy_imports.LazyMessage lazy_message = 1; if (cached_has_bits & 0x00000001u) { target = ::google::protobuf::internal::WireFormatLite:: InternalWriteMessageToArray( 1, this->_internal_lazy_message(), deterministic, target); } if (_internal_metadata_.have_unknown_fields()) { target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields(), target); } // @@protoc_insertion_point(serialize_to_array_end:protobuf_unittest.lazy_imports.ImportedMessage) return target; } size_t ImportedMessage::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:protobuf_unittest.lazy_imports.ImportedMessage) size_t total_size = 0; if (_internal_metadata_.have_unknown_fields()) { total_size += ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( _internal_metadata_.unknown_fields()); } // optional .protobuf_unittest.lazy_imports.LazyMessage lazy_message = 1; if (has_lazy_message()) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::MessageSize( *lazy_message_); } int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); SetCachedSize(cached_size); return total_size; } void ImportedMessage::MergeFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_merge_from_start:protobuf_unittest.lazy_imports.ImportedMessage) GOOGLE_DCHECK_NE(&from, this); const ImportedMessage* source = ::google::protobuf::internal::DynamicCastToGenerated( &from); if (source == NULL) { // @@protoc_insertion_point(generalized_merge_from_cast_fail:protobuf_unittest.lazy_imports.ImportedMessage) ::google::protobuf::internal::ReflectionOps::Merge(from, this); } else { // @@protoc_insertion_point(generalized_merge_from_cast_success:protobuf_unittest.lazy_imports.ImportedMessage) MergeFrom(*source); } } void ImportedMessage::MergeFrom(const ImportedMessage& from) { // @@protoc_insertion_point(class_specific_merge_from_start:protobuf_unittest.lazy_imports.ImportedMessage) GOOGLE_DCHECK_NE(&from, this); _internal_metadata_.MergeFrom(from._internal_metadata_); ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; if (from.has_lazy_message()) { mutable_lazy_message()->::protobuf_unittest::lazy_imports::LazyMessage::MergeFrom(from.lazy_message()); } } void ImportedMessage::CopyFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_copy_from_start:protobuf_unittest.lazy_imports.ImportedMessage) if (&from == this) return; Clear(); MergeFrom(from); } void ImportedMessage::CopyFrom(const ImportedMessage& from) { // @@protoc_insertion_point(class_specific_copy_from_start:protobuf_unittest.lazy_imports.ImportedMessage) if (&from == this) return; Clear(); MergeFrom(from); } bool ImportedMessage::IsInitialized() const { return true; } void ImportedMessage::Swap(ImportedMessage* other) { if (other == this) return; if (GetArenaNoVirtual() == other->GetArenaNoVirtual()) { InternalSwap(other); } else { ImportedMessage* temp = New(GetArenaNoVirtual()); temp->MergeFrom(*other); other->CopyFrom(*this); InternalSwap(temp); if (GetArenaNoVirtual() == NULL) { delete temp; } } } void ImportedMessage::UnsafeArenaSwap(ImportedMessage* other) { if (other == this) return; GOOGLE_DCHECK(GetArenaNoVirtual() == other->GetArenaNoVirtual()); InternalSwap(other); } void ImportedMessage::InternalSwap(ImportedMessage* other) { using std::swap; swap(lazy_message_, other->lazy_message_); swap(_has_bits_[0], other->_has_bits_[0]); _internal_metadata_.Swap(&other->_internal_metadata_); } ::google::protobuf::Metadata ImportedMessage::GetMetadata() const { protobuf_google_2fprotobuf_2funittest_5flazy_5fdependencies_2eproto::protobuf_AssignDescriptorsOnce(); return ::protobuf_google_2fprotobuf_2funittest_5flazy_5fdependencies_2eproto::file_level_metadata[kIndexInFileMessages]; } // =================================================================== void MessageCustomOption::InitAsDefaultInstance() { } #if !defined(_MSC_VER) || _MSC_VER >= 1900 #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 MessageCustomOption::MessageCustomOption() : ::google::protobuf::Message(), _internal_metadata_(NULL) { ::google::protobuf::internal::InitSCC( &protobuf_google_2fprotobuf_2funittest_5flazy_5fdependencies_2eproto::scc_info_MessageCustomOption.base); SharedCtor(); // @@protoc_insertion_point(constructor:protobuf_unittest.lazy_imports.MessageCustomOption) } MessageCustomOption::MessageCustomOption(::google::protobuf::Arena* arena) : ::google::protobuf::Message(), _internal_metadata_(arena) { ::google::protobuf::internal::InitSCC(&protobuf_google_2fprotobuf_2funittest_5flazy_5fdependencies_2eproto::scc_info_MessageCustomOption.base); SharedCtor(); RegisterArenaDtor(arena); // @@protoc_insertion_point(arena_constructor:protobuf_unittest.lazy_imports.MessageCustomOption) } MessageCustomOption::MessageCustomOption(const MessageCustomOption& from) : ::google::protobuf::Message(), _internal_metadata_(NULL), _has_bits_(from._has_bits_) { _internal_metadata_.MergeFrom(from._internal_metadata_); // @@protoc_insertion_point(copy_constructor:protobuf_unittest.lazy_imports.MessageCustomOption) } void MessageCustomOption::SharedCtor() { } MessageCustomOption::~MessageCustomOption() { // @@protoc_insertion_point(destructor:protobuf_unittest.lazy_imports.MessageCustomOption) SharedDtor(); } void MessageCustomOption::SharedDtor() { GOOGLE_DCHECK(GetArenaNoVirtual() == NULL); } void MessageCustomOption::ArenaDtor(void* object) { MessageCustomOption* _this = reinterpret_cast< MessageCustomOption* >(object); (void)_this; } void MessageCustomOption::RegisterArenaDtor(::google::protobuf::Arena* arena) { } void MessageCustomOption::SetCachedSize(int size) const { _cached_size_.Set(size); } const ::google::protobuf::Descriptor* MessageCustomOption::descriptor() { ::protobuf_google_2fprotobuf_2funittest_5flazy_5fdependencies_2eproto::protobuf_AssignDescriptorsOnce(); return ::protobuf_google_2fprotobuf_2funittest_5flazy_5fdependencies_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; } const MessageCustomOption& MessageCustomOption::default_instance() { ::google::protobuf::internal::InitSCC(&protobuf_google_2fprotobuf_2funittest_5flazy_5fdependencies_2eproto::scc_info_MessageCustomOption.base); return *internal_default_instance(); } void MessageCustomOption::Clear() { // @@protoc_insertion_point(message_clear_start:protobuf_unittest.lazy_imports.MessageCustomOption) ::google::protobuf::uint32 cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; _has_bits_.Clear(); _internal_metadata_.Clear(); } bool MessageCustomOption::MergePartialFromCodedStream( ::google::protobuf::io::CodedInputStream* input) { #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure ::google::protobuf::uint32 tag; // @@protoc_insertion_point(parse_start:protobuf_unittest.lazy_imports.MessageCustomOption) for (;;) { ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); tag = p.first; if (!p.second) goto handle_unusual; handle_unusual: if (tag == 0) { goto success; } DO_(::google::protobuf::internal::WireFormat::SkipField( input, tag, _internal_metadata_.mutable_unknown_fields())); } success: // @@protoc_insertion_point(parse_success:protobuf_unittest.lazy_imports.MessageCustomOption) return true; failure: // @@protoc_insertion_point(parse_failure:protobuf_unittest.lazy_imports.MessageCustomOption) return false; #undef DO_ } void MessageCustomOption::SerializeWithCachedSizes( ::google::protobuf::io::CodedOutputStream* output) const { // @@protoc_insertion_point(serialize_start:protobuf_unittest.lazy_imports.MessageCustomOption) ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; if (_internal_metadata_.have_unknown_fields()) { ::google::protobuf::internal::WireFormat::SerializeUnknownFields( _internal_metadata_.unknown_fields(), output); } // @@protoc_insertion_point(serialize_end:protobuf_unittest.lazy_imports.MessageCustomOption) } ::google::protobuf::uint8* MessageCustomOption::InternalSerializeWithCachedSizesToArray( bool deterministic, ::google::protobuf::uint8* target) const { (void)deterministic; // Unused // @@protoc_insertion_point(serialize_to_array_start:protobuf_unittest.lazy_imports.MessageCustomOption) ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; if (_internal_metadata_.have_unknown_fields()) { target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields(), target); } // @@protoc_insertion_point(serialize_to_array_end:protobuf_unittest.lazy_imports.MessageCustomOption) return target; } size_t MessageCustomOption::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:protobuf_unittest.lazy_imports.MessageCustomOption) size_t total_size = 0; if (_internal_metadata_.have_unknown_fields()) { total_size += ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( _internal_metadata_.unknown_fields()); } int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); SetCachedSize(cached_size); return total_size; } void MessageCustomOption::MergeFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_merge_from_start:protobuf_unittest.lazy_imports.MessageCustomOption) GOOGLE_DCHECK_NE(&from, this); const MessageCustomOption* source = ::google::protobuf::internal::DynamicCastToGenerated( &from); if (source == NULL) { // @@protoc_insertion_point(generalized_merge_from_cast_fail:protobuf_unittest.lazy_imports.MessageCustomOption) ::google::protobuf::internal::ReflectionOps::Merge(from, this); } else { // @@protoc_insertion_point(generalized_merge_from_cast_success:protobuf_unittest.lazy_imports.MessageCustomOption) MergeFrom(*source); } } void MessageCustomOption::MergeFrom(const MessageCustomOption& from) { // @@protoc_insertion_point(class_specific_merge_from_start:protobuf_unittest.lazy_imports.MessageCustomOption) GOOGLE_DCHECK_NE(&from, this); _internal_metadata_.MergeFrom(from._internal_metadata_); ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; } void MessageCustomOption::CopyFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_copy_from_start:protobuf_unittest.lazy_imports.MessageCustomOption) if (&from == this) return; Clear(); MergeFrom(from); } void MessageCustomOption::CopyFrom(const MessageCustomOption& from) { // @@protoc_insertion_point(class_specific_copy_from_start:protobuf_unittest.lazy_imports.MessageCustomOption) if (&from == this) return; Clear(); MergeFrom(from); } bool MessageCustomOption::IsInitialized() const { return true; } void MessageCustomOption::Swap(MessageCustomOption* other) { if (other == this) return; if (GetArenaNoVirtual() == other->GetArenaNoVirtual()) { InternalSwap(other); } else { MessageCustomOption* temp = New(GetArenaNoVirtual()); temp->MergeFrom(*other); other->CopyFrom(*this); InternalSwap(temp); if (GetArenaNoVirtual() == NULL) { delete temp; } } } void MessageCustomOption::UnsafeArenaSwap(MessageCustomOption* other) { if (other == this) return; GOOGLE_DCHECK(GetArenaNoVirtual() == other->GetArenaNoVirtual()); InternalSwap(other); } void MessageCustomOption::InternalSwap(MessageCustomOption* other) { using std::swap; swap(_has_bits_[0], other->_has_bits_[0]); _internal_metadata_.Swap(&other->_internal_metadata_); } ::google::protobuf::Metadata MessageCustomOption::GetMetadata() const { protobuf_google_2fprotobuf_2funittest_5flazy_5fdependencies_2eproto::protobuf_AssignDescriptorsOnce(); return ::protobuf_google_2fprotobuf_2funittest_5flazy_5fdependencies_2eproto::file_level_metadata[kIndexInFileMessages]; } // =================================================================== void MessageCustomOption2::InitAsDefaultInstance() { } #if !defined(_MSC_VER) || _MSC_VER >= 1900 #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 MessageCustomOption2::MessageCustomOption2() : ::google::protobuf::Message(), _internal_metadata_(NULL) { ::google::protobuf::internal::InitSCC( &protobuf_google_2fprotobuf_2funittest_5flazy_5fdependencies_2eproto::scc_info_MessageCustomOption2.base); SharedCtor(); // @@protoc_insertion_point(constructor:protobuf_unittest.lazy_imports.MessageCustomOption2) } MessageCustomOption2::MessageCustomOption2(::google::protobuf::Arena* arena) : ::google::protobuf::Message(), _internal_metadata_(arena) { ::google::protobuf::internal::InitSCC(&protobuf_google_2fprotobuf_2funittest_5flazy_5fdependencies_2eproto::scc_info_MessageCustomOption2.base); SharedCtor(); RegisterArenaDtor(arena); // @@protoc_insertion_point(arena_constructor:protobuf_unittest.lazy_imports.MessageCustomOption2) } MessageCustomOption2::MessageCustomOption2(const MessageCustomOption2& from) : ::google::protobuf::Message(), _internal_metadata_(NULL), _has_bits_(from._has_bits_) { _internal_metadata_.MergeFrom(from._internal_metadata_); // @@protoc_insertion_point(copy_constructor:protobuf_unittest.lazy_imports.MessageCustomOption2) } void MessageCustomOption2::SharedCtor() { } MessageCustomOption2::~MessageCustomOption2() { // @@protoc_insertion_point(destructor:protobuf_unittest.lazy_imports.MessageCustomOption2) SharedDtor(); } void MessageCustomOption2::SharedDtor() { GOOGLE_DCHECK(GetArenaNoVirtual() == NULL); } void MessageCustomOption2::ArenaDtor(void* object) { MessageCustomOption2* _this = reinterpret_cast< MessageCustomOption2* >(object); (void)_this; } void MessageCustomOption2::RegisterArenaDtor(::google::protobuf::Arena* arena) { } void MessageCustomOption2::SetCachedSize(int size) const { _cached_size_.Set(size); } const ::google::protobuf::Descriptor* MessageCustomOption2::descriptor() { ::protobuf_google_2fprotobuf_2funittest_5flazy_5fdependencies_2eproto::protobuf_AssignDescriptorsOnce(); return ::protobuf_google_2fprotobuf_2funittest_5flazy_5fdependencies_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; } const MessageCustomOption2& MessageCustomOption2::default_instance() { ::google::protobuf::internal::InitSCC(&protobuf_google_2fprotobuf_2funittest_5flazy_5fdependencies_2eproto::scc_info_MessageCustomOption2.base); return *internal_default_instance(); } void MessageCustomOption2::Clear() { // @@protoc_insertion_point(message_clear_start:protobuf_unittest.lazy_imports.MessageCustomOption2) ::google::protobuf::uint32 cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; _has_bits_.Clear(); _internal_metadata_.Clear(); } bool MessageCustomOption2::MergePartialFromCodedStream( ::google::protobuf::io::CodedInputStream* input) { #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure ::google::protobuf::uint32 tag; // @@protoc_insertion_point(parse_start:protobuf_unittest.lazy_imports.MessageCustomOption2) for (;;) { ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); tag = p.first; if (!p.second) goto handle_unusual; handle_unusual: if (tag == 0) { goto success; } DO_(::google::protobuf::internal::WireFormat::SkipField( input, tag, _internal_metadata_.mutable_unknown_fields())); } success: // @@protoc_insertion_point(parse_success:protobuf_unittest.lazy_imports.MessageCustomOption2) return true; failure: // @@protoc_insertion_point(parse_failure:protobuf_unittest.lazy_imports.MessageCustomOption2) return false; #undef DO_ } void MessageCustomOption2::SerializeWithCachedSizes( ::google::protobuf::io::CodedOutputStream* output) const { // @@protoc_insertion_point(serialize_start:protobuf_unittest.lazy_imports.MessageCustomOption2) ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; if (_internal_metadata_.have_unknown_fields()) { ::google::protobuf::internal::WireFormat::SerializeUnknownFields( _internal_metadata_.unknown_fields(), output); } // @@protoc_insertion_point(serialize_end:protobuf_unittest.lazy_imports.MessageCustomOption2) } ::google::protobuf::uint8* MessageCustomOption2::InternalSerializeWithCachedSizesToArray( bool deterministic, ::google::protobuf::uint8* target) const { (void)deterministic; // Unused // @@protoc_insertion_point(serialize_to_array_start:protobuf_unittest.lazy_imports.MessageCustomOption2) ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; if (_internal_metadata_.have_unknown_fields()) { target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields(), target); } // @@protoc_insertion_point(serialize_to_array_end:protobuf_unittest.lazy_imports.MessageCustomOption2) return target; } size_t MessageCustomOption2::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:protobuf_unittest.lazy_imports.MessageCustomOption2) size_t total_size = 0; if (_internal_metadata_.have_unknown_fields()) { total_size += ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( _internal_metadata_.unknown_fields()); } int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); SetCachedSize(cached_size); return total_size; } void MessageCustomOption2::MergeFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_merge_from_start:protobuf_unittest.lazy_imports.MessageCustomOption2) GOOGLE_DCHECK_NE(&from, this); const MessageCustomOption2* source = ::google::protobuf::internal::DynamicCastToGenerated( &from); if (source == NULL) { // @@protoc_insertion_point(generalized_merge_from_cast_fail:protobuf_unittest.lazy_imports.MessageCustomOption2) ::google::protobuf::internal::ReflectionOps::Merge(from, this); } else { // @@protoc_insertion_point(generalized_merge_from_cast_success:protobuf_unittest.lazy_imports.MessageCustomOption2) MergeFrom(*source); } } void MessageCustomOption2::MergeFrom(const MessageCustomOption2& from) { // @@protoc_insertion_point(class_specific_merge_from_start:protobuf_unittest.lazy_imports.MessageCustomOption2) GOOGLE_DCHECK_NE(&from, this); _internal_metadata_.MergeFrom(from._internal_metadata_); ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; } void MessageCustomOption2::CopyFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_copy_from_start:protobuf_unittest.lazy_imports.MessageCustomOption2) if (&from == this) return; Clear(); MergeFrom(from); } void MessageCustomOption2::CopyFrom(const MessageCustomOption2& from) { // @@protoc_insertion_point(class_specific_copy_from_start:protobuf_unittest.lazy_imports.MessageCustomOption2) if (&from == this) return; Clear(); MergeFrom(from); } bool MessageCustomOption2::IsInitialized() const { return true; } void MessageCustomOption2::Swap(MessageCustomOption2* other) { if (other == this) return; if (GetArenaNoVirtual() == other->GetArenaNoVirtual()) { InternalSwap(other); } else { MessageCustomOption2* temp = New(GetArenaNoVirtual()); temp->MergeFrom(*other); other->CopyFrom(*this); InternalSwap(temp); if (GetArenaNoVirtual() == NULL) { delete temp; } } } void MessageCustomOption2::UnsafeArenaSwap(MessageCustomOption2* other) { if (other == this) return; GOOGLE_DCHECK(GetArenaNoVirtual() == other->GetArenaNoVirtual()); InternalSwap(other); } void MessageCustomOption2::InternalSwap(MessageCustomOption2* other) { using std::swap; swap(_has_bits_[0], other->_has_bits_[0]); _internal_metadata_.Swap(&other->_internal_metadata_); } ::google::protobuf::Metadata MessageCustomOption2::GetMetadata() const { protobuf_google_2fprotobuf_2funittest_5flazy_5fdependencies_2eproto::protobuf_AssignDescriptorsOnce(); return ::protobuf_google_2fprotobuf_2funittest_5flazy_5fdependencies_2eproto::file_level_metadata[kIndexInFileMessages]; } // @@protoc_insertion_point(namespace_scope) } // namespace lazy_imports } // namespace protobuf_unittest namespace google { namespace protobuf { template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::protobuf_unittest::lazy_imports::ImportedMessage* Arena::CreateMaybeMessage< ::protobuf_unittest::lazy_imports::ImportedMessage >(Arena* arena) { return Arena::CreateMessageInternal< ::protobuf_unittest::lazy_imports::ImportedMessage >(arena); } template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::protobuf_unittest::lazy_imports::MessageCustomOption* Arena::CreateMaybeMessage< ::protobuf_unittest::lazy_imports::MessageCustomOption >(Arena* arena) { return Arena::CreateMessageInternal< ::protobuf_unittest::lazy_imports::MessageCustomOption >(arena); } template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::protobuf_unittest::lazy_imports::MessageCustomOption2* Arena::CreateMaybeMessage< ::protobuf_unittest::lazy_imports::MessageCustomOption2 >(Arena* arena) { return Arena::CreateMessageInternal< ::protobuf_unittest::lazy_imports::MessageCustomOption2 >(arena); } } // namespace protobuf } // namespace google // @@protoc_insertion_point(global_scope)