// Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/protobuf/unittest_import_public.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_unittest_import { class PublicImportMessageDefaultTypeInternal { public: ::google::protobuf::internal::ExplicitlyConstructed _instance; } _PublicImportMessage_default_instance_; } // namespace protobuf_unittest_import namespace protobuf_google_2fprotobuf_2funittest_5fimport_5fpublic_2eproto { static void InitDefaultsPublicImportMessage() { GOOGLE_PROTOBUF_VERIFY_VERSION; { void* ptr = &::protobuf_unittest_import::_PublicImportMessage_default_instance_; new (ptr) ::protobuf_unittest_import::PublicImportMessage(); ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); } ::protobuf_unittest_import::PublicImportMessage::InitAsDefaultInstance(); } ::google::protobuf::internal::SCCInfo<0> scc_info_PublicImportMessage = {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsPublicImportMessage}, {}}; void InitDefaults() { ::google::protobuf::internal::InitSCC(&scc_info_PublicImportMessage.base); } ::google::protobuf::Metadata file_level_metadata[1]; const ::google::protobuf::uint32 TableStruct::offsets[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = { GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest_import::PublicImportMessage, _has_bits_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest_import::PublicImportMessage, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::protobuf_unittest_import::PublicImportMessage, e_), 0, }; static const ::google::protobuf::internal::MigrationSchema schemas[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = { { 0, 6, sizeof(::protobuf_unittest_import::PublicImportMessage)}, }; static ::google::protobuf::Message const * const file_default_instances[] = { reinterpret_cast(&::protobuf_unittest_import::_PublicImportMessage_default_instance_), }; void protobuf_AssignDescriptors() { AddDescriptors(); AssignDescriptors( "google/protobuf/unittest_import_public.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, 1); } void AddDescriptorsImpl() { InitDefaults(); static const char descriptor[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = { "\n,google/protobuf/unittest_import_public" ".proto\022\030protobuf_unittest_import\" \n\023Publ" "icImportMessage\022\t\n\001e\030\001 \001(\005B\032\n\030com.google" ".protobuf.test" }; ::google::protobuf::DescriptorPool::InternalAddGeneratedFile( descriptor, 134); ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile( "google/protobuf/unittest_import_public.proto", &protobuf_RegisterTypes); } 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_5fimport_5fpublic_2eproto namespace protobuf_unittest_import { // =================================================================== void PublicImportMessage::InitAsDefaultInstance() { } #if !defined(_MSC_VER) || _MSC_VER >= 1900 const int PublicImportMessage::kEFieldNumber; #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 PublicImportMessage::PublicImportMessage() : ::google::protobuf::Message(), _internal_metadata_(NULL) { ::google::protobuf::internal::InitSCC( &protobuf_google_2fprotobuf_2funittest_5fimport_5fpublic_2eproto::scc_info_PublicImportMessage.base); SharedCtor(); // @@protoc_insertion_point(constructor:protobuf_unittest_import.PublicImportMessage) } PublicImportMessage::PublicImportMessage(const PublicImportMessage& from) : ::google::protobuf::Message(), _internal_metadata_(NULL), _has_bits_(from._has_bits_) { _internal_metadata_.MergeFrom(from._internal_metadata_); e_ = from.e_; // @@protoc_insertion_point(copy_constructor:protobuf_unittest_import.PublicImportMessage) } void PublicImportMessage::SharedCtor() { e_ = 0; } PublicImportMessage::~PublicImportMessage() { // @@protoc_insertion_point(destructor:protobuf_unittest_import.PublicImportMessage) SharedDtor(); } void PublicImportMessage::SharedDtor() { } void PublicImportMessage::SetCachedSize(int size) const { _cached_size_.Set(size); } const ::google::protobuf::Descriptor* PublicImportMessage::descriptor() { ::protobuf_google_2fprotobuf_2funittest_5fimport_5fpublic_2eproto::protobuf_AssignDescriptorsOnce(); return ::protobuf_google_2fprotobuf_2funittest_5fimport_5fpublic_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; } const PublicImportMessage& PublicImportMessage::default_instance() { ::google::protobuf::internal::InitSCC(&protobuf_google_2fprotobuf_2funittest_5fimport_5fpublic_2eproto::scc_info_PublicImportMessage.base); return *internal_default_instance(); } void PublicImportMessage::Clear() { // @@protoc_insertion_point(message_clear_start:protobuf_unittest_import.PublicImportMessage) ::google::protobuf::uint32 cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; e_ = 0; _has_bits_.Clear(); _internal_metadata_.Clear(); } bool PublicImportMessage::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_import.PublicImportMessage) 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 int32 e = 1; case 1: { if (static_cast< ::google::protobuf::uint8>(tag) == static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) { set_has_e(); DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( input, &e_))); } 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_import.PublicImportMessage) return true; failure: // @@protoc_insertion_point(parse_failure:protobuf_unittest_import.PublicImportMessage) return false; #undef DO_ } void PublicImportMessage::SerializeWithCachedSizes( ::google::protobuf::io::CodedOutputStream* output) const { // @@protoc_insertion_point(serialize_start:protobuf_unittest_import.PublicImportMessage) ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; cached_has_bits = _has_bits_[0]; // optional int32 e = 1; if (cached_has_bits & 0x00000001u) { ::google::protobuf::internal::WireFormatLite::WriteInt32(1, this->e(), output); } if (_internal_metadata_.have_unknown_fields()) { ::google::protobuf::internal::WireFormat::SerializeUnknownFields( _internal_metadata_.unknown_fields(), output); } // @@protoc_insertion_point(serialize_end:protobuf_unittest_import.PublicImportMessage) } ::google::protobuf::uint8* PublicImportMessage::InternalSerializeWithCachedSizesToArray( bool deterministic, ::google::protobuf::uint8* target) const { (void)deterministic; // Unused // @@protoc_insertion_point(serialize_to_array_start:protobuf_unittest_import.PublicImportMessage) ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; cached_has_bits = _has_bits_[0]; // optional int32 e = 1; if (cached_has_bits & 0x00000001u) { target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(1, this->e(), 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_import.PublicImportMessage) return target; } size_t PublicImportMessage::ByteSizeLong() const { // @@protoc_insertion_point(message_byte_size_start:protobuf_unittest_import.PublicImportMessage) size_t total_size = 0; if (_internal_metadata_.have_unknown_fields()) { total_size += ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( _internal_metadata_.unknown_fields()); } // optional int32 e = 1; if (has_e()) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::Int32Size( this->e()); } int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); SetCachedSize(cached_size); return total_size; } void PublicImportMessage::MergeFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_merge_from_start:protobuf_unittest_import.PublicImportMessage) GOOGLE_DCHECK_NE(&from, this); const PublicImportMessage* source = ::google::protobuf::internal::DynamicCastToGenerated( &from); if (source == NULL) { // @@protoc_insertion_point(generalized_merge_from_cast_fail:protobuf_unittest_import.PublicImportMessage) ::google::protobuf::internal::ReflectionOps::Merge(from, this); } else { // @@protoc_insertion_point(generalized_merge_from_cast_success:protobuf_unittest_import.PublicImportMessage) MergeFrom(*source); } } void PublicImportMessage::MergeFrom(const PublicImportMessage& from) { // @@protoc_insertion_point(class_specific_merge_from_start:protobuf_unittest_import.PublicImportMessage) 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_e()) { set_e(from.e()); } } void PublicImportMessage::CopyFrom(const ::google::protobuf::Message& from) { // @@protoc_insertion_point(generalized_copy_from_start:protobuf_unittest_import.PublicImportMessage) if (&from == this) return; Clear(); MergeFrom(from); } void PublicImportMessage::CopyFrom(const PublicImportMessage& from) { // @@protoc_insertion_point(class_specific_copy_from_start:protobuf_unittest_import.PublicImportMessage) if (&from == this) return; Clear(); MergeFrom(from); } bool PublicImportMessage::IsInitialized() const { return true; } void PublicImportMessage::Swap(PublicImportMessage* other) { if (other == this) return; InternalSwap(other); } void PublicImportMessage::InternalSwap(PublicImportMessage* other) { using std::swap; swap(e_, other->e_); swap(_has_bits_[0], other->_has_bits_[0]); _internal_metadata_.Swap(&other->_internal_metadata_); } ::google::protobuf::Metadata PublicImportMessage::GetMetadata() const { protobuf_google_2fprotobuf_2funittest_5fimport_5fpublic_2eproto::protobuf_AssignDescriptorsOnce(); return ::protobuf_google_2fprotobuf_2funittest_5fimport_5fpublic_2eproto::file_level_metadata[kIndexInFileMessages]; } // @@protoc_insertion_point(namespace_scope) } // namespace protobuf_unittest_import namespace google { namespace protobuf { template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::protobuf_unittest_import::PublicImportMessage* Arena::CreateMaybeMessage< ::protobuf_unittest_import::PublicImportMessage >(Arena* arena) { return Arena::CreateInternal< ::protobuf_unittest_import::PublicImportMessage >(arena); } } // namespace protobuf } // namespace google // @@protoc_insertion_point(global_scope)